forked from Sidenai/sidex
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (82 loc) · 2.62 KB
/
Copy pathindex.html
File metadata and controls
84 lines (82 loc) · 2.62 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SideX</title>
<script>
// VS Code globals — must be set before any module loads
globalThis._VSCODE_FILE_ROOT = window.location.origin + '/src/';
globalThis._VSCODE_NLS_LANGUAGE = localStorage.getItem('vscode.nls.locale') || 'en';
globalThis._VSCODE_NLS_MESSAGES = [];
globalThis.__SIDEX_TAURI__ = true;
try {
const ua = navigator.userAgent || '';
const plat = navigator.platform || '';
if (ua.includes('Mac') || plat.includes('Mac')) {
globalThis.__SIDEX_ARCH__ = 'arm64';
try {
const gl = document.createElement('canvas').getContext('webgl');
const ext = gl && gl.getExtension('WEBGL_debug_renderer_info');
const renderer = ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : '';
if (renderer && /Intel/i.test(renderer) && !/Apple/i.test(renderer)) {
globalThis.__SIDEX_ARCH__ = 'x64';
}
} catch (_) {}
} else {
globalThis.__SIDEX_ARCH__ = 'x64';
}
} catch (_) {
globalThis.__SIDEX_ARCH__ = 'x64';
}
globalThis._VSCODE_PACKAGE_JSON = { version: '1.110.0', name: 'sidex' };
globalThis._VSCODE_PRODUCT_JSON = {
nameShort: 'SideX',
nameLong: 'SideX',
applicationName: 'sidex',
dataFolderName: '.sidex',
urlProtocol: 'sidex',
version: '1.110.0',
commit: '',
date: new Date().toISOString(),
quality: 'stable',
reportIssueUrl: 'https://github.com/sidenai/sidex/issues/new',
licenseName: 'MIT',
licenseUrl: 'https://github.com/sidenai/sidex/blob/main/LICENSE',
extensionsGallery: {
serviceUrl: 'https://marketplace.siden.ai/api/gallery',
itemUrl: 'https://open-vsx.org/vscode/item',
resourceUrlTemplate: 'https://open-vsx.org/vscode/unpkg/{publisher}/{name}/{version}/{path}',
controlUrl: '',
nlsBaseUrl: 'https://open-vsx.org/vscode/unpkg/{publisher}/{name}/{version}/extension',
publisherUrl: ''
}
};
</script>
<script src="/builtin-extensions.js"></script>
<script type="module" src="/src/main.ts" defer></script>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: #111111;
color: #c0c0c0;
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
font-size: 13px;
}
#workbench {
height: 100%;
width: 100%;
}
</style>
</head>
<body aria-label="">
<div id="workbench"></div>
</body>
</html>