@shipfox/client-workspace-settings 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -0
- package/.turbo/turbo-type$colon$emit.log +1 -0
- package/.turbo/turbo-type.log +1 -0
- package/CHANGELOG.md +197 -0
- package/LICENSE +21 -0
- package/dist/components/members/form-errors.d.ts +11 -0
- package/dist/components/members/form-errors.d.ts.map +1 -0
- package/dist/components/members/form-errors.js +28 -0
- package/dist/components/members/form-errors.js.map +1 -0
- package/dist/components/members/workspace-members-section.d.ts +5 -0
- package/dist/components/members/workspace-members-section.d.ts.map +1 -0
- package/dist/components/members/workspace-members-section.js +541 -0
- package/dist/components/members/workspace-members-section.js.map +1 -0
- package/dist/components/workspace-settings-shell.d.ts +8 -0
- package/dist/components/workspace-settings-shell.d.ts.map +1 -0
- package/dist/components/workspace-settings-shell.js +7 -0
- package/dist/components/workspace-settings-shell.js.map +1 -0
- package/dist/feature.d.ts +98 -0
- package/dist/feature.d.ts.map +1 -0
- package/dist/feature.js +120 -0
- package/dist/feature.js.map +1 -0
- package/dist/hooks/api/create-invitation.d.ts +14 -0
- package/dist/hooks/api/create-invitation.d.ts.map +1 -0
- package/dist/hooks/api/create-invitation.js +25 -0
- package/dist/hooks/api/create-invitation.js.map +1 -0
- package/dist/hooks/api/list-invitations.d.ts +15 -0
- package/dist/hooks/api/list-invitations.d.ts.map +1 -0
- package/dist/hooks/api/list-invitations.js +18 -0
- package/dist/hooks/api/list-invitations.js.map +1 -0
- package/dist/hooks/api/list-members.d.ts +13 -0
- package/dist/hooks/api/list-members.d.ts.map +1 -0
- package/dist/hooks/api/list-members.js +18 -0
- package/dist/hooks/api/list-members.js.map +1 -0
- package/dist/hooks/api/remove-member.d.ts +2 -0
- package/dist/hooks/api/remove-member.d.ts.map +1 -0
- package/dist/hooks/api/remove-member.js +24 -0
- package/dist/hooks/api/remove-member.js.map +1 -0
- package/dist/hooks/api/revoke-invitation.d.ts +2 -0
- package/dist/hooks/api/revoke-invitation.d.ts.map +1 -0
- package/dist/hooks/api/revoke-invitation.js +24 -0
- package/dist/hooks/api/revoke-invitation.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/events-settings-page.d.ts +2 -0
- package/dist/pages/events-settings-page.d.ts.map +1 -0
- package/dist/pages/events-settings-page.js +30 -0
- package/dist/pages/events-settings-page.js.map +1 -0
- package/dist/pages/integrations-settings-page.d.ts +2 -0
- package/dist/pages/integrations-settings-page.d.ts.map +1 -0
- package/dist/pages/integrations-settings-page.js +10 -0
- package/dist/pages/integrations-settings-page.js.map +1 -0
- package/dist/pages/members-settings-page.d.ts +2 -0
- package/dist/pages/members-settings-page.d.ts.map +1 -0
- package/dist/pages/members-settings-page.js +15 -0
- package/dist/pages/members-settings-page.js.map +1 -0
- package/dist/pages/model-providers-settings-page.d.ts +2 -0
- package/dist/pages/model-providers-settings-page.d.ts.map +1 -0
- package/dist/pages/model-providers-settings-page.js +20 -0
- package/dist/pages/model-providers-settings-page.js.map +1 -0
- package/dist/pages/provisioners-settings-page.d.ts +2 -0
- package/dist/pages/provisioners-settings-page.d.ts.map +1 -0
- package/dist/pages/provisioners-settings-page.js +14 -0
- package/dist/pages/provisioners-settings-page.js.map +1 -0
- package/dist/pages/runners-settings-page.d.ts +2 -0
- package/dist/pages/runners-settings-page.d.ts.map +1 -0
- package/dist/pages/runners-settings-page.js +14 -0
- package/dist/pages/runners-settings-page.js.map +1 -0
- package/dist/pages/secrets-settings-page.d.ts +2 -0
- package/dist/pages/secrets-settings-page.d.ts.map +1 -0
- package/dist/pages/secrets-settings-page.js +14 -0
- package/dist/pages/secrets-settings-page.js.map +1 -0
- package/dist/pages/variables-settings-page.d.ts +2 -0
- package/dist/pages/variables-settings-page.d.ts.map +1 -0
- package/dist/pages/variables-settings-page.js +14 -0
- package/dist/pages/variables-settings-page.js.map +1 -0
- package/dist/routes/agents.d.ts +6 -0
- package/dist/routes/agents.d.ts.map +1 -0
- package/dist/routes/agents.js +7 -0
- package/dist/routes/agents.js.map +1 -0
- package/dist/routes/events.d.ts +8 -0
- package/dist/routes/events.d.ts.map +1 -0
- package/dist/routes/events.js +9 -0
- package/dist/routes/events.js.map +1 -0
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +14 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/integrations.d.ts +6 -0
- package/dist/routes/integrations.d.ts.map +1 -0
- package/dist/routes/integrations.js +7 -0
- package/dist/routes/integrations.js.map +1 -0
- package/dist/routes/members.d.ts +6 -0
- package/dist/routes/members.d.ts.map +1 -0
- package/dist/routes/members.js +7 -0
- package/dist/routes/members.js.map +1 -0
- package/dist/routes/provisioners.d.ts +6 -0
- package/dist/routes/provisioners.d.ts.map +1 -0
- package/dist/routes/provisioners.js +7 -0
- package/dist/routes/provisioners.js.map +1 -0
- package/dist/routes/runners.d.ts +6 -0
- package/dist/routes/runners.d.ts.map +1 -0
- package/dist/routes/runners.js +7 -0
- package/dist/routes/runners.js.map +1 -0
- package/dist/routes/secrets.d.ts +6 -0
- package/dist/routes/secrets.d.ts.map +1 -0
- package/dist/routes/secrets.js +7 -0
- package/dist/routes/secrets.js.map +1 -0
- package/dist/routes/variables.d.ts +6 -0
- package/dist/routes/variables.d.ts.map +1 -0
- package/dist/routes/variables.js +7 -0
- package/dist/routes/variables.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -0
- package/package.json +104 -0
- package/src/components/members/form-errors.test.ts +40 -0
- package/src/components/members/form-errors.ts +24 -0
- package/src/components/members/workspace-members-section.tsx +476 -0
- package/src/components/workspace-settings-shell.tsx +12 -0
- package/src/feature.ts +120 -0
- package/src/hooks/api/create-invitation.ts +21 -0
- package/src/hooks/api/list-invitations.ts +17 -0
- package/src/hooks/api/list-members.ts +17 -0
- package/src/hooks/api/remove-member.ts +19 -0
- package/src/hooks/api/revoke-invitation.ts +19 -0
- package/src/index.ts +8 -0
- package/src/pages/events-settings-page.tsx +25 -0
- package/src/pages/integrations-settings-page.test.tsx +72 -0
- package/src/pages/integrations-settings-page.tsx +6 -0
- package/src/pages/members-settings-page.tsx +17 -0
- package/src/pages/model-providers-settings-page.test.tsx +48 -0
- package/src/pages/model-providers-settings-page.tsx +15 -0
- package/src/pages/provisioners-settings-page.test.tsx +29 -0
- package/src/pages/provisioners-settings-page.tsx +14 -0
- package/src/pages/runners-settings-page.test.tsx +23 -0
- package/src/pages/runners-settings-page.tsx +14 -0
- package/src/pages/secrets-settings-page.tsx +14 -0
- package/src/pages/variables-settings-page.tsx +14 -0
- package/src/routes/agents.tsx +3 -0
- package/src/routes/events.tsx +7 -0
- package/src/routes/index.tsx +8 -0
- package/src/routes/integrations.tsx +3 -0
- package/src/routes/members.tsx +3 -0
- package/src/routes/provisioners.tsx +3 -0
- package/src/routes/runners.tsx +3 -0
- package/src/routes/secrets.tsx +3 -0
- package/src/routes/variables.tsx +3 -0
- package/test/pages.tsx +101 -0
- package/test/setup.ts +3 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/tsconfig.test.json +8 -0
- package/vitest.config.ts +14 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { IconName } from '@shipfox/react-ui/icon';
|
|
2
|
+
export declare const workspaceSettingsFeature: {
|
|
3
|
+
readonly id: "shipfox.workspace-settings";
|
|
4
|
+
readonly routes: readonly [{
|
|
5
|
+
readonly path: "/workspaces/$wid/settings";
|
|
6
|
+
readonly parent: "workspaceSettings";
|
|
7
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/index";
|
|
8
|
+
}, {
|
|
9
|
+
readonly path: "/workspaces/$wid/settings/members";
|
|
10
|
+
readonly parent: "workspaceSettings";
|
|
11
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/members";
|
|
12
|
+
}, {
|
|
13
|
+
readonly path: "/workspaces/$wid/settings/runners";
|
|
14
|
+
readonly parent: "workspaceSettings";
|
|
15
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/runners";
|
|
16
|
+
}, {
|
|
17
|
+
readonly path: "/workspaces/$wid/settings/provisioners";
|
|
18
|
+
readonly parent: "workspaceSettings";
|
|
19
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/provisioners";
|
|
20
|
+
}, {
|
|
21
|
+
readonly path: "/workspaces/$wid/settings/agents";
|
|
22
|
+
readonly parent: "workspaceSettings";
|
|
23
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/agents";
|
|
24
|
+
}, {
|
|
25
|
+
readonly path: "/workspaces/$wid/settings/secrets";
|
|
26
|
+
readonly parent: "workspaceSettings";
|
|
27
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/secrets";
|
|
28
|
+
}, {
|
|
29
|
+
readonly path: "/workspaces/$wid/settings/variables";
|
|
30
|
+
readonly parent: "workspaceSettings";
|
|
31
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/variables";
|
|
32
|
+
}, {
|
|
33
|
+
readonly path: "/workspaces/$wid/settings/integrations";
|
|
34
|
+
readonly parent: "workspaceSettings";
|
|
35
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/integrations";
|
|
36
|
+
}, {
|
|
37
|
+
readonly path: "/workspaces/$wid/settings/events";
|
|
38
|
+
readonly parent: "workspaceSettings";
|
|
39
|
+
readonly impl: "@shipfox/client-workspace-settings/routes/events";
|
|
40
|
+
}];
|
|
41
|
+
readonly navigation: readonly [{
|
|
42
|
+
readonly id: "nav.settings";
|
|
43
|
+
readonly scope: "workspace";
|
|
44
|
+
readonly label: "Settings";
|
|
45
|
+
readonly to: "/workspaces/$wid/settings";
|
|
46
|
+
readonly order: 200;
|
|
47
|
+
}];
|
|
48
|
+
readonly settingsSections: readonly [{
|
|
49
|
+
readonly id: "settings.members";
|
|
50
|
+
readonly pathSegment: "members";
|
|
51
|
+
readonly label: "Members";
|
|
52
|
+
readonly icon: IconName;
|
|
53
|
+
readonly order: 100;
|
|
54
|
+
}, {
|
|
55
|
+
readonly id: "settings.runners";
|
|
56
|
+
readonly pathSegment: "runners";
|
|
57
|
+
readonly label: "Runners";
|
|
58
|
+
readonly icon: IconName;
|
|
59
|
+
readonly order: 200;
|
|
60
|
+
}, {
|
|
61
|
+
readonly id: "settings.provisioners";
|
|
62
|
+
readonly pathSegment: "provisioners";
|
|
63
|
+
readonly label: "Runner provisioners";
|
|
64
|
+
readonly icon: IconName;
|
|
65
|
+
readonly order: 300;
|
|
66
|
+
}, {
|
|
67
|
+
readonly id: "settings.agents";
|
|
68
|
+
readonly pathSegment: "agents";
|
|
69
|
+
readonly label: "Agents";
|
|
70
|
+
readonly icon: IconName;
|
|
71
|
+
readonly order: 400;
|
|
72
|
+
}, {
|
|
73
|
+
readonly id: "settings.secrets";
|
|
74
|
+
readonly pathSegment: "secrets";
|
|
75
|
+
readonly label: "Secrets";
|
|
76
|
+
readonly icon: IconName;
|
|
77
|
+
readonly order: 500;
|
|
78
|
+
}, {
|
|
79
|
+
readonly id: "settings.variables";
|
|
80
|
+
readonly pathSegment: "variables";
|
|
81
|
+
readonly label: "Variables";
|
|
82
|
+
readonly icon: IconName;
|
|
83
|
+
readonly order: 600;
|
|
84
|
+
}, {
|
|
85
|
+
readonly id: "settings.integrations";
|
|
86
|
+
readonly pathSegment: "integrations";
|
|
87
|
+
readonly label: "Integrations";
|
|
88
|
+
readonly icon: IconName;
|
|
89
|
+
readonly order: 700;
|
|
90
|
+
}, {
|
|
91
|
+
readonly id: "settings.events";
|
|
92
|
+
readonly pathSegment: "events";
|
|
93
|
+
readonly label: "Events";
|
|
94
|
+
readonly icon: IconName;
|
|
95
|
+
readonly order: 800;
|
|
96
|
+
}];
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAErD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA+DX,QAAQ;;;;;;uBAOH,QAAQ;;;;;;uBAOX,QAAQ;;;;;;uBAOR,QAAQ;;;;;;uBAOX,QAAQ;;;;;;uBAOL,QAAQ;;;;;;uBAOV,QAAQ;;;;;;uBAOP,QAAQ;;;CAIjC,CAAC"}
|
package/dist/feature.js
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineClientFeature } from '@shipfox/client-shell';
|
|
2
|
+
export const workspaceSettingsFeature = defineClientFeature({
|
|
3
|
+
id: 'shipfox.workspace-settings',
|
|
4
|
+
routes: [
|
|
5
|
+
{
|
|
6
|
+
path: '/workspaces/$wid/settings',
|
|
7
|
+
parent: 'workspaceSettings',
|
|
8
|
+
impl: '@shipfox/client-workspace-settings/routes/index'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
path: '/workspaces/$wid/settings/members',
|
|
12
|
+
parent: 'workspaceSettings',
|
|
13
|
+
impl: '@shipfox/client-workspace-settings/routes/members'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
path: '/workspaces/$wid/settings/runners',
|
|
17
|
+
parent: 'workspaceSettings',
|
|
18
|
+
impl: '@shipfox/client-workspace-settings/routes/runners'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
path: '/workspaces/$wid/settings/provisioners',
|
|
22
|
+
parent: 'workspaceSettings',
|
|
23
|
+
impl: '@shipfox/client-workspace-settings/routes/provisioners'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
path: '/workspaces/$wid/settings/agents',
|
|
27
|
+
parent: 'workspaceSettings',
|
|
28
|
+
impl: '@shipfox/client-workspace-settings/routes/agents'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: '/workspaces/$wid/settings/secrets',
|
|
32
|
+
parent: 'workspaceSettings',
|
|
33
|
+
impl: '@shipfox/client-workspace-settings/routes/secrets'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: '/workspaces/$wid/settings/variables',
|
|
37
|
+
parent: 'workspaceSettings',
|
|
38
|
+
impl: '@shipfox/client-workspace-settings/routes/variables'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: '/workspaces/$wid/settings/integrations',
|
|
42
|
+
parent: 'workspaceSettings',
|
|
43
|
+
impl: '@shipfox/client-workspace-settings/routes/integrations'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
path: '/workspaces/$wid/settings/events',
|
|
47
|
+
parent: 'workspaceSettings',
|
|
48
|
+
impl: '@shipfox/client-workspace-settings/routes/events'
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
navigation: [
|
|
52
|
+
{
|
|
53
|
+
id: 'nav.settings',
|
|
54
|
+
scope: 'workspace',
|
|
55
|
+
label: 'Settings',
|
|
56
|
+
to: '/workspaces/$wid/settings',
|
|
57
|
+
order: 200
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
settingsSections: [
|
|
61
|
+
{
|
|
62
|
+
id: 'settings.members',
|
|
63
|
+
pathSegment: 'members',
|
|
64
|
+
label: 'Members',
|
|
65
|
+
icon: 'userLine',
|
|
66
|
+
order: 100
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'settings.runners',
|
|
70
|
+
pathSegment: 'runners',
|
|
71
|
+
label: 'Runners',
|
|
72
|
+
icon: 'settings3Line',
|
|
73
|
+
order: 200
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'settings.provisioners',
|
|
77
|
+
pathSegment: 'provisioners',
|
|
78
|
+
label: 'Runner provisioners',
|
|
79
|
+
icon: 'serverLine',
|
|
80
|
+
order: 300
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'settings.agents',
|
|
84
|
+
pathSegment: 'agents',
|
|
85
|
+
label: 'Agents',
|
|
86
|
+
icon: 'robot2Line',
|
|
87
|
+
order: 400
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'settings.secrets',
|
|
91
|
+
pathSegment: 'secrets',
|
|
92
|
+
label: 'Secrets',
|
|
93
|
+
icon: 'keyLine',
|
|
94
|
+
order: 500
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'settings.variables',
|
|
98
|
+
pathSegment: 'variables',
|
|
99
|
+
label: 'Variables',
|
|
100
|
+
icon: 'bracesLine',
|
|
101
|
+
order: 600
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'settings.integrations',
|
|
105
|
+
pathSegment: 'integrations',
|
|
106
|
+
label: 'Integrations',
|
|
107
|
+
icon: 'plugLine',
|
|
108
|
+
order: 700
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'settings.events',
|
|
112
|
+
pathSegment: 'events',
|
|
113
|
+
label: 'Events',
|
|
114
|
+
icon: 'pulseLine',
|
|
115
|
+
order: 800
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/feature.ts"],"sourcesContent":["import {defineClientFeature} from '@shipfox/client-shell';\nimport type {IconName} from '@shipfox/react-ui/icon';\n\nexport const workspaceSettingsFeature = defineClientFeature({\n id: 'shipfox.workspace-settings',\n routes: [\n {\n path: '/workspaces/$wid/settings',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/index',\n },\n {\n path: '/workspaces/$wid/settings/members',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/members',\n },\n {\n path: '/workspaces/$wid/settings/runners',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/runners',\n },\n {\n path: '/workspaces/$wid/settings/provisioners',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/provisioners',\n },\n {\n path: '/workspaces/$wid/settings/agents',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/agents',\n },\n {\n path: '/workspaces/$wid/settings/secrets',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/secrets',\n },\n {\n path: '/workspaces/$wid/settings/variables',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/variables',\n },\n {\n path: '/workspaces/$wid/settings/integrations',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/integrations',\n },\n {\n path: '/workspaces/$wid/settings/events',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-workspace-settings/routes/events',\n },\n ],\n navigation: [\n {\n id: 'nav.settings',\n scope: 'workspace',\n label: 'Settings',\n to: '/workspaces/$wid/settings',\n order: 200,\n },\n ],\n settingsSections: [\n {\n id: 'settings.members',\n pathSegment: 'members',\n label: 'Members',\n icon: 'userLine' as IconName,\n order: 100,\n },\n {\n id: 'settings.runners',\n pathSegment: 'runners',\n label: 'Runners',\n icon: 'settings3Line' as IconName,\n order: 200,\n },\n {\n id: 'settings.provisioners',\n pathSegment: 'provisioners',\n label: 'Runner provisioners',\n icon: 'serverLine' as IconName,\n order: 300,\n },\n {\n id: 'settings.agents',\n pathSegment: 'agents',\n label: 'Agents',\n icon: 'robot2Line' as IconName,\n order: 400,\n },\n {\n id: 'settings.secrets',\n pathSegment: 'secrets',\n label: 'Secrets',\n icon: 'keyLine' as IconName,\n order: 500,\n },\n {\n id: 'settings.variables',\n pathSegment: 'variables',\n label: 'Variables',\n icon: 'bracesLine' as IconName,\n order: 600,\n },\n {\n id: 'settings.integrations',\n pathSegment: 'integrations',\n label: 'Integrations',\n icon: 'plugLine' as IconName,\n order: 700,\n },\n {\n id: 'settings.events',\n pathSegment: 'events',\n label: 'Events',\n icon: 'pulseLine' as IconName,\n order: 800,\n },\n ],\n});\n"],"names":["defineClientFeature","workspaceSettingsFeature","id","routes","path","parent","impl","navigation","scope","label","to","order","settingsSections","pathSegment","icon"],"mappings":"AAAA,SAAQA,mBAAmB,QAAO,wBAAwB;AAG1D,OAAO,MAAMC,2BAA2BD,oBAAoB;IAC1DE,IAAI;IACJC,QAAQ;QACN;YACEC,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;QACA;YACEF,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;KACD;IACDC,YAAY;QACV;YACEL,IAAI;YACJM,OAAO;YACPC,OAAO;YACPC,IAAI;YACJC,OAAO;QACT;KACD;IACDC,kBAAkB;QAChB;YACEV,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;QACA;YACET,IAAI;YACJW,aAAa;YACbJ,OAAO;YACPK,MAAM;YACNH,OAAO;QACT;KACD;AACH,GAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function useCreateInvitation(workspaceId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
2
|
+
id: string;
|
|
3
|
+
workspace_id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
expires_at: string;
|
|
6
|
+
accepted_at: string | null;
|
|
7
|
+
invited_by_user_id: string;
|
|
8
|
+
invited_by_display: string | null;
|
|
9
|
+
created_at: string;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
}, Error, {
|
|
12
|
+
email: string;
|
|
13
|
+
}, unknown>;
|
|
14
|
+
//# sourceMappingURL=create-invitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-invitation.d.ts","sourceRoot":"","sources":["../../../src/hooks/api/create-invitation.ts"],"names":[],"mappings":"AAYA,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;YAQtD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { apiRequest } from '@shipfox/client-api';
|
|
2
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { listInvitationsQueryKey } from './list-invitations.js';
|
|
4
|
+
async function createInvitation(params) {
|
|
5
|
+
return await apiRequest(`/workspaces/${params.workspaceId}/invitations`, {
|
|
6
|
+
method: 'POST',
|
|
7
|
+
body: params.body
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export function useCreateInvitation(workspaceId) {
|
|
11
|
+
const queryClient = useQueryClient();
|
|
12
|
+
return useMutation({
|
|
13
|
+
mutationFn: (body)=>createInvitation({
|
|
14
|
+
workspaceId,
|
|
15
|
+
body
|
|
16
|
+
}),
|
|
17
|
+
onSuccess: async ()=>{
|
|
18
|
+
await queryClient.invalidateQueries({
|
|
19
|
+
queryKey: listInvitationsQueryKey(workspaceId)
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=create-invitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/api/create-invitation.ts"],"sourcesContent":["import type {CreateInvitationBodyDto, InvitationDto} from '@shipfox/api-workspaces-dto';\nimport {apiRequest} from '@shipfox/client-api';\nimport {useMutation, useQueryClient} from '@tanstack/react-query';\nimport {listInvitationsQueryKey} from './list-invitations.js';\n\nasync function createInvitation(params: {workspaceId: string; body: CreateInvitationBodyDto}) {\n return await apiRequest<InvitationDto>(`/workspaces/${params.workspaceId}/invitations`, {\n method: 'POST',\n body: params.body,\n });\n}\n\nexport function useCreateInvitation(workspaceId: string) {\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: (body: CreateInvitationBodyDto) => createInvitation({workspaceId, body}),\n onSuccess: async () => {\n await queryClient.invalidateQueries({queryKey: listInvitationsQueryKey(workspaceId)});\n },\n });\n}\n"],"names":["apiRequest","useMutation","useQueryClient","listInvitationsQueryKey","createInvitation","params","workspaceId","method","body","useCreateInvitation","queryClient","mutationFn","onSuccess","invalidateQueries","queryKey"],"mappings":"AACA,SAAQA,UAAU,QAAO,sBAAsB;AAC/C,SAAQC,WAAW,EAAEC,cAAc,QAAO,wBAAwB;AAClE,SAAQC,uBAAuB,QAAO,wBAAwB;AAE9D,eAAeC,iBAAiBC,MAA4D;IAC1F,OAAO,MAAML,WAA0B,CAAC,YAAY,EAAEK,OAAOC,WAAW,CAAC,YAAY,CAAC,EAAE;QACtFC,QAAQ;QACRC,MAAMH,OAAOG,IAAI;IACnB;AACF;AAEA,OAAO,SAASC,oBAAoBH,WAAmB;IACrD,MAAMI,cAAcR;IACpB,OAAOD,YAAY;QACjBU,YAAY,CAACH,OAAkCJ,iBAAiB;gBAACE;gBAAaE;YAAI;QAClFI,WAAW;YACT,MAAMF,YAAYG,iBAAiB,CAAC;gBAACC,UAAUX,wBAAwBG;YAAY;QACrF;IACF;AACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const listInvitationsQueryKey: (workspaceId: string) => readonly ["workspaces", string, "invitations"];
|
|
2
|
+
export declare function useListInvitations(workspaceId: string): import("@tanstack/react-query").UseQueryResult<NoInfer<{
|
|
3
|
+
invitations: {
|
|
4
|
+
id: string;
|
|
5
|
+
workspace_id: string;
|
|
6
|
+
email: string;
|
|
7
|
+
expires_at: string;
|
|
8
|
+
accepted_at: string | null;
|
|
9
|
+
invited_by_user_id: string;
|
|
10
|
+
invited_by_display: string | null;
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
}[];
|
|
14
|
+
}>, Error>;
|
|
15
|
+
//# sourceMappingURL=list-invitations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-invitations.d.ts","sourceRoot":"","sources":["../../../src/hooks/api/list-invitations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,GAAI,aAAa,MAAM,mDACN,CAAC;AAMtD,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;WAKrD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { apiRequest } from '@shipfox/client-api';
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
export const listInvitationsQueryKey = (workspaceId)=>[
|
|
4
|
+
'workspaces',
|
|
5
|
+
workspaceId,
|
|
6
|
+
'invitations'
|
|
7
|
+
];
|
|
8
|
+
async function listInvitations(workspaceId) {
|
|
9
|
+
return await apiRequest(`/workspaces/${workspaceId}/invitations`);
|
|
10
|
+
}
|
|
11
|
+
export function useListInvitations(workspaceId) {
|
|
12
|
+
return useQuery({
|
|
13
|
+
queryKey: listInvitationsQueryKey(workspaceId),
|
|
14
|
+
queryFn: ()=>listInvitations(workspaceId)
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=list-invitations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/api/list-invitations.ts"],"sourcesContent":["import type {ListInvitationsResponseDto} from '@shipfox/api-workspaces-dto';\nimport {apiRequest} from '@shipfox/client-api';\nimport {useQuery} from '@tanstack/react-query';\n\nexport const listInvitationsQueryKey = (workspaceId: string) =>\n ['workspaces', workspaceId, 'invitations'] as const;\n\nasync function listInvitations(workspaceId: string): Promise<ListInvitationsResponseDto> {\n return await apiRequest<ListInvitationsResponseDto>(`/workspaces/${workspaceId}/invitations`);\n}\n\nexport function useListInvitations(workspaceId: string) {\n return useQuery({\n queryKey: listInvitationsQueryKey(workspaceId),\n queryFn: () => listInvitations(workspaceId),\n });\n}\n"],"names":["apiRequest","useQuery","listInvitationsQueryKey","workspaceId","listInvitations","useListInvitations","queryKey","queryFn"],"mappings":"AACA,SAAQA,UAAU,QAAO,sBAAsB;AAC/C,SAAQC,QAAQ,QAAO,wBAAwB;AAE/C,OAAO,MAAMC,0BAA0B,CAACC,cACtC;QAAC;QAAcA;QAAa;KAAc,CAAU;AAEtD,eAAeC,gBAAgBD,WAAmB;IAChD,OAAO,MAAMH,WAAuC,CAAC,YAAY,EAAEG,YAAY,YAAY,CAAC;AAC9F;AAEA,OAAO,SAASE,mBAAmBF,WAAmB;IACpD,OAAOF,SAAS;QACdK,UAAUJ,wBAAwBC;QAClCI,SAAS,IAAMH,gBAAgBD;IACjC;AACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const listMembersQueryKey: (workspaceId: string) => readonly ["workspaces", string, "members"];
|
|
2
|
+
export declare function useListMembers(workspaceId: string): import("@tanstack/react-query").UseQueryResult<NoInfer<{
|
|
3
|
+
members: {
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
user_email: string;
|
|
10
|
+
user_name: string | null;
|
|
11
|
+
}[];
|
|
12
|
+
}>, Error>;
|
|
13
|
+
//# sourceMappingURL=list-members.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-members.d.ts","sourceRoot":"","sources":["../../../src/hooks/api/list-members.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,GAAI,aAAa,MAAM,+CACN,CAAC;AAMlD,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;WAKjD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { apiRequest } from '@shipfox/client-api';
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
export const listMembersQueryKey = (workspaceId)=>[
|
|
4
|
+
'workspaces',
|
|
5
|
+
workspaceId,
|
|
6
|
+
'members'
|
|
7
|
+
];
|
|
8
|
+
async function listMembers(workspaceId) {
|
|
9
|
+
return await apiRequest(`/workspaces/${workspaceId}/members`);
|
|
10
|
+
}
|
|
11
|
+
export function useListMembers(workspaceId) {
|
|
12
|
+
return useQuery({
|
|
13
|
+
queryKey: listMembersQueryKey(workspaceId),
|
|
14
|
+
queryFn: ()=>listMembers(workspaceId)
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=list-members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/api/list-members.ts"],"sourcesContent":["import type {ListMembersResponseDto} from '@shipfox/api-workspaces-dto';\nimport {apiRequest} from '@shipfox/client-api';\nimport {useQuery} from '@tanstack/react-query';\n\nexport const listMembersQueryKey = (workspaceId: string) =>\n ['workspaces', workspaceId, 'members'] as const;\n\nasync function listMembers(workspaceId: string): Promise<ListMembersResponseDto> {\n return await apiRequest<ListMembersResponseDto>(`/workspaces/${workspaceId}/members`);\n}\n\nexport function useListMembers(workspaceId: string) {\n return useQuery({\n queryKey: listMembersQueryKey(workspaceId),\n queryFn: () => listMembers(workspaceId),\n });\n}\n"],"names":["apiRequest","useQuery","listMembersQueryKey","workspaceId","listMembers","useListMembers","queryKey","queryFn"],"mappings":"AACA,SAAQA,UAAU,QAAO,sBAAsB;AAC/C,SAAQC,QAAQ,QAAO,wBAAwB;AAE/C,OAAO,MAAMC,sBAAsB,CAACC,cAClC;QAAC;QAAcA;QAAa;KAAU,CAAU;AAElD,eAAeC,YAAYD,WAAmB;IAC5C,OAAO,MAAMH,WAAmC,CAAC,YAAY,EAAEG,YAAY,QAAQ,CAAC;AACtF;AAEA,OAAO,SAASE,eAAeF,WAAmB;IAChD,OAAOF,SAAS;QACdK,UAAUJ,oBAAoBC;QAC9BI,SAAS,IAAMH,YAAYD;IAC7B;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-member.d.ts","sourceRoot":"","sources":["../../../src/hooks/api/remove-member.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,mFAQlD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { apiRequest } from '@shipfox/client-api';
|
|
2
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { listMembersQueryKey } from './list-members.js';
|
|
4
|
+
async function removeMember(params) {
|
|
5
|
+
await apiRequest(`/workspaces/${params.workspaceId}/members/${params.userId}`, {
|
|
6
|
+
method: 'DELETE'
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export function useRemoveMember(workspaceId) {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation({
|
|
12
|
+
mutationFn: (userId)=>removeMember({
|
|
13
|
+
workspaceId,
|
|
14
|
+
userId
|
|
15
|
+
}),
|
|
16
|
+
onSuccess: async ()=>{
|
|
17
|
+
await queryClient.invalidateQueries({
|
|
18
|
+
queryKey: listMembersQueryKey(workspaceId)
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=remove-member.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/api/remove-member.ts"],"sourcesContent":["import {apiRequest} from '@shipfox/client-api';\nimport {useMutation, useQueryClient} from '@tanstack/react-query';\nimport {listMembersQueryKey} from './list-members.js';\n\nasync function removeMember(params: {workspaceId: string; userId: string}) {\n await apiRequest<void>(`/workspaces/${params.workspaceId}/members/${params.userId}`, {\n method: 'DELETE',\n });\n}\n\nexport function useRemoveMember(workspaceId: string) {\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: (userId: string) => removeMember({workspaceId, userId}),\n onSuccess: async () => {\n await queryClient.invalidateQueries({queryKey: listMembersQueryKey(workspaceId)});\n },\n });\n}\n"],"names":["apiRequest","useMutation","useQueryClient","listMembersQueryKey","removeMember","params","workspaceId","userId","method","useRemoveMember","queryClient","mutationFn","onSuccess","invalidateQueries","queryKey"],"mappings":"AAAA,SAAQA,UAAU,QAAO,sBAAsB;AAC/C,SAAQC,WAAW,EAAEC,cAAc,QAAO,wBAAwB;AAClE,SAAQC,mBAAmB,QAAO,oBAAoB;AAEtD,eAAeC,aAAaC,MAA6C;IACvE,MAAML,WAAiB,CAAC,YAAY,EAAEK,OAAOC,WAAW,CAAC,SAAS,EAAED,OAAOE,MAAM,EAAE,EAAE;QACnFC,QAAQ;IACV;AACF;AAEA,OAAO,SAASC,gBAAgBH,WAAmB;IACjD,MAAMI,cAAcR;IACpB,OAAOD,YAAY;QACjBU,YAAY,CAACJ,SAAmBH,aAAa;gBAACE;gBAAaC;YAAM;QACjEK,WAAW;YACT,MAAMF,YAAYG,iBAAiB,CAAC;gBAACC,UAAUX,oBAAoBG;YAAY;QACjF;IACF;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoke-invitation.d.ts","sourceRoot":"","sources":["../../../src/hooks/api/revoke-invitation.ts"],"names":[],"mappings":"AAUA,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,mFAQtD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { apiRequest } from '@shipfox/client-api';
|
|
2
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { listInvitationsQueryKey } from './list-invitations.js';
|
|
4
|
+
async function revokeInvitation(params) {
|
|
5
|
+
await apiRequest(`/workspaces/${params.workspaceId}/invitations/${params.invitationId}`, {
|
|
6
|
+
method: 'DELETE'
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export function useRevokeInvitation(workspaceId) {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation({
|
|
12
|
+
mutationFn: (invitationId)=>revokeInvitation({
|
|
13
|
+
workspaceId,
|
|
14
|
+
invitationId
|
|
15
|
+
}),
|
|
16
|
+
onSuccess: async ()=>{
|
|
17
|
+
await queryClient.invalidateQueries({
|
|
18
|
+
queryKey: listInvitationsQueryKey(workspaceId)
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=revoke-invitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/hooks/api/revoke-invitation.ts"],"sourcesContent":["import {apiRequest} from '@shipfox/client-api';\nimport {useMutation, useQueryClient} from '@tanstack/react-query';\nimport {listInvitationsQueryKey} from './list-invitations.js';\n\nasync function revokeInvitation(params: {workspaceId: string; invitationId: string}) {\n await apiRequest<void>(`/workspaces/${params.workspaceId}/invitations/${params.invitationId}`, {\n method: 'DELETE',\n });\n}\n\nexport function useRevokeInvitation(workspaceId: string) {\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: (invitationId: string) => revokeInvitation({workspaceId, invitationId}),\n onSuccess: async () => {\n await queryClient.invalidateQueries({queryKey: listInvitationsQueryKey(workspaceId)});\n },\n });\n}\n"],"names":["apiRequest","useMutation","useQueryClient","listInvitationsQueryKey","revokeInvitation","params","workspaceId","invitationId","method","useRevokeInvitation","queryClient","mutationFn","onSuccess","invalidateQueries","queryKey"],"mappings":"AAAA,SAAQA,UAAU,QAAO,sBAAsB;AAC/C,SAAQC,WAAW,EAAEC,cAAc,QAAO,wBAAwB;AAClE,SAAQC,uBAAuB,QAAO,wBAAwB;AAE9D,eAAeC,iBAAiBC,MAAmD;IACjF,MAAML,WAAiB,CAAC,YAAY,EAAEK,OAAOC,WAAW,CAAC,aAAa,EAAED,OAAOE,YAAY,EAAE,EAAE;QAC7FC,QAAQ;IACV;AACF;AAEA,OAAO,SAASC,oBAAoBH,WAAmB;IACrD,MAAMI,cAAcR;IACpB,OAAOD,YAAY;QACjBU,YAAY,CAACJ,eAAyBH,iBAAiB;gBAACE;gBAAaC;YAAY;QACjFK,WAAW;YACT,MAAMF,YAAYG,iBAAiB,CAAC;gBAACC,UAAUX,wBAAwBG;YAAY;QACrF;IACF;AACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './pages/events-settings-page.js';
|
|
2
|
+
export * from './pages/integrations-settings-page.js';
|
|
3
|
+
export * from './pages/members-settings-page.js';
|
|
4
|
+
export * from './pages/model-providers-settings-page.js';
|
|
5
|
+
export * from './pages/provisioners-settings-page.js';
|
|
6
|
+
export * from './pages/runners-settings-page.js';
|
|
7
|
+
export * from './pages/secrets-settings-page.js';
|
|
8
|
+
export * from './pages/variables-settings-page.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './pages/events-settings-page.js';
|
|
2
|
+
export * from './pages/integrations-settings-page.js';
|
|
3
|
+
export * from './pages/members-settings-page.js';
|
|
4
|
+
export * from './pages/model-providers-settings-page.js';
|
|
5
|
+
export * from './pages/provisioners-settings-page.js';
|
|
6
|
+
export * from './pages/runners-settings-page.js';
|
|
7
|
+
export * from './pages/secrets-settings-page.js';
|
|
8
|
+
export * from './pages/variables-settings-page.js';
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './pages/events-settings-page.js';\nexport * from './pages/integrations-settings-page.js';\nexport * from './pages/members-settings-page.js';\nexport * from './pages/model-providers-settings-page.js';\nexport * from './pages/provisioners-settings-page.js';\nexport * from './pages/runners-settings-page.js';\nexport * from './pages/secrets-settings-page.js';\nexport * from './pages/variables-settings-page.js';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC;AAChD,cAAc,wCAAwC;AACtD,cAAc,mCAAmC;AACjD,cAAc,2CAA2C;AACzD,cAAc,wCAAwC;AACtD,cAAc,mCAAmC;AACjD,cAAc,mCAAmC;AACjD,cAAc,qCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-settings-page.d.ts","sourceRoot":"","sources":["../../src/pages/events-settings-page.tsx"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,gCAkBjC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { EventsPage } from '@shipfox/client-triggers';
|
|
3
|
+
import { getRouteApi } from '@tanstack/react-router';
|
|
4
|
+
import { WorkspaceSettingsShell } from '#components/workspace-settings-shell.js';
|
|
5
|
+
const routeApi = getRouteApi('/workspaces/$wid/_layout/settings/events');
|
|
6
|
+
export function EventsSettingsPage() {
|
|
7
|
+
const search = routeApi.useSearch();
|
|
8
|
+
const navigate = routeApi.useNavigate();
|
|
9
|
+
// Merge the patch into the current URL search. Undefined values drop their key, so
|
|
10
|
+
// clearing a filter removes it from the URL. `replace` keeps filter tweaks off the
|
|
11
|
+
// back stack.
|
|
12
|
+
const onFiltersChange = (patch)=>{
|
|
13
|
+
void navigate({
|
|
14
|
+
search: {
|
|
15
|
+
...search,
|
|
16
|
+
...patch
|
|
17
|
+
},
|
|
18
|
+
replace: true
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
return /*#__PURE__*/ _jsx(WorkspaceSettingsShell, {
|
|
22
|
+
children: (workspace)=>/*#__PURE__*/ _jsx(EventsPage, {
|
|
23
|
+
workspaceId: workspace.id,
|
|
24
|
+
filters: search,
|
|
25
|
+
onFiltersChange: onFiltersChange
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=events-settings-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/pages/events-settings-page.tsx"],"sourcesContent":["import {EventsPage, type TriggerEventFilters} from '@shipfox/client-triggers';\nimport {getRouteApi} from '@tanstack/react-router';\nimport {WorkspaceSettingsShell} from '#components/workspace-settings-shell.js';\n\nconst routeApi = getRouteApi('/workspaces/$wid/_layout/settings/events');\n\nexport function EventsSettingsPage() {\n const search = routeApi.useSearch();\n const navigate = routeApi.useNavigate();\n\n // Merge the patch into the current URL search. Undefined values drop their key, so\n // clearing a filter removes it from the URL. `replace` keeps filter tweaks off the\n // back stack.\n const onFiltersChange = (patch: Partial<TriggerEventFilters>) => {\n void navigate({search: {...search, ...patch}, replace: true});\n };\n\n return (\n <WorkspaceSettingsShell>\n {(workspace) => (\n <EventsPage workspaceId={workspace.id} filters={search} onFiltersChange={onFiltersChange} />\n )}\n </WorkspaceSettingsShell>\n );\n}\n"],"names":["EventsPage","getRouteApi","WorkspaceSettingsShell","routeApi","EventsSettingsPage","search","useSearch","navigate","useNavigate","onFiltersChange","patch","replace","workspace","workspaceId","id","filters"],"mappings":";AAAA,SAAQA,UAAU,QAAiC,2BAA2B;AAC9E,SAAQC,WAAW,QAAO,yBAAyB;AACnD,SAAQC,sBAAsB,QAAO,0CAA0C;AAE/E,MAAMC,WAAWF,YAAY;AAE7B,OAAO,SAASG;IACd,MAAMC,SAASF,SAASG,SAAS;IACjC,MAAMC,WAAWJ,SAASK,WAAW;IAErC,mFAAmF;IACnF,mFAAmF;IACnF,cAAc;IACd,MAAMC,kBAAkB,CAACC;QACvB,KAAKH,SAAS;YAACF,QAAQ;gBAAC,GAAGA,MAAM;gBAAE,GAAGK,KAAK;YAAA;YAAGC,SAAS;QAAI;IAC7D;IAEA,qBACE,KAACT;kBACE,CAACU,0BACA,KAACZ;gBAAWa,aAAaD,UAAUE,EAAE;gBAAEC,SAASV;gBAAQI,iBAAiBA;;;AAIjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-settings-page.d.ts","sourceRoot":"","sources":["../../src/pages/integrations-settings-page.tsx"],"names":[],"mappings":"AAGA,wBAAgB,wBAAwB,gCAEvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { IntegrationGallery } from '@shipfox/client-integrations';
|
|
3
|
+
import { WorkspaceSettingsShell } from '#components/workspace-settings-shell.js';
|
|
4
|
+
export function IntegrationsSettingsPage() {
|
|
5
|
+
return /*#__PURE__*/ _jsx(WorkspaceSettingsShell, {
|
|
6
|
+
children: ()=>/*#__PURE__*/ _jsx(IntegrationGallery, {})
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=integrations-settings-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/pages/integrations-settings-page.tsx"],"sourcesContent":["import {IntegrationGallery} from '@shipfox/client-integrations';\nimport {WorkspaceSettingsShell} from '#components/workspace-settings-shell.js';\n\nexport function IntegrationsSettingsPage() {\n return <WorkspaceSettingsShell>{() => <IntegrationGallery />}</WorkspaceSettingsShell>;\n}\n"],"names":["IntegrationGallery","WorkspaceSettingsShell","IntegrationsSettingsPage"],"mappings":";AAAA,SAAQA,kBAAkB,QAAO,+BAA+B;AAChE,SAAQC,sBAAsB,QAAO,0CAA0C;AAE/E,OAAO,SAASC;IACd,qBAAO,KAACD;kBAAwB,kBAAM,KAACD;;AACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"members-settings-page.d.ts","sourceRoot":"","sources":["../../src/pages/members-settings-page.tsx"],"names":[],"mappings":"AAGA,wBAAgB,mBAAmB,gCAalC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { WorkspaceMembersSettingsSection } from '#components/members/workspace-members-section.js';
|
|
3
|
+
import { WorkspaceSettingsShell } from '#components/workspace-settings-shell.js';
|
|
4
|
+
export function MembersSettingsPage() {
|
|
5
|
+
return /*#__PURE__*/ _jsx(WorkspaceSettingsShell, {
|
|
6
|
+
children: (workspace)=>/*#__PURE__*/ _jsx("div", {
|
|
7
|
+
children: /*#__PURE__*/ _jsx(WorkspaceMembersSettingsSection, {
|
|
8
|
+
workspaceId: workspace.id,
|
|
9
|
+
workspaceName: workspace.name
|
|
10
|
+
})
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=members-settings-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/pages/members-settings-page.tsx"],"sourcesContent":["import {WorkspaceMembersSettingsSection} from '#components/members/workspace-members-section.js';\nimport {WorkspaceSettingsShell} from '#components/workspace-settings-shell.js';\n\nexport function MembersSettingsPage() {\n return (\n <WorkspaceSettingsShell>\n {(workspace) => (\n <div>\n <WorkspaceMembersSettingsSection\n workspaceId={workspace.id}\n workspaceName={workspace.name}\n />\n </div>\n )}\n </WorkspaceSettingsShell>\n );\n}\n"],"names":["WorkspaceMembersSettingsSection","WorkspaceSettingsShell","MembersSettingsPage","workspace","div","workspaceId","id","workspaceName","name"],"mappings":";AAAA,SAAQA,+BAA+B,QAAO,mDAAmD;AACjG,SAAQC,sBAAsB,QAAO,0CAA0C;AAE/E,OAAO,SAASC;IACd,qBACE,KAACD;kBACE,CAACE,0BACA,KAACC;0BACC,cAAA,KAACJ;oBACCK,aAAaF,UAAUG,EAAE;oBACzBC,eAAeJ,UAAUK,IAAI;;;;AAMzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-providers-settings-page.d.ts","sourceRoot":"","sources":["../../src/pages/model-providers-settings-page.tsx"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,gCAWzC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { WorkspaceHarnessesSection, WorkspaceModelProvidersSection } from '@shipfox/client-agent';
|
|
3
|
+
import { WorkspaceSettingsShell } from '#components/workspace-settings-shell.js';
|
|
4
|
+
export function ModelProvidersSettingsPage() {
|
|
5
|
+
return /*#__PURE__*/ _jsx(WorkspaceSettingsShell, {
|
|
6
|
+
children: (workspace)=>/*#__PURE__*/ _jsxs("div", {
|
|
7
|
+
className: "flex flex-col gap-32",
|
|
8
|
+
children: [
|
|
9
|
+
/*#__PURE__*/ _jsx(WorkspaceHarnessesSection, {
|
|
10
|
+
workspaceId: workspace.id
|
|
11
|
+
}),
|
|
12
|
+
/*#__PURE__*/ _jsx(WorkspaceModelProvidersSection, {
|
|
13
|
+
workspaceId: workspace.id
|
|
14
|
+
})
|
|
15
|
+
]
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=model-providers-settings-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/pages/model-providers-settings-page.tsx"],"sourcesContent":["import {WorkspaceHarnessesSection, WorkspaceModelProvidersSection} from '@shipfox/client-agent';\nimport {WorkspaceSettingsShell} from '#components/workspace-settings-shell.js';\n\nexport function ModelProvidersSettingsPage() {\n return (\n <WorkspaceSettingsShell>\n {(workspace) => (\n <div className=\"flex flex-col gap-32\">\n <WorkspaceHarnessesSection workspaceId={workspace.id} />\n <WorkspaceModelProvidersSection workspaceId={workspace.id} />\n </div>\n )}\n </WorkspaceSettingsShell>\n );\n}\n"],"names":["WorkspaceHarnessesSection","WorkspaceModelProvidersSection","WorkspaceSettingsShell","ModelProvidersSettingsPage","workspace","div","className","workspaceId","id"],"mappings":";AAAA,SAAQA,yBAAyB,EAAEC,8BAA8B,QAAO,wBAAwB;AAChG,SAAQC,sBAAsB,QAAO,0CAA0C;AAE/E,OAAO,SAASC;IACd,qBACE,KAACD;kBACE,CAACE,0BACA,MAACC;gBAAIC,WAAU;;kCACb,KAACN;wBAA0BO,aAAaH,UAAUI,EAAE;;kCACpD,KAACP;wBAA+BM,aAAaH,UAAUI,EAAE;;;;;AAKnE"}
|