diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-09 22:16:48 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-09 22:16:57 -0600 |
| commit | 3e7fdfb6c8a50c59ac933f701526ad1815dded92 (patch) | |
| tree | d2c699ff93e23d0fe45845a4c2dc05d820ec317b /static/src/index.js | |
| parent | 39738b84e9164b0f2d01f22440548c4393160013 (diff) | |
| download | immich-frame-3e7fdfb6c8a50c59ac933f701526ad1815dded92.tar.xz immich-frame-3e7fdfb6c8a50c59ac933f701526ad1815dded92.zip | |
refactor codebase. Reorganize file structure. Replace webpack for vite. Setup setuptools for application. Move closer to distributable appv0.3.0
Diffstat (limited to 'static/src/index.js')
| -rw-r--r-- | static/src/index.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/static/src/index.js b/static/src/index.js deleted file mode 100644 index 7d7c9db..0000000 --- a/static/src/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import "@fontsource/overpass" -import "@fontsource/overpass/700.css" -import "@fontsource/overpass/500.css" -import "./style.css" -import Page from "./pages.js" -import "./icons.js" -import initSlides from "./slides.js" -import initAlbums from "./albums.js" -import initSettings from "./settings.js" - -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"], initSettings) - -window.addEventListener("popstate", Page.pathnameCallback) -Page.pathnameCallback() /* run after all pages are registered */ - -/* add event listeners for anchor elements in footer */ -function softRedirect(e) { - e.preventDefault() - let a = e.target - if (a === null) return - while (a !== null && a.tagName !== "A") - a = a.parentElement - if (a === null) return - Page.softRedirect(a.href) -} - -document.querySelector("#menu").addEventListener("click", softRedirect) |
