Skip to content

Commit

Permalink
update deps, add nvmrc, update eslint, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed May 16, 2023
1 parent fff6d5c commit 319b3f4
Show file tree
Hide file tree
Showing 18 changed files with 376 additions and 314 deletions.
14 changes: 6 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "prettier"],
"plugins": ["svelte3"],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
"extends": [
"eslint:recommended",
"prettier",
"plugin:svelte/recommended",
"plugin:svelte/prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {}
"rules": { "svelte/no-dupe-style-properties": "warn" }
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,39 @@
"eslint": "npx eslint src/"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "1.15.7",
"@sveltejs/adapter-auto": "^2.0.1",
"@sveltejs/kit": "1.16.3",
"autoprefixer": "^10.4.14",
"eslint": "^8.39.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-svelte": "^2.28.0",
"postcss": "^8.4.23",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.0",
"svelte": "^3.58.0",
"svelte": "^3.59.1",
"svelte-preprocess": "^5.0.3",
"tailwindcss": "^3.3.1",
"vite": "^4.3.1"
"tailwindcss": "^3.3.2",
"vite": "^4.3.6"
},
"type": "module",
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@lottiefiles/svelte-lottie-player": "^0.3.0",
"@mapbox/geojson-rewind": "^0.5.2",
"@zerodevx/svelte-toast": "^0.9.3",
"axios": "1.3.6",
"axios": "1.4.0",
"axios-retry": "^3.4.0",
"chart.js": "^4.2.1",
"chart.js": "^4.3.0",
"d3-geo": "^3.1.0",
"dompurify": "^3.0.2",
"dompurify": "^3.0.3",
"js-confetti": "^0.11.0",
"leaflet": "^1.9.3",
"leaflet.featuregroup.subgroup": "^1.0.2",
"leaflet.locatecontrol": "^0.79.0",
"leaflet.markercluster": "^1.5.3",
"localforage": "^1.10.0",
"marked": "^4.3.0",
"prettier-plugin-tailwindcss": "^0.2.7",
"marked": "^5.0.2",
"prettier-plugin-tailwindcss": "^0.3.0",
"qrcode": "^1.5.3",
"svelte-outclick": "^3.5.0",
"svelte-time": "^0.7.1",
Expand Down
2 changes: 2 additions & 0 deletions src/components/CommunityLeaderboardItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@
</div>
{:else if stat.title === 'Grade'}
<div class="space-x-1">
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(stat.stat) as star}
<i class="fa-solid fa-star" />
{/each}

<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(5 - stat.stat) as star}
<i class="fa-solid fa-star opacity-25" />
{/each}
Expand Down
7 changes: 4 additions & 3 deletions src/components/CommunityLeaderboardSkeleton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@

<!-- stats placeholders -->
<span
class="mx-auto my-2 block h-5 w-[100px] animate-pulse bg-link/50 lg:!my-auto lg:my-0 lg:inline-block"
class="mx-auto my-2 block h-5 w-[100px] animate-pulse bg-link/50 lg:my-auto lg:inline-block"
/>
<span
class="mx-auto my-2 block h-5 w-32 animate-pulse rounded-xl bg-link/50 lg:!my-auto lg:my-0 lg:inline-block lg:w-5 lg:rounded-full"
class="mx-auto my-2 block h-5 w-32 animate-pulse rounded-xl bg-link/50 lg:my-auto lg:inline-block lg:w-5 lg:rounded-full"
/>
<span
class="mx-auto my-2 block h-5 w-32 animate-pulse rounded-xl bg-link/50 lg:!my-auto lg:my-0 lg:inline-block lg:w-5 lg:rounded-full"
class="mx-auto my-2 block h-5 w-32 animate-pulse rounded-xl bg-link/50 lg:my-auto lg:inline-block lg:w-5 lg:rounded-full"
/>
<div class="my-2 flex items-center justify-center space-x-1 lg:my-0 lg:inline-flex">
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(5) as star}
<i class="fa-solid fa-star animate-pulse text-lg text-link/50" />
{/each}
Expand Down
1 change: 1 addition & 0 deletions src/components/CommunitySection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<CommunityCard id={community.id} tags={community.tags} />
{/each}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(4) as skeleton}
<CommunitySkeleton />
{/each}
Expand Down
1 change: 1 addition & 0 deletions src/components/SupportSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</a>
{/each}
<!-- supporter placeholders -->
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(placeholders) as placeholder}
<div
class="mx-auto flex h-[90px] w-full items-center justify-center self-center rounded-xl bg-supporter/50 drop-shadow-xl md:w-[250px]"
Expand Down
2 changes: 1 addition & 1 deletion src/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -3749,7 +3749,7 @@
<a href="/" class="text-xl font-semibold text-link transition-colors hover:text-hover"
><i class="fa-solid fa-house mr-2"></i> Home</a
>
<h1 class="text-4xl dark:text-white md:text-5xl">
<h1 class="text-4xl text-primary dark:text-white md:text-5xl">
%sveltekit.status%: %sveltekit.error.message%
</h1>
<h2 class="text-xl font-semibold text-primary dark:text-white">
Expand Down
3 changes: 3 additions & 0 deletions src/routes/about-us/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
/>
{/each}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(6) as skeleton}
<span class="h-24 w-24 animate-pulse rounded-full bg-link/50" />
{/each}
Expand All @@ -255,6 +256,7 @@
<AboutTagger {tagger} />
{/each}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(6) as skeleton}
<span class="h-24 w-24 animate-pulse rounded-full bg-link/50" />
{/each}
Expand Down Expand Up @@ -293,6 +295,7 @@
<AboutCommunity {community} />
{/each}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(6) as skeleton}
<span class="h-24 w-24 animate-pulse rounded-full bg-link/50" />
{/each}
Expand Down
1 change: 1 addition & 0 deletions src/routes/activity/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
/>
{/each}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(50) as skeleton}
<TaggerSkeleton />
{/each}
Expand Down
1 change: 1 addition & 0 deletions src/routes/communities/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
{#if !initialRenderComplete || !communities}
<div class="absolute left-0 top-0 flex h-full w-full flex-col justify-between">
<div class="flex flex-wrap justify-center">
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(6) as skeleton}
<div class="m-2 w-[94px] animate-pulse rounded-sm bg-link/50 py-2" />
{/each}
Expand Down
1 change: 1 addition & 0 deletions src/routes/communities/leaderboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
>
{/if}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(50) as skeleton}
<CommunityLeaderboardSkeleton />
{/each}
Expand Down
5 changes: 5 additions & 0 deletions src/routes/community/[area]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
.toString();
let updatedChartCanvas;
// eslint-disable-next-line no-unused-vars
let updatedChart;
let loading = true;
Expand Down Expand Up @@ -916,10 +917,12 @@
>
{name} Map
<div class="space-x-1 text-link">
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(grade) as star}
<i class="fa-solid fa-star" />
{/each}

<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(5 - grade) as star}
<i class="fa-solid fa-star opacity-25" />
{/each}
Expand Down Expand Up @@ -1021,6 +1024,7 @@
{:else if !communityEvents.length}
<p class="p-5 text-body dark:text-white">No supertaggers to display.</p>
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(5) as tagger}
<div class="m-4 space-y-1 transition-transform hover:scale-110">
<p class="mx-auto h-20 w-20 animate-pulse rounded-full bg-link/50" />
Expand Down Expand Up @@ -1084,6 +1088,7 @@
{:else if !communityEvents.length}
<p class="p-5 text-body dark:text-white">No activity to display.</p>
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(5) as skeleton}
<TaggerSkeleton />
{/each}
Expand Down
2 changes: 2 additions & 0 deletions src/routes/leaderboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
</h2>

<section id="chart" class="relative">
<!-- eslint-disable-next-line svelte/valid-compile -->
{#if leaderboard && leaderboard.length && !loading}{:else}
<div class="absolute left-0 top-0 h-[400px] w-full animate-pulse border border-link/50" />
{/if}
Expand Down Expand Up @@ -253,6 +254,7 @@
>
{/if}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(50) as skeleton}
<LeaderboardSkeleton />
{/each}
Expand Down
3 changes: 3 additions & 0 deletions src/routes/tagger/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
.toString();
let tagTypeChartCanvas;
// eslint-disable-next-line no-unused-vars
let tagTypeChart;
let loading = true;
Expand Down Expand Up @@ -459,6 +460,7 @@
>
</div>

<!-- eslint-disable-next-line svelte/valid-compile -->
<h2
bind:this={profileDesc}
class="mx-auto w-full break-all text-xl text-body dark:text-white lg:w-[800px]"
Expand Down Expand Up @@ -569,6 +571,7 @@
>
{/if}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(5) as skeleton}
<ProfileActivitySkeleton />
{/each}
Expand Down
1 change: 1 addition & 0 deletions src/routes/tickets/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
</p>
{/if}
{:else}
<!-- eslint-disable-next-line no-unused-vars -->
{#each Array(10) as skeleton}
<OpenTicketSkeleton />
{/each}
Expand Down
2 changes: 1 addition & 1 deletion static/offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@
<script>
document.querySelector('#back').onclick = () => window.history.back();
</script>
<h1 class="text-4xl dark:text-white md:text-5xl">You are offline.</h1>
<h1 class="text-4xl text-primary dark:text-white md:text-5xl">You are offline.</h1>
<h2
class="text-xl font-semibold text-primary dark:text-white"
style="max-width: 512px; margin-left: auto; margin-right: auto"
Expand Down
Loading

0 comments on commit 319b3f4

Please sign in to comment.