@dssp/dcsp 0.0.26 → 0.0.27
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/_index.html +2 -2
- package/assets/manifest.json +2 -2
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/views/auth-page.html +2 -2
- package/views/public/home.html +2 -2
package/_index.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<link rel="manifest" href="/assets/manifest.json" />
|
|
17
17
|
|
|
18
18
|
<!-- See https://goo.gl/qRE0vM -->
|
|
19
|
-
<meta name="theme-color" content="#
|
|
19
|
+
<meta name="theme-color" content="#6F2423" />
|
|
20
20
|
|
|
21
21
|
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
|
|
22
22
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<!-- Tile icon for Windows 8 (144x144 + tile color) -->
|
|
41
41
|
<meta name="msapplication-TileImage" content="/assets/manifest/icon-144x144.png" />
|
|
42
|
-
<meta name="msapplication-TileColor" content="#
|
|
42
|
+
<meta name="msapplication-TileColor" content="#6F2423" />
|
|
43
43
|
<meta name="msapplication-tap-highlight" content="no" />
|
|
44
44
|
|
|
45
45
|
<!-- Default twitter cards -->
|
package/assets/manifest.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
export declare class HomePage extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
private _applicationMeta;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
get applicationMeta(): any;
|
|
8
|
+
}
|
|
@@ -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;AA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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"]}
|