Skip to content

Commit 7a69a2b

Browse files
committed
shared: Moved utils from core package to shared
1 parent d3fd8ea commit 7a69a2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+6006
-207
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"email": "[email protected]",
77
"url": "https://prozilla.dev/"
88
},
9+
"funding": "https://ko-fi.com/prozilla",
910
"homepage": "https://os.prozilla.dev/",
1011
"type": "module",
1112
"license": "MIT",

packages/apps/browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"email": "[email protected]",
99
"url": "https://prozilla.dev/"
1010
},
11+
"funding": "https://ko-fi.com/prozilla",
1112
"type": "module",
1213
"main": "dist/main.js",
1314
"types": "dist/main.d.ts",

packages/apps/calculator/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"email": "[email protected]",
99
"url": "https://prozilla.dev/"
1010
},
11+
"funding": "https://ko-fi.com/prozilla",
1112
"type": "module",
1213
"main": "dist/main.js",
1314
"types": "dist/main.d.ts",

packages/apps/file-explorer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"email": "[email protected]",
99
"url": "https://prozilla.dev/"
1010
},
11+
"funding": "https://ko-fi.com/prozilla",
1112
"type": "module",
1213
"main": "dist/main.js",
1314
"types": "dist/main.d.ts",

packages/apps/logic-sim/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"email": "[email protected]",
99
"url": "https://prozilla.dev/"
1010
},
11+
"funding": "https://ko-fi.com/prozilla",
1112
"type": "module",
1213
"main": "dist/main.js",
1314
"types": "dist/main.d.ts",
@@ -22,6 +23,7 @@
2223
"license": "MIT",
2324
"dependencies": {
2425
"@prozilla-os/core": "workspace:*",
26+
"@prozilla-os/shared": "workspace:*",
2527
"react": "^18.3.1"
2628
},
2729
"devDependencies": {
@@ -31,8 +33,7 @@
3133
"typescript": "^5.4.5",
3234
"vite": "^5.3.1",
3335
"vite-plugin-dts": "^3.9.1",
34-
"vite-plugin-lib-inject-css": "^2.1.1",
35-
"@prozilla-os/shared": "workspace:*"
36+
"vite-plugin-lib-inject-css": "^2.1.1"
3637
},
3738
"files": [
3839
"dist"

packages/apps/logic-sim/src/core/circuit.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { clamp, Vector2 } from "@prozilla-os/core";
1+
import { Vector2 } from "@prozilla-os/core";
22
import { Chip, ChipJson } from "./chips/chip";
33
import { ControlledPin } from "./pins/controlledPin";
44
import { InputHandler } from "./inputHandler";
55
import { Wire, WireJson } from "./wires/wire";
66
import { BACKGROUND, COLORS, CONTROLLER, CURSORS, ENABLE_COLOR_CACHING, FONT } from "../constants/logicSim.const";
7+
import { clamp } from "@prozilla-os/shared";
78

89
export interface CircuitJson extends ChipJson {
910
wires: WireJson[];

packages/apps/media-viewer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"email": "[email protected]",
99
"url": "https://prozilla.dev/"
1010
},
11+
"funding": "https://ko-fi.com/prozilla",
1112
"type": "module",
1213
"main": "dist/main.js",
1314
"types": "dist/main.d.ts",

packages/apps/settings/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"email": "[email protected]",
99
"url": "https://prozilla.dev/"
1010
},
11+
"funding": "https://ko-fi.com/prozilla",
1112
"type": "module",
1213
"main": "dist/main.js",
1314
"types": "dist/main.d.ts",
@@ -26,10 +27,10 @@
2627
"@fortawesome/react-fontawesome": "^0.2.2",
2728
"@prozilla-os/core": "workspace:*",
2829
"@prozilla-os/file-explorer": "workspace:*",
30+
"@prozilla-os/shared": "^1.1.1",
2931
"react": "^18.3.1"
3032
},
3133
"devDependencies": {
32-
"@prozilla-os/shared": "workspace:*",
3334
"@types/node": "^20.14.5",
3435
"@types/react": "^18.3.3",
3536
"@vitejs/plugin-react-swc": "^3.7.0",

packages/apps/settings/src/components/tabs/AppOption.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
22
import styles from "../Settings.module.css";
33
import { faEllipsisVertical, faThumbTack } from "@fortawesome/free-solid-svg-icons";
44
import { MouseEventHandler } from "react";
5-
import { Actions, App, ClickAction, ImagePreview, removeFromArray, SettingsManager, useContextMenu, useSettingsManager, useWindowsManager } from "@prozilla-os/core";
5+
import { Actions, App, ClickAction, ImagePreview, SettingsManager, useContextMenu, useSettingsManager, useWindowsManager } from "@prozilla-os/core";
6+
import { removeFromArray } from "@prozilla-os/shared";
67

78
interface AppOptionProps {
89
app: App;

packages/apps/settings/src/components/tabs/StorageSettings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import { round } from "@prozilla-os/shared";
12
import styles from "../Settings.module.css";
2-
import { Button, ProgressBar, round, StorageManager, useVirtualRoot, utilStyles } from "@prozilla-os/core";
3+
import { Button, ProgressBar, StorageManager, useVirtualRoot, utilStyles } from "@prozilla-os/core";
34

45
export function StorageTab() {
56
const virtualRoot = useVirtualRoot();

0 commit comments

Comments
 (0)