@floegence/floe-webapp-init 0.1.14 → 0.1.16
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,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ActivityAppsMain,
|
|
2
3
|
FloeApp,
|
|
3
4
|
Files,
|
|
4
5
|
Settings,
|
|
5
|
-
useLayout,
|
|
6
6
|
type FloeComponent,
|
|
7
7
|
} from '@floegence/floe-webapp-core';
|
|
8
|
-
import { createMemo } from 'solid-js';
|
|
9
|
-
import { Dynamic } from 'solid-js/web';
|
|
10
8
|
import { HomePage } from './pages/HomePage';
|
|
11
9
|
import { SettingsPage } from './pages/SettingsPage';
|
|
12
10
|
|
|
@@ -47,16 +45,6 @@ const components: FloeComponent[] = [
|
|
|
47
45
|
},
|
|
48
46
|
];
|
|
49
47
|
|
|
50
|
-
// Content switcher based on active component
|
|
51
|
-
function AppContent() {
|
|
52
|
-
const layout = useLayout();
|
|
53
|
-
const active = createMemo(() => components.find((c) => c.id === layout.sidebarActiveTab()) ?? components[0]);
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<Dynamic component={active().component} />
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
48
|
export default function App() {
|
|
61
49
|
return (
|
|
62
50
|
<FloeApp
|
|
@@ -67,7 +55,7 @@ export default function App() {
|
|
|
67
55
|
},
|
|
68
56
|
}}
|
|
69
57
|
>
|
|
70
|
-
<
|
|
58
|
+
<ActivityAppsMain />
|
|
71
59
|
</FloeApp>
|
|
72
60
|
);
|
|
73
61
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { FloeApp, Files,
|
|
2
|
-
import { createMemo } from 'solid-js';
|
|
3
|
-
import { Dynamic } from 'solid-js/web';
|
|
1
|
+
import { ActivityAppsMain, FloeApp, Files, type FloeComponent } from '@floegence/floe-webapp-core';
|
|
4
2
|
|
|
5
3
|
const HomePage = () => (
|
|
6
4
|
<div class="flex h-full items-center justify-center">
|
|
@@ -30,12 +28,6 @@ const components: FloeComponent[] = [
|
|
|
30
28
|
},
|
|
31
29
|
];
|
|
32
30
|
|
|
33
|
-
function AppContent() {
|
|
34
|
-
const layout = useLayout();
|
|
35
|
-
const active = createMemo(() => components.find((c) => c.id === layout.sidebarActiveTab()) ?? components[0]);
|
|
36
|
-
return <Dynamic component={active().component} />;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
31
|
export default function App() {
|
|
40
32
|
return (
|
|
41
33
|
<FloeApp
|
|
@@ -46,7 +38,7 @@ export default function App() {
|
|
|
46
38
|
},
|
|
47
39
|
}}
|
|
48
40
|
>
|
|
49
|
-
<
|
|
41
|
+
<ActivityAppsMain />
|
|
50
42
|
</FloeApp>
|
|
51
43
|
);
|
|
52
44
|
}
|