Compare commits
No commits in common. "006b0f07f88c405ac53db35b9e87a1a38e383ecc" and "dddd5d09597c63bde663a9fdaf31d31976f5beea" have entirely different histories.
006b0f07f8
...
dddd5d0959
72
package-lock.json
generated
72
package-lock.json
generated
@ -3387,19 +3387,6 @@
|
|||||||
"node": ">= 8"
|
"node": ">= 8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/anymatch/node_modules/picomatch": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8.6"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/arg": {
|
"node_modules/arg": {
|
||||||
"version": "5.0.2",
|
"version": "5.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
|
||||||
@ -5539,19 +5526,6 @@
|
|||||||
"node": ">=8.6"
|
"node": ">=8.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/micromatch/node_modules/picomatch": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8.6"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/mime-db": {
|
"node_modules/mime-db": {
|
||||||
"version": "1.52.0",
|
"version": "1.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||||
@ -5919,12 +5893,13 @@
|
|||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/picomatch": {
|
"node_modules/picomatch": {
|
||||||
"version": "4.0.2",
|
"version": "2.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
||||||
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
||||||
|
"devOptional": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=8.6"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
@ -7309,19 +7284,6 @@
|
|||||||
"url": "https://github.com/sponsors/antonk52"
|
"url": "https://github.com/sponsors/antonk52"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss/node_modules/picomatch": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=8.6"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/jonschlinkert"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tailwindcss/node_modules/postcss-load-config": {
|
"node_modules/tailwindcss/node_modules/postcss-load-config": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
|
||||||
@ -7441,6 +7403,18 @@
|
|||||||
"url": "https://github.com/sponsors/SuperchupuDev"
|
"url": "https://github.com/sponsors/SuperchupuDev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/tinyglobby/node_modules/picomatch": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/tinypool": {
|
"node_modules/tinypool": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz",
|
||||||
@ -7830,6 +7804,18 @@
|
|||||||
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/vite/node_modules/picomatch": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/vitefu": {
|
"node_modules/vitefu": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz",
|
||||||
|
@ -59,12 +59,8 @@
|
|||||||
Förkortningar
|
Förkortningar
|
||||||
<DropdownMenu.Shortcut>F12</DropdownMenu.Shortcut>
|
<DropdownMenu.Shortcut>F12</DropdownMenu.Shortcut>
|
||||||
</DropdownMenu.Item>
|
</DropdownMenu.Item>
|
||||||
<DropdownMenu.Item
|
<DropdownMenu.Item>
|
||||||
on:click={() => {
|
Förinskriven text
|
||||||
appState.open = 'statistics';
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Statistik
|
|
||||||
<DropdownMenu.Shortcut>F12</DropdownMenu.Shortcut>
|
<DropdownMenu.Shortcut>F12</DropdownMenu.Shortcut>
|
||||||
</DropdownMenu.Item>
|
</DropdownMenu.Item>
|
||||||
<DropdownMenu.Item>
|
<DropdownMenu.Item>
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
<script>
|
|
||||||
import * as Card from '$lib/components/ui/card/index';
|
|
||||||
import * as Table from '$lib/components/ui/table/index';
|
|
||||||
|
|
||||||
import * as RadioGroup from '$lib/components/ui/radio-group/index.js';
|
|
||||||
import { Label } from '$lib/components/ui/label/index.js';
|
|
||||||
var mode = 'usage';
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<Card.Root class="h-96 w-[680px]">
|
|
||||||
<Card.Header>
|
|
||||||
<Card.Title>Statistik</Card.Title>
|
|
||||||
<Card.Description>...</Card.Description>
|
|
||||||
</Card.Header>
|
|
||||||
<Card.Content>
|
|
||||||
<div class="grid grid-cols-3 gap-3">
|
|
||||||
<div class="col-span-1">
|
|
||||||
<RadioGroup.Root bind:value={mode}>
|
|
||||||
<Table.Root>
|
|
||||||
<Table.Header>
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Head>Kriterie</Table.Head>
|
|
||||||
</Table.Row>
|
|
||||||
</Table.Header>
|
|
||||||
<Table.Body>
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Cell class="flex items-center space-x-2">
|
|
||||||
<RadioGroup.Item value="usage" id="r1" /><Label
|
|
||||||
on:click={() => {
|
|
||||||
mode = 'usage';
|
|
||||||
}}
|
|
||||||
for="r1">Användning/missar</Label
|
|
||||||
></Table.Cell
|
|
||||||
>
|
|
||||||
</Table.Row>
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Cell class="flex items-center space-x-2"
|
|
||||||
><RadioGroup.Item value="frequency" id="r2" /><Label
|
|
||||||
for="r2"
|
|
||||||
on:click={() => {
|
|
||||||
mode = 'frequency';
|
|
||||||
}}>Ordfrekvens</Label
|
|
||||||
></Table.Cell
|
|
||||||
>
|
|
||||||
</Table.Row>
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Cell class="flex items-center space-x-2"
|
|
||||||
><RadioGroup.Item value="collocations" id="r3" /><Label
|
|
||||||
for="r3"
|
|
||||||
on:click={() => {
|
|
||||||
mode = 'collocations';
|
|
||||||
}}>Kollokationer</Label
|
|
||||||
></Table.Cell
|
|
||||||
>
|
|
||||||
</Table.Row>
|
|
||||||
</Table.Body>
|
|
||||||
</Table.Root>
|
|
||||||
</RadioGroup.Root>
|
|
||||||
</div>
|
|
||||||
<div class="col-span-2">
|
|
||||||
<Table.Root>
|
|
||||||
<Table.Header>
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Head>Förkortning</Table.Head>
|
|
||||||
<Table.Head class="text-right">Missar</Table.Head>
|
|
||||||
</Table.Row>
|
|
||||||
</Table.Header>
|
|
||||||
<Table.Body>
|
|
||||||
<Table.Row>
|
|
||||||
<Table.Cell>ahet</Table.Cell>
|
|
||||||
<Table.Cell class="text-right">1337</Table.Cell>
|
|
||||||
</Table.Row>
|
|
||||||
</Table.Body>
|
|
||||||
</Table.Root>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Card.Content>
|
|
||||||
</Card.Root>
|
|
@ -1,15 +0,0 @@
|
|||||||
import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
|
|
||||||
|
|
||||||
import Root from "./radio-group.svelte";
|
|
||||||
import Item from "./radio-group-item.svelte";
|
|
||||||
const Input = RadioGroupPrimitive.Input;
|
|
||||||
|
|
||||||
export {
|
|
||||||
Root,
|
|
||||||
Input,
|
|
||||||
Item,
|
|
||||||
//
|
|
||||||
Root as RadioGroup,
|
|
||||||
Input as RadioGroupInput,
|
|
||||||
Item as RadioGroupItem,
|
|
||||||
};
|
|
@ -1,30 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
|
|
||||||
import Check from "svelte-radix/Check.svelte";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = RadioGroupPrimitive.ItemProps & {
|
|
||||||
value: string;
|
|
||||||
};
|
|
||||||
type $$Events = RadioGroupPrimitive.ItemEvents;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export let value: $$Props["value"];
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<RadioGroupPrimitive.Item
|
|
||||||
{value}
|
|
||||||
class={cn(
|
|
||||||
"border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...$$restProps}
|
|
||||||
on:click
|
|
||||||
>
|
|
||||||
<div class="flex items-center justify-center">
|
|
||||||
<RadioGroupPrimitive.ItemIndicator>
|
|
||||||
<Check class="fill-primary h-3.5 w-3.5" />
|
|
||||||
</RadioGroupPrimitive.ItemIndicator>
|
|
||||||
</div>
|
|
||||||
</RadioGroupPrimitive.Item>
|
|
@ -1,14 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = RadioGroupPrimitive.Props;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export let value: $$Props["value"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<RadioGroupPrimitive.Root bind:value class={cn("grid gap-2", className)} {...$$restProps}>
|
|
||||||
<slot />
|
|
||||||
</RadioGroupPrimitive.Root>
|
|
@ -1,28 +0,0 @@
|
|||||||
import Root from "./table.svelte";
|
|
||||||
import Body from "./table-body.svelte";
|
|
||||||
import Caption from "./table-caption.svelte";
|
|
||||||
import Cell from "./table-cell.svelte";
|
|
||||||
import Footer from "./table-footer.svelte";
|
|
||||||
import Head from "./table-head.svelte";
|
|
||||||
import Header from "./table-header.svelte";
|
|
||||||
import Row from "./table-row.svelte";
|
|
||||||
|
|
||||||
export {
|
|
||||||
Root,
|
|
||||||
Body,
|
|
||||||
Caption,
|
|
||||||
Cell,
|
|
||||||
Footer,
|
|
||||||
Head,
|
|
||||||
Header,
|
|
||||||
Row,
|
|
||||||
//
|
|
||||||
Root as Table,
|
|
||||||
Body as TableBody,
|
|
||||||
Caption as TableCaption,
|
|
||||||
Cell as TableCell,
|
|
||||||
Footer as TableFooter,
|
|
||||||
Head as TableHead,
|
|
||||||
Header as TableHeader,
|
|
||||||
Row as TableRow,
|
|
||||||
};
|
|
@ -1,13 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLAttributes<HTMLTableSectionElement>;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tbody class={cn("[&_tr:last-child]:border-0", className)} {...$$restProps}>
|
|
||||||
<slot />
|
|
||||||
</tbody>
|
|
@ -1,13 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLAttributes<HTMLTableCaptionElement>;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<caption class={cn("text-muted-foreground mt-4 text-sm", className)} {...$$restProps}>
|
|
||||||
<slot />
|
|
||||||
</caption>
|
|
@ -1,21 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLTdAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLTdAttributes;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<td
|
|
||||||
class={cn(
|
|
||||||
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...$$restProps}
|
|
||||||
on:click
|
|
||||||
on:keydown
|
|
||||||
>
|
|
||||||
<slot />
|
|
||||||
</td>
|
|
@ -1,13 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLAttributes<HTMLTableSectionElement>;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tfoot class={cn("bg-muted/50 text-primary-foreground font-medium", className)} {...$$restProps}>
|
|
||||||
<slot />
|
|
||||||
</tfoot>
|
|
@ -1,19 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLThAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLThAttributes;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<th
|
|
||||||
class={cn(
|
|
||||||
"text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...$$restProps}
|
|
||||||
>
|
|
||||||
<slot />
|
|
||||||
</th>
|
|
@ -1,14 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLAttributes<HTMLTableSectionElement>;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
|
||||||
<thead class={cn("[&_tr]:border-b", className)} {...$$restProps} on:click on:keydown>
|
|
||||||
<slot />
|
|
||||||
</thead>
|
|
@ -1,23 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLAttributes<HTMLTableRowElement> & {
|
|
||||||
"data-state"?: unknown;
|
|
||||||
};
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<tr
|
|
||||||
class={cn(
|
|
||||||
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...$$restProps}
|
|
||||||
on:click
|
|
||||||
on:keydown
|
|
||||||
>
|
|
||||||
<slot />
|
|
||||||
</tr>
|
|
@ -1,15 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { HTMLTableAttributes } from "svelte/elements";
|
|
||||||
import { cn } from "$lib/utils.js";
|
|
||||||
|
|
||||||
type $$Props = HTMLTableAttributes;
|
|
||||||
|
|
||||||
let className: $$Props["class"] = undefined;
|
|
||||||
export { className as class };
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="relative w-full overflow-auto">
|
|
||||||
<table class={cn("w-full caption-bottom text-sm", className)} {...$$restProps}>
|
|
||||||
<slot />
|
|
||||||
</table>
|
|
||||||
</div>
|
|
@ -94,24 +94,13 @@ hotkeys.set("F11", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
hotkeys.set("F12", {
|
hotkeys.set("F12", {
|
||||||
name: "Visa statistik",
|
name: "Öppna import-rutan",
|
||||||
action: (e) => {
|
action: (e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
console.log("Open statistics modal")
|
console.log("Open import page")
|
||||||
appState.open = "statistics"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
/*
|
|
||||||
hotkeys.set("F12", {
|
|
||||||
name: "Visa dialogrutan för import",
|
|
||||||
action: (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
console.log("Open import")
|
|
||||||
goto("/import")
|
goto("/import")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
*/
|
|
||||||
|
|
||||||
hotkeys.set("Escape", {
|
hotkeys.set("Escape", {
|
||||||
name: "Stäng aktiva dialogrutor och fokusera på texten",
|
name: "Stäng aktiva dialogrutor och fokusera på texten",
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
import ListSelector from '../components/listselector.svelte';
|
import ListSelector from '../components/listselector.svelte';
|
||||||
import Dashboard from '../components/dashboard.svelte';
|
import Dashboard from '../components/dashboard.svelte';
|
||||||
import Hotkeys from '../components/hotkeys.svelte';
|
import Hotkeys from '../components/hotkeys.svelte';
|
||||||
import Statistics from '../components/statistics.svelte';
|
|
||||||
import { db, deleteShortformList, type Shortform } from '../db/main';
|
import { db, deleteShortformList, type Shortform } from '../db/main';
|
||||||
import Menu from '../components/menu.svelte';
|
import Menu from '../components/menu.svelte';
|
||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
@ -39,7 +38,7 @@
|
|||||||
import { hotkeys } from '$lib/hotkey-actions';
|
import { hotkeys } from '$lib/hotkey-actions';
|
||||||
let textarea: HTMLTextAreaElement | undefined = $state();
|
let textarea: HTMLTextAreaElement | undefined = $state();
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
appState.open = 'statistics';
|
appState.open = 'hotkeys';
|
||||||
|
|
||||||
initHotkeys({ scope: 'main', filterInputs: false });
|
initHotkeys({ scope: 'main', filterInputs: false });
|
||||||
hotkeys.forEach((handler, key) => {
|
hotkeys.forEach((handler, key) => {
|
||||||
@ -88,13 +87,6 @@
|
|||||||
<Hotkeys />
|
<Hotkeys />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if appState.open == 'statistics'}
|
|
||||||
<div
|
|
||||||
class="fixed left-0 right-0 top-0 z-50 flex h-[calc(100%-1rem)] max-h-full w-full items-center justify-center align-middle md:inset-0"
|
|
||||||
>
|
|
||||||
<Statistics />
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
<Menu />
|
<Menu />
|
||||||
<div class="h-full">
|
<div class="h-full">
|
||||||
<Textarea bind:ref={textarea} />
|
<Textarea bind:ref={textarea} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user