@wface/pixel-cli
Advanced tools
+1
-1
| { | ||
| "name": "@wface/pixel-cli", | ||
| "version": "0.3.6", | ||
| "version": "0.3.7", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -15,3 +15,2 @@ import { useUserContext } from 'wface'; | ||
| DashboardPage, | ||
| LoginPage, | ||
| }, | ||
@@ -28,2 +27,3 @@ useAuthService: AuthService, | ||
| Container: AppContainer, | ||
| LoginPage, | ||
| }, | ||
@@ -30,0 +30,0 @@ }; |
@@ -5,18 +5,8 @@ import type { IMenuTreeItem } from 'wface'; | ||
| { | ||
| id: 'home', | ||
| text: 'Home', | ||
| screen: 'HomePage', | ||
| }, | ||
| { | ||
| id: 'dashboard', | ||
| id: '', | ||
| text: 'Dashboard', | ||
| screen: 'DashboardPage', | ||
| }, | ||
| { | ||
| id: 'login', | ||
| text: 'Login', | ||
| screen: 'LoginPage', | ||
| }, | ||
| } | ||
| ]; | ||
| export default routes; |
@@ -5,2 +5,3 @@ import { Route, Routes, Navigate } from 'react-router-dom'; | ||
| import routes from '../constants/routes'; | ||
| import HomePage from "../pages/home"; | ||
@@ -12,2 +13,3 @@ const AppContainer = () => { | ||
| ScreenWrapper: React.FC<any>; | ||
| LoginPage: React.FC<any>; | ||
| }; | ||
@@ -17,11 +19,20 @@ | ||
| <Routes> | ||
| <Route path="/" element={<Navigate to="/home" replace />} /> | ||
| <Route path="/" element={<HomePage />} /> | ||
| {routes.map((route: IMenuTreeItem) => ( | ||
| <Route | ||
| key={route.id} | ||
| path={route.id} | ||
| element={<ConfigComps.ScreenWrapper menuTreeItem={route} />} | ||
| /> | ||
| ))} | ||
| <Route | ||
| path="/login" | ||
| element={ | ||
| <ConfigComps.LoginPage /> | ||
| } | ||
| /> | ||
| <Route path="/dashboard/*"> | ||
| {routes.map((route: IMenuTreeItem) => ( | ||
| <Route | ||
| key={route.id} | ||
| path={route.id} | ||
| element={<ConfigComps.ScreenWrapper menuTreeItem={route} />} | ||
| /> | ||
| ))} | ||
| </Route> | ||
| </Routes> | ||
@@ -28,0 +39,0 @@ ); |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
13696111
0