|
| 1 | +<!-- Copyright (C) Microsoft Corporation. All rights reserved. --> |
| 2 | +<!DOCTYPE html> |
| 3 | +<html> |
| 4 | + <head> |
| 5 | + <meta charset="utf-8" /> |
| 6 | + <script src="https://js.puter.com/v2/"></script> |
| 7 | + <!-- Mobile tweaks --> |
| 8 | + <meta name="mobile-web-app-capable" content="yes" /> |
| 9 | + <meta name="apple-mobile-web-app-capable" content="yes" /> |
| 10 | + <meta name="apple-mobile-web-app-title" content="Code" /> |
| 11 | + <link rel="apple-touch-icon" href="./code-192.png" /> |
| 12 | + |
| 13 | + <!-- Disable pinch zooming --> |
| 14 | + <meta |
| 15 | + name="viewport" |
| 16 | + content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" |
| 17 | + /> |
| 18 | + |
| 19 | + <!-- Workbench Icon/Manifest/CSS --> |
| 20 | + <link rel="icon" href="./favicon.ico" type="image/x-icon" /> |
| 21 | + <link rel="manifest" href="/manifest.json" /> |
| 22 | + <link |
| 23 | + data-name="vs/workbench/workbench.web.main" |
| 24 | + rel="stylesheet" |
| 25 | + href="./node_modules/vscode-web/dist/out/vs/workbench/workbench.web.main.css" |
| 26 | + /> |
| 27 | + </head> |
| 28 | + |
| 29 | + <body aria-label=""></body> |
| 30 | + <script src="./puterjs-layer.js" type="module"></script> |
| 31 | + <script type="module"> |
| 32 | +// const productData = `{ |
| 33 | +// "productConfiguration": { |
| 34 | +// "nameShort": "VSCode", |
| 35 | +// "nameLong": "Visual Studio Code", |
| 36 | +// "applicationName": "code-web-sample", |
| 37 | +// "dataFolderName": ".vscode-web-sample", |
| 38 | +// "version": "1.91.1", |
| 39 | +// "extensionsGallery": { |
| 40 | +// "serviceUrl": "https://open-vsx.org/vscode/gallery", |
| 41 | +// "itemUrl": "https://open-vsx.org/vscode/item", |
| 42 | +// "resourceUrlTemplate": "https://openvsxorg.blob.core.windows.net/resources/{publisher}/{name}/{version}/{path}" |
| 43 | +// }, |
| 44 | +// "extensionEnabledApiProposals": { |
| 45 | +// "vscode.vscode-web-playground": [ |
| 46 | +// "fileSearchProvider", |
| 47 | +// "textSearchProvider" |
| 48 | +// ] |
| 49 | +// } |
| 50 | +// }, |
| 51 | + |
| 52 | +// "additionalBuiltinExtensions": [ |
| 53 | +// { |
| 54 | +// "scheme": "${location.protocol.slice(0,-1)}", |
| 55 | +// "path": "${location.pathname.split("/").slice(0,-1).join("/")}/myExt" |
| 56 | +// }, |
| 57 | +// { |
| 58 | +// "scheme": "${location.protocol.slice(0,-1)}", |
| 59 | +// "path": "${location.pathname.split("/").slice(0,-1).join("/")}/myDav" |
| 60 | +// } |
| 61 | +// ] |
| 62 | +// } |
| 63 | +// ` |
| 64 | +// try { |
| 65 | +// const fileData = await top.anura.fs.promises.readFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData); |
| 66 | +// if (new TextDecoder().decode(fileData) !== productData) { |
| 67 | +// throw new Error("Product data outdated") |
| 68 | +// } |
| 69 | +// } catch { |
| 70 | +// await top.anura.fs.promises.writeFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData) |
| 71 | +// location.reload(); |
| 72 | +// } |
| 73 | + </script> |
| 74 | + <!-- Startup (do not modify order of script tags!) --> |
| 75 | + <script src="./node_modules/vscode-web/dist/out/vs/loader.js"></script> |
| 76 | + <script src="./node_modules/vscode-web/dist/out/vs/webPackagePaths.js"></script> |
| 77 | + <script> |
| 78 | + Object.keys(self.webPackagePaths).map(function (key, index) { |
| 79 | + self.webPackagePaths[ |
| 80 | + key |
| 81 | + ] = `${location.href.split("/").slice(0,location.href.split("/").length - 1).join("/")}/node_modules/vscode-web/dist/node_modules/${key}/${self.webPackagePaths[key]}`; |
| 82 | + }); |
| 83 | + require.config({ |
| 84 | + baseUrl: `${location.href.split("/").slice(0,location.href.split("/").length - 1).join("/")}/node_modules/vscode-web/dist/out`, |
| 85 | + recordStats: true, |
| 86 | + trustedTypesPolicy: window.trustedTypes?.createPolicy('amdLoader', { |
| 87 | + createScriptURL(value) { |
| 88 | + return value; |
| 89 | + }, |
| 90 | + }), |
| 91 | + paths: self.webPackagePaths, |
| 92 | + }); |
| 93 | + </script> |
| 94 | + <script src="./node_modules/vscode-web/dist/out/vs/workbench/workbench.web.main.nls.js"></script> |
| 95 | + <script src="./node_modules/vscode-web/dist/out/vs/workbench/workbench.web.main.js"></script> |
| 96 | + <script src="./node_modules/vscode-web/dist/out/vs/code/browser/workbench/workbench.js"></script> |
| 97 | +</html> |
0 commit comments