@verdaccio/ui-components 5.0.0-next-9.9 → 5.0.0-next-9.11
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/build/components/AppRoute/AppRoute.js +54 -47
- package/build/components/AppRoute/AppRoute.js.map +1 -1
- package/build/components/AppRoute/AppRoute.mjs +54 -47
- package/build/components/AppRoute/AppRoute.mjs.map +1 -1
- package/build/components/Package/styles.d.ts +1 -1
- package/build/components/RawViewer/RawViewer.js +1 -2
- package/build/components/RawViewer/RawViewer.js.map +1 -1
- package/build/components/RawViewer/RawViewer.mjs +2 -3
- package/build/components/RawViewer/RawViewer.mjs.map +1 -1
- package/build/components/Readme/github-markdown.css +291 -311
- package/build/providers/AuthProvider/AuthProvider.js +11 -10
- package/build/providers/AuthProvider/AuthProvider.js.map +1 -1
- package/build/providers/AuthProvider/AuthProvider.mjs +12 -11
- package/build/providers/AuthProvider/AuthProvider.mjs.map +1 -1
- package/build/sections/Security/Login.js +4 -6
- package/build/sections/Security/Login.js.map +1 -1
- package/build/sections/Security/Login.mjs +5 -7
- package/build/sections/Security/Login.mjs.map +1 -1
- package/build/ui-components.css +291 -311
- package/build/utils/url.js +2 -3
- package/build/utils/url.js.map +1 -1
- package/build/utils/url.mjs +2 -3
- package/build/utils/url.mjs.map +1 -1
- package/package.json +16 -16
|
@@ -12,6 +12,7 @@ let react = require("react");
|
|
|
12
12
|
react = require_runtime.__toESM(react);
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
let react_router = require("react-router");
|
|
15
|
+
let swr = require("swr");
|
|
15
16
|
//#region src/components/AppRoute/AppRoute.tsx
|
|
16
17
|
var VersionPage = require_loadable.default(() => Promise.resolve().then(() => require("../../pages/Version/index.js")));
|
|
17
18
|
var Front = require_loadable.default(() => Promise.resolve().then(() => require("../../pages/Front/index.js")));
|
|
@@ -24,53 +25,59 @@ var AppRoute = () => {
|
|
|
24
25
|
const { configOptions } = require_AppConfigurationProvider.useConfig();
|
|
25
26
|
const createUserEnabled = configOptions?.flags?.createUser;
|
|
26
27
|
const changePasswordEnabled = configOptions?.flags?.changePassword;
|
|
27
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(swr.SWRConfig, {
|
|
29
|
+
value: {
|
|
30
|
+
revalidateOnFocus: false,
|
|
31
|
+
revalidateOnReconnect: false
|
|
32
|
+
},
|
|
33
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_router.Routes, { children: [
|
|
34
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
35
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ManifestsProvider.default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Front, {}) }),
|
|
36
|
+
path: require_routes.Route.ROOT
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
39
|
+
element: versionElement,
|
|
40
|
+
path: require_routes.Route.SCOPE_PACKAGE_VERSION
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
43
|
+
element: versionElement,
|
|
44
|
+
path: require_routes.Route.SCOPE_PACKAGE
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
47
|
+
element: versionElement,
|
|
48
|
+
path: require_routes.Route.PACKAGE_VERSION
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
51
|
+
element: versionElement,
|
|
52
|
+
path: require_routes.Route.PACKAGE
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_router.Route, {
|
|
55
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Outlet, {}),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
58
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Login, {}),
|
|
59
|
+
path: require_routes.Route.LOGIN
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
62
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Success, {}),
|
|
63
|
+
path: require_routes.Route.SUCCESS
|
|
64
|
+
}),
|
|
65
|
+
createUserEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
66
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddUser, {}),
|
|
67
|
+
path: require_routes.Route.ADD_USER
|
|
68
|
+
}),
|
|
69
|
+
changePasswordEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
70
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChangePassword, {}),
|
|
71
|
+
path: require_routes.Route.CHANGE_PASSWORD
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
|
|
76
|
+
element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_NotFound.default, {}),
|
|
77
|
+
path: "*"
|
|
78
|
+
})
|
|
79
|
+
] })
|
|
80
|
+
});
|
|
74
81
|
};
|
|
75
82
|
//#endregion
|
|
76
83
|
exports.default = AppRoute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRoute.js","names":[],"sources":["../../../src/components/AppRoute/AppRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { Outlet, Route as RouterRoute, Routes } from 'react-router';\n\nimport { ManifestsProvider, VersionProvider } from '../../providers';\nimport { useConfig } from '../../providers/AppConfigurationProvider/AppConfigurationProvider';\nimport { Route } from '../../utils';\nimport loadable from '../../utils/loadable';\nimport NotFound from '../NotFound';\n\nconst VersionPage = loadable(() => import('../../pages/Version'));\nconst Front = loadable(() => import('../../pages/Front'));\nconst Login = loadable(() => import('../../pages/Security/Login'));\nconst Success = loadable(() => import('../../pages/Security/Success'));\nconst AddUser = loadable(() => import('../../pages/Security/AddUser'));\nconst ChangePassword = loadable(() => import('../../pages/Security/ChangePassword'));\n\nconst versionElement = (\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n);\n\nconst AppRoute: React.FC = () => {\n const { configOptions } = useConfig();\n const createUserEnabled = configOptions?.flags?.createUser;\n const changePasswordEnabled = configOptions?.flags?.changePassword;\n return (\n <
|
|
1
|
+
{"version":3,"file":"AppRoute.js","names":[],"sources":["../../../src/components/AppRoute/AppRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { Outlet, Route as RouterRoute, Routes } from 'react-router';\nimport { SWRConfig } from 'swr';\n\nimport { ManifestsProvider, VersionProvider } from '../../providers';\nimport { useConfig } from '../../providers/AppConfigurationProvider/AppConfigurationProvider';\nimport { Route } from '../../utils';\nimport loadable from '../../utils/loadable';\nimport NotFound from '../NotFound';\n\nconst VersionPage = loadable(() => import('../../pages/Version'));\nconst Front = loadable(() => import('../../pages/Front'));\nconst Login = loadable(() => import('../../pages/Security/Login'));\nconst Success = loadable(() => import('../../pages/Security/Success'));\nconst AddUser = loadable(() => import('../../pages/Security/AddUser'));\nconst ChangePassword = loadable(() => import('../../pages/Security/ChangePassword'));\n\nconst versionElement = (\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n);\n\nconst AppRoute: React.FC = () => {\n const { configOptions } = useConfig();\n const createUserEnabled = configOptions?.flags?.createUser;\n const changePasswordEnabled = configOptions?.flags?.changePassword;\n return (\n <SWRConfig value={{ revalidateOnFocus: false, revalidateOnReconnect: false }}>\n <Routes>\n <RouterRoute\n element={\n <ManifestsProvider>\n <Front />\n </ManifestsProvider>\n }\n path={Route.ROOT}\n />\n <RouterRoute element={versionElement} path={Route.SCOPE_PACKAGE_VERSION} />\n <RouterRoute element={versionElement} path={Route.SCOPE_PACKAGE} />\n <RouterRoute element={versionElement} path={Route.PACKAGE_VERSION} />\n <RouterRoute element={versionElement} path={Route.PACKAGE} />\n <RouterRoute element={<Outlet />}>\n <RouterRoute element={<Login />} path={Route.LOGIN} />\n <RouterRoute element={<Success />} path={Route.SUCCESS} />\n {createUserEnabled && <RouterRoute element={<AddUser />} path={Route.ADD_USER} />}\n {changePasswordEnabled && (\n <RouterRoute element={<ChangePassword />} path={Route.CHANGE_PASSWORD} />\n )}\n </RouterRoute>\n <RouterRoute element={<NotFound />} path=\"*\" />\n </Routes>\n </SWRConfig>\n );\n};\n\nexport default AppRoute;\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAM,cAAc,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,+BAAA,CAAA,CAA8B;AACjE,IAAM,QAAQ,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,6BAAA,CAAA,CAA4B;AACzD,IAAM,QAAQ,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,gCAAA,CAAA,CAAqC;AAClE,IAAM,UAAU,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,kCAAA,CAAA,CAAuC;AACtE,IAAM,UAAU,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,kCAAA,CAAA,CAAuC;AACtE,IAAM,iBAAiB,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,yCAAA,CAAA,CAA8C;AAEpF,IAAM,iBACJ,iBAAA,GAAA,kBAAA,KAAC,wBAAA,SAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,aAAD,EAAe,CAAA,EACC,CAAA;AAGpB,IAAM,iBAA2B;CAC/B,MAAM,EAAE,kBAAkB,iCAAA,WAAW;CACrC,MAAM,oBAAoB,eAAe,OAAO;CAChD,MAAM,wBAAwB,eAAe,OAAO;AACpD,QACE,iBAAA,GAAA,kBAAA,KAAC,IAAA,WAAD;EAAW,OAAO;GAAE,mBAAmB;GAAO,uBAAuB;GAAO;YAC1E,iBAAA,GAAA,kBAAA,MAAC,aAAA,QAAD,EAAA,UAAA;GACE,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;IACE,SACE,iBAAA,GAAA,kBAAA,KAAC,0BAAA,SAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAS,CAAA,EACS,CAAA;IAEtB,MAAM,eAAA,MAAM;IACZ,CAAA;GACF,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;IAAa,SAAS;IAAgB,MAAM,eAAA,MAAM;IAAyB,CAAA;GAC3E,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;IAAa,SAAS;IAAgB,MAAM,eAAA,MAAM;IAAiB,CAAA;GACnE,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;IAAa,SAAS;IAAgB,MAAM,eAAA,MAAM;IAAmB,CAAA;GACrE,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;IAAa,SAAS;IAAgB,MAAM,eAAA,MAAM;IAAW,CAAA;GAC7D,iBAAA,GAAA,kBAAA,MAAC,aAAA,OAAD;IAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,aAAA,QAAD,EAAU,CAAA;cAAhC;KACE,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;MAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAS,CAAA;MAAE,MAAM,eAAA,MAAM;MAAS,CAAA;KACtD,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;MAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,SAAD,EAAW,CAAA;MAAE,MAAM,eAAA,MAAM;MAAW,CAAA;KACzD,qBAAqB,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;MAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,SAAD,EAAW,CAAA;MAAE,MAAM,eAAA,MAAM;MAAY,CAAA;KAChF,yBACC,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;MAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,gBAAD,EAAkB,CAAA;MAAE,MAAM,eAAA,MAAM;MAAmB,CAAA;KAE/D;;GACd,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;IAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,iBAAA,SAAD,EAAY,CAAA;IAAE,MAAK;IAAM,CAAA;GACxC,EAAA,CAAA;EACC,CAAA"}
|
|
@@ -10,6 +10,7 @@ import "../NotFound/index.mjs";
|
|
|
10
10
|
import "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { Outlet, Route, Routes } from "react-router";
|
|
13
|
+
import { SWRConfig } from "swr";
|
|
13
14
|
//#region src/components/AppRoute/AppRoute.tsx
|
|
14
15
|
var VersionPage = loadable_default(() => import("../../pages/Version/index.mjs"));
|
|
15
16
|
var Front = loadable_default(() => import("../../pages/Front/index.mjs"));
|
|
@@ -22,53 +23,59 @@ var AppRoute = () => {
|
|
|
22
23
|
const { configOptions } = useConfig();
|
|
23
24
|
const createUserEnabled = configOptions?.flags?.createUser;
|
|
24
25
|
const changePasswordEnabled = configOptions?.flags?.changePassword;
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
26
|
+
return /* @__PURE__ */ jsx(SWRConfig, {
|
|
27
|
+
value: {
|
|
28
|
+
revalidateOnFocus: false,
|
|
29
|
+
revalidateOnReconnect: false
|
|
30
|
+
},
|
|
31
|
+
children: /* @__PURE__ */ jsxs(Routes, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Route, {
|
|
33
|
+
element: /* @__PURE__ */ jsx(ManifestsProvider, { children: /* @__PURE__ */ jsx(Front, {}) }),
|
|
34
|
+
path: Route$1.ROOT
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsx(Route, {
|
|
37
|
+
element: versionElement,
|
|
38
|
+
path: Route$1.SCOPE_PACKAGE_VERSION
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx(Route, {
|
|
41
|
+
element: versionElement,
|
|
42
|
+
path: Route$1.SCOPE_PACKAGE
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ jsx(Route, {
|
|
45
|
+
element: versionElement,
|
|
46
|
+
path: Route$1.PACKAGE_VERSION
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ jsx(Route, {
|
|
49
|
+
element: versionElement,
|
|
50
|
+
path: Route$1.PACKAGE
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsxs(Route, {
|
|
53
|
+
element: /* @__PURE__ */ jsx(Outlet, {}),
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Route, {
|
|
56
|
+
element: /* @__PURE__ */ jsx(Login, {}),
|
|
57
|
+
path: Route$1.LOGIN
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx(Route, {
|
|
60
|
+
element: /* @__PURE__ */ jsx(Success, {}),
|
|
61
|
+
path: Route$1.SUCCESS
|
|
62
|
+
}),
|
|
63
|
+
createUserEnabled && /* @__PURE__ */ jsx(Route, {
|
|
64
|
+
element: /* @__PURE__ */ jsx(AddUser, {}),
|
|
65
|
+
path: Route$1.ADD_USER
|
|
66
|
+
}),
|
|
67
|
+
changePasswordEnabled && /* @__PURE__ */ jsx(Route, {
|
|
68
|
+
element: /* @__PURE__ */ jsx(ChangePassword, {}),
|
|
69
|
+
path: Route$1.CHANGE_PASSWORD
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsx(Route, {
|
|
74
|
+
element: /* @__PURE__ */ jsx(NotFound, {}),
|
|
75
|
+
path: "*"
|
|
76
|
+
})
|
|
77
|
+
] })
|
|
78
|
+
});
|
|
72
79
|
};
|
|
73
80
|
//#endregion
|
|
74
81
|
export { AppRoute as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRoute.mjs","names":[],"sources":["../../../src/components/AppRoute/AppRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { Outlet, Route as RouterRoute, Routes } from 'react-router';\n\nimport { ManifestsProvider, VersionProvider } from '../../providers';\nimport { useConfig } from '../../providers/AppConfigurationProvider/AppConfigurationProvider';\nimport { Route } from '../../utils';\nimport loadable from '../../utils/loadable';\nimport NotFound from '../NotFound';\n\nconst VersionPage = loadable(() => import('../../pages/Version'));\nconst Front = loadable(() => import('../../pages/Front'));\nconst Login = loadable(() => import('../../pages/Security/Login'));\nconst Success = loadable(() => import('../../pages/Security/Success'));\nconst AddUser = loadable(() => import('../../pages/Security/AddUser'));\nconst ChangePassword = loadable(() => import('../../pages/Security/ChangePassword'));\n\nconst versionElement = (\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n);\n\nconst AppRoute: React.FC = () => {\n const { configOptions } = useConfig();\n const createUserEnabled = configOptions?.flags?.createUser;\n const changePasswordEnabled = configOptions?.flags?.changePassword;\n return (\n <
|
|
1
|
+
{"version":3,"file":"AppRoute.mjs","names":[],"sources":["../../../src/components/AppRoute/AppRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { Outlet, Route as RouterRoute, Routes } from 'react-router';\nimport { SWRConfig } from 'swr';\n\nimport { ManifestsProvider, VersionProvider } from '../../providers';\nimport { useConfig } from '../../providers/AppConfigurationProvider/AppConfigurationProvider';\nimport { Route } from '../../utils';\nimport loadable from '../../utils/loadable';\nimport NotFound from '../NotFound';\n\nconst VersionPage = loadable(() => import('../../pages/Version'));\nconst Front = loadable(() => import('../../pages/Front'));\nconst Login = loadable(() => import('../../pages/Security/Login'));\nconst Success = loadable(() => import('../../pages/Security/Success'));\nconst AddUser = loadable(() => import('../../pages/Security/AddUser'));\nconst ChangePassword = loadable(() => import('../../pages/Security/ChangePassword'));\n\nconst versionElement = (\n <VersionProvider>\n <VersionPage />\n </VersionProvider>\n);\n\nconst AppRoute: React.FC = () => {\n const { configOptions } = useConfig();\n const createUserEnabled = configOptions?.flags?.createUser;\n const changePasswordEnabled = configOptions?.flags?.changePassword;\n return (\n <SWRConfig value={{ revalidateOnFocus: false, revalidateOnReconnect: false }}>\n <Routes>\n <RouterRoute\n element={\n <ManifestsProvider>\n <Front />\n </ManifestsProvider>\n }\n path={Route.ROOT}\n />\n <RouterRoute element={versionElement} path={Route.SCOPE_PACKAGE_VERSION} />\n <RouterRoute element={versionElement} path={Route.SCOPE_PACKAGE} />\n <RouterRoute element={versionElement} path={Route.PACKAGE_VERSION} />\n <RouterRoute element={versionElement} path={Route.PACKAGE} />\n <RouterRoute element={<Outlet />}>\n <RouterRoute element={<Login />} path={Route.LOGIN} />\n <RouterRoute element={<Success />} path={Route.SUCCESS} />\n {createUserEnabled && <RouterRoute element={<AddUser />} path={Route.ADD_USER} />}\n {changePasswordEnabled && (\n <RouterRoute element={<ChangePassword />} path={Route.CHANGE_PASSWORD} />\n )}\n </RouterRoute>\n <RouterRoute element={<NotFound />} path=\"*\" />\n </Routes>\n </SWRConfig>\n );\n};\n\nexport default AppRoute;\n"],"mappings":";;;;;;;;;;;;;;AAUA,IAAM,cAAc,uBAAe,OAAO,iCAAuB;AACjE,IAAM,QAAQ,uBAAe,OAAO,+BAAqB;AACzD,IAAM,QAAQ,uBAAe,OAAO,kCAA8B;AAClE,IAAM,UAAU,uBAAe,OAAO,oCAAgC;AACtE,IAAM,UAAU,uBAAe,OAAO,oCAAgC;AACtE,IAAM,iBAAiB,uBAAe,OAAO,2CAAuC;AAEpF,IAAM,iBACJ,oBAAC,iBAAD,EAAA,UACE,oBAAC,aAAD,EAAe,CAAA,EACC,CAAA;AAGpB,IAAM,iBAA2B;CAC/B,MAAM,EAAE,kBAAkB,WAAW;CACrC,MAAM,oBAAoB,eAAe,OAAO;CAChD,MAAM,wBAAwB,eAAe,OAAO;AACpD,QACE,oBAAC,WAAD;EAAW,OAAO;GAAE,mBAAmB;GAAO,uBAAuB;GAAO;YAC1E,qBAAC,QAAD,EAAA,UAAA;GACE,oBAAC,OAAD;IACE,SACE,oBAAC,mBAAD,EAAA,UACE,oBAAC,OAAD,EAAS,CAAA,EACS,CAAA;IAEtB,MAAM,QAAM;IACZ,CAAA;GACF,oBAAC,OAAD;IAAa,SAAS;IAAgB,MAAM,QAAM;IAAyB,CAAA;GAC3E,oBAAC,OAAD;IAAa,SAAS;IAAgB,MAAM,QAAM;IAAiB,CAAA;GACnE,oBAAC,OAAD;IAAa,SAAS;IAAgB,MAAM,QAAM;IAAmB,CAAA;GACrE,oBAAC,OAAD;IAAa,SAAS;IAAgB,MAAM,QAAM;IAAW,CAAA;GAC7D,qBAAC,OAAD;IAAa,SAAS,oBAAC,QAAD,EAAU,CAAA;cAAhC;KACE,oBAAC,OAAD;MAAa,SAAS,oBAAC,OAAD,EAAS,CAAA;MAAE,MAAM,QAAM;MAAS,CAAA;KACtD,oBAAC,OAAD;MAAa,SAAS,oBAAC,SAAD,EAAW,CAAA;MAAE,MAAM,QAAM;MAAW,CAAA;KACzD,qBAAqB,oBAAC,OAAD;MAAa,SAAS,oBAAC,SAAD,EAAW,CAAA;MAAE,MAAM,QAAM;MAAY,CAAA;KAChF,yBACC,oBAAC,OAAD;MAAa,SAAS,oBAAC,gBAAD,EAAkB,CAAA;MAAE,MAAM,QAAM;MAAmB,CAAA;KAE/D;;GACd,oBAAC,OAAD;IAAa,SAAS,oBAAC,UAAD,EAAY,CAAA;IAAE,MAAK;IAAM,CAAA;GACxC,EAAA,CAAA;EACC,CAAA"}
|
|
@@ -17,7 +17,7 @@ export declare const Author: import('@emotion/styled').StyledComponent<{
|
|
|
17
17
|
theme?: import('@emotion/react').Theme;
|
|
18
18
|
as?: React.ElementType;
|
|
19
19
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
-
export declare const Avatar: import('@emotion/styled').StyledComponent<import('@mui/material/Avatar').AvatarOwnProps & import('@mui/material/Avatar').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "className" | "classes" | "sx" | "variant" | "slots" | "slotProps" | "
|
|
20
|
+
export declare const Avatar: import('@emotion/styled').StyledComponent<import('@mui/material/Avatar').AvatarOwnProps & import('@mui/material/Avatar').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "style" | "className" | "classes" | "sx" | "variant" | "slots" | "slotProps" | "src" | "alt" | "imgProps" | "sizes" | "srcSet"> & {
|
|
21
21
|
theme?: import('@emotion/react').Theme;
|
|
22
22
|
}, {}, {}>;
|
|
23
23
|
export declare const WrapperLink: import('@emotion/styled').StyledComponent<import('react-router').LinkProps & import('react').RefAttributes<HTMLAnchorElement> & {
|
|
@@ -17,7 +17,6 @@ _mui_material_DialogTitle = require_runtime.__toESM(_mui_material_DialogTitle);
|
|
|
17
17
|
let _mui_material_styles = require("@mui/material/styles");
|
|
18
18
|
let react_i18next = require("react-i18next");
|
|
19
19
|
//#region src/components/RawViewer/RawViewer.tsx
|
|
20
|
-
var ReactJson = _microlink_react_json_view.default ?? _microlink_react_json_view.reactJsonView ?? _microlink_react_json_view;
|
|
21
20
|
var ViewerTitle = (props) => {
|
|
22
21
|
const { children, onClose } = props;
|
|
23
22
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mui_material_DialogTitle.default, {
|
|
@@ -50,7 +49,7 @@ var RawViewer = ({ isOpen = false, onClose, packageMeta }) => {
|
|
|
50
49
|
id: "viewer-title",
|
|
51
50
|
onClose,
|
|
52
51
|
children: t("action-bar-action.raw-title", { package: packageMeta.latest.name })
|
|
53
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_DialogContent.default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
52
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mui_material_DialogContent.default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_microlink_react_json_view.default, {
|
|
54
53
|
collapseStringsAfterLength: 200,
|
|
55
54
|
collapsed: 2,
|
|
56
55
|
enableClipboard: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawViewer.js","names":[],"sources":["../../../src/components/RawViewer/RawViewer.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"RawViewer.js","names":[],"sources":["../../../src/components/RawViewer/RawViewer.tsx"],"sourcesContent":["import ReactJsonView from '@microlink/react-json-view';\nimport CloseIcon from '@mui/icons-material/Close';\nimport Dialog from '@mui/material/Dialog';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport IconButton from '@mui/material/IconButton';\nimport { useTheme } from '@mui/material/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { Theme } from '../../Theme';\n\nexport interface ViewerTitleProps {\n id: string;\n children?: React.ReactNode;\n onClose: () => void;\n}\n\nconst ViewerTitle = (props: ViewerTitleProps) => {\n const { children, onClose } = props;\n\n return (\n <DialogTitle sx={{ m: 0, p: 2 }}>\n {children}\n {onClose ? (\n <IconButton\n aria-label=\"close\"\n data-testid=\"close-raw-viewer\"\n onClick={onClose}\n sx={{\n position: 'absolute',\n right: 8,\n top: 8,\n color: (theme) => theme.palette.grey[500],\n }}\n >\n <CloseIcon />\n </IconButton>\n ) : null}\n </DialogTitle>\n );\n};\n\ntype Props = {\n isOpen: boolean;\n onClose: () => void;\n packageMeta: any;\n};\n\nconst RawViewer: React.FC<Props> = ({ isOpen = false, onClose, packageMeta }) => {\n const { t } = useTranslation();\n const theme: Theme = useTheme();\n return (\n <Dialog data-testid={'rawViewer--dialog'} fullScreen={true} open={isOpen}>\n <ViewerTitle id=\"viewer-title\" onClose={onClose}>\n {t('action-bar-action.raw-title', { package: packageMeta.latest.name })}\n </ViewerTitle>\n <DialogContent>\n <ReactJsonView\n collapseStringsAfterLength={200}\n collapsed={2}\n enableClipboard={true}\n groupArraysAfterLength={10}\n src={packageMeta as any}\n theme={theme.palette.mode == 'light' ? 'bright:inverted' : 'bright'}\n />\n </DialogContent>\n </Dialog>\n );\n};\n\nexport default RawViewer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,IAAM,eAAe,UAA4B;CAC/C,MAAM,EAAE,UAAU,YAAY;AAE9B,QACE,iBAAA,GAAA,kBAAA,MAAC,0BAAA,SAAD;EAAa,IAAI;GAAE,GAAG;GAAG,GAAG;GAAG;YAA/B,CACG,UACA,UACC,iBAAA,GAAA,kBAAA,KAAC,yBAAA,SAAD;GACE,cAAW;GACX,eAAY;GACZ,SAAS;GACT,IAAI;IACF,UAAU;IACV,OAAO;IACP,KAAK;IACL,QAAQ,UAAU,MAAM,QAAQ,KAAK;IACtC;aAED,iBAAA,GAAA,kBAAA,KAAC,0BAAA,SAAD,EAAa,CAAA;GACF,CAAA,GACX,KACQ;;;AAUlB,IAAM,aAA8B,EAAE,SAAS,OAAO,SAAS,kBAAkB;CAC/E,MAAM,EAAE,OAAA,GAAA,cAAA,iBAAsB;CAC9B,MAAM,SAAA,GAAA,qBAAA,WAAyB;AAC/B,QACE,iBAAA,GAAA,kBAAA,MAAC,qBAAA,SAAD;EAAQ,eAAa;EAAqB,YAAY;EAAM,MAAM;YAAlE,CACE,iBAAA,GAAA,kBAAA,KAAC,aAAD;GAAa,IAAG;GAAwB;aACrC,EAAE,+BAA+B,EAAE,SAAS,YAAY,OAAO,MAAM,CAAC;GAC3D,CAAA,EACd,iBAAA,GAAA,kBAAA,KAAC,4BAAA,SAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,2BAAA,SAAD;GACE,4BAA4B;GAC5B,WAAW;GACX,iBAAiB;GACjB,wBAAwB;GACxB,KAAK;GACL,OAAO,MAAM,QAAQ,QAAQ,UAAU,oBAAoB;GAC3D,CAAA,EACY,CAAA,CACT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import IconButton from "@mui/material/IconButton";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import ReactJsonView from "@microlink/react-json-view";
|
|
5
5
|
import CloseIcon from "@mui/icons-material/Close";
|
|
6
6
|
import Dialog from "@mui/material/Dialog";
|
|
7
7
|
import DialogContent from "@mui/material/DialogContent";
|
|
@@ -9,7 +9,6 @@ import DialogTitle from "@mui/material/DialogTitle";
|
|
|
9
9
|
import { useTheme } from "@mui/material/styles";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/RawViewer/RawViewer.tsx
|
|
12
|
-
var ReactJson = ReactJsonViewModule.default ?? ReactJsonViewModule.reactJsonView ?? ReactJsonViewModule;
|
|
13
12
|
var ViewerTitle = (props) => {
|
|
14
13
|
const { children, onClose } = props;
|
|
15
14
|
return /* @__PURE__ */ jsxs(DialogTitle, {
|
|
@@ -42,7 +41,7 @@ var RawViewer = ({ isOpen = false, onClose, packageMeta }) => {
|
|
|
42
41
|
id: "viewer-title",
|
|
43
42
|
onClose,
|
|
44
43
|
children: t("action-bar-action.raw-title", { package: packageMeta.latest.name })
|
|
45
|
-
}), /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(
|
|
44
|
+
}), /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(ReactJsonView, {
|
|
46
45
|
collapseStringsAfterLength: 200,
|
|
47
46
|
collapsed: 2,
|
|
48
47
|
enableClipboard: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawViewer.mjs","names":[],"sources":["../../../src/components/RawViewer/RawViewer.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"RawViewer.mjs","names":[],"sources":["../../../src/components/RawViewer/RawViewer.tsx"],"sourcesContent":["import ReactJsonView from '@microlink/react-json-view';\nimport CloseIcon from '@mui/icons-material/Close';\nimport Dialog from '@mui/material/Dialog';\nimport DialogContent from '@mui/material/DialogContent';\nimport DialogTitle from '@mui/material/DialogTitle';\nimport IconButton from '@mui/material/IconButton';\nimport { useTheme } from '@mui/material/styles';\nimport React from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { Theme } from '../../Theme';\n\nexport interface ViewerTitleProps {\n id: string;\n children?: React.ReactNode;\n onClose: () => void;\n}\n\nconst ViewerTitle = (props: ViewerTitleProps) => {\n const { children, onClose } = props;\n\n return (\n <DialogTitle sx={{ m: 0, p: 2 }}>\n {children}\n {onClose ? (\n <IconButton\n aria-label=\"close\"\n data-testid=\"close-raw-viewer\"\n onClick={onClose}\n sx={{\n position: 'absolute',\n right: 8,\n top: 8,\n color: (theme) => theme.palette.grey[500],\n }}\n >\n <CloseIcon />\n </IconButton>\n ) : null}\n </DialogTitle>\n );\n};\n\ntype Props = {\n isOpen: boolean;\n onClose: () => void;\n packageMeta: any;\n};\n\nconst RawViewer: React.FC<Props> = ({ isOpen = false, onClose, packageMeta }) => {\n const { t } = useTranslation();\n const theme: Theme = useTheme();\n return (\n <Dialog data-testid={'rawViewer--dialog'} fullScreen={true} open={isOpen}>\n <ViewerTitle id=\"viewer-title\" onClose={onClose}>\n {t('action-bar-action.raw-title', { package: packageMeta.latest.name })}\n </ViewerTitle>\n <DialogContent>\n <ReactJsonView\n collapseStringsAfterLength={200}\n collapsed={2}\n enableClipboard={true}\n groupArraysAfterLength={10}\n src={packageMeta as any}\n theme={theme.palette.mode == 'light' ? 'bright:inverted' : 'bright'}\n />\n </DialogContent>\n </Dialog>\n );\n};\n\nexport default RawViewer;\n"],"mappings":";;;;;;;;;;;AAkBA,IAAM,eAAe,UAA4B;CAC/C,MAAM,EAAE,UAAU,YAAY;AAE9B,QACE,qBAAC,aAAD;EAAa,IAAI;GAAE,GAAG;GAAG,GAAG;GAAG;YAA/B,CACG,UACA,UACC,oBAAC,YAAD;GACE,cAAW;GACX,eAAY;GACZ,SAAS;GACT,IAAI;IACF,UAAU;IACV,OAAO;IACP,KAAK;IACL,QAAQ,UAAU,MAAM,QAAQ,KAAK;IACtC;aAED,oBAAC,WAAD,EAAa,CAAA;GACF,CAAA,GACX,KACQ;;;AAUlB,IAAM,aAA8B,EAAE,SAAS,OAAO,SAAS,kBAAkB;CAC/E,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,QAAe,UAAU;AAC/B,QACE,qBAAC,QAAD;EAAQ,eAAa;EAAqB,YAAY;EAAM,MAAM;YAAlE,CACE,oBAAC,aAAD;GAAa,IAAG;GAAwB;aACrC,EAAE,+BAA+B,EAAE,SAAS,YAAY,OAAO,MAAM,CAAC;GAC3D,CAAA,EACd,oBAAC,eAAD,EAAA,UACE,oBAAC,eAAD;GACE,4BAA4B;GAC5B,WAAW;GACX,iBAAiB;GACjB,wBAAwB;GACxB,KAAK;GACL,OAAO,MAAM,QAAQ,QAAQ,UAAU,oBAAoB;GAC3D,CAAA,EACY,CAAA,CACT"}
|