diff --git a/.gitignore b/.gitignore index 97e9358..c0cdc13 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ vite.config.js.timestamp-* vite.config.ts.timestamp-* pnpm-lock.yaml .npmrc +dist diff --git a/Taskfile.yaml b/Taskfile.yaml index bc6789e..7d1d5e0 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -8,6 +8,10 @@ vars: sh: git diff-ls --diff-filter=d main | grep -v .eslintignore tasks: + deploy: + deps: [build] + cmds: + - rsync -av ./dist/ 192.168.0.100:/home/sky build: vite build dev: vite test: vitest run src diff --git a/index.html b/index.html index 988a161..133f803 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,12 @@ Under Falling Skies + diff --git a/src/lib/components/Campaigns.svelte b/src/lib/components/Campaigns.svelte index 5c33699..d1d8570 100644 --- a/src/lib/components/Campaigns.svelte +++ b/src/lib/components/Campaigns.svelte @@ -8,6 +8,13 @@
+ {#if !$campaigns || $campaigns.length === 0} +
+
+
No campaign created yet
+
+
+ {/if} {#each $campaigns as campaign (campaign._id)}
south_america