Skip to content

Commit 6a874ea

Browse files
committed
skins: Added system icon property
1 parent 905a5b6 commit 6a874ea

File tree

28 files changed

+179
-77
lines changed

28 files changed

+179
-77
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
# dependencies
43
node_modules
54
dist
65
cache
7-
86
npm-debug.log*
97
yarn-debug.log*
108
yarn-error.log*
119
*.ini
12-
1310
/tmp
1411
demo/public/config/tree.json
15-
vite.config.ts.timestamp-*.mjs
12+
vite.config.ts.timestamp-*.mjs
13+
.temp

demo/vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { resolve } from "path";
66
import { stageSitePlugin } from "@prozilla-os/dev-tools";
77
import { appsConfig } from "./src/config/apps.config";
88
import { NAME, TAG_LINE } from "./src/config/branding.config";
9+
import { defaultSkin } from "./src/config/skin.config";
910

1011
/**
1112
* Loads packages from their local path instead of node_modules
@@ -79,6 +80,7 @@ export default defineConfig(({ command }) => {
7980
plugins: [
8081
stageSitePlugin({
8182
appsConfig,
83+
favicon: defaultSkin.systemIcon,
8284
siteName: NAME,
8385
siteTagLine: TAG_LINE,
8486
domain: DOMAIN,

docs/.vitepress/config.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export default defineConfig({
1616
["link", { rel: "icon", href: "/docs/favicon.ico" }],
1717
["link", { rel: "preconnect", href: "https://fonts.googleapis.com" }],
1818
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }],
19-
["link", { href: "https://fonts.googleapis.com/css2?family=Outfit:[email protected]&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap", rel: "stylesheet" }]
19+
["link", { href: "https://fonts.googleapis.com/css2?family=Outfit:[email protected]&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap", rel: "stylesheet" }],
2020
],
2121

2222
cleanUrls: true,
2323

2424
outDir: "./dist",
2525

2626
sitemap: {
27-
hostname: "https://os.prozilla.dev/docs/"
27+
hostname: "https://os.prozilla.dev/docs/",
2828
},
2929

3030
themeConfig: {
@@ -36,9 +36,9 @@ export default defineConfig({
3636
base,
3737
items: items.map(({ text, link }) => ({
3838
text,
39-
link: base ? base + link : link
40-
}))
41-
}) as DefaultTheme.NavItem)
39+
link: base ? base + link : link,
40+
})),
41+
}) as DefaultTheme.NavItem),
4242
],
4343

4444
sidebar: Object.assign(
@@ -51,32 +51,32 @@ export default defineConfig({
5151

5252
editLink: {
5353
pattern: "https://github.com/prozilla-os/ProzillaOS/edit/main/docs/src/:path",
54-
text: "Suggest changes to this page"
54+
text: "Suggest changes to this page",
5555
},
5656

5757
socialLinks: [
5858
{ icon: "github", link: "https://github.com/prozilla-os/ProzillaOS" },
5959
{ icon: "discord", link: "https://discord.gg/JwbyQP4tdz" },
60-
{ icon: "npm", link: "https://www.npmjs.com/package/prozilla-os" }
60+
{ icon: "npm", link: "https://www.npmjs.com/package/prozilla-os" },
6161
],
6262

6363
logo: {
6464
dark: "/logo-light.svg",
65-
light: "/logo-dark.svg"
65+
light: "/logo-dark.svg",
6666
},
6767

6868
siteTitle: "ProzillaOS",
6969

7070
footer: {
7171
message: "Built by <strong><a href=\"https://prozilla.dev/\" target=\"_blank\">Prozilla</a></strong>",
72-
copyright: "Copyright &copy; 2023-present Prozilla"
72+
copyright: "Copyright &copy; 2023-present Prozilla",
7373
},
7474

7575
search: {
7676
provider: "local",
7777
options: {
78-
detailedView: true
79-
}
78+
detailedView: true,
79+
},
8080
},
8181
},
8282

@@ -114,13 +114,13 @@ export default defineConfig({
114114
},
115115

116116
ignoreDeadLinks: [
117-
/^https?:\/\/localhost/
117+
/^https?:\/\/localhost/,
118118
],
119119

120120
markdown: {
121121
theme: {
122122
dark: "material-theme",
123-
light: "material-theme-lighter"
123+
light: "material-theme-lighter",
124124
},
125125
},
126126
});

docs/.vitepress/nav.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const NAVIGATION: (DefaultTheme.NavItemChildren & DefaultTheme.SidebarIte
99
items: [
1010
{ text: "Introduction", link: "/introduction" },
1111
{ text: "Features", link: "/features" },
12-
]
12+
],
1313
},
1414
{
1515
text: "Guides",
@@ -19,7 +19,7 @@ export const NAVIGATION: (DefaultTheme.NavItemChildren & DefaultTheme.SidebarIte
1919
{ text: "Getting started", link: "/getting-started" },
2020
{ text: "Custom app", link: "/custom-app" },
2121
{ text: "Self-hosting", link: "/self-hosting" },
22-
]
22+
],
2323
},
2424
{
2525
text: "Reference",
@@ -30,8 +30,8 @@ export const NAVIGATION: (DefaultTheme.NavItemChildren & DefaultTheme.SidebarIte
3030
{ text: "Glossary", link: "/glossary" },
3131
{ text: "Packages", link: "/packages" },
3232
{
33-
items: packageReferenceItems(PACKAGES) as DefaultTheme.SidebarItem[]
34-
}
33+
items: packageReferenceItems(PACKAGES),
34+
},
3535
] as (DefaultTheme.NavItemWithLink & DefaultTheme.SidebarItem)[],
36-
}
36+
},
3737
];

docs/.vitepress/packages.config.ts

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const PACKAGES: PackageData[] = [
1111
{
1212
text: "prozilla-os",
1313
link: "prozilla-os",
14-
category: "Bundle"
14+
category: "Bundle",
1515
},
1616
{
1717
text: "@prozilla-os/core",
@@ -29,7 +29,7 @@ export const PACKAGES: PackageData[] = [
2929
collapsed: true,
3030
items: [
3131
{ text: "App", link: "/app" },
32-
]
32+
],
3333
},
3434
{
3535
text: "System",
@@ -42,8 +42,9 @@ export const PACKAGES: PackageData[] = [
4242
{ text: "ModalsConfig", link: "/modals-config" },
4343
{ text: "TaskbarConfig", link: "/taskbar-config" },
4444
{ text: "TrackingConfig", link: "/tracking-config" },
45+
{ text: "VirtualDriveConfig", link: "/virtual-drive-config" },
4546
{ text: "WindowsConfig", link: "/windows-config" },
46-
]
47+
],
4748
},
4849
{
4950
text: "Utils",
@@ -52,9 +53,9 @@ export const PACKAGES: PackageData[] = [
5253
items: [
5354
{ text: "TimeManager", link: "/time-manager" },
5455
{ text: "Vector2", link: "/vector2" },
55-
]
56+
],
5657
},
57-
]
58+
],
5859
},
5960
{
6061
text: "Functions",
@@ -64,13 +65,13 @@ export const PACKAGES: PackageData[] = [
6465
{ text: "Browser", link: "/browser" },
6566
{ text: "Keyboard", link: "/keyboard" },
6667

67-
]
68+
],
6869
},
6970
{
7071
text: "Constants",
71-
link: "/constants"
72+
link: "/constants",
7273
},
73-
]
74+
],
7475
},
7576
{
7677
text: "@prozilla-os/skins",
@@ -82,10 +83,10 @@ export const PACKAGES: PackageData[] = [
8283
base: "/reference/skins/classes",
8384
collapsed: false,
8485
items: [
85-
{ text: "Skin", link: "/skin" }
86-
]
87-
}
88-
]
86+
{ text: "Skin", link: "/skin" },
87+
],
88+
},
89+
],
8990
},
9091
{
9192
text: "@prozilla-os/shared",
@@ -98,15 +99,15 @@ export const PACKAGES: PackageData[] = [
9899
collapsed: false,
99100
items: [
100101
{ text: "EventEmitter", link: "/event-emitter" },
101-
]
102+
],
102103
},
103104
{
104105
text: "Constants",
105106
base: "/reference/shared/constants",
106107
collapsed: false,
107108
items: [
108109
{ text: "ANSI", link: "/ansi" },
109-
]
110+
],
110111
},
111112
{
112113
text: "Functions",
@@ -117,9 +118,9 @@ export const PACKAGES: PackageData[] = [
117118
{ text: "Date", link: "/date" },
118119
{ text: "Math", link: "/math" },
119120
{ text: "Number", link: "/number" },
120-
]
121-
}
122-
]
121+
],
122+
},
123+
],
123124
},
124125
{
125126
text: "@prozilla-os/dev-tools",
@@ -133,9 +134,9 @@ export const PACKAGES: PackageData[] = [
133134
items: [
134135
{ text: "Console", link: "/console" },
135136
{ text: "Vite", link: "/vite" },
136-
]
137-
}
138-
]
137+
],
138+
},
139+
],
139140
},
140141
{
141142
text: "@prozilla-os/calculator",
@@ -171,7 +172,7 @@ export const PACKAGES: PackageData[] = [
171172
text: "@prozilla-os/logic-sim",
172173
link: "apps/logic-sim",
173174
category: "Apps",
174-
}
175+
},
175176
];
176177

177178
export const packageSidebars = (packages: PackageData[]): DefaultTheme.Sidebar => {
@@ -186,10 +187,10 @@ export const packageSidebars = (packages: PackageData[]): DefaultTheme.Sidebar =
186187
text,
187188
items: [
188189
{ text: "Info", link: "/" },
189-
...items
190-
]
191-
}
192-
]
190+
...items,
191+
],
192+
},
193+
],
193194
};
194195
});
195196

@@ -204,13 +205,13 @@ export const packageReferenceItems = (packages: PackageData[]): DefaultTheme.Sid
204205
categories[category] = {
205206
text: category,
206207
collapsed: true,
207-
items: []
208+
items: [],
208209
};
209210
}
210211

211212
categories[category].items?.push({
212213
text,
213-
link: "/" + link
214+
link: "/" + link,
214215
});
215216
});
216217

docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
extends: DefaultTheme,
1010
Layout() {
1111
return h(DefaultTheme.Layout, null, {
12-
"doc-before": () => h(PackageBadge)
12+
"doc-before": () => h(PackageBadge),
1313
});
14-
}
14+
},
1515
} satisfies Theme;

docs/.vitepress/theme/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,4 +447,13 @@ li > p {
447447

448448
.VPSwitch .check .icon [class^="vpi-"] {
449449
color: var(--vp-c-text-2);
450+
}
451+
452+
.custom-block.note a, .custom-block.note code {
453+
color: var(--vp-c-note-3);
454+
}
455+
456+
.custom-block.note a:hover,
457+
.custom-block.note a:hover > code {
458+
color: var(--vp-c-note-2);
450459
}
688 KB
Loading
177 KB
Loading

docs/src/reference/core/classes/utils/time-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
outline: 3
2+
outline: [1, 3]
33
description: "A utility class for keeping track of time"
44
package: "@prozilla-os/core"
55
---

0 commit comments

Comments
 (0)