Skip to content

Commit

Permalink
Pre migration
Browse files Browse the repository at this point in the history
  • Loading branch information
palmertab committed Mar 29, 2024
1 parent cc9976f commit 37c6914
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 8 deletions.
85 changes: 85 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.28.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-svelte": "^2.30.0",
"husky": "^9.0.11",
"svelte": "^4.0.5",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/AdCarousel.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script lang="ts">
<script lang='ts'>
import { onMount } from 'svelte';
interface Ad {
id: number,
Expand Down
13 changes: 7 additions & 6 deletions src/lib/DataTable.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts">
import {TabulatorFull as Tabulator} from 'tabulator-tables';
<script lang='ts'>
import {onMount} from 'svelte';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export let data: any[];
// export let data: any[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export let columns: any[] = [];
// export let columns: any[] = [];
let tableComponent:HTMLDivElement;
onMount(() => {
/**
new Tabulator(tableComponent, {
data,
columns,
Expand All @@ -19,8 +19,9 @@
pagination : true,
paginationSize : 50,
});
**/
});
</script>
</script>

<div bind:this={tableComponent}></div>

Expand All @@ -35,4 +36,4 @@
rel="stylesheet"
>
<link href="/css/tabulator.css" rel="stylesheet">
</svelte:head>
</svelte:head>
2 changes: 1 addition & 1 deletion src/routes/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const load = async ({ fetch} ) => {

console.log(`Fetching from ${import.meta.env.VITE_API_URL}/invite/upcoming`);
const response = await fetch(`${import.meta.env.VITE_API_URL}/invite/upcoming`);
const rawData = await response.json();
const rawData = await response.json();

interface Tourn {
url : string,
Expand Down

0 comments on commit 37c6914

Please sign in to comment.