Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
烟灰好
edex-ui
提交
29e43a02
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,体验更适合开发者的 AI 搜索 >>
提交
29e43a02
编写于
6月 14, 2018
作者:
G
Git²
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Win32 fixes - #97
上级
a8a5fae7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
8 deletion
+19
-8
src/_renderer.js
src/_renderer.js
+5
-5
src/classes/filesystem.class.js
src/classes/filesystem.class.js
+3
-2
src/classes/ramwatcher.class.js
src/classes/ramwatcher.class.js
+4
-1
src/classes/terminal.class.js
src/classes/terminal.class.js
+7
-0
未找到文件。
src/_renderer.js
浏览文件 @
29e43a02
...
...
@@ -43,18 +43,18 @@ window._loadTheme = (theme) => {
document
.
querySelector
(
"
style.theming
"
).
remove
();
}
document
.
querySelector
(
"
head
"
).
innerHTML
+=
`<style class="theming"
id="theme_
${
theme
}
_css"
>
document
.
querySelector
(
"
head
"
).
innerHTML
+=
`<style class="theming">
@font-face {
font-family: "
${
theme
.
cssvars
.
font_main
}
";
src: url("
${
path
.
join
(
fontsDir
,
theme
.
cssvars
.
font_main
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
)
+
'
.woff2
'
)}
") format("woff2");
src: url("
${
path
.
join
(
fontsDir
,
theme
.
cssvars
.
font_main
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
)
+
'
.woff2
'
)
.
replace
(
/
\\
/g
,
'
/
'
)
}
") format("woff2");
}
@font-face {
font-family: "
${
theme
.
cssvars
.
font_main_light
}
";
src: url("
${
path
.
join
(
fontsDir
,
theme
.
cssvars
.
font_main_light
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
)
+
'
.woff2
'
)}
") format("woff2");
src: url("
${
path
.
join
(
fontsDir
,
theme
.
cssvars
.
font_main_light
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
)
+
'
.woff2
'
)
.
replace
(
/
\\
/g
,
'
/
'
)
}
") format("woff2");
}
@font-face {
font-family: "
${
theme
.
terminal
.
fontFamily
}
";
src: url("
${
path
.
join
(
fontsDir
,
theme
.
terminal
.
fontFamily
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
)
+
'
.woff2
'
)}
") format("woff2");
src: url("
${
path
.
join
(
fontsDir
,
theme
.
terminal
.
fontFamily
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
)
+
'
.woff2
'
)
.
replace
(
/
\\
/g
,
'
/
'
)
}
") format("woff2");
}
:root {
...
...
@@ -260,7 +260,7 @@ initGreeter = () => {
greeter
.
innerHTML
+=
`Welcome back, <em>
${
userlist
[
0
].
user
}
</em>`
;
})
.
catch
(()
=>
{
greeter
.
innerHTML
+=
`We||//c0m€ _b@-K;; <em>##ERr0r</em>`
;
greeter
.
innerHTML
+=
"
Welcome back
"
;
})
.
then
(()
=>
{
greeter
.
setAttribute
(
"
style
"
,
"
opacity: 1;
"
);
...
...
src/classes/filesystem.class.js
浏览文件 @
29e43a02
...
...
@@ -81,6 +81,7 @@ class FilesystemDisplay {
let
tcwd
=
dir
;
fs
.
readdir
(
tcwd
,
(
err
,
content
)
=>
{
if
(
err
!==
null
)
{
console
.
warn
(
err
);
this
.
setFailedState
();
}
else
{
this
.
cwd
=
[];
...
...
@@ -208,10 +209,10 @@ class FilesystemDisplay {
}
if
(
e
.
type
===
"
up
"
&&
this
.
_noTracking
)
{
cmd
=
`window.fsDisp.readFS('
${
path
.
resolve
(
this
.
dirpath
,
'
..
'
)}
')`
;
cmd
=
`window.fsDisp.readFS('
${
path
.
resolve
(
this
.
dirpath
,
'
..
'
)
.
replace
(
/
\\
/g
,
'
\\\\
'
)
}
')`
;
}
if
((
e
.
type
===
"
dir
"
||
e
.
type
.
endsWith
(
"
Dir
"
))
&&
this
.
_noTracking
)
{
cmd
=
`window.fsDisp.readFS('
${
path
.
resolve
(
this
.
dirpath
,
e
.
name
)}
')`
;
cmd
=
`window.fsDisp.readFS('
${
path
.
resolve
(
this
.
dirpath
,
e
.
name
)
.
replace
(
/
\\
/g
,
'
\\\\
'
)
}
')`
;
}
if
(
e
.
type
===
"
edex-theme
"
)
{
...
...
src/classes/ramwatcher.class.js
浏览文件 @
29e43a02
...
...
@@ -38,7 +38,10 @@ class RAMwatcher {
let
available
=
data
.
used
-
data
.
active
;
let
active
=
data
.
active
;
if
(
free
+
available
+
active
!==
total
)
throw
(
"
RAM Watcher Error: Bad memory values
"
);
if
(
process
.
platform
===
"
win32
"
)
available
=
data
.
available
;
if
(
free
+
available
+
active
!==
total
&&
process
.
platform
!==
"
win32
"
)
throw
(
"
RAM Watcher Error: Bad memory values
"
);
if
(
free
+
data
.
used
!==
total
&&
process
.
platform
===
"
win32
"
)
console
.
warn
(
"
RAM Watcher Error: Bad memory values
"
);
// Convert the data for the 1000-points grid
active
=
Math
.
round
((
1000
*
active
)
/
total
);
...
...
src/classes/terminal.class.js
浏览文件 @
29e43a02
...
...
@@ -99,6 +99,13 @@ class Terminal {
this
.
fit
();
setTimeout
(()
=>
{
this
.
fit
();
if
(
process
.
platform
===
"
win32
"
)
{
// Force Powershell to print a prompt
setTimeout
(()
=>
{
this
.
write
(
"
n
"
);
this
.
write
(
"
\
b
"
);
},
1000
);
}
},
200
);
};
this
.
socket
.
onerror
=
(
e
)
=>
{
throw
e
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录