-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skeleton rewritten in svelte using shadcn
todo: - integrate leaflet - finish up the form - integrate all old scripts into the new skeleton (old scripts currently left in `static` and in `src/lib/components/server`)
- Loading branch information
1 parent
1e4b157
commit 06180ba
Showing
103 changed files
with
4,737 additions
and
1,838 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** @type { import("eslint").Linter.Config } */ | ||
module.exports = { | ||
root: true, | ||
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.svelte'] | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"useTabs": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100, | ||
"plugins": ["prettier-plugin-svelte"], | ||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
|
||
// this file is generated — do not edit it | ||
|
||
|
||
/// <reference types="@sveltejs/kit" /> | ||
|
||
/** | ||
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured). | ||
* | ||
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination. | ||
* | ||
* ```ts | ||
* import { API_KEY } from '$env/static/private'; | ||
* ``` | ||
* | ||
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed: | ||
* | ||
* ``` | ||
* MY_FEATURE_FLAG="" | ||
* ``` | ||
* | ||
* You can override `.env` values from the command line like so: | ||
* | ||
* ```bash | ||
* MY_FEATURE_FLAG="enabled" npm run dev | ||
* ``` | ||
*/ | ||
declare module '$env/static/private' { | ||
export const SHELL: string; | ||
export const npm_command: string; | ||
export const COLORTERM: string; | ||
export const XDG_MENU_PREFIX: string; | ||
export const HOSTNAME: string; | ||
export const SSH_AUTH_SOCK: string; | ||
export const DISTTAG: string; | ||
export const DESKTOP_SESSION: string; | ||
export const EDITOR: string; | ||
export const PWD: string; | ||
export const XDG_SESSION_DESKTOP: string; | ||
export const XDG_SESSION_TYPE: string; | ||
export const TOOLBOX_PATH: string; | ||
export const PNPM_HOME: string; | ||
export const XAUTHORITY: string; | ||
export const container: string; | ||
export const HOME: string; | ||
export const LANG: string; | ||
export const XDG_CURRENT_DESKTOP: string; | ||
export const FGC: string; | ||
export const VTE_VERSION: string; | ||
export const WAYLAND_DISPLAY: string; | ||
export const XDG_SESSION_CLASS: string; | ||
export const TERM: string; | ||
export const USER: string; | ||
export const DISPLAY: string; | ||
export const SHLVL: string; | ||
export const npm_config_user_agent: string; | ||
export const PNPM_PACKAGE_NAME: string; | ||
export const XDG_RUNTIME_DIR: string; | ||
export const NODE_PATH: string; | ||
export const XDG_DATA_DIRS: string; | ||
export const PATH: string; | ||
export const DBUS_SESSION_BUS_ADDRESS: string; | ||
} | ||
|
||
/** | ||
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code. | ||
* | ||
* Values are replaced statically at build time. | ||
* | ||
* ```ts | ||
* import { PUBLIC_BASE_URL } from '$env/static/public'; | ||
* ``` | ||
*/ | ||
declare module '$env/static/public' { | ||
|
||
} | ||
|
||
/** | ||
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured). | ||
* | ||
* This module cannot be imported into client-side code. | ||
* | ||
* Dynamic environment variables cannot be used during prerendering. | ||
* | ||
* ```ts | ||
* import { env } from '$env/dynamic/private'; | ||
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE); | ||
* ``` | ||
* | ||
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter. | ||
*/ | ||
declare module '$env/dynamic/private' { | ||
export const env: { | ||
SHELL: string; | ||
npm_command: string; | ||
COLORTERM: string; | ||
XDG_MENU_PREFIX: string; | ||
HOSTNAME: string; | ||
SSH_AUTH_SOCK: string; | ||
DISTTAG: string; | ||
DESKTOP_SESSION: string; | ||
EDITOR: string; | ||
PWD: string; | ||
XDG_SESSION_DESKTOP: string; | ||
XDG_SESSION_TYPE: string; | ||
TOOLBOX_PATH: string; | ||
PNPM_HOME: string; | ||
XAUTHORITY: string; | ||
container: string; | ||
HOME: string; | ||
LANG: string; | ||
XDG_CURRENT_DESKTOP: string; | ||
FGC: string; | ||
VTE_VERSION: string; | ||
WAYLAND_DISPLAY: string; | ||
XDG_SESSION_CLASS: string; | ||
TERM: string; | ||
USER: string; | ||
DISPLAY: string; | ||
SHLVL: string; | ||
npm_config_user_agent: string; | ||
PNPM_PACKAGE_NAME: string; | ||
XDG_RUNTIME_DIR: string; | ||
NODE_PATH: string; | ||
XDG_DATA_DIRS: string; | ||
PATH: string; | ||
DBUS_SESSION_BUS_ADDRESS: string; | ||
[key: `PUBLIC_${string}`]: undefined; | ||
[key: `${string}`]: string | undefined; | ||
} | ||
} | ||
|
||
/** | ||
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code. | ||
* | ||
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead. | ||
* | ||
* Dynamic environment variables cannot be used during prerendering. | ||
* | ||
* ```ts | ||
* import { env } from '$env/dynamic/public'; | ||
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE); | ||
* ``` | ||
*/ | ||
declare module '$env/dynamic/public' { | ||
export const env: { | ||
[key: `PUBLIC_${string}`]: string | undefined; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export { matchers } from './matchers.js'; | ||
|
||
export const nodes = [ | ||
() => import('./nodes/0'), | ||
() => import('./nodes/1'), | ||
() => import('./nodes/2') | ||
]; | ||
|
||
export const server_loads = []; | ||
|
||
export const dictionary = { | ||
"/": [2] | ||
}; | ||
|
||
export const hooks = { | ||
handleError: (({ error }) => { console.error(error) }), | ||
|
||
reroute: (() => {}) | ||
}; | ||
|
||
export { default as root } from '../root.svelte'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const matchers = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as component } from "../../../../src/routes/+layout.svelte"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as component } from "../../../../src/routes/+page.svelte"; |
Oops, something went wrong.