diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 50da466..a4d90b7 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -1,7 +1,7 @@
    diff --git a/frontend/src/lib/Filter.svelte b/frontend/src/lib/Filter.svelte index 26f5a25..2c06e9a 100644 --- a/frontend/src/lib/Filter.svelte +++ b/frontend/src/lib/Filter.svelte @@ -1,6 +1,6 @@ @@ -68,6 +69,9 @@ + diff --git a/frontend/src/lib/TextFilter.svelte b/frontend/src/lib/TextFilter.svelte index d5ef970..70a3855 100644 --- a/frontend/src/lib/TextFilter.svelte +++ b/frontend/src/lib/TextFilter.svelte @@ -1,32 +1,52 @@
    - -
    \ No newline at end of file + + diff --git a/frontend/src/store/FilterStore.svelte b/frontend/src/store/FilterStore.svelte deleted file mode 100644 index b8e6df1..0000000 --- a/frontend/src/store/FilterStore.svelte +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/frontend/src/store/FilterStore.ts b/frontend/src/store/FilterStore.ts new file mode 100644 index 0000000..6d2c80e --- /dev/null +++ b/frontend/src/store/FilterStore.ts @@ -0,0 +1,15 @@ +import { writable } from "svelte/store"; + +export interface Score { + name: String; + score: number; +} + +// Which filter is currenly opened +export let open_filter = writable(""); + +// The results are sorted by +export let sort_by = writable("alphanumeric"); + +// Results of text search +export let scores = writable([]); diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index a10ccc3..d449b61 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -13,7 +13,8 @@ */ "allowJs": true, "checkJs": true, - "isolatedModules": true + "isolatedModules": true, + "allowImportingTsExtensions": true }, "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"], "references": [