2019-04-19 16:22:14 +03:00
|
|
|
// Test .wasp file.
|
|
|
|
|
2020-02-05 00:39:38 +03:00
|
|
|
import something from "@ext/some/file"
|
2019-12-17 23:40:05 +03:00
|
|
|
|
2019-05-05 18:54:51 +03:00
|
|
|
// App definition.
|
2019-04-19 16:22:14 +03:00
|
|
|
app test_app {
|
|
|
|
// Title of the app.
|
|
|
|
title: "Hello World!"
|
|
|
|
}
|
2019-05-05 18:54:51 +03:00
|
|
|
|
2020-10-08 17:17:47 +03:00
|
|
|
auth {
|
2021-02-01 18:32:07 +03:00
|
|
|
onAuthFailedRedirectTo: "/test",
|
2020-10-08 17:17:47 +03:00
|
|
|
userEntity: User,
|
|
|
|
methods: [ EmailAndPassword ]
|
|
|
|
}
|
|
|
|
|
2020-07-31 15:26:10 +03:00
|
|
|
route "/" -> page Landing
|
2019-05-05 18:54:51 +03:00
|
|
|
page Landing {
|
2021-02-01 18:32:07 +03:00
|
|
|
component: import Landing from "@ext/pages/Landing",
|
|
|
|
authRequired: false
|
2019-05-31 20:35:50 +03:00
|
|
|
}
|
|
|
|
|
2020-07-31 15:26:10 +03:00
|
|
|
route "/test" -> page TestPage
|
2019-05-31 20:35:50 +03:00
|
|
|
page TestPage {
|
2020-08-04 14:02:34 +03:00
|
|
|
component: import Test from "@ext/pages/Test"
|
2019-05-05 18:54:51 +03:00
|
|
|
}
|
2019-05-09 23:05:59 +03:00
|
|
|
|
2020-10-21 17:37:20 +03:00
|
|
|
entity Task {=psl
|
2020-09-04 15:21:47 +03:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
description String
|
|
|
|
isDone Boolean @default(false)
|
|
|
|
psl=}
|
|
|
|
|
2020-08-25 16:08:02 +03:00
|
|
|
query myQuery {
|
|
|
|
fn: import { myJsQuery } from "@ext/some/path"
|
|
|
|
}
|
2020-09-25 15:36:31 +03:00
|
|
|
|
|
|
|
dependencies {=json
|
|
|
|
"lodash": "^4.17.15"
|
|
|
|
json=}
|