@verdaccio/ui-components 5.0.0-next-9.8 → 5.0.0-next-9.10

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.
Files changed (261) hide show
  1. package/build/Theme/ResetStyles.d.ts +1 -1
  2. package/build/Theme/StyleBaseline.d.ts +1 -2
  3. package/build/Theme/ThemeProvider.d.ts +1 -1
  4. package/build/Theme/modes.d.ts +13 -1
  5. package/build/Theme/modes.js +18 -3
  6. package/build/Theme/modes.js.map +1 -1
  7. package/build/Theme/modes.mjs +16 -2
  8. package/build/Theme/modes.mjs.map +1 -1
  9. package/build/Theme/theme.d.ts +27 -3
  10. package/build/Theme/theme.js.map +1 -1
  11. package/build/Theme/theme.mjs.map +1 -1
  12. package/build/api/use-data-mutation.d.ts +3 -3
  13. package/build/api/use-data.d.ts +2 -2
  14. package/build/components/ActionBar/ActionBar.d.ts +1 -1
  15. package/build/components/ActionBar/ActionBarAction.d.ts +7 -2
  16. package/build/components/ActionBar/ActionBarAction.mjs +2 -2
  17. package/build/components/ActionBar/ActionBarAction.mjs.map +1 -1
  18. package/build/components/AppRoute/AppRoute.d.ts +1 -1
  19. package/build/components/AppRoute/AppRoute.js +54 -47
  20. package/build/components/AppRoute/AppRoute.js.map +1 -1
  21. package/build/components/AppRoute/AppRoute.mjs +54 -47
  22. package/build/components/AppRoute/AppRoute.mjs.map +1 -1
  23. package/build/components/Author/Author.d.ts +1 -1
  24. package/build/components/Author/styles.d.ts +9 -2
  25. package/build/components/CopyClipboard/CopyToClipBoard.d.ts +1 -1
  26. package/build/components/CopyClipboard/utils.d.ts +1 -1
  27. package/build/components/Dependencies/Dependencies.d.ts +1 -1
  28. package/build/components/Dependencies/DependencyBlock.d.ts +15 -7
  29. package/build/components/Dependencies/DependencyBlock.mjs +2 -2
  30. package/build/components/Dependencies/DependencyBlock.mjs.map +1 -1
  31. package/build/components/Dependencies/index.js +1 -1
  32. package/build/components/Dependencies/types.d.ts +1 -1
  33. package/build/components/Deprecated/Deprecated.d.ts +1 -1
  34. package/build/components/Developers/Developers.d.ts +8 -3
  35. package/build/components/Developers/Title.d.ts +1 -1
  36. package/build/components/Developers/Title.mjs +2 -2
  37. package/build/components/Developers/Title.mjs.map +1 -1
  38. package/build/components/Developers/get-unique-developer-values.d.ts +1 -1
  39. package/build/components/Distribution/Dist.d.ts +2 -2
  40. package/build/components/Distribution/styles.d.ts +12 -3
  41. package/build/components/Distribution/styles.mjs +2 -2
  42. package/build/components/Distribution/styles.mjs.map +1 -1
  43. package/build/components/Engines/Engines.d.ts +2 -2
  44. package/build/components/Engines/styles.d.ts +9 -2
  45. package/build/components/Engines/styles.mjs +2 -2
  46. package/build/components/Engines/styles.mjs.map +1 -1
  47. package/build/components/ErrorBoundary/ErrorBoundary.d.ts +1 -2
  48. package/build/components/Forbidden/Forbidden.d.ts +1 -1
  49. package/build/components/FundButton/FundButton.d.ts +1 -1
  50. package/build/components/FundButton/FundButton.js +1 -1
  51. package/build/components/FundButton/FundButton.js.map +1 -1
  52. package/build/components/FundButton/FundButton.mjs +1 -1
  53. package/build/components/FundButton/FundButton.mjs.map +1 -1
  54. package/build/components/HeaderInfoDialog/HeaderInfoDialog.d.ts +1 -1
  55. package/build/components/Heading/Heading.d.ts +2 -2
  56. package/build/components/Heading/Heading.mjs +2 -2
  57. package/build/components/Heading/Heading.mjs.map +1 -1
  58. package/build/components/Help/Help.d.ts +1 -1
  59. package/build/components/Help/Help.mjs +3 -3
  60. package/build/components/Help/Help.mjs.map +1 -1
  61. package/build/components/Help/styles.d.ts +3 -1
  62. package/build/components/Icons/DevsIcons/CommonJS.d.ts +1 -1
  63. package/build/components/Icons/DevsIcons/ES6Module.d.ts +1 -1
  64. package/build/components/Icons/DevsIcons/Git.d.ts +1 -1
  65. package/build/components/Icons/DevsIcons/NodeJS.d.ts +1 -1
  66. package/build/components/Icons/DevsIcons/TypeScript.d.ts +1 -1
  67. package/build/components/Icons/DevsIcons/commonjs.svg +4 -0
  68. package/build/components/Icons/DevsIcons/es6module.svg +4 -0
  69. package/build/components/Icons/DevsIcons/git.svg +4 -0
  70. package/build/components/Icons/DevsIcons/nodejs.svg +6 -0
  71. package/build/components/Icons/DevsIcons/typescript.svg +4 -0
  72. package/build/components/Icons/Earth.d.ts +1 -1
  73. package/build/components/Icons/FileBinary.d.ts +1 -1
  74. package/build/components/Icons/Law.d.ts +1 -1
  75. package/build/components/Icons/License.d.ts +1 -1
  76. package/build/components/Icons/Managers/Npm.d.ts +1 -1
  77. package/build/components/Icons/Managers/Pnpm.d.ts +1 -1
  78. package/build/components/Icons/Managers/Yarn.d.ts +1 -1
  79. package/build/components/Icons/Managers/npm.svg +15 -0
  80. package/build/components/Icons/Managers/pnpm.svg +1 -0
  81. package/build/components/Icons/Managers/yarn.svg +1 -0
  82. package/build/components/Icons/SvgIcon.d.ts +2 -2
  83. package/build/components/Icons/Time.d.ts +1 -1
  84. package/build/components/Icons/Version.d.ts +1 -1
  85. package/build/components/Install/Install.d.ts +3 -3
  86. package/build/components/Install/InstallListItem.d.ts +1 -1
  87. package/build/components/Keywords/KeywordListItems.d.ts +1 -1
  88. package/build/components/Keywords/Keywords.d.ts +2 -2
  89. package/build/components/Keywords/Keywords.mjs +2 -2
  90. package/build/components/Keywords/Keywords.mjs.map +1 -1
  91. package/build/components/Label/Label.d.ts +2 -2
  92. package/build/components/Link/Link.d.ts +1 -1
  93. package/build/components/Link/Link.mjs +2 -2
  94. package/build/components/Link/Link.mjs.map +1 -1
  95. package/build/components/LinkExternal/LinkExternal.d.ts +1 -1
  96. package/build/components/Loading/Loading.d.ts +1 -1
  97. package/build/components/Loading/Spinner/Spinner.d.ts +1 -1
  98. package/build/components/Loading/styles.d.ts +7 -7
  99. package/build/components/LoginDialog/LoginDialog.d.ts +1 -1
  100. package/build/components/LoginDialog/LoginDialogCloseButton.d.ts +1 -1
  101. package/build/components/LoginDialog/LoginDialogCloseButton.js +2 -2
  102. package/build/components/LoginDialog/LoginDialogCloseButton.js.map +1 -1
  103. package/build/components/LoginDialog/LoginDialogCloseButton.mjs +2 -2
  104. package/build/components/LoginDialog/LoginDialogCloseButton.mjs.map +1 -1
  105. package/build/components/LoginDialog/LoginDialogForm.d.ts +1 -1
  106. package/build/components/LoginDialog/LoginDialogFormError.d.ts +1 -1
  107. package/build/components/LoginForm/Login.d.ts +2 -2
  108. package/build/components/LoginForm/Login.mjs +2 -2
  109. package/build/components/LoginForm/Login.mjs.map +1 -1
  110. package/build/components/LoginForm/PasswordField.d.ts +3 -3
  111. package/build/components/LoginForm/UsernameField.d.ts +3 -3
  112. package/build/components/LoginForm/styles.d.ts +1 -1
  113. package/build/components/LoginForm/styles.js +2 -2
  114. package/build/components/LoginForm/styles.js.map +1 -1
  115. package/build/components/LoginForm/styles.mjs +2 -2
  116. package/build/components/LoginForm/styles.mjs.map +1 -1
  117. package/build/components/LoginForm/useLoginForm.d.ts +17 -17
  118. package/build/components/Logo/Logo.d.ts +1 -1
  119. package/build/components/Logo/img/logo-black-and-white.svg +1 -0
  120. package/build/components/Logo/img/logo.svg +1 -0
  121. package/build/components/MenuItem/MenuItem.d.ts +2 -2
  122. package/build/components/NoItems/NoItems.d.ts +1 -1
  123. package/build/components/NoItems/NoItems.mjs +2 -2
  124. package/build/components/NoItems/NoItems.mjs.map +1 -1
  125. package/build/components/NotFound/NotFound.d.ts +1 -1
  126. package/build/components/NotFound/img/package.svg +1 -0
  127. package/build/components/Package/Package.d.ts +3 -3
  128. package/build/components/Package/Package.js.map +1 -1
  129. package/build/components/Package/Package.mjs +2 -2
  130. package/build/components/Package/Package.mjs.map +1 -1
  131. package/build/components/Package/styles.d.ts +39 -29
  132. package/build/components/PackageList/PackageList.d.ts +2 -2
  133. package/build/components/Person/Person.d.ts +2 -2
  134. package/build/components/Person/PersonTooltip.d.ts +2 -2
  135. package/build/components/Person/PersonTooltip.mjs +2 -2
  136. package/build/components/Person/PersonTooltip.mjs.map +1 -1
  137. package/build/components/Person/utils.d.ts +1 -1
  138. package/build/components/RawViewer/RawViewer.d.ts +1 -1
  139. package/build/components/Readme/Readme.d.ts +2 -5
  140. package/build/components/Readme/Readme.js +6 -6
  141. package/build/components/Readme/Readme.js.map +1 -1
  142. package/build/components/Readme/Readme.mjs +6 -6
  143. package/build/components/Readme/Readme.mjs.map +1 -1
  144. package/build/components/Readme/github-markdown.css +1592 -0
  145. package/build/components/Readme/hljs-github-dark.css +117 -0
  146. package/build/components/Readme/hljs-github-light.css +117 -0
  147. package/build/components/RegistryInfoDialog/RegistryInfoDialog.d.ts +2 -2
  148. package/build/components/RegistryInfoDialog/styles.d.ts +11 -7
  149. package/build/components/RegistryInfoDialog/types.d.ts +1 -1
  150. package/build/components/Repository/Repository.d.ts +1 -1
  151. package/build/components/Repository/Repository.mjs +2 -2
  152. package/build/components/Repository/Repository.mjs.map +1 -1
  153. package/build/components/Search/AutoComplete/AutoComplete.d.ts +2 -3
  154. package/build/components/Search/AutoComplete/styles.d.ts +3 -3
  155. package/build/components/Search/Search.d.ts +1 -1
  156. package/build/components/Search/SearchItem.d.ts +4 -4
  157. package/build/components/Search/styles.d.ts +10 -6
  158. package/build/components/SettingsMenu/SettingsMenu.d.ts +1 -1
  159. package/build/components/SideBarTitle/SideBarTitle.d.ts +1 -1
  160. package/build/components/UnAuthorized/UnAuthorized.d.ts +1 -1
  161. package/build/components/UpLinks/UpLinks.d.ts +1 -1
  162. package/build/components/UpLinks/UplinkLink.d.ts +1 -1
  163. package/build/components/UpLinks/index.js +1 -1
  164. package/build/components/UpLinks/styles.d.ts +11 -7
  165. package/build/components/UpLinks/styles.mjs +2 -2
  166. package/build/components/UpLinks/styles.mjs.map +1 -1
  167. package/build/components/Versions/HistoryList.d.ts +2 -2
  168. package/build/components/Versions/TagList.d.ts +2 -2
  169. package/build/components/Versions/Versions.d.ts +7 -2
  170. package/build/components/Versions/Versions.mjs +2 -2
  171. package/build/components/Versions/Versions.mjs.map +1 -1
  172. package/build/components/Versions/index.js +1 -1
  173. package/build/components/Versions/styles.d.ts +6 -6
  174. package/build/components/Versions/types.d.ts +1 -1
  175. package/build/configuration.d.ts +1 -1
  176. package/build/hooks/useOnClickOutside.d.ts +1 -1
  177. package/build/index.d.ts +0 -3
  178. package/build/index.js +59 -62
  179. package/build/index.mjs +2 -6
  180. package/build/layouts/Security/Dialog.d.ts +1 -1
  181. package/build/layouts/Version/Version.d.ts +1 -1
  182. package/build/pages/Front/index.js +1 -1
  183. package/build/pages/Version/Version.d.ts +1 -1
  184. package/build/pages/Version/index.js +1 -1
  185. package/build/providers/AppConfigurationProvider/AppConfigurationProvider.d.ts +2 -2
  186. package/build/providers/AuthProvider/AuthProvider.d.ts +2 -3
  187. package/build/providers/AuthProvider/AuthProvider.js +11 -10
  188. package/build/providers/AuthProvider/AuthProvider.js.map +1 -1
  189. package/build/providers/AuthProvider/AuthProvider.mjs +12 -11
  190. package/build/providers/AuthProvider/AuthProvider.mjs.map +1 -1
  191. package/build/providers/AuthProvider/types.d.ts +1 -1
  192. package/build/providers/AuthProvider/utils.d.ts +1 -1
  193. package/build/providers/DownloadProvider/DownloadProvider.d.ts +1 -2
  194. package/build/providers/ManifestsProvider/ManifestsProvider.d.ts +2 -3
  195. package/build/providers/ManifestsProvider/README.md +22 -0
  196. package/build/providers/PersistenceSettingProvider/PersistenceSettingProvider.d.ts +1 -2
  197. package/build/providers/SearchProvider/SearchProvider.d.ts +2 -3
  198. package/build/providers/TranslatorProvider/TranslatorProvider.d.ts +2 -3
  199. package/build/providers/VersionProvider/README.md +22 -0
  200. package/build/providers/VersionProvider/VersionProvider.d.ts +2 -2
  201. package/build/routes/SecurityRoutes.d.ts +1 -1
  202. package/build/sections/Detail/ContainerContent.d.ts +1 -1
  203. package/build/sections/Detail/Detail.d.ts +1 -1
  204. package/build/sections/Detail/ReadmeSection.d.ts +1 -1
  205. package/build/sections/Detail/Tabs.d.ts +1 -1
  206. package/build/sections/Footer/Footer.d.ts +1 -1
  207. package/build/sections/Footer/styles.d.ts +17 -17
  208. package/build/sections/Header/Header.d.ts +1 -1
  209. package/build/sections/Header/HeaderGreetings.d.ts +1 -1
  210. package/build/sections/Header/HeaderLeft.d.ts +1 -1
  211. package/build/sections/Header/HeaderMenu.d.ts +1 -2
  212. package/build/sections/Header/HeaderMenu.js +10 -11
  213. package/build/sections/Header/HeaderMenu.js.map +1 -1
  214. package/build/sections/Header/HeaderMenu.mjs +10 -11
  215. package/build/sections/Header/HeaderMenu.mjs.map +1 -1
  216. package/build/sections/Header/HeaderRight.d.ts +1 -1
  217. package/build/sections/Header/HeaderSettingsDialog.d.ts +1 -1
  218. package/build/sections/Header/HeaderToolTip.d.ts +2 -2
  219. package/build/sections/Header/HeaderToolTipIcon.d.ts +1 -1
  220. package/build/sections/Header/LanguageSwitch.d.ts +12 -3
  221. package/build/sections/Header/LanguageSwitch.mjs +2 -2
  222. package/build/sections/Header/LanguageSwitch.mjs.map +1 -1
  223. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.d.ts +7 -8
  224. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs +5 -5
  225. package/build/sections/Header/RegistryInfoContent/RegistryInfoContent.mjs.map +1 -1
  226. package/build/sections/Header/RegistryInfoContent/styles.d.ts +7 -7
  227. package/build/sections/Header/styles.d.ts +33 -19
  228. package/build/sections/Home/Home.d.ts +1 -1
  229. package/build/sections/Security/AddUser.d.ts +1 -1
  230. package/build/sections/Security/AddUser.js +0 -1
  231. package/build/sections/Security/AddUser.js.map +1 -1
  232. package/build/sections/Security/AddUser.mjs +0 -1
  233. package/build/sections/Security/AddUser.mjs.map +1 -1
  234. package/build/sections/Security/ChangePassword.d.ts +1 -1
  235. package/build/sections/Security/ChangePassword.js +0 -1
  236. package/build/sections/Security/ChangePassword.js.map +1 -1
  237. package/build/sections/Security/ChangePassword.mjs +0 -1
  238. package/build/sections/Security/ChangePassword.mjs.map +1 -1
  239. package/build/sections/Security/Login.d.ts +1 -1
  240. package/build/sections/Security/Login.js +4 -6
  241. package/build/sections/Security/Login.js.map +1 -1
  242. package/build/sections/Security/Login.mjs +5 -7
  243. package/build/sections/Security/Login.mjs.map +1 -1
  244. package/build/sections/Security/Success.d.ts +1 -1
  245. package/build/sections/Security/styles.d.ts +5 -3
  246. package/build/sections/Security/styles.js +1 -1
  247. package/build/sections/Security/styles.js.map +1 -1
  248. package/build/sections/Security/styles.mjs +1 -1
  249. package/build/sections/Security/styles.mjs.map +1 -1
  250. package/build/sections/SideBar/Sidebar.d.ts +1 -1
  251. package/build/types/index.d.ts +1 -1
  252. package/build/types/packageMeta.d.ts +1 -1
  253. package/build/ui-components.css +941 -313
  254. package/build/utils/cli-utils.d.ts +1 -1
  255. package/build/utils/loadable.d.ts +1 -1
  256. package/build/utils/utils.d.ts +2 -2
  257. package/package.json +7 -8
  258. package/build/pages/Security/index.js +0 -4
  259. package/build/pages/Security/index.mjs +0 -4
  260. package/build/test/i18n-config.d.ts +0 -2
  261. package/build/test/test-react-testing-library.d.ts +0 -23
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  declare const ResetStyles: React.FC<{
3
3
  children?: React.ReactNode;
4
4
  }>;
@@ -1,4 +1,3 @@
1
- import 'normalize.css';
2
- import React from 'react';
1
+ import { default as React } from 'react';
3
2
  declare const StyleBaseline: React.FC;
4
3
  export default StyleBaseline;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  interface Props {
3
3
  isDarkMode: boolean;
4
4
  setIsDarkMode: (isDarkMode: boolean) => void;
@@ -1,3 +1,15 @@
1
- import type { PaletteOptions } from '@mui/material/styles';
1
+ import { PaletteOptions } from '@mui/material/styles';
2
2
  export type ThemeMode = 'light' | 'dark';
3
+ export declare const customPaletteColors: {
4
+ readonly black: "#000";
5
+ readonly cyanBlue: "#253341";
6
+ readonly greyLight: "#d3d3d3";
7
+ readonly greyLight2: "#908ba1";
8
+ readonly greyDark2: "#586069";
9
+ readonly greyGainsboro: "#e3e3e3";
10
+ readonly greyAthens: "#d3dddd";
11
+ readonly snow: "#f9f9f9";
12
+ readonly love: "#e25555";
13
+ readonly nobel01: "#999999";
14
+ };
3
15
  export declare const getModePalette: (mode: ThemeMode, primaryColor?: string) => PaletteOptions;
@@ -1,7 +1,20 @@
1
1
  require("../_virtual/_rolldown/runtime.js");
2
2
  const require_colors = require("./colors.js");
3
+ let _mui_material_colors = require("@mui/material/colors");
3
4
  //#region src/Theme/modes.ts
4
- var DARK_MODE_PRIMARY = require("@mui/material/colors").common.white;
5
+ var customPaletteColors = {
6
+ black: "#000",
7
+ cyanBlue: "#253341",
8
+ greyLight: "#d3d3d3",
9
+ greyLight2: "#908ba1",
10
+ greyDark2: "#586069",
11
+ greyGainsboro: "#e3e3e3",
12
+ greyAthens: "#d3dddd",
13
+ snow: "#f9f9f9",
14
+ love: "#e25555",
15
+ nobel01: "#999999"
16
+ };
17
+ var DARK_MODE_PRIMARY = _mui_material_colors.common.white;
5
18
  var getModePalette = (mode, primaryColor) => {
6
19
  const basePrimary = primaryColor || require_colors.baseColors.primary.main;
7
20
  const primary = mode === "dark" ? { main: DARK_MODE_PRIMARY } : { main: basePrimary };
@@ -12,7 +25,8 @@ var getModePalette = (mode, primaryColor) => {
12
25
  background: {
13
26
  default: "#1a202c",
14
27
  paper: "#2d3748"
15
- }
28
+ },
29
+ ...customPaletteColors
16
30
  };
17
31
  return {
18
32
  mode,
@@ -21,7 +35,8 @@ var getModePalette = (mode, primaryColor) => {
21
35
  background: {
22
36
  default: "#f4f4f4",
23
37
  paper: "#ffffff"
24
- }
38
+ },
39
+ ...customPaletteColors
25
40
  };
26
41
  };
27
42
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"modes.js","names":[],"sources":["../../src/Theme/modes.ts"],"sourcesContent":["import { common } from '@mui/material/colors';\nimport type { PaletteOptions } from '@mui/material/styles';\n\nimport { baseColors } from './colors';\n\nexport type ThemeMode = 'light' | 'dark';\n\nconst DARK_MODE_PRIMARY = common.white;\n\nexport const getModePalette = (mode: ThemeMode, primaryColor?: string): PaletteOptions => {\n const basePrimary = primaryColor || baseColors.primary.main;\n const primary = mode === 'dark' ? { main: DARK_MODE_PRIMARY } : { main: basePrimary };\n\n if (mode === 'dark') {\n return {\n mode,\n primary,\n secondary: { main: '#424242' },\n background: {\n default: '#1a202c',\n paper: '#2d3748',\n },\n };\n }\n\n return {\n mode,\n primary,\n secondary: baseColors.secondary,\n background: {\n default: '#f4f4f4',\n paper: '#ffffff',\n },\n };\n};\n"],"mappings":";;;AAOA,IAAM,oDAAoB,OAAO;AAEjC,IAAa,kBAAkB,MAAiB,iBAA0C;CACxF,MAAM,cAAc,gBAAgB,eAAA,WAAW,QAAQ;CACvD,MAAM,UAAU,SAAS,SAAS,EAAE,MAAM,mBAAmB,GAAG,EAAE,MAAM,aAAa;AAErF,KAAI,SAAS,OACX,QAAO;EACL;EACA;EACA,WAAW,EAAE,MAAM,WAAW;EAC9B,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACF;AAGH,QAAO;EACL;EACA;EACA,WAAW,eAAA,WAAW;EACtB,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACF"}
1
+ {"version":3,"file":"modes.js","names":[],"sources":["../../src/Theme/modes.ts"],"sourcesContent":["import { common } from '@mui/material/colors';\nimport type { PaletteOptions } from '@mui/material/styles';\n\nimport { baseColors } from './colors';\n\nexport type ThemeMode = 'light' | 'dark';\n\nexport const customPaletteColors = {\n black: '#000',\n cyanBlue: '#253341',\n greyLight: '#d3d3d3',\n greyLight2: '#908ba1',\n greyDark2: '#586069',\n greyGainsboro: '#e3e3e3',\n greyAthens: '#d3dddd',\n snow: '#f9f9f9',\n love: '#e25555',\n nobel01: '#999999',\n} as const;\n\nconst DARK_MODE_PRIMARY = common.white;\n\nexport const getModePalette = (mode: ThemeMode, primaryColor?: string): PaletteOptions => {\n const basePrimary = primaryColor || baseColors.primary.main;\n const primary = mode === 'dark' ? { main: DARK_MODE_PRIMARY } : { main: basePrimary };\n\n if (mode === 'dark') {\n return {\n mode,\n primary,\n secondary: { main: '#424242' },\n background: {\n default: '#1a202c',\n paper: '#2d3748',\n },\n ...customPaletteColors,\n };\n }\n\n return {\n mode,\n primary,\n secondary: baseColors.secondary,\n background: {\n default: '#f4f4f4',\n paper: '#ffffff',\n },\n ...customPaletteColors,\n };\n};\n"],"mappings":";;;;AAOA,IAAa,sBAAsB;CACjC,OAAO;CACP,UAAU;CACV,WAAW;CACX,YAAY;CACZ,WAAW;CACX,eAAe;CACf,YAAY;CACZ,MAAM;CACN,MAAM;CACN,SAAS;CACV;AAED,IAAM,oBAAoB,qBAAA,OAAO;AAEjC,IAAa,kBAAkB,MAAiB,iBAA0C;CACxF,MAAM,cAAc,gBAAgB,eAAA,WAAW,QAAQ;CACvD,MAAM,UAAU,SAAS,SAAS,EAAE,MAAM,mBAAmB,GAAG,EAAE,MAAM,aAAa;AAErF,KAAI,SAAS,OACX,QAAO;EACL;EACA;EACA,WAAW,EAAE,MAAM,WAAW;EAC9B,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACD,GAAG;EACJ;AAGH,QAAO;EACL;EACA;EACA,WAAW,eAAA,WAAW;EACtB,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACD,GAAG;EACJ"}
@@ -1,6 +1,18 @@
1
1
  import { baseColors } from "./colors.mjs";
2
2
  import { common } from "@mui/material/colors";
3
3
  //#region src/Theme/modes.ts
4
+ var customPaletteColors = {
5
+ black: "#000",
6
+ cyanBlue: "#253341",
7
+ greyLight: "#d3d3d3",
8
+ greyLight2: "#908ba1",
9
+ greyDark2: "#586069",
10
+ greyGainsboro: "#e3e3e3",
11
+ greyAthens: "#d3dddd",
12
+ snow: "#f9f9f9",
13
+ love: "#e25555",
14
+ nobel01: "#999999"
15
+ };
4
16
  var DARK_MODE_PRIMARY = common.white;
5
17
  var getModePalette = (mode, primaryColor) => {
6
18
  const basePrimary = primaryColor || baseColors.primary.main;
@@ -12,7 +24,8 @@ var getModePalette = (mode, primaryColor) => {
12
24
  background: {
13
25
  default: "#1a202c",
14
26
  paper: "#2d3748"
15
- }
27
+ },
28
+ ...customPaletteColors
16
29
  };
17
30
  return {
18
31
  mode,
@@ -21,7 +34,8 @@ var getModePalette = (mode, primaryColor) => {
21
34
  background: {
22
35
  default: "#f4f4f4",
23
36
  paper: "#ffffff"
24
- }
37
+ },
38
+ ...customPaletteColors
25
39
  };
26
40
  };
27
41
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"modes.mjs","names":[],"sources":["../../src/Theme/modes.ts"],"sourcesContent":["import { common } from '@mui/material/colors';\nimport type { PaletteOptions } from '@mui/material/styles';\n\nimport { baseColors } from './colors';\n\nexport type ThemeMode = 'light' | 'dark';\n\nconst DARK_MODE_PRIMARY = common.white;\n\nexport const getModePalette = (mode: ThemeMode, primaryColor?: string): PaletteOptions => {\n const basePrimary = primaryColor || baseColors.primary.main;\n const primary = mode === 'dark' ? { main: DARK_MODE_PRIMARY } : { main: basePrimary };\n\n if (mode === 'dark') {\n return {\n mode,\n primary,\n secondary: { main: '#424242' },\n background: {\n default: '#1a202c',\n paper: '#2d3748',\n },\n };\n }\n\n return {\n mode,\n primary,\n secondary: baseColors.secondary,\n background: {\n default: '#f4f4f4',\n paper: '#ffffff',\n },\n };\n};\n"],"mappings":";;;AAOA,IAAM,oBAAoB,OAAO;AAEjC,IAAa,kBAAkB,MAAiB,iBAA0C;CACxF,MAAM,cAAc,gBAAgB,WAAW,QAAQ;CACvD,MAAM,UAAU,SAAS,SAAS,EAAE,MAAM,mBAAmB,GAAG,EAAE,MAAM,aAAa;AAErF,KAAI,SAAS,OACX,QAAO;EACL;EACA;EACA,WAAW,EAAE,MAAM,WAAW;EAC9B,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACF;AAGH,QAAO;EACL;EACA;EACA,WAAW,WAAW;EACtB,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACF"}
1
+ {"version":3,"file":"modes.mjs","names":[],"sources":["../../src/Theme/modes.ts"],"sourcesContent":["import { common } from '@mui/material/colors';\nimport type { PaletteOptions } from '@mui/material/styles';\n\nimport { baseColors } from './colors';\n\nexport type ThemeMode = 'light' | 'dark';\n\nexport const customPaletteColors = {\n black: '#000',\n cyanBlue: '#253341',\n greyLight: '#d3d3d3',\n greyLight2: '#908ba1',\n greyDark2: '#586069',\n greyGainsboro: '#e3e3e3',\n greyAthens: '#d3dddd',\n snow: '#f9f9f9',\n love: '#e25555',\n nobel01: '#999999',\n} as const;\n\nconst DARK_MODE_PRIMARY = common.white;\n\nexport const getModePalette = (mode: ThemeMode, primaryColor?: string): PaletteOptions => {\n const basePrimary = primaryColor || baseColors.primary.main;\n const primary = mode === 'dark' ? { main: DARK_MODE_PRIMARY } : { main: basePrimary };\n\n if (mode === 'dark') {\n return {\n mode,\n primary,\n secondary: { main: '#424242' },\n background: {\n default: '#1a202c',\n paper: '#2d3748',\n },\n ...customPaletteColors,\n };\n }\n\n return {\n mode,\n primary,\n secondary: baseColors.secondary,\n background: {\n default: '#f4f4f4',\n paper: '#ffffff',\n },\n ...customPaletteColors,\n };\n};\n"],"mappings":";;;AAOA,IAAa,sBAAsB;CACjC,OAAO;CACP,UAAU;CACV,WAAW;CACX,YAAY;CACZ,WAAW;CACX,eAAe;CACf,YAAY;CACZ,MAAM;CACN,MAAM;CACN,SAAS;CACV;AAED,IAAM,oBAAoB,OAAO;AAEjC,IAAa,kBAAkB,MAAiB,iBAA0C;CACxF,MAAM,cAAc,gBAAgB,WAAW,QAAQ;CACvD,MAAM,UAAU,SAAS,SAAS,EAAE,MAAM,mBAAmB,GAAG,EAAE,MAAM,aAAa;AAErF,KAAI,SAAS,OACX,QAAO;EACL;EACA;EACA,WAAW,EAAE,MAAM,WAAW;EAC9B,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACD,GAAG;EACJ;AAGH,QAAO;EACL;EACA;EACA,WAAW,WAAW;EACtB,YAAY;GACV,SAAS;GACT,OAAO;GACR;EACD,GAAG;EACJ"}
@@ -1,12 +1,36 @@
1
- import type { Theme as MuiTheme } from '@mui/material/styles';
2
- import type { ThemeMode } from './modes';
3
- import type { CustomTheme, CustomizedTheme } from './tokens';
1
+ import { Theme as MuiTheme } from '@mui/material/styles';
2
+ import { ThemeMode } from './modes';
3
+ import { CustomTheme, CustomizedTheme } from './tokens';
4
4
  export type Theme = MuiTheme & CustomizedTheme;
5
5
  declare module '@mui/material/styles' {
6
6
  interface Theme extends CustomTheme {
7
7
  }
8
8
  interface ThemeOptions extends CustomTheme {
9
9
  }
10
+ interface Palette {
11
+ black: string;
12
+ cyanBlue: string;
13
+ greyLight: string;
14
+ greyLight2: string;
15
+ greyDark2: string;
16
+ greyGainsboro: string;
17
+ greyAthens: string;
18
+ snow: string;
19
+ love: string;
20
+ nobel01: string;
21
+ }
22
+ interface PaletteOptions {
23
+ black?: string;
24
+ cyanBlue?: string;
25
+ greyLight?: string;
26
+ greyLight2?: string;
27
+ greyDark2?: string;
28
+ greyGainsboro?: string;
29
+ greyAthens?: string;
30
+ snow?: string;
31
+ love?: string;
32
+ nobel01?: string;
33
+ }
10
34
  }
11
35
  declare module '@mui/material/styles/createTheme' {
12
36
  interface Theme extends CustomizedTheme {
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","names":[],"sources":["../../src/Theme/theme.ts"],"sourcesContent":["import type { Theme as MuiTheme } from '@mui/material/styles';\nimport { createTheme } from '@mui/material/styles';\n\nimport type { ThemeMode } from './modes';\nimport { getModePalette } from './modes';\nimport type { CustomTheme, CustomizedTheme } from './tokens';\nimport { customizedTheme } from './tokens';\n\nexport type Theme = MuiTheme & CustomizedTheme;\n\ndeclare module '@mui/material/styles' {\n interface Theme extends CustomTheme {}\n interface ThemeOptions extends CustomTheme {}\n}\ndeclare module '@mui/material/styles/createTheme' {\n interface Theme extends CustomizedTheme {}\n\n interface DeprecatedThemeOptions extends CustomizedTheme {}\n}\n\nexport const getTheme = (mode: ThemeMode, primaryColor?: string): Theme => {\n return createTheme({\n palette: getModePalette(mode, primaryColor),\n\n typography: {\n fontFamily: [\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n ].join(','),\n },\n\n components: {\n MuiPaper: {\n styleOverrides: {\n root: {\n backgroundImage: 'unset',\n },\n },\n },\n },\n\n ...customizedTheme,\n });\n};\n"],"mappings":";;;;;AAoBA,IAAa,YAAY,MAAiB,iBAAiC;AACzE,SAAA,GAAA,qBAAA,aAAmB;EACjB,SAAS,cAAA,eAAe,MAAM,aAAa;EAE3C,YAAY,EACV,YAAY;GACV;GACA;GACA;GACA;GACA;GACD,CAAC,KAAK,IAAI,EACZ;EAED,YAAY,EACV,UAAU,EACR,gBAAgB,EACd,MAAM,EACJ,iBAAiB,SAClB,EACF,EACF,EACF;EAED,GAAG,eAAA;EACJ,CAAC"}
1
+ {"version":3,"file":"theme.js","names":[],"sources":["../../src/Theme/theme.ts"],"sourcesContent":["import type { Theme as MuiTheme } from '@mui/material/styles';\nimport { createTheme } from '@mui/material/styles';\n\nimport type { ThemeMode } from './modes';\nimport { getModePalette } from './modes';\nimport type { CustomTheme, CustomizedTheme } from './tokens';\nimport { customizedTheme } from './tokens';\n\nexport type Theme = MuiTheme & CustomizedTheme;\n\ndeclare module '@mui/material/styles' {\n interface Theme extends CustomTheme {}\n interface ThemeOptions extends CustomTheme {}\n interface Palette {\n black: string;\n cyanBlue: string;\n greyLight: string;\n greyLight2: string;\n greyDark2: string;\n greyGainsboro: string;\n greyAthens: string;\n snow: string;\n love: string;\n nobel01: string;\n }\n interface PaletteOptions {\n black?: string;\n cyanBlue?: string;\n greyLight?: string;\n greyLight2?: string;\n greyDark2?: string;\n greyGainsboro?: string;\n greyAthens?: string;\n snow?: string;\n love?: string;\n nobel01?: string;\n }\n}\n\ndeclare module '@mui/material/styles/createTheme' {\n interface Theme extends CustomizedTheme {}\n\n interface DeprecatedThemeOptions extends CustomizedTheme {}\n}\n\nexport const getTheme = (mode: ThemeMode, primaryColor?: string): Theme => {\n return createTheme({\n palette: getModePalette(mode, primaryColor),\n\n typography: {\n fontFamily: [\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n ].join(','),\n },\n\n components: {\n MuiPaper: {\n styleOverrides: {\n root: {\n backgroundImage: 'unset',\n },\n },\n },\n },\n\n ...customizedTheme,\n });\n};\n"],"mappings":";;;;;AA6CA,IAAa,YAAY,MAAiB,iBAAiC;AACzE,SAAA,GAAA,qBAAA,aAAmB;EACjB,SAAS,cAAA,eAAe,MAAM,aAAa;EAE3C,YAAY,EACV,YAAY;GACV;GACA;GACA;GACA;GACA;GACD,CAAC,KAAK,IAAI,EACZ;EAED,YAAY,EACV,UAAU,EACR,gBAAgB,EACd,MAAM,EACJ,iBAAiB,SAClB,EACF,EACF,EACF;EAED,GAAG,eAAA;EACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme.mjs","names":[],"sources":["../../src/Theme/theme.ts"],"sourcesContent":["import type { Theme as MuiTheme } from '@mui/material/styles';\nimport { createTheme } from '@mui/material/styles';\n\nimport type { ThemeMode } from './modes';\nimport { getModePalette } from './modes';\nimport type { CustomTheme, CustomizedTheme } from './tokens';\nimport { customizedTheme } from './tokens';\n\nexport type Theme = MuiTheme & CustomizedTheme;\n\ndeclare module '@mui/material/styles' {\n interface Theme extends CustomTheme {}\n interface ThemeOptions extends CustomTheme {}\n}\ndeclare module '@mui/material/styles/createTheme' {\n interface Theme extends CustomizedTheme {}\n\n interface DeprecatedThemeOptions extends CustomizedTheme {}\n}\n\nexport const getTheme = (mode: ThemeMode, primaryColor?: string): Theme => {\n return createTheme({\n palette: getModePalette(mode, primaryColor),\n\n typography: {\n fontFamily: [\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n ].join(','),\n },\n\n components: {\n MuiPaper: {\n styleOverrides: {\n root: {\n backgroundImage: 'unset',\n },\n },\n },\n },\n\n ...customizedTheme,\n });\n};\n"],"mappings":";;;;AAoBA,IAAa,YAAY,MAAiB,iBAAiC;AACzE,QAAO,YAAY;EACjB,SAAS,eAAe,MAAM,aAAa;EAE3C,YAAY,EACV,YAAY;GACV;GACA;GACA;GACA;GACA;GACD,CAAC,KAAK,IAAI,EACZ;EAED,YAAY,EACV,UAAU,EACR,gBAAgB,EACd,MAAM,EACJ,iBAAiB,SAClB,EACF,EACF,EACF;EAED,GAAG;EACJ,CAAC"}
1
+ {"version":3,"file":"theme.mjs","names":[],"sources":["../../src/Theme/theme.ts"],"sourcesContent":["import type { Theme as MuiTheme } from '@mui/material/styles';\nimport { createTheme } from '@mui/material/styles';\n\nimport type { ThemeMode } from './modes';\nimport { getModePalette } from './modes';\nimport type { CustomTheme, CustomizedTheme } from './tokens';\nimport { customizedTheme } from './tokens';\n\nexport type Theme = MuiTheme & CustomizedTheme;\n\ndeclare module '@mui/material/styles' {\n interface Theme extends CustomTheme {}\n interface ThemeOptions extends CustomTheme {}\n interface Palette {\n black: string;\n cyanBlue: string;\n greyLight: string;\n greyLight2: string;\n greyDark2: string;\n greyGainsboro: string;\n greyAthens: string;\n snow: string;\n love: string;\n nobel01: string;\n }\n interface PaletteOptions {\n black?: string;\n cyanBlue?: string;\n greyLight?: string;\n greyLight2?: string;\n greyDark2?: string;\n greyGainsboro?: string;\n greyAthens?: string;\n snow?: string;\n love?: string;\n nobel01?: string;\n }\n}\n\ndeclare module '@mui/material/styles/createTheme' {\n interface Theme extends CustomizedTheme {}\n\n interface DeprecatedThemeOptions extends CustomizedTheme {}\n}\n\nexport const getTheme = (mode: ThemeMode, primaryColor?: string): Theme => {\n return createTheme({\n palette: getModePalette(mode, primaryColor),\n\n typography: {\n fontFamily: [\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n ].join(','),\n },\n\n components: {\n MuiPaper: {\n styleOverrides: {\n root: {\n backgroundImage: 'unset',\n },\n },\n },\n },\n\n ...customizedTheme,\n });\n};\n"],"mappings":";;;;AA6CA,IAAa,YAAY,MAAiB,iBAAiC;AACzE,QAAO,YAAY;EACjB,SAAS,eAAe,MAAM,aAAa;EAE3C,YAAY,EACV,YAAY;GACV;GACA;GACA;GACA;GACA;GACD,CAAC,KAAK,IAAI,EACZ;EAED,YAAY,EACV,UAAU,EACR,gBAAgB,EACd,MAAM,EACJ,iBAAiB,SAClB,EACF,EACF,EACF;EAED,GAAG;EACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { APIRoute } from '../store/routes';
1
+ import { APIRoute } from '../store/routes';
2
2
  export declare const fetcher: <T>(url: string, method: string, body: any, options?: {
3
3
  signal?: AbortSignal;
4
4
  }) => Promise<T>;
@@ -8,10 +8,10 @@ export declare function useDataMutation<T>(basePath: string, route: APIRoute | s
8
8
  data: T | undefined;
9
9
  error: any;
10
10
  isMutating: boolean;
11
- trigger: import("swr/mutation").TriggerWithOptionsArgs<T, any, string, any>;
11
+ trigger: import('swr/dist/mutation').TriggerWithOptionsArgs<T, any, string, any>;
12
12
  };
13
13
  export declare function useTarballDownload(): {
14
- download: import("swr/mutation").TriggerWithArgs<Blob, any, string, {
14
+ download: import('swr/dist/mutation').TriggerWithArgs<Blob, any, string, {
15
15
  link: string;
16
16
  }>;
17
17
  isDownloading: boolean;
@@ -1,3 +1,3 @@
1
- import type { SWRResponse } from 'swr';
2
- import type { APIRoute } from '../store/routes';
1
+ import { SWRResponse } from 'swr';
2
+ import { APIRoute } from '../store/routes';
3
3
  export declare function useData<T>(basePath: string, route: APIRoute, packageName?: string, packageVersion?: string): Pick<SWRResponse<T>, 'data' | 'error' | 'isLoading' | 'mutate'>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export type Props = {
3
3
  showRaw?: boolean;
4
4
  showDownloadTarball?: boolean;
@@ -1,5 +1,10 @@
1
- import React from 'react';
2
- export declare const Fab: import("@emotion/styled").StyledComponent<any, {}, {}>;
1
+ import { default as React } from 'react';
2
+ import { Theme } from '../../Theme';
3
+ export declare const Fab: import('@emotion/styled').StyledComponent<import('@mui/material/Fab').FabOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "style" | "color" | "className" | "classes" | "sx" | "variant" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableFocusRipple" | "size"> & {
4
+ theme?: import('@emotion/react').Theme;
5
+ } & {
6
+ theme?: Theme;
7
+ }, {}, {}>;
3
8
  type ActionType = 'VISIT_HOMEPAGE' | 'OPEN_AN_ISSUE' | 'DOWNLOAD_TARBALL' | 'RAW_DATA';
4
9
  export interface ActionBarActionProps {
5
10
  type: ActionType;
@@ -9,7 +9,7 @@ import Tooltip from "@mui/material/Tooltip";
9
9
  import { useCallback } from "react";
10
10
  import { jsx } from "react/jsx-runtime";
11
11
  import { useTranslation } from "react-i18next";
12
- import BugReportIcon from "@mui/icons-material/BugReport";
12
+ import BugReport from "@mui/icons-material/BugReport";
13
13
  import DownloadIcon from "@mui/icons-material/CloudDownload";
14
14
  import HomeIcon from "@mui/icons-material/Home";
15
15
  import RawOnIcon from "@mui/icons-material/RawOn";
@@ -52,7 +52,7 @@ var ActionBarAction = ({ type, link, action }) => {
52
52
  variant: "button",
53
53
  children: /* @__PURE__ */ jsx(Fab, {
54
54
  size: "small",
55
- children: /* @__PURE__ */ jsx(BugReportIcon, {})
55
+ children: /* @__PURE__ */ jsx(BugReport, {})
56
56
  })
57
57
  })
58
58
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarAction.mjs","names":[],"sources":["../../../src/components/ActionBar/ActionBarAction.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport BugReportIcon from '@mui/icons-material/BugReport';\nimport DownloadIcon from '@mui/icons-material/CloudDownload';\nimport HomeIcon from '@mui/icons-material/Home';\nimport RawOnIcon from '@mui/icons-material/RawOn';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport FabMUI from '@mui/material/Fab';\nimport Tooltip from '@mui/material/Tooltip';\nimport { common } from '@mui/material/colors';\nimport React, { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { Theme } from '../../Theme';\nimport { greyMedium } from '../../Theme/colors';\nimport { useDownload, useVersion } from '../../providers';\nimport LinkExternal from '../LinkExternal';\n\nexport const Fab = styled(FabMUI)<{ theme?: Theme }>(({ theme }) => ({\n backgroundColor:\n theme.palette.mode === 'dark' ? theme.palette.secondary.main : theme.palette.primary.main,\n '&:hover': {\n backgroundColor: theme.palette.mode === 'dark' ? greyMedium : undefined,\n color: theme.palette.mode === 'light' ? theme.palette.primary.main : common.white,\n },\n color: common.white,\n}));\n\ntype ActionType = 'VISIT_HOMEPAGE' | 'OPEN_AN_ISSUE' | 'DOWNLOAD_TARBALL' | 'RAW_DATA';\n\nexport interface ActionBarActionProps {\n type: ActionType;\n link?: string;\n action?: () => void;\n}\n\nconst ActionBarAction: React.FC<ActionBarActionProps> = ({ type, link, action }) => {\n const { t } = useTranslation();\n const { isLoading } = useVersion();\n const { downloadTarball } = useDownload();\n\n const handleDownload = useCallback(async () => {\n downloadTarball?.({ link: link as string });\n }, [link, downloadTarball]);\n\n switch (type) {\n case 'VISIT_HOMEPAGE':\n return (\n <Tooltip title={t('action-bar-action.visit-home-page') as string}>\n <LinkExternal to={link} variant=\"button\">\n <Fab color=\"primary\" size=\"small\">\n <HomeIcon />\n </Fab>\n </LinkExternal>\n </Tooltip>\n );\n case 'OPEN_AN_ISSUE':\n return (\n <Tooltip title={t('action-bar-action.open-an-issue') as string}>\n <LinkExternal to={link} variant=\"button\">\n <Fab size=\"small\">\n <BugReportIcon />\n </Fab>\n </LinkExternal>\n </Tooltip>\n );\n case 'DOWNLOAD_TARBALL':\n return (\n <Tooltip title={t('action-bar-action.download-tarball') as string}>\n {isLoading ? (\n <CircularProgress sx={{ marginX: 0 }} />\n ) : (\n <Fab data-testid=\"download-tarball-btn\" onClick={handleDownload} size=\"small\">\n <DownloadIcon />\n </Fab>\n )}\n </Tooltip>\n );\n case 'RAW_DATA':\n return (\n <Tooltip title={t('action-bar-action.raw') as string}>\n <Fab data-testid=\"raw-btn\" onClick={action} size=\"small\">\n <RawOnIcon />\n </Fab>\n </Tooltip>\n );\n }\n};\n\nexport default ActionBarAction;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,IAAa,MAAM,OAAO,OAAO,EAAqB,EAAE,aAAa;CACnE,iBACE,MAAM,QAAQ,SAAS,SAAS,MAAM,QAAQ,UAAU,OAAO,MAAM,QAAQ,QAAQ;CACvF,WAAW;EACT,iBAAiB,MAAM,QAAQ,SAAS,SAAS,aAAa,KAAA;EAC9D,OAAO,MAAM,QAAQ,SAAS,UAAU,MAAM,QAAQ,QAAQ,OAAO,OAAO;EAC7E;CACD,OAAO,OAAO;CACf,EAAE;AAUH,IAAM,mBAAmD,EAAE,MAAM,MAAM,aAAa;CAClF,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,EAAE,cAAc,YAAY;CAClC,MAAM,EAAE,oBAAoB,aAAa;CAEzC,MAAM,iBAAiB,YAAY,YAAY;AAC7C,oBAAkB,EAAQ,MAAgB,CAAC;IAC1C,CAAC,MAAM,gBAAgB,CAAC;AAE3B,SAAQ,MAAR;EACE,KAAK,iBACH,QACE,oBAAC,SAAD;GAAS,OAAO,EAAE,oCAAoC;aACpD,oBAAC,cAAD;IAAc,IAAI;IAAM,SAAQ;cAC9B,oBAAC,KAAD;KAAK,OAAM;KAAU,MAAK;eACxB,oBAAC,UAAD,EAAY,CAAA;KACR,CAAA;IACO,CAAA;GACP,CAAA;EAEd,KAAK,gBACH,QACE,oBAAC,SAAD;GAAS,OAAO,EAAE,kCAAkC;aAClD,oBAAC,cAAD;IAAc,IAAI;IAAM,SAAQ;cAC9B,oBAAC,KAAD;KAAK,MAAK;eACR,oBAAC,eAAD,EAAiB,CAAA;KACb,CAAA;IACO,CAAA;GACP,CAAA;EAEd,KAAK,mBACH,QACE,oBAAC,SAAD;GAAS,OAAO,EAAE,qCAAqC;aACpD,YACC,oBAAC,kBAAD,EAAkB,IAAI,EAAE,SAAS,GAAG,EAAI,CAAA,GAExC,oBAAC,KAAD;IAAK,eAAY;IAAuB,SAAS;IAAgB,MAAK;cACpE,oBAAC,cAAD,EAAgB,CAAA;IACZ,CAAA;GAEA,CAAA;EAEd,KAAK,WACH,QACE,oBAAC,SAAD;GAAS,OAAO,EAAE,wBAAwB;aACxC,oBAAC,KAAD;IAAK,eAAY;IAAU,SAAS;IAAQ,MAAK;cAC/C,oBAAC,WAAD,EAAa,CAAA;IACT,CAAA;GACE,CAAA"}
1
+ {"version":3,"file":"ActionBarAction.mjs","names":[],"sources":["../../../src/components/ActionBar/ActionBarAction.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport BugReportIcon from '@mui/icons-material/BugReport';\nimport DownloadIcon from '@mui/icons-material/CloudDownload';\nimport HomeIcon from '@mui/icons-material/Home';\nimport RawOnIcon from '@mui/icons-material/RawOn';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport FabMUI from '@mui/material/Fab';\nimport Tooltip from '@mui/material/Tooltip';\nimport { common } from '@mui/material/colors';\nimport React, { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport type { Theme } from '../../Theme';\nimport { greyMedium } from '../../Theme/colors';\nimport { useDownload, useVersion } from '../../providers';\nimport LinkExternal from '../LinkExternal';\n\nexport const Fab = styled(FabMUI)<{ theme?: Theme }>(({ theme }) => ({\n backgroundColor:\n theme.palette.mode === 'dark' ? theme.palette.secondary.main : theme.palette.primary.main,\n '&:hover': {\n backgroundColor: theme.palette.mode === 'dark' ? greyMedium : undefined,\n color: theme.palette.mode === 'light' ? theme.palette.primary.main : common.white,\n },\n color: common.white,\n}));\n\ntype ActionType = 'VISIT_HOMEPAGE' | 'OPEN_AN_ISSUE' | 'DOWNLOAD_TARBALL' | 'RAW_DATA';\n\nexport interface ActionBarActionProps {\n type: ActionType;\n link?: string;\n action?: () => void;\n}\n\nconst ActionBarAction: React.FC<ActionBarActionProps> = ({ type, link, action }) => {\n const { t } = useTranslation();\n const { isLoading } = useVersion();\n const { downloadTarball } = useDownload();\n\n const handleDownload = useCallback(async () => {\n downloadTarball?.({ link: link as string });\n }, [link, downloadTarball]);\n\n switch (type) {\n case 'VISIT_HOMEPAGE':\n return (\n <Tooltip title={t('action-bar-action.visit-home-page') as string}>\n <LinkExternal to={link} variant=\"button\">\n <Fab color=\"primary\" size=\"small\">\n <HomeIcon />\n </Fab>\n </LinkExternal>\n </Tooltip>\n );\n case 'OPEN_AN_ISSUE':\n return (\n <Tooltip title={t('action-bar-action.open-an-issue') as string}>\n <LinkExternal to={link} variant=\"button\">\n <Fab size=\"small\">\n <BugReportIcon />\n </Fab>\n </LinkExternal>\n </Tooltip>\n );\n case 'DOWNLOAD_TARBALL':\n return (\n <Tooltip title={t('action-bar-action.download-tarball') as string}>\n {isLoading ? (\n <CircularProgress sx={{ marginX: 0 }} />\n ) : (\n <Fab data-testid=\"download-tarball-btn\" onClick={handleDownload} size=\"small\">\n <DownloadIcon />\n </Fab>\n )}\n </Tooltip>\n );\n case 'RAW_DATA':\n return (\n <Tooltip title={t('action-bar-action.raw') as string}>\n <Fab data-testid=\"raw-btn\" onClick={action} size=\"small\">\n <RawOnIcon />\n </Fab>\n </Tooltip>\n );\n }\n};\n\nexport default ActionBarAction;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,IAAa,MAAM,OAAO,OAAO,EAAqB,EAAE,aAAa;CACnE,iBACE,MAAM,QAAQ,SAAS,SAAS,MAAM,QAAQ,UAAU,OAAO,MAAM,QAAQ,QAAQ;CACvF,WAAW;EACT,iBAAiB,MAAM,QAAQ,SAAS,SAAS,aAAa,KAAA;EAC9D,OA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
+ import { default as React } from 'react';
2
2
  declare const AppRoute: React.FC;
3
3
  export default AppRoute;
@@ -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.jsxs)(react_router.Routes, { children: [
28
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
29
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ManifestsProvider.default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Front, {}) }),
30
- path: require_routes.Route.ROOT
31
- }),
32
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
33
- element: versionElement,
34
- path: require_routes.Route.SCOPE_PACKAGE_VERSION
35
- }),
36
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
37
- element: versionElement,
38
- path: require_routes.Route.SCOPE_PACKAGE
39
- }),
40
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
41
- element: versionElement,
42
- path: require_routes.Route.PACKAGE_VERSION
43
- }),
44
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
45
- element: versionElement,
46
- path: require_routes.Route.PACKAGE
47
- }),
48
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_router.Route, {
49
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Outlet, {}),
50
- children: [
51
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
52
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Login, {}),
53
- path: require_routes.Route.LOGIN
54
- }),
55
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
56
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Success, {}),
57
- path: require_routes.Route.SUCCESS
58
- }),
59
- createUserEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
60
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddUser, {}),
61
- path: require_routes.Route.ADD_USER
62
- }),
63
- changePasswordEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
64
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChangePassword, {}),
65
- path: require_routes.Route.CHANGE_PASSWORD
66
- })
67
- ]
68
- }),
69
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router.Route, {
70
- element: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_NotFound.default, {}),
71
- path: "*"
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 <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 );\n};\n\nexport default AppRoute;\n"],"mappings":";;;;;;;;;;;;;;;AASA,IAAM,cAAc,iBAAA,cAAA,QAAA,SAAA,CAAA,WAAA,QAAe,+BAAA,CAAA,CAA8B;AACjE,IAAM,QAAQ,iBA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GAAa,SAAS;GAAgB,MAAM,eAAA,MAAM;GAAW,CAAA;EAC7D,iBAAA,GAAA,kBAAA,MAAC,aAAA,OAAD;GAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,aAAA,QAAD,EAAU,CAAA;aAAhC;IACE,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;KAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAS,CAAA;KAAE,MAAM,eAAA,MAAM;KAAS,CAAA;IACtD,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;KAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,SAAD,EAAW,CAAA;KAAE,MAAM,eAAA,MAAM;KAAW,CAAA;IACzD,qBAAqB,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;KAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,SAAD,EAAW,CAAA;KAAE,MAAM,eAAA,MAAM;KAAY,CAAA;IAChF,yBACC,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;KAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,gBAAD,EAAkB,CAAA;KAAE,MAAM,eAAA,MAAM;KAAmB,CAAA;IAE/D;;EACd,iBAAA,GAAA,kBAAA,KAAC,aAAA,OAAD;GAAa,SAAS,iBAAA,GAAA,kBAAA,KAAC,iBAAA,SAAD,EAAY,CAAA;GAAE,MAAK;GAAM,CAAA;EACxC,EAAA,CAAA"}
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,CA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AAa,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__ */ jsxs(Routes, { children: [
26
- /* @__PURE__ */ jsx(Route, {
27
- element: /* @__PURE__ */ jsx(ManifestsProvider, { children: /* @__PURE__ */ jsx(Front, {}) }),
28
- path: Route$1.ROOT
29
- }),
30
- /* @__PURE__ */ jsx(Route, {
31
- element: versionElement,
32
- path: Route$1.SCOPE_PACKAGE_VERSION
33
- }),
34
- /* @__PURE__ */ jsx(Route, {
35
- element: versionElement,
36
- path: Route$1.SCOPE_PACKAGE
37
- }),
38
- /* @__PURE__ */ jsx(Route, {
39
- element: versionElement,
40
- path: Route$1.PACKAGE_VERSION
41
- }),
42
- /* @__PURE__ */ jsx(Route, {
43
- element: versionElement,
44
- path: Route$1.PACKAGE
45
- }),
46
- /* @__PURE__ */ jsxs(Route, {
47
- element: /* @__PURE__ */ jsx(Outlet, {}),
48
- children: [
49
- /* @__PURE__ */ jsx(Route, {
50
- element: /* @__PURE__ */ jsx(Login, {}),
51
- path: Route$1.LOGIN
52
- }),
53
- /* @__PURE__ */ jsx(Route, {
54
- element: /* @__PURE__ */ jsx(Success, {}),
55
- path: Route$1.SUCCESS
56
- }),
57
- createUserEnabled && /* @__PURE__ */ jsx(Route, {
58
- element: /* @__PURE__ */ jsx(AddUser, {}),
59
- path: Route$1.ADD_USER
60
- }),
61
- changePasswordEnabled && /* @__PURE__ */ jsx(Route, {
62
- element: /* @__PURE__ */ jsx(ChangePassword, {}),
63
- path: Route$1.CHANGE_PASSWORD
64
- })
65
- ]
66
- }),
67
- /* @__PURE__ */ jsx(Route, {
68
- element: /* @__PURE__ */ jsx(NotFound, {}),
69
- path: "*"
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 <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 );\n};\n\nexport default AppRoute;\n"],"mappings":";;;;;;;;;;;;;AASA,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,qBAAC,QAAD,EAAA,UAAA;EACE,oBAAC,OAAD;GACE,SACE,oBAAC,mBAAD,EAAA,UACE,oBAAC,OAAD,EAAS,CAAA,EACS,CAAA;GAEtB,MAAM,QAAM;GACZ,CAAA;EACF,oBAAC,OAAD;GAAa,SAAS;GAAgB,MAAM,QAAM;GAAyB,CAAA;EAC3E,oBAAC,OAAD;GAAa,SAAS;GAAgB,MAAM,QAAM;GAAiB,CAAA;EACnE,oBAAC,OAAD;GAAa,SAAS;GAAgB,MAAM,QAAM;GAAmB,CAAA;EACrE,oBAAC,OAAD;GAAa,SAAS;GAAgB,MAAM,QAAM;GAAW,CAAA;EAC7D,qBAAC,OAAD;GAAa,SAAS,oBAAC,QAAD,EAAU,CAAA;aAAhC;IACE,oBAAC,OAAD;KAAa,SAAS,oBAAC,OAAD,EAAS,CAAA;KAAE,MAAM,QAAM;KAAS,CAAA;IACtD,oBAAC,OAAD;KAAa,SAAS,oBAAC,SAAD,EAAW,CAAA;KAAE,MAAM,QAAM;KAAW,CAAA;IACzD,qBAAqB,oBAAC,OAAD;KAAa,SAAS,oBAAC,SAAD,EAAW,CAAA;KAAE,MAAM,QAAM;KAAY,CAAA;IAChF,yBACC,oBAAC,OAAD;KAAa,SAAS,oBAAC,gBAAD,EAAkB,CAAA;KAAE,MAAM,QAAM;KAAmB,CAAA;IAE/D;;EACd,oBAAC,OAAD;GAAa,SAAS,oBAAC,UAAD,EAAY,CAAA;GAAE,MAAK;GAAM,CAAA;EACxC,EAAA,CAAA"}
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,I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