diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-05-05 22:56:56 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-05-05 22:56:56 -0500 |
| commit | f86d11c3ce1f04ee89da235d78447aed6d6d7130 (patch) | |
| tree | f253642b156ba296c9a5f9211ae95b62da3ccfb5 /src/index.js | |
| parent | bae5fe5501117df1b16da1aeb3355056d6882648 (diff) | |
| download | immich-frame-f86d11c3ce1f04ee89da235d78447aed6d6d7130.tar.xz immich-frame-f86d11c3ce1f04ee89da235d78447aed6d6d7130.zip | |
albums page and a bunch of stuff
Diffstat (limited to 'src/index.js')
| -rw-r--r-- | src/index.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/index.js b/src/index.js index 4324bb5..a6d2130 100644 --- a/src/index.js +++ b/src/index.js @@ -1,17 +1,16 @@ import "@fontsource/overpass" import "@fontsource/overpass/500.css" +import "@fontsource/overpass/700.css" import "./style.css" -import ImmichConnector from "./immich.js" +import immichConnector from "./immich.js" import Page from "./pages.js" import "./icons.js" import initSlides from "./slides.js" +import initAlbums from "./albums.js" -const immichConnector = new ImmichConnector("http://192.168.1.13", "m5nqOoBc4uhAba21gZdCP3z8D3JT4GPxDXL2psd52EA") -document.immichConnector = immichConnector // FIXME TEMP - -const slideshow = new Page(document.querySelector("#slideshow"), "/slideshow", initSlides) -const albums = new Page(document.querySelector("#albums"), "/albums") -const settings = new Page(document.querySelector("#settings"), "/settings") +const slideshow = new Page(document.querySelector("#slideshow"), ["", "/slideshow"], initSlides) +const albums = new Page(document.querySelector("#albums"), ["/albums"], initAlbums) +const settings = new Page(document.querySelector("#settings"), ["/settings"]) window.addEventListener("popstate", Page.pathnameCallback) Page.pathnameCallback() /* run after all pages are registered */ |
