Skip to content

Commit

Permalink
feat: use Image as package
Browse files Browse the repository at this point in the history
  • Loading branch information
ocknamo committed Jun 19, 2024
1 parent 72b74b5 commit 6919cfc
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 157 deletions.
46 changes: 18 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@
"type": "module",
"volta": {
"node": "22.2.0"
},
"dependencies": {
"svelte-remote-image": "^0.0.2"
}
}
106 changes: 0 additions & 106 deletions src/lib/components/Image.svelte

This file was deleted.

20 changes: 0 additions & 20 deletions src/lib/components/Image.type.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/image-utils.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/routes/blog/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<script lang="ts">
import SvelteMarkdown from 'svelte-markdown';
import { browser } from '$app/environment';
import Image from '$lib/components/Image.svelte';
import type { ImageSrc } from '$lib/components/Image.type.js';
import { Image, type ImageSrc } from 'svelte-remote-image';
export let data;
Expand Down

0 comments on commit 6919cfc

Please sign in to comment.