Skip to content

Commit

Permalink
Merge pull request #163 from escapedcat/fix/make-build-work-again
Browse files Browse the repository at this point in the history
fix: remove lottie to enable build again #161
  • Loading branch information
bubelov authored Jan 13, 2025
2 parents 2866e5a + 13be662 commit 0b66ea7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2,348 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@
- axios
- vite
- fontawesome
- lottie
- opencage

(see [`package.json`](https://github.com/teambtcmap/btcmap.org/blob/main/package.json) for full list)

## Getting started

1. `git clone` the repo and `cd` into the directory
2. run `yarn` to install the packages
3. `yarn dev` will open the app on `localhost:5173`
4. after making edits run `yarn format` to format the files
1. run `yarn` to install the packages
1. `yarn dev` will open the app on `localhost:5173`
1. after making edits run `yarn format` to format the files

### Build project

1. Create `.env` (Copy `.env.example` and sane as `.env`)
1. `yarn build`

_NOTE:_ BTC Map uses the latest LTS version of [node](https://nodejs.org/). If you have [NVM](https://github.com/nvm-sh/nvm), you can simply run `nvm use` in the root directory of the repo to switch to the supported node version.

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"type": "module",
"dependencies": {
"@fortawesome/fontawesome-free": "^6.5.2",
"@lottiefiles/svelte-lottie-player": "^0.3.1",
"@mapbox/geojson-rewind": "^0.5.2",
"@tanstack/match-sorter-utils": "^8.15.1",
"@tanstack/svelte-table": "^8.17.3",
Expand Down
15 changes: 0 additions & 15 deletions src/components/Boost.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { CloseButton, CopyButton, Icon, PrimaryButton } from '$lib/comp';
import { boost, boostHash, exchangeRate, resetBoost } from '$lib/store';
import { errToast, warningToast } from '$lib/utils';
// @ts-expect-error
import { LottiePlayer } from '@lottiefiles/svelte-lottie-player';
import axios from 'axios';
import JSConfetti from 'js-confetti';
import QRCode from 'qrcode';
Expand Down Expand Up @@ -265,19 +263,6 @@
</div>
{:else}
<div class="space-y-4 text-center">
{#if typeof window !== 'undefined'}
<div class="mx-auto h-[99px] w-44">
<LottiePlayer
src="/lottie/boost.json"
autoplay={true}
loop={true}
controls={false}
renderer="svg"
background="transparent"
/>
</div>
{/if}

<p
class="text-xl font-bold text-primary dark:text-white {$boost.name.match('([^ ]{14})')
? 'break-all'
Expand Down
15 changes: 1 addition & 14 deletions src/components/FormSuccess.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import { HeaderPlaceholder, PrimaryButton } from '$lib/comp';
import { socials, theme } from '$lib/store';
import { detectTheme } from '$lib/utils';
// @ts-expect-error
import { LottiePlayer } from '@lottiefiles/svelte-lottie-player';
</script>

<div class="mt-10 flex items-center justify-center pb-20 text-center md:pb-32">
Expand Down Expand Up @@ -40,18 +38,7 @@
class="text-link transition-colors hover:text-hover">issue #{issue}</a
>.
</p>
{#if typeof window !== 'undefined'}
<div class="mx-auto w-full md:w-96">
<LottiePlayer
src="/lottie/lightning-bolt.json"
autoplay={true}
loop={true}
controls={false}
renderer="svg"
background="transparent"
/>
</div>
{/if}

<PrimaryButton
text="Submit another {type.toLowerCase()}"
{link}
Expand Down
Loading

0 comments on commit 0b66ea7

Please sign in to comment.