Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
烟灰好
edex-ui
提交
aac3d49c
E
edex-ui
项目概览
烟灰好
/
edex-ui
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
edex-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
aac3d49c
编写于
12月 30, 2017
作者:
G
GitSquared
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mods borders now on top
上级
624936bc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
33 addition
and
13 deletion
+33
-13
package-lock.json
package-lock.json
+17
-1
src/_renderer.js
src/_renderer.js
+9
-6
src/assets/css/mod_clock.css
src/assets/css/mod_clock.css
+3
-3
src/assets/css/mod_sysinfo.css
src/assets/css/mod_sysinfo.css
+3
-3
src/classes/sysinfo.class.js
src/classes/sysinfo.class.js
+1
-0
未找到文件。
package-lock.json
浏览文件 @
aac3d49c
...
...
@@ -10,7 +10,9 @@
"integrity"
:
"sha512-s2ZfgRWXeNUQTQE3O85CDDrU2Uo90pMlMkTxkz85wQOuzVxB8t4cubMPup3WlTPFKHQgb6lDkAHS3ljkUSFO6A=="
,
"dev"
:
true
,
"requires"
:
{
"7zip-bin-linux"
:
"1.2.0"
"7zip-bin-linux"
:
"1.2.0"
,
"7zip-bin-mac"
:
"1.0.1"
,
"7zip-bin-win"
:
"2.1.1"
}
},
"7zip-bin-linux"
:
{
...
...
@@ -20,6 +22,20 @@
"dev"
:
true
,
"optional"
:
true
},
"7zip-bin-mac"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/7zip-bin-mac/-/7zip-bin-mac-1.0.1.tgz"
,
"integrity"
:
"sha1-Pmh3i78JJq3GgVlCcHRQXUdVXAI="
,
"dev"
:
true
,
"optional"
:
true
},
"7zip-bin-win"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/7zip-bin-win/-/7zip-bin-win-2.1.1.tgz"
,
"integrity"
:
"sha512-6VGEW7PXGroTsoI2QW3b0ea95HJmbVBHvfANKLLMzSzFA1zKqVX5ybNuhmeGpf6vA0x8FJTt6twpprDANsY5WQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"@types/node"
:
{
"version"
:
"7.0.50"
,
"resolved"
:
"https://registry.npmjs.org/@types/node/-/node-7.0.50.tgz"
,
...
...
src/_renderer.js
浏览文件 @
aac3d49c
...
...
@@ -70,7 +70,6 @@ resumeInit = () => {
initUI
=
()
=>
{
document
.
body
.
innerHTML
+=
`<section class="mod_column" id="mod_column_left">
<h3 class="title"><p>PANEL</p><p>SYSTEM</p></h3>
<h3 class="title" style="top:27px;width:14.5%;left:8px;"><p></p><p></p></h3>
</section>
<section id="main_shell" style="height:0%;width:0%;opacity:0;">
<h3 class="title" style="opacity:0;"><p>TERMINAL</p><p>MAIN SHELL</p></h3>
...
...
@@ -78,7 +77,6 @@ initUI = () => {
</section>
<section class="mod_column" id="mod_column_right">
<h3 class="title"><p>PANEL</p><p>NETWORK</p></h3>
<h3 class="title" style="top:27px;width:14.5%;right:8px;"><p></p><p></p></h3>
</section>
<section id="keyboard" style="opacity:0;">
</section>`
;
...
...
@@ -117,14 +115,19 @@ initUI = () => {
};
initMods
=
()
=>
{
document
.
querySelectorAll
(
"
.mod_column
"
).
forEach
((
e
)
=>
{
e
.
setAttribute
(
"
class
"
,
"
mod_column activated
"
);
});
window
.
mods
=
{};
// Left column
window
.
mods
.
clock
=
new
Clock
(
"
mod_column_left
"
);
window
.
mods
.
sysinfo
=
new
Sysinfo
(
"
mod_column_left
"
);
window
.
mods
.
cpuinfo
=
new
Cpuinfo
(
"
mod_column_left
"
);
// Right column
document
.
querySelectorAll
(
"
.mod_column
"
).
forEach
((
e
)
=>
{
e
.
setAttribute
(
"
class
"
,
"
mod_column activated
"
);
});
};
// Prevent showing menu, exiting fullscreen or app with keyboard shortcuts
...
...
src/assets/css/mod_clock.css
浏览文件 @
aac3d49c
...
...
@@ -2,7 +2,7 @@ div#mod_clock {
display
:
flex
;
height
:
80px
;
padding-top
:
7px
;
border-
bottom
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
border-
top
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
font-family
:
var
(
--font_main_light
);
}
...
...
@@ -11,7 +11,7 @@ div#mod_clock::before {
border-left
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
position
:
relative
;
left
:
-1px
;
bottom
:
-76
px
;
top
:
-12
px
;
height
:
9px
;
}
...
...
@@ -20,7 +20,7 @@ div#mod_clock::after {
border-right
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
position
:
relative
;
right
:
-1px
;
bottom
:
-76
px
;
top
:
-12
px
;
height
:
9px
;
}
...
...
src/assets/css/mod_sysinfo.css
浏览文件 @
aac3d49c
...
...
@@ -4,7 +4,7 @@ div#mod_sysinfo {
align-items
:
center
;
justify-content
:
space-between
;
height
:
60px
;
border-
bottom
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
border-
top
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
font-size
:
12px
;
font-family
:
var
(
--font_main_light
);
letter-spacing
:
1px
;
...
...
@@ -15,7 +15,7 @@ div#mod_sysinfo::before {
border-left
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
position
:
relative
;
left
:
-1px
;
bottom
:
-30
px
;
top
:
-31
px
;
height
:
9px
;
}
...
...
@@ -24,7 +24,7 @@ div#mod_sysinfo::after {
border-right
:
1px
solid
rgba
(
190
,
230
,
193
,
0.3
);
position
:
relative
;
right
:
-1px
;
bottom
:
-30
px
;
top
:
-31
px
;
height
:
9px
;
}
...
...
src/classes/sysinfo.class.js
浏览文件 @
aac3d49c
...
...
@@ -104,6 +104,7 @@ class Sysinfo {
document
.
querySelector
(
"
#mod_sysinfo > div:nth-child(2) > h2
"
).
innerHTML
=
uptime
.
days
+
"
:
"
+
uptime
.
hours
+
"
:
"
+
uptime
.
minutes
;
}
updateBattery
()
{
// Note: SystemInformation's battery tools seems to be kinda broken (at least on Arch), so we're going with another dep for this one
let
btrlvl
=
require
(
"
battery-level
"
);
btrlvl
().
then
((
level
)
=>
{
document
.
querySelector
(
"
#mod_sysinfo > div:last-child > h2
"
).
innerHTML
=
(
level
*
100
)
+
"
%
"
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录