Skip to content

Commit

Permalink
DevEnv settings and format App Store.
Browse files Browse the repository at this point in the history
Co-authored-by: Kat21 <datkat21@users.noreply.github.com>
  • Loading branch information
ItsLap and datkat21 committed Jan 21, 2024
1 parent 60cf266 commit 465b445
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 77 deletions.
14 changes: 9 additions & 5 deletions pkgs/apps/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
const Win = (await Root.Lib.loadLibrary("WindowSystem")).win;

StoreWindow = new Win({
title: Root.Lib.getString('systemApp_AppStore'),
title: Root.Lib.getString("systemApp_AppStore"),
pid: Root.PID,
width: "500px",
height: "350px",
Expand Down Expand Up @@ -75,7 +75,9 @@ export default {

let host = "https://zeondev.github.io/Pluto-AppStore/";

const appStoreModule = (await import(`${host}import.js?t=` + performance.now())).default;
const appStoreModule = (
await import(`${host}import.js?t=` + performance.now())
).default;

// Check if this is the right app store module
if (appStoreModule.init) {
Expand Down Expand Up @@ -117,7 +119,9 @@ export default {
}

async function installApp(pkg, app, force = false) {
await fetch(`${host}pkgs/${pkg}/${app.assets.path}?t=` + performance.now())
await fetch(
`${host}pkgs/${pkg}/${app.assets.path}?t=` + performance.now()
)
.then(async (e) => {
console.log(await vfs.whatIs(`Root/Pluto/apps/${app.name}.app`));
if (
Expand Down Expand Up @@ -467,8 +471,8 @@ export default {
if (m && m.type) {
if (m.type === "refresh") {
Root.Lib.getString = m.data;
StoreWindow.setTitle(Root.Lib.getString('systemApp_AppStore'));
Root.Lib.updateProcTitle(Root.Lib.getString('systemApp_AppStore'));
StoreWindow.setTitle(Root.Lib.getString("systemApp_AppStore"));
Root.Lib.updateProcTitle(Root.Lib.getString("systemApp_AppStore"));
}
}
});
Expand Down
Loading

0 comments on commit 465b445

Please sign in to comment.