Skip to content

Commit f7d456a

Browse files
committed
commit 2.0
0 parents  commit f7d456a

33 files changed

+2130
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/dist
2+
/node_modules
3+
/yarn.lock
4+
/.vscode

README.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Dance Everyday
2+
3+
![主页](./screenshots/home.png)
4+
![后台](./screenshots/login.png)
5+
![关于](./screenshots/about.png)
6+
7+
纪念飞饼老师,和他绝唱的Power of English
8+
9+
这是一个使用JS和Electron构建的UI极其精美的点名器,具有后台管理的功能以替换点名内容(在resources/res下的names.config),点名的机制来自JS内置的简单随机数
10+
11+
同时,我确实加入了可供两人使用的逃脱点名的机制,并且该机制可以设置触发时间,具体涉及文件`libTB.dll`
12+
13+
names.config和libTB.dll文件都使用了**CryptoJS****AES加密**机制来保证不被修改
14+
15+
# 使用
16+
17+
登录页中,在用户名框中填入文件名(写入时)或者文件路径(写出时),在密码框中输入"decode_timetable", "decode_names", "encode_names", "encode_timetable"即可实现名称对应的写入写出
18+
19+
点名内容格式遵循一行一名,也可以使用其他内容
20+
21+
时间表遵循以下格式:
22+
23+
```
24+
true //开启时间限制
25+
1 //周一
26+
12:10 13:10 //在12:10-13:10不会点名内置的两个名字
27+
12:16 13:12
28+
12:36 13:11
29+
2
30+
12:10 13:10
31+
7 //周日
32+
12:10 13:10
33+
```
34+
35+
# 开发
36+
37+
38+
## 下载依赖
39+
40+
```
41+
yarn
42+
```
43+
44+
## 开发者模式
45+
46+
```
47+
yarn dev
48+
```
49+
50+
## 构建安装程序
51+
52+
```
53+
yarn dist
54+
```
55+
56+
更多详情访问`package.json`文件
57+
58+
因为`libTB.dll``names.config`的创建来源不明,这个部分进一步的开发貌似陷入闭环
59+
60+
# 写在最后
61+
62+
耗了春节假做的点名器没有帮助逃脱Dance的命运,飞饼老师拍下的四五十条视频也没有剪辑出多么引人注目的大片,甚至看的人寥寥无几。
63+
64+
至少在回忆这个板块我拿得头筹。

icon.ico

18.2 KB
Binary file not shown.

libTB.dll

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
U2FsdGVkX187+Sp1y5MOS+Wd9bR5slqb5mue1T6DUtw=
2+
U2FsdGVkX1++YrKOSvCzzRB9bQAb/RT1b4rhlFriq0g=
3+
U2FsdGVkX1+9wW51RNYfFNdw7uEaVkVMEbvn6DsNtjg=
4+
U2FsdGVkX1+soRk9bm46LYX9OUWr71HJKVDAiAAN5/w=
5+
U2FsdGVkX1+vAELpmOs/wCBuUGO3XZbxZoRPOpzDLWg=
6+
U2FsdGVkX19tOh5AvYSZTxRPZpZCgMq3Hu2VSuO9fQc=
7+
U2FsdGVkX1+vuULjyqnCa803ji+KZy5ATgtAQBLzjf0=
8+
U2FsdGVkX19qktGNWJU7goz4gNMPlynwiWuv+s5AAdA=
9+
U2FsdGVkX1/EN64RS0K+oxMDJP6kq6kUlN0RH+1VSFA=
10+
U2FsdGVkX186uKE9nBQnrdafPgrRpoQIEJBDnxCmOTI=
11+
U2FsdGVkX1/IX8m2sBaXmB4LIWPYFA3Vgib3IVxGWng=
12+
U2FsdGVkX1+jN1+DoFSXU8QZUqMcUCvP6ogQQfmtuCk=
13+
U2FsdGVkX18u8RScsVGf5RLolquK84jRkBiGsenPo6M=
14+
U2FsdGVkX1+TNHB1M6WQU4YtWq2BiPZuT71QbJMEBDs=
15+
U2FsdGVkX1/ORBDh0KkbNwoBUUWfUn0brp7EfKz7ru0=
16+
U2FsdGVkX18zT6jeRDbLgyeizsmCfgDib9WHxHZ03bU=
17+
U2FsdGVkX1+dY8bxj6vHs22y+NxGe0NLnjrraR0pCUo=

package.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "dance_everyday",
3+
"version": "2.0.0",
4+
"description": "我就想问你你跳不跳这个飞饼の舞?",
5+
"main": "./src/index.js",
6+
"author": "HowXu",
7+
"license": "MIT",
8+
"devDependencies": {
9+
"electron": "^28.2.2",
10+
"electron-reloader": "^1.2.3"
11+
},
12+
"scripts": {
13+
"dev": "electron ./src/index.js",
14+
"pack": "electron-builder --dir",
15+
"postinstall": "electron-builder install-app-deps",
16+
"dist": "electron-builder ",
17+
"dist-win": "electron-builder --win --ia32",
18+
"dist-win64": "electron-builder --win --x64",
19+
"dist-mac": "electron-builder --mac",
20+
"dist-linux": "electron-builder --linux"
21+
},
22+
"build": {
23+
"productName": "Dance_Everyday",
24+
"appId": "cn.howxu.dance_everyday",
25+
"nsis": {
26+
"oneClick": false,
27+
"shortcutName": "点名器 2.0",
28+
"allowToChangeInstallationDirectory": true
29+
},
30+
"win": {
31+
"icon": "icon.ico"
32+
},
33+
"extraResources": {
34+
"from": "./resources",
35+
"to": "./"
36+
},
37+
"extraFiles": [
38+
"./libTB.dll"
39+
],
40+
"files": [
41+
"./**/*"
42+
],
43+
"directories": {
44+
"app": "./src"
45+
}
46+
},
47+
"dependencies": {
48+
"crypto-js": "^4.2.0"
49+
}
50+
}

resources/res/names.config

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
U2FsdGVkX19B3SzJtYqfECN6Nm7kDi4cAr8jZ5NO6RE=
2+
U2FsdGVkX1+386fQSPCE/3RlTZr+R8zGI9AV4N807Fc=
3+
U2FsdGVkX1+5fT9WUWMOT8YF8H+XDQsKZt9Jn+5X86Q=
4+
U2FsdGVkX19my572otUFH0Qt6BOYlh0b87Ew47bSH3Y=
5+
U2FsdGVkX1/QBji2ndpgn5mJiQ/klm31ncRA78Lb1bQ=
6+
U2FsdGVkX1+12NM3veut68+L3GbIazofFrwto3mqH20=
7+
U2FsdGVkX1+SOLM3mGjt+xGu7T1XDR8rzpOil8uehQE=

screenshots/about.png

120 KB
Loading

screenshots/home.png

117 KB
Loading

screenshots/login.png

65.2 KB
Loading

src/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/yarn.lock
2+
/node_modules

src/about/about.html

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>关于</title>
8+
<link rel="stylesheet" href="../public/css/about.css">
9+
<link rel="stylesheet" href="../public/css/ui.css">
10+
</head>
11+
12+
<body>
13+
<div id="Context3">
14+
15+
<div id="NavigationBar3">
16+
17+
<div class="navbar bg-base-100">
18+
19+
<div class="navbar-start">
20+
<a class="btn btn-ghost text-xl" id="title">舞动乾坤</a>
21+
</div>
22+
23+
<div class="navbar-center hidden lg:flex">
24+
<ul class="menu menu-horizontal px-1">
25+
<li class="list" id="name"><a>点名页</a></li>
26+
<li class="list" id="login"><a>登录和设置</a></li>
27+
<li class="list" id="about"><a>关于</a></li>
28+
</ul>
29+
</div>
30+
31+
<div class="navbar-end">
32+
<button class="btn btn-square" id="btMiniliaze3">
33+
<img src="../public/icon/min.svg" alt="">
34+
</button>
35+
36+
<button class="btn btn-square" id="btClose3">
37+
<img src="../public/icon/close.svg" alt="">
38+
</button>
39+
</div>
40+
41+
</div>
42+
</div>
43+
<canvas></canvas>
44+
<div id="update">
45+
<div class="card shadow-sm bg-primary text-primary-content">
46+
<div class="card-body">
47+
<h2 class="card-title">飞饼のLove 2.0</h2>
48+
<p style="font-family: Microsoft YaHei;">经过我一天两夜的爆肝,飞饼のLove 2.0终于在<h style="text-decoration: line-through;color : white">无尽的舞蹈何日方休</h>之前造了出来。
49+
如你所见,我抛弃了C#而使用了Electron进行构建, 这个就好比<h style="text-decoration: line-through;color : white">文科生高考前转学理科一样难搞</h>. 但是,在飞饼老师期盼舞蹈の目光中,我删掉了同学的作业共享群,删掉了
50+
<h style="text-decoration: underline; color : red">《明克杰B号》</h>, 删掉了<h style="text-decoration: underline; color : green"></h>上林赋</h>, 只为证明, <h style="text-decoration: underline; color : pink">飞饼老师の讲台, 94窝林潇湘の舞台</h>(全体致敬) !
51+
</p>
52+
<p style="font-family: Microsoft YaHei;">----Howxu于2024年2月10日2:24 正值跨年夜</p>
53+
</div>
54+
</div>
55+
</div>
56+
<div class="form-control" id="sele">
57+
<label class="label cursor-pointer">
58+
<span class="label-text">关闭</span>
59+
<input type="checkbox" class="toggle" unchecked id="clo"/>
60+
</label>
61+
</div>
62+
63+
</div>
64+
</body>
65+
<script src="./about.js"></script>
66+
67+
</html>

0 commit comments

Comments
 (0)