UNPKG

code-server

Version:

Run VS Code on a remote server.

76 lines (65 loc) 3.08 kB
<!-- Copyright (C) Microsoft Corporation. All rights reserved. --> <!DOCTYPE html> <html style="--vs-theme-background-color: {{CLIENT_BACKGROUND_COLOR}}; --vs-theme-foreground-color: {{CLIENT_FOREGROUND_COLOR}}"> <head> <script> performance.mark('code/didStartRenderer') </script> <meta charset="utf-8" /> <!-- Mobile tweaks --> <meta name="mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-title" content="Code"> <link rel="apple-touch-icon" sizes="192x192" href="{{BASE}}/static/resources/server/code-192.png" /> <link rel="apple-touch-icon" sizes="512x512" href="{{BASE}}/static/resources/server/code-512.png" /> <!-- 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}}"> <!-- Workbench Auth Session --> <meta id="vscode-workbench-auth-session" data-settings="{{WORKBENCH_AUTH_SESSION}}"> <!-- NLS Configuration --> <meta id="vscode-remote-nls-configuration" data-settings="{{NLS_CONFIGURATION}}"> <!-- Builtin Extensions (running out of sources) --> <meta id="vscode-workbench-builtin-extensions" data-settings="{{WORKBENCH_BUILTIN_EXTENSIONS}}"> <!-- Workbench Icon/Manifest/CSS --> <link rel="icon" href="{{BASE}}/static/resources/server/favicon-dark-support.svg" type="image/svg+xml" /> <link rel="alternate icon" href="{{BASE}}/static/resources/server/favicon.svg" type="image/svg+xml" /> <meta name="theme-color" content="{{CLIENT_BACKGROUND_COLOR}}"> <link rel="icon" href="{{BASE}}/favicon.ico" type="image/x-icon" /> <link rel="manifest" href="{{BASE}}/manifest.json" crossorigin="use-credentials"> </head> <body style="background-color: var(--vs-theme-background-color); color: var(--vs-theme-foreground-color)" aria-label=""> </body> <!-- Startup (do not modify order of script tags!) --> <script src="{{BASE}}/static/out/vs/loader.js"></script> <script src="{{BASE}}/static/out/vs/webPackagePaths.js"></script> <script> /** * Updated to use relative path. * @author coder */ Object.keys(self.webPackagePaths).map(function (key, index) { self.webPackagePaths[key] = new URL(`{{BASE}}/static/remote/web/node_modules/${key}/${self.webPackagePaths[key]}`, window.location.href).toString(); }); require.config({ baseUrl: new URL('{{BASE}}/static/out', window.location.href).toString(), recordStats: true, trustedTypesPolicy: window.trustedTypes?.createPolicy('amdLoader', { createScriptURL(value) { if(value.startsWith(window.location.origin)) { return value; } throw new Error(`Invalid script url: ${value}`) } }), paths: self.webPackagePaths }); </script> <script> performance.mark('code/willLoadWorkbenchMain'); </script> <script> require(['vs/code/browser/workbench/workbench'], function() {}); </script> </html>