@dssp/dssp 1.0.0 → 1.0.2
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/dist-client/bootstrap.d.ts +9 -0
- package/dist-client/bootstrap.js +304 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/entries/auth/checkin.d.ts +38 -0
- package/dist-client/entries/auth/checkin.js +546 -0
- package/dist-client/entries/auth/checkin.js.map +1 -0
- package/dist-client/entries/public/home.d.ts +8 -0
- package/dist-client/entries/public/home.js +97 -0
- package/dist-client/entries/public/home.js.map +1 -0
- package/dist-client/icons/menu-icons.d.ts +5 -0
- package/dist-client/icons/menu-icons.js +84 -0
- package/dist-client/icons/menu-icons.js.map +1 -0
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/menu.d.ts +1 -0
- package/dist-client/menu.js +4 -0
- package/dist-client/menu.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +7 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/themes/dark.css +51 -0
- package/dist-client/themes/light.css +51 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/viewparts/menu-tools.d.ts +16 -0
- package/dist-client/viewparts/menu-tools.js +171 -0
- package/dist-client/viewparts/menu-tools.js.map +1 -0
- package/dist-client/viewparts/user-circle.d.ts +5 -0
- package/dist-client/viewparts/user-circle.js +26 -0
- package/dist-client/viewparts/user-circle.js.map +1 -0
- package/dist-server/index.d.ts +0 -0
- package/dist-server/index.js +1 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
|
+
import { customElement } from 'lit/decorators.js';
|
|
5
|
+
let HomePage = class HomePage extends LitElement {
|
|
6
|
+
render() {
|
|
7
|
+
var { title, description } = this.applicationMeta;
|
|
8
|
+
return html `
|
|
9
|
+
<div message>
|
|
10
|
+
<strong>${title}</strong>
|
|
11
|
+
${description}
|
|
12
|
+
<video autoplay muted playsinline loop>
|
|
13
|
+
<source src="/assets/videos/intro.mp4" type="video/mp4" />
|
|
14
|
+
</video>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<md-icon signin @click=${e => (window.location.href = '/auth/signin')}>login</md-icon>
|
|
18
|
+
`;
|
|
19
|
+
}
|
|
20
|
+
get applicationMeta() {
|
|
21
|
+
if (!this._applicationMeta) {
|
|
22
|
+
var iconLink = document.querySelector('link[rel="application-icon"]');
|
|
23
|
+
var titleMeta = document.querySelector('meta[name="application-name"]');
|
|
24
|
+
var descriptionMeta = document.querySelector('meta[name="application-description"]');
|
|
25
|
+
this._applicationMeta = {
|
|
26
|
+
icon: iconLink === null || iconLink === void 0 ? void 0 : iconLink.href,
|
|
27
|
+
title: (titleMeta === null || titleMeta === void 0 ? void 0 : titleMeta.content) || 'Things Factory',
|
|
28
|
+
description: (descriptionMeta === null || descriptionMeta === void 0 ? void 0 : descriptionMeta.content) || 'Reimagining Software'
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return this._applicationMeta;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
HomePage.styles = [
|
|
35
|
+
css `
|
|
36
|
+
:host {
|
|
37
|
+
background-color: var(--md-sys-color-background);
|
|
38
|
+
|
|
39
|
+
display: block;
|
|
40
|
+
position: relative;
|
|
41
|
+
|
|
42
|
+
max-width: 100vw;
|
|
43
|
+
width: 100vw;
|
|
44
|
+
height: 100vh;
|
|
45
|
+
height: 100dvh;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[signin] {
|
|
49
|
+
position: absolute;
|
|
50
|
+
right: 20px;
|
|
51
|
+
top: 20px;
|
|
52
|
+
font-size: 2em;
|
|
53
|
+
color: white;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[message] {
|
|
57
|
+
background-color: rgba(50, 66, 97, 0.8);
|
|
58
|
+
padding: 60px 50px 0 50px;
|
|
59
|
+
color: #fff;
|
|
60
|
+
text-align: center;
|
|
61
|
+
font-size: 20px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[message] strong {
|
|
65
|
+
display: block;
|
|
66
|
+
font-size: 2.5rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
video {
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 50%;
|
|
72
|
+
left: 50%;
|
|
73
|
+
width: 100vw;
|
|
74
|
+
height: 100vh;
|
|
75
|
+
object-fit: cover;
|
|
76
|
+
transform: translate(-50%, -50%);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media screen and (max-width: 480px) {
|
|
80
|
+
[message] {
|
|
81
|
+
padding: 60px 30px 0 30px;
|
|
82
|
+
color: #fff;
|
|
83
|
+
text-align: center;
|
|
84
|
+
font-size: 15px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[message] strong {
|
|
88
|
+
font-size: 1.6rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`
|
|
92
|
+
];
|
|
93
|
+
HomePage = __decorate([
|
|
94
|
+
customElement('home-page')
|
|
95
|
+
], HomePage);
|
|
96
|
+
export { HomePage };
|
|
97
|
+
//# sourceMappingURL=home.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../client/entries/public/home.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAG1C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IA+DtC,MAAM;QACJ,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,eAAe,CAAA;QAEjD,OAAO,IAAI,CAAA;;kBAEG,KAAK;UACb,WAAW;;;;;;+BAMU,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,cAAc,CAAC;KACtE,CAAA;IACH,CAAC;IAED,IAAI,eAAe;QACjB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,IAAI,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,8BAA8B,CAAoB,CAAA;YACxF,IAAI,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,+BAA+B,CAAoB,CAAA;YAC1F,IAAI,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,sCAAsC,CAAoB,CAAA;YAEvG,IAAI,CAAC,gBAAgB,GAAG;gBACtB,IAAI,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI;gBACpB,KAAK,EAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,OAAO,KAAI,gBAAgB;gBAC7C,WAAW,EAAE,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,OAAO,KAAI,sBAAsB;aAChE,CAAA;QACH,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,CAAA;IAC9B,CAAC;;AA5FM,eAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwDF;CACF,AA1DY,CA0DZ;AA3DU,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CA8FpB","sourcesContent":["import '@material/web/icon/icon.js'\n\nimport { css, html, LitElement } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('home-page')\nexport class HomePage extends LitElement {\n static styles = [\n css`\n :host {\n background-color: var(--md-sys-color-background);\n\n display: block;\n position: relative;\n\n max-width: 100vw;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n }\n\n [signin] {\n position: absolute;\n right: 20px;\n top: 20px;\n font-size: 2em;\n color: white;\n }\n\n [message] {\n background-color: rgba(50, 66, 97, 0.8);\n padding: 60px 50px 0 50px;\n color: #fff;\n text-align: center;\n font-size: 20px;\n }\n\n [message] strong {\n display: block;\n font-size: 2.5rem;\n }\n\n video {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100vw;\n height: 100vh;\n object-fit: cover;\n transform: translate(-50%, -50%);\n }\n\n @media screen and (max-width: 480px) {\n [message] {\n padding: 60px 30px 0 30px;\n color: #fff;\n text-align: center;\n font-size: 15px;\n }\n\n [message] strong {\n font-size: 1.6rem;\n }\n }\n `\n ]\n\n private _applicationMeta\n\n render() {\n var { title, description } = this.applicationMeta\n\n return html`\n <div message>\n <strong>${title}</strong>\n ${description}\n <video autoplay muted playsinline loop>\n <source src=\"/assets/videos/intro.mp4\" type=\"video/mp4\" />\n </video>\n </div>\n\n <md-icon signin @click=${e => (window.location.href = '/auth/signin')}>login</md-icon>\n `\n }\n\n get applicationMeta() {\n if (!this._applicationMeta) {\n var iconLink = document.querySelector('link[rel=\"application-icon\"]') as HTMLLinkElement\n var titleMeta = document.querySelector('meta[name=\"application-name\"]') as HTMLMetaElement\n var descriptionMeta = document.querySelector('meta[name=\"application-description\"]') as HTMLMetaElement\n\n this._applicationMeta = {\n icon: iconLink?.href,\n title: titleMeta?.content || 'Things Factory',\n description: descriptionMeta?.content || 'Reimagining Software'\n }\n }\n\n return this._applicationMeta\n }\n}\n"]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const ICON_PROGRESS = `
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.menu-svg {
|
|
6
|
+
fill: #fff;
|
|
7
|
+
stroke: {{strokecolor}};
|
|
8
|
+
stroke-width: 0px;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
</defs>
|
|
12
|
+
|
|
13
|
+
<path class="menu-svg" d="M31,36.5c-.2,0-.4,0-.6,0-.2,0-.3-.2-.5-.3l-8.3-8.3c-.2-.2-.3-.3-.3-.5,0-.2,0-.4,0-.6s0-.4,0-.6c0-.2.2-.3.3-.5l3.1-3.1c.2-.2.3-.3.5-.3.2,0,.4,0,.6,0s.4,0,.6,0c.2,0,.3.2.5.3l8.3,8.3c.2.2.3.3.3.5,0,.2,0,.4,0,.6s0,.4,0,.6c0,.2-.2.3-.3.5l-3.1,3.1c-.2.2-.3.3-.5.3-.2,0-.4,0-.6,0ZM31,33.6l1.8-1.8-6.9-6.9-1.8,1.8,6.9,6.9ZM8.9,36.5c-.2,0-.4,0-.6-.1-.2,0-.3-.2-.5-.3l-3.1-3.1c-.2-.2-.3-.3-.3-.5,0-.2-.1-.4-.1-.6s0-.4.1-.6c0-.2.2-.3.3-.5l8.6-8.6h3.5l1.3-1.3-6.9-6.9h-2.4l-4.6-4.6,4.1-4.1,4.6,4.6v2.4l6.9,6.9,4.9-4.9-2.4-2.4,2.1-2.1h-4.2l-.9-.9,5.3-5.3.9.9v4.2l2.1-2.1,6.2,6.2c.4.4.8.9,1,1.5.2.5.3,1.1.3,1.7s0,1-.3,1.5c-.2.5-.5.9-.8,1.4l-3.5-3.5-2.3,2.3-1.8-1.8-8,8v3.5l-8.6,8.6c-.2.2-.3.3-.5.3-.2,0-.4.1-.6.1ZM8.9,33.6l7.6-7.6v-1.8h-1.8l-7.6,7.6,1.8,1.8ZM8.9,33.6l-1.8-1.8.9.9.9.9ZM31,33.6l1.8-1.8-1.8,1.8Z"/>
|
|
14
|
+
</svg>
|
|
15
|
+
`;
|
|
16
|
+
const ICON_COMPLETED = `
|
|
17
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
|
|
18
|
+
<defs>
|
|
19
|
+
<style>
|
|
20
|
+
.menu-svg {
|
|
21
|
+
fill: #fff;
|
|
22
|
+
stroke: {{strokecolor}};
|
|
23
|
+
stroke-width: 0px;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
</defs>
|
|
27
|
+
|
|
28
|
+
<path class="menu-svg" d="M27.9,15.1h2.7v-2.8h-2.7v2.8ZM27.9,21.4h2.7v-2.8h-2.7v2.8ZM27.9,27.7h2.7v-2.8h-2.7v2.8ZM26.9,33.3v-2.4h6.9V9h-14.2v2.8l-2.3-1.7v-3.5h18.7v26.7s-9.1,0-9.1,0ZM4,33.3v-14.5l9.9-7.3,9.9,7.3v14.5h-8.1v-7.5h-3.5v7.5H4ZM6.3,31h3.6v-7.5h8v7.5h3.6v-11l-7.7-5.5-7.7,5.5v11h0ZM18,31v-7.5h-8v7.5-7.5h8v7.5Z"/>
|
|
29
|
+
</svg>
|
|
30
|
+
`;
|
|
31
|
+
const ICON_STATUS = `
|
|
32
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
|
|
33
|
+
<defs>
|
|
34
|
+
<style>
|
|
35
|
+
.menu-svg {
|
|
36
|
+
fill: #fff;
|
|
37
|
+
stroke: {{strokecolor}};
|
|
38
|
+
stroke-width: 0px;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
</defs>
|
|
42
|
+
|
|
43
|
+
<path class="menu-svg" d="M7.4,33.9c-.8,0-1.5-.3-2.1-.8-.6-.6-.8-1.3-.8-2.1V9c0-.8.3-1.5.8-2.1.6-.6,1.3-.8,2.1-.8h25.2c.8,0,1.5.3,2.1.8s.8,1.3.8,2.1v21.9c0,.8-.3,1.5-.8,2.1s-1.3.8-2.1.8H7.4ZM7.4,31.4h25.2c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4V9c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H7.4c0,0-.3,0-.4.2,0,0-.2.2-.2.4v21.9c0,0,0,.3.2.4,0,0,.2.2.4.2h0ZM8.9,27.7h7.3v-2.4h-7.3v2.4ZM24.2,24.3l7.5-7.5-1.8-1.8-5.7,5.8-2.4-2.4-1.7,1.8s4.1,4.1,4.1,4.1ZM8.9,21.2h7.3v-2.4h-7.3v2.4ZM8.9,14.6h7.3v-2.4h-7.3s0,2.4,0,2.4ZM6.9,31.4V8.5v22.9Z"/>
|
|
44
|
+
</svg>
|
|
45
|
+
`;
|
|
46
|
+
const ICON_OPERATING = `
|
|
47
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
|
|
48
|
+
<defs>
|
|
49
|
+
<style>
|
|
50
|
+
.menu-svg {
|
|
51
|
+
fill: #fff;
|
|
52
|
+
stroke: {{strokecolor}};
|
|
53
|
+
stroke-width: 0px;
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
56
|
+
</defs>
|
|
57
|
+
|
|
58
|
+
<path class="menu-svg" d="M9.1,35.5c-.8,0-1.5-.3-2.1-.8-.6-.6-.8-1.2-.8-2.1V10.9c0-.8.3-1.5.8-2.1.6-.6,1.2-.8,2.1-.8h2.3v-3.5h2.5v3.5h12.3v-3.5h2.4v3.5h2.3c.8,0,1.5.3,2.1.8.6.6.8,1.2.8,2.1v21.7c0,.8-.3,1.5-.8,2.1s-1.2.8-2.1.8c0,0-21.8,0-21.8,0ZM9.1,33.1h21.7c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4v-15.2H8.5v15.2c0,0,0,.3.2.4,0,0,.2.2.4.2ZM8.5,14.9h22.7v-4c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H9.1c0,0-.3,0-.4.2,0,0-.2.2-.2.4,0,0,0,4,0,4ZM8.5,14.9v-4.5,4.5ZM12.2,22.9v-2.4h15.4v2.4s-15.4,0-15.4,0ZM12.2,29.4v-2.4h10.5v2.4h-10.5Z"/>
|
|
59
|
+
</svg>
|
|
60
|
+
`;
|
|
61
|
+
const ICON_SETTING = `
|
|
62
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
|
|
63
|
+
<defs>
|
|
64
|
+
<style>
|
|
65
|
+
.menu-svg {
|
|
66
|
+
fill: #fff;
|
|
67
|
+
stroke: {{strokecolor}};
|
|
68
|
+
stroke-width: 0px;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
</defs>
|
|
72
|
+
|
|
73
|
+
<path class="menu-svg" d="M13.1,24.2h2v-5.7h-2v1.9h-2.4v2h2.4v1.9h0ZM16.7,22.3h12.8v-2h-12.8v2ZM25,18.1h2v-1.9h2.4v-2h-2.4v-1.9h-2v5.7h0ZM10.6,16.2h12.8v-2h-12.8v2ZM14.3,34v-3.3h-6.9c-.8,0-1.5-.3-2.1-.8s-.8-1.3-.8-2.1V8.9c0-.8.3-1.6.8-2.1.6-.5,1.3-.8,2.1-.8h25.2c.8,0,1.5.3,2.1.8s.8,1.3.8,2.1v18.8c0,.8-.3,1.6-.8,2.1-.6.5-1.3.8-2.1.8h-6.9v3.3h-11.5,0ZM7.5,28.2h25.2c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4V8.9c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H7.5c0,0-.3,0-.4.2,0,0-.2.2-.2.4v18.8c0,0,0,.3.2.4,0,0,.2.2.4.2h0ZM6.9,28.2V8.4v19.8Z"/>
|
|
74
|
+
</svg>
|
|
75
|
+
`;
|
|
76
|
+
function icons(template) {
|
|
77
|
+
return ['#ffffff', '#64A3D9'].map(color => 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(template.replace(/{{strokecolor}}/g, color)));
|
|
78
|
+
}
|
|
79
|
+
export const ICONS_PROGRESS = icons(ICON_PROGRESS);
|
|
80
|
+
export const ICONS_COMPLETED = icons(ICON_COMPLETED);
|
|
81
|
+
export const ICONS_STATUS = icons(ICON_STATUS);
|
|
82
|
+
export const ICONS_OPERATING = icons(ICON_OPERATING);
|
|
83
|
+
export const ICONS_SETTING = icons(ICON_SETTING);
|
|
84
|
+
//# sourceMappingURL=menu-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-icons.js","sourceRoot":"","sources":["../../client/icons/menu-icons.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG;;;;;;;;;;;;;;CAcrB,CAAA;AAED,MAAM,cAAc,GAAG;;;;;;;;;;;;;;CActB,CAAA;AAED,MAAM,WAAW,GAAG;;;;;;;;;;;;;;CAcnB,CAAA;AAED,MAAM,cAAc,GAAG;;;;;;;;;;;;;;CActB,CAAA;AAED,MAAM,YAAY,GAAG;;;;;;;;;;;;;;CAcpB,CAAA;AAED,SAAS,KAAK,CAAC,QAAQ;IACrB,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,GAAG,CAC/B,KAAK,CAAC,EAAE,CAAC,0CAA0C,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC,CACxG,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,CAAA;AAClD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,CAAA;AACpD,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,CAAA;AAC9C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,CAAA;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,YAAY,CAAC,CAAA","sourcesContent":["const ICON_PROGRESS = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 40 40\">\n <defs>\n <style>\n .menu-svg {\n fill: #fff;\n\t\t\t\tstroke: {{strokecolor}};\n stroke-width: 0px;\n }\n </style>\n </defs>\n \n <path class=\"menu-svg\" d=\"M31,36.5c-.2,0-.4,0-.6,0-.2,0-.3-.2-.5-.3l-8.3-8.3c-.2-.2-.3-.3-.3-.5,0-.2,0-.4,0-.6s0-.4,0-.6c0-.2.2-.3.3-.5l3.1-3.1c.2-.2.3-.3.5-.3.2,0,.4,0,.6,0s.4,0,.6,0c.2,0,.3.2.5.3l8.3,8.3c.2.2.3.3.3.5,0,.2,0,.4,0,.6s0,.4,0,.6c0,.2-.2.3-.3.5l-3.1,3.1c-.2.2-.3.3-.5.3-.2,0-.4,0-.6,0ZM31,33.6l1.8-1.8-6.9-6.9-1.8,1.8,6.9,6.9ZM8.9,36.5c-.2,0-.4,0-.6-.1-.2,0-.3-.2-.5-.3l-3.1-3.1c-.2-.2-.3-.3-.3-.5,0-.2-.1-.4-.1-.6s0-.4.1-.6c0-.2.2-.3.3-.5l8.6-8.6h3.5l1.3-1.3-6.9-6.9h-2.4l-4.6-4.6,4.1-4.1,4.6,4.6v2.4l6.9,6.9,4.9-4.9-2.4-2.4,2.1-2.1h-4.2l-.9-.9,5.3-5.3.9.9v4.2l2.1-2.1,6.2,6.2c.4.4.8.9,1,1.5.2.5.3,1.1.3,1.7s0,1-.3,1.5c-.2.5-.5.9-.8,1.4l-3.5-3.5-2.3,2.3-1.8-1.8-8,8v3.5l-8.6,8.6c-.2.2-.3.3-.5.3-.2,0-.4.1-.6.1ZM8.9,33.6l7.6-7.6v-1.8h-1.8l-7.6,7.6,1.8,1.8ZM8.9,33.6l-1.8-1.8.9.9.9.9ZM31,33.6l1.8-1.8-1.8,1.8Z\"/>\n</svg>\n`\n\nconst ICON_COMPLETED = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 40 40\">\n <defs>\n <style>\n .menu-svg {\n fill: #fff;\n\t\t\t\tstroke: {{strokecolor}};\n stroke-width: 0px;\n }\n </style>\n </defs>\n \n <path class=\"menu-svg\" d=\"M27.9,15.1h2.7v-2.8h-2.7v2.8ZM27.9,21.4h2.7v-2.8h-2.7v2.8ZM27.9,27.7h2.7v-2.8h-2.7v2.8ZM26.9,33.3v-2.4h6.9V9h-14.2v2.8l-2.3-1.7v-3.5h18.7v26.7s-9.1,0-9.1,0ZM4,33.3v-14.5l9.9-7.3,9.9,7.3v14.5h-8.1v-7.5h-3.5v7.5H4ZM6.3,31h3.6v-7.5h8v7.5h3.6v-11l-7.7-5.5-7.7,5.5v11h0ZM18,31v-7.5h-8v7.5-7.5h8v7.5Z\"/>\n</svg>\n`\n\nconst ICON_STATUS = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 40 40\">\n <defs>\n <style>\n .menu-svg {\n fill: #fff;\n\t\t\t\tstroke: {{strokecolor}};\n stroke-width: 0px;\n }\n </style>\n </defs>\n\n <path class=\"menu-svg\" d=\"M7.4,33.9c-.8,0-1.5-.3-2.1-.8-.6-.6-.8-1.3-.8-2.1V9c0-.8.3-1.5.8-2.1.6-.6,1.3-.8,2.1-.8h25.2c.8,0,1.5.3,2.1.8s.8,1.3.8,2.1v21.9c0,.8-.3,1.5-.8,2.1s-1.3.8-2.1.8H7.4ZM7.4,31.4h25.2c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4V9c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H7.4c0,0-.3,0-.4.2,0,0-.2.2-.2.4v21.9c0,0,0,.3.2.4,0,0,.2.2.4.2h0ZM8.9,27.7h7.3v-2.4h-7.3v2.4ZM24.2,24.3l7.5-7.5-1.8-1.8-5.7,5.8-2.4-2.4-1.7,1.8s4.1,4.1,4.1,4.1ZM8.9,21.2h7.3v-2.4h-7.3v2.4ZM8.9,14.6h7.3v-2.4h-7.3s0,2.4,0,2.4ZM6.9,31.4V8.5v22.9Z\"/>\n</svg>\n`\n\nconst ICON_OPERATING = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 40 40\">\n <defs>\n <style>\n .menu-svg {\n fill: #fff;\n\t\t\t\tstroke: {{strokecolor}};\n stroke-width: 0px;\n }\n </style>\n </defs>\n \n <path class=\"menu-svg\" d=\"M9.1,35.5c-.8,0-1.5-.3-2.1-.8-.6-.6-.8-1.2-.8-2.1V10.9c0-.8.3-1.5.8-2.1.6-.6,1.2-.8,2.1-.8h2.3v-3.5h2.5v3.5h12.3v-3.5h2.4v3.5h2.3c.8,0,1.5.3,2.1.8.6.6.8,1.2.8,2.1v21.7c0,.8-.3,1.5-.8,2.1s-1.2.8-2.1.8c0,0-21.8,0-21.8,0ZM9.1,33.1h21.7c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4v-15.2H8.5v15.2c0,0,0,.3.2.4,0,0,.2.2.4.2ZM8.5,14.9h22.7v-4c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H9.1c0,0-.3,0-.4.2,0,0-.2.2-.2.4,0,0,0,4,0,4ZM8.5,14.9v-4.5,4.5ZM12.2,22.9v-2.4h15.4v2.4s-15.4,0-15.4,0ZM12.2,29.4v-2.4h10.5v2.4h-10.5Z\"/>\n</svg>\n`\n\nconst ICON_SETTING = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 40 40\">\n <defs>\n <style>\n .menu-svg {\n fill: #fff;\n\t\t\t\tstroke: {{strokecolor}};\n stroke-width: 0px;\n }\n </style>\n </defs>\n \n <path class=\"menu-svg\" d=\"M13.1,24.2h2v-5.7h-2v1.9h-2.4v2h2.4v1.9h0ZM16.7,22.3h12.8v-2h-12.8v2ZM25,18.1h2v-1.9h2.4v-2h-2.4v-1.9h-2v5.7h0ZM10.6,16.2h12.8v-2h-12.8v2ZM14.3,34v-3.3h-6.9c-.8,0-1.5-.3-2.1-.8s-.8-1.3-.8-2.1V8.9c0-.8.3-1.6.8-2.1.6-.5,1.3-.8,2.1-.8h25.2c.8,0,1.5.3,2.1.8s.8,1.3.8,2.1v18.8c0,.8-.3,1.6-.8,2.1-.6.5-1.3.8-2.1.8h-6.9v3.3h-11.5,0ZM7.5,28.2h25.2c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4V8.9c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H7.5c0,0-.3,0-.4.2,0,0-.2.2-.2.4v18.8c0,0,0,.3.2.4,0,0,.2.2.4.2h0ZM6.9,28.2V8.4v19.8Z\"/>\n</svg>\n`\n\nfunction icons(template) {\n return ['#ffffff', '#64A3D9'].map(\n color => 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(template.replace(/{{strokecolor}}/g, color))\n )\n}\n\nexport const ICONS_PROGRESS = icons(ICON_PROGRESS)\nexport const ICONS_COMPLETED = icons(ICON_COMPLETED)\nexport const ICONS_STATUS = icons(ICON_STATUS)\nexport const ICONS_OPERATING = icons(ICON_OPERATING)\nexport const ICONS_SETTING = icons(ICON_SETTING)\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getMenuTemplate(): Promise<never[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../client/menu.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,OAAO,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AAC3B,CAAC","sourcesContent":["export async function getMenuTemplate() {\n return [].filter(Boolean)\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function route(page: string): "/dashboard" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAY;IACxC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,EAAE;YACL,OAAO,YAAY,CAAA;IACvB,CAAC;AACH,CAAC","sourcesContent":["export default function route(page: string) {\n switch (page) {\n case '':\n return '/dashboard'\n }\n}\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark {
|
|
2
|
+
--md-sys-color-primary: rgb(198 198 199);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(198 198 199);
|
|
4
|
+
--md-sys-color-on-primary: rgb(47 49 50);
|
|
5
|
+
--md-sys-color-primary-container: rgb(17 19 20);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(159 160 161);
|
|
7
|
+
--md-sys-color-secondary: rgb(199 197 210);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(47 48 57);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(42 42 52);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(183 182 194);
|
|
11
|
+
--md-sys-color-tertiary: rgb(135 208 245);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 53 72);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(0 91 121);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(241 249 255);
|
|
15
|
+
--md-sys-color-error: rgb(255 180 171);
|
|
16
|
+
--md-sys-color-on-error: rgb(105 0 5);
|
|
17
|
+
--md-sys-color-error-container: rgb(147 0 10);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 218 214);
|
|
19
|
+
--md-sys-color-background: rgb(20 19 19);
|
|
20
|
+
--md-sys-color-on-background: rgb(229 226 225);
|
|
21
|
+
--md-sys-color-surface: rgb(20 19 19);
|
|
22
|
+
--md-sys-color-on-surface: rgb(229 226 225);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(68 71 73);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(196 199 201);
|
|
25
|
+
--md-sys-color-outline: rgb(142 145 147);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(68 71 73);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(229 226 225);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(49 48 48);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(93 94 96);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(226 226 227);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(26 28 29);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(198 198 199);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(69 71 72);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(227 225 238);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(26 27 36);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(199 197 210);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(70 70 80);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(193 232 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 30 43);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(135 208 245);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(0 77 102);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(20 19 19);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(58 57 57);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(14 14 14);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(28 27 27);
|
|
48
|
+
--md-sys-color-surface-container: rgb(32 31 31);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(42 42 42);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(53 52 52);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.light {
|
|
2
|
+
--md-sys-color-primary: rgb(1 2 2);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(93 94 96);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(37 39 40);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(177 178 179);
|
|
7
|
+
--md-sys-color-secondary: rgb(33 34 43);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(66 66 77);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(219 216 230);
|
|
11
|
+
--md-sys-color-tertiary: rgb(0 80 106);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(34 117 151);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
15
|
+
--md-sys-color-error: rgb(186 26 26);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 218 214);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(65 0 2);
|
|
19
|
+
--md-sys-color-background: rgb(246 246 246);
|
|
20
|
+
--md-sys-color-on-background: rgb(28 27 27);
|
|
21
|
+
--md-sys-color-surface: rgb(246 246 246);
|
|
22
|
+
--md-sys-color-on-surface: rgb(28 27 27);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(224 227 229);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(68 71 73);
|
|
25
|
+
--md-sys-color-outline: rgb(116 119 121);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(196 199 201);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(49 48 48);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(244 240 239);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(198 198 199);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(226 226 227);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(26 28 29);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(198 198 199);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(69 71 72);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(227 225 238);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(26 27 36);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(199 197 210);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(70 70 80);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(193 232 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 30 43);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(135 208 245);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(0 77 102);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(221 217 217);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(246 246 246);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(246 243 242);
|
|
48
|
+
--md-sys-color-surface-container: rgb(241 237 236);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(235 231 231);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(229 226 225);
|
|
51
|
+
}
|