Skip to content

Commit cb7ac25

Browse files
committed
add logo, improve sample
1 parent 206a7fa commit cb7ac25

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed
27.2 KB
Loading
20.9 KB
Loading

packages/schema/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
"extensions": [
2121
".zmodel"
2222
],
23-
"configuration": "./language-configuration.json"
23+
"configuration": "./language-configuration.json",
24+
"icon": {
25+
"light": "./asset/logo-light.png",
26+
"dark": "./asset/logo-dark.png"
27+
}
2428
}
2529
],
2630
"grammars": [

samples/todo/schema.zmodel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* A sample model for a collaborative Todo app
33
*/
44

5-
// Datasource
65
datasource db {
76
provider = 'postgresql'
87
url = env('DATABASE_URL')
@@ -22,7 +21,8 @@ model Space {
2221
members SpaceUser[]
2322

2423
// require login
25-
@@deny('all', auth() == null)
24+
@@deny('all', auth() == null)
25+
2626
// everyone can create a space
2727
@@allow('create', true)
2828

0 commit comments

Comments
 (0)