Compare commits
No commits in common. "14ece0bed08f5943156751f9de91b2f85d578af7" and "8c0970a19a6b3df27d1750d27e5bafaa9ae9ac70" have entirely different histories.
14ece0bed0
...
8c0970a19a
@ -17,14 +17,10 @@
|
||||
<tbody>
|
||||
{#each data.tasks.tasks as task (task.id)}
|
||||
<tr>
|
||||
<td>
|
||||
<a
|
||||
href={`/tasks/${task.type.prefix}${task.taskId}`}
|
||||
<td
|
||||
>{task.type?.prefix +
|
||||
task.taskId}</td
|
||||
>
|
||||
{task.type?.prefix +
|
||||
task.taskId}
|
||||
</a>
|
||||
</td>
|
||||
<td>{task.description}</td>
|
||||
<td>{task.status}</td>
|
||||
</tr>
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
import TasksService from "$lib/server/services/tasks";
|
||||
import type { PageServerData } from "./$types";
|
||||
|
||||
export const load: PageServerData = async ({ params }) => {
|
||||
const tasks = new TasksService("internal");
|
||||
return {
|
||||
task: await tasks.getByTaskId([params.task_id]),
|
||||
};
|
||||
};
|
||||
@ -1,23 +0,0 @@
|
||||
<script lang="ts">
|
||||
import type { PageProps } from "./$types";
|
||||
|
||||
let { data }: PageProps = $props();
|
||||
const task = data.task.tasks[0];
|
||||
</script>
|
||||
|
||||
<h1>{`[[${task.type.prefix}${task.taskId}]] - ${task.description}`}</h1>
|
||||
<div class="container">
|
||||
<p><strong>{task.status}</strong></p>
|
||||
<p><strong>{task.priority}</strong></p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Body</h2>
|
||||
<p>{task.body}</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user