@mongoosejs/studio 0.2.12 → 0.3.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/backend/actions/ChatMessage/executeScript.js +5 -1
- package/backend/actions/ChatThread/createChatMessage.js +2 -1
- package/backend/actions/ChatThread/streamChatMessage.js +2 -2
- package/backend/actions/Model/getEstimatedDocumentCounts.js +38 -0
- package/backend/actions/Model/index.js +1 -0
- package/backend/actions/Model/streamDocumentChanges.js +8 -7
- package/backend/actions/Task/getTasks.js +9 -6
- package/backend/authorize.js +1 -0
- package/backend/index.js +11 -3
- package/eslint.config.js +5 -1
- package/express.js +1 -0
- package/frontend/public/app.js +25235 -662
- package/frontend/public/dark-theme.css +365 -0
- package/frontend/public/images/mongoose-studio.svg +4 -0
- package/frontend/public/index.html +21 -1
- package/frontend/public/style.css +5 -7
- package/frontend/public/theme-variables.css +294 -0
- package/frontend/public/tw.css +461 -239
- package/frontend/src/ace-editor/ace-editor.html +4 -0
- package/frontend/src/ace-editor/ace-editor.js +89 -0
- package/frontend/src/aceEditor.js +69 -0
- package/frontend/src/api.js +6 -0
- package/frontend/src/chat/chat-message/chat-message.html +1 -1
- package/frontend/src/chat/chat-message/chat-message.js +1 -1
- package/frontend/src/chat/chat-message-script/chat-message-script.html +51 -34
- package/frontend/src/chat/chat-message-script/chat-message-script.js +12 -55
- package/frontend/src/chat/chat.html +72 -37
- package/frontend/src/chat/chat.js +26 -2
- package/frontend/src/clone-document/clone-document.html +7 -2
- package/frontend/src/clone-document/clone-document.js +1 -8
- package/frontend/src/create-dashboard/create-dashboard.html +11 -6
- package/frontend/src/create-dashboard/create-dashboard.js +0 -7
- package/frontend/src/create-document/create-document.html +15 -9
- package/frontend/src/create-document/create-document.js +5 -12
- package/frontend/src/dashboard/dashboard.html +14 -12
- package/frontend/src/dashboard/dashboard.js +12 -4
- package/frontend/src/dashboard/edit-dashboard/edit-dashboard.html +13 -7
- package/frontend/src/dashboard/edit-dashboard/edit-dashboard.js +13 -21
- package/frontend/src/dashboard-result/dashboard-chart/dashboard-chart.html +19 -17
- package/frontend/src/dashboard-result/dashboard-chart/dashboard-chart.js +97 -2
- package/frontend/src/dashboard-result/dashboard-map/dashboard-map.js +27 -3
- package/frontend/src/dashboard-result/dashboard-result.html +3 -3
- package/frontend/src/dashboards/dashboards.html +101 -109
- package/frontend/src/dashboards/dashboards.js +25 -1
- package/frontend/src/detail-default/detail-default.html +2 -2
- package/frontend/src/detail-default/detail-default.js +24 -3
- package/frontend/src/document/confirm-changes/confirm-changes.html +1 -1
- package/frontend/src/document/confirm-delete/confirm-delete.html +1 -1
- package/frontend/src/document/document.css +1 -1
- package/frontend/src/document/document.html +53 -27
- package/frontend/src/document/document.js +27 -1
- package/frontend/src/document/execute-script/execute-script.html +20 -21
- package/frontend/src/document/execute-script/execute-script.js +1 -43
- package/frontend/src/document-details/document-details.css +4 -9
- package/frontend/src/document-details/document-details.html +34 -33
- package/frontend/src/document-details/document-details.js +2 -53
- package/frontend/src/document-details/document-property/document-property.html +12 -12
- package/frontend/src/edit-array/edit-array.html +7 -6
- package/frontend/src/edit-array/edit-array.js +10 -50
- package/frontend/src/edit-boolean/edit-boolean.html +12 -12
- package/frontend/src/edit-date/edit-date.html +2 -2
- package/frontend/src/edit-default/edit-default.html +1 -1
- package/frontend/src/edit-string/edit-string.html +3 -3
- package/frontend/src/edit-subdocument/edit-subdocument.html +5 -3
- package/frontend/src/edit-subdocument/edit-subdocument.js +1 -15
- package/frontend/src/export-query-results/export-query-results.html +3 -3
- package/frontend/src/json-node/json-node.html +3 -3
- package/frontend/src/list-json/json-node.html +1 -1
- package/frontend/src/models/document-search/document-search.html +3 -3
- package/frontend/src/models/model-switcher/model-switcher.html +53 -0
- package/frontend/src/models/model-switcher/model-switcher.js +123 -0
- package/frontend/src/models/models.css +3 -10
- package/frontend/src/models/models.html +146 -74
- package/frontend/src/models/models.js +142 -4
- package/frontend/src/navbar/navbar.html +157 -97
- package/frontend/src/navbar/navbar.js +32 -13
- package/frontend/src/routes.js +20 -4
- package/frontend/src/splash/splash.html +5 -5
- package/frontend/src/task-by-name/task-by-name.html +15 -0
- package/frontend/src/task-by-name/task-by-name.js +78 -0
- package/frontend/src/task-single/task-single.html +157 -0
- package/frontend/src/task-single/task-single.js +116 -0
- package/frontend/src/tasks/task-details/task-details.html +124 -73
- package/frontend/src/tasks/task-details/task-details.js +166 -10
- package/frontend/src/tasks/tasks.html +37 -48
- package/frontend/src/tasks/tasks.js +11 -50
- package/frontend/src/team/new-invitation/new-invitation.html +8 -8
- package/frontend/src/team/team.html +27 -27
- package/frontend/src/update-document/update-document.html +7 -2
- package/frontend/src/update-document/update-document.js +2 -11
- package/package.json +3 -1
- package/tailwind.config.js +75 -11
package/tailwind.config.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
mode: 'jit',
|
|
5
|
+
darkMode: 'class',
|
|
5
6
|
content: ['./frontend/src/**/*.html', './frontend/src/**/*.js', './frontend/src/**/**/*.html', './frontend/src/**/**/*.js'],
|
|
6
7
|
corePlugins: {
|
|
7
8
|
container: true
|
|
@@ -10,6 +11,30 @@ module.exports = {
|
|
|
10
11
|
theme: {
|
|
11
12
|
extend: {
|
|
12
13
|
colors: {
|
|
14
|
+
/* Semantic tokens – swap automatically in .dark via CSS variables */
|
|
15
|
+
'primary': {
|
|
16
|
+
DEFAULT: 'var(--color-primary)',
|
|
17
|
+
'hover': 'var(--color-primary-hover)',
|
|
18
|
+
'subtle': 'var(--color-primary-subtle)',
|
|
19
|
+
'text': 'var(--color-primary-text)',
|
|
20
|
+
},
|
|
21
|
+
'surface': {
|
|
22
|
+
DEFAULT: 'var(--color-surface)',
|
|
23
|
+
'hover': 'var(--color-surface-hover)',
|
|
24
|
+
},
|
|
25
|
+
'page': 'var(--color-page)',
|
|
26
|
+
'muted': 'var(--color-muted)',
|
|
27
|
+
'subtle': 'var(--color-subtle)',
|
|
28
|
+
'content': {
|
|
29
|
+
DEFAULT: 'var(--color-content)',
|
|
30
|
+
'secondary': 'var(--color-content-secondary)',
|
|
31
|
+
'tertiary': 'var(--color-content-tertiary)',
|
|
32
|
+
'disabled': 'var(--color-content-disabled)',
|
|
33
|
+
},
|
|
34
|
+
'edge': {
|
|
35
|
+
DEFAULT: 'var(--color-edge)',
|
|
36
|
+
'strong': 'var(--color-edge-strong)',
|
|
37
|
+
},
|
|
13
38
|
'puerto-rico': {
|
|
14
39
|
'50': '#eefffb',
|
|
15
40
|
'100': '#c6fff3',
|
|
@@ -24,17 +49,17 @@ module.exports = {
|
|
|
24
49
|
'950': '#003432',
|
|
25
50
|
},
|
|
26
51
|
'teal': {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
'50': '#eefffc',
|
|
53
|
+
'100': '#c5fffa',
|
|
54
|
+
'200': '#8bfff5',
|
|
55
|
+
'300': '#4afef0',
|
|
56
|
+
'400': '#15ece2',
|
|
57
|
+
'500': '#00d0c9',
|
|
58
|
+
'600': '#00a8a5',
|
|
59
|
+
'700': '#008080',
|
|
60
|
+
'800': '#066769',
|
|
61
|
+
'900': '#0a5757',
|
|
62
|
+
'950': '#003235',
|
|
38
63
|
},
|
|
39
64
|
'ultramarine': {
|
|
40
65
|
'50': '#f1f5ff',
|
|
@@ -74,6 +99,45 @@ module.exports = {
|
|
|
74
99
|
'800': '#8d2727',
|
|
75
100
|
'900': '#752727',
|
|
76
101
|
'950': '#3f1010',
|
|
102
|
+
},
|
|
103
|
+
'merlot': {
|
|
104
|
+
'50': '#fef3f2',
|
|
105
|
+
'100': '#fde8e6',
|
|
106
|
+
'200': '#fad3d1',
|
|
107
|
+
'300': '#f6adab',
|
|
108
|
+
'400': '#ef807d',
|
|
109
|
+
'500': '#e54e4f',
|
|
110
|
+
'600': '#d12d36',
|
|
111
|
+
'700': '#b0202b',
|
|
112
|
+
'800': '#931e2b',
|
|
113
|
+
'900': '#7f1d2b',
|
|
114
|
+
'950': '#460b12',
|
|
115
|
+
},
|
|
116
|
+
'shark': {
|
|
117
|
+
'50': '#fafafa',
|
|
118
|
+
'100': '#f3f4f6',
|
|
119
|
+
'200': '#e1e5ea',
|
|
120
|
+
'300': '#d0d6dc',
|
|
121
|
+
'400': '#98a5b3',
|
|
122
|
+
'500': '#687583',
|
|
123
|
+
'600': '#495664',
|
|
124
|
+
'700': '#38424d',
|
|
125
|
+
'800': '#212529',
|
|
126
|
+
'900': '#15191e',
|
|
127
|
+
'950': '#070a0d',
|
|
128
|
+
},
|
|
129
|
+
'steel-blue': {
|
|
130
|
+
'50': '#f4f7fb',
|
|
131
|
+
'100': '#e9eef5',
|
|
132
|
+
'200': '#cedae9',
|
|
133
|
+
'300': '#a2bbd7',
|
|
134
|
+
'400': '#7097c0',
|
|
135
|
+
'500': '#4f7cac',
|
|
136
|
+
'600': '#3b618e',
|
|
137
|
+
'700': '#314e73',
|
|
138
|
+
'800': '#2c4360',
|
|
139
|
+
'900': '#293a51',
|
|
140
|
+
'950': '#1b2536',
|
|
77
141
|
}
|
|
78
142
|
}
|
|
79
143
|
}
|