datajunction-ui 0.0.1-rc.5 → 0.0.1-rc.7
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/package.json +1 -1
- package/src/app/index.tsx +22 -24
- package/src/app/pages/NodePage/index.jsx +1 -2
package/package.json
CHANGED
package/src/app/index.tsx
CHANGED
|
@@ -30,31 +30,29 @@ export function App() {
|
|
|
30
30
|
content="DataJunction serves as a semantic layer to help manage metrics"
|
|
31
31
|
/>
|
|
32
32
|
</Helmet>
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<Route path="
|
|
41
|
-
|
|
42
|
-
</Route>
|
|
33
|
+
<Routes>
|
|
34
|
+
<Route
|
|
35
|
+
path="/"
|
|
36
|
+
element={<Root />}
|
|
37
|
+
children={
|
|
38
|
+
<>
|
|
39
|
+
<Route path="nodes" key="nodes">
|
|
40
|
+
<Route path=":name" element={<NodePage djClient={ DJClient.DataJunctionAPI } />} />
|
|
41
|
+
</Route>
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</DJClientContext.Provider>
|
|
43
|
+
<Route path="/" element={<ListNamespacesPage djClient={ DJClient.DataJunctionAPI }/>} key="index" />
|
|
44
|
+
<Route path="namespaces">
|
|
45
|
+
<Route
|
|
46
|
+
path=":namespace"
|
|
47
|
+
element={<NamespacePage djClient={ DJClient.DataJunctionAPI }/>}
|
|
48
|
+
key="namespaces"
|
|
49
|
+
/>
|
|
50
|
+
</Route>
|
|
51
|
+
</>
|
|
52
|
+
}
|
|
53
|
+
/>
|
|
54
|
+
<Route path="*" element={<NotFoundPage />} />
|
|
55
|
+
</Routes>
|
|
58
56
|
</BrowserRouter>
|
|
59
57
|
);
|
|
60
58
|
}
|
|
@@ -6,9 +6,8 @@ import NamespaceHeader from '../../components/NamespaceHeader';
|
|
|
6
6
|
import NodeInfoTab from './NodeInfoTab';
|
|
7
7
|
import NodeColumnTab from './NodeColumnTab';
|
|
8
8
|
import NodeLineage from './NodeGraphTab';
|
|
9
|
-
import { DataJunctionAPI } from '../../services/DJService';
|
|
10
9
|
|
|
11
|
-
export function NodePage({ djClient
|
|
10
|
+
export function NodePage({ djClient }) {
|
|
12
11
|
const [state, setState] = useState({
|
|
13
12
|
selectedTab: 0,
|
|
14
13
|
});
|