2021-12-22 18:06:39 +03:00
|
|
|
app waspleau {
|
2022-11-01 01:00:03 +03:00
|
|
|
wasp: {
|
2023-06-14 22:56:26 +03:00
|
|
|
version: "^0.11.0"
|
2022-11-01 01:00:03 +03:00
|
|
|
},
|
|
|
|
|
2022-01-31 19:41:47 +03:00
|
|
|
title: "Waspleau",
|
2021-12-22 18:06:39 +03:00
|
|
|
|
2022-01-31 19:41:47 +03:00
|
|
|
server: {
|
2022-11-11 20:58:29 +03:00
|
|
|
setupFn: import serverSetup from "@server/serverSetup.js"
|
2022-01-31 19:41:47 +03:00
|
|
|
},
|
2021-12-22 18:06:39 +03:00
|
|
|
|
2022-01-31 19:41:47 +03:00
|
|
|
db: { system: PostgreSQL },
|
|
|
|
|
|
|
|
dependencies: [
|
2023-06-21 18:26:42 +03:00
|
|
|
("axios", "^1.4.0")
|
2022-01-31 19:41:47 +03:00
|
|
|
]
|
2021-12-22 18:06:39 +03:00
|
|
|
}
|
|
|
|
|
2022-05-25 19:55:54 +03:00
|
|
|
job github {
|
|
|
|
executor: PgBoss,
|
|
|
|
perform: {
|
2022-11-11 20:58:29 +03:00
|
|
|
fn: import { workerFunction } from "@server/workers/github.js"
|
2022-05-25 19:55:54 +03:00
|
|
|
},
|
|
|
|
schedule: {
|
|
|
|
cron: "*/10 * * * *"
|
2022-08-17 20:53:05 +03:00
|
|
|
},
|
2022-11-24 17:19:22 +03:00
|
|
|
entities: [Datum]
|
2022-05-25 19:55:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
job loadTime {
|
|
|
|
executor: PgBoss,
|
|
|
|
perform: {
|
2022-11-11 20:58:29 +03:00
|
|
|
fn: import { workerFunction } from "@server/workers/loadTime.js"
|
2022-05-25 19:55:54 +03:00
|
|
|
},
|
|
|
|
schedule: {
|
|
|
|
cron: "*/5 * * * *",
|
|
|
|
args: {=json {
|
2022-06-02 21:27:08 +03:00
|
|
|
"url": "https://wasp-lang.dev",
|
2022-05-25 19:55:54 +03:00
|
|
|
"name": "wasp-lang.dev Load Time"
|
|
|
|
} json=}
|
2022-08-17 20:53:05 +03:00
|
|
|
},
|
2022-11-24 17:19:22 +03:00
|
|
|
entities: [Datum]
|
2022-05-25 19:55:54 +03:00
|
|
|
}
|
|
|
|
|
2022-11-24 17:19:22 +03:00
|
|
|
entity Datum {=psl
|
2022-05-25 19:55:54 +03:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
name String @unique
|
|
|
|
value String
|
|
|
|
updatedAt DateTime @updatedAt
|
|
|
|
psl=}
|
|
|
|
|
2022-01-31 19:41:47 +03:00
|
|
|
route RootsRoute { path: "/", to: MainPage }
|
|
|
|
page MainPage {
|
2023-03-01 19:14:14 +03:00
|
|
|
component: import Main from "@client/MainPage.jsx"
|
2021-12-22 18:06:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
query dashboard {
|
2022-11-11 20:58:29 +03:00
|
|
|
fn: import { refreshDashboardData } from "@server/dashboard.js",
|
2022-11-24 17:19:22 +03:00
|
|
|
entities: [Datum]
|
2021-12-22 18:06:39 +03:00
|
|
|
}
|