datajunction-ui 0.0.1-rc.2 → 0.0.1-rc.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datajunction-ui",
3
- "version": "0.0.1-rc.2",
3
+ "version": "0.0.1-rc.4",
4
4
  "description": "DataJunction Metrics Platform UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
@@ -41,11 +41,6 @@
41
41
  "chalk": "4.1.2",
42
42
  "cross-env": "7.0.3",
43
43
  "dagre": "^0.8.5",
44
- "eslint-config-prettier": "8.5.0",
45
- "eslint-plugin-prettier": "4.2.1",
46
- "eslint-plugin-react-hooks": "4.6.0",
47
- "fbemitter": "3.0.0",
48
- "flux": "4.0.4",
49
44
  "fontfaceobserver": "2.3.0",
50
45
  "husky": "8.0.1",
51
46
  "i18next": "21.9.2",
@@ -151,6 +146,9 @@
151
146
  },
152
147
  "devDependencies": {
153
148
  "@babel/plugin-proposal-class-properties": "7.18.6",
149
+ "eslint-config-prettier": "8.8.0",
150
+ "eslint-plugin-prettier": "4.2.1",
151
+ "eslint-plugin-react-hooks": "4.6.0",
154
152
  "html-webpack-plugin": "5.5.1",
155
153
  "jest": "^29.5.0",
156
154
  "mini-css-extract-plugin": "2.7.5"
package/src/app/index.tsx CHANGED
@@ -32,9 +32,18 @@ export function App() {
32
32
  element={<Root />}
33
33
  children={
34
34
  <>
35
- <Route path="nodes/:name" element={<NodePage />} />
36
- <Route path="namespaces" element={<ListNamespacesPage />} />
37
- <Route path="namespaces/:namespace" element={<NamespacePage />} />
35
+ <Route path="nodes" key="nodes">
36
+ <Route path=":name" element={<NodePage />} />
37
+ </Route>
38
+
39
+ <Route path="/" element={<ListNamespacesPage />} key="index" />
40
+ <Route path="namespaces">
41
+ <Route
42
+ path=":namespace"
43
+ element={<NamespacePage />}
44
+ key="namespaces"
45
+ />
46
+ </Route>
38
47
  </>
39
48
  }
40
49
  />
package/tsconfig.json CHANGED
@@ -21,11 +21,7 @@
21
21
  "removeComments": true,
22
22
  "sourceMap": true
23
23
  },
24
- "include": [
25
- "src/**/*.ts",
26
- "src/**/*.tsx",
27
- "internals/startingTemplate/**/*"
28
- ],
24
+ "include": ["src/**/*.ts", "src/**/*.tsx", "internals/startingTemplate/**/*"],
29
25
  "ts-node": {
30
26
  "compilerOptions": {
31
27
  "esModuleInterop": true,
package/webpack.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const path = require('path');
2
2
  const HtmlWebpackPlugin = require('html-webpack-plugin');
3
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3
+ // const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
4
 
5
5
  var babelOptions = {
6
6
  presets: ['@babel/preset-react'],
@@ -10,7 +10,7 @@ module.exports = {
10
10
  cache: true,
11
11
  entry: {
12
12
  main: './src/index.tsx',
13
- vendor: ['events', 'fbemitter', 'flux', 'react', 'react-dom'],
13
+ vendor: ['events', 'react', 'react-dom'],
14
14
  },
15
15
  target: 'web',
16
16
  mode: 'development',
@@ -24,7 +24,9 @@ module.exports = {
24
24
  publicPath: '/',
25
25
  },
26
26
  devServer: {
27
- historyApiFallback: true,
27
+ historyApiFallback: {
28
+ disableDotRule: true,
29
+ },
28
30
  },
29
31
  resolve: {
30
32
  extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
package/dist/index.html DELETED
@@ -1 +0,0 @@
1
- <!doctype html><html lang="en"><head><base href="/"/><meta charset="utf-8"/><link rel="icon" href="public/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="public/manifest.json"/><link rel="manifest" href="src/styles/index.css"/><meta property="og:title" content="DataJunction UI"/><meta property="og:description" content=""/><title>DataJunction App</title><meta name="description" content=""/><script defer="defer" src="/static/main.05a86d446163fd5f17d3.js"></script><script defer="defer" src="/static/vendor.05a86d446163fd5f17d3.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap" rel="stylesheet"/></body></html>