Skip to content

Commit

Permalink
relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Feb 7, 2025
1 parent a25d976 commit 94c79ae
Show file tree
Hide file tree
Showing 39 changed files with 169 additions and 163 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Upload Anura Types Artifact
uses: actions/upload-artifact@v4
with:
name: anura-static
name: anura-types
path: anuraos-types/*
retention-days: 90

Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
prerelease: true

publish:
name: Upload release
name: Publish anura-types to NPM
runs-on: ubuntu-latest
needs: build
permissions: write-all
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Get artifacts
uses: actions/download-artifact@v4
with:
name: anura-static
name: anura-types
path: .

- name: Check the version
Expand Down
2 changes: 1 addition & 1 deletion apps/fsapp.app/appview.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<style>
@font-face {
font-family: Roboto;
src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype");
src: url("./assets/fonts/Roboto-Regular.ttf") format("truetype");
}

html {
Expand Down
4 changes: 2 additions & 2 deletions apps/fsapp.app/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<html>
<head>
<link rel="stylesheet" href="/assets/materialsymbols.css" />
<link rel="stylesheet" href="./assets/materialsymbols.css" />
<!-- these styles get used across the appo and dont need to be redefined per component -->
<style>
@font-face {
font-family: Roboto;
src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype");
src: url("./assets/fonts/Roboto-Regular.ttf") format("truetype");
}
* {
color: var(--theme-fg);
Expand Down
4 changes: 2 additions & 2 deletions apps/fsapp.app/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async function fileAction(selected) {
iframe.contentWindow.addEventListener("load", () => {
const matter = document.createElement("link");
matter.setAttribute("rel", "stylesheet");
matter.setAttribute("href", "/assets/matter.css");
matter.setAttribute("href", "./assets/matter.css");
iframe.contentDocument.head.appendChild(matter);
});
} catch (e) {
Expand Down Expand Up @@ -333,7 +333,7 @@ async function fileAction(selected) {
iframe.contentWindow.addEventListener("load", () => {
const matter = document.createElement("link");
matter.setAttribute("rel", "stylesheet");
matter.setAttribute("href", "/assets/matter.css");
matter.setAttribute("href", "./assets/matter.css");
iframe.contentDocument.head.appendChild(matter);
});
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion apps/libfileview.lib/pages/appview/appview.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<style>
@font-face {
font-family: Roboto;
src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype");
src: url("./assets/fonts/Roboto-Regular.ttf") format("truetype");
}

html {
Expand Down
4 changes: 2 additions & 2 deletions apps/libfileview.lib/pages/appview/appview.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export async function createAppView(dataPath, type) {
iframe.contentWindow.addEventListener("load", () => {
const matter = document.createElement("link");
matter.setAttribute("rel", "stylesheet");
matter.setAttribute("href", "/assets/matter.css");
matter.setAttribute("href", "./assets/matter.css");
iframe.contentDocument.head.appendChild(matter);
});
}
Expand Down Expand Up @@ -240,7 +240,7 @@ export async function createAppViewFolder() {
iframe.contentWindow.addEventListener("load", () => {
const matter = document.createElement("link");
matter.setAttribute("rel", "stylesheet");
matter.setAttribute("href", "/assets/matter.css");
matter.setAttribute("href", "./assets/matter.css");
iframe.contentDocument.head.appendChild(matter);
});
}
Expand Down
16 changes: 8 additions & 8 deletions config.default.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"apps": [
"apps/term.app",
"apps/fsapp.app",
"apps/marketplace.app",
"apps/ashell.app"
"./apps/term.app",
"./apps/fsapp.app",
"./apps/marketplace.app",
"./apps/ashell.app"
],
"libs": [
"/apps/libfileview.lib",
"/apps/libfilepicker.lib",
"/apps/libstore.lib",
"/apps/libpersist.lib"
"./apps/libfileview.lib",
"./apps/libfilepicker.lib",
"./apps/libstore.lib",
"./apps/libpersist.lib"
],
"bin": ["/bin/chimerix.ajs"],
"defaultsettings": {
Expand Down
12 changes: 6 additions & 6 deletions public/anura-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ if (navigator.userAgent.includes("Firefox")) {
// Due to anura's filesystem only being available once an anura instance is running,
// we need a temporary filesystem to store files that are requested for caching.
// As the anura filesystem is a wrapper around Filer, we can use default Filer here.
importScripts("/libs/filer/filer.min.js");
importScripts("./libs/filer/filer.min.js");

// Importing mime
importScripts("/libs/mime/mime.iife.js");
importScripts("./libs/mime/mime.iife.js");

// self.fs = new Filer.FileSystem({
// name: "anura-mainContext",
Expand Down Expand Up @@ -71,18 +71,18 @@ async function currentFs() {

self.Buffer = Filer.Buffer;

importScripts("/libs/comlink/comlink.min.umd.js");
importScripts("./libs/comlink/comlink.min.umd.js");

importScripts("/libs/workbox/workbox-v7.3.0/workbox-sw.js");
importScripts("./libs/workbox/workbox-v7.3.0/workbox-sw.js");
workbox.setConfig({
debug: false,
modulePathPrefix: "/libs/workbox/workbox-v7.3.0",
modulePathPrefix: "./libs/workbox/workbox-v7.3.0",
});

workbox.core.skipWaiting();
workbox.core.clientsClaim();

importScripts("/libs/idb-keyval/idb-keyval.js");
importScripts("./libs/idb-keyval/idb-keyval.js");

var cacheenabled;

Expand Down
2 changes: 1 addition & 1 deletion public/assets/materialsymbols.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-family: "Material Symbols Outlined";
font-style: normal;
font-weight: 100 700;
src: url(/assets/materialsymbols.woff2) format("woff2");
src: url(./assets/materialsymbols.woff2) format("woff2");
}

.material-symbols-outlined {
Expand Down
42 changes: 21 additions & 21 deletions public/assets/wallpaper/bundled_wallpapers/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,87 +2,87 @@
"wallpapers": [
{
"name": "Nocturne",
"url": "/assets/wallpaper/bundled_wallpapers/Nocturne.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Nocturne.jpg"
},
{
"name": "ChromeOS Default",
"url": "/assets/wallpaper/bundled_wallpapers/Default.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Default.jpg"
},
{
"name": "Blues Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Blues Dark.png"
"url": "./assets/wallpaper/bundled_wallpapers/Blues Dark.png"
},
{
"name": "Blues",
"url": "/assets/wallpaper/bundled_wallpapers/Blues.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Blues.jpg"
},
{
"name": "Child",
"url": "/assets/wallpaper/bundled_wallpapers/Child.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Child.jpg"
},
{
"name": "ChromeOS Material",
"url": "/assets/wallpaper/bundled_wallpapers/Material.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Material.jpg"
},
{
"name": "Earth Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Earth Dark.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Earth Dark.jpg"
},
{
"name": "Earth Light",
"url": "/assets/wallpaper/bundled_wallpapers/Earth Light.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Earth Light.jpg"
},
{
"name": "Fire Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Fire Dark.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Fire Dark.jpg"
},
{
"name": "Fire Light",
"url": "/assets/wallpaper/bundled_wallpapers/Fire Light.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Fire Light.jpg"
},
{
"name": "Greens Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Greens Dark.png"
"url": "./assets/wallpaper/bundled_wallpapers/Greens Dark.png"
},
{
"name": "Greens",
"url": "/assets/wallpaper/bundled_wallpapers/Greens.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Greens.jpg"
},
{
"name": "Guest",
"url": "/assets/wallpaper/bundled_wallpapers/Guest.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Guest.jpg"
},
{
"name": "Reds Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Reds Dark.png"
"url": "./assets/wallpaper/bundled_wallpapers/Reds Dark.png"
},
{
"name": "Reds",
"url": "/assets/wallpaper/bundled_wallpapers/Reds.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Reds.jpg"
},
{
"name": "Water Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Water Dark.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Water Dark.jpg"
},
{
"name": "Water Light",
"url": "/assets/wallpaper/bundled_wallpapers/Water Light.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Water Light.jpg"
},
{
"name": "Wind Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Wind Dark.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Wind Dark.jpg"
},
{
"name": "Wind Light",
"url": "/assets/wallpaper/bundled_wallpapers/Wind Light.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Wind Light.jpg"
},
{
"name": "Yellows Dark",
"url": "/assets/wallpaper/bundled_wallpapers/Yellows Dark.png"
"url": "./assets/wallpaper/bundled_wallpapers/Yellows Dark.png"
},
{
"name": "Yellows",
"url": "/assets/wallpaper/bundled_wallpapers/Yellows.jpg"
"url": "./assets/wallpaper/bundled_wallpapers/Yellows.jpg"
}
]
}
Loading

0 comments on commit 94c79ae

Please sign in to comment.