Refactored app.js and index.js to follow hasura examples of managing state. Now using hooks for user auth and only user auth.

This commit is contained in:
Patrick Fic
2019-12-05 21:03:40 -08:00
parent b44714eb59
commit 2842af38b7
23 changed files with 696 additions and 554 deletions

View File

@@ -0,0 +1,3 @@
- args:
sql: DROP TABLE "public"."masterdata"
type: run_sql

View File

@@ -0,0 +1,8 @@
- args:
sql: CREATE TABLE "public"."masterdata"("key" text NOT NULL, "value" jsonb NOT
NULL, PRIMARY KEY ("key") , UNIQUE ("key"));
type: run_sql
- args:
name: masterdata
schema: public
type: add_existing_table_or_view

View File

@@ -0,0 +1,6 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_insert_permission

View File

@@ -0,0 +1,14 @@
- args:
permission:
allow_upsert: true
check: {}
columns: []
localPresets:
- key: ""
value: ""
set: {}
role: anonymous
table:
name: masterdata
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,19 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_insert_permission
- args:
permission:
check: {}
columns: []
localPresets:
- key: ""
value: ""
set: {}
role: anonymous
table:
name: masterdata
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,21 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_insert_permission
- args:
permission:
check: {}
columns:
- value
- key
localPresets:
- key: ""
value: ""
set: {}
role: anonymous
table:
name: masterdata
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,19 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_insert_permission
- args:
permission:
check: {}
columns: []
localPresets:
- key: ""
value: ""
set: {}
role: anonymous
table:
name: masterdata
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,19 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_insert_permission
- args:
permission:
check: {}
columns: []
localPresets:
- key: ""
value: ""
set: {}
role: anonymous
table:
name: masterdata
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,13 @@
- args:
permission:
check: {}
columns: []
localPresets:
- key: ""
value: ""
set: {}
role: anonymous
table:
name: masterdata
schema: public
type: create_insert_permission

View File

@@ -0,0 +1,6 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_insert_permission

View File

@@ -0,0 +1,6 @@
- args:
role: user
table:
name: masterdata
schema: public
type: drop_select_permission

View File

@@ -0,0 +1,13 @@
- args:
permission:
allow_aggregations: false
columns:
- value
- key
filter: {}
limit: null
role: user
table:
name: masterdata
schema: public
type: create_select_permission

View File

@@ -0,0 +1,6 @@
- args:
role: anonymous
table:
name: masterdata
schema: public
type: drop_select_permission

View File

@@ -0,0 +1,13 @@
- args:
permission:
allow_aggregations: false
columns:
- value
- key
filter: {}
limit: null
role: anonymous
table:
name: masterdata
schema: public
type: create_select_permission