Commit d5b55a4
committed
Merge #130: migrate to svelte 5 and update dependencies
3f22176 remove story:build from workflows (Graeme Byrne)
76d7665 fix readingTime error (Graeme Byrne)
eb96c60 fix linting errors (Graeme Byrne)
7b33824 migrate to svelte 5 and update dependencies (Graeme Byrne)
Pull request description:
* Migrate from Svelte 4 to Svelte 5 as mentioned in this [issue](#106).
* Update dependencies in `package.json` such as Vite which were preventing the successful migration to Svelte 5.
* Upgrade ESLint to v9 as v8 has recently reached end of life and is no longer maintained, as mentioned [here](https://eslint.org/docs/latest/use/migrate-to-9.0.0).
* Upgrade Sass as current syntax is deprecated as mentioned [here](https://sass-lang.com/documentation/breaking-changes/legacy-js-api/)
* Remove `/contributors` route as it is redundant since we now display GitHub contributors on home page and on Community page. Existing individual contributor pages have been retained and are accessible by clicking on the author's name in the blog post.
* Remove Histoire as it doesn't support Vite at the minute. There is currently a [PR](histoire-dev/histoire#770) open to fix this, so Histoire can be added back later if needed.
* When navigating to a new page, the site wouldn't scroll up to the top as would be expected. As found [here](sveltejs/kit#8723), this seems to be a Svelte issue. Solve this by adding the below code to the script block of routes/+layout.svelte and bind to page content:
```
import { onNavigate } from '$app/navigation';
let contentDiv: HTMLElement | null = null;
onNavigate((navigation) => {
return new Promise((resolve) => {
const transition = document.startViewTransition(async () => {
if (contentDiv) {
// Fix scroll
contentDiv.scrollTop = 0;
}
resolve();
await navigation.complete;
});
});
});
...
<div id="app-container">
<Header />
<div bind:this={contentDiv} class="content">
{@render children?.()}
<Footer />
</div>
</div>
```
ACKs for top commit:
josecelano:
ACK 3f22176
Tree-SHA512: 09e1042539a441e581eb8cfd759454ac675971acfbf2a0c3fa9eb74693270add836ac2e4864077e09cf29d4cb3be4d232c0dab607685e3f813e2548504ba9cefFile tree
113 files changed
+7982
-5947
lines changed- .github/workflows
- src
- lib
- components
- atoms
- molecules
- organisms
- singletons
- icons
- scss
- utils
- routes
- (home)
- (pages)
- about
- community
- self-host
- torrent-index
- torrent-tracker
- api
- blog
- [slug]
- contributors
- contributor
- tags
- [tagId]
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
113 files changed
+7982
-5947
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
This file was deleted.
0 commit comments