my-fleetbo-react-v1 1.0.2 → 1.0.4
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
package/src/app/tabs/Tab1.jsx
CHANGED
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Alex (npm run alex):
|
|
11
11
|
* "Forge a guest manager with list and photo" → Alex builds
|
|
12
|
-
* "A guest manager with list and photo"
|
|
13
|
-
*
|
|
12
|
+
* "A guest manager with list and photo" → Alex stays conversational
|
|
13
|
+
*
|
|
14
|
+
* Rule: use "forge", "patch" before prompt code generation.
|
|
14
15
|
*
|
|
15
16
|
* Quick ref:
|
|
16
|
-
* Fleetbo.openView('Module', true) → Native tab
|
|
17
|
-
* Fleetbo.exec('Module', 'action', {}) → Native overlay
|
|
18
|
-
* Fleetbo.add(db, col, json) → Write
|
|
19
|
-
* Fleetbo.getDocsG(db, col) → Read
|
|
20
|
-
* Fleetbo.delete(db, col, id) →
|
|
17
|
+
* Fleetbo.openView('Module', true) → Full Native view/tab (120 FPS)
|
|
18
|
+
* Fleetbo.exec('Module', 'action', {}) → Native overlay (Atomic)
|
|
19
|
+
* Fleetbo.add(db, col, json) → Write documents to Mongo BaaS
|
|
20
|
+
* Fleetbo.getDocsG(db, col) → Read documents (General collection)
|
|
21
|
+
* Fleetbo.delete(db, col, id) → Absolute document annihilation
|
|
21
22
|
*/
|
|
22
23
|
|
|
23
24
|
import { useEffect, useState } from 'react';
|
|
@@ -31,7 +32,7 @@ export default function Tab1() {
|
|
|
31
32
|
if (action === 'HIDE_NAVBAR') setNavMode("none");
|
|
32
33
|
if (action === 'SHOW_NAVBAR') setNavMode("show");
|
|
33
34
|
if (action === 'PING_JS') {
|
|
34
|
-
// Example : Fleetbo.exec('ModuleName', 'action', {});
|
|
35
|
+
// Example : Fleetbo.exec('ModuleName', 'action', {});
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
});
|
package/src/app/tabs/Tab2.jsx
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Fleetbo Tab Redirect or Not
|
|
3
|
-
*
|
|
4
|
-
* This tab is handled by a native module (or its mock in dev).
|
|
5
|
-
* If React renders this route (e.g. on reload), we redirect to the mock.
|
|
6
3
|
*/
|
|
7
4
|
import { useEffect, useState } from 'react';
|
|
8
5
|
import { PageConfig } from '@fleetbo';
|
package/src/app/tabs/Tab3.jsx
CHANGED
|
File without changes
|