Skip to content

Commit b87d017

Browse files
committed
core: Added file schemes
1 parent db1108c commit b87d017

File tree

39 files changed

+317
-54
lines changed

39 files changed

+317
-54
lines changed
Lines changed: 28 additions & 0 deletions
Loading

demo/public/assets/apps/icons/text-editor.svg

Lines changed: 12 additions & 1 deletion
Loading

demo/public/assets/icon-mask.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

demo/public/documents/info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ProzillaOS is a web-based operating system inspired by Ubuntu Linux and Windows
88

99
## Open-source
1010

11-
This website was made using React, Vite and TypeScript. The source code is available both on [GitHub](https://github.com/prozilla-os/ProzillaOS) and [on the website itself](/). You can find the documentation for this project inside the [docs](/docs) folder.
11+
This website was made using React, Vite and TypeScript. The source code is available both on [GitHub](https://github.com/prozilla-os/ProzillaOS) and [on the website itself](/). You can find the documentation [here](https://os.prozilla.dev/docs/).
1212

1313
## Support ProzillaOS
1414

demo/src/config/apps.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export const appsConfig = new AppsConfig({
3131
.setIconUrl("/assets/apps/icons/calculator.svg")
3232
.setPinnedByDefault(true),
3333
appCenter.setName("Apps")
34-
.setDescription(`Browse and install ${NAME} apps.`),
34+
.setDescription(`Browse and install ${NAME} apps.`)
35+
.setPinnedByDefault(false),
3536
wordle.setIconUrl("/assets/apps/icons/wordle.svg")
3637
.setPinnedByDefault(false),
3738
ballMaze.setIconUrl("/assets/apps/icons/ball-maze.svg")

demo/src/config/skin.config.ts

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
import { Skin } from "@prozilla-os/skins";
2+
import { removeBaseUrl } from "prozilla-os";
23

3-
export const defaultSkin = new Skin({
4-
wallpapers: [
5-
"/assets/wallpapers/vibrant-wallpaper-blue-purple-red.png",
6-
"/assets/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
7-
"/assets/wallpapers/vibrant-wallpaper-purple-yellow.png",
8-
"/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
9-
"/assets/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
10-
"/assets/wallpapers/mesh-gradient-wallpaper-red-purple.png",
11-
"/assets/wallpapers/colorful-mesh-gradient-red-green.png",
12-
"/assets/wallpapers/flame-abstract-wallpaper-orange.png",
13-
"/assets/wallpapers/wave-abstract-wallpaper-teal.png",
14-
],
4+
const defaultSkin = new Skin({
155
defaultWallpaper: "/assets/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
16-
fileIcons: {
17-
generic: "/assets/apps/file-explorer/icons/file.svg",
18-
info: "/assets/apps/file-explorer/icons/file-info.svg",
19-
text: "/assets/apps/file-explorer/icons/file-text.svg",
20-
code: "/assets/apps/file-explorer/icons/file-code.svg",
21-
},
22-
folderIcons: {
23-
generic: "/assets/apps/file-explorer/icons/folder.svg",
24-
images: "/assets/apps/file-explorer/icons/folder-images.svg",
25-
text: "/assets/apps/file-explorer/icons/folder-text.svg",
26-
link: "/assets/apps/file-explorer/icons/folder-link.svg",
27-
},
28-
});
6+
});
7+
8+
function cleanUrls(skin: Skin) {
9+
skin.systemIcon = removeBaseUrl(skin.systemIcon);
10+
skin.wallpapers = skin.wallpapers.map((url) => removeBaseUrl(url));
11+
skin.defaultWallpaper = removeBaseUrl(skin.defaultWallpaper);
12+
13+
for (const [key, value] of Object.entries(skin.fileIcons)) {
14+
skin.fileIcons[key as keyof Skin["fileIcons"]] = removeBaseUrl(value);
15+
}
16+
17+
for (const [key, value] of Object.entries(skin.folderIcons)) {
18+
skin.folderIcons[key as keyof Skin["folderIcons"]] = removeBaseUrl(value);
19+
}
20+
}
21+
22+
cleanUrls(defaultSkin);
23+
24+
export { defaultSkin };
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# @prozilla-os/app-center
2+
3+
## 1.0.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @prozilla-os/core@1.3.3

packages/apps/app-center/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@prozilla-os/app-center",
33
"description": "A ProzillaOS application for browsing and installing applications.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"homepage": "https://os.prozilla.dev/app-center",
66
"author": {
77
"name": "Prozilla",

packages/apps/browser/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @prozilla-os/browser
22

3+
## 1.1.8
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @prozilla-os/core@1.3.3
9+
310
## 1.1.7
411

512
### Patch Changes

packages/apps/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@prozilla-os/browser",
33
"description": "A ProzillaOS application for browsing the internet.",
4-
"version": "1.1.7",
4+
"version": "1.1.8",
55
"homepage": "https://os.prozilla.dev/browser",
66
"author": {
77
"name": "Prozilla",

0 commit comments

Comments
 (0)