New: Hero Page und Navigation

This commit is contained in:
2024-10-04 16:46:22 +02:00
parent e2902457e2
commit fd5aa79278
45 changed files with 1804 additions and 1310 deletions

View File

@ -0,0 +1,36 @@
export const schema = gql`
type Identity {
id: Int!
provider: String!
# uid: String!
userId: Int!
user: User!
# accessToken: String
# scope: String
lastLoginAt: DateTime!
createdAt: DateTime!
updatedAt: DateTime!
}
type Query {
identities: [Identity!]! @requireAuth
}
input CreateIdentityInput {
provider: String!
uid: String!
userId: Int!
accessToken: String
scope: String
lastLoginAt: DateTime!
}
input UpdateIdentityInput {
provider: String
uid: String
userId: Int
accessToken: String
scope: String
lastLoginAt: DateTime
}
`

View File

@ -0,0 +1,37 @@
export const schema = gql`
type Nachhilfeangebot {
id: Int!
subject: String!
currentClass: String!
cost: Float!
user: User!
}
type Query {
nachhilfeangebots: [Nachhilfeangebot!]! @requireAuth
nachhilfeangebot(id: Int!): Nachhilfeangebot @requireAuth
}
input CreateNachhilfeangebotInput {
subject: String!
currentClass: String!
cost: Float!
}
input UpdateNachhilfeangebotInput {
subject: String
currentClass: String
cost: Float
}
type Mutation {
createNachhilfeangebot(
input: CreateNachhilfeangebotInput!
): Nachhilfeangebot! @requireAuth
updateNachhilfeangebot(
id: Int!
input: UpdateNachhilfeangebotInput!
): Nachhilfeangebot! @requireAuth
deleteNachhilfeangebot(id: Int!): Nachhilfeangebot! @requireAuth
}
`

View File

@ -0,0 +1,43 @@
export const schema = gql`
type User {
id: Int!
email: String!
firstName: String
lastName: String
# hashedPassword: String
# salt: String
# resetToken: String
# resetTokenExpiresAt: DateTime
createdAt: DateTime!
updatedAt: DateTime!
roles: String!
identites: [Identity]!
Nachhilfeangebot: [Nachhilfeangebot]!
}
type Query {
users: [User!]! @requireAuth
}
input CreateUserInput {
email: String!
firstName: String
lastName: String
hashedPassword: String
salt: String
resetToken: String
resetTokenExpiresAt: DateTime
roles: String!
}
input UpdateUserInput {
email: String
firstName: String
lastName: String
hashedPassword: String
salt: String
resetToken: String
resetTokenExpiresAt: DateTime
roles: String
}
`