sevago-sso-fe 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -19
- package/dist/apis/auth/index.d.ts +1 -1
- package/dist/components/app-grid/app-grid.component.d.ts +2 -2
- package/dist/components/elements/index.d.ts +7 -0
- package/dist/components/index.d.ts +1 -6
- package/dist/index.cjs.js +17043 -4289
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -17
- package/dist/index.esm.js +14747 -1993
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -36,14 +36,14 @@ import React from 'react';
|
|
|
36
36
|
import { Provider } from 'react-redux';
|
|
37
37
|
import { PersistGate } from 'redux-persist/integration/react';
|
|
38
38
|
import { BrowserRouter } from 'react-router-dom';
|
|
39
|
-
import {
|
|
39
|
+
import { SystemMonitorScreen, store, persistor } from 'sevago-sso-fe';
|
|
40
40
|
|
|
41
41
|
function App() {
|
|
42
42
|
return (
|
|
43
43
|
<Provider store={store}>
|
|
44
44
|
<PersistGate loading={null} persistor={persistor}>
|
|
45
45
|
<BrowserRouter>
|
|
46
|
-
<
|
|
46
|
+
<SystemMonitorScreen />
|
|
47
47
|
</BrowserRouter>
|
|
48
48
|
</PersistGate>
|
|
49
49
|
</Provider>
|
|
@@ -133,10 +133,17 @@ await notificationApi.subscribeTopic({ token });
|
|
|
133
133
|
## API Reference
|
|
134
134
|
|
|
135
135
|
### Components
|
|
136
|
-
- `
|
|
137
|
-
- `
|
|
138
|
-
- `
|
|
139
|
-
- `
|
|
136
|
+
- `AppGrid`
|
|
137
|
+
- `AvatarElement`
|
|
138
|
+
- `AvatarUserInfo`
|
|
139
|
+
- `AvatarUserComponent`
|
|
140
|
+
- `BellComponent`
|
|
141
|
+
- `EmptyComponent`
|
|
142
|
+
- `LoadingComponent`
|
|
143
|
+
- `LogoComponent`
|
|
144
|
+
- `MotionBox`
|
|
145
|
+
- `TimeAgoContentComponent`
|
|
146
|
+
- `TimeAgoComponent`
|
|
140
147
|
|
|
141
148
|
### Hooks
|
|
142
149
|
- `useSnackbar()` - Snackbar notifications
|
|
@@ -154,15 +161,16 @@ await notificationApi.subscribeTopic({ token });
|
|
|
154
161
|
### Redux Store
|
|
155
162
|
- `store` - Redux store instance
|
|
156
163
|
- `persistor` - Redux persist instance
|
|
157
|
-
- `
|
|
158
|
-
- `
|
|
164
|
+
- `remainingWeightSlice ` - Redux remainingWeightSlice
|
|
165
|
+
- `account` - login/logout/resetPassword/refreshToken/subscribeTopic/unsubscribeTopic/changeNotificationCount/changeSidebarCount/updateAccount/getAccount/updatePositionOrgUnit/updateCurrentAccess
|
|
166
|
+
- `system` - changeMode(GlobalSystemState)
|
|
159
167
|
|
|
160
168
|
### Utilities
|
|
161
169
|
- `renderRoutes` - Route rendering utility
|
|
162
170
|
- `routeConstants` - Route constants
|
|
163
171
|
- `STYLE` - Style constants
|
|
164
172
|
- `MODE` - Theme modes
|
|
165
|
-
- `timeUtils` - Time utility functions
|
|
173
|
+
- `timeUtils` - Time utility functions (getTimeAgo, getDateTime, getDate, checkNowYear,getMonthRangeForYear, getDayOffsetPx, isSameDateTime, getTimeDate, isDateString)
|
|
166
174
|
|
|
167
175
|
## Configuration
|
|
168
176
|
|
|
@@ -229,13 +237,4 @@ To contribute to this library:
|
|
|
229
237
|
3. Run development server: `npm run dev`
|
|
230
238
|
4. Build library: `npm run build:lib`
|
|
231
239
|
5. Test the build: `npm run preview`
|
|
232
|
-
|
|
233
|
-
## Changelog
|
|
234
|
-
|
|
235
|
-
### v1.0.0
|
|
236
|
-
- Initial release
|
|
237
|
-
- Complete SSO authentication system
|
|
238
|
-
- Material-UI components
|
|
239
|
-
- Redux state management
|
|
240
|
-
- Firebase notifications
|
|
241
|
-
- TypeScript support
|
|
240
|
+
## Changelog
|
|
@@ -9,8 +9,8 @@ export interface AppGridProps {
|
|
|
9
9
|
iconRadius?: number;
|
|
10
10
|
iconShadow?: string;
|
|
11
11
|
gap?: number | string;
|
|
12
|
-
titleVariant?:
|
|
13
|
-
captionVariant?:
|
|
12
|
+
titleVariant?: "subtitle1" | "body1" | "caption";
|
|
13
|
+
captionVariant?: "caption" | "body2";
|
|
14
14
|
titleColor?: string;
|
|
15
15
|
captionColor?: string;
|
|
16
16
|
selectedAppId?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ButtonElement } from './button';
|
|
2
|
+
export { IconElement } from './icon';
|
|
3
|
+
export { ImageElement } from './image';
|
|
4
|
+
export { RadioElement } from './radio';
|
|
5
|
+
export { TextFieldElement } from './text-field';
|
|
6
|
+
export { TooltipOnClickElement } from './tooltip';
|
|
7
|
+
export { TypographyContentCaption } from './typography';
|
|
@@ -7,10 +7,5 @@ export * from './loading';
|
|
|
7
7
|
export * from './logo';
|
|
8
8
|
export * from './motion';
|
|
9
9
|
export * from './time-ago';
|
|
10
|
-
export * from './elements
|
|
11
|
-
export * from './elements/image';
|
|
12
|
-
export * from './elements/radio';
|
|
13
|
-
export * from './elements/text-field';
|
|
14
|
-
export * from './elements/tooltip';
|
|
15
|
-
export * from './elements/typography';
|
|
10
|
+
export * from './elements';
|
|
16
11
|
export * from './styles';
|