@prozilla-os/core 2.1.2 → 3.0.0
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.
- package/dist/chunks/{install-9Dikj7i2.js → install-D2im81Ke.js} +6 -6
- package/dist/chunks/install-D2im81Ke.js.map +1 -0
- package/dist/chunks/less-wELkkcQx.js.map +1 -1
- package/dist/chunks/{man-E9nMmKZ1.js → man-CAthVoAG.js} +19 -19
- package/dist/chunks/man-CAthVoAG.js.map +1 -0
- package/dist/chunks/nano-DsRjsQ-k.js.map +1 -1
- package/dist/chunks/neofetch-CgwDNr-T.js +46 -0
- package/dist/chunks/neofetch-CgwDNr-T.js.map +1 -0
- package/dist/chunks/posh-MaU_ieMp.js +23 -0
- package/dist/chunks/posh-MaU_ieMp.js.map +1 -0
- package/dist/chunks/{sl-CVLteJLH.js → sl-BGOMkvAR.js} +18 -18
- package/dist/chunks/sl-BGOMkvAR.js.map +1 -0
- package/dist/chunks/terminalUIApp-Bmiaqvd9.js.map +1 -1
- package/dist/chunks/textEditorApp-BM3EiMoV.js.map +1 -1
- package/dist/chunks/vi-Cgo3qLR9.js.map +1 -1
- package/dist/main.d.ts +360 -24
- package/dist/main.js +3964 -30713
- package/dist/main.js.map +1 -1
- package/package.json +12 -5
- package/dist/chunks/install-9Dikj7i2.js.map +0 -1
- package/dist/chunks/man-E9nMmKZ1.js.map +0 -1
- package/dist/chunks/neofetch-Dyre2Ik0.js +0 -46
- package/dist/chunks/neofetch-Dyre2Ik0.js.map +0 -1
- package/dist/chunks/sh-CIyBHb8C.js +0 -11
- package/dist/chunks/sh-CIyBHb8C.js.map +0 -1
- package/dist/chunks/sl-CVLteJLH.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prozilla-os/core",
|
|
3
3
|
"description": "A React component library written in TypeScript for building web-based operating systems, made by Prozilla.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"homepage": "https://os.prozilla.dev",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Prozilla",
|
|
@@ -26,24 +26,30 @@
|
|
|
26
26
|
"lz-string": "^1.5.0",
|
|
27
27
|
"react": "^18.3.1",
|
|
28
28
|
"react-dom": "^18.3.1",
|
|
29
|
-
"react-router-dom": "^6.30.3",
|
|
30
29
|
"react-draggable": "^4.5.0",
|
|
31
30
|
"react-error-boundary": "^4.1.2",
|
|
32
31
|
"react-ga4": "^2.1.0",
|
|
32
|
+
"react-router-dom": "^6.30.3",
|
|
33
33
|
"react-svg": "^17.2.4",
|
|
34
34
|
"valtio": "^2.3.2",
|
|
35
|
-
"@prozilla-os/shared": "1.
|
|
36
|
-
"@prozilla-os/skins": "1.
|
|
35
|
+
"@prozilla-os/shared": "1.5.0",
|
|
36
|
+
"@prozilla-os/skins": "1.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@testing-library/dom": "^10.4.1",
|
|
40
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
41
|
+
"@testing-library/react": "^16.3.2",
|
|
42
|
+
"@testing-library/user-event": "^14.6.1",
|
|
39
43
|
"@types/node": "^20.19.39",
|
|
40
44
|
"@types/react": "^18.3.28",
|
|
41
45
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
42
46
|
"glob": "^11.1.0",
|
|
47
|
+
"jsdom": "^29.1.1",
|
|
43
48
|
"typescript": "^5.9.3",
|
|
44
49
|
"vite": "^7.3.2",
|
|
45
50
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
46
51
|
"vite-plugin-dts": "^4.5.4",
|
|
52
|
+
"vite-plugin-externalize-deps": "^0.10.0",
|
|
47
53
|
"vitest": "^4.1.5"
|
|
48
54
|
},
|
|
49
55
|
"peerDependencies": {
|
|
@@ -61,6 +67,7 @@
|
|
|
61
67
|
},
|
|
62
68
|
"scripts": {
|
|
63
69
|
"build": "tsc --project tsconfig.build.json && vite build",
|
|
64
|
-
"test": "vitest"
|
|
70
|
+
"test": "vitest",
|
|
71
|
+
"lint": "pnpm eslint ."
|
|
65
72
|
}
|
|
66
73
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install-9Dikj7i2.js","sources":["../../src/features/shell/commands/install.ts"],"sourcesContent":["import { Command } from \"../command\";\nimport { Shell } from \"../shell\";\nimport type { LoadAppOptions } from \"../../apps/appLoader\";\n\nexport const install = new Command()\n\t.setManual({\n\t\tpurpose: \"Install an app from a URL or npm package\",\n\t\tusage: \"install [--export <name>] <npm-package | url>\",\n\t\tdescription: \"Dynamically install an app from an npm package name (e.g. @scope/package) or a direct URL to an ES module that exports an App instance.\",\n\t\toptions: {\n\t\t\t\"-e, --export <name>\": \"Name of the export that contains the App instance (default: checks `app` then `default`)\",\n\t\t},\n\t})\n\t.addOption({ short: \"e\", long: \"export\", isInput: true })\n\t.setRequireArgs(true)\n\t.setExecute(async function(args, { stdout, stderr, systemManager, inputs }) {\n\t\tconst target = args[0];\n\n\t\tif (!target) {\n\t\t\tawait Shell.writeError(stderr, \"install\", \"expected a package name or URL\");\n\t\t\treturn 1;\n\t\t}\n\n\t\tawait stdout.write(`Installing \"${target}\"...\\n`);\n\n\t\ttry {\n\t\t\tconst options: LoadAppOptions = {};\n\t\t\tif (inputs.e)\n\t\t\t\toptions.exportName = inputs.e;\n\n\t\t\tconst app = await systemManager.appsConfig.installApp(target, options);\n\n\t\t\tawait Shell.printLn(stdout, `Successfully installed \"${app.name}\" (${app.id})`);\n\t\t} catch (error) {\n\t\t\tawait Shell.writeError(stderr, \"install\", error instanceof Error ? error.message : String(error));\n\t\t\treturn 1;\n\t\t}\n\t});\n"],"names":["install","Command","args","stdout","stderr","systemManager","inputs","target","Shell","options","app","error"],"mappings":";AAIO,MAAMA,IAAU,IAAIC,EAAA,EACzB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,IACR,uBAAuB;AAAA,EAAA;AAEzB,CAAC,EACA,UAAU,EAAE,OAAO,KAAK,MAAM,UAAU,SAAS,IAAM,EACvD,eAAe,EAAI,EACnB,WAAW,eAAeC,GAAM,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,eAAAC,GAAe,QAAAC,KAAU;AAC3E,QAAMC,IAASL,EAAK,CAAC;AAErB,MAAI,CAACK;AACJ,iBAAMC,EAAM,WAAWJ,GAAQ,WAAW,gCAAgC,GACnE;AAGR,QAAMD,EAAO,MAAM,eAAeI,CAAM;AAAA,CAAQ;AAEhD,MAAI;AACH,UAAME,IAA0B,CAAA;AAChC,IAAIH,EAAO,MACVG,EAAQ,aAAaH,EAAO;AAE7B,UAAMI,IAAM,MAAML,EAAc,WAAW,WAAWE,GAAQE,CAAO;AAErE,UAAMD,EAAM,QAAQL,GAAQ,2BAA2BO,EAAI,IAAI,MAAMA,EAAI,EAAE,GAAG;AAAA,EAC/E,SAASC,GAAO;AACf,iBAAMH,EAAM,WAAWJ,GAAQ,WAAWO,aAAiB,QAAQA,EAAM,UAAU,OAAOA,CAAK,CAAC,GACzF;AAAA,EACR;AACD,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"man-E9nMmKZ1.js","sources":["../../src/features/shell/commands/man.ts"],"sourcesContent":["import { Ansi, ANSI } from \"@prozilla-os/shared\";\nimport { Shell } from \"../shell\";\nimport { Command } from \"../command\";\nimport { ExecutableResolver } from \"../executableResolver\";\n\nconst MARGIN = 5;\n\nexport const man = new Command()\n\t.setRequireArgs(true)\n\t.setManual({\n\t\tpurpose: \"Show system reference manuals\",\n\t\tusage: \"man [options] page\\n\"\n\t\t\t+ \"man -k [options] regexp\",\n\t\tdescription: \"Each page arguments given to man is normally the name of a command.\\n\"\n\t\t\t+ \"The manual page associated with this command is then found and displayed.\",\n\t\toptions: {\n\t\t\t\"-k\": \"Search for manual page using regexp\",\n\t\t},\n\t})\n\t.addOption({\n\t\tshort: \"k\",\n\t\tlong: \"apropos\",\n\t})\n\t.setExecute(async function(this: Command, args, { options, stdout, stderr }) {\n\t\t// Search function\n\t\tif (options.includes(\"k\")) {\n\t\t\tconst commands = ExecutableResolver.builtins.filter((builtin) => builtin.name.match(args[0].toLowerCase()));\n\t\t\tconst output = commands.map((command) => {\n\t\t\t\tif (command.manual?.purpose) {\n\t\t\t\t\treturn `${command.name} - ${command.manual.purpose}`;\n\t\t\t\t} else {\n\t\t\t\t\treturn command.name;\n\t\t\t\t}\n\t\t\t}).sort().join(\"\\n\");\n\n\t\t\tawait Shell.printLn(stdout, output);\n\t\t\treturn;\n\t\t}\n\n\t\tconst commandName = args[0].toLowerCase();\n\t\tconst command = ExecutableResolver.getBuiltin(commandName);\n\n\t\tif (!command)\n\t\t\treturn Shell.writeError(stderr, this.name, `${commandName}: Command not found`);\n\n\t\tconst manual = command.manual;\n\n\t\tif (!manual)\n\t\t\treturn Shell.writeError(stderr, this.name, `${commandName}: No manual found`);\n\n\t\tconst formatText = (text: string) => {\n\t\t\tconst lines = text.split(\"\\n\").map((line) => \" \".repeat(MARGIN) + line);\n\t\t\treturn lines.join(\"\\n\");\n\t\t};\n\n\t\tconst sections = [[\"NAME\"]];\n\n\t\tif (manual.purpose) {\n\t\t\tsections[0].push(formatText(`${commandName} - ${ANSI.decoration.dim}${Ansi.yellow(manual.purpose)}`));\n\t\t} else {\n\t\t\tsections[0].push(formatText(commandName));\n\t\t}\n\n\t\tif (manual.usage) {\n\t\t\tsections.push([\n\t\t\t\t\"SYNOPSIS\",\n\t\t\t\tformatText(manual.usage),\n\t\t\t]);\n\t\t}\n\t\t\n\t\tif (manual.description) {\n\t\t\tsections.push([\n\t\t\t\t\"DESCRIPTION\",\n\t\t\t\tformatText(manual.description),\n\t\t\t]);\n\t\t}\n\n\t\tif (manual.options) {\n\t\t\tsections.push([\n\t\t\t\t\"OPTIONS\",\n\t\t\t\tformatText(Object.entries(manual.options).map(([key, value]) => {\n\t\t\t\t\tlet rawOptionSyntax = key.split(\" \");\n\t\t\t\t\tconst shortOption = rawOptionSyntax[0].slice(1);\n\t\t\t\t\trawOptionSyntax = rawOptionSyntax.slice(1);\n\n\t\t\t\t\tlet optionSyntax = \"-\" + shortOption;\n\t\t\t\t\tconst option = command.options.find((option) => option.short == shortOption);\n\t\t\t\t\tif (option !== undefined) {\n\t\t\t\t\t\toptionSyntax += \", --\" + option.long;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (rawOptionSyntax.length) {\n\t\t\t\t\t\toptionSyntax += \" \" + Ansi.dim(rawOptionSyntax.join(\" \"));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn `${optionSyntax} ${ANSI.decoration.dim}${Ansi.yellow(String(value))}`;\n\t\t\t\t}).join(\"\\n\")),\n\t\t\t]);\n\t\t}\n\n\t\tconst output = sections.map((section) => {\n\t\t\tsection[0] = Ansi.yellow(section[0]);\n\t\t\treturn section.join(\"\\n\");\n\t\t}).join(\"\\n\\n\");\n\n\t\tawait Shell.printLn(stdout, output);\n\t});"],"names":["MARGIN","man","Command","args","options","stdout","stderr","output","ExecutableResolver","builtin","command","Shell","commandName","manual","formatText","text","line","sections","ANSI","Ansi","key","value","rawOptionSyntax","shortOption","optionSyntax","option","section"],"mappings":";;AAKA,MAAMA,IAAS,GAEFC,IAAM,IAAIC,EAAA,EACrB,eAAe,EAAI,EACnB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,OAAO;AAAA;AAAA,EAEP,aAAa;AAAA;AAAA,EAEb,SAAS;AAAA,IACR,MAAM;AAAA,EAAA;AAER,CAAC,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,MAAM;AACP,CAAC,EACA,WAAW,eAA8BC,GAAM,EAAE,SAAAC,GAAS,QAAAC,GAAQ,QAAAC,KAAU;AAE5E,MAAIF,EAAQ,SAAS,GAAG,GAAG;AAE1B,UAAMG,IADWC,EAAmB,SAAS,OAAO,CAACC,MAAYA,EAAQ,KAAK,MAAMN,E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EAAI,MAAM,GAAG;AACnC,YAAMG,IAAcD,EAAgB,CAAC,EAAE,MAAM,CAAC;AAC9C,MAAAA,IAAkBA,EAAgB,MAAM,CAAC;AAEzC,UAAIE,IAAe,MAAMD;AACzB,YAAME,IAASf,EAAQ,QAAQ,KAAK,CAACe,MAAWA,EAAO,SAASF,CAAW;AAC3E,aAAIE,MAAW,WACdD,KAAgB,SAASC,EAAO,OAG7BH,EAAgB,WACnBE,KAAgB,MAAML,EAAK,IAAIG,EAAgB,KAAK,GAAG,CAAC,IAGlD,GAAGE,CAAY,IAAIN,EAAK,WAAW,GAAG,GAAGC,EAAK,OAAO,OAAOE,CAAK,CAAC,CAAC;AAAA,IAC3E,CAAC,EAAE,KAAK;AAAA,CAAI,CAAC;AAAA,EAAA,CACb;AAGF,QAAMd,IAASU,EAAS,IAAI,CAACS,OAC5BA,EAAQ,CAAC,IAAIP,EAAK,OAAOO,EAAQ,CAAC,CAAC,GAC5BA,EAAQ,KAAK;AAAA,CAAI,EACxB,EAAE,KAAK;AAAA;AAAA,CAAM;AAEd,QAAMf,EAAM,QAAQN,GAAQE,CAAM;AACnC,CAAC;"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ANSI as n } from "@prozilla-os/shared";
|
|
2
|
-
import { Command as y, Settings as E, ANSI_LOGO_COLOR as H, Shell as _, ANSI_ASCII_LOGO as b } from "../main.js";
|
|
3
|
-
import { Theme as c } from "@prozilla-os/skins";
|
|
4
|
-
const G = new y().setManual({
|
|
5
|
-
purpose: "Fetch system information"
|
|
6
|
-
}).setExecute(async function(F, { username: p, hostname: u, app: O, systemManager: d, settingsManager: A, stdout: M }) {
|
|
7
|
-
const s = b.split(`
|
|
8
|
-
`), N = p.length + u.length + 1, r = (await A.getSettings(E.THEME).get("theme")).value;
|
|
9
|
-
let w = c[c.Dark];
|
|
10
|
-
r != null && !isNaN(parseInt(r)) && (w = c[parseInt(r)]);
|
|
11
|
-
const a = navigator.userAgent;
|
|
12
|
-
let o;
|
|
13
|
-
a.match(/Firefox\//) ? o = "Mozilla Firefox" : a.match(/Edg\//) ? o = "Microsoft Edge" : a.match(/Chrome\//) ? o = "Google Chrome" : a.match(/Safari\//) ? o = "Apple Safari" : o = "Unknown";
|
|
14
|
-
const t = (e, i) => n.fg.cyan + e.toUpperCase() + n.reset + ": " + i, x = [
|
|
15
|
-
`${n.fg.cyan + p + n.reset}@${n.fg.cyan + u + n.reset}`,
|
|
16
|
-
"-".repeat(N),
|
|
17
|
-
t("os", d.systemName),
|
|
18
|
-
t("uptime", d.getUptime(2)),
|
|
19
|
-
t("resolution", window.innerWidth + "x" + window.innerHeight),
|
|
20
|
-
t("theme", w),
|
|
21
|
-
t("icons", "Font Awesome"),
|
|
22
|
-
t("terminal", O?.name ?? "Unknown"),
|
|
23
|
-
t("browser", o),
|
|
24
|
-
t("platform", navigator.platform),
|
|
25
|
-
t("language", navigator.language),
|
|
26
|
-
"",
|
|
27
|
-
Object.values(n.fg).map((e) => e + "███").join("") + n.reset
|
|
28
|
-
], l = s.length, m = x.length, g = Math.max(l, m), L = Math.floor((g - l) / 2), v = Math.floor((g - m) / 2), S = Math.max(...s.map((e) => e.length)), I = [];
|
|
29
|
-
for (let e = 0; e < g; e++) {
|
|
30
|
-
let i = "";
|
|
31
|
-
const h = e - L;
|
|
32
|
-
if (h >= 0 && h < l) {
|
|
33
|
-
const C = s[h];
|
|
34
|
-
i += `${H + C + n.reset}${" ".repeat(S - C.length + 2)}`;
|
|
35
|
-
} else
|
|
36
|
-
i += " ".repeat(S + 2);
|
|
37
|
-
const f = e - v;
|
|
38
|
-
f >= 0 && f < m && (i += x[f]), I.push(i);
|
|
39
|
-
}
|
|
40
|
-
await _.printLn(M, I.join(`
|
|
41
|
-
`));
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
G as neofetch
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=neofetch-Dyre2Ik0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"neofetch-Dyre2Ik0.js","sources":["../../src/features/shell/commands/neofetch.ts"],"sourcesContent":["import { ANSI } from \"@prozilla-os/shared\";\nimport { ANSI_ASCII_LOGO, ANSI_LOGO_COLOR } from \"../../../constants/shell.const\";\nimport { Command } from \"../command\";\nimport { Theme } from \"@prozilla-os/skins\";\nimport { Settings } from \"../../settings/settings\";\nimport { Shell } from \"../shell\";\n\nexport const neofetch = new Command()\n\t.setManual({\n\t\tpurpose: \"Fetch system information\",\n\t})\n\t.setExecute(async function(_arguments, { username, hostname, app, systemManager, settingsManager, stdout }) {\n\t\tconst leftColumn = ANSI_ASCII_LOGO.split(\"\\n\");\n\t\tconst rightColumnWidth = username.length + hostname.length + 1;\n\n\t\tconst themeSetting = await settingsManager.getSettings(Settings.THEME).get(\"theme\");\n\t\tconst themeIndex = themeSetting.value;\n\t\t\n\t\tlet theme = Theme[Theme.Dark];\n\t\tif (themeIndex != null && !isNaN(parseInt(themeIndex))) {\n\t\t\ttheme = Theme[parseInt(themeIndex)];\n\t\t}\n\n\t\tconst userAgent = navigator.userAgent;\n\n\t\t// Check for the browser name using regular expressions\n\t\tlet browserName;\n\t\tif (userAgent.match(/Firefox\\//)) {\n\t\t\tbrowserName = \"Mozilla Firefox\";\n\t\t} else if (userAgent.match(/Edg\\//)) {\n\t\t\tbrowserName = \"Microsoft Edge\";\n\t\t} else if (userAgent.match(/Chrome\\//)) {\n\t\t\tbrowserName = \"Google Chrome\";\n\t\t} else if (userAgent.match(/Safari\\//)) {\n\t\t\tbrowserName = \"Apple Safari\";\n\t\t} else {\n\t\t\tbrowserName = \"Unknown\";\n\t\t}\n\n\t\tconst formatLine = (label: string, text: string) => ANSI.fg.cyan + label.toUpperCase() + ANSI.reset + \": \" + text;\n\n\t\tconst rightColumn = [\n\t\t\t`${ANSI.fg.cyan + username + ANSI.reset}@${ANSI.fg.cyan + hostname + ANSI.reset}`,\n\t\t\t\"-\".repeat(rightColumnWidth),\n\t\t\tformatLine(\"os\", systemManager.systemName),\n\t\t\tformatLine(\"uptime\", systemManager.getUptime(2)),\n\t\t\tformatLine(\"resolution\", window.innerWidth + \"x\" + window.innerHeight),\n\t\t\tformatLine(\"theme\", theme),\n\t\t\tformatLine(\"icons\", \"Font Awesome\"),\n\t\t\tformatLine(\"terminal\", app?.name ?? \"Unknown\"),\n\t\t\tformatLine(\"browser\", browserName),\n\t\t\tformatLine(\"platform\", navigator.platform),\n\t\t\tformatLine(\"language\", navigator.language),\n\t\t\t\"\",\n\t\t\tObject.values(ANSI.fg).map((colorCode) => colorCode + \"███\").join(\"\") + ANSI.reset,\n\t\t];\n\n\t\tconst leftHeight = leftColumn.length;\n\t\tconst rightHeight = rightColumn.length;\n\t\tconst maxHeight = Math.max(leftHeight, rightHeight);\n\n\t\tconst leftOffset = Math.floor((maxHeight - leftHeight) / 2);\n\t\tconst rightOffset = Math.floor((maxHeight - rightHeight) / 2);\n\n\t\tconst logoWidth = Math.max(...leftColumn.map((line) => line.length));\n\n\t\tconst combined = [];\n\t\tfor (let i = 0; i < maxHeight; i++) {\n\t\t\tlet line = \"\";\n\n\t\t\tconst leftIndex = i - leftOffset;\n\t\t\tif (leftIndex >= 0 && leftIndex < leftHeight) {\n\t\t\t\tconst logoLine = leftColumn[leftIndex];\n\t\t\t\tline += `${ANSI_LOGO_COLOR + logoLine + ANSI.reset}${\" \".repeat(logoWidth - logoLine.length + 2)}`;\n\t\t\t} else {\n\t\t\t\tline += \" \".repeat(logoWidth + 2);\n\t\t\t}\n\n\t\t\tconst rightIndex = i - rightOffset;\n\t\t\tif (rightIndex >= 0 && rightIndex < rightHeight) {\n\t\t\t\tline += rightColumn[rightIndex];\n\t\t\t}\n\n\t\t\tcombined.push(line);\n\t\t}\n\n\t\tawait Shell.printLn(stdout, combined.join(\"\\n\"));\n\t});"],"names":["neofetch","Command","_arguments","username","hostname","app","systemManager","settingsManager","stdout","leftColumn","ANSI_ASCII_LOGO","rightColumnWidth","themeIndex","Settings","theme","Theme","userAgent","browserName","formatLine","label","text","ANSI","rightColumn","colorCode","leftHeight","rightHeight","maxHeight","leftOffset","rightOffset","logoWidth","line","combined","i","leftIndex","logoLine","ANSI_LOGO_COLOR","rightIndex","Shell"],"mappings":";;;AAOO,MAAMA,IAAW,IAAIC,EAAA,EAC1B,UAAU;AAAA,EACV,SAAS;AACV,CAAC,EACA,WAAW,eAAeC,GAAY,EAAE,UAAAC,GAAU,UAAAC,GAAU,KAAAC,GAAK,eAAAC,GAAe,iBAAAC,GAAiB,QAAAC,KAAU;AAC3G,QAAMC,IAAaC,EAAgB,MAAM;AAAA,CAAI,GACvCC,IAAmBR,EAAS,SAASC,EAAS,SAAS,GAGvDQ,KADe,MAAML,EAAgB,YAAYM,EAAS,KAAK,EAAE,IAAI,OAAO,GAClD;AAEhC,MAAIC,IAAQC,EAAMA,EAAM,IAAI;AAC5B,EAAIH,KAAc,QAAQ,CAAC,MAAM,SAASA,CAAU,CAAC,MACpDE,IAAQC,EAAM,SAASH,CAAU,CAAC;AAGnC,QAAMI,IAAY,UAAU;AAG5B,MAAIC;AACJ,EAAID,EAAU,MAAM,WAAW,IAC9BC,IAAc,oBACJD,EAAU,MAAM,OAAO,IACjCC,IAAc,mBACJD,EAAU,MAAM,UAAU,IACpCC,IAAc,kBACJD,EAAU,MAAM,UAAU,IACpCC,IAAc,iBAEdA,IAAc;AAGf,QAAMC,IAAa,CAACC,GAAeC,MAAiBC,EAAK,GAAG,OAAOF,EAAM,YAAA,IAAgBE,EAAK,QAAQ,OAAOD,GAEvGE,IAAc;AAAA,IACnB,GAAGD,EAAK,GAAG,OAAOlB,IAAWkB,EAAK,KAAK,IAAIA,EAAK,GAAG,OAAOjB,IAAWiB,EAAK,KAAK;AAAA,IAC/E,IAAI,OAAOV,CAAgB;AAAA,IAC3BO,EAAW,MAAMZ,EAAc,UAAU;AAAA,IACzCY,EAAW,UAAUZ,EAAc,UAAU,CAAC,CAAC;AAAA,IAC/CY,EAAW,cAAc,OAAO,aAAa,MAAM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command as u, Shell as r } from "../main.js";
|
|
2
|
-
const l = new u().setManual({
|
|
3
|
-
purpose: "Execute a shell script"
|
|
4
|
-
}).setRequireArgs(!0).setExecute(async function(n, { stdout: i, stderr: e, workingDirectory: s, shell: a }) {
|
|
5
|
-
const o = n[0], t = s.navigateToFile(o);
|
|
6
|
-
return t ? await a.interpreter.execute(t, { stdout: i, stderr: e }) : r.writeError(e, this.name, r.INVALID_PATH_ERROR);
|
|
7
|
-
});
|
|
8
|
-
export {
|
|
9
|
-
l as sh
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=sh-CIyBHb8C.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sh-CIyBHb8C.js","sources":["../../src/features/shell/commands/sh.ts"],"sourcesContent":["import { Command } from \"../command\";\nimport { Shell } from \"../shell\";\n\nexport const sh = new Command()\n\t.setManual({\n\t\tpurpose: \"Execute a shell script\",\n\t})\n\t.setRequireArgs(true)\n\t.setExecute(async function(this: Command, args, { stdout, stderr, workingDirectory, shell }) {\n\t\tconst path = args[0];\n\t\tconst file = workingDirectory.navigateToFile(path);\n\n\t\tif (!file)\n\t\t\treturn Shell.writeError(stderr, this.name, Shell.INVALID_PATH_ERROR);\n\n\t\treturn await shell.interpreter.execute(file, { stdout, stderr });\n\t});"],"names":["sh","Command","args","stdout","stderr","workingDirectory","shell","path","file","Shell"],"mappings":";AAGO,MAAMA,IAAK,IAAIC,EAAA,EACpB,UAAU;AAAA,EACV,SAAS;AACV,CAAC,EACA,eAAe,EAAI,EACnB,WAAW,eAA8BC,GAAM,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,kBAAAC,GAAkB,OAAAC,EAAA,GAAS;AAC5F,QAAMC,IAAOL,EAAK,CAAC,GACbM,IAAOH,EAAiB,eAAeE,CAAI;AAEjD,SAAKC,IAGE,MAAMF,EAAM,YAAY,QAAQE,GAAM,EAAE,QAAAL,GAAQ,QAAAC,GAAQ,IAFvDK,EAAM,WAAWL,GAAQ,KAAK,MAAMK,EAAM,kBAAkB;AAGrE,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sl-CVLteJLH.js","sources":["../../src/features/shell/commands/sl.ts"],"sourcesContent":["import { parseOptionalFloat } from \"@prozilla-os/shared\";\nimport { Shell } from \"../shell\";\nimport { Command } from \"../command\";\n\nconst ANIMATION_SPEED = 1.25;\n\nconst LOCOMOTIVE_SMOKE = [\n\t[\n\t\t\" (@@) ( ) (@) ( ) @@ () @ o @ o\",\n\t\t\" ( )\",\n\t\t\" (@@@@)\",\n\t\t\" ( )\",\n\t\t\"\",\n\t\t\" (@@@)\",\n\t],\n\t[\n\t\t\" ( ) (@@) ( ) (@) () @@ o @ o @\",\n\t\t\" (@@@)\",\n\t\t\" ( )\",\n\t\t\" (@@@@)\",\n\t\t\"\",\n\t\t\" ( )\",\n\t],\n];\n\nconst LOCOMOTIVE_TOP = [\n\t\" ==== ________ ___________\",\n\t\" _D _| |_______/ \\\\__I_I_____===__|_________|\",\n\t\" |(_)--- | H\\\\________/ | | =|___ ___| \",\n\t\" / | | H | | | | ||_| |_|| \",\n\t\" | | | H |__--------------------| [___] | \",\n\t\" | ________|___H__/__|_____/[][]~\\\\_______| | \",\n\t\" |/ | |-----------I_____I [][] [] D |=======|__\",\n];\n\nconst LOCOMOTIVE_BOTTOM = [\n\t[\n\t\t\"__/ =| o |=-~~\\\\ /~~\\\\ /~~\\\\ /~~\\\\ ____Y___________|__\",\n\t\t\" |/-=|___|= || || || |_____/~\\\\___/ \",\n\t\t\" \\\\_/ \\\\O=====O=====O=====O_/ \\\\_/ \",\n\t],\n\t[\n\t\t\"__/ =| o |=-~~\\\\ /~~\\\\ /~~\\\\ /~~\\\\ ____Y___________|__\",\n\t\t\" |/-=|___|=O=====O=====O=====O |_____/~\\\\___/ \",\n\t\t\" \\\\_/ \\\\__/ \\\\__/ \\\\__/ \\\\__/ \\\\_/ \",\n\t],\n\t[\n\t\t\"__/ =| o |=-O=====O=====O=====O \\\\ ____Y___________|__\",\n\t\t\" |/-=|___|= || || || |_____/~\\\\___/ \",\n\t\t\" \\\\_/ \\\\__/ \\\\__/ \\\\__/ \\\\__/ \\\\_/ \",\n\t],\n\t[\n\t\t\"__/ =| o |=-~O=====O=====O=====O\\\\ ____Y___________|__\",\n\t\t\" |/-=|___|= || || || |_____/~\\\\___/ \",\n\t\t\" \\\\_/ \\\\__/ \\\\__/ \\\\__/ \\\\__/ \\\\_/ \",\n\t],\n\t[\n\t\t\"__/ =| o |=-~~\\\\ /~~\\\\ /~~\\\\ /~~\\\\ ____Y___________|__\",\n\t\t\" |/-=|___|= O=====O=====O=====O|_____/~\\\\___/ \",\n\t\t\" \\\\_/ \\\\__/ \\\\__/ \\\\__/ \\\\__/ \\\\_/ \",\n\t],\n\t[\n\t\t\"__/ =| o |=-~~\\\\ /~~\\\\ /~~\\\\ /~~\\\\ ____Y___________|__\",\n\t\t\" |/-=|___|= || || || |_____/~\\\\___/ \",\n\t\t\" \\\\_/ \\\\_O=====O=====O=====O/ \\\\_/ \",\n\t],\n].reverse();\n\nconst COAL_WAGON = [\n\t\" \",\n\t\" _________________ \",\n\t\" _| \\\\_____A \",\n\t\" =| | \",\n\t\" -| | \",\n\t\"__|________________________|_\",\n\t\"|__________________________|_\",\n\t\" |_D__D__D_| |_D__D__D_| \",\n\t\" \\\\_/ \\\\_/ \\\\_/ \\\\_/ \",\n];\n\nconst EXTRA_WAGONS = [\n\t[\n\t\t\" _______================_______ \",\n\t\t\" | | ___ ___ ___ ___ | | \",\n\t\t\" | | | | | | | | | | | | \",\n\t\t\" | | |_| |_| |_| |_| | | \",\n\t\t\" | | | | \",\n\t\t\"__|__|____________________|__|__\",\n\t\t\"_|____________________________|_\",\n\t\t\" |_D__D__D_| |_D__D__D_| \",\n\t\t\" \\\\_/ \\\\_/ \\\\_/ \\\\_/ \",\n\t],\n\t[\n\t\t\" \",\n\t\t\" ________========__HH____ \",\n\t\t\" / HH \\\\ \",\n\t\t\"/ HH \\\\ \",\n\t\t\"\\\\ HH / \",\n\t\t\"_\\\\__________________HH____/__\",\n\t\t\"|__________________________|_\",\n\t\t\" |_D__D__D_| |_D__D__D_| \",\n\t\t\" \\\\_/ \\\\_/ \\\\_/ \\\\_/ \",\n\t],\n\t[\n\t\t\" \",\n\t\t\" \",\n\t\t\" \",\n\t\t\" \",\n\t\t\" \",\n\t\t\"_____________________________\",\n\t\t\"|__________________________|_\",\n\t\t\" |_D__D__D_| |_D__D__D_| \",\n\t\t\" \\\\_/ \\\\_/ \\\\_/ \\\\_/ \",\n\t],\n\t[\n\t\t\" \",\n\t\t\" _|__|___________|__|___ \",\n\t\t\" (_|__|___________|__|___) \",\n\t\t\" _(|__|___________|__|__)_ \",\n\t\t\" (__|__|___________|__|____)\",\n\t\t\"_(___|__|___________|__|__)__\",\n\t\t\"|__________________________|_\",\n\t\t\" |_D__D__D_| |_D__D__D_| \",\n\t\t\" \\\\_/ \\\\_/ \\\\_/ \\\\_/ \",\n\t],\n\t[\n\t\t\" \",\n\t\t\" ___________________________ \",\n\t\t\" \\\\ | | / \",\n\t\t\" \\\\ | | / \",\n\t\t\" |\\\\ | | /| \",\n\t\t\"__|_\\\\___|___________|___/_|__\",\n\t\t\"|__________________________|_\",\n\t\t\" |_D__D__D_| |_D__D__D_| \",\n\t\t\" \\\\_/ \\\\_/ \\\\_/ \\\\_/ \",\n\t],\n];\n\nfunction generateLocomotive(frame: number, wagonCount = 1, start = 50) {\n\tconst smokeHeight = LOCOMOTIVE_SMOKE[0].length;\n\tconst locomotiveHeight = LOCOMOTIVE_TOP.length + LOCOMOTIVE_BOTTOM[0].length;\n\tconst wagonHeight = COAL_WAGON.length;\n\n\tconst wagonStart = smokeHeight + locomotiveHeight - wagonHeight;\n\n\tconst smoke = LOCOMOTIVE_SMOKE[Math.round(frame / 4) % LOCOMOTIVE_SMOKE.length];\n\tconst top = LOCOMOTIVE_TOP;\n\tconst bottom = LOCOMOTIVE_BOTTOM[frame % LOCOMOTIVE_BOTTOM.length];\n\n\tconst distance = start - frame;\n\tconst locomotive = smoke.concat(top, bottom).map((line, index) => {\n\t\tif (index >= wagonStart && wagonCount > 0) {\n\t\t\tfor (let i = 0; i < wagonCount; i++) {\n\t\t\t\tif (i === 0) {\n\t\t\t\t\tline += COAL_WAGON[index - wagonStart];\n\t\t\t\t} else {\n\t\t\t\t\tline += EXTRA_WAGONS[(i - 1) % EXTRA_WAGONS.length][index - wagonStart];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (distance === 0) {\n\t\t\treturn line;\n\t\t} else if (distance > 0) {\n\t\t\treturn \" \".repeat(distance) + line;\n\t\t} else {\n\t\t\tline = line.slice(-distance);\n\t\t\treturn line;\n\t\t}\n\t}).join(\"\\n\");\n\n\treturn `\\n${locomotive}\\n`;\n}\n\nexport const sl = new Command()\n\t.setManual({\n\t\tpurpose: \"Show animations aimed to correct users who accidentally enter sl instead of ls. SL stands for Steam Locomotive.\",\n\t\tusage: \"sl [-w <number>] [-s <speed>]\",\n\t\toptions: {\n\t\t\t\"-w number\": \"Set the amount of wagons (defaults to 1)\",\n\t\t\t\"-s speed\": `Set the speed of the locomotive (Defaults to ${ANIMATION_SPEED})`,\n\t\t},\n\t})\n\t.addOption({\n\t\tshort: \"w\",\n\t\tlong: \"wagons\",\n\t\tisInput: true,\n\t})\n\t.addOption({\n\t\tshort: \"s\",\n\t\tlong: \"speed\",\n\t\tisInput: true,\n\t})\n\t.setExecute(function(this: Command, _args, { inputs, size, stderr, stdout, stdin }) {\n\t\tlet wagonCount = 1;\n\n\t\tif (inputs.w) {\n\t\t\twagonCount = parseInt(inputs.w);\n\n\t\t\tif (!wagonCount || wagonCount < 0) {\n\t\t\t\treturn Shell.writeError(stderr, this.name, \"Please specify a valid amount of wagons\"); \n\t\t\t}\n\t\t}\n\n\t\tconst speed = parseOptionalFloat(inputs.s, ANIMATION_SPEED);\n\t\tconst delay = 100 / speed;\n\n\t\treturn Shell.animate({\n\t\t\tstdin,\n\t\t\tstdout,\n\t\t\tdelay,\n\t\t\trender: (frame) => generateLocomotive(frame, wagonCount, size.x),\n\t\t});\n\t});"],"names":["ANIMATION_SPEED","LOCOMOTIVE_SMOKE","LOCOMOTIVE_TOP","LOCOMOTIVE_BOTTOM","COAL_WAGON","EXTRA_WAGONS","generateLocomotive","frame","wagonCount","start","smokeHeight","locomotiveHeight","wagonHeight","wagonStart","smoke","top","bottom","distance","line","index","i","sl","Command","_args","inputs","size","stderr","stdout","stdin","Shell","delay","parseOptionalFloat"],"mappings":";;AAIA,MAAMA,IAAkB,MAElBC,IAAmB;AAAA,EACxB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAED;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF,GAEMC,IAAiB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAEMC,IAAoB;AAAA,EACzB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAED;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAED;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAED;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAED;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAED;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF,EAAE,QAAA,GAEIC,IAAa;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAEMC,IAAe;AAAA,EACpB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AA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