Skip to content

Commit

Permalink
relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
datkat21 committed Jul 26, 2023
1 parent 9f3e76a commit 36e057b
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 420 deletions.
4 changes: 2 additions & 2 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
},
};

GlobalLib.icons = (await import("/assets/icons.js")).default;
GlobalLib.icons = (await import("./assets/icons.js")).default;

// Similar name to procLib but is not actually ProcLib
const processLib = class ProcessAvailableLibrary {
Expand Down Expand Up @@ -282,7 +282,7 @@
url = "none:<Imported as URI>";
// e.g. data:text/javascript;base64,jiOAJIOFAWFJOJAWOj
} else {
pkg = await import("/pkgs/" + url.replace(":", "/") + ".js");
pkg = await import("./pkgs/" + url.replace(":", "/") + ".js");
}

if (!pkg.default)
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="/assets/localforage.min.js"></script>
<script src="./assets/localforage.min.js"></script>
<script defer src="core.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion pkgs/apps/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export default {

const cardBoxIcon = new Html("div")
.class("icon")
.style({ "--url": "url(/assets/pluto-logo.svg)" });
.style({ "--url": "url(./assets/pluto-logo.svg)" });
const cardBoxName = new Html("div").text(
"Pluto " + sysInfo.versionString
);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/apps/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {

/* Banner */ new Root.Lib.html("img")
.attr({
src: "/assets/Banner.svg",
src: "./assets/Banner.svg",
})
.style({
position: "relative",
Expand Down
12 changes: 6 additions & 6 deletions pkgs/lib/VirtualFS.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ let templateFsLayout = {
},
config: {
"appearanceConfig.json": JSON.stringify({
wallpaper: "/assets/wallpapers/space.png",
wallpaper: "./assets/wallpapers/space.png",
useThemeWallpaper: true,
theme: "dark",
}),
themes: {
"light.theme":
'{"version":1,"name":"Light","description":"A built-in theme.","values":null,"cssThemeDataset":"light","wallpaper":"/assets/wallpapers/light.png"}',
'{"version":1,"name":"Light","description":"A built-in theme.","values":null,"cssThemeDataset":"light","wallpaper":"./assets/wallpapers/light.png"}',
"dark.theme":
'{"version":1,"name":"Dark","description":"A built-in theme.","values":null,"cssThemeDataset":"dark","wallpaper":"/assets/wallpapers/space.png"}',
'{"version":1,"name":"Dark","description":"A built-in theme.","values":null,"cssThemeDataset":"dark","wallpaper":"./assets/wallpapers/space.png"}',
"grey.theme":
'{"version":1,"name":"Grey","description":"A built-in theme.","values":null,"cssThemeDataset":"chatify","wallpaper":"/assets/wallpapers/grey.svg"}',
'{"version":1,"name":"Grey","description":"A built-in theme.","values":null,"cssThemeDataset":"chatify","wallpaper":"./assets/wallpapers/grey.svg"}',
"red.theme":
'{"version":1,"name":"Red","description":"A built-in theme.","values":null,"cssThemeDataset":"red","wallpaper":"/assets/wallpapers/red.png"}',
'{"version":1,"name":"Red","description":"A built-in theme.","values":null,"cssThemeDataset":"red","wallpaper":"./assets/wallpapers/red.png"}',
"green.theme":
'{"version":1,"name":"Green","description":"A built-in theme.","values":null,"cssThemeDataset":"green","wallpaper":"/assets/wallpapers/green.jpg"}',
'{"version":1,"name":"Green","description":"A built-in theme.","values":null,"cssThemeDataset":"green","wallpaper":"./assets/wallpapers/green.jpg"}',
},
},
apps: {
Expand Down
183 changes: 0 additions & 183 deletions pkgs/lib/VirtualFS___BACKUP.js

This file was deleted.

Loading

0 comments on commit 36e057b

Please sign in to comment.