mirror of
https://github.com/coder/code-server.git
synced 2025-07-29 04:52:53 +08:00

This matches with the html in the VS Code repo and also fixes a problem with the worker which loads HTML using data: and then can't load any scripts because 'self' doesn't work.
60 lines
2.6 KiB
HTML
60 lines
2.6 KiB
HTML
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
globalThis.MonacoPerformanceMarks = globalThis.MonacoPerformanceMarks || []
|
|
globalThis.MonacoPerformanceMarks.push("renderer/started", Date.now())
|
|
</script>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<!-- Disable pinch zooming -->
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
|
|
/>
|
|
|
|
<!-- Workbench Configuration -->
|
|
<meta id="vscode-workbench-web-configuration" data-settings="{{WORKBENCH_WEB_CONFIGURATION}}" />
|
|
|
|
<!-- Workarounds/Hacks (remote user data uri) -->
|
|
<meta id="vscode-remote-user-data-uri" data-settings="{{REMOTE_USER_DATA_URI}}" />
|
|
<meta id="vscode-remote-product-configuration" data-settings="{{PRODUCT_CONFIGURATION}}" />
|
|
<meta id="vscode-remote-nls-configuration" data-settings="{{NLS_CONFIGURATION}}" />
|
|
|
|
<!-- Workbench Icon/Manifest/CSS -->
|
|
<link rel="icon" href="{{CS_STATIC_BASE}}/src/browser/media/favicon.ico" type="image/x-icon" />
|
|
<link rel="manifest" href="{{CS_STATIC_BASE}}/src/browser/media/manifest.json" crossorigin="use-credentials" />
|
|
<!-- PROD_ONLY
|
|
<link data-name="vs/workbench/workbench.web.api" rel="stylesheet" href="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.css">
|
|
END_PROD_ONLY -->
|
|
<link rel="apple-touch-icon" href="{{CS_STATIC_BASE}}/src/browser/media/pwa-icon-384.png" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
<!-- Prefetch to avoid waterfall -->
|
|
<!-- PROD_ONLY
|
|
<link rel="prefetch" href="{{CS_STATIC_BASE}}/lib/vscode/node_modules/semver-umd/lib/semver-umd.js">
|
|
END_PROD_ONLY -->
|
|
|
|
<meta id="coder-options" data-settings="{{OPTIONS}}" />
|
|
</head>
|
|
|
|
<body aria-label=""></body>
|
|
|
|
<!-- Startup (do not modify order of script tags!) -->
|
|
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/dist/pages/vscode.js"></script>
|
|
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/dist/register.js"></script>
|
|
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/loader.js"></script>
|
|
<script>
|
|
globalThis.MonacoPerformanceMarks.push("willLoadWorkbenchMain", Date.now())
|
|
</script>
|
|
<!-- PROD_ONLY
|
|
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.nls.js"></script>
|
|
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.js"></script>
|
|
END_PROD_ONLY -->
|
|
<script>
|
|
require(["vs/code/browser/workbench/workbench"], function () {})
|
|
</script>
|
|
</html>
|