This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pergel theme configuration and styles
- Loading branch information
1 parent
528edb3
commit a3f2dff
Showing
12 changed files
with
176 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
themes/pergel-auth/assets/pergel.css → themes/pergel-auth/assets/css/pergel.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
themes/pergel-auth/server/graphqlYoga-changeName/documents/book.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
query book { | ||
book(id: 1) { | ||
id | ||
name | ||
title | ||
} | ||
} | ||
|
8 changes: 4 additions & 4 deletions
8
...aphqlYoga-changeName/graphql/book.graphql → ...aphqlYoga-changeName/schemas/book.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
scalar DateTime | ||
|
||
type Query { | ||
book(id: ID!): Book! | ||
books: [Book!]! | ||
} | ||
|
||
type Book { | ||
id: ID! | ||
name: String! | ||
email: String! | ||
password: String! | ||
title: String! | ||
createdAt: String! | ||
updatedAt: String | ||
} | ||
|
10 changes: 10 additions & 0 deletions
10
themes/pergel-auth/server/graphqlYoga-changeName/schemas/search.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
input SearchInput { | ||
tableName: String! | ||
text: String! | ||
} | ||
|
||
union SearchResult = User | Book | ||
|
||
extend type Query { | ||
search(input: SearchInput!): [SearchResult] | ||
} |
42 changes: 42 additions & 0 deletions
42
themes/pergel-auth/server/graphqlYoga-changeName/schemas/user.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
enum RoleStatus { | ||
user | ||
admin | ||
superadmin | ||
} | ||
|
||
type User { | ||
id: ID! | ||
name: String | ||
email: String | ||
createdAt: DateTime! | ||
roleStatus: RoleStatus! | ||
} | ||
|
||
input UserInput { | ||
name: String! | ||
email: String! | ||
password: String! | ||
} | ||
|
||
input UserUpdateInput { | ||
name: String | ||
email: String | ||
password: String | ||
} | ||
|
||
|
||
type UserToken { | ||
user: User! | ||
token: String! | ||
} | ||
|
||
type Mutation { | ||
createUser(input: UserInput!): UserToken! | ||
updateUser(id: ID!, input: UserInput!): User! | ||
deleteUser(id: ID!): User! | ||
login(email: String!, password: String!): UserToken! | ||
} | ||
|
||
type Query { | ||
users(search: String): [User!]! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
scalar DateTime | ||
|
||
type Query { | ||
book(id: ID!): Book! | ||
books: [Book!]! | ||
search(input: SearchInput!): [SearchResult] | ||
users(search: String): [User!]! | ||
} | ||
|
||
type Book { | ||
id: ID! | ||
title: String! | ||
createdAt: String! | ||
updatedAt: String | ||
} | ||
|
||
input SearchInput { | ||
tableName: String! | ||
text: String! | ||
} | ||
|
||
union SearchResult = User | Book | ||
|
||
enum RoleStatus { | ||
user | ||
admin | ||
superadmin | ||
} | ||
|
||
type User { | ||
id: ID! | ||
name: String | ||
email: String | ||
createdAt: DateTime! | ||
roleStatus: RoleStatus! | ||
} | ||
|
||
input UserInput { | ||
name: String! | ||
email: String! | ||
password: String! | ||
} | ||
|
||
input UserUpdateInput { | ||
name: String | ||
email: String | ||
password: String | ||
} | ||
|
||
type UserToken { | ||
user: User! | ||
token: String! | ||
} | ||
|
||
type Mutation { | ||
createUser(input: UserInput!): UserToken! | ||
updateUser(id: ID!, input: UserInput!): User! | ||
deleteUser(id: ID!): User! | ||
login(email: String!, password: String!): UserToken! | ||
} |