forked from conwnet/github1s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-dev.html
More file actions
86 lines (84 loc) · 3.38 KB
/
Copy pathindex-dev.html
File metadata and controls
86 lines (84 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!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="" />
<!-- VS Code Extensions Configuration -->
<meta id="vscode-workbench-builtin-extensions" data-settings="[]" />
<!-- Workbench Icon/Manifest/CSS -->
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="manifest" href="/manifest.json" />
<title>GitHub1s</title>
</head>
<body aria-label="">
<noscript title="No JavaScript Support">
<h1>You need to enable JavaScript to run this app.</h1>
</noscript>
</body>
<script>
self.require = {
baseUrl: `${window.location.origin}/static/vscode`,
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: {
'vscode-textmate': `${window.location.origin}/static/node_modules/vscode-textmate/release/main`,
'vscode-oniguruma': `${window.location.origin}/static/node_modules/vscode-oniguruma/release/main`,
xterm: `${window.location.origin}/static/node_modules/xterm/lib/xterm.js`,
'xterm-addon-search': `${window.location.origin}/static/node_modules/xterm-addon-search/lib/xterm-addon-search.js`,
'xterm-addon-unicode11': `${window.location.origin}/static/node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`,
'xterm-addon-webgl': `${window.location.origin}/static/node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`,
'tas-client-umd': `${window.location.origin}/static/node_modules/tas-client-umd/lib/tas-client-umd.js`,
'iconv-lite-umd': `${window.location.origin}/static/node_modules/iconv-lite-umd/lib/iconv-lite-umd.js`,
jschardet: `${window.location.origin}/static/node_modules/jschardet/dist/jschardet.min.js`,
},
};
</script>
<script src="/static/vscode/vs/loader.js"></script>
<script>
globalThis.MonacoPerformanceMarks.push('willLoadWorkbenchMain', Date.now());
</script>
<script>
fetch('/static/configure/extensions.json')
.then((response) => response.text())
.then((extensionsJson) => {
document
.getElementById('vscode-workbench-web-configuration')
.setAttribute(
'data-settings',
JSON.stringify({
// the empty authority means github1s should get it from `window.location.href`
folderUri: { scheme: 'github1s', authority: '', path: '/' },
staticExtensions: [],
enableSyncByDefault: false,
webviewEndpoint:
window.location.origin +
'/static/vscode/vs/workbench/contrib/webview/browser/pre',
webWorkerExtensionHostIframeSrc:
'/static/vscode/vs/workbench/services/extensions/worker/httpWebWorkerExtensionHostIframe.html',
})
);
document
.getElementById('vscode-workbench-builtin-extensions')
.setAttribute('data-settings', extensionsJson);
require(['vs/code/browser/workbench/workbench'], function () {});
});
</script>
</html>