This file contains hidden or 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
| generator client { | |
| provider = "prisma-client-js" | |
| } | |
| datasource db { | |
| provider = "postgresql" | |
| url = env("POSTGRES_PRISMA_URL") | |
| directUrl = env("POSTGRES_URL_NON_POOLING") | |
| } |
This file contains hidden or 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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or 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
| class CustomUserAdmin(UserAdmin): | |
| inlines = (ProfileInline, ApiTokenInline) | |
| list_display = ('username', 'free_evaluation_count', 'credits_balance', 'paid_evaluation_count',) | |
| def get_readonly_fields(self, request, obj=None): | |
| fields=super(UserAdmin, self).get_readonly_fields(request, obj) | |
| return fields + ('free_evaluation_count', 'paid_evaluation_count', 'credits_balance',) | |
| def get_fieldsets(self, request, obj=None): |
This file contains hidden or 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
| {"lastUpload":"2019-07-05T20:14:13.088Z","extensionVersion":"v3.3.1"} |
This file contains hidden or 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
| // define a object for you theme | |
| export const theme = { | |
| 'colors.hello': true | |
| } | |
| // dynamically infer the possible theme key | |
| export type ThemeKeys = keyof typeof theme | |
This file contains hidden or 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
| function tagged(strings: TemplateStringsArray, ...args: boolean[]){ | |
| // do something | |
| console.log(args) | |
| } |
This file contains hidden or 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
| const PrestyledComponent = styled('div')` | |
| /** real css here */ | |
| background-color: blue; | |
| ` | |
| // usage | |
| const Component = () => <PrestyledComponent /> |
This file contains hidden or 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
| html`<h1>Hello ${name}</h1>`; |
This file contains hidden or 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
| ["Hello,", ",World"] |
This file contains hidden or 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
| myTemplate`Hello,${"Timothee"},World` |
NewerOlder