Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gzupanda
code-server
提交
7c6fe560
C
code-server
项目概览
gzupanda
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
7c6fe560
编写于
2月 05, 2020
作者:
A
Asher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add logo to background
上级
8cc11d16
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
90 addition
and
1 deletion
+90
-1
src/browser/app.css
src/browser/app.css
+18
-0
src/browser/app.tsx
src/browser/app.tsx
+11
-1
src/browser/components/logo.tsx
src/browser/components/logo.tsx
+61
-0
未找到文件。
src/browser/app.css
浏览文件 @
7c6fe560
...
...
@@ -21,3 +21,21 @@ body {
button
{
font-family
:
inherit
;
}
.coder-splash
{
align-items
:
center
;
box-sizing
:
border-box
;
display
:
flex
;
height
:
100%
;
justify-content
:
center
;
left
:
0
;
position
:
fixed
;
top
:
0
;
width
:
100%
;
z-index
:
5
;
}
.coder-splash
>
.logo
{
color
:
rgba
(
255
,
255
,
255
,
0.03
);
width
:
100%
;
}
src/browser/app.tsx
浏览文件 @
7c6fe560
...
...
@@ -3,6 +3,7 @@ import * as React from "react"
import
{
Application
,
isExecutableApplication
}
from
"
../common/api
"
import
{
HttpError
}
from
"
../common/http
"
import
{
normalize
,
Options
}
from
"
../common/util
"
import
{
Logo
}
from
"
./components/logo
"
import
{
Modal
}
from
"
./components/modal
"
export
interface
AppProps
{
...
...
@@ -31,10 +32,19 @@ const App: React.FunctionComponent<AppProps> = (props) => {
return
(
<>
{
!
app
||
!
app
.
loaded
?
(
<
div
className
=
"coder-splash"
>
<
Logo
/>
</
div
>
)
:
(
undefined
)
}
<
Modal
app
=
{
app
}
setApp
=
{
setApp
}
authed
=
{
authed
}
error
=
{
error
}
setError
=
{
setError
}
/>
{
authed
&&
app
&&
app
.
embedPath
?
(
<
iframe
id
=
"iframe"
src
=
{
normalize
(
`
${
getBasepath
()}
/
${
app
.
embedPath
}
/`
,
true
)
}
></
iframe
>
)
:
null
}
)
:
(
undefined
)
}
</>
)
}
...
...
src/browser/components/logo.tsx
0 → 100644
浏览文件 @
7c6fe560
import
*
as
React
from
"
react
"
export
const
Logo
=
(
props
:
React
.
SVGProps
<
SVGSVGElement
>
):
JSX
.
Element
=>
(
<
svg
className
=
"logo"
version
=
"1.1"
id
=
"Layer_1"
xmlns
=
"http://www.w3.org/2000/svg"
xmlnsXlink
=
"http://www.w3.org/1999/xlink"
x
=
"0px"
y
=
"0px"
viewBox
=
"0 0 172 117"
xmlSpace
=
"preserve"
fill
=
"currentcolor"
{
...
props
}
>
<
g
>
<
g
>
<
path
className
=
"st0"
d
=
"
M164
.
8
,
50
.
9c
-
3
.
3
,
0
-
5
.
5
-
1
.
9
-
5
.
5
-
5
.
8V22
.
7c0
-
14
.
3
-
6
-
22
.
2
-
21
.
5
-
22
.
2h
-
7
.
2v15
.
1h2
.
2c6
.
1
,
0
,
9
,
3
.
3
,
9
,
9
.
2v19
.
8
c0
,
8
.
6
,
2
.
6
,
12
.
1
,
8
.
3
,
13
.
9c
-
5
.
7
,
1
.
7
-
8
.
3
,
5
.
3
-
8
.
3
,
13
.
9c0
,
4
.
9
,
0
,
9
.
8
,
0
,
14
.
7c0
,
4
.
1
,
0
,
8
.
1
-
1
.
1
,
12
.
2c
-
1
.
1
,
3
.
8
-
2
.
9
,
7
.
4
-
5
.
4
,
10
.
5
c
-
1
.
4
,
1
.
8
-
3
,
3
.
3
-
4
.
8
,
4
.
7v2h7
.
2c15
.
5
,
0
,
21
.
5
-
7
.
9
,
21
.
5
-
22
.
2V71
.
9c0
-
4
,
2
.
1
-
5
.
8
,
5
.
5
-
5
.
8h4
.
1V51h
-
4V50
.
9L164
.
8
,
50
.
9z
"
/>
<
path
className
=
"st0"
d
=
"
M115
.
8
,
23
.
3H93
.
6c
-
0
.
5
,
0
-
0
.
9
-
0
.
4
-
0
.
9
-
0
.
9v
-
1
.
7c0
-
0
.
5
,
0
.
4
-
0
.
9
,
0
.
9
-
0
.
9h22
.
3c0
.
5
,
0
,
0
.
9
,
0
.
4
,
0
.
9
,
0
.
9v1
.
7
C116
.
8
,
22
.
9
,
116
.
3
,
23
.
3
,
115
.
8
,
23
.
3z
"
/>
<
path
className
=
"st0"
d
=
"
M119
.
6
,
44
.
9h
-
16
.
2c
-
0
.
5
,
0
-
0
.
9
-
0
.
4
-
0
.
9
-
0
.
9v
-
1
.
7c0
-
0
.
5
,
0
.
4
-
0
.
9
,
0
.
9
-
0
.
9h16
.
2c0
.
5
,
0
,
0
.
9
,
0
.
4
,
0
.
9
,
0
.
9V44
C120
.
5
,
44
.
4
,
120
.
1
,
44
.
9
,
119
.
6
,
44
.
9z
"
/>
<
path
className
=
"st0"
d
=
"
M126
,
34
.
1H93
.
6c
-
0
.
5
,
0
-
0
.
9
-
0
.
4
-
0
.
9
-
0
.
9v
-
1
.
7c0
-
0
.
5
,
0
.
4
-
0
.
9
,
0
.
9
-
0
.
9h32
.
3c0
.
5
,
0
,
0
.
9
,
0
.
4
,
0
.
9
,
0
.
9v1
.
7
C126
.
8
,
33
.
6
,
126
.
5
,
34
.
1
,
126
,
34
.
1z
"
/>
<
g
>
<
path
className
=
"st0"
d
=
"
M67
.
9
,
28
.
2c2
.
2
,
0
,
4
.
4
,
0
.
2
,
6
.
5
,
0
.
7v
-
4
.
1c0
-
5
.
8
,
3
-
9
.
2
,
9
-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.
2
,
9
.
7
,
0
.
1c4
.
1
,
0
,
8
.
2
,
1
.
4
,
11
.
1
,
4
.
3c1
.
9
,
2
,
3
.
3
,
4
.
5
,
3
.
9
,
7
.
3c0
.
9
,
4
.
5
-
0
.
2
,
9
-
2
.
9
,
12
.
4
c
-
1
.
9
,
2
.
4
-
4
.
5
,
4
.
2
-
7
.
4
,
5c
-
1
.
4
,
0
.
4
-
2
.
8
,
0
.
5
-
4
.
2
,
0
.
5c
-
0
.
8
,
0
-
1
.
9
,
0
-
3
.
2
,
0c
-
4
,
0
-
12
.
5
,
0
-
18
.
9
,
0c
-
4
.
4
,
0
-
7
.
9
-
3
.
5
-
7
.
9
-
7
.
9V78
.
4V63
.
9
c0
-
1
.
2
-
1
-
2
.
2
-
2
.
2
-
2
.
2h
-
3
.
1c
-
6
.
1
,
0
.
1
-
11
,
6
.
9
-
11
,
14
.
1s0
,
26
.
3
,
0
,
26
.
3c0
,
7
.
8
,
6
.
3
,
14
.
1
,
14
.
1
,
14
.
1c0
,
0
,
34
.
7
-
0
.
1
,
35
.
2
-
0
.
1
c8
-
0
.
8
,
15
.
4
-
4
.
9
,
20
.
4
-
11
.
2C131
.
5
,
98
.
8
,
133
.
8
,
90
.
8
,
132
.
8
,
82
.
6z
"
/>
</
g
>
</
g
>
</
svg
>
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录