Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
myhjmzy
code-server
提交
45f70e74
C
code-server
项目概览
myhjmzy
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
45f70e74
编写于
1月 16, 2020
作者:
A
Asher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move manifest to the root
Fixes #1278.
上级
1474a82c
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
9 addition
and
3 deletion
+9
-3
src/browser/login.html
src/browser/login.html
+1
-1
src/browser/workbench-build.html
src/browser/workbench-build.html
+1
-1
src/browser/workbench.html
src/browser/workbench.html
+1
-1
src/node/server.ts
src/node/server.ts
+6
-0
未找到文件。
src/browser/login.html
浏览文件 @
45f70e74
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"Content-Security-Policy"
content=
"default-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'unsafe-inline'; manifest-src 'self'; img-src 'self';"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"default-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'unsafe-inline'; manifest-src 'self'; img-src 'self';"
>
<title>
Authenticate: code-server
</title>
<title>
Authenticate: code-server
</title>
<link
rel=
"icon"
href=
"./static/out/vs/server/src/media/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"icon"
href=
"./static/out/vs/server/src/media/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"manifest"
href=
"./
static/out/vs/server/src/media/
manifest.json"
crossorigin=
"use-credentials"
>
<link
rel=
"manifest"
href=
"./manifest.json"
crossorigin=
"use-credentials"
>
<link
rel=
"apple-touch-icon"
href=
"./static/out/vs/server/src/media/code-server.png"
/>
<link
rel=
"apple-touch-icon"
href=
"./static/out/vs/server/src/media/code-server.png"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<link
href=
"./static/out/vs/server/src/media/login.css"
rel=
"stylesheet"
>
<link
href=
"./static/out/vs/server/src/media/login.css"
rel=
"stylesheet"
>
...
...
src/browser/workbench-build.html
浏览文件 @
45f70e74
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<!-- Workbench Icon/Manifest/CSS -->
<!-- Workbench Icon/Manifest/CSS -->
<link
rel=
"icon"
href=
"./static-{{COMMIT}}/out/vs/server/src/media/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"icon"
href=
"./static-{{COMMIT}}/out/vs/server/src/media/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"manifest"
href=
"./
static-{{COMMIT}}/out/vs/server/src/media/
manifest.json"
crossorigin=
"use-credentials"
>
<link
rel=
"manifest"
href=
"./manifest.json"
crossorigin=
"use-credentials"
>
<link
data-name=
"vs/workbench/workbench.web.api"
rel=
"stylesheet"
href=
"./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.css"
>
<link
data-name=
"vs/workbench/workbench.web.api"
rel=
"stylesheet"
href=
"./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.css"
>
<link
rel=
"apple-touch-icon"
href=
"./static-{{COMMIT}}/out/vs/server/src/media/code-server.png"
/>
<link
rel=
"apple-touch-icon"
href=
"./static-{{COMMIT}}/out/vs/server/src/media/code-server.png"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
...
...
src/browser/workbench.html
浏览文件 @
45f70e74
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<!-- Workbench Icon/Manifest/CSS -->
<!-- Workbench Icon/Manifest/CSS -->
<link
rel=
"icon"
href=
"./static/out/vs/server/src/media/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"icon"
href=
"./static/out/vs/server/src/media/favicon.ico"
type=
"image/x-icon"
/>
<link
rel=
"manifest"
href=
"./
static/out/vs/server/src/media/
manifest.json"
crossorigin=
"use-credentials"
>
<link
rel=
"manifest"
href=
"./manifest.json"
crossorigin=
"use-credentials"
>
</head>
</head>
<body
aria-label=
""
>
<body
aria-label=
""
>
...
...
src/node/server.ts
浏览文件 @
45f70e74
...
@@ -296,6 +296,12 @@ export abstract class Server {
...
@@ -296,6 +296,12 @@ export abstract class Server {
switch
(
base
)
{
switch
(
base
)
{
case
"
/
"
:
case
"
/
"
:
switch
(
requestPath
)
{
case
"
/manifest.json
"
:
const
response
=
await
this
.
getResource
(
this
.
serverRoot
,
"
media
"
,
requestPath
);
response
.
cache
=
true
;
return
response
;
}
if
(
!
this
.
authenticate
(
request
))
{
if
(
!
this
.
authenticate
(
request
))
{
return
{
redirect
:
"
/login
"
};
return
{
redirect
:
"
/login
"
};
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录