forked from FINAKON/HelpProject
1. Initial Commit - a boiler plate code and POC to realize the concept of context sensitive help 2. Frontend code written in ReactJS 3. Backend code written in Java, Spring Boot Framework 4. Frontend Start: pre-requisites : node, npm npm run dev ==> to start the frontend vite server 5. Backend Start: pre-requisites : java, mvn mvn spring-boot:run ==> to start the backend server 6. Visit http://localhost:5173/ for basic demo of help, press F1 in textboxes 7. Visit http://localhost:5173/editor and enter "admin123" to add/modify texts. Happy Coding !!! Thank you, Bhargava.
25 lines
806 B
JavaScript
25 lines
806 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
var style_to_object_1 = __importDefault(require("style-to-object"));
|
|
var utilities_1 = require("./utilities");
|
|
/**
|
|
* Parses CSS inline style to JavaScript object (camelCased).
|
|
*/
|
|
function StyleToJS(style, options) {
|
|
var output = {};
|
|
if (!style || typeof style !== 'string') {
|
|
return output;
|
|
}
|
|
(0, style_to_object_1.default)(style, function (property, value) {
|
|
// skip CSS comment
|
|
if (property && value) {
|
|
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
}
|
|
});
|
|
return output;
|
|
}
|
|
StyleToJS.default = StyleToJS;
|
|
module.exports = StyleToJS;
|
|
//# sourceMappingURL=index.js.map
|