@deix/rossini-identity-management 0.1.0

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 (126) hide show
  1. package/README.md +6 -0
  2. package/lib/app/[locale]/groups/page.d.ts +4 -0
  3. package/lib/app/[locale]/groups/page.d.ts.map +1 -0
  4. package/lib/app/[locale]/groups/page.js +9 -0
  5. package/lib/app/[locale]/layout.d.ts +10 -0
  6. package/lib/app/[locale]/layout.d.ts.map +1 -0
  7. package/lib/app/[locale]/layout.js +24 -0
  8. package/lib/app/[locale]/users/page.d.ts +4 -0
  9. package/lib/app/[locale]/users/page.d.ts.map +1 -0
  10. package/lib/app/[locale]/users/page.js +9 -0
  11. package/lib/app/layout.d.ts +13 -0
  12. package/lib/app/layout.d.ts.map +1 -0
  13. package/lib/app/layout.js +20 -0
  14. package/lib/components/AddItemDialog.d.ts +16 -0
  15. package/lib/components/AddItemDialog.d.ts.map +1 -0
  16. package/lib/components/AddItemDialog.js +45 -0
  17. package/lib/components/DeleteConfirmationDialog.d.ts +9 -0
  18. package/lib/components/DeleteConfirmationDialog.d.ts.map +1 -0
  19. package/lib/components/DeleteConfirmationDialog.js +35 -0
  20. package/lib/components/SearchField.d.ts +8 -0
  21. package/lib/components/SearchField.d.ts.map +1 -0
  22. package/lib/components/SearchField.js +16 -0
  23. package/lib/components/groups/CreateGroupDialog.d.ts +8 -0
  24. package/lib/components/groups/CreateGroupDialog.d.ts.map +1 -0
  25. package/lib/components/groups/CreateGroupDialog.js +24 -0
  26. package/lib/components/groups/GroupDetails.d.ts +8 -0
  27. package/lib/components/groups/GroupDetails.d.ts.map +1 -0
  28. package/lib/components/groups/GroupDetails.js +18 -0
  29. package/lib/components/groups/GroupForm.d.ts +11 -0
  30. package/lib/components/groups/GroupForm.d.ts.map +1 -0
  31. package/lib/components/groups/GroupForm.js +38 -0
  32. package/lib/components/groups/GroupTabs.d.ts +16 -0
  33. package/lib/components/groups/GroupTabs.d.ts.map +1 -0
  34. package/lib/components/groups/GroupTabs.js +29 -0
  35. package/lib/components/groups/GroupUsers.d.ts +8 -0
  36. package/lib/components/groups/GroupUsers.d.ts.map +1 -0
  37. package/lib/components/groups/GroupUsers.js +74 -0
  38. package/lib/components/groups/Groups.d.ts +9 -0
  39. package/lib/components/groups/Groups.d.ts.map +1 -0
  40. package/lib/components/groups/Groups.js +78 -0
  41. package/lib/components/groups/GroupsTable.d.ts +11 -0
  42. package/lib/components/groups/GroupsTable.d.ts.map +1 -0
  43. package/lib/components/groups/GroupsTable.js +43 -0
  44. package/lib/components/index.d.ts +3 -0
  45. package/lib/components/index.d.ts.map +1 -0
  46. package/lib/components/index.js +2 -0
  47. package/lib/components/users/CreateUserDialog.d.ts +8 -0
  48. package/lib/components/users/CreateUserDialog.d.ts.map +1 -0
  49. package/lib/components/users/CreateUserDialog.js +24 -0
  50. package/lib/components/users/UserCredentials.d.ts +8 -0
  51. package/lib/components/users/UserCredentials.d.ts.map +1 -0
  52. package/lib/components/users/UserCredentials.js +17 -0
  53. package/lib/components/users/UserDetails.d.ts +8 -0
  54. package/lib/components/users/UserDetails.d.ts.map +1 -0
  55. package/lib/components/users/UserDetails.js +18 -0
  56. package/lib/components/users/UserForm.d.ts +14 -0
  57. package/lib/components/users/UserForm.d.ts.map +1 -0
  58. package/lib/components/users/UserForm.js +62 -0
  59. package/lib/components/users/UserGroups.d.ts +8 -0
  60. package/lib/components/users/UserGroups.d.ts.map +1 -0
  61. package/lib/components/users/UserGroups.js +64 -0
  62. package/lib/components/users/Users.d.ts +9 -0
  63. package/lib/components/users/Users.d.ts.map +1 -0
  64. package/lib/components/users/Users.js +84 -0
  65. package/lib/components/users/UsersTable.d.ts +13 -0
  66. package/lib/components/users/UsersTable.d.ts.map +1 -0
  67. package/lib/components/users/UsersTable.js +62 -0
  68. package/lib/components/users/UsersTabs.d.ts +16 -0
  69. package/lib/components/users/UsersTabs.d.ts.map +1 -0
  70. package/lib/components/users/UsersTabs.js +32 -0
  71. package/lib/config/i18n.d.ts +3 -0
  72. package/lib/config/i18n.d.ts.map +1 -0
  73. package/lib/config/i18n.js +14 -0
  74. package/lib/config/index.d.ts +11 -0
  75. package/lib/config/index.d.ts.map +1 -0
  76. package/lib/config/index.js +18 -0
  77. package/lib/config/palette.d.ts +5 -0
  78. package/lib/config/palette.d.ts.map +1 -0
  79. package/lib/config/palette.js +88 -0
  80. package/lib/index.d.ts +5 -0
  81. package/lib/index.d.ts.map +1 -0
  82. package/lib/index.js +2 -0
  83. package/lib/lang/groups.d.ts +6 -0
  84. package/lib/lang/groups.d.ts.map +1 -0
  85. package/lib/lang/groups.js +71 -0
  86. package/lib/lang/home.d.ts +6 -0
  87. package/lib/lang/home.d.ts.map +1 -0
  88. package/lib/lang/home.js +11 -0
  89. package/lib/lang/users.d.ts +6 -0
  90. package/lib/lang/users.d.ts.map +1 -0
  91. package/lib/lang/users.js +123 -0
  92. package/lib/middleware.d.ts +5 -0
  93. package/lib/middleware.d.ts.map +1 -0
  94. package/lib/middleware.js +9 -0
  95. package/lib/tsconfig.tsbuildinfo +1 -0
  96. package/lib/types/config.d.ts +8 -0
  97. package/lib/types/config.d.ts.map +1 -0
  98. package/lib/types/config.js +1 -0
  99. package/lib/types/groups.d.ts +5 -0
  100. package/lib/types/groups.d.ts.map +1 -0
  101. package/lib/types/groups.js +1 -0
  102. package/lib/types/index.d.ts +1 -0
  103. package/lib/types/index.d.ts.map +1 -0
  104. package/lib/types/index.js +1 -0
  105. package/lib/types/tables.d.ts +12 -0
  106. package/lib/types/tables.d.ts.map +1 -0
  107. package/lib/types/tables.js +1 -0
  108. package/lib/types/users.d.ts +11 -0
  109. package/lib/types/users.d.ts.map +1 -0
  110. package/lib/types/users.js +1 -0
  111. package/lib/utils/helpers/index.d.ts +1 -0
  112. package/lib/utils/helpers/index.d.ts.map +1 -0
  113. package/lib/utils/helpers/index.js +1 -0
  114. package/lib/utils/hooks/groups.d.ts +10 -0
  115. package/lib/utils/hooks/groups.d.ts.map +1 -0
  116. package/lib/utils/hooks/groups.js +133 -0
  117. package/lib/utils/hooks/index.d.ts +1 -0
  118. package/lib/utils/hooks/index.d.ts.map +1 -0
  119. package/lib/utils/hooks/index.js +1 -0
  120. package/lib/utils/hooks/users.d.ts +29 -0
  121. package/lib/utils/hooks/users.d.ts.map +1 -0
  122. package/lib/utils/hooks/users.js +254 -0
  123. package/lib/utils/index.d.ts +1 -0
  124. package/lib/utils/index.d.ts.map +1 -0
  125. package/lib/utils/index.js +1 -0
  126. package/package.json +99 -0
@@ -0,0 +1,32 @@
1
+ 'use client';
2
+ import React, { useState } from 'react';
3
+ import { Box, Tab, Tabs } from '@mui/material';
4
+ import { useLocale } from '@deix/rossini-core';
5
+ import usersTranslations from '../../lang/users';
6
+ import UserDetails from './UserDetails';
7
+ import UserGroups from './UserGroups';
8
+ import UserCredentials from './UserCredentials';
9
+ const UserTabs = ({ user, additionalTabs = [] }) => {
10
+ const locale = useLocale();
11
+ const [selectedTab, setSelectedTab] = useState('DETAILS');
12
+ return (React.createElement(Box, { sx: {
13
+ flexGrow: 1,
14
+ maxWidth: '100%',
15
+ overflowX: 'hidden',
16
+ alignSelf: 'stretch',
17
+ } },
18
+ React.createElement(Box, { sx: { borderBottom: 1, borderColor: 'divider' } },
19
+ React.createElement(Tabs, { value: selectedTab, onChange: (_evt, newValue) => {
20
+ setSelectedTab(newValue);
21
+ }, "aria-label": 'basic tabs example' },
22
+ React.createElement(Tab, { label: usersTranslations.details[locale], value: 'DETAILS' }),
23
+ React.createElement(Tab, { label: usersTranslations.userGroups[locale], value: 'USER_GROUPS' }),
24
+ React.createElement(Tab, { label: usersTranslations.credentials[locale], value: 'CREDENTIALS' }),
25
+ additionalTabs.map((tab, index) => (React.createElement(Tab, { label: tab.title[locale], value: `ADDITIONAL_TAB_${index}` }))))),
26
+ React.createElement(Box, { sx: { p: 1 } },
27
+ selectedTab === 'DETAILS' && React.createElement(UserDetails, { user: user }),
28
+ selectedTab === 'USER_GROUPS' && React.createElement(UserGroups, { user: user }),
29
+ selectedTab === 'CREDENTIALS' && React.createElement(UserCredentials, { user: user }),
30
+ additionalTabs.map((tab, index) => selectedTab === `ADDITIONAL_TAB_${index}` && (React.createElement(tab.component, { user: user }))))));
31
+ };
32
+ export default UserTabs;
@@ -0,0 +1,3 @@
1
+ import { Language } from '@deix/rossini-core';
2
+ export declare const languages: Language[];
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/config/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,QAAQ,EAa/B,CAAC"}
@@ -0,0 +1,14 @@
1
+ export const languages = [
2
+ {
3
+ id: 'it',
4
+ label: 'Italiano',
5
+ countryCode: 'it',
6
+ MUILocale: 'itIT',
7
+ },
8
+ {
9
+ id: 'en',
10
+ label: 'English',
11
+ countryCode: 'us',
12
+ MUILocale: 'enUS',
13
+ },
14
+ ];
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Config } from '../types/config';
3
+ export declare const getConfig: (publicRuntimeEnv: Record<string, string>) => Config;
4
+ interface ConfigProviderProps {
5
+ publicRuntimeEnv: Record<string, string>;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const ConfigProvider: ({ publicRuntimeEnv, children, }: ConfigProviderProps) => React.JSX.Element;
9
+ export declare const useConfig: () => Config;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,eAAO,MAAM,SAAS,qBACF,OAAO,MAAM,EAAE,MAAM,CAAC,KACvC,MAKD,CAAC;AAQH,UAAU,mBAAmB;IAC3B,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,oCAGxB,mBAAmB,sBAMrB,CAAC;AAEF,eAAO,MAAM,SAAS,cAAkC,CAAC"}
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ import React, { createContext, useContext } from 'react';
3
+ import { languages } from './i18n';
4
+ export const getConfig = (publicRuntimeEnv) => ({
5
+ generalProperties: {
6
+ apiURL: publicRuntimeEnv.API_URL,
7
+ },
8
+ languages: languages,
9
+ });
10
+ // Since this is a client-side component, the value we use here (which is only
11
+ // the default value) would be hardcoded at build time. When we use
12
+ // PublicRuntimeEnvProvider (in config.ts) we will pass the actual env variables
13
+ // read at runtime
14
+ const ConfigContext = createContext(getConfig({}));
15
+ export const ConfigProvider = ({ publicRuntimeEnv, children, }) => {
16
+ return (React.createElement(ConfigContext.Provider, { value: getConfig(publicRuntimeEnv) }, children));
17
+ };
18
+ export const useConfig = () => useContext(ConfigContext);
@@ -0,0 +1,5 @@
1
+ import { PaletteOptions } from '@mui/material/styles';
2
+ import '@deix/rossini-core/lib/types/palette';
3
+ export declare const lightPalette: PaletteOptions;
4
+ export declare const darkPalette: PaletteOptions;
5
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/config/palette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,sCAAsC,CAAC;AAE9C,eAAO,MAAM,YAAY,EAAE,cA4C1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAyCzB,CAAC"}
@@ -0,0 +1,88 @@
1
+ import '@deix/rossini-core/lib/types/palette';
2
+ export const lightPalette = {
3
+ mode: 'light',
4
+ gradient: {
5
+ main: `linear-gradient(90deg, #12256a, #12256a)`,
6
+ },
7
+ primary: {
8
+ main: '#97d700',
9
+ },
10
+ secondary: {
11
+ main: '#12256a',
12
+ contrastText: '#ffffff',
13
+ },
14
+ success: {
15
+ main: '#26B540',
16
+ },
17
+ info: {
18
+ main: '#2466F4',
19
+ },
20
+ warning: {
21
+ main: '#EA8A04',
22
+ },
23
+ error: {
24
+ main: '#D3343F',
25
+ },
26
+ background: {
27
+ default: '#fafafa',
28
+ paper: '#ffffff',
29
+ },
30
+ text: {
31
+ secondary: 'rgba(0,0,0,0.54)',
32
+ primary: 'rgba(0,0,0,0.87)',
33
+ disabled: 'rgba(0,0,0,0.38)',
34
+ },
35
+ divider: 'rgba(0,0,0,0.12)',
36
+ linkNotActive: {
37
+ main: '#afafaf',
38
+ },
39
+ sidebar: {
40
+ main: '#e7e7e7',
41
+ contrastText: '#12256a',
42
+ light: '#afafaf',
43
+ dark: '#3f3f3f',
44
+ },
45
+ topbar: { main: '#12256a', contrastText: '#fafafa' },
46
+ };
47
+ export const darkPalette = {
48
+ mode: 'dark',
49
+ gradient: {
50
+ main: `linear-gradient(90deg, #12256a, #12256a)`,
51
+ },
52
+ primary: {
53
+ main: '#97d700',
54
+ },
55
+ secondary: {
56
+ main: '#d4d4d4',
57
+ },
58
+ success: {
59
+ main: '#26B540',
60
+ },
61
+ info: {
62
+ main: '#2466F4',
63
+ },
64
+ warning: {
65
+ main: '#EA8A04',
66
+ },
67
+ error: {
68
+ main: '#D3343F',
69
+ },
70
+ background: {
71
+ default: '#303030',
72
+ paper: '#424242',
73
+ },
74
+ text: {
75
+ primary: '#ffffff',
76
+ secondary: 'rgba(255,255,255,0.7)',
77
+ disabled: 'rgba(255,255,255,0.5)',
78
+ },
79
+ divider: 'rgba(255,255,255,0.12)',
80
+ linkNotActive: { main: '#afafaf' },
81
+ sidebar: {
82
+ main: '#3f3f3f',
83
+ contrastText: '#ffffff',
84
+ dark: '#000000',
85
+ light: '#afafaf',
86
+ },
87
+ topbar: { main: '#3f3f3f', contrastText: '#ffffff' },
88
+ };
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { default as Users } from './components/users/Users';
2
+ export { default as Groups } from './components/groups/Groups';
3
+ export type { User } from './types/users';
4
+ export type { Group } from './types/groups';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default as Users } from './components/users/Users';
2
+ export { default as Groups } from './components/groups/Groups';
@@ -0,0 +1,6 @@
1
+ import { StringTranslation } from '@deix/rossini-core';
2
+ declare const groupsTranslations: {
3
+ [key: string]: StringTranslation;
4
+ };
5
+ export default groupsTranslations;
6
+ //# sourceMappingURL=groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/lang/groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,QAAA,MAAM,kBAAkB;;CAqEiB,CAAC;AAE1C,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,71 @@
1
+ const groupsTranslations = {
2
+ title: {
3
+ en: 'Groups',
4
+ it: 'Gruppi',
5
+ },
6
+ search: {
7
+ en: 'Search...',
8
+ it: 'Cerca...',
9
+ },
10
+ new: {
11
+ en: 'New Group',
12
+ it: 'Nuovo Gruppo',
13
+ },
14
+ create: {
15
+ en: 'Create Group',
16
+ it: 'Crea Gruppo',
17
+ },
18
+ modify: {
19
+ en: 'Modify Group',
20
+ it: 'Modifica Gruppo',
21
+ },
22
+ name: {
23
+ en: 'Group Name',
24
+ it: 'Nome Gruppo',
25
+ },
26
+ cancel: {
27
+ en: 'Cancel',
28
+ it: 'Annulla',
29
+ },
30
+ save: {
31
+ en: 'Save',
32
+ it: 'Salva',
33
+ },
34
+ details: {
35
+ en: 'Group Details',
36
+ it: 'Dettagli Gruppo',
37
+ },
38
+ users: {
39
+ en: 'Users',
40
+ it: 'Utenti',
41
+ },
42
+ addUser: {
43
+ en: 'Add user',
44
+ it: 'Aggiungi utente',
45
+ },
46
+ addGroupSuccess: {
47
+ en: 'Group created successfully',
48
+ it: 'Gruppo creato con successo',
49
+ },
50
+ addGroupError: {
51
+ en: 'Error creating user',
52
+ it: 'Errore nella creazione del gruppo',
53
+ },
54
+ updateGroupSuccess: {
55
+ en: 'Group updated successfully',
56
+ it: 'Gruppo aggiornato con successo',
57
+ },
58
+ updateGroupError: {
59
+ en: 'Error updating user',
60
+ it: "Errore nell'aggiornamento del gruppo",
61
+ },
62
+ deleteGroupSuccess: {
63
+ en: 'Group deleted successfully',
64
+ it: 'Gruppo cancellato con successo',
65
+ },
66
+ deleteGroupError: {
67
+ en: 'Error deleting user',
68
+ it: 'Errore nella cancellazione del gruppo',
69
+ },
70
+ };
71
+ export default groupsTranslations;
@@ -0,0 +1,6 @@
1
+ import { StringTranslation } from '@deix/rossini-core';
2
+ declare const homeTranslations: {
3
+ [key: string]: StringTranslation;
4
+ };
5
+ export default homeTranslations;
6
+ //# sourceMappingURL=home.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home.d.ts","sourceRoot":"","sources":["../../src/lang/home.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,QAAA,MAAM,gBAAgB;;CASmB,CAAC;AAE1C,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ const homeTranslations = {
2
+ users: {
3
+ en: 'Users',
4
+ it: 'Utenti',
5
+ },
6
+ groups: {
7
+ en: 'Groups',
8
+ it: 'Gruppi',
9
+ },
10
+ };
11
+ export default homeTranslations;
@@ -0,0 +1,6 @@
1
+ import { StringTranslation } from '@deix/rossini-core';
2
+ declare const usersTranslations: {
3
+ [key: string]: StringTranslation;
4
+ };
5
+ export default usersTranslations;
6
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/lang/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,QAAA,MAAM,iBAAiB;;CAyHkB,CAAC;AAE1C,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,123 @@
1
+ const usersTranslations = {
2
+ title: {
3
+ en: 'Users',
4
+ it: 'Utenti',
5
+ },
6
+ search: {
7
+ en: 'Search...',
8
+ it: 'Cerca...',
9
+ },
10
+ new: {
11
+ en: 'New User',
12
+ it: 'Nuovo Utente',
13
+ },
14
+ create: {
15
+ en: 'Create User',
16
+ it: 'Crea Utente',
17
+ },
18
+ details: {
19
+ en: 'User Details',
20
+ it: 'Dettagli Utente',
21
+ },
22
+ userGroups: {
23
+ en: 'Groups',
24
+ it: 'Gruppi',
25
+ },
26
+ username: {
27
+ en: 'Username',
28
+ it: 'Username',
29
+ },
30
+ firstName: {
31
+ en: 'First Name',
32
+ it: 'Nome',
33
+ },
34
+ lastName: {
35
+ en: 'Last Name',
36
+ it: 'Cognome',
37
+ },
38
+ email: {
39
+ en: 'Email Address',
40
+ it: 'Indirizzo Email',
41
+ },
42
+ emailVerified: {
43
+ en: 'Email Verified',
44
+ it: 'Email Verificata',
45
+ },
46
+ enabled: {
47
+ en: 'Enabled',
48
+ it: 'Abilitato',
49
+ },
50
+ groups: {
51
+ en: 'Groups',
52
+ it: 'Gruppi',
53
+ },
54
+ credentials: {
55
+ en: 'Credentials',
56
+ it: 'Credenziali',
57
+ },
58
+ sendResetPasswordEmail: {
59
+ en: 'Send email to reset credentials',
60
+ it: 'Invia email per resettare le credenziali',
61
+ },
62
+ addGroup: {
63
+ en: 'Add group',
64
+ it: 'Aggiungi gruppo',
65
+ },
66
+ cancel: {
67
+ en: 'Cancel',
68
+ it: 'Annulla',
69
+ },
70
+ save: {
71
+ en: 'Save',
72
+ it: 'Salva',
73
+ },
74
+ addUserSuccess: {
75
+ en: 'User created successfully',
76
+ it: 'Utente creato con successo',
77
+ },
78
+ addUserError: {
79
+ en: 'Error creating user',
80
+ it: "Errore nella creazione dell'utente",
81
+ },
82
+ updateUserSuccess: {
83
+ en: 'User updated successfully',
84
+ it: 'Utente aggiornato con successo',
85
+ },
86
+ updateUserError: {
87
+ en: 'Error updating user',
88
+ it: "Errore nell'aggiornamento dell'utente",
89
+ },
90
+ deleteUserSuccess: {
91
+ en: 'User deleted successfully',
92
+ it: 'Utente cancellato con successo',
93
+ },
94
+ deleteUserError: {
95
+ en: 'Error deleting user',
96
+ it: "Errore nella cancellazione dell'utente",
97
+ },
98
+ addUserToGroupSuccess: {
99
+ en: 'User added to group',
100
+ it: 'Utente aggiunto al gruppo',
101
+ },
102
+ addUserToGroupError: {
103
+ en: 'Error adding user to group',
104
+ it: "Errore nell'aggiunta dell'utente al gruppo",
105
+ },
106
+ removeUserFromGroupSuccess: {
107
+ en: 'User removed from group',
108
+ it: 'Utente rimosso dal gruppo',
109
+ },
110
+ removeUserFromGroupError: {
111
+ en: 'Error removing user from group',
112
+ it: "Errore nella rimozione dell'utente dal gruppo",
113
+ },
114
+ sendEmailSuccess: {
115
+ en: 'Email sent',
116
+ it: 'Email inviata',
117
+ },
118
+ sendEmailError: {
119
+ en: 'Error sending email',
120
+ it: "Errore nell'invio dell'mail",
121
+ },
122
+ };
123
+ export default usersTranslations;
@@ -0,0 +1,5 @@
1
+ export declare const middleware: (request: import("next/server").NextRequest) => import("next/server").NextResponse<unknown>;
2
+ export declare const config: {
3
+ matcher: string[];
4
+ };
5
+ //# sourceMappingURL=middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,6FAAmD,CAAC;AAE3E,eAAO,MAAM,MAAM;;CAGlB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { createI18nMiddleware } from '@deix/rossini-core/lib/utils/middleware';
2
+ import { languages } from './config/i18n';
3
+ const locales = languages.map((language) => language.id);
4
+ const defaultLocale = 'it';
5
+ export const middleware = createI18nMiddleware({ locales, defaultLocale });
6
+ export const config = {
7
+ // Matcher ignoring `/_next/` and `/api/`
8
+ matcher: ['/((?!api|_next/static|_next/image|favicon.ico|images).*)'],
9
+ };