mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 19:01:24 +08:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user