flowstudio 0.0.14 → 0.0.15
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/dist/ai_creator.d.ts +1 -0
- package/dist/ai_creator.js +140 -0
- package/dist/ai_creator.js.map +1 -0
- package/dist/app_analytics.d.ts +1 -0
- package/dist/app_analytics.js +76 -0
- package/dist/app_analytics.js.map +1 -0
- package/dist/app_details.d.ts +1 -0
- package/dist/app_details.js +84 -0
- package/dist/app_details.js.map +1 -0
- package/dist/app_layout.js +11 -0
- package/dist/app_layout.js.map +1 -0
- package/dist/app_settings.d.ts +1 -0
- package/dist/app_settings.js +15 -0
- package/dist/app_settings.js.map +1 -0
- package/dist/components/combo_box/index.d.ts +1 -0
- package/dist/components/combo_box/index.js +118 -33
- package/dist/components/combo_box/index.js.map +1 -1
- package/dist/components/date_picker/index.d.ts +1 -0
- package/dist/components/date_picker/index.js +46 -0
- package/dist/components/date_picker/index.js.map +1 -0
- package/dist/components/gtable.d.ts +15 -0
- package/dist/components/gtable.js +122 -0
- package/dist/components/gtable.js.map +1 -0
- package/dist/components/mention_input/index.d.ts +1 -0
- package/dist/components/mention_input/index.js +125 -0
- package/dist/components/mention_input/index.js.map +1 -0
- package/dist/components/paginator_table.d.ts +7 -0
- package/dist/components/paginator_table.js +38 -0
- package/dist/components/paginator_table.js.map +1 -0
- package/dist/components/sheet/index.d.ts +1 -1
- package/dist/components/sheet/index.js +3 -3
- package/dist/components/sheet/index.js.map +1 -1
- package/dist/context.d.ts +1 -0
- package/dist/context.js +7 -0
- package/dist/context.js.map +1 -0
- package/dist/envs.d.ts +2 -0
- package/dist/envs.js +135 -0
- package/dist/envs.js.map +1 -0
- package/dist/functions.d.ts +5 -0
- package/dist/functions.js +204 -0
- package/dist/functions.js.map +1 -0
- package/dist/getcode.d.ts +1 -0
- package/dist/getcode.js +8 -0
- package/dist/getcode.js.map +1 -0
- package/dist/home.d.ts +1 -0
- package/dist/home.js +47 -0
- package/dist/home.js.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +152 -3
- package/dist/index.js.map +1 -1
- package/dist/new_project.d.ts +1 -0
- package/dist/new_project.js +101 -0
- package/dist/new_project.js.map +1 -0
- package/dist/node.d.ts +3 -0
- package/dist/node.js +219 -0
- package/dist/node.js.map +1 -0
- package/dist/project_widget.d.ts +1 -0
- package/dist/project_widget.js +23 -0
- package/dist/project_widget.js.map +1 -0
- package/dist/simulator.d.ts +1 -0
- package/dist/simulator.js +73 -0
- package/dist/simulator.js.map +1 -0
- package/dist/studio_pane.d.ts +1 -0
- package/dist/studio_pane.js +309 -0
- package/dist/studio_pane.js.map +1 -0
- package/dist/top_center_panel.d.ts +1 -0
- package/dist/top_center_panel.js +9 -0
- package/dist/top_center_panel.js.map +1 -0
- package/dist/top_left_panel.d.ts +1 -0
- package/dist/top_left_panel.js +46 -0
- package/dist/top_left_panel.js.map +1 -0
- package/dist/top_right_panel.d.ts +1 -0
- package/dist/top_right_panel.js +80 -0
- package/dist/top_right_panel.js.map +1 -0
- package/dist/triggers.d.ts +2 -0
- package/dist/triggers.js +156 -0
- package/dist/triggers.js.map +1 -0
- package/dist/zustand/store.d.ts +465 -285
- package/dist/zustand/store.js +33 -37
- package/dist/zustand/store.js.map +1 -1
- package/package.json +33 -12
- package/src/components/date_picker/style.css +204 -0
- package/src/components/sheet/style.css +5 -5
- package/src/studio.css +19 -0
- package/dist/components/app_layout.js +0 -14
- package/dist/components/app_layout.js.map +0 -1
- package/dist/components/app_settings/data_sources.d.ts +0 -1
- package/dist/components/app_settings/data_sources.js +0 -57
- package/dist/components/app_settings/data_sources.js.map +0 -1
- package/dist/components/app_settings/deploy.d.ts +0 -1
- package/dist/components/app_settings/deploy.js +0 -14
- package/dist/components/app_settings/deploy.js.map +0 -1
- package/dist/components/app_settings/index.d.ts +0 -1
- package/dist/components/app_settings/index.js +0 -53
- package/dist/components/app_settings/index.js.map +0 -1
- package/dist/components/app_settings/service_providers.d.ts +0 -1
- package/dist/components/app_settings/service_providers.js +0 -17
- package/dist/components/app_settings/service_providers.js.map +0 -1
- package/dist/components/app_settings/simulator.d.ts +0 -1
- package/dist/components/app_settings/simulator.js +0 -34
- package/dist/components/app_settings/simulator.js.map +0 -1
- package/dist/components/context.d.ts +0 -1
- package/dist/components/context.js +0 -19
- package/dist/components/context.js.map +0 -1
- package/dist/components/dock_panel.d.ts +0 -2
- package/dist/components/dock_panel.js +0 -46
- package/dist/components/dock_panel.js.map +0 -1
- package/dist/components/end.d.ts +0 -1
- package/dist/components/end.js +0 -6
- package/dist/components/end.js.map +0 -1
- package/dist/components/input.d.ts +0 -1
- package/dist/components/input.js +0 -11
- package/dist/components/input.js.map +0 -1
- package/dist/components/normal.d.ts +0 -1
- package/dist/components/normal.js +0 -6
- package/dist/components/normal.js.map +0 -1
- package/dist/components/start.d.ts +0 -1
- package/dist/components/start.js +0 -13
- package/dist/components/start.js.map +0 -1
- package/dist/components/studio/index.d.ts +0 -1
- package/dist/components/studio/index.js +0 -78
- package/dist/components/studio/index.js.map +0 -1
- package/dist/components/xnode.d.ts +0 -2
- package/dist/components/xnode.js +0 -28
- package/dist/components/xnode.js.map +0 -1
- package/dist/service_providers.json +0 -74
- package/dist/styles/sheet.css +0 -155
- package/src/styles/combo_box.css +0 -10
- package/src/styles/sheet.css +0 -155
- /package/dist/{components/app_layout.d.ts → app_layout.d.ts} +0 -0
- /package/{dist/styles/combo_box.css → src/components/combo_box/style.css} +0 -0
package/dist/zustand/store.js
CHANGED
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
import { create } from 'zustand';
|
|
2
2
|
import { devtools, persist } from 'zustand/middleware';
|
|
3
3
|
const configStore = (set) => ({
|
|
4
|
+
asBusiness: false,
|
|
5
|
+
toggleAsBusiness: () => set((state) => ({ asBusiness: !state.asBusiness })),
|
|
6
|
+
login_pane_visibility: false,
|
|
7
|
+
set_login_pane_visibility: (state) => set(() => ({ login_pane_visibility: state })),
|
|
8
|
+
drawer_visibility: false,
|
|
9
|
+
set_drawer_visibility: (state) => set(() => ({ drawer_visibility: state })),
|
|
10
|
+
user_country_data: {},
|
|
11
|
+
set_user_country_data: (payload) => set(() => ({ user_country_data: payload })),
|
|
12
|
+
payment_open: false,
|
|
13
|
+
set_payment_open: (state) => set(() => ({ payment_open: state })),
|
|
14
|
+
payment_pane_status: false,
|
|
15
|
+
open_payment_pane: () => set(() => ({ payment_pane_status: true })),
|
|
16
|
+
close_payment_pane: () => set(() => ({ payment_pane_status: false })),
|
|
17
|
+
payment_callback: '',
|
|
18
|
+
set_payment_callback: (callback) => set(() => ({ payment_callback: callback })),
|
|
19
|
+
payment_widget_visibility: false,
|
|
20
|
+
set_payment_widget_visibility: (state) => set(() => ({ payment_widget_visibility: state })),
|
|
21
|
+
tutorial_watch_pane: false,
|
|
22
|
+
set_tutorial_watch_pane: (bool) => set(() => ({ tutorial_watch_pane: bool })),
|
|
4
23
|
pageTitle: ``,
|
|
5
24
|
setPageTitle: (title) => set(() => ({ pageTitle: `${title}` })),
|
|
6
|
-
appTheme: `
|
|
25
|
+
appTheme: `inherit`,
|
|
7
26
|
setAppTheme: (theme) => set(() => ({ appTheme: `${theme}` })),
|
|
27
|
+
sideBarCollapse: false,
|
|
28
|
+
setSideBarCollapse: (collapse) => set(() => ({ sideBarCollapse: collapse })),
|
|
29
|
+
openedProjects: [],
|
|
30
|
+
setOpenedProjects: (projects) => set(() => ({ openedProjects: projects })),
|
|
31
|
+
activeTab: `home`,
|
|
32
|
+
setActiveTab: (identifier) => set(() => ({ activeTab: `${identifier}` })),
|
|
33
|
+
openSettings: false,
|
|
34
|
+
setOpenSettings: (state) => set(() => ({ openSettings: state })),
|
|
35
|
+
openReports: false,
|
|
36
|
+
setOpenReports: (state) => set(() => ({ openReports: state })),
|
|
8
37
|
stateType: `design`,
|
|
9
38
|
setStateType: (state) => set(() => ({ stateType: `${state}` })),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
contextMenuPosition: { x: 0, y: 0 },
|
|
13
|
-
setContextMenuPosition: () => set((state) => ({ contextMenuPosition: state })),
|
|
14
|
-
nodesData: [
|
|
15
|
-
{ id: 'node-1', type: 'startNode', dragHandle: '.drag-handle', position: { x: 100, y: 200 }, data: { id: 1, type: "start", value: 123, message: 'Welcome [Michelle] to Grow For Me:', inputs: [{ id: 1, type: 'choice', text: 'I want to Fund/Sponsor' }, { id: 2, type: 'choice', text: 'Check Fund Updates' }, { id: 3, type: 'choice', text: 'I want to Buy' }, { id: 4, type: 'choice', text: 'I want to Sell' }, { id: 5, type: 'choice', text: 'I am a Farmer' }] } },
|
|
16
|
-
{ id: 'node-2', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 450, y: 50 }, data: { id: 2, type: "normal", value: 321, message: 'Will you like to Sponsor/Fund a Campaign?', inputs: [{ id: 1, type: 'choice', text: 'Yes' }, { id: 2, type: 'choice', text: 'No' }] } },
|
|
17
|
-
{ id: 'node-3', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 500, y: 500 }, data: { id: 3, type: "normal", value: 321, message: 'Will you like to check your Fund Updates?', inputs: [{ id: 1, type: 'choice', text: 'Yes' }, { id: 2, type: 'choice', text: 'No' }] } },
|
|
18
|
-
{ id: 'node-4', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 800, y: 60 }, data: { id: 4, type: "normal", value: 321, message: 'How many units will you like to fund?', inputs: [{ id: 1, type: 'user_input', text: '', inputType: 'number' }] } },
|
|
19
|
-
{ id: 'node-5', type: 'normalNode', dragHandle: '.drag-handle', position: { x: 830, y: 370 }, data: { id: 5, type: "normal", value: 3281, message: 'Is that all you be doing for now?', inputs: [{ id: 1, type: 'choice', text: 'Yes for now' }, { id: 2, type: 'choice', text: 'No, I want to see more' }] } },
|
|
20
|
-
{ id: 'node-6', type: 'endNode', dragHandle: '.drag-handle', position: { x: 1500, y: 200 }, data: { id: 6, type: "end", value: 3121, message: 'Thank you for trying our service.' } },
|
|
21
|
-
{ id: 'node-7', type: 'endNode', dragHandle: '.drag-handle', position: { x: 1300, y: 600 }, data: { id: 7, type: "end", value: 3122, message: 'We will surely get back to you with more information' } },
|
|
22
|
-
],
|
|
23
|
-
setNodesData: (payload) => set((state) => ({ ...state, nodesData: payload })),
|
|
24
|
-
// edgesData: [],
|
|
25
|
-
edgesData: [
|
|
26
|
-
{ id: 'e1-1', source: 'node-1', sourceHandle: '1', target: 'node-2', type: 'smoothstep', animated: false },
|
|
27
|
-
{ id: 'e1-2', source: 'node-1', sourceHandle: '2', target: 'node-3', type: 'smoothstep', animated: true },
|
|
28
|
-
{ id: 'e1-3', source: 'node-2', sourceHandle: '1', target: 'node-4', type: 'smoothstep', animated: false },
|
|
29
|
-
{ id: 'e1-4', source: 'node-3', sourceHandle: '1', target: 'node-5', type: 'smoothstep', animated: true },
|
|
30
|
-
{ id: 'e1-5', source: 'node-3', sourceHandle: '2', target: 'node-6', type: 'smoothstep', animated: false },
|
|
31
|
-
{ id: 'e1-6', source: 'node-4', sourceHandle: '1', target: 'node-6', type: 'smoothstep', animated: false },
|
|
32
|
-
{ id: 'e1-7', source: 'node-5', sourceHandle: '1', target: 'node-6', type: 'smoothstep', animated: false },
|
|
33
|
-
{ id: 'e1-8', source: 'node-5', sourceHandle: '2', target: 'node-7', type: 'smoothstep', animated: true },
|
|
34
|
-
],
|
|
35
|
-
setEdgesData: (payload) => set((state) => ({ ...state, edgesData: payload })),
|
|
36
|
-
updateEdgesAnimated: () => set((state) => ({
|
|
37
|
-
edgesData: state.edgesData.map((edge) => ({
|
|
38
|
-
...edge,
|
|
39
|
-
animated: state.stateType === 'design' ? false : true,
|
|
40
|
-
}))
|
|
41
|
-
})),
|
|
39
|
+
openNewProject: false,
|
|
40
|
+
setOpenNewProject: (state) => set(() => ({ openNewProject: state })),
|
|
42
41
|
});
|
|
43
42
|
// Apply middlewares (devtools and persist)
|
|
44
|
-
export const useConfigStore = create(devtools(persist(configStore, { name: '
|
|
45
|
-
// configStore = devtools(configStore);
|
|
46
|
-
// configStore = persist(configStore, { name: 'uxxd_config' });
|
|
47
|
-
// export const useConfigStore = create(configStore)
|
|
43
|
+
export const useConfigStore = create(devtools(persist(configStore, { name: 'flowstudio_config' })));
|
|
48
44
|
//# sourceMappingURL=store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/zustand/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/zustand/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAE,EAAE,CAAC,CAAC;IAC/B,UAAU,EAAE,KAAK;IACjB,gBAAgB,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;IAEhF,qBAAqB,EAAE,KAAK;IAC5B,yBAAyB,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,CAAC;IAExF,iBAAiB,EAAE,KAAK;IACxB,qBAAqB,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC;IAEhF,iBAAiB,EAAE,EAAS;IAC5B,qBAAqB,EAAE,CAAC,OAAY,EAAE,EAAE,CAAC,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M,cAAc,GAAG,MAAM,CAChC,QAAQ,CACJ,OAAO,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CACtD,CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowstudio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enterprise Flow Designer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,28 +15,49 @@
|
|
|
15
15
|
"clean": "rm -rf dist"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"react": "latest",
|
|
19
|
+
"react-dom": "latest"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
18
22
|
"@hookform/resolvers": "latest",
|
|
19
|
-
"@radix-ui/react-collapsible": "
|
|
23
|
+
"@radix-ui/react-collapsible": "latest",
|
|
20
24
|
"@radix-ui/react-form": "latest",
|
|
21
25
|
"@radix-ui/react-icons": "latest",
|
|
22
26
|
"@radix-ui/themes": "latest",
|
|
23
27
|
"@tanstack/react-query": "latest",
|
|
28
|
+
"@types/node": "latest",
|
|
29
|
+
"@types/react": "latest",
|
|
30
|
+
"@types/react-table": "latest",
|
|
24
31
|
"@xyflow/react": "latest",
|
|
32
|
+
"ace-builds": "latest",
|
|
33
|
+
"autoprefixer": "latest",
|
|
34
|
+
"countries-geo": "^0.0.1",
|
|
25
35
|
"html-react-parser": "^5.2.2",
|
|
36
|
+
"jwt-decode": "latest",
|
|
37
|
+
"lodash": "latest",
|
|
26
38
|
"lucide-react": "latest",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
39
|
+
"moment": "latest",
|
|
40
|
+
"next-auth": "5.0.0-beta.25",
|
|
41
|
+
"next-intl": "latest",
|
|
42
|
+
"next-pwa": "latest",
|
|
43
|
+
"next-view-transitions": "latest",
|
|
44
|
+
"prismjs": "latest",
|
|
45
|
+
"rc-mentions": "^2.20.0",
|
|
46
|
+
"react-ace": "latest",
|
|
47
|
+
"react-day-picker": "latest",
|
|
29
48
|
"react-hook-form": "latest",
|
|
30
49
|
"react-icons": "latest",
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
50
|
+
"react-mention": "^1.1.2",
|
|
51
|
+
"react-simple-code-editor": "latest",
|
|
52
|
+
"framer-motion": "latest",
|
|
53
|
+
"usehooks-ts": "latest",
|
|
54
|
+
"react-table": "latest",
|
|
55
|
+
"react-table-sticky": "latest",
|
|
56
|
+
"react-world-flags": "^1.6.0",
|
|
57
|
+
"sonner": "latest",
|
|
39
58
|
"typescript": "latest",
|
|
59
|
+
"uuid": "latest",
|
|
60
|
+
"yup": "latest",
|
|
40
61
|
"zustand": "latest"
|
|
41
62
|
},
|
|
42
63
|
"files": [
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
.rdp-root {
|
|
2
|
+
--rdp-accent-color: teal; /* The accent color used for selected days and UI elements. */
|
|
3
|
+
--rdp-accent-background-color: #ffffff; /* The accent background color used for selected days and UI elements. */
|
|
4
|
+
|
|
5
|
+
--rdp-day-height: 2.5rem; /* The height of the day cells. */
|
|
6
|
+
--rdp-day-width: 2.5rem; /* The width of the day cells. */
|
|
7
|
+
|
|
8
|
+
--rdp-day_button-border-radius: 10%; /* The border radius of the day cells. */
|
|
9
|
+
--rdp-day_button-border: 4px solid transparent; /* The border of the day cells. */
|
|
10
|
+
--rdp-day_button-height: var(
|
|
11
|
+
--rdp-day-height
|
|
12
|
+
); /* The height of the day cells. */
|
|
13
|
+
--rdp-day_button-width: var(
|
|
14
|
+
--rdp-day-width
|
|
15
|
+
); /* The width of the day cells. */
|
|
16
|
+
|
|
17
|
+
--rdp-selected-border: 1px solid var(--rdp-accent-color); /* The border of the selected days. */
|
|
18
|
+
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
|
|
19
|
+
--rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
|
|
20
|
+
--rdp-today-color: var(
|
|
21
|
+
--rdp-accent-color
|
|
22
|
+
); /* The color of the today's date. */
|
|
23
|
+
|
|
24
|
+
--rdp-dropdown-gap: 1rem; /* The gap between the dropdowns used in the month captons. */
|
|
25
|
+
|
|
26
|
+
--rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
|
|
27
|
+
|
|
28
|
+
--rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
|
|
29
|
+
--rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
|
|
30
|
+
--rdp-nav_button-width: 2.75rem; /* The width of the navigation buttons. */
|
|
31
|
+
--rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
|
|
32
|
+
|
|
33
|
+
--rdp-range_middle-background-color: var(
|
|
34
|
+
--rdp-accent-background-color
|
|
35
|
+
); /* The color of the background for days in the middle of a range. */
|
|
36
|
+
--rdp-range_middle-foreground-color: white; /* The foregraound color for days in the middle of a range. */
|
|
37
|
+
--rdp-range_middle-color: inherit; /* The color of the range text. */
|
|
38
|
+
|
|
39
|
+
--rdp-range_start-color: white; /* The color of the range text. */
|
|
40
|
+
--rdp-range_start-background: linear-gradient(
|
|
41
|
+
var(--rdp-gradient-direction),
|
|
42
|
+
transparent 50%,
|
|
43
|
+
var(--rdp-range_middle-background-color) 50%
|
|
44
|
+
); /* Used for the background of the start of the selected range. */
|
|
45
|
+
--rdp-range_start-date-background-color: var(
|
|
46
|
+
--rdp-accent-color
|
|
47
|
+
); /* The background color of the date when at the start of the selected range. */
|
|
48
|
+
|
|
49
|
+
--rdp-range_end-background: linear-gradient(
|
|
50
|
+
var(--rdp-gradient-direction),
|
|
51
|
+
var(--rdp-range_middle-background-color) 50%,
|
|
52
|
+
transparent 50%
|
|
53
|
+
); /* Used for the background of the end of the selected range. */
|
|
54
|
+
--rdp-range_end-color: white; /* The color of the range text. */
|
|
55
|
+
--rdp-range_end-date-background-color: var(
|
|
56
|
+
--rdp-accent-color
|
|
57
|
+
); /* The background color of the date when at the end of the selected range. */
|
|
58
|
+
|
|
59
|
+
--rdp-week_number-border-radius: 50%; /* The border radius of the week number. */
|
|
60
|
+
--rdp-week_number-border: 1px solid transparent; /* The border of the week number. */
|
|
61
|
+
|
|
62
|
+
--rdp-week_number-height: var(
|
|
63
|
+
--rdp-day-height
|
|
64
|
+
); /* The height of the week number cells. */
|
|
65
|
+
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
|
|
66
|
+
--rdp-week_number-width: var(
|
|
67
|
+
--rdp-day-width
|
|
68
|
+
); /* The width of the week number cells. */
|
|
69
|
+
--rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
|
|
70
|
+
|
|
71
|
+
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
|
|
72
|
+
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
|
|
73
|
+
--rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
|
|
74
|
+
|
|
75
|
+
--rdp-gradient-direction: 90deg;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rdp-root[dir="rtl"] {
|
|
79
|
+
--rdp-gradient-direction: -90deg;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Root of the component. */
|
|
83
|
+
.rdp-root {
|
|
84
|
+
position: relative; /* Required to position the navigation toolbar. */
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.rdp-root * {
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.rdp-day {
|
|
93
|
+
width: var(--rdp-day-width);
|
|
94
|
+
height: var(--rdp-day-height);
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rdp-day_button {
|
|
99
|
+
background: none;
|
|
100
|
+
padding: 0;
|
|
101
|
+
margin: 0;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
font: inherit;
|
|
104
|
+
color: inherit;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
display: flex;
|
|
108
|
+
|
|
109
|
+
width: var(--rdp-day_button-width);
|
|
110
|
+
height: var(--rdp-day_button-height);
|
|
111
|
+
border: var(--rdp-day_button-border);
|
|
112
|
+
border-radius: var(--rdp-day_button-border-radius);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.rdp-day_button:disabled {
|
|
116
|
+
cursor: revert;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.rdp-caption_label {
|
|
120
|
+
z-index: 1;
|
|
121
|
+
|
|
122
|
+
position: relative;
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
border: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.rdp-button_next,
|
|
131
|
+
.rdp-button_previous {
|
|
132
|
+
border: none;
|
|
133
|
+
background: none;
|
|
134
|
+
padding: 0;
|
|
135
|
+
margin: 0;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
font: inherit;
|
|
138
|
+
color: inherit;
|
|
139
|
+
-moz-appearance: none;
|
|
140
|
+
-webkit-appearance: none;
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
position: relative;
|
|
145
|
+
appearance: none;
|
|
146
|
+
|
|
147
|
+
width: var(--rdp-nav_button-width);
|
|
148
|
+
height: var(--rdp-nav_button-height);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.rdp-button_next:disabled,
|
|
152
|
+
.rdp-button_previous:disabled {
|
|
153
|
+
cursor: revert;
|
|
154
|
+
|
|
155
|
+
opacity: var(--rdp-nav_button-disabled-opacity);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.rdp-chevron {
|
|
159
|
+
display: inline-block;
|
|
160
|
+
fill: var(--rdp-accent-color);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
|
|
164
|
+
transform: rotate(180deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
|
|
168
|
+
transform: rotate(180deg);
|
|
169
|
+
transform-origin: 50%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.rdp-dropdowns {
|
|
173
|
+
position: relative;
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: var(--rdp-dropdown-gap);
|
|
177
|
+
}
|
|
178
|
+
.rdp-dropdown {
|
|
179
|
+
z-index: 2;
|
|
180
|
+
|
|
181
|
+
/* Reset */
|
|
182
|
+
opacity: 0;
|
|
183
|
+
appearance: none;
|
|
184
|
+
position: absolute;
|
|
185
|
+
inset-block-start: 0;
|
|
186
|
+
inset-block-end: 0;
|
|
187
|
+
inset-inline-start: 0;
|
|
188
|
+
width: 100%;
|
|
189
|
+
margin: 0;
|
|
190
|
+
padding: 0;
|
|
191
|
+
cursor: inherit;
|
|
192
|
+
border: none;
|
|
193
|
+
line-height: inherit;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.rdp-dropdown_root {
|
|
197
|
+
position: relative;
|
|
198
|
+
display: inline-flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
|
|
203
|
+
opacity: var(--rdp-disabled-opacity);
|
|
204
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* SlidingDialog.css */
|
|
2
2
|
/* .dialog-overlay {
|
|
3
|
-
position:
|
|
3
|
+
position: absolute !important;
|
|
4
4
|
inset: 0;
|
|
5
5
|
background: rgba(0, 0, 0, 0.5);
|
|
6
6
|
animation: overlayShow 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
7
7
|
} */
|
|
8
8
|
|
|
9
9
|
.dialog-content {
|
|
10
|
-
/* background:
|
|
11
|
-
position:
|
|
10
|
+
/* background: 'red' !important; */
|
|
11
|
+
position: absolute !important;
|
|
12
12
|
/* width: 300px; */
|
|
13
|
-
height: 100%;
|
|
13
|
+
/* height: 100%; */
|
|
14
14
|
overflow: auto;
|
|
15
15
|
box-shadow: 0 10px 38px -10px rgba(0, 0, 0, 0.35);
|
|
16
16
|
outline: none;
|
|
@@ -152,4 +152,4 @@
|
|
|
152
152
|
width: 100%;
|
|
153
153
|
height: auto;
|
|
154
154
|
animation: slideOutToBottom 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
155
|
-
}
|
|
155
|
+
}
|
package/src/studio.css
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.react-flow__attribution { display: none; }
|
|
2
|
+
|
|
3
|
+
.react-flow__controls-button{border-bottom-color: transparent
|
|
4
|
+
/* rgba(104, 104, 104, 0.4); */
|
|
5
|
+
}
|
|
6
|
+
.react-flow__controls-button:first-child { border-top-left-radius: 5px; border-top-right-radius: 5px;}
|
|
7
|
+
.react-flow__controls-button:last-child { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;}
|
|
8
|
+
.react-flow__minimap { border-radius: 10px;}
|
|
9
|
+
.react-flow__minimap-svg { border-radius: 10px;}
|
|
10
|
+
|
|
11
|
+
/* .react-flow__background {
|
|
12
|
+
background: white !important;
|
|
13
|
+
opacity: 1 !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:fullscreen .react-flow__background {
|
|
17
|
+
background: white;
|
|
18
|
+
opacity: 1;
|
|
19
|
+
} */
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Theme } from '@radix-ui/themes';
|
|
3
|
-
import '@radix-ui/themes/styles.css';
|
|
4
|
-
// import '@/styles/sheet.css'
|
|
5
|
-
// import '../styles/combo_box.css'
|
|
6
|
-
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
7
|
-
import '@xyflow/react/dist/style.css';
|
|
8
|
-
import { useConfigStore } from '../zustand/store';
|
|
9
|
-
export default function AppLayout({ theme = 'system', accent = 'purple', children }) {
|
|
10
|
-
const { appTheme } = useConfigStore();
|
|
11
|
-
const queryClient = new QueryClient();
|
|
12
|
-
return (_jsx(Theme, { appearance: theme, accentColor: accent, children: _jsx(QueryClientProvider, { client: queryClient, children: children }) }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=app_layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app_layout.js","sourceRoot":"","sources":["../../src/components/app_layout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,6BAA6B,CAAC;AACrC,8BAA8B;AAC9B,mCAAmC;AACnC,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAC,KAAK,GAAC,QAAQ,EAAE,MAAM,GAAC,QAAQ,EAAE,QAAQ,EAAK;IAC7E,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IACtC,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;IACtC,OAAO,CACH,KAAC,KAAK,IAAC,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,YACzC,KAAC,mBAAmB,IAAC,MAAM,EAAE,WAAW,YACvC,QAAQ,GACa,GAClB,CACX,CAAA;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function DataSources({ open, setOpen, projectIdentifier }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Card, Text, Select, Button, Separator, Table, TextArea, Flex, TextField } from "@radix-ui/themes";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { FaDatabase, FaTimes } from "react-icons/fa";
|
|
5
|
-
import * as Yup from 'yup';
|
|
6
|
-
import { useForm } from 'react-hook-form';
|
|
7
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
8
|
-
import { useQuery } from "@tanstack/react-query";
|
|
9
|
-
import * as Form from '@radix-ui/react-form';
|
|
10
|
-
import ComboBox from "../combo_box";
|
|
11
|
-
export default function DataSources({ open, setOpen, projectIdentifier }) {
|
|
12
|
-
var _a, _b, _c, _d;
|
|
13
|
-
const { data: project, status: projectStatus, refetch: projectRefetch } = useQuery({
|
|
14
|
-
queryKey: [`project_${projectIdentifier}`], queryFn: async () => {
|
|
15
|
-
const res = await fetch(`/api/projects/${projectIdentifier}`);
|
|
16
|
-
return res === null || res === void 0 ? void 0 : res.json();
|
|
17
|
-
}, ...{ enabled: !!projectIdentifier }
|
|
18
|
-
});
|
|
19
|
-
const dataSourceFormSchema = Yup.object().shape({
|
|
20
|
-
database_type: Yup.string().required('Database Type is required'),
|
|
21
|
-
connection_string: Yup.string().url('This has to be a URL').required('Connection String is required'),
|
|
22
|
-
});
|
|
23
|
-
const { register: registerInput, handleSubmit: handleFormSubmit, reset: resetForm, formState: { errors, isSubmitting }, } = useForm({
|
|
24
|
-
resolver: yupResolver(dataSourceFormSchema),
|
|
25
|
-
});
|
|
26
|
-
const handleSubmit = async (data) => {
|
|
27
|
-
try {
|
|
28
|
-
const post_data = JSON.stringify({
|
|
29
|
-
database_type: data.database_type,
|
|
30
|
-
connection_string: data.connection_string
|
|
31
|
-
});
|
|
32
|
-
const response = await fetch('/api/providers', { method: 'POST', body: post_data });
|
|
33
|
-
if (await response) {
|
|
34
|
-
const data = await response.json();
|
|
35
|
-
if (response.ok) {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch (err) {
|
|
40
|
-
console.log(err);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const functions_list = [
|
|
44
|
-
{ identifier: 1, name: 'Source Finder' },
|
|
45
|
-
{ identifier: 2, name: 'Whitelist Checker' },
|
|
46
|
-
{ identifier: 3, name: 'Request Serializer' },
|
|
47
|
-
{ identifier: 4, name: 'Account Checker' },
|
|
48
|
-
{ identifier: 5, name: 'Session GET' },
|
|
49
|
-
{ identifier: 6, name: 'Menu Finder' },
|
|
50
|
-
{ identifier: 1, name: 'Paginator' },
|
|
51
|
-
{ identifier: 1, name: 'Session SET' },
|
|
52
|
-
{ identifier: 1, name: 'Response Serializer' }
|
|
53
|
-
];
|
|
54
|
-
const [getFunctionsList, setFunctionsList] = useState(functions_list === null || functions_list === void 0 ? void 0 : functions_list.map((val) => { return { value: val.identifier, label: val.name }; }));
|
|
55
|
-
return (_jsx(_Fragment, { children: _jsxs(Flex, { direction: 'column', height: '100%', width: '100%', gap: '5', children: [_jsxs(Form.Root, { onSubmit: handleFormSubmit(handleSubmit), children: [_jsxs(Flex, { width: '100%', align: 'center', mb: '3', children: [_jsx(Flex, { flexGrow: '1', children: _jsx(Text, { children: "Database Type:" }) }), _jsx(Flex, { flexShrink: '0', direction: 'column', children: _jsxs(Form.Field, { name: 'connection_string', serverInvalid: errors.connection_string != null, children: [_jsxs(Select.Root, { ...registerInput('database_type'), size: '1', children: [_jsx(Select.Trigger, { placeholder: "Select Type" }), _jsxs(Select.Content, { position: 'popper', children: [_jsx(Select.Item, { value: 'oracle', children: "Oracle" }), _jsx(Select.Item, { value: 'postgres', children: "PostgreSQL" }), _jsx(Select.Item, { value: 'mssql', children: "Microsoft SQL Server" }), _jsx(Select.Item, { value: 'mysql', children: "MySQL" }), _jsx(Select.Item, { value: 'mariadb', children: "MariaDB" }), _jsx(Select.Item, { value: 'mongo', children: "MongoDB" }), _jsx(Select.Item, { value: 'cockroachdb', children: "Cockroach DB" }), _jsx(Select.Item, { value: 'sap', children: "SAP HANA" }), _jsx(Select.Item, { value: 'sqljs', children: "SQLJS" }), _jsx(Select.Item, { value: 'aurora-mysql', children: "Aurora MySQL" })] })] }), ((_a = errors.database_type) === null || _a === void 0 ? void 0 : _a.message) && _jsx(Form.Message, { children: (_b = errors.database_type) === null || _b === void 0 ? void 0 : _b.message })] }) })] }), _jsxs(Form.Field, { name: 'connection_string', serverInvalid: errors.connection_string != null, children: [_jsx(Form.Label, { htmlFor: 'connection_string', children: "Database Connection String" }), _jsx(TextField.Root, { type: 'url', size: '1', id: 'connection_string', placeholder: 'Data Source URL', ...registerInput('connection_string') }), ((_c = errors.connection_string) === null || _c === void 0 ? void 0 : _c.message) && _jsx(Form.Message, { children: (_d = errors.connection_string) === null || _d === void 0 ? void 0 : _d.message }), _jsx(Text, { mt: '1', size: '1', color: 'gray', children: "This is a single database connection string that will be your primary source of data" })] }), _jsxs(Flex, { gap: '3', children: [_jsxs(Button, { color: 'teal', size: '1', type: 'submit', variant: 'soft', loading: isSubmitting, children: [_jsx(FaDatabase, {}), " Connect"] }), _jsxs(Button, { color: 'red', size: '1', type: 'button', variant: 'soft', loading: isSubmitting, children: [_jsx(FaTimes, {}), " Disconnect"] })] })] }), _jsx(Separator, { size: '4' }), _jsxs(Flex, { direction: 'column', mb: '3', children: [_jsx(Text, { children: "Functions List" }), _jsx(ComboBox, { placeholder: 'Select Warehouses', value: '', onValueChange: () => { }, items: getFunctionsList, isMulti: true })] }), _jsx(Separator, { size: '4' }), _jsx(Text, { mb: '3', children: "Templates Setup" }), _jsx(Card, { children: _jsxs(Table.Root, { children: [_jsx(Table.Header, { children: _jsxs(Table.Row, { children: [_jsx(Table.ColumnHeaderCell, { children: "Name" }), _jsx(Table.ColumnHeaderCell, { children: "SQL Statement" })] }) }), _jsx(Table.Body, { children: _jsxs(Table.Row, { children: [_jsx(Table.Cell, { children: _jsx(TextField.Root, { type: 'text' }) }), _jsx(Table.Cell, { children: _jsx(TextArea, { rows: 3 }) })] }) })] }) })] }) }));
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=data_sources.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data_sources.js","sourceRoot":"","sources":["../../../src/components/app_settings/data_sources.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAG,IAAI,EAAE,MAAM,EAAW,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAQ,MAAM,kBAAkB,CAAA;AAC1H,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,GAAG,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAA;AAE5C,OAAO,QAAQ,MAAM,cAAc,CAAC;AAGpC,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAO;;IAE3E,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC;QACjF,QAAQ,EAAE,CAAC,WAAW,iBAAiB,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE;YAC9D,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,iBAAiB,iBAAiB,EAAE,CAAC,CAAA;YAC7D,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,EAAE,CAAC;QACrB,CA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AI,EAAE,GAAG,GAAI,EAExB,KAAC,IAAI,IAAC,EAAE,EAAE,GAAG,gCAAwB,EACrC,KAAC,IAAI,cACL,MAAC,KAAK,CAAC,IAAI,eACT,KAAC,KAAK,CAAC,MAAM,cAAC,MAAC,KAAK,CAAC,GAAG,eAAC,KAAC,KAAK,CAAC,gBAAgB,uBAA8B,EAAA,KAAC,KAAK,CAAC,gBAAgB,gCAAuC,IAAY,GAAe,EACvK,KAAC,KAAK,CAAC,IAAI,cAAC,MAAC,KAAK,CAAC,GAAG,eAAC,KAAC,KAAK,CAAC,IAAI,cAAC,KAAC,SAAS,CAAC,IAAI,IAAC,IAAI,EAAE,MAAM,GAAI,GAAa,EAAA,KAAC,KAAK,CAAC,IAAI,cAAC,KAAC,QAAQ,IAAC,IAAI,EAAE,CAAC,GAAc,GAAa,IAAY,GAAa,IACtJ,GACN,IACA,GACd,CACJ,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function Deploy({ open, setOpen, projectIdentifier }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Text, Button, Flex } from "@radix-ui/themes";
|
|
3
|
-
import { useQuery } from "@tanstack/react-query";
|
|
4
|
-
import { BiPlay } from "react-icons/bi";
|
|
5
|
-
export default function Deploy({ open, setOpen, projectIdentifier }) {
|
|
6
|
-
const { data: project, status: projectStatus, refetch: projectRefetch } = useQuery({
|
|
7
|
-
queryKey: [`project_${projectIdentifier}`], queryFn: async () => {
|
|
8
|
-
const res = await fetch(`/api/projects/${projectIdentifier}`);
|
|
9
|
-
return res === null || res === void 0 ? void 0 : res.json();
|
|
10
|
-
}, ...{ enabled: !!projectIdentifier }
|
|
11
|
-
});
|
|
12
|
-
return (_jsx(_Fragment, { children: _jsxs(Flex, { direction: 'column', gap: '3', height: '100%', children: [_jsx(Text, { color: 'gray', size: '2', children: "Are you sure you want to Deploy Live? NB: This would replace the current state of the project." }), _jsx(Text, { color: 'gray', size: '2', children: "This process would take some seconds" }), _jsxs(Button, { color: 'teal', type: 'submit', children: [_jsx(BiPlay, {}), " Deploy Live"] })] }) }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=deploy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../src/components/app_settings/deploy.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAGvC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,EAAO;IAEpE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC;QAC/E,QAAQ,EAAE,CAAC,WAAW,iBAAiB,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,EAAE;YAC9D,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,iBAAiB,iBAAiB,EAAE,CAAC,CAAA;YAC7D,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,EAAE,CAAC;QACrB,CAAC,EAAE,GAAG,EAAC,OAAO,EAAE,CAAC,CAAC,iBAAiB,EAAC;KACvC,CAAC,CAAA;IAEF,OAAO,CACH,4BAEQ,MAAC,IAAI,IAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,aAE/C,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,+GAAuG,EACrI,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,qDAA6C,EAC3E,MAAC,MAAM,IAAC,KAAK,EAAE,MAAM,EAAG,IAAI,EAAE,QAAQ,aAAE,KAAC,MAAM,KAAG,oBAAqB,IAEpE,GAEZ,CACN,CAAA;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function AppSettings(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Box, Button, Card, Flex, Select, Separator, Text, TextArea, TextField } from "@radix-ui/themes";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
import { IoIosCog } from "react-icons/io";
|
|
6
|
-
import Sheet from "../sheet";
|
|
7
|
-
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
8
|
-
import { FaCopy, FaPlus } from "react-icons/fa";
|
|
9
|
-
import { FaChevronDown } from "react-icons/fa6";
|
|
10
|
-
import * as Yup from "yup";
|
|
11
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
12
|
-
import { useForm } from "react-hook-form";
|
|
13
|
-
import * as Form from "@radix-ui/react-form";
|
|
14
|
-
import { Globe } from "lucide-react";
|
|
15
|
-
// import { toast } from "sonner";
|
|
16
|
-
export default function AppSettings() {
|
|
17
|
-
const [open, setOpen] = useState(false);
|
|
18
|
-
const formSchema = Yup.object().shape({
|
|
19
|
-
title: Yup.string().required('required'),
|
|
20
|
-
whitelists: Yup.string().required('required'),
|
|
21
|
-
source_types: Yup.string().required('required')
|
|
22
|
-
});
|
|
23
|
-
const { register, handleSubmit: handleFormSubmit, reset, formState: { errors, isSubmitting }, } = useForm({
|
|
24
|
-
resolver: yupResolver(formSchema),
|
|
25
|
-
});
|
|
26
|
-
const handleSubmit = async (data) => {
|
|
27
|
-
try {
|
|
28
|
-
const post_data = JSON.stringify({
|
|
29
|
-
text: data.text,
|
|
30
|
-
content_type: "text",
|
|
31
|
-
role: "user",
|
|
32
|
-
});
|
|
33
|
-
const response = await fetch(`/api/...`, {
|
|
34
|
-
method: "POST", headers: {
|
|
35
|
-
"Content-Type": "application/json",
|
|
36
|
-
}, body: post_data
|
|
37
|
-
});
|
|
38
|
-
if (response.ok) {
|
|
39
|
-
// toast.success("Question posted successfully");
|
|
40
|
-
reset();
|
|
41
|
-
// refetchQuestions();
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
// toast.error("Failed to post question");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
console.log(e);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
return (_jsxs(Box, { position: 'relative', children: [_jsx(Button, { "aria-label": 'Settings', variant: 'outline', onClick: () => { setOpen(true); }, size: '1', children: _jsx(IoIosCog, {}) }), _jsx(Sheet, { title: 'Configuration', open: open, setOpen: setOpen, maxWidth: '450px', children: _jsxs(Flex, { direction: 'column', gap: '2', height: '100%', width: '100%', children: [_jsx(Flex, { justify: 'end', children: _jsxs(Button, { variant: 'soft', size: '1', children: [_jsx(FaPlus, {}), " Provider"] }) }), _jsx(Card, { size: '1', style: { '--card-border-radius': '5px' }, children: _jsx(Collapsible.Root, { defaultOpen: false, children: _jsxs(Flex, { direction: 'column', gap: '3', children: [_jsx(Collapsible.Trigger, { children: _jsxs(Flex, { justify: 'between', align: 'center', children: [_jsx(Text, { weight: 'bold', children: "Provider 1" }), _jsx(FaChevronDown, {})] }) }), _jsx(Collapsible.Content, { children: _jsx(Form.Root, { onSubmit: handleFormSubmit(handleSubmit), noValidate: true, children: _jsxs(Flex, { direction: 'column', gap: '3', children: [_jsx(Separator, { size: '4' }), _jsxs(Flex, { justify: 'between', align: 'center', children: [_jsx(Text, { color: "gray", children: "Type" }), _jsxs(Select.Root, { size: '1', children: [_jsx(Select.Trigger, { placeholder: 'Select Type' }), _jsxs(Select.Content, { position: 'popper', children: [_jsx(Select.Item, { value: 'ussd', children: "USSD" }), _jsx(Select.Item, { value: 'chat_bot', children: "Chat Bot" }), _jsx(Select.Item, { value: 'payment', children: "Payment" }), _jsx(Select.Item, { value: 'sms', children: "SMS" }), _jsx(Select.Item, { value: 'email', children: "Email" })] })] })] }), _jsx(Separator, { size: '4' }), _jsxs(Flex, { justify: 'between', align: 'center', children: [_jsx(Text, { color: "gray", children: "Provider" }), _jsxs(Select.Root, { size: '1', children: [_jsx(Select.Trigger, { placeholder: 'Select Provider' }), _jsxs(Select.Content, { position: 'popper', children: [_jsx(Select.Item, { value: 'africas_talking', children: "Africas Talking" }), _jsx(Select.Item, { value: 'itc_ghana', children: "ITC Ghana" }), _jsx(Select.Item, { value: 'wigal_ghana', children: "Wigal Ghana" }), _jsx(Select.Item, { value: 'hubtel_ghana', children: "Hubtel Ghana" }), _jsx(Select.Item, { value: 'twilio', children: "Twilio" })] })] })] }), _jsx(Separator, { size: '4' }), _jsxs(Flex, { justify: 'between', align: 'center', children: [_jsx(Text, { color: "gray", children: "Service Code" }), _jsx(TextField.Root, { placeholder: '800*008', size: '1' })] }), _jsx(Separator, { size: '4' }), _jsx(Flex, { direction: 'column', children: _jsx(Text, { color: "gray", children: _jsxs(Flex, { justify: 'between', children: [_jsxs(Flex, { gap: '2', children: [_jsx(Globe, {}), " https://flowstudio-api.vercel.app/engine/1234-5678-9012-3456"] }), " ", _jsxs(Button, { size: '1', variant: 'soft', children: [_jsx(FaCopy, {}), " Copy"] })] }) }) }), _jsx(Separator, { size: '4' }), _jsx(Flex, { justify: 'end', children: _jsx(Button, { highContrast: true, children: "Save" }) })] }) }) })] }) }) }), _jsx(Separator, { size: '4' }), _jsx(Card, { size: '1', style: { '--card-border-radius': '5px' }, children: _jsx(Collapsible.Root, { defaultOpen: false, children: _jsxs(Flex, { direction: 'column', gap: '3', children: [_jsx(Collapsible.Trigger, { children: _jsxs(Flex, { justify: 'between', align: 'center', children: [_jsx(Text, { weight: 'bold', children: "Functions" }), _jsx(FaChevronDown, {})] }) }), _jsx(Collapsible.Content, { children: _jsxs(Flex, { direction: 'column', gap: '5', children: [_jsx(Separator, { size: '4' }), _jsxs(Flex, { direction: 'column', gap: '3', children: [_jsx(TextField.Root, { type: 'text', placeholder: 'Enter Function Name', size: '2', children: _jsx(TextField.Slot, { side: 'right', children: _jsxs(Select.Root, { size: '1', defaultValue: "js", children: [_jsx(Select.Trigger, { placeholder: 'Lang' }), _jsxs(Select.Content, { position: 'popper', children: [_jsx(Select.Item, { value: 'js', children: "Js" }), _jsx(Select.Item, { value: 'py', children: "Py" })] })] }) }) }), _jsx(TextArea, { rows: 5, placeholder: 'Enter Code Here' })] }), _jsx(Flex, { justify: 'end', children: _jsx(Button, { highContrast: true, children: "Save" }) }), _jsx(Separator, { size: '4' })] }) })] }) }) })] }) })] }));
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=index.js.map
|