Skip to content

Small Refactor to Utilize SvelteKit Routing #31

@alvinosh

Description

@alvinosh

Description

Currently we are switching between the gallery route and the image view via svelte stores, this adds too much global state and makes it difficult to expand and add more files.

Example

Checks like this are problematic
https://github.com/ARK-Builders/ARK-Gallery/blob/c3dc213b2b04fe335262fa6e12c01d9f31cd8eb8/src/routes/%2Bpage.svelte#L177

Solution

We can add new routes to the application, such as /view?image=... or some sort of other implementation that is compatible with sveltekit and tauri
https://kit.svelte.dev/docs/routing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions