forked from johnpantini/ppp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop.html
147 lines (136 loc) · 3.84 KB
/
desktop.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="ru" ppp-type="desktop" class="desktop">
<head>
<meta charset="UTF-8" />
<style>
*:not(:defined) {
visibility: hidden;
}
*,
*:before,
*:after {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
html,
body {
margin: 0;
padding: 0;
position: relative;
font-smooth: always;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100%;
overflow: hidden auto;
scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.3);
scrollbar-width: thin;
}
body[appearance='leafygreen'] {
display: flex;
flex-direction: column;
flex-grow: 1;
position: relative;
width: 100%;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.3);
}
</style>
<title>PPP Console</title>
<link rel="manifest" href="manifest.json" />
<link rel="icon" href="static/icons/favicon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="static/icons/apple-touch-icon.png" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="application-name" content="PPP Terminal" />
<meta name="apple-mobile-web-app-title" content="PPP Console" />
<meta name="msapplication-TileColor" content="#131722" />
<meta name="theme-color" content="#131722" />
<meta name="msapplication-navbutton-color" content="#131722" />
<meta name="msapplication-starturl" content="/" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
</head>
<template id="ppp-loader">
<style>
:host {
position: absolute;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
top: 50%;
transform: translateY(-60%);
}
.text {
margin-top: 32px;
color: #a09f9e;
font-size: 18px;
font-family: -apple-system, BlinkMacSystemFont, Roboto, Segoe UI,
'Trebuchet MS', Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue,
Icons16, sans-serif;
text-align: center;
position: relative;
text-transform: uppercase;
}
:host(.error) .text {
color: rgb(219, 48, 48);
}
img.loader {
max-width: 512px;
}
input {
margin-top: 16px;
box-sizing: border-box;
width: 256px;
border-radius: 4px;
padding: 0 12px;
font-size: 14px;
font-weight: normal;
border: 1px solid rgb(137, 151, 155);
z-index: 1;
outline: none;
color: rgb(33, 49, 60);
background-color: rgb(255, 255, 255);
font-family: -apple-system, BlinkMacSystemFont, Roboto, Segoe UI,
'Trebuchet MS', Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue,
Icons16, sans-serif;
text-transform: inherit;
}
</style>
<img
class="loader"
draggable="false"
alt="Loading"
src="static/loading.svg"
/>
<div class="text"></div>
<input hidden placeholder="URL сервисной машины" />
</template>
<script type="module" src="main.js"></script>
<body>
<ppp-loader id="global-loader"></ppp-loader>
<div
class="toast"
role="status"
aria-live="polite"
aria-atomic="true"
aria-relevant="all"
>
<ppp-toast></ppp-toast>
</div>
</body>
<script async src="./vendor/polyglot.min.js"></script>
</html>