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.
41 lines
953 B
JavaScript
41 lines
953 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.prettifyTargets = prettifyTargets;
|
|
exports.prettifyVersion = prettifyVersion;
|
|
var _semver = require("semver");
|
|
var _targets = require("./targets.js");
|
|
function prettifyVersion(version) {
|
|
if (typeof version !== "string") {
|
|
return version;
|
|
}
|
|
const {
|
|
major,
|
|
minor,
|
|
patch
|
|
} = _semver.parse(version);
|
|
const parts = [major];
|
|
if (minor || patch) {
|
|
parts.push(minor);
|
|
}
|
|
if (patch) {
|
|
parts.push(patch);
|
|
}
|
|
return parts.join(".");
|
|
}
|
|
function prettifyTargets(targets) {
|
|
return Object.keys(targets).reduce((results, target) => {
|
|
let value = targets[target];
|
|
const unreleasedLabel = _targets.unreleasedLabels[target];
|
|
if (typeof value === "string" && unreleasedLabel !== value) {
|
|
value = prettifyVersion(value);
|
|
}
|
|
results[target] = value;
|
|
return results;
|
|
}, {});
|
|
}
|
|
|
|
//# sourceMappingURL=pretty.js.map
|