my-fleetbo-react-v1 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "my-fleetbo-react-v1",
3
3
  "private": false,
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "description": "React template optimized for the Fleetbo ecosystem.",
6
6
  "author": "Jean Aubain Noucti",
7
7
  "license": "MIT",
package/src/App.jsx CHANGED
@@ -3,19 +3,19 @@ import { Routes, Route, Navigate, useLocation } from "react-router-dom";
3
3
  import { useStartupEffect } from '@fleetbo/hooks/useStartupEffect';
4
4
 
5
5
  // Application views
6
- import Tab1 from "./app/tabs/Tab1";
7
- import Tab2 from "./app/tabs/Tab2";
8
- import Tab3 from "./app/tabs/Tab3";
9
- import Welcome from "./app/tabs/Welcome";
6
+ import Tab1 from "./app/mocks/tabs/Tab1";
7
+ import Tab2 from "./app/mocks/tabs/Tab2";
8
+ import Tab3 from "./app/mocks/tabs/Tab3";
9
+ import Tabs from "./app/mocks/tabs/Tabs";
10
10
  import AuthRouter from "./app/core/AuthRouter";
11
11
  import NotFound from './app/core/NotFound';
12
12
 
13
13
  // FLEETBO_IMPORTS
14
14
  import Login from "./app/mocks/login/Login";
15
15
  import LoginWeb from "./app/mocks/login/LoginWeb";
16
- import SampleTab1 from './app/mocks/SampleTab1';
17
- import SampleTab2 from './app/mocks/SampleTab2';
18
- import SampleTab3 from './app/mocks/SampleTab3';
16
+ import SampleTab1 from './app/mocks/sample/SampleTab1';
17
+ import SampleTab2 from './app/mocks/sample/SampleTab2';
18
+ import SampleTab3 from './app/mocks/sample/SampleTab3';
19
19
  // FLEETBO_MORE_IMPORTS
20
20
 
21
21
  const TabRedirector = ({ children }) => {
@@ -84,7 +84,7 @@ function App() {
84
84
  const isActuallyAuthenticated = isAuthenticated || iframeAuthOverride;
85
85
 
86
86
  if (isNavbarRoute) {
87
- return isActuallyAuthenticated ? <Welcome /> : null;
87
+ return isActuallyAuthenticated ? <Tabs /> : null;
88
88
  }
89
89
 
90
90
  return (
@@ -307,7 +307,7 @@ export default function LoginWeb() {
307
307
 
308
308
  <div className="gatekeeper-panel">
309
309
  <div className="form-box">
310
- <h2 className="gatekeeper-title">Workspace Login</h2>
310
+ <h2 className="gatekeeper-title">Workspace Aubain</h2>
311
311
  <p className="gatekeeper-subtitle">
312
312
  Target Infrastructure: <span style={{ color: '#0E904D', fontWeight: '600' }}>{appInfo.name}</span>
313
313
  </p>
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- export default function SampleTab() {
3
+ export default function SampleTab1() {
4
4
  return (
5
5
  <div
6
6
  className="d-flex flex-column justify-content-center align-items-center w-100"
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- export default function SampleTab() {
3
+ export default function SampleTab2() {
4
4
  return (
5
5
  <div
6
6
  className="d-flex flex-column justify-content-center align-items-center w-100"
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- export default function SampleTab() {
3
+ export default function SampleTab3() {
4
4
  return (
5
5
  <div
6
6
  className="d-flex flex-column justify-content-center align-items-center w-100"
@@ -1,13 +1,3 @@
1
- /**
2
- * Tab1.jsx — Fleetbo JS in Action
3
- * Quick ref:
4
- * Fleetbo.openView('Module', true) → Full Native view/tab (120 FPS)
5
- * Fleetbo.exec('Module', 'action', {}) → Native overlay (Atomic)
6
- * Fleetbo.add(db, col, json) → Write documents to Mongo BaaS
7
- * Fleetbo.getDocsG(db, col) → Read documents (General collection)
8
- * Fleetbo.delete(db, col, id) → Absolute document annihilation
9
- */
10
-
11
1
  import { useEffect, useState } from 'react';
12
2
  import { PageConfig } from '@fleetbo';
13
3
 
@@ -1,6 +1,3 @@
1
- /**
2
- * Fleetbo Tab Redirect or Not
3
- */
4
1
  import { useEffect, useState } from 'react';
5
2
  import { PageConfig } from '@fleetbo';
6
3
 
@@ -25,7 +25,7 @@ const getInitialTab = () => {
25
25
  return localStorage.getItem("activeTab") || 'Tab1';
26
26
  };
27
27
 
28
- const Welcome = () => {
28
+ const Tab = () => {
29
29
  const location = useLocation();
30
30
 
31
31
  const [navbarType, setNavbarType] = useState(getNavbarType);
@@ -171,4 +171,4 @@ const Welcome = () => {
171
171
  );
172
172
  };
173
173
 
174
- export default Welcome;
174
+ export default Tab;
File without changes