This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathabout.html
166 lines (146 loc) · 5.45 KB
/
about.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="ja">
<head>
<title>TheDesk</title>
<meta content="width=device-width,initial-scale=1.0" name="viewport" />
<link href="./node_modules/@cutls/materialize-css/dist/css/materialize.css" type="text/css" rel="stylesheet" />
<link href="./css/font-awesome.css" rel="stylesheet" type="text/css" />
<link href="./css/themes.css" type="text/css" rel="stylesheet" />
<link href="./css/master.css" type="text/css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Open+Sans:300|Baloo+Bhai" rel="stylesheet" />
<meta charset="utf-8" />
<style>
body {
-webkit-app-region: drag;
cursor: move;
padding: 5px;
padding-top: 15px;
background-color: var(--bg);
}
#head {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
.cp {
margin-top: 15px;
}
.heart {
width: 1rem;
position: relative;
top: 2px;
left: 2px;
}
a,
button {
-webkit-app-region: no-drag;
}
.container {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
grid-template-areas: 'name1 data1' 'name2 data2' 'name3 data3' 'name4 data4' 'name5 data5' 'name6 data6';
text-align: left;
margin: 5px;
}
.area-name1 {
grid-area: name1;
}
.area-data1 {
grid-area: data1;
}
.area-name2 {
grid-area: name2;
}
.area-data2 {
grid-area: data2;
}
.area-name3 {
grid-area: name3;
}
.area-data3 {
grid-area: data3;
}
.area-name4 {
grid-area: name4;
}
.area-data4 {
grid-area: data4;
}
.area-name5 {
grid-area: name5;
}
.area-data5 {
grid-area: data5;
}
.area-name6 {
grid-area: name6;
}
.area-data6 {
grid-area: data6;
}
</style>
<script>
var useLang = 'en'
</script>
</head>
<body class="center" style="overflow: hidden;">
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="./node_modules/@cutls/materialize-css/dist/js/materialize.js"></script>
<div id="head">
<img src="./img/desk.svg" style="width: 100px" />
<h4>TheDesk</h4>
</div>
<div class="container">
<div class="area-name1">Display version</div>
<div class="area-data1" id="now"></div>
<div class="area-name2">Internal version</div>
<div class="area-data2" id="ver"></div>
<div class="area-name3">Commit(7chars)</div>
<div class="area-data3" id="hash"></div>
<div class="area-name4">Chromium</div>
<div class="area-data4" id="chrome"></div>
<div class="area-name5">Electron</div>
<div class="area-data5" id="electron"></div>
<div class="area-name6">Node.js</div>
<div class="area-data6" id="node"></div>
</div>
<div class="cp">
Copyright © TheDesk 2018 (<a href="https://thedesk.top">website</a>)<br />
<p style="height: 10px; margin: 0;"></p>
Made by <a href="https://2m.cutls.com/@Cutls" target="_blank">Cutls P</a> and contributors with love<img
draggable="false" class="heart" alt="❤️" title=":heart:"
src="https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/72x72/2764.png"><br />
<p style="height: 10px; margin: 0;"></p>
Contributors<br />
<div id="contributors" style="max-height: 92px; overflow-y: hidden; margin-top: 5px; margin-bottom: 5px;"></div>
</div>
<button onclick="window.close()" class="btn waves-effect indigo" style="width: calc(100% - 10px);"><i
class="material-icons left">close</i>Close</button>
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="./node_modules/grapheme-splitter/index.js"></script>
<script type="text/javascript" src="./node_modules/jquery-ui-dist/jquery-ui.min.js"></script>
<script type="text/javascript" src="./node_modules/@cutls/materialize-css/dist/js/materialize.js"></script>
<script type="text/javascript" src="contributors.js"></script>
<script>
var about = JSON.parse(localStorage.getItem('about'))
$('#now').text(localStorage.getItem('ver'))
$('#node').text(about[0])
$('#chrome').text(about[1])
$('#electron').text(about[2])
if (location.search) {
var m = location.search.match(/\?ver=([a-zA-Z-0-9.]+)/)
var ver = m[1]
$('#ver').text(ver)
}
const gitHash = localStorage.getItem('gitHash') || ''
$('#hash').html('<a href="https://github.com/cutls/TheDesk/commits/' + gitHash + '">' + gitHash.slice(0, 7) + '</a>')
const cut = contributors.slice(1)
for (const c of cut) {
$('#contributors').append(`<a href="${c.url}" title="${c.name}"><img src="${c.avatar}" width="35" style="border-radius: 50%; margin-right: 3px;" /></a>`)
}
</script>
</body>
</html>