[CORL-139, CORL-140] Community (#2239)

* feat: Add table ui component

* feat: community user table

* feat: filters and role change

* fix: add some comments

* fix: user viewer

* fix: snapshots

* test: add tests

* fix: better popover experience

* fix: test

* chore: use enum

* feat: prevent server side setting your own role

* fix: cleanup
This commit is contained in:
Kiwi
2019-03-22 21:13:11 +01:00
committed by Wyatt Johnson
parent e70f6f5c7f
commit 538e1fca9d
76 changed files with 2016 additions and 179 deletions
+12 -10
View File
@@ -14,15 +14,6 @@ function lintAndWrite(files) {
}
}
function getFileName(name) {
return path.join(
__dirname,
"../src/core/server/graph",
name,
"schema/__generated__/types.ts"
);
}
async function main() {
const config = getGraphQLConfig(__dirname);
const projects = config.getProjects();
@@ -30,7 +21,10 @@ async function main() {
const files = [
{
name: "tenant",
fileName: getFileName("tenant"),
fileName: path.join(
__dirname,
"../src/core/server/graph/tenant/schema/__generated__/types.ts"
),
config: {
contextType: "TenantContext",
importStatements: [
@@ -40,6 +34,14 @@ async function main() {
customScalarType: { Cursor: "Cursor", Time: "Date" },
},
},
{
name: "tenant",
fileName: path.join(
__dirname,
"../src/core/client/framework/schema/__generated__/types.ts"
),
config: {},
},
];
for (const file of files) {