wasm-idle 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +9 -0
  2. package/dist/clang/app.d.ts +24 -0
  3. package/dist/clang/app.js +119 -0
  4. package/dist/clang/apply.d.ts +2 -0
  5. package/dist/clang/apply.js +11 -0
  6. package/dist/clang/color.d.ts +3 -0
  7. package/dist/clang/color.js +3 -0
  8. package/dist/clang/encode.d.ts +3 -0
  9. package/dist/clang/encode.js +13 -0
  10. package/dist/clang/error.d.ts +14 -0
  11. package/dist/clang/error.js +27 -0
  12. package/dist/clang/index.d.ts +30 -0
  13. package/dist/clang/index.js +107 -0
  14. package/dist/clang/memory/index.d.ts +4 -0
  15. package/dist/clang/memory/index.js +4 -0
  16. package/dist/clang/memory/memFs.d.ts +31 -0
  17. package/dist/clang/memory/memFs.js +121 -0
  18. package/dist/clang/memory/memory.d.ts +17 -0
  19. package/dist/clang/memory/memory.js +56 -0
  20. package/dist/clang/memory/tar.d.ts +2 -0
  21. package/dist/clang/memory/tar.js +59 -0
  22. package/dist/clang/url.d.ts +4 -0
  23. package/dist/clang/url.js +4 -0
  24. package/dist/clang/wasm.d.ts +3 -0
  25. package/dist/clang/wasm.js +16 -0
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.js +2 -0
  28. package/dist/playground/clang.d.ts +20 -0
  29. package/dist/playground/clang.js +89 -0
  30. package/dist/playground/index.d.ts +3 -0
  31. package/dist/playground/index.js +33 -0
  32. package/dist/playground/python.d.ts +20 -0
  33. package/dist/playground/python.js +88 -0
  34. package/dist/playground/sandbox.d.ts +9 -0
  35. package/dist/playground/sandbox.js +1 -0
  36. package/dist/playground/worker/clang.d.ts +1 -0
  37. package/dist/playground/worker/clang.js +46 -0
  38. package/dist/playground/worker/python.d.ts +1 -0
  39. package/dist/playground/worker/python.js +77 -0
  40. package/dist/terminal/Terminal.svelte +130 -0
  41. package/dist/terminal/Terminal.svelte.d.ts +29 -0
  42. package/dist/terminal/index.d.ts +5 -0
  43. package/dist/terminal/index.js +5 -0
  44. package/dist/terminal/plugin/index.d.ts +9 -0
  45. package/dist/terminal/plugin/index.js +19 -0
  46. package/dist/terminal/theme.d.ts +49 -0
  47. package/dist/terminal/theme.js +49 -0
  48. package/package.json +60 -0
  49. package/static/image.jpeg +0 -0
@@ -0,0 +1,9 @@
1
+ import type { Terminal } from "xterm";
2
+ export default function registerAllPlugins(term: Terminal): Promise<{
3
+ fit: import("xterm-addon-fit").FitAddon;
4
+ search: import("xterm-addon-search").SearchAddon;
5
+ serialize: import("xterm-addon-serialize").SerializeAddon;
6
+ weblink: import("xterm-addon-web-links").WebLinksAddon;
7
+ webgl: import("xterm-addon-webgl").WebglAddon;
8
+ unicode: import("xterm-addon-unicode11").Unicode11Addon;
9
+ }>;
@@ -0,0 +1,19 @@
1
+ export default async function registerAllPlugins(term) {
2
+ const { FitAddon } = await import('xterm-addon-fit');
3
+ const { SearchAddon } = await import('xterm-addon-search');
4
+ const { SerializeAddon } = await import('xterm-addon-serialize');
5
+ const { WebLinksAddon } = await import('xterm-addon-web-links');
6
+ const { WebglAddon } = await import('xterm-addon-webgl');
7
+ const { Unicode11Addon } = await import('xterm-addon-unicode11');
8
+ const plugins = {
9
+ fit: new FitAddon(),
10
+ search: new SearchAddon(),
11
+ serialize: new SerializeAddon(),
12
+ weblink: new WebLinksAddon(),
13
+ webgl: new WebglAddon(),
14
+ unicode: new Unicode11Addon()
15
+ };
16
+ for (const plugin in plugins)
17
+ term.loadAddon(plugins[plugin]);
18
+ return plugins;
19
+ }
@@ -0,0 +1,49 @@
1
+ declare const theme: {
2
+ Tango_Dark: {
3
+ foreground: string;
4
+ background: string;
5
+ cursor: string;
6
+ cursorAccent: string;
7
+ selection: string;
8
+ black: string;
9
+ red: string;
10
+ green: string;
11
+ yellow: string;
12
+ blue: string;
13
+ magenta: string;
14
+ cyan: string;
15
+ white: string;
16
+ brightBlack: string;
17
+ brightRed: string;
18
+ brightGreen: string;
19
+ brightYellow: string;
20
+ brightBlue: string;
21
+ brightMagenta: string;
22
+ brightCyan: string;
23
+ brightWhite: string;
24
+ };
25
+ Tango_Light: {
26
+ foreground: string;
27
+ background: string;
28
+ cursor: string;
29
+ cursorAccent: string;
30
+ selection: string;
31
+ black: string;
32
+ red: string;
33
+ green: string;
34
+ yellow: string;
35
+ blue: string;
36
+ magenta: string;
37
+ cyan: string;
38
+ white: string;
39
+ brightBlack: string;
40
+ brightRed: string;
41
+ brightGreen: string;
42
+ brightYellow: string;
43
+ brightBlue: string;
44
+ brightMagenta: string;
45
+ brightCyan: string;
46
+ brightWhite: string;
47
+ };
48
+ };
49
+ export default theme;
@@ -0,0 +1,49 @@
1
+ const theme = {
2
+ Tango_Dark: {
3
+ foreground: '#eee',
4
+ background: '#00000000',
5
+ cursor: '#FFFFFF',
6
+ cursorAccent: '#ffffff',
7
+ selection: '#ffffff44',
8
+ black: '#000000',
9
+ red: '#CC0000',
10
+ green: '#4E9A06',
11
+ yellow: '#C4A000',
12
+ blue: '#3465A4',
13
+ magenta: '#75507B',
14
+ cyan: '#06989A',
15
+ white: '#D3D7CF',
16
+ brightBlack: '#555753',
17
+ brightRed: '#EF2929',
18
+ brightGreen: '#8AE234',
19
+ brightYellow: '#FCE94F',
20
+ brightBlue: '#729FCF',
21
+ brightMagenta: '#AD7FA8',
22
+ brightCyan: '#34E2E2',
23
+ brightWhite: '#EEEEEC'
24
+ },
25
+ Tango_Light: {
26
+ foreground: '#111',
27
+ background: '#FFFFFF00',
28
+ cursor: '#000000',
29
+ cursorAccent: '#000000',
30
+ selection: '#00000044',
31
+ black: '#000000',
32
+ red: '#CC0000',
33
+ green: '#4E9A06',
34
+ yellow: '#C4A000',
35
+ blue: '#3465A4',
36
+ magenta: '#75507B',
37
+ cyan: '#06989A',
38
+ white: '#D3D7CF',
39
+ brightBlack: '#555753',
40
+ brightRed: '#EF2929',
41
+ brightGreen: '#8AE234',
42
+ brightYellow: '#FCE94F',
43
+ brightBlue: '#729FCF',
44
+ brightMagenta: '#AD7FA8',
45
+ brightCyan: '#34E2E2',
46
+ brightWhite: '#EEEEEC'
47
+ }
48
+ };
49
+ export default theme;
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "wasm-idle",
3
+ "version": "0.0.1",
4
+ "description": "A simple web app to run C++/Python code in the browser",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "vite dev",
9
+ "build": "vite build",
10
+ "preview": "vite preview",
11
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
12
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
13
+ "lint": "prettier --plugin-search-dir . --check . && eslint .",
14
+ "format": "prettier --plugin-search-dir . --write .",
15
+ "deploy": "svelte-package && npm publish"
16
+ },
17
+ "devDependencies": {
18
+ "@sveltejs/adapter-auto": "^2.0.0",
19
+ "@sveltejs/adapter-static": "^2.0.2",
20
+ "@sveltejs/kit": "^1.15.5",
21
+ "@sveltejs/package": "^2.0.2",
22
+ "@typescript-eslint/eslint-plugin": "^5.58.0",
23
+ "@typescript-eslint/parser": "^5.58.0",
24
+ "eslint": "^8.38.0",
25
+ "eslint-config-prettier": "^8.8.0",
26
+ "eslint-plugin-svelte3": "^4.0.0",
27
+ "gh-pages": "^5.0.0",
28
+ "monaco-editor": "^0.37.1",
29
+ "prettier": "^2.8.7",
30
+ "prettier-plugin-svelte": "^2.10.0",
31
+ "svelte": "^3.58.0",
32
+ "svelte-check": "^3.2.0",
33
+ "tslib": "^2.5.0",
34
+ "typescript": "^5.0.4",
35
+ "vite": "^4.2.1"
36
+ },
37
+ "dependencies": {
38
+ "pyodide": "^0.23.1",
39
+ "xterm": "^5.1.0",
40
+ "xterm-addon-canvas": "^0.3.0",
41
+ "xterm-addon-fit": "^0.7.0",
42
+ "xterm-addon-ligatures": "^0.6.0",
43
+ "xterm-addon-search": "^0.11.0",
44
+ "xterm-addon-serialize": "^0.9.0",
45
+ "xterm-addon-unicode11": "^0.5.0",
46
+ "xterm-addon-web-links": "^0.8.0",
47
+ "xterm-addon-webgl": "^0.14.0"
48
+ },
49
+ "files": [
50
+ "dist",
51
+ "static/image.jpeg"
52
+ ],
53
+ "exports": {
54
+ ".": {
55
+ "types": "./dist/index.d.ts",
56
+ "svelte": "./dist/index.js"
57
+ }
58
+ },
59
+ "svelte": "./dist/index.js"
60
+ }
Binary file