highmark-cli 0.0.173 → 0.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -2
- package/bin/abbreviations.js +6 -9
- package/bin/action/help.js +3 -3
- package/bin/action/publish.js +3 -4
- package/bin/action/server.js +2 -2
- package/bin/constants.js +2 -6
- package/bin/defaults.js +4 -6
- package/bin/main.js +7 -9
- package/bin/operation/copyFonts.js +5 -23
- package/bin/operation/html.js +5 -71
- package/bin/options.js +4 -6
- package/package.json +2 -26
- package/.swcrc +0 -11
- package/bin/utilities/client.js +0 -38
- package/checkmark.svg +0 -12
- package/client.js +0 -39651
- package/css/loading.css +0 -59
- package/lib/client.js +0 -74
- package/lib/constants.js +0 -70
- package/lib/createMethods.js +0 -84
- package/lib/customEventTypes.js +0 -74
- package/lib/localStorage.js +0 -41
- package/lib/migrate.js +0 -34
- package/lib/selectors.js +0 -26
- package/lib/state/version_1.js +0 -39
- package/lib/state.js +0 -153
- package/lib/styles.js +0 -82
- package/lib/utilities/element.js +0 -62
- package/lib/utilities/orientation.js +0 -39
- package/lib/versions.js +0 -13
- package/lib/view/button/closeMenu.js +0 -121
- package/lib/view/button/zoomMenuIn.js +0 -121
- package/lib/view/button/zoomMenuOut.js +0 -121
- package/lib/view/button.js +0 -160
- package/lib/view/checkbox.js +0 -193
- package/lib/view/div/buttons.js +0 -213
- package/lib/view/div/checkbox/fullScreen.js +0 -155
- package/lib/view/div/checkbox/invertColours.js +0 -154
- package/lib/view/div/checkbox/nativeGestures.js +0 -154
- package/lib/view/div/checkbox.js +0 -220
- package/lib/view/div/checkboxes.js +0 -213
- package/lib/view/div/menu.js +0 -301
- package/lib/view/div/overlay.js +0 -685
- package/lib/view/div/preloader.js +0 -204
- package/lib/view/div.js +0 -227
- package/lib/view/element.js +0 -164
- package/lib/view/span.js +0 -182
- package/lib/view/svg/closeMenu.js +0 -138
- package/lib/view/svg/zoomMenuIn.js +0 -146
- package/lib/view/svg/zoomMenuOut.js +0 -141
- package/lib/view/svg.js +0 -184
- package/lib/view.js +0 -247
- package/src/client.js +0 -70
- package/src/constants.js +0 -16
- package/src/createMethods.js +0 -105
- package/src/customEventTypes.js +0 -17
- package/src/localStorage.js +0 -40
- package/src/migrate.js +0 -19
- package/src/selectors.js +0 -5
- package/src/state/version_1.js +0 -32
- package/src/state.js +0 -152
- package/src/styles.js +0 -19
- package/src/utilities/element.js +0 -66
- package/src/utilities/orientation.js +0 -34
- package/src/versions.js +0 -3
- package/src/view/button/closeMenu.js +0 -16
- package/src/view/button/zoomMenuIn.js +0 -16
- package/src/view/button/zoomMenuOut.js +0 -16
- package/src/view/button.js +0 -38
- package/src/view/checkbox.js +0 -68
- package/src/view/div/buttons.js +0 -37
- package/src/view/div/checkbox/fullScreen.js +0 -40
- package/src/view/div/checkbox/invertColours.js +0 -37
- package/src/view/div/checkbox/nativeGestures.js +0 -38
- package/src/view/div/checkbox.js +0 -45
- package/src/view/div/checkboxes.js +0 -38
- package/src/view/div/menu.js +0 -88
- package/src/view/div/overlay.js +0 -602
- package/src/view/div/preloader.js +0 -25
- package/src/view/div.js +0 -47
- package/src/view/element.js +0 -16
- package/src/view/span.js +0 -20
- package/src/view/svg/closeMenu.js +0 -19
- package/src/view/svg/zoomMenuIn.js +0 -20
- package/src/view/svg/zoomMenuOut.js +0 -19
- package/src/view/svg.js +0 -24
- package/src/view.js +0 -64
- package/template/client.html +0 -4
- package/template/default.html +0 -71
- package/template/loading.html +0 -17
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import { Element } from "easy";
|
|
6
|
-
|
|
7
|
-
class PreloaderDiv extends Element {
|
|
8
|
-
childElements() {
|
|
9
|
-
return "PRELOAD";
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
static tagName = "div";
|
|
13
|
-
|
|
14
|
-
static defaultProperties = {
|
|
15
|
-
className: "preloader"
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default withStyle(PreloaderDiv)`
|
|
20
|
-
|
|
21
|
-
height: 0;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
background-image: url("checkmark.svg");
|
|
24
|
-
|
|
25
|
-
`;
|
package/src/view/div.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import { Element } from "easy";
|
|
6
|
-
|
|
7
|
-
import { BACKGROUND_COLOUR } from "../constants";
|
|
8
|
-
|
|
9
|
-
class Div extends Element {
|
|
10
|
-
getBackgroundColour() {
|
|
11
|
-
const backgroundColour = this.css(BACKGROUND_COLOUR) || null;
|
|
12
|
-
|
|
13
|
-
return backgroundColour;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
zoom(zoom) {
|
|
17
|
-
const zoomRatio = 100 / zoom,
|
|
18
|
-
width = `${zoomRatio}%`,
|
|
19
|
-
minHeight = `${zoomRatio}%`,
|
|
20
|
-
transform = `scale(${zoom})`;
|
|
21
|
-
|
|
22
|
-
const css = {
|
|
23
|
-
width,
|
|
24
|
-
minHeight,
|
|
25
|
-
transform
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
this.css(css);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
didMount() {
|
|
32
|
-
this.hide();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
willUnmount() {
|
|
36
|
-
///
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static tagName = "div";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default withStyle(Div)`
|
|
43
|
-
|
|
44
|
-
width: 100%;
|
|
45
|
-
transform-origin: top left;
|
|
46
|
-
|
|
47
|
-
`;
|
package/src/view/element.js
DELETED
package/src/view/span.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import Element from "./element";
|
|
6
|
-
|
|
7
|
-
import { spanColour, spanFontSize } from "../styles";
|
|
8
|
-
|
|
9
|
-
class Span extends Element {
|
|
10
|
-
static tagName = "span";
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default withStyle(Span)`
|
|
14
|
-
|
|
15
|
-
color: ${spanColour};
|
|
16
|
-
font-size: ${spanFontSize};
|
|
17
|
-
white-space: pre;
|
|
18
|
-
font-family: serif;
|
|
19
|
-
|
|
20
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import SVG from "../svg";
|
|
4
|
-
|
|
5
|
-
export default class CloseMenuSVG extends SVG {
|
|
6
|
-
childElements() {
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
<g>
|
|
10
|
-
<path d="M 18.156886,3.3074544 12.500012,8.9643288 6.8431375,3.3074544 3.307454,6.8431379 8.9643284,12.500012 3.3074544,18.156886 6.8431379,21.69257 12.500012,16.035696 18.156886,21.69257 21.69257,18.156886 16.035695,12.500012 21.69257,6.8431379 Z" />
|
|
11
|
-
</g>
|
|
12
|
-
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static defaultProperties = {
|
|
17
|
-
className: "close-menu"
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import SVG from "../svg";
|
|
4
|
-
|
|
5
|
-
export default class ZoomMenuInSVG extends SVG {
|
|
6
|
-
childElements() {
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
<g>
|
|
10
|
-
<rect x="3" y="10" width="19" height="5"/>
|
|
11
|
-
<rect x="10" y="3" width="5" height="19"/>
|
|
12
|
-
</g>
|
|
13
|
-
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static defaultProperties = {
|
|
18
|
-
className: "zoom-menu-in"
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import SVG from "../svg";
|
|
4
|
-
|
|
5
|
-
export default class ZoomMenuOutSVG extends SVG {
|
|
6
|
-
childElements() {
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
<g>
|
|
10
|
-
<rect x="3" y="10" width="19" height="5"/>
|
|
11
|
-
</g>
|
|
12
|
-
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static defaultProperties = {
|
|
17
|
-
className: "zoom-menu-out"
|
|
18
|
-
};
|
|
19
|
-
}
|
package/src/view/svg.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import Element from "./element";
|
|
6
|
-
|
|
7
|
-
import { svgFill } from "../styles";
|
|
8
|
-
|
|
9
|
-
class FontSizeSVG extends Element {
|
|
10
|
-
static tagName = "svg";
|
|
11
|
-
|
|
12
|
-
static defaultProperties = {
|
|
13
|
-
viewBox: "0 0 25 25"
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default withStyle(FontSizeSVG)`
|
|
18
|
-
|
|
19
|
-
fill: ${svgFill};
|
|
20
|
-
stroke: none;
|
|
21
|
-
display: block;
|
|
22
|
-
pointer-events: none;
|
|
23
|
-
|
|
24
|
-
`;
|
package/src/view.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import Element from "./view/element";
|
|
6
|
-
import MenuDiv from "./view/div/menu";
|
|
7
|
-
import OverlayDiv from "./view/div/overlay";
|
|
8
|
-
import PreloaderDiv from "./view/div/preloader";
|
|
9
|
-
|
|
10
|
-
class View extends Element {
|
|
11
|
-
updateZoom() {
|
|
12
|
-
this.updateMenuZoom();
|
|
13
|
-
this.updateOverlayZoom();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
didMount() {
|
|
17
|
-
this.show();
|
|
18
|
-
|
|
19
|
-
this.updateOverlayColours();
|
|
20
|
-
this.updateNativeGestures();
|
|
21
|
-
this.updateFullScreenCheckboxDiv();
|
|
22
|
-
this.updateInvertColoursCheckboxDiv();
|
|
23
|
-
this.updateNativeGesturesCheckboxDiv();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
willUnmount() {
|
|
27
|
-
///
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
childElements() {
|
|
31
|
-
const { divDOMElements } = this.properties;
|
|
32
|
-
|
|
33
|
-
return ([
|
|
34
|
-
|
|
35
|
-
<PreloaderDiv/>,
|
|
36
|
-
<OverlayDiv divDOMElements={divDOMElements} />,
|
|
37
|
-
<MenuDiv/>
|
|
38
|
-
|
|
39
|
-
]);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
initialise() {
|
|
43
|
-
this.assignContext();
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static tagName = "div";
|
|
47
|
-
|
|
48
|
-
static ignoredProperties = [
|
|
49
|
-
"divDOMElements"
|
|
50
|
-
];
|
|
51
|
-
|
|
52
|
-
static defaultProperties = {
|
|
53
|
-
className: "view"
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default withStyle(View)`
|
|
58
|
-
|
|
59
|
-
width: 100%;
|
|
60
|
-
height: 100%;
|
|
61
|
-
align-items: stretch;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
|
|
64
|
-
`;
|
package/template/client.html
DELETED
package/template/default.html
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
|
|
7
|
-
<link rel="preload" href="font/cmunbbx.woff2" as="font" type="font/woff2" crossorigin />
|
|
8
|
-
<link rel="preload" href="font/cmunbi.woff2" as="font" type="font/woff2" crossorigin />
|
|
9
|
-
<link rel="preload" href="font/cmunbmo.woff2" as="font" type="font/woff2" crossorigin />
|
|
10
|
-
<link rel="preload" href="font/cmunbmr.woff2" as="font" type="font/woff2" crossorigin />
|
|
11
|
-
<link rel="preload" href="font/cmunbx.woff2" as="font" type="font/woff2" crossorigin />
|
|
12
|
-
<link rel="preload" href="font/cmunbxo.woff2" as="font" type="font/woff2" crossorigin />
|
|
13
|
-
<link rel="preload" href="font/cmunit.woff2" as="font" type="font/woff2" crossorigin />
|
|
14
|
-
<link rel="preload" href="font/cmunobi.woff2" as="font" type="font/woff2" crossorigin />
|
|
15
|
-
<link rel="preload" href="font/cmunobx.woff2" as="font" type="font/woff2" crossorigin />
|
|
16
|
-
<link rel="preload" href="font/cmunorm.woff2" as="font" type="font/woff2" crossorigin />
|
|
17
|
-
<link rel="preload" href="font/cmunoti.woff2" as="font" type="font/woff2" crossorigin />
|
|
18
|
-
<link rel="preload" href="font/cmunrm.woff2" as="font" type="font/woff2" crossorigin />
|
|
19
|
-
<link rel="preload" href="font/cmunsi.woff2" as="font" type="font/woff2" crossorigin />
|
|
20
|
-
<link rel="preload" href="font/cmunso.woff2" as="font" type="font/woff2" crossorigin />
|
|
21
|
-
<link rel="preload" href="font/cmunss.woff2" as="font" type="font/woff2" crossorigin />
|
|
22
|
-
<link rel="preload" href="font/cmunsx.woff2" as="font" type="font/woff2" crossorigin />
|
|
23
|
-
<link rel="preload" href="font/cmuntb.woff2" as="font" type="font/woff2" crossorigin />
|
|
24
|
-
<link rel="preload" href="font/cmunti.woff2" as="font" type="font/woff2" crossorigin />
|
|
25
|
-
<link rel="preload" href="font/cmuntt.woff2" as="font" type="font/woff2" crossorigin />
|
|
26
|
-
<link rel="preload" href="font/cmuntx.woff2" as="font" type="font/woff2" crossorigin />
|
|
27
|
-
|
|
28
|
-
<style>
|
|
29
|
-
|
|
30
|
-
*,
|
|
31
|
-
*::after,
|
|
32
|
-
*::before {
|
|
33
|
-
border: 0;
|
|
34
|
-
margin: 0;
|
|
35
|
-
padding: 0;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
html,
|
|
40
|
-
html > body {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
</style>
|
|
46
|
-
<style>
|
|
47
|
-
|
|
48
|
-
${computerModernStyleCSS}
|
|
49
|
-
|
|
50
|
-
</style>
|
|
51
|
-
<style>
|
|
52
|
-
|
|
53
|
-
${markdownStylesCSS}
|
|
54
|
-
|
|
55
|
-
</style>
|
|
56
|
-
<style>
|
|
57
|
-
|
|
58
|
-
${loadingCSS}
|
|
59
|
-
|
|
60
|
-
</style>
|
|
61
|
-
</head>
|
|
62
|
-
<body>
|
|
63
|
-
|
|
64
|
-
${loadingHTML}
|
|
65
|
-
|
|
66
|
-
${markdownHTML}
|
|
67
|
-
|
|
68
|
-
${clientHTML}
|
|
69
|
-
|
|
70
|
-
</body>
|
|
71
|
-
</html>
|
package/template/loading.html
DELETED