diff --git a/svelte-ui/src/App.svelte b/svelte-ui/src/App.svelte index 1c40280..518cc3a 100644 --- a/svelte-ui/src/App.svelte +++ b/svelte-ui/src/App.svelte @@ -5,10 +5,7 @@ import FrontPage from "./pages/FrontPage.svelte"; import ProjectPage from "./pages/ProjectPage.svelte"; import ModalRoute from "./components/ModalRoute.svelte"; - import LogAddForm from "./forms/LogAddForm.svelte"; import LogsPage from "./pages/LogsPage.svelte"; - import LogEditForm from "./forms/LogEditForm.svelte"; - import LogDeleteForm from "./forms/LogDeleteForm.svelte"; import TaskAddForm from "./forms/TaskAddForm.svelte"; import TaskEditForm from "./forms/TaskEditForm.svelte"; import TaskDeleteForm from "./forms/TaskDeleteForm.svelte"; @@ -22,9 +19,10 @@ import GroupForm from "./forms/GroupForm.svelte"; import GoalPage from "./pages/GoalPage.svelte"; import GoalForm from "./forms/GoalForm.svelte"; + import LogForm from "./forms/LogForm.svelte"; import LoginForm from "./forms/LoginForm.svelte"; import authStore from "./stores/auth"; -import FocusHandler from "./components/FocusHandler.svelte"; + import FocusHandler from "./components/FocusHandler.svelte"; onMount(() => { authStore.check() @@ -44,9 +42,9 @@ import FocusHandler from "./components/FocusHandler.svelte"; - - - + + + diff --git a/svelte-ui/src/components/ProjectEntry.svelte b/svelte-ui/src/components/ProjectEntry.svelte index d9156ec..a1080c4 100644 --- a/svelte-ui/src/components/ProjectEntry.svelte +++ b/svelte-ui/src/components/ProjectEntry.svelte @@ -30,7 +30,10 @@ $: mdAddTask = {name:"task.add", project}; $: mdProjectEdit = {name:"project.edit", project}; $: mdProjectDelete = {name:"project.delete", project}; - $: progressAmount = project.tasks.map(t => Math.min(t.completedAmount, t.itemAmount) * t.item.groupWeight).reduce((n,m) => n+m, 0); + $: progressAmount = project.tasks.map(t => t.active + ? Math.min(t.completedAmount, t.itemAmount) * t.item.groupWeight + : t.itemAmount * t.item.groupWeight + ).reduce((n,m) => n+m, 0); $: progressTarget = Math.max(project.tasks.map(t => t.itemAmount * t.item.groupWeight).reduce((n,m) => n+m, 0), 1); diff --git a/svelte-ui/src/forms/LogAddForm.svelte b/svelte-ui/src/forms/LogAddForm.svelte deleted file mode 100644 index 7f7ddf4..0000000 --- a/svelte-ui/src/forms/LogAddForm.svelte +++ /dev/null @@ -1,72 +0,0 @@ - - - -
- - - - - - -