prozilla-os 2.0.1 → 2.0.6
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 +109 -113
- package/dist/main.d.ts +1 -0
- package/dist/main.js +3 -4201
- package/dist/main.js.map +1 -1
- package/package.json +20 -18
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<a href="https://os.prozilla.dev/"><img src="https://os.prozilla.dev/assets/logo.svg?v=2" height="200" alt="ProzillaOS" /></a>
|
|
5
5
|
</p>
|
|
6
6
|
<p>
|
|
7
|
-
<a href="https://github.com/prozilla-os/ProzillaOS/blob/main/LICENSE
|
|
8
|
-
<a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Stars" src="https://img.shields.io/github/stars/
|
|
9
|
-
<a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Forks" src="https://img.shields.io/github/forks/
|
|
7
|
+
<a href="https://github.com/prozilla-os/ProzillaOS/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/prozilla-os/ProzillaOS?style=flat-square&color=FF4D5B&label=License"></a>
|
|
8
|
+
<a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Stars" src="https://img.shields.io/github/stars/prozilla-os/ProzillaOS?style=flat-square&color=FED24C&label=%E2%AD%90"></a>
|
|
9
|
+
<a href="https://github.com/prozilla-os/ProzillaOS"><img alt="Forks" src="https://img.shields.io/github/forks/prozilla-os/ProzillaOS?style=flat-square&color=4D9CFF&label=Forks&logo=github"></a>
|
|
10
10
|
<a href="https://www.npmjs.com/package/prozilla-os"><img alt="NPM Version" src="https://img.shields.io/npm/v/prozilla-os?logo=npm&style=flat-square&label=prozilla-os&color=FF4D5B"></a>
|
|
11
11
|
</p>
|
|
12
12
|
</div>
|
|
@@ -38,6 +38,8 @@ pnpm add prozilla-os
|
|
|
38
38
|
- [`@prozilla-os/media-viewer`][media-viewer] - Media viewer app
|
|
39
39
|
- [`@prozilla-os/browser`][browser] - Browser app
|
|
40
40
|
- [`@prozilla-os/calculator`][calculator] - Calculator app
|
|
41
|
+
- [`@prozilla-os/app-center`][app-center] - App center
|
|
42
|
+
- [`@prozilla-os/code-editor`][code-editor] - Code editor app
|
|
41
43
|
|
|
42
44
|
## Usage
|
|
43
45
|
|
|
@@ -64,126 +66,118 @@ function App() {
|
|
|
64
66
|
|
|
65
67
|
### Configuration
|
|
66
68
|
|
|
67
|
-
```
|
|
69
|
+
```ts
|
|
68
70
|
interface ProzillaOSProps {
|
|
71
|
+
systemName?: string;
|
|
72
|
+
tagLine?: string;
|
|
73
|
+
skin?: Skin;
|
|
74
|
+
config?: {
|
|
75
|
+
apps?: Partial<AppsConfigOptions>;
|
|
76
|
+
desktop?: Partial<DesktopConfigOptions>;
|
|
77
|
+
misc?: Partial<MiscConfigOptions>;
|
|
78
|
+
modals?: Partial<ModalsConfigOptions>;
|
|
79
|
+
taskbar?: Partial<TaskbarConfigOptions>;
|
|
80
|
+
tracking?: Partial<TrackingConfigOptions>;
|
|
81
|
+
windows?: Partial<WindowsConfigOptions>;
|
|
82
|
+
virtualDrive?: Partial<VirtualDriveConfigOptions>;
|
|
83
|
+
};
|
|
84
|
+
children?: ReactNode;
|
|
85
|
+
}
|
|
86
|
+
```
|
|
69
87
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
loadStyleSheet: () => void | undefined
|
|
99
|
-
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
config: {
|
|
103
|
-
apps: new AppsConfig({
|
|
104
|
-
|
|
105
|
-
apps: App[]
|
|
106
|
-
|
|
107
|
-
}),
|
|
108
|
-
desktop: new DesktopConfig({
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @default 1
|
|
112
|
-
*/
|
|
113
|
-
defaultIconSize: 0 | 1 | 2,
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* 0: vertical, 1: horizontal
|
|
117
|
-
* @default 0
|
|
118
|
-
* */
|
|
119
|
-
defaultIconDirection: 0 | 1
|
|
120
|
-
|
|
121
|
-
}),
|
|
122
|
-
misc: new MiscConfig({
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @default 250
|
|
126
|
-
*/
|
|
127
|
-
doubleClickDelay: number
|
|
128
|
-
|
|
129
|
-
})
|
|
130
|
-
modals: new ModalsConfig({
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Default size of a dialog box
|
|
134
|
-
* @default new Vector2(400, 200)
|
|
135
|
-
*/
|
|
136
|
-
defaultDialogSize: Vector2,
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Default size of a file selector
|
|
140
|
-
* @default new Vector2(700, 400)
|
|
141
|
-
*/
|
|
142
|
-
defaultFileSelectorSize: Vector2
|
|
143
|
-
|
|
144
|
-
}),
|
|
145
|
-
taskbar: new TaskbarConfig({
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Height of the taskbar in CSS pixels
|
|
149
|
-
* @default 3 * 16
|
|
150
|
-
*/
|
|
151
|
-
height: number
|
|
88
|
+
```ts
|
|
89
|
+
interface SkinOptions {
|
|
90
|
+
systemIcon: string;
|
|
91
|
+
appIcons?: { [key: string]: string };
|
|
92
|
+
appNames?: { [key: string]: string };
|
|
93
|
+
wallpapers: string[];
|
|
94
|
+
defaultWallpaper: string;
|
|
95
|
+
fileIcons: {
|
|
96
|
+
generic: string;
|
|
97
|
+
info?: string;
|
|
98
|
+
text?: string;
|
|
99
|
+
code?: string;
|
|
100
|
+
external?: string;
|
|
101
|
+
video?: string;
|
|
102
|
+
audio?: string;
|
|
103
|
+
};
|
|
104
|
+
folderIcons: {
|
|
105
|
+
generic: string;
|
|
106
|
+
images?: string;
|
|
107
|
+
text?: string;
|
|
108
|
+
link?: string;
|
|
109
|
+
video?: string;
|
|
110
|
+
audio?: string;
|
|
111
|
+
};
|
|
112
|
+
loadStyleSheet?: () => void;
|
|
113
|
+
defaultTheme?: Theme;
|
|
114
|
+
}
|
|
115
|
+
```
|
|
152
116
|
|
|
153
|
-
|
|
154
|
-
|
|
117
|
+
```ts
|
|
118
|
+
interface AppsConfigOptions {
|
|
119
|
+
apps: App[];
|
|
120
|
+
}
|
|
155
121
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
122
|
+
interface DesktopConfigOptions {
|
|
123
|
+
/** @default 1 */
|
|
124
|
+
defaultIconSize: 0 | 1 | 2;
|
|
125
|
+
/** 0: vertical, 1: horizontal @default 0 */
|
|
126
|
+
defaultIconDirection: 0 | 1;
|
|
127
|
+
}
|
|
161
128
|
|
|
162
|
-
|
|
163
|
-
|
|
129
|
+
interface MiscConfigOptions {
|
|
130
|
+
/** @default 250 */
|
|
131
|
+
doubleClickDelay: number;
|
|
132
|
+
}
|
|
164
133
|
|
|
165
|
-
|
|
166
|
-
|
|
134
|
+
interface ModalsConfigOptions {
|
|
135
|
+
/** Default size of a dialog box @default new Vector2(400, 200) */
|
|
136
|
+
defaultDialogSize: Vector2;
|
|
137
|
+
/** Default size of a file selector @default new Vector2(700, 400) */
|
|
138
|
+
defaultFileSelectorSize: Vector2;
|
|
139
|
+
}
|
|
167
140
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
141
|
+
interface TaskbarConfigOptions {
|
|
142
|
+
/** Height of the taskbar in CSS pixels @default 3 * 16 */
|
|
143
|
+
height: number;
|
|
144
|
+
}
|
|
172
145
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
146
|
+
interface TrackingConfigOptions {
|
|
147
|
+
/** Enable tracking @default true */
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
/** Google Analytics measurement ID */
|
|
150
|
+
GAMeasurementId: string;
|
|
151
|
+
}
|
|
177
152
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
153
|
+
interface WindowsConfigOptions {
|
|
154
|
+
/** @default 32 */
|
|
155
|
+
screenMargin: number;
|
|
156
|
+
/** @default "-" */
|
|
157
|
+
titleSeparator: string;
|
|
158
|
+
/** If the user's screen is smaller than these values, windows will always be maximized @default new Vector2(350, 350) */
|
|
159
|
+
minScreenSize: Vector2;
|
|
160
|
+
}
|
|
186
161
|
|
|
162
|
+
interface VirtualDriveConfigOptions {
|
|
163
|
+
/** Enables persistent storage of the virtual drive. */
|
|
164
|
+
saveData: false | {
|
|
165
|
+
enableCompression: boolean;
|
|
166
|
+
prefix?: string;
|
|
167
|
+
migrations?: [string, string][];
|
|
168
|
+
};
|
|
169
|
+
/** Configure the data that is loaded initially. */
|
|
170
|
+
defaultData: {
|
|
171
|
+
includePicturesFolder?: boolean;
|
|
172
|
+
includeAudioFolder?: boolean;
|
|
173
|
+
includeVideoFolder?: boolean;
|
|
174
|
+
includeDocumentsFolder?: boolean;
|
|
175
|
+
includeDesktopFolder?: boolean;
|
|
176
|
+
includeSourceTree?: boolean;
|
|
177
|
+
includeAppsFolder?: boolean;
|
|
178
|
+
includeScriptsFolder?: boolean;
|
|
179
|
+
loadData?: (virtualRoot: VirtualRoot) => void;
|
|
180
|
+
};
|
|
187
181
|
}
|
|
188
182
|
```
|
|
189
183
|
|
|
@@ -211,4 +205,6 @@ interface ProzillaOSProps {
|
|
|
211
205
|
[settings]: https://www.npmjs.com/package/@prozilla-os/settings
|
|
212
206
|
[media-viewer]: https://www.npmjs.com/package/@prozilla-os/media-viewer
|
|
213
207
|
[browser]: https://www.npmjs.com/package/@prozilla-os/browser
|
|
208
|
+
[app-center]: https://www.npmjs.com/package/@prozilla-os/app-center
|
|
214
209
|
[calculator]: https://www.npmjs.com/package/@prozilla-os/calculator
|
|
210
|
+
[code-editor]: https://www.npmjs.com/package/@prozilla-os/code-editor
|
package/dist/main.d.ts
CHANGED