@prozilla-os/settings 1.1.4 → 1.1.5
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/README.md +5 -5
- package/dist/main.js +8 -7
- package/dist/main.js.map +1 -1
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</p>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
## About
|
|
14
|
+
## About
|
|
15
15
|
|
|
16
16
|
`@prozilla-os/settings` is a ProzillaOS application for configuring settings.
|
|
17
17
|
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
`@prozilla-os/core` is required to run this application.
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
npm install @prozilla-os/core @prozilla-os/settings
|
|
24
|
+
yarn add @prozilla-os/core @prozilla-os/settings
|
|
25
|
+
pnpm add @prozilla-os/core @prozilla-os/settings
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
@@ -77,4 +77,4 @@ tab: number;
|
|
|
77
77
|
[github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/apps/settings
|
|
78
78
|
[npm]: https://www.npmjs.com/package/@prozilla-os/settings
|
|
79
79
|
[discord]: https://discord.gg/JwbyQP4tdz
|
|
80
|
-
[ko-fi]: https://ko-fi.com/prozilla
|
|
80
|
+
[ko-fi]: https://ko-fi.com/prozilla
|
package/dist/main.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { App as Qi, AppsConfig as eo, useVirtualRoot as Mn, useWindowsManager as Ga, useSystemManager as Dt, useHistory as Os, useAlert as Ss, useWindowedModal as to, useContextMenu as ba, Actions as va, ClickAction as Ke, Vector2 as kt, Divider as As, VirtualRoot as Tr, DialogBox as Pr, ModalsConfig as Nr, DirectoryList as Es, CODE_EXTENSIONS as Ts, utilStyles as ge, WindowedModal as Ps, ImagePreview as ga, StorageManager as ot, VirtualFile as Ns, useSettingsManager as Ka, SettingsManager as xn, THEMES as Cs, Button as kn, IMAGE_EXTENSIONS as _s,
|
|
1
|
+
import { App as Qi, AppsConfig as eo, useVirtualRoot as Mn, useWindowsManager as Ga, useSystemManager as Dt, useHistory as Os, useAlert as Ss, useWindowedModal as to, useContextMenu as ba, Actions as va, ClickAction as Ke, Vector2 as kt, Divider as As, VirtualRoot as Tr, DialogBox as Pr, ModalsConfig as Nr, DirectoryList as Es, CODE_EXTENSIONS as Ts, utilStyles as ge, WindowedModal as Ps, ImagePreview as ga, StorageManager as ot, VirtualFile as Ns, useSettingsManager as Ka, SettingsManager as xn, THEMES as Cs, Button as kn, IMAGE_EXTENSIONS as _s, ProgressBar as Is } from "@prozilla-os/core";
|
|
2
2
|
import { jsxs as U, jsx as S, Fragment as no } from "react/jsx-runtime";
|
|
3
|
-
import Ne, { Children as ao, cloneElement as pn, useRef as bn, useId as
|
|
3
|
+
import Ne, { Children as ao, cloneElement as pn, useRef as bn, useId as Ms, useState as _e, useEffect as tt, useCallback as Rs } from "react";
|
|
4
|
+
import { round as Vn, removeFromArray as js } from "@prozilla-os/shared";
|
|
4
5
|
import './assets/main.css';const Ls = "_SettingsContainer_13l5q_1", zs = "_Settings_13l5q_1", $s = "_Tabs_13l5q_37", Ds = "_TabButton_13l5q_67", Fs = "_ActiveTab_13l5q_89", Ys = "_TabPanel_13l5q_125", Bs = "_ActivePanel_13l5q_147", Hs = "_Option_13l5q_155", Us = "_OptionList_13l5q_175", Vs = "_OptionHorizontal_13l5q_191", Ws = "_Label_13l5q_201", qs = "_Input_13l5q_209", Gs = "_ImageSelectContainer_13l5q_231", Ks = "_ImageSelect_13l5q_231", Xs = "_ButtonGroup_13l5q_301", Js = "_Button_13l5q_301", Zs = "_ButtonDanger_13l5q_341", Qs = "_IconButton_13l5q_353", ec = "_ProgressBarContainer_13l5q_445", tc = "_ProgressBar_13l5q_445", nc = "_ProgressBarLabels_13l5q_463", ac = "_Icon_13l5q_353", rc = "_Dropdown_13l5q_521", V = {
|
|
5
6
|
SettingsContainer: Ls,
|
|
6
7
|
Settings: zs,
|
|
@@ -3609,7 +3610,7 @@ const hf = { className: "react-tabs", focus: !1 }, wf = process.env.NODE_ENV !==
|
|
|
3609
3610
|
const { children: N, disabledTabClassName: H, focus: B, forceRenderTabPanel: K, selectedIndex: fe, selectedTabClassName: be, selectedTabPanelClassName: m, environment: v } = e;
|
|
3610
3611
|
n.current = n.current || [];
|
|
3611
3612
|
let P = n.current.length - f();
|
|
3612
|
-
const T =
|
|
3613
|
+
const T = Ms();
|
|
3613
3614
|
for (; P++ < 0; )
|
|
3614
3615
|
n.current.push(`${T}${n.current.length}`);
|
|
3615
3616
|
return Ma(N, (x) => {
|
|
@@ -7332,7 +7333,7 @@ function fd({ app: e, path: t, selectorMode: n, Footer: a, onSelectionChange: r,
|
|
|
7332
7333
|
B.delete();
|
|
7333
7334
|
} })
|
|
7334
7335
|
] })
|
|
7335
|
-
}), le =
|
|
7336
|
+
}), le = Rs((N, H = !1) => {
|
|
7336
7337
|
if (N == null)
|
|
7337
7338
|
return;
|
|
7338
7339
|
l == null && (H = !0);
|
|
@@ -7651,7 +7652,7 @@ function vd({ app: e, pins: t, setPins: n }) {
|
|
|
7651
7652
|
/* @__PURE__ */ S(Ke, { label: "Launch", icon: e.iconUrl, onTrigger: () => i == null ? void 0 : i.open(e.id) }),
|
|
7652
7653
|
/* @__PURE__ */ S(Ke, { label: a ? "Unpin from taskbar" : "Pin to taskbar", icon: pf, onTrigger: () => {
|
|
7653
7654
|
const c = [...t];
|
|
7654
|
-
a ?
|
|
7655
|
+
a ? js(e.id, t) : c.push(e.id);
|
|
7655
7656
|
const f = r == null ? void 0 : r.getSettings(xn.VIRTUAL_PATHS.taskbar);
|
|
7656
7657
|
f == null || f.set("pins", c.join(","));
|
|
7657
7658
|
} })
|
|
@@ -7716,8 +7717,8 @@ function yd({ tab: e }) {
|
|
|
7716
7717
|
}
|
|
7717
7718
|
) });
|
|
7718
7719
|
}
|
|
7719
|
-
const
|
|
7720
|
+
const Od = new Qi("Settings", "settings", yd).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(eo.APP_ROLES.Settings);
|
|
7720
7721
|
export {
|
|
7721
|
-
|
|
7722
|
+
Od as settings
|
|
7722
7723
|
};
|
|
7723
7724
|
//# sourceMappingURL=main.js.map
|