2020-01-30 19:13:00 +03:00
|
|
|
app todoApp {
|
|
|
|
title: "ToDo App"
|
2019-07-04 22:51:05 +03:00
|
|
|
}
|
|
|
|
|
2020-09-07 17:33:47 +03:00
|
|
|
entityPSL Project {=psl
|
|
|
|
id Int @id @default(autoincrement())
|
2020-09-11 16:06:38 +03:00
|
|
|
tasks Task[]
|
2020-09-07 17:33:47 +03:00
|
|
|
psl=}
|
|
|
|
|
|
|
|
entityPSL Task {=psl
|
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
description String
|
|
|
|
isDone Boolean @default(false)
|
|
|
|
project Project @relation(fields: [projectId], references: [id])
|
|
|
|
projectId Int
|
|
|
|
psl=}
|
|
|
|
|
2020-07-31 15:26:10 +03:00
|
|
|
route "/" -> page Main
|
2019-07-04 22:51:05 +03:00
|
|
|
page Main {
|
2020-08-04 14:02:34 +03:00
|
|
|
component: import Main from "@ext/pages/Main"
|
|
|
|
}
|
|
|
|
|
|
|
|
route "/about" -> page About
|
|
|
|
page About {
|
|
|
|
component: import About from "@ext/pages/About"
|
|
|
|
}
|
|
|
|
|
|
|
|
route "/profile" -> page Profile
|
|
|
|
page Profile {
|
|
|
|
component: import { profilePage } from "@ext/pages/ProfilePage"
|
2020-02-05 14:50:57 +03:00
|
|
|
}
|
|
|
|
|
2020-08-31 14:58:53 +03:00
|
|
|
// Page for viewing a specific task
|
|
|
|
//
|
|
|
|
route "/task/:id" -> page Task
|
|
|
|
page Task {
|
|
|
|
component: import Task from "@ext/pages/Task"
|
|
|
|
}
|
|
|
|
|
2020-08-25 21:10:59 +03:00
|
|
|
query getTasks {
|
|
|
|
fn: import { getTasks } from "@ext/queries.js"
|
|
|
|
}
|
2020-08-31 15:41:49 +03:00
|
|
|
|
2020-09-04 13:44:05 +03:00
|
|
|
action createTask {
|
2020-08-31 15:41:49 +03:00
|
|
|
fn: import { createTask } from "@ext/actions.js"
|
2020-09-07 17:33:47 +03:00
|
|
|
}
|