Skip to content

Commit

Permalink
fix: svelte issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Jan 4, 2025
1 parent c2e2a93 commit d4c9573
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import svelte from "@astrojs/svelte";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind({ applyBaseStyles: true }), svelte()],
});
integrations: [tailwind({ applyBaseStyles: true }), svelte()],
});
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"dependencies": {
"@astrojs/check": "0.9.4",
"@astrojs/svelte": "7.0.3",
"@astrojs/svelte": "^7.0.3",
"@astrojs/tailwind": "5.1.4",
"astro": "5.1.2",
"astro-seo": "0.8.4",
"svelte": "5.16.1",
"svelte": "^5.16.1",
"svelte-lanyard": "1.0.2",
"tailwind-merge": "2.6.0",
"tailwindcss": "3.4.17",
"typescript": "5.7.2"
"typescript": "^5.7.2"
},
"devDependencies": {
"wrangler": "^3.99.0"
Expand Down
4 changes: 2 additions & 2 deletions src/components/lanyard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useLanyard } from "svelte-lanyard";
const data = useLanyard("639720838635061248");
function statusColors(status, bg) {
function statusColors(status: string, bg: boolean): string {
if (status === "online") {
return bg ? "bg-green-500" : "border-green-500";
}
Expand Down Expand Up @@ -40,4 +40,4 @@ console.log(data);
{/if}
</div>
{/if}
</div>
</div>
6 changes: 3 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { vitePreprocess } from "@astrojs/svelte";
import { vitePreprocess } from '@astrojs/svelte';

export default {
preprocess: vitePreprocess(),
};
preprocess: vitePreprocess({ script: true }),
}

0 comments on commit d4c9573

Please sign in to comment.