@asaleh37/ui-base 25.9.24-1 → 25.9.24-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.9.24-1",
3
+ "version": "25.9.24-2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -261,7 +261,7 @@ const TopBar: React.FC = () => {
261
261
  ) : (
262
262
  <></>
263
263
  )}
264
- {isMobile ? (
264
+ {!isMobile ? (
265
265
  <div onClick={handleOpenUserMenu} style={{ cursor: "pointer" }}>
266
266
  <AttachmentImageViewer
267
267
  showAsAvatar={true}
package/src/main.tsx CHANGED
@@ -3,7 +3,7 @@ import { BaseApp } from "./components";
3
3
 
4
4
  createRoot(document.getElementById("root")!).render(
5
5
  <BaseApp
6
- apiBaseUrl="http://10.14.22.13:8080/api-base"
6
+ apiBaseUrl="http://localhost:8080/api-base"
7
7
  enableUINotifications={false}
8
8
  appLogo={"/logo.png"}
9
9
  appName="UI Base Library"
@@ -28,6 +28,7 @@ export const ADMINISTRATION_STORES: CommonStores = {
28
28
  SystemWorkflows: {
29
29
  autoLoad: true,
30
30
  url: "api/v1/dev/workflowdocument/all",
31
+ authority: "DEVELOPMENT_ADMIN",
31
32
  data: [],
32
33
  },
33
34
  SystemWidgetTypes: {
@@ -67,26 +68,31 @@ export const ADMINISTRATION_STORES: CommonStores = {
67
68
  },
68
69
  SystemOrganizationRanks: {
69
70
  autoLoad: true,
71
+ authority: "SYSTEM_ADMIN",
70
72
  url: "api/v1/public/organization/ranks/all",
71
73
  data: [],
72
74
  },
73
75
  CurrentOrganizationRanks: {
74
76
  autoLoad: true,
77
+ authority: "SYSTEM_ADMIN",
75
78
  url: "api/v1/public/organizationrank/all",
76
79
  data: [],
77
80
  },
78
81
  SystemOrganizationUnits: {
79
82
  autoLoad: true,
83
+ authority: "SYSTEM_ADMIN",
80
84
  url: "api/v1/public/organization/units/all",
81
85
  data: [],
82
86
  },
83
87
  CurrentOrganizationUnits: {
84
88
  autoLoad: true,
89
+ authority: "SYSTEM_ADMIN",
85
90
  url: "api/v1/public/organizationunit/all",
86
91
  data: [],
87
92
  },
88
93
  SystemOrganizationUnitType: {
89
94
  autoLoad: true,
95
+ authority: "SYSTEM_ADMIN",
90
96
  url: "api/v1/public/organizationunittype/all",
91
97
  data: [],
92
98
  },
@@ -153,6 +159,7 @@ export const ADMINISTRATION_STORES: CommonStores = {
153
159
  persons: {
154
160
  autoLoad: true,
155
161
  data: [],
162
+ authority: "SYSTEM_ADMIN",
156
163
  url: "api/v1/public/person/all",
157
164
  },
158
165
  };
package/vite.config.ts CHANGED
@@ -19,6 +19,6 @@ export default defineConfig({
19
19
  },
20
20
  },
21
21
  server: {
22
- port: 8082,
22
+ port: 3000,
23
23
  },
24
24
  });