-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cli config for the instant-config app (#374)
- Loading branch information
Showing
7 changed files
with
995 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSTANT_APP_ID=24a4d71b-7bb2-4630-9aee-01146af26239 |
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,36 @@ | ||
Stores the perms and schema info for the flags in the instant-config app. | ||
|
||
Install deps: | ||
``` | ||
pnpm i | ||
``` | ||
|
||
login: | ||
``` | ||
pnpm run login | ||
``` | ||
|
||
or in dev: | ||
``` | ||
pnpm run dev:login | ||
``` | ||
|
||
pull schema and perms: | ||
``` | ||
pnpm run pull | ||
``` | ||
|
||
or in dev: | ||
``` | ||
pnpm run dev:pull | ||
``` | ||
|
||
push schema and perms: | ||
``` | ||
pnpm run push | ||
``` | ||
|
||
or in dev: | ||
``` | ||
pnpm run dev:push | ||
``` |
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,71 @@ | ||
export default { | ||
"attrs": { | ||
"allow": { | ||
"create": "false" | ||
} | ||
}, | ||
"storage-whitelist": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"friend-emails": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"view-checks": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"power-user-emails": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"test-emails": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"promo-emails": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"hazelcast": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
}, | ||
"team-emails": { | ||
"allow": { | ||
"view": "false", | ||
"create": "false", | ||
"delete": "false", | ||
"update": "false" | ||
} | ||
} | ||
}; |
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,43 @@ | ||
// instant-config | ||
// https://instantdb.com/dash?s=main&t=home&app=24a4d71b-7bb2-4630-9aee-01146af26239 | ||
|
||
import { i } from "@instantdb/core"; | ||
|
||
const graph = i.graph( | ||
{ | ||
"friend-emails": i.entity({ | ||
"email": i.any().unique(), | ||
}), | ||
"hazelcast": i.entity({ | ||
"default-value": i.any(), | ||
"disabled": i.any(), | ||
"disabled-apps": i.any(), | ||
"enabled-apps": i.any(), | ||
}), | ||
"power-user-emails": i.entity({ | ||
"email": i.any().unique(), | ||
}), | ||
"promo-emails": i.entity({ | ||
"email": i.any(), | ||
}), | ||
"storage-whitelist": i.entity({ | ||
"appId": i.any().unique().indexed(), | ||
"email": i.any(), | ||
"isEnabled": i.any(), | ||
}), | ||
"team-emails": i.entity({ | ||
"email": i.any(), | ||
}), | ||
"test-emails": i.entity({ | ||
"email": i.any(), | ||
}), | ||
"view-checks": i.entity({ | ||
"default-value": i.any(), | ||
"disabled-apps": i.any(), | ||
"enabled-apps": i.any(), | ||
}), | ||
}, | ||
{} | ||
); | ||
|
||
export default graph; |
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,16 @@ | ||
{ | ||
"name": "flags-config", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"login": "instant-cli login", | ||
"pull": "instant-cli pull", | ||
"push": "instant-cli push", | ||
"dev:login": "INSTANT_CLI_DEV=1 instant-cli login", | ||
"dev:pull": "INSTANT_CLI_DEV=1 instant-cli pull", | ||
"dev:push": "INSTANT_CLI_DEV=1 instant-cli push" | ||
}, | ||
"dependencies": { | ||
"@instantdb/core": "^0.14.18", | ||
"instant-cli": "^0.14.18" | ||
} | ||
} |
Oops, something went wrong.