├── beikeyun.sh
├── n1.sh
├── theme
└── darkmatter
│ ├── templates
│ ├── status
│ │ ├── dmesg.html
│ │ ├── syslog.html
│ │ ├── banned.html
│ │ ├── processes.html
│ │ └── traffic.html
│ ├── appcfg
│ │ ├── qb-log.html
│ │ ├── frp-log.html
│ │ ├── aria2-log.html
│ │ ├── smb-log.html
│ │ ├── dashboard-log.html
│ │ ├── dashboard-cert.html
│ │ ├── other-fm.html
│ │ ├── other-sync.html
│ │ ├── qb.html
│ │ ├── other-jellyfin.html
│ │ ├── smb.html
│ │ ├── other-gerbera.html
│ │ ├── aria2.html
│ │ ├── other-docker.html
│ │ ├── nfsd.html
│ │ ├── transmission.html
│ │ ├── smb-users.html
│ │ ├── dashboard.html
│ │ ├── aria2-extra.html
│ │ └── frp-proxies.html
│ ├── system
│ │ ├── crontab.html
│ │ ├── system-network.html
│ │ ├── tool.html
│ │ ├── admin.html
│ │ ├── startup.html
│ │ └── system.html
│ └── public
│ │ └── login.html
│ └── static
│ └── js
│ ├── zh-cn.json
│ └── common.js
├── readme.md
└── n1
├── aria2.html
└── other-docker.html
/beikeyun.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | wget -c https://github.com/ledccn/beikeyun/archive/master.zip -O beikeyun.zip
3 | unzip -o ./beikeyun.zip -d /usr
4 | cp -rf /usr/beikeyun-master/* /usr/local/apps/dashboard
5 | /etc/init.d/S99dashboard restart
6 |
--------------------------------------------------------------------------------
/n1.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | wget -c https://github.com/ledccn/beikeyun/archive/master.zip -O beikeyun.zip
3 | unzip -o ./beikeyun.zip -d /usr
4 | cp -rf /usr/beikeyun-master/* /usr/local/apps/dashboard
5 | cp /usr/local/apps/dashboard/n1/aria2.html /usr/local/apps/dashboard/theme/darkmatter/templates/appcfg/aria2.html
6 | cp /usr/local/apps/dashboard/n1/other-docker.html /usr/local/apps/dashboard/theme/darkmatter/templates/appcfg/other-docker.html
7 | /etc/init.d/S99dashboard restart
--------------------------------------------------------------------------------
/theme/darkmatter/templates/status/dmesg.html:
--------------------------------------------------------------------------------
1 | {{ define "status/dmesg" }}
2 | {{template "common/header" }}
3 |
4 |
7 |
8 |
18 |
登录失败日志
19 |
客户端登录失败次数 > 5,将被禁止1小时。
20 |
21 |
48 |
49 |
53 |
54 |
55 |
77 |
78 | {{template "common/footer"}}
79 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/status/processes.html:
--------------------------------------------------------------------------------
1 | {{ define "status/processes" }}
2 | {{template "common/header" }}
3 |
4 |
7 |
8 |
9 |
进程
10 |
此列表包含当前正在运行的系统进程及状态。
11 |
12 |
13 |
14 |
15 |
16 | | PID |
17 | 所有者 |
18 | 命令 |
19 | CPU使用率(%) |
20 | 内存使用率(%) |
21 |
24 |
25 |
26 | |
27 | |
28 | |
29 | |
30 | |
31 |
34 |
35 |
36 | {{range $proc := $.processes}}
37 |
38 | |
39 |
40 | {{ $proc.Pid }}
41 |
42 | |
43 |
44 |
45 |
46 | {{ $proc.Username }}
47 |
48 | |
49 |
50 |
51 |
52 |
53 | {{ $proc.Cmdline }}
54 |
55 | |
56 |
57 |
58 |
59 |
60 | {{ $proc.CpuPercent | printf "%.2f" }}%
61 |
62 | |
63 |
64 |
65 |
66 |
67 | {{ $proc.MemPercent | printf "%.2f" }}%
68 |
69 | |
70 |
71 |
92 |
93 | {{end}}
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 | {{template "common/footer"}}
104 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/system/system-network.html:
--------------------------------------------------------------------------------
1 | {{ define "system/network" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
94 |
95 |
120 | {{template "common/footer"}}
121 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/dashboard-cert.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/dashboard-cert" }}
2 | {{template "common/header" }}
3 |
4 |
7 |
8 |
106 |
107 |
127 |
128 | {{template "common/footer"}}
129 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/other-fm.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/other-fm" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
81 |
82 |
128 |
129 | {{template "common/footer"}}
130 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/other-sync.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/other-sync" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
81 |
82 |
129 |
130 | {{template "common/footer"}}
131 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/qb.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/qb" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
98 |
99 |
124 | {{template "common/footer"}}
125 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/status/traffic.html:
--------------------------------------------------------------------------------
1 | {{ define "status/traffic" }}
2 | {{template "common/header" }}
3 |
4 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
29 |
30 |
31 |
网络流量
32 |
网络流量图表
33 |
34 |
35 |
36 |
37 |
38 |
41 |
44 |
47 |
50 |
51 |
52 |
54 |
56 |
57 |
58 |
接口
59 |
64 |
65 |
总流量
66 |
TX: 0 GB
67 |
RX: 0 GB
68 |
69 |
运行时间
70 |
0min
71 |
72 |
数据库
73 | 创建时间:
74 | 更新时间:
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 | | 时间 | TX发送 | RX接收 | 比例 | 合计 |
85 |
86 |
87 |
88 |
89 |
90 | | 时间 | TX发送 | RX接收 | 比例 | 合计 |
91 |
92 |
93 |
94 |
95 |
96 | | 时间 | TX发送 | RX接收 | 比例 | 合计 |
97 |
98 |
99 |
100 |
101 |
102 | | 时间 | TX发送 | RX接收 | 比例 | 合计 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 | {{template "common/footer"}}
111 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/static/js/common.js:
--------------------------------------------------------------------------------
1 |
2 | var isRestartSysFadein = false;
3 | var checkSysRestartStatus = function () {
4 | if (!isRestartSysFadein) {
5 | $(".main > .loading").fadeIn("fast");
6 | isRestartSysFadein = true;
7 | }
8 | //https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch
9 | var external = location.href;
10 | if (window.fetch) {
11 | // must be chrome or firefox which have native fetch
12 | fetch(external, {'mode':'no-cors'})
13 | .then(function (r) {
14 | // external is reachable; but failed due to cors
15 | // fetch will pass though if it's a cors error
16 | alertify.notify('Reboot successfully.', 'success', 5, function(){ console.log('Reboot Done.'); });
17 | console.log(r);
18 | location.reload();
19 | })
20 | .catch(function () {
21 | console.log('external is _not_ reachable');
22 | setTimeout('checkSysRestartStatus()', 1000);
23 | });
24 | } else {
25 | // must be non-updated safari or older IE...
26 | // I don't know how to find error type in this case
27 | alert("your browser does not support native fetch api. please reload page manually.");
28 | }
29 | };
30 |
31 | var processCheck = function (process_name, target_ele) {
32 | let targetBtn = $(target_ele);
33 | let fail_class = 'cbi-input-remove';
34 | let succ_class = 'cbi-input-save';
35 | $.get("/api/system/process/status?name="+process_name, function (resp) {
36 | if (resp.error == 0 && resp.data.is_running == 1) {
37 | targetBtn.removeClass(fail_class);
38 | targetBtn.addClass(succ_class);
39 | targetBtn.val(process_name + " Running");
40 | } else {
41 | targetBtn.removeClass(succ_class);
42 | targetBtn.addClass(fail_class);
43 | targetBtn.val(process_name + " Stopped");
44 | }
45 | });
46 | };
47 |
48 | // from Underscore.js
49 | var isFunction = function(obj) {
50 | return !!(obj && obj.constructor && obj.call && obj.apply);
51 | };
52 |
53 | var statusCheck = function (api_url, target_ele, cb) {
54 | let targetBtn = $(target_ele);
55 | let fail_class = 'cbi-input-remove';
56 | let succ_class = 'cbi-input-save';
57 | let that = this;
58 | $.get(api_url, function (resp) {
59 | targetBtn.val(resp.status);
60 | let succ = false;
61 | if (/work|ok|success/.test(resp.status)) {
62 | targetBtn.removeClass(fail_class);
63 | targetBtn.addClass(succ_class);
64 | succ = true;
65 | } else {
66 | targetBtn.removeClass(succ_class);
67 | targetBtn.addClass(fail_class);
68 | }
69 | if (isFunction(cb)) {
70 | cb.call(that, succ);
71 | }
72 | });
73 | };
74 |
75 | /*
76 | *JS动态翻译小钢炮
77 | *作者:大卫科技blog
78 | *网站:https://www.iyuu.cn
79 | *汉化下载:
80 | N1小钢炮汉化包20190411-2042
81 | https://www.iyuu.cn/archives/13/
82 |
83 | beikeyun贝壳云小钢炮汉化包20190506-0242
84 | https://www.iyuu.cn/archives/10/
85 | */
86 | $(document).ready(function(){
87 | console.log('JS动态翻译小钢炮+自定义导航');
88 | console.log('作者:大卫');
89 | console.log('网站:https://www.iyuu.cn');
90 | console.log('项目仓库:https://github.com/ledccn/beikeyun');
91 | // 获取语言文件
92 | $.getJSON("/static/js/zh-cn.json", function (data){
93 | // 主菜单 选择器
94 | let menus = $(".menu");
95 | // 子菜单 选择器
96 | let smenus = $(".slide-menu");
97 | // 翻译主菜单
98 | for(i=0; i
';
155 | $(".pull-right").append(val);
156 | } else {
157 | let val = '';
158 | $(".pull-right").append(val);
159 | }
160 | });
161 | })
162 | });
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/other-jellyfin.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/other-jellyfin" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
91 |
92 |
138 |
139 | {{template "common/footer"}}
140 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/system/tool.html:
--------------------------------------------------------------------------------
1 | {{ define "system/tool" }}
2 | {{template "common/header" }}
3 |
4 |
7 |
8 |
44 |
45 | Tool工具
46 |
47 |
48 |
51 |
52 |
55 |
56 |
57 |
58 |
59 |
60 |
端口测试
61 |
62 |
64 |
65 |
66 |

67 |
68 | 6 / 6
69 |
70 |
71 |
72 |
73 |
系统安全性评分 0%
74 |
75 |
76 |
77 | | 项目 |
78 | 结果 |
79 | |
80 |
81 |
82 | | Root密码安全性 |
83 | - |
84 |
85 |
86 | |
87 |
88 |
89 | | qBittorrent密码安全性 |
90 | - |
91 |
92 |
93 | |
94 |
95 |
96 | | Transmission密码安全性 |
97 | - |
98 |
99 |
100 | |
101 |
102 |
103 | | Aria2密码安全性 |
104 | - |
105 |
106 |
107 | |
108 |
109 |
110 | | qBittorrent已配置 |
111 | - |
112 |
113 |
114 | |
115 |
116 |
117 | | Transmission已配置 |
118 | - |
119 |
120 |
121 | |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
189 | {{template "common/footer"}}
190 | {{ end }}
--------------------------------------------------------------------------------
/n1/aria2.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/aria2" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
130 |
131 |
171 |
172 | {{template "common/footer"}}
173 | {{ end }}
--------------------------------------------------------------------------------
/n1/other-docker.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/other-docker" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
96 |
97 |
160 |
161 | {{template "common/footer"}}
162 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/smb.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/smb" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
146 |
147 |
148 |
166 | {{template "common/footer"}}
167 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/other-gerbera.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/other-gerbera" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
123 |
124 |
170 |
171 | {{template "common/footer"}}
172 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/aria2.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/aria2" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
141 |
142 |
182 |
183 | {{template "common/footer"}}
184 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/public/login.html:
--------------------------------------------------------------------------------
1 | {{ define "public/login" }}
2 |
3 |
4 |
5 |
6 |
7 | 登录 - HacklogDashboard
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
151 |
152 |
153 |
185 | {{template "common/footer"}}
186 | {{ end }}
187 |
188 |
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/other-docker.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/other-docker" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
108 |
109 |
172 |
173 | {{template "common/footer"}}
174 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/system/startup.html:
--------------------------------------------------------------------------------
1 | {{ define "system/startup" }}
2 | {{template "common/header" }}
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
98 |
99 |
100 |
126 |
127 |
201 | {{template "common/footer"}}
202 | {{ end }}
--------------------------------------------------------------------------------
/theme/darkmatter/templates/appcfg/nfsd.html:
--------------------------------------------------------------------------------
1 | {{ define "appcfg/nfsd" }}
2 | {{template "common/header" }}
3 |
4 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |