@prozilla-os/file-explorer 1.0.5 → 1.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 +108 -114
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
<br />
|
|
3
|
+
<p>
|
|
4
|
+
<a href="https://os.prozilla.dev/"><img src="https://os.prozilla.dev/assets/logo.png" height="200" alt="ProzillaOS" /></a>
|
|
5
|
+
</p>
|
|
6
|
+
<p>
|
|
7
|
+
<a href="https://github.com/prozilla-os/ProzillaOS/blob/main/LICENSE.md"><img alt="License" src="https://img.shields.io/github/license/Prozilla/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/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/ProzillaOS?style=flat-square&color=4D9CFF&label=Forks&logo=github"></a>
|
|
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
|
+
</p>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
14
|
## About
|
|
15
15
|
|
|
16
16
|
`@prozilla-os/file-explorer` is a standard ProzillaOS application for browsing files.
|
|
17
17
|
|
|
18
|
-
## Requirements
|
|
19
|
-
|
|
20
|
-
|
|
21
18
|
## Installation
|
|
22
19
|
|
|
23
20
|
`@prozilla-os/core` is required to run this application.
|
|
@@ -35,22 +32,22 @@ import { Desktop, ModalsView, ProzillaOS, Taskbar, WindowsView, AppsConfig } fro
|
|
|
35
32
|
import { fileExplorer } from "@prozilla-os/file-explorer";
|
|
36
33
|
|
|
37
34
|
function App() {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
35
|
+
return (
|
|
36
|
+
<ProzillaOS
|
|
37
|
+
systemName="Example"
|
|
38
|
+
tagLine="Power by ProzillaOS"
|
|
39
|
+
config={{
|
|
40
|
+
apps: new AppsConfig({
|
|
41
|
+
apps: [ fileExplorer ]
|
|
42
|
+
})
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
45
|
+
<Taskbar/>
|
|
46
|
+
<WindowsView/>
|
|
47
|
+
<ModalsView/>
|
|
48
|
+
<Desktop/>
|
|
49
|
+
</ProzillaOS>
|
|
50
|
+
);
|
|
54
51
|
}
|
|
55
52
|
```
|
|
56
53
|
|
|
@@ -61,120 +58,117 @@ function App() {
|
|
|
61
58
|
```tsx
|
|
62
59
|
{
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
systemName: string,
|
|
65
62
|
|
|
66
|
-
|
|
63
|
+
tagLine: string,
|
|
67
64
|
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
config: {
|
|
66
|
+
apps: {
|
|
70
67
|
|
|
71
|
-
|
|
68
|
+
apps: App[]
|
|
72
69
|
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
},
|
|
71
|
+
desktop: {
|
|
75
72
|
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
/** Array of URLs of wallpaper images */
|
|
74
|
+
wallpapers: string[];
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
/** URL of default wallpaper image */
|
|
77
|
+
defaultWallpaper: string;
|
|
81
78
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
/**
|
|
80
|
+
* @default 1
|
|
81
|
+
*/
|
|
82
|
+
defaultIconSize: 0 | 1 | 2;
|
|
86
83
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
/**
|
|
85
|
+
* 0: vertical, 1: horizontal
|
|
86
|
+
* @default 0
|
|
87
|
+
* */
|
|
88
|
+
defaultIconDirection: 0 | 1;
|
|
92
89
|
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
},
|
|
91
|
+
modals: {
|
|
95
92
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Default size of a dialog box
|
|
95
|
+
* @default new Vector2(400, 200)
|
|
96
|
+
*/
|
|
97
|
+
defaultDialogSize: Vector2;
|
|
101
98
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Default size of a file selector
|
|
101
|
+
* @default new Vector2(700, 400)
|
|
102
|
+
*/
|
|
103
|
+
defaultFileSelectorSize: Vector2;
|
|
107
104
|
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
},
|
|
106
|
+
taskbar: {
|
|
110
107
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
/**
|
|
109
|
+
* Height of the taskbar in CSS pixels
|
|
110
|
+
* @default 3 * 16
|
|
111
|
+
*/
|
|
112
|
+
height: number;
|
|
116
113
|
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
},
|
|
115
|
+
tracking: {
|
|
119
116
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Enable tracking
|
|
119
|
+
* @default true
|
|
120
|
+
*/
|
|
121
|
+
enabled: boolean;
|
|
125
122
|
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
/** Google Analytics measurement ID */
|
|
124
|
+
GAMeasurementId: string;
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
},
|
|
127
|
+
virtualDrive: {
|
|
131
128
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
fileIcon: string;
|
|
130
|
+
infoFileIcon: string;
|
|
131
|
+
textFileIcon: string;
|
|
132
|
+
codeFileIcon: string;
|
|
136
133
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
134
|
+
folderIcon: string;
|
|
135
|
+
imagesFolderIcon: string;
|
|
136
|
+
textFolderIcon: string;
|
|
137
|
+
folderLinkIcon: string;
|
|
141
138
|
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
},
|
|
140
|
+
windows: {
|
|
144
141
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
142
|
+
/**
|
|
143
|
+
* @default 32
|
|
144
|
+
*/
|
|
145
|
+
screenMargin: number;
|
|
149
146
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
147
|
+
/**
|
|
148
|
+
* @default "-"
|
|
149
|
+
*/
|
|
150
|
+
titleSeparator: string;
|
|
154
151
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
/**
|
|
153
|
+
* If the user's screen is smaller than these values, windows will always be maximized
|
|
154
|
+
* @default new Vector2(350, 350)
|
|
155
|
+
*/
|
|
156
|
+
minScreenSize: Vector2;
|
|
160
157
|
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
}
|
|
159
|
+
}
|
|
163
160
|
|
|
164
161
|
}
|
|
165
162
|
```
|
|
166
163
|
|
|
167
164
|
## Links
|
|
168
165
|
|
|
169
|
-
- [Website/demo]
|
|
170
|
-
- [GitHub]
|
|
171
|
-
- [npm]
|
|
172
|
-
- [Ko-fi]
|
|
166
|
+
- [Website/demo][website]
|
|
167
|
+
- [GitHub][github]
|
|
168
|
+
- [npm][npm]
|
|
169
|
+
- [Ko-fi][ko-fi]
|
|
173
170
|
|
|
174
171
|
[website]: https://os.prozilla.dev/
|
|
175
|
-
[github]: https://github.com/prozilla-os/ProzillaOS
|
|
176
|
-
[npm]: https://www.npmjs.com/package
|
|
177
|
-
[ko-fi]: https://ko-fi.com/prozilla
|
|
178
|
-
[issues]: https://github.com/prozilla-os/ProzillaOS/issues
|
|
179
|
-
[boilerplate]: https://github.com/prozilla-os/ProzillaOS-boilerplate
|
|
180
|
-
[prozilla]: https://prozilla.dev/
|
|
172
|
+
[github]: https://github.com/prozilla-os/ProzillaOS/tree/convert-to-monorepo/packages/apps/file-explorer
|
|
173
|
+
[npm]: https://www.npmjs.com/package/@prozilla-os/file-explorer
|
|
174
|
+
[ko-fi]: https://ko-fi.com/prozilla
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prozilla-os/file-explorer",
|
|
3
|
-
"
|
|
3
|
+
"description": "A standard ProzillaOS application for browsing files.",
|
|
4
|
+
"version": "1.0.6",
|
|
4
5
|
"author": {
|
|
5
6
|
"name": "Prozilla",
|
|
6
7
|
"email": "business@prozilla.dev",
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
20
21
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
21
22
|
"react": "^18.3.1",
|
|
22
|
-
"@prozilla-os/core": "1.0.
|
|
23
|
+
"@prozilla-os/core": "1.0.9"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"typescript": "^5.4.5"
|