Commit e223056
committed
feat: implement UI registry and custom UI support for tools
- Added UIRegistry class to manage custom and default UI HTML for tools.
- Integrated custom UI support in the Server and ToolBase classes.
- Created ListDatabases tool with a corresponding UI component.
- Introduced Vite configuration for building UI components and generating HTML entries.
- Updated TypeScript configuration to support JSX and include UI components.
- Enhanced package.json with new dependencies for React and Vite.
- Updated .gitignore to exclude generated UI files.1 parent 7e32ef1 commit e223056
File tree
19 files changed
+2839
-251
lines changed- src
- tools
- mongodb/metadata
- ui
- build
- components/ListDatabases
- hooks
- registry
19 files changed
+2839
-251
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
| 64 | + | |
54 | 65 | | |
55 | | - | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
86 | 97 | | |
87 | 98 | | |
88 | 99 | | |
| 100 | + | |
| 101 | + | |
89 | 102 | | |
90 | 103 | | |
91 | 104 | | |
| 105 | + | |
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
| |||
112 | 126 | | |
113 | 127 | | |
114 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
115 | 132 | | |
116 | 133 | | |
117 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
118 | 138 | | |
119 | 139 | | |
120 | 140 | | |
| |||
132 | 152 | | |
133 | 153 | | |
134 | 154 | | |
| 155 | + | |
| 156 | + | |
135 | 157 | | |
136 | 158 | | |
137 | 159 | | |
| |||
0 commit comments