feat: setup dashboard
- Setup basic code structure - Add routes - Add layout components for authentication and dashboard pages - Add session handling - Add login, signup and session
This commit is contained in:
15
dashboard/src/graphql/mutation/index.ts
Normal file
15
dashboard/src/graphql/mutation/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export const AdminSignup = `
|
||||
mutation adminSignup($secret: String!) {
|
||||
_admin_signup (params: {admin_secret: $secret}) {
|
||||
message
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const AdminLogin = `
|
||||
mutation adminLogin($secret: String!){
|
||||
_admin_login(params: { admin_secret: $secret }) {
|
||||
message
|
||||
}
|
||||
}
|
||||
`
|
7
dashboard/src/graphql/queries/index.ts
Normal file
7
dashboard/src/graphql/queries/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const AdminSessionQuery = `
|
||||
query {
|
||||
_admin_session{
|
||||
message
|
||||
}
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user