@nebularstreams/statify 3.0.3 → 3.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebularstreams/statify",
3
- "version": "3.0.3",
3
+ "version": "3.0.7",
4
4
  "description": "Generate Cool Landing and Documentation Pages",
5
5
  "scripts": {
6
6
  "build:app": "node tool/cli.js app",
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  const COOKIES_FOOTER_FULL = (productName = "Obscene Studio", domain="obscene.studio") => `
3
- <div id="cookies" class="screen d-none" role="alert" aria-label="GDPR-Compliant Cookie Constent Dialog">
3
+ <aside id="cookies" class="screen d-none" aria-label="GDPR-Compliant Cookie Constent Dialog">
4
4
  <div id="cookies-dialog" class="cookies-notice flexrow w-100 wrap" aria-label="Simplified Cookie Consent dialog">
5
5
  <p class="grows">
6
6
  ${productName}, and selected third parties, use cookies or similar technologies for technical purposes and, with your consent, for the purposes
@@ -21,7 +21,7 @@ const COOKIES_FOOTER_FULL = (productName = "Obscene Studio", domain="obscene.stu
21
21
  <button aria-label="Accept all cookies" class="col-4 bg-ok" data-action="accept">ACCEPT ALL</button>
22
22
  <div class="col-6 grows">Allow Analytics, and Third Party Videos and images</div>
23
23
  </div>
24
- </div>
24
+ </aside>
25
25
  </div>
26
26
  `;
27
27
 
@@ -1,4 +1,101 @@
1
1
 
2
+ nav a {
3
+ color: inherit !important;
4
+ text-decoration: none
5
+ }
6
+
7
+ nav a:hover {
8
+ text-decoration: underline
9
+ }
10
+
11
+ nav.titlebar {
12
+ z-index: 1000;
13
+ align-items: center;
14
+ white-space: nowrap;
15
+ font-variant: all-small-caps
16
+ }
17
+
18
+ nav.titlebar>* {
19
+ margin: 0 .5rem;
20
+ text-overflow: ellipsis;
21
+ overflow: hidden
22
+ }
23
+
24
+ nav.titlebar .square {
25
+ flex-shrink: 0;
26
+ display: inline-block;
27
+ margin: 0;
28
+ padding: 0 1rem;
29
+ border-left: solid 1px var(--border-color);
30
+ height: var(--unitsize);
31
+ line-height: var(--unitsize)
32
+ }
33
+
34
+ nav.titlebar .inter,nav.titlebar .mute {
35
+ flex-shrink: 0
36
+ }
37
+
38
+ nav.titlebar>.inter:after {
39
+ content: "\f0da";
40
+ font-family: "Font Awesome 5 Free";
41
+ padding-left: 1rem
42
+ }
43
+
44
+ nav.titlebar>.sep {
45
+ padding: 0;
46
+ color: var(--text-lo)
47
+ }
48
+
49
+ .naviholder i {
50
+ line-height: inherit
51
+ }
52
+
53
+ nav.autohide {
54
+ transition: opacity .5s linear
55
+ }
56
+
57
+ .scrolltop nav.autohide {
58
+ opacity: 0
59
+ }
60
+
61
+ nav .transbutton {
62
+ background: transparent;
63
+ border: 0;
64
+ color: var(--text);
65
+ cursor: pointer;
66
+ margin: 0;
67
+ border-left: solid 1px var(--border-color)
68
+ }
69
+
70
+ nav.tab-menu.flexrow {
71
+
72
+ right: 0;
73
+ left: 0;
74
+ padding-left: 0.5rem;
75
+ box-shadow: 0 0 2px var(--shadow-color);
76
+ }
77
+
78
+ nav input {
79
+ border: 0;
80
+ border-radius: 2rem;
81
+ padding: 0.25rem 0.25rem 0.25rem 0.5rem;
82
+ }
83
+
84
+ nav.tab-menu > .tab-menu-item.selected-tab-item {
85
+ color: var(--accent);
86
+ border-radius: 10rem;
87
+ display: inline-block;
88
+ }
89
+
90
+ nav.subbar {
91
+ z-index: 100;
92
+ line-height: 2rem;
93
+ border-top: dashed 1px var(--border-color);
94
+ font-variant: all-small-caps;
95
+ height: 2rem;
96
+ }
97
+
98
+
2
99
  nav.tab-menu.flexrow {
3
100
 
4
101
  right: 0;
@@ -0,0 +1,20 @@
1
+ figure.qrcode {
2
+ width: 30%;
3
+ background-color: rgba(0, 0, 0, 0.4);
4
+ padding: .5rem;
5
+ border-radius: .5rem;
6
+ position: relative;
7
+ max-width: 200px;
8
+ }
9
+
10
+ figure.qrcode:before {
11
+ content: "read in your mobile";
12
+ font-size: .5rem;
13
+ position: absolute;
14
+ color: white;
15
+ top: -0.8rem;
16
+ width: 100%;
17
+ left: 0;
18
+ text-align: center;
19
+ text-shadow: 1px 1px black;
20
+ }
@@ -1,5 +1,5 @@
1
1
 
2
- .obsvideo.inner {
2
+ .item-video.inner {
3
3
  margin: 1rem;
4
4
  border-radius: 0.5rem !important;
5
5
  overflow: hidden;
@@ -24,6 +24,8 @@ import "../../css/css-core/root.css";
24
24
  import "../../css/css-core/root.fullheight.css";
25
25
  import "../../css/css-core/ui.dialog.round.css";
26
26
  import "../../css/css-core/ui.notifications.css";
27
+ import "../../css/css-core/ui.navibar.css";
28
+ import "../../css/css-core/ui.qrcode.css";
27
29
 
28
30
  import "../../css/css-featurelist/feature.css";
29
31
  import "../../css/css-featurelist/tail.css";
@@ -32,5 +34,11 @@ import "../../css/css-screens/screens-meta.css";
32
34
 
33
35
  import "../../css/css-unsplash/unsplash.css";
34
36
  import "../../css/css-videos/youtube.css";
37
+ import "../../css/css-videos/item-video.css";
35
38
  import "../../css/css-wiki/wiki.css";
36
39
  import "../../css/css-wiki/wiki.sidepane.css";
40
+
41
+ import "../../css/skin/skin.dark.css";
42
+ import "../../css/skin/skin.light.css";
43
+ import "../../css/skin/vars.font.css";
44
+ import "../../css/skin/vars.sizes.css";
@@ -7,6 +7,7 @@
7
7
  import "./css/cookies.css";
8
8
 
9
9
  import {get, set} from "../support/persistsettings.mjs"
10
+ import {start as startAnalytics} from "../core.cookies/analytics.mjs"
10
11
 
11
12
  function hasThirdParty() {
12
13
  return get("cookies.third");
@@ -90,9 +91,6 @@ function initServices(useAnalytics, useThidParty) {
90
91
  if (useAnalytics && SITE && SITE.analytics) {
91
92
 
92
93
  try {
93
- const
94
- [, , startAnalytics] = require("support/statify-v3/land/src/client/util.cookies/analytics.mjs");
95
-
96
94
  startAnalytics(SITE.analytics);
97
95
  } catch (e) {
98
96
  //
@@ -1,5 +1,7 @@
1
- import TimeUtils from "../support/timeutils"
2
- import QRCode from "../support/qrcode"
1
+ import TimeUtils from "../support/timeutils";
2
+ import QRCode from "../support/qrcode";
3
+ import initDoc from "../core.extra/extra.document.mjs";
4
+ import initContractable from "../core.extra/extra.faq.mjs";
3
5
 
4
6
  import "./css/howto.css";
5
7
  import "./css/faq.css";
@@ -50,8 +52,6 @@ function Common() {
50
52
  }
51
53
 
52
54
  const
53
- initDoc = require("support/statify-v3/src.website/src/core.extra/extra.document.mjs"),
54
- initContractable = require("support/statify-v3/src.website/src/core.extra/extra.faq.mjs"),
55
55
  Inits = {
56
56
  Markdown: initDoc,
57
57
  Faq: () => initContractable("question"),
@@ -4,11 +4,7 @@
4
4
  * @module app.utils
5
5
  */
6
6
 
7
- /* global ObjectAssign */
8
-
9
- // noinspection NpmUsedModulesInstalled
10
- const
11
- m = require("mithril");
7
+ import m from "mithril";
12
8
 
13
9
  function decodeTimeInterval(datems) {
14
10
  const date = new Date(datems);
@@ -82,11 +82,18 @@
82
82
  "content": "white"
83
83
  }
84
84
  ],
85
- "links": {
86
- "documents": {
87
- "static": true,
88
- "icon": "file",
89
- "class": "grows"
85
+
86
+ "navibar": {
87
+ "home": "/",
88
+ "logo": "res/logos/logo.medallion.png",
89
+ "displayTitle": true,
90
+ "autoHide": true,
91
+ "links": {
92
+ "documents": {
93
+ "static": true,
94
+ "icon": "file-alt",
95
+ "class": "inter"
96
+ }
90
97
  }
91
98
  },
92
99
  "breadcrumb": {