highmark-cli 0.0.174 → 0.0.176

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.
Files changed (95) hide show
  1. package/README.md +20 -2
  2. package/bin/abbreviations.js +6 -9
  3. package/bin/action/help.js +3 -3
  4. package/bin/action/publish.js +6 -9
  5. package/bin/action/server.js +2 -2
  6. package/bin/constants.js +2 -12
  7. package/bin/defaults.js +4 -6
  8. package/bin/main.js +7 -9
  9. package/bin/operation/copyClientFiles.js +19 -0
  10. package/bin/operation/copyFonts.js +5 -24
  11. package/bin/operation/html.js +5 -71
  12. package/bin/operation/server.js +1 -3
  13. package/bin/operation/watch.js +2 -4
  14. package/bin/options.js +4 -6
  15. package/package.json +2 -26
  16. package/.swcrc +0 -11
  17. package/bin/operation/copyCheckmark.js +0 -32
  18. package/bin/operation/copyClient.js +0 -51
  19. package/bin/utilities/client.js +0 -38
  20. package/checkmark.svg +0 -12
  21. package/client.js +0 -39623
  22. package/css/loading.css +0 -59
  23. package/lib/client.js +0 -74
  24. package/lib/constants.js +0 -70
  25. package/lib/createMethods.js +0 -84
  26. package/lib/customEventTypes.js +0 -74
  27. package/lib/localStorage.js +0 -41
  28. package/lib/migrate.js +0 -34
  29. package/lib/selectors.js +0 -26
  30. package/lib/state/version_1.js +0 -39
  31. package/lib/state.js +0 -153
  32. package/lib/styles.js +0 -82
  33. package/lib/utilities/element.js +0 -62
  34. package/lib/utilities/orientation.js +0 -39
  35. package/lib/versions.js +0 -13
  36. package/lib/view/button/closeMenu.js +0 -121
  37. package/lib/view/button/zoomMenuIn.js +0 -121
  38. package/lib/view/button/zoomMenuOut.js +0 -121
  39. package/lib/view/button.js +0 -160
  40. package/lib/view/checkbox.js +0 -193
  41. package/lib/view/div/buttons.js +0 -213
  42. package/lib/view/div/checkbox/fullScreen.js +0 -155
  43. package/lib/view/div/checkbox/invertColours.js +0 -154
  44. package/lib/view/div/checkbox/nativeGestures.js +0 -154
  45. package/lib/view/div/checkbox.js +0 -220
  46. package/lib/view/div/checkboxes.js +0 -213
  47. package/lib/view/div/menu.js +0 -301
  48. package/lib/view/div/overlay.js +0 -685
  49. package/lib/view/div/preloader.js +0 -204
  50. package/lib/view/div.js +0 -227
  51. package/lib/view/element.js +0 -164
  52. package/lib/view/span.js +0 -182
  53. package/lib/view/svg/closeMenu.js +0 -138
  54. package/lib/view/svg/zoomMenuIn.js +0 -146
  55. package/lib/view/svg/zoomMenuOut.js +0 -141
  56. package/lib/view/svg.js +0 -184
  57. package/lib/view.js +0 -247
  58. package/src/client.js +0 -70
  59. package/src/constants.js +0 -16
  60. package/src/createMethods.js +0 -105
  61. package/src/customEventTypes.js +0 -17
  62. package/src/localStorage.js +0 -40
  63. package/src/migrate.js +0 -19
  64. package/src/selectors.js +0 -5
  65. package/src/state/version_1.js +0 -32
  66. package/src/state.js +0 -152
  67. package/src/styles.js +0 -19
  68. package/src/utilities/element.js +0 -66
  69. package/src/utilities/orientation.js +0 -34
  70. package/src/versions.js +0 -3
  71. package/src/view/button/closeMenu.js +0 -16
  72. package/src/view/button/zoomMenuIn.js +0 -16
  73. package/src/view/button/zoomMenuOut.js +0 -16
  74. package/src/view/button.js +0 -38
  75. package/src/view/checkbox.js +0 -68
  76. package/src/view/div/buttons.js +0 -37
  77. package/src/view/div/checkbox/fullScreen.js +0 -40
  78. package/src/view/div/checkbox/invertColours.js +0 -37
  79. package/src/view/div/checkbox/nativeGestures.js +0 -38
  80. package/src/view/div/checkbox.js +0 -45
  81. package/src/view/div/checkboxes.js +0 -38
  82. package/src/view/div/menu.js +0 -88
  83. package/src/view/div/overlay.js +0 -602
  84. package/src/view/div/preloader.js +0 -25
  85. package/src/view/div.js +0 -47
  86. package/src/view/element.js +0 -16
  87. package/src/view/span.js +0 -20
  88. package/src/view/svg/closeMenu.js +0 -19
  89. package/src/view/svg/zoomMenuIn.js +0 -20
  90. package/src/view/svg/zoomMenuOut.js +0 -19
  91. package/src/view/svg.js +0 -24
  92. package/src/view.js +0 -64
  93. package/template/client.html +0 -4
  94. package/template/default.html +0 -71
  95. 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
- `;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- import withStyle from "easy-with-style"; ///
4
-
5
- import { Element } from "easy";
6
-
7
- export default withStyle(class extends Element {
8
- ///
9
- })`
10
-
11
- border: 0;
12
- margin: 0;
13
- padding: 0;
14
- background: transparent;
15
-
16
- `;
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
- `;
@@ -1,4 +0,0 @@
1
-
2
- <script src="client.js"> </script>
3
-
4
- ${liveReloadSnippet}
@@ -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>
@@ -1,17 +0,0 @@
1
-
2
- <div class="loading">
3
- <div class="spinner">
4
- <div></div>
5
- <div></div>
6
- <div></div>
7
- <div></div>
8
- <div></div>
9
- <div></div>
10
- <div></div>
11
- <div></div>
12
- <div></div>
13
- <div></div>
14
- <div></div>
15
- <div></div>
16
- </div>
17
- </div>