-
Notifications
You must be signed in to change notification settings - Fork 0
/
_index.html
133 lines (116 loc) · 5.34 KB
/
_index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Things Factory App</title>
<meta name="generator" content="Things Factory Starter Kit" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Reimagining Software" />
<base href="/" />
<link rel="icon" href="/assets/favicon.ico" />
<!-- See https://goo.gl/OOhYW5 -->
<link rel="manifest" href="/assets/manifest.json" />
<!-- See https://goo.gl/qRE0vM -->
<meta name="theme-color" content="#22a6a7" />
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
<meta name="mobile-web-app-capable" content="yes" />
<meta name="application-name" content="Things Factory" />
<meta name="application-description" content="Reimagining Software" />
<meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
<link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="Things Factory" />
<!-- Homescreen icons -->
<link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/assets/manifest/icon-72x72.png" />
<link rel="apple-touch-icon" sizes="96x96" href="/assets/manifest/icon-96x96.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/assets/manifest/icon-144x144.png" />
<link rel="apple-touch-icon" sizes="192x192" href="/assets/manifest/icon-192x192.png" />
<!-- Tile icon for Windows 8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="/assets/manifest/icon-144x144.png" />
<meta name="msapplication-TileColor" content="#3f51b5" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- Default twitter cards -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@username" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="things-factory, Reimagining Software." />
<meta property="og:image" content="/assets/manifest/image-metaog.png" />
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
<script>
// Load and register pre-caching Service Worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker
.register('/service-worker.js', {
scope: '/'
})
.then(registration => {
console.log('SW registered: ', registration)
return registration.pushManager.getSubscription()
})
.then(subscription => {
if (subscription) {
console.log('Already subscribed', subscription.endpoint)
}
})
})
navigator.serviceWorker.addEventListener('message', function (e) {
if (!e.data) return
switch (e.data) {
case 'show-reload-snackbar':
document.dispatchEvent(
new CustomEvent('notify', {
composed: true,
bubbles: true,
detail: {
level: 'info',
message: 'The application has been updated.', // 응용 프로그램이 업데이트되었습니다.
option: {
action: {
label: 'reload',
callback: () => window.location.reload()
},
timer: -1
}
}
})
)
break
}
})
}
// Redux assumes `process.env.NODE_ENV` exists in the ES module build.
// https://github.com/reactjs/redux/issues/2907
window.process = { env: { NODE_ENV: 'production' } }
</script>
<!-- Add any global styles for body, document, etc. -->
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
/* This is a font-stack that tries to use the system-default sans-serifs first */
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<things-app></things-app>
<noscript>
Please enable JavaScript to view this website.
</noscript>
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="node_modules/web-animations-js/web-animations-next.min.js"></script>
<script src="node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
<!-- Built with love using PWA Starter Kit -->
</body>
</html>