|
@ -2,7 +2,7 @@ |
|
|
import Graph from "./Graph.svelte"; |
|
|
import Graph from "./Graph.svelte"; |
|
|
import { grabAssignment } from "./ksp-task-grabber"; |
|
|
import { grabAssignment } from "./ksp-task-grabber"; |
|
|
import type { TaskDescriptor, TasksFile } from "./task-loader"; |
|
|
import type { TaskDescriptor, TasksFile } from "./task-loader"; |
|
|
import { createTaskMap, getCategories } from "./task-loader"; |
|
|
import { saveTasks, createTaskMap, getCategories } from "./task-loader"; |
|
|
|
|
|
|
|
|
export let tasks: TasksFile; |
|
|
export let tasks: TasksFile; |
|
|
|
|
|
|
|
@ -59,6 +59,10 @@ |
|
|
function toggleDivnaPromena() { |
|
|
function toggleDivnaPromena() { |
|
|
hovnoDivnaPromenaKteraJeFaktFuj = !hovnoDivnaPromenaKteraJeFaktFuj; |
|
|
hovnoDivnaPromenaKteraJeFaktFuj = !hovnoDivnaPromenaKteraJeFaktFuj; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function saveCurrentState() { |
|
|
|
|
|
await saveTasks(tasks); |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
@ -133,6 +137,9 @@ |
|
|
<div> |
|
|
<div> |
|
|
Repulsion force: <input type="number" bind:value={repulsionForce} name="repulsionForceInput" max="1000" min="-10000" /> |
|
|
Repulsion force: <input type="number" bind:value={repulsionForce} name="repulsionForceInput" max="1000" min="-10000" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<button on:click={saveCurrentState}>Uložit aktuální stav</button> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="taskDetails"> |
|
|
<div class="taskDetails"> |
|
|
{#if currentTask != null} |
|
|
{#if currentTask != null} |
|
|