-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from minenwerfer/master
Refactor style
- Loading branch information
Showing
23 changed files
with
82 additions
and
424 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
production.env | ||
dist | ||
node_modules | ||
api/release | ||
**/.aeria/out | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 +1,16 @@ | ||
collection File extends aeria.file {} | ||
collection TempFile extends aeria.tempFile {} | ||
|
||
collection Pet { | ||
icon "dog" | ||
indexes { | ||
name | ||
collection User extends aeria.user { | ||
form { | ||
github_id | ||
twitch_id | ||
google_id | ||
} | ||
properties { | ||
name str | ||
type enum @values(["dog", "cat"]) | ||
picture File @accept(["image/*"]) | ||
} | ||
functions { | ||
get @expose | ||
getAll @expose | ||
insert @expose | ||
upload @expose | ||
} | ||
presets { | ||
crud | ||
github_id str | ||
twitch_id str | ||
google_id str | ||
} | ||
} | ||
|
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,26 +1,3 @@ | ||
export * from '../.aeria/out/collections/index.mjs' | ||
export { | ||
file, tempFile, | ||
} from 'aeria' | ||
import { extendCollection, user as originalUser } from 'aeria' | ||
|
||
export const user = extendCollection(originalUser,{ | ||
description: { | ||
form: [ | ||
'github_id', | ||
'twitch_id', | ||
'google_id' | ||
], | ||
properties: { | ||
github_id: { | ||
type: 'string', | ||
}, | ||
twitch_id: { | ||
type: 'string', | ||
}, | ||
google_id:{ | ||
type:'string' | ||
} | ||
}, | ||
}, | ||
}) | ||
|
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
Oops, something went wrong.