2022-11-22 22:40:47 +03:00
|
|
|
app waspello {
|
2022-11-01 01:00:03 +03:00
|
|
|
wasp: {
|
2024-10-04 14:53:34 +03:00
|
|
|
version: "^0.15.0"
|
2022-11-01 01:00:03 +03:00
|
|
|
},
|
|
|
|
|
2022-11-22 22:40:47 +03:00
|
|
|
title: "Waspello",
|
2021-07-05 19:08:13 +03:00
|
|
|
|
2022-02-11 12:21:36 +03:00
|
|
|
auth: {
|
2021-07-05 19:08:13 +03:00
|
|
|
userEntity: User,
|
2022-09-06 21:35:59 +03:00
|
|
|
methods: {
|
2022-11-22 22:40:47 +03:00
|
|
|
usernameAndPassword: {},
|
|
|
|
google: {}
|
2022-09-06 21:35:59 +03:00
|
|
|
},
|
2021-07-05 19:08:13 +03:00
|
|
|
onAuthFailedRedirectTo: "/login"
|
2024-03-11 00:56:58 +03:00
|
|
|
}
|
2021-07-05 19:08:13 +03:00
|
|
|
}
|
|
|
|
|
2022-02-11 12:21:36 +03:00
|
|
|
route MainRoute { path: "/", to: Main }
|
2021-07-05 19:08:13 +03:00
|
|
|
page Main {
|
|
|
|
authRequired: true,
|
2024-03-11 00:56:58 +03:00
|
|
|
component: import Main from "@src/cards/MainPage.jsx"
|
2021-07-05 19:08:13 +03:00
|
|
|
}
|
|
|
|
|
2022-02-11 12:21:36 +03:00
|
|
|
route SignupRoute { path: "/signup", to: Signup }
|
2021-07-05 19:08:13 +03:00
|
|
|
page Signup {
|
2024-03-11 00:56:58 +03:00
|
|
|
component: import Signup from "@src/auth/SignupPage.jsx"
|
2021-07-05 19:08:13 +03:00
|
|
|
}
|
|
|
|
|
2022-02-11 12:21:36 +03:00
|
|
|
route LoginRoute { path: "/login", to: Login }
|
2021-07-05 19:08:13 +03:00
|
|
|
page Login {
|
2024-03-11 00:56:58 +03:00
|
|
|
component: import Login from "@src/auth/LoginPage.jsx"
|
2021-07-05 19:08:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------- Queries and actions
|
|
|
|
|
|
|
|
query getListsAndCards {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { getListsAndCards } from "@src/cards/lists.js",
|
2021-07-05 19:08:13 +03:00
|
|
|
entities: [List, Card]
|
|
|
|
}
|
|
|
|
|
|
|
|
// Lists
|
|
|
|
|
|
|
|
action createList {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { createList } from "@src/cards/lists.js",
|
2021-07-05 19:08:13 +03:00
|
|
|
entities: [List]
|
|
|
|
}
|
|
|
|
|
|
|
|
action updateList {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { updateList } from "@src/cards/lists.js",
|
2021-07-05 19:08:13 +03:00
|
|
|
entities: [List]
|
|
|
|
}
|
|
|
|
|
|
|
|
action deleteList {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { deleteList } from "@src/cards/lists.js",
|
2021-07-05 19:08:13 +03:00
|
|
|
entities: [List, Card]
|
|
|
|
}
|
|
|
|
|
2022-10-21 21:41:27 +03:00
|
|
|
action createListCopy {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { createListCopy } from "@src/cards/lists.js",
|
2022-10-21 21:41:27 +03:00
|
|
|
entities: [List, Card]
|
|
|
|
}
|
|
|
|
|
2021-07-05 19:08:13 +03:00
|
|
|
// Cards
|
|
|
|
|
|
|
|
action createCard {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { createCard } from "@src/cards/cards.js",
|
2021-07-05 19:08:13 +03:00
|
|
|
entities: [Card]
|
|
|
|
}
|
|
|
|
|
|
|
|
action updateCard {
|
2024-03-11 00:56:58 +03:00
|
|
|
fn: import { updateCard } from "@src/cards/cards.js",
|
2021-07-05 19:08:13 +03:00
|
|
|
entities: [Card]
|
|
|
|
}
|
|
|
|
|