@prestizni-software/server-dem 0.7.4 → 0.9.0
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/AutoUpdateClientManagerClass.d.ts +158 -0
- package/AutoUpdateClientManagerClass.js +820 -0
- package/AutoUpdateClientManagerClass.js.map +1 -0
- package/AutoUpdateManagerClass.d.ts +102 -0
- package/AutoUpdateManagerClass.js +117 -0
- package/AutoUpdateManagerClass.js.map +1 -0
- package/AutoUpdateServerManagerClass.d.ts +238 -0
- package/AutoUpdateServerManagerClass.js +1087 -0
- package/AutoUpdateServerManagerClass.js.map +1 -0
- package/AutoUpdatedClientObjectClass.d.ts +244 -0
- package/AutoUpdatedClientObjectClass.js +969 -0
- package/AutoUpdatedClientObjectClass.js.map +1 -0
- package/AutoUpdatedServerObjectClass.d.ts +134 -0
- package/AutoUpdatedServerObjectClass.js +346 -0
- package/AutoUpdatedServerObjectClass.js.map +1 -0
- package/ClientTypes.d.ts +15 -0
- package/ClientTypes.js +52 -0
- package/ClientTypes.js.map +1 -0
- package/CommonTypes.d.ts +296 -0
- package/CommonTypes.js +233 -0
- package/CommonTypes.js.map +1 -0
- package/CommonTypes_server.d.ts +1 -0
- package/CommonTypes_server.js +2 -0
- package/CommonTypes_server.js.map +1 -0
- package/{dist/DEMErrors.js.map → DEMErrors.js.map} +1 -1
- package/ServerTypes.d.ts +16 -0
- package/ServerTypes.js +60 -0
- package/ServerTypes.js.map +1 -0
- package/client.d.ts +6 -0
- package/client.js +7 -0
- package/client.js.map +1 -0
- package/coverage/lcov-report/block-navigation.js +71 -0
- package/coverage/lcov-report/block-navigation.js.map +1 -0
- package/coverage/lcov-report/prettify.js +478 -0
- package/coverage/lcov-report/prettify.js.map +1 -0
- package/coverage/lcov-report/sorter.js +177 -0
- package/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/AutoUpdateClientManagerClass.d.ts +20 -0
- package/dist/AutoUpdateClientManagerClass.js +283 -0
- package/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/AutoUpdateManagerClass.d.ts +17 -96
- package/dist/AutoUpdateManagerClass.js +15 -73
- package/dist/AutoUpdateManagerClass.js.map +1 -1
- package/dist/AutoUpdateServerManagerClass.d.ts +18 -207
- package/dist/AutoUpdateServerManagerClass.js +198 -680
- package/dist/AutoUpdateServerManagerClass.js.map +1 -1
- package/dist/AutoUpdatedClientObjectClass.d.ts +63 -206
- package/dist/AutoUpdatedClientObjectClass.js +660 -707
- package/dist/AutoUpdatedClientObjectClass.js.map +1 -1
- package/dist/AutoUpdatedServerObjectClass.d.ts +13 -126
- package/dist/AutoUpdatedServerObjectClass.js +92 -315
- package/dist/AutoUpdatedServerObjectClass.js.map +1 -1
- package/dist/ClientTypes.d.ts +13 -0
- package/dist/ClientTypes.js +70 -0
- package/dist/ClientTypes.js.map +1 -0
- package/dist/CommonTypes.d.ts +3 -266
- package/dist/CommonTypes.js +4 -234
- package/dist/CommonTypes.js.map +1 -1
- package/dist/CommonTypes_server.d.ts +1 -1
- package/dist/CommonTypes_server.js +2 -1
- package/dist/CommonTypes_server.js.map +1 -1
- package/dist/ServerTypes.d.ts +13 -0
- package/dist/ServerTypes.js +78 -0
- package/dist/ServerTypes.js.map +1 -0
- package/dist/TestTypes.d.ts +1 -0
- package/dist/TestTypes.js +7 -0
- package/dist/TestTypes.js.map +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +12 -0
- package/dist/client.js.map +1 -0
- package/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/AutoUpdateClientManagerClass.d.ts +19 -0
- package/dist/dist/AutoUpdateClientManagerClass.js +284 -0
- package/dist/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdateManagerClass.d.ts +23 -0
- package/dist/dist/AutoUpdateManagerClass.js +60 -0
- package/dist/dist/AutoUpdateManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdateServerManagerClass.d.ts +50 -0
- package/dist/dist/AutoUpdateServerManagerClass.js +413 -0
- package/dist/dist/AutoUpdateServerManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdatedClientObjectClass.d.ts +72 -0
- package/dist/dist/AutoUpdatedClientObjectClass.js +865 -0
- package/dist/dist/AutoUpdatedClientObjectClass.js.map +1 -0
- package/dist/dist/AutoUpdatedServerObjectClass.d.ts +15 -0
- package/dist/dist/AutoUpdatedServerObjectClass.js +124 -0
- package/dist/dist/AutoUpdatedServerObjectClass.js.map +1 -0
- package/dist/dist/ClientTypes.d.ts +13 -0
- package/dist/dist/ClientTypes.js +71 -0
- package/dist/dist/ClientTypes.js.map +1 -0
- package/dist/dist/CommonTypes.d.ts +3 -0
- package/dist/dist/CommonTypes.js +20 -0
- package/dist/dist/CommonTypes.js.map +1 -0
- package/dist/dist/CommonTypes_server.d.ts +1 -0
- package/dist/dist/CommonTypes_server.js +4 -0
- package/dist/dist/CommonTypes_server.js.map +1 -0
- package/dist/dist/ServerTypes.d.ts +13 -0
- package/dist/dist/ServerTypes.js +79 -0
- package/dist/dist/ServerTypes.js.map +1 -0
- package/dist/dist/TestTypes.d.ts +1 -0
- package/dist/dist/TestTypes.js +8 -0
- package/dist/dist/TestTypes.js.map +1 -0
- package/dist/dist/client.d.ts +1 -0
- package/dist/dist/client.js +13 -0
- package/dist/dist/client.js.map +1 -0
- package/dist/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.d.ts +19 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.js +285 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdateManagerClass.d.ts +23 -0
- package/dist/dist/dist/AutoUpdateManagerClass.js +61 -0
- package/dist/dist/dist/AutoUpdateManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.d.ts +158 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.js +414 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.d.ts +72 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.js +866 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.d.ts +15 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.js +125 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.js.map +1 -0
- package/dist/dist/dist/ClientTypes.d.ts +13 -0
- package/dist/dist/dist/ClientTypes.js +72 -0
- package/dist/dist/dist/ClientTypes.js.map +1 -0
- package/dist/dist/dist/CommonTypes.d.ts +3 -0
- package/dist/dist/dist/CommonTypes.js +21 -0
- package/dist/dist/dist/CommonTypes.js.map +1 -0
- package/dist/dist/dist/CommonTypes_server.d.ts +1 -0
- package/dist/dist/dist/CommonTypes_server.js +5 -0
- package/dist/dist/dist/CommonTypes_server.js.map +1 -0
- package/dist/dist/dist/ServerTypes.d.ts +13 -0
- package/dist/dist/dist/ServerTypes.js +80 -0
- package/dist/dist/dist/ServerTypes.js.map +1 -0
- package/dist/dist/dist/TestTypes.d.ts +1 -0
- package/dist/dist/dist/TestTypes.js +9 -0
- package/dist/dist/dist/TestTypes.js.map +1 -0
- package/dist/dist/dist/client.d.ts +1 -0
- package/dist/dist/dist/client.js +14 -0
- package/dist/dist/dist/client.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.js +27 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.js +95 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.js +81 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/dist/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/dist/dist/expo-test/app/_layout.js +22 -0
- package/dist/dist/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/dist/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/modal.js +28 -0
- package/dist/dist/dist/expo-test/app/modal.js.map +1 -0
- package/dist/dist/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/dist/dist/expo-test/components/external-link.js +18 -0
- package/dist/dist/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.js +15 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/dist/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/dist/dist/expo-test/components/hello-wave.js +19 -0
- package/dist/dist/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.js +53 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/dist/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/dist/dist/expo-test/components/themed-text.js +43 -0
- package/dist/dist/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/dist/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/dist/dist/expo-test/components/themed-view.js +10 -0
- package/dist/dist/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.js +34 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.js +14 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.js +25 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/dist/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/dist/dist/expo-test/constants/theme.js +53 -0
- package/dist/dist/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/dist/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/dist/dist/expo-test/eslint.config.js +11 -0
- package/dist/dist/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.js +5 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.js +20 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.js +20 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/dist/dist/jest.config.d.ts +21 -0
- package/dist/dist/dist/jest.config.js +20 -0
- package/dist/dist/dist/jest.config.js.map +1 -0
- package/dist/dist/dist/server.d.ts +1 -0
- package/dist/dist/dist/server.js +16 -0
- package/dist/dist/dist/server.js.map +1 -0
- package/dist/dist/dist/socket_test.d.ts +1 -0
- package/dist/dist/dist/socket_test.js +24 -0
- package/dist/dist/dist/socket_test.js.map +1 -0
- package/dist/dist/dist/test.d.ts +1 -0
- package/dist/dist/dist/test.js +7 -0
- package/dist/dist/dist/test.js.map +1 -0
- package/dist/dist/dist/test_client.d.ts +1 -0
- package/dist/dist/dist/test_client.js +26 -0
- package/dist/dist/dist/test_client.js.map +1 -0
- package/dist/dist/dist/test_lib.d.ts +2 -0
- package/dist/dist/dist/test_lib.js +85 -0
- package/dist/dist/dist/test_lib.js.map +1 -0
- package/dist/dist/dist/test_server.d.ts +1 -0
- package/dist/dist/dist/test_server.js +54 -0
- package/dist/dist/dist/test_server.js.map +1 -0
- package/dist/dist/dist/tests/dem.test.d.ts +1 -0
- package/dist/dist/dist/tests/dem.test.js +341 -0
- package/dist/dist/dist/tests/dem.test.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.js +26 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/explore.js +94 -0
- package/dist/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/index.js +80 -0
- package/dist/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/dist/expo-test/app/_layout.js +21 -0
- package/dist/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/dist/expo-test/app/modal.js +27 -0
- package/dist/dist/expo-test/app/modal.js.map +1 -0
- package/dist/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/dist/expo-test/components/external-link.js +17 -0
- package/dist/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/dist/expo-test/components/haptic-tab.js +14 -0
- package/dist/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/dist/expo-test/components/hello-wave.js +18 -0
- package/dist/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.js +52 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/dist/expo-test/components/themed-text.js +42 -0
- package/dist/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/dist/expo-test/components/themed-view.js +9 -0
- package/dist/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/dist/expo-test/components/ui/collapsible.js +33 -0
- package/dist/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.js +13 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.js +24 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/dist/expo-test/constants/theme.js +52 -0
- package/dist/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/dist/expo-test/eslint.config.js +11 -0
- package/dist/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.js +4 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.js +19 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/dist/expo-test/hooks/use-theme-color.js +19 -0
- package/dist/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/dist/jest.config.d.ts +21 -0
- package/dist/dist/jest.config.js +19 -0
- package/dist/dist/jest.config.js.map +1 -0
- package/dist/dist/server.d.ts +1 -0
- package/dist/dist/server.js +15 -0
- package/dist/dist/server.js.map +1 -0
- package/dist/dist/socket_test.d.ts +1 -0
- package/dist/dist/socket_test.js +23 -0
- package/dist/dist/socket_test.js.map +1 -0
- package/dist/dist/test.d.ts +1 -0
- package/dist/dist/test.js +6 -0
- package/dist/dist/test.js.map +1 -0
- package/dist/dist/test_client.d.ts +1 -0
- package/dist/dist/test_client.js +25 -0
- package/dist/dist/test_client.js.map +1 -0
- package/dist/dist/test_lib.d.ts +2 -0
- package/dist/dist/test_lib.js +84 -0
- package/dist/dist/test_lib.js.map +1 -0
- package/dist/dist/test_server.d.ts +1 -0
- package/dist/dist/test_server.js +53 -0
- package/dist/dist/test_server.js.map +1 -0
- package/dist/dist/tests/dem.test.d.ts +1 -0
- package/dist/dist/tests/dem.test.js +340 -0
- package/dist/dist/tests/dem.test.js.map +1 -0
- package/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/_layout.js +25 -0
- package/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/explore.js +93 -0
- package/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/index.js +79 -0
- package/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/expo-test/app/_layout.js +20 -0
- package/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/expo-test/app/modal.js +26 -0
- package/dist/expo-test/app/modal.js.map +1 -0
- package/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/expo-test/components/external-link.js +16 -0
- package/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/expo-test/components/haptic-tab.js +13 -0
- package/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/expo-test/components/hello-wave.js +17 -0
- package/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/expo-test/components/parallax-scroll-view.js +51 -0
- package/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/expo-test/components/themed-text.js +41 -0
- package/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/expo-test/components/themed-view.js +8 -0
- package/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/expo-test/components/ui/collapsible.js +32 -0
- package/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.js +12 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/expo-test/components/ui/icon-symbol.js +23 -0
- package/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/expo-test/constants/theme.js +51 -0
- package/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/expo-test/eslint.config.js +11 -0
- package/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/expo-test/hooks/use-color-scheme.js +3 -0
- package/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/expo-test/hooks/use-color-scheme.web.js +18 -0
- package/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/expo-test/hooks/use-theme-color.js +18 -0
- package/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/jest.config.d.ts +21 -0
- package/dist/jest.config.js +18 -0
- package/dist/jest.config.js.map +1 -0
- package/dist/server.d.ts +1 -8
- package/dist/server.js +13 -8
- package/dist/server.js.map +1 -1
- package/dist/socket_test.d.ts +1 -0
- package/dist/socket_test.js +22 -0
- package/dist/socket_test.js.map +1 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.js +5 -0
- package/dist/test.js.map +1 -0
- package/dist/test_client.d.ts +1 -0
- package/dist/test_client.js +24 -0
- package/dist/test_client.js.map +1 -0
- package/dist/test_lib.d.ts +12 -0
- package/dist/test_lib.js +83 -0
- package/dist/test_lib.js.map +1 -0
- package/dist/test_server.d.ts +1 -0
- package/dist/test_server.js +52 -0
- package/dist/test_server.js.map +1 -0
- package/dist/tests/dem.test.d.ts +1 -0
- package/dist/tests/dem.test.js +339 -0
- package/dist/tests/dem.test.js.map +1 -0
- package/expo-test/app/(tabs)/_layout.d.ts +2 -0
- package/expo-test/app/(tabs)/_layout.js +24 -0
- package/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/expo-test/app/(tabs)/explore.js +92 -0
- package/expo-test/app/(tabs)/explore.js.map +1 -0
- package/expo-test/app/(tabs)/index.d.ts +1 -0
- package/expo-test/app/(tabs)/index.js +78 -0
- package/expo-test/app/(tabs)/index.js.map +1 -0
- package/expo-test/app/_layout.d.ts +5 -0
- package/expo-test/app/_layout.js +19 -0
- package/expo-test/app/_layout.js.map +1 -0
- package/expo-test/app/modal.d.ts +1 -0
- package/expo-test/app/modal.js +25 -0
- package/expo-test/app/modal.js.map +1 -0
- package/expo-test/components/external-link.d.ts +7 -0
- package/expo-test/components/external-link.js +15 -0
- package/expo-test/components/external-link.js.map +1 -0
- package/expo-test/components/haptic-tab.d.ts +2 -0
- package/expo-test/components/haptic-tab.js +12 -0
- package/expo-test/components/haptic-tab.js.map +1 -0
- package/expo-test/components/hello-wave.d.ts +1 -0
- package/expo-test/components/hello-wave.js +16 -0
- package/expo-test/components/hello-wave.js.map +1 -0
- package/expo-test/components/parallax-scroll-view.d.ts +10 -0
- package/expo-test/components/parallax-scroll-view.js +50 -0
- package/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/expo-test/components/themed-text.d.ts +7 -0
- package/expo-test/components/themed-text.js +40 -0
- package/expo-test/components/themed-text.js.map +1 -0
- package/expo-test/components/themed-view.d.ts +6 -0
- package/expo-test/components/themed-view.js +7 -0
- package/expo-test/components/themed-view.js.map +1 -0
- package/expo-test/components/ui/collapsible.d.ts +4 -0
- package/expo-test/components/ui/collapsible.js +31 -0
- package/expo-test/components/ui/collapsible.js.map +1 -0
- package/expo-test/components/ui/icon-symbol.d.ts +25 -0
- package/expo-test/components/ui/icon-symbol.ios.d.ts +9 -0
- package/expo-test/components/ui/icon-symbol.ios.js +11 -0
- package/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/expo-test/components/ui/icon-symbol.js +22 -0
- package/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/expo-test/constants/theme.d.ts +32 -0
- package/expo-test/constants/theme.js +50 -0
- package/expo-test/constants/theme.js.map +1 -0
- package/expo-test/eslint.config.d.ts +2 -0
- package/expo-test/eslint.config.js +11 -0
- package/expo-test/eslint.config.js.map +1 -0
- package/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/expo-test/hooks/use-color-scheme.js +2 -0
- package/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/expo-test/hooks/use-color-scheme.web.js +17 -0
- package/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/expo-test/hooks/use-theme-color.d.ts +9 -0
- package/expo-test/hooks/use-theme-color.js +17 -0
- package/expo-test/hooks/use-theme-color.js.map +1 -0
- package/expo-test/scripts/reset-project.d.ts +2 -0
- package/expo-test/scripts/reset-project.js +98 -0
- package/expo-test/scripts/reset-project.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/jest.config.d.ts +3 -0
- package/jest.config.js +17 -0
- package/jest.config.js.map +1 -0
- package/package.json +23 -42
- package/server.d.ts +8 -0
- package/server.js +9 -0
- package/server.js.map +1 -0
- package/sync/ServerChangeTracker.js.map +1 -0
- package/version.d.ts +21 -0
- package/version.js +22 -0
- package/version.js.map +1 -0
- package/README.md +0 -18
- package/dist/sync/ServerChangeTracker.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/DEMErrors.d.ts → DEMErrors.d.ts} +0 -0
- /package/{dist/DEMErrors.js → DEMErrors.js} +0 -0
- /package/{dist/sync → sync}/ClientStateReconciler.d.ts +0 -0
- /package/{dist/sync → sync}/ClientStateReconciler.js +0 -0
- /package/{dist/sync → sync}/ClientStateReconciler.js.map +0 -0
- /package/{dist/sync → sync}/ServerChangeTracker.d.ts +0 -0
- /package/{dist/sync → sync}/ServerChangeTracker.js +0 -0
- /package/{dist/sync → sync}/index.d.ts +0 -0
- /package/{dist/sync → sync}/index.js +0 -0
- /package/{dist/sync → sync}/index.js.map +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/storage/LocalStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/LocalStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/LocalStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/storage/MemoryStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/MemoryStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/MemoryStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/types.d.ts +0 -0
- /package/{dist/sync → sync}/types.js +0 -0
- /package/{dist/sync → sync}/types.js.map +0 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13
|
+
return Reflect.metadata(k, v);
|
|
14
|
+
};
|
|
15
|
+
import { initClientManagers, initServerManagers } from "../test_lib.js";
|
|
16
|
+
import mongoose from "mongoose";
|
|
17
|
+
import { getModelForClass } from "@typegoose/typegoose";
|
|
18
|
+
import { Status } from "../TestTypes.js";
|
|
19
|
+
import { Test, Test2 } from "../ServerTypes.js";
|
|
20
|
+
import { AUCManagerFactory } from "../AutoUpdateClientManagerClass.js";
|
|
21
|
+
import { classProp, classRef } from "../CommonTypes.js";
|
|
22
|
+
import { io } from "socket.io-client";
|
|
23
|
+
await mongoose.connect("mongodb://localhost:27017/GeoDB", {
|
|
24
|
+
timeoutMS: 5000,
|
|
25
|
+
});
|
|
26
|
+
await getModelForClass(Test).deleteMany({});
|
|
27
|
+
await getModelForClass(Test2).deleteMany({});
|
|
28
|
+
const serverManagers = await initServerManagers();
|
|
29
|
+
afterAll(async () => {
|
|
30
|
+
await mongoose.disconnect();
|
|
31
|
+
for (const manager of Object.values(serverManagers))
|
|
32
|
+
manager.close();
|
|
33
|
+
});
|
|
34
|
+
const testServerObject1 = await serverManagers.Test.createObject({
|
|
35
|
+
active: true,
|
|
36
|
+
status: Status.INACTIVE,
|
|
37
|
+
description: "TestObj1",
|
|
38
|
+
ref: null,
|
|
39
|
+
refarr: [],
|
|
40
|
+
obj: {
|
|
41
|
+
_id: "default",
|
|
42
|
+
obj: { _id: "default" },
|
|
43
|
+
},
|
|
44
|
+
parent: null, // Should be TestObj2
|
|
45
|
+
});
|
|
46
|
+
const testServerObject2 = await serverManagers.Test.createObject({
|
|
47
|
+
active: true,
|
|
48
|
+
status: Status.ACTIVE,
|
|
49
|
+
description: "TestObj2",
|
|
50
|
+
ref: null,
|
|
51
|
+
refarr: [testServerObject1._id],
|
|
52
|
+
obj: {
|
|
53
|
+
_id: "default",
|
|
54
|
+
obj: { _id: "default" },
|
|
55
|
+
},
|
|
56
|
+
parent: null,
|
|
57
|
+
});
|
|
58
|
+
const testServerObject3 = await serverManagers.Test.createObject({
|
|
59
|
+
active: true,
|
|
60
|
+
status: Status.INACTIVE,
|
|
61
|
+
description: "TestObj3",
|
|
62
|
+
ref: null,
|
|
63
|
+
refarr: [],
|
|
64
|
+
obj: {
|
|
65
|
+
_id: "default",
|
|
66
|
+
obj: { _id: "default" },
|
|
67
|
+
},
|
|
68
|
+
parent: testServerObject1._id,
|
|
69
|
+
});
|
|
70
|
+
const clientManagers1 = await initClientManagers("Client1");
|
|
71
|
+
const clientManagers2 = await initClientManagers("Client2");
|
|
72
|
+
afterAll(async () => {
|
|
73
|
+
for (const manager of Object.values(clientManagers1))
|
|
74
|
+
manager.close();
|
|
75
|
+
for (const manager of Object.values(clientManagers2))
|
|
76
|
+
manager.close();
|
|
77
|
+
});
|
|
78
|
+
const testClient1Object1 = clientManagers1.Test.objects[testServerObject1._id.toString()];
|
|
79
|
+
const testClient1Object2 = clientManagers1.Test.objects[testServerObject2._id.toString()];
|
|
80
|
+
const testClient1Object3 = clientManagers1.Test.objects[testServerObject3._id.toString()];
|
|
81
|
+
const testClient2Object1 = clientManagers2.Test.objects[testServerObject1._id.toString()];
|
|
82
|
+
const testClient2Object2 = clientManagers2.Test.objects[testServerObject2._id.toString()];
|
|
83
|
+
const testClient2Object3 = clientManagers2.Test.objects[testServerObject3._id.toString()];
|
|
84
|
+
describe("Server ", () => {
|
|
85
|
+
test("Managers created", async () => {
|
|
86
|
+
expect(serverManagers).toBeDefined();
|
|
87
|
+
expect(clientManagers1).toBeDefined();
|
|
88
|
+
expect(clientManagers2).toBeDefined();
|
|
89
|
+
}, 1000);
|
|
90
|
+
test("Default objects created", async () => {
|
|
91
|
+
expect(serverManagers.Test.objectsAsArray.length).toBe(3);
|
|
92
|
+
expect(serverManagers.Test2.objectsAsArray.length).toBe(0);
|
|
93
|
+
}, 1000);
|
|
94
|
+
test("Default object loaded", async () => {
|
|
95
|
+
expect(clientManagers1.Test.objectsAsArray.length).toBe(3);
|
|
96
|
+
}, 1000);
|
|
97
|
+
test("Object created", async () => {
|
|
98
|
+
expect(testServerObject1).toBeDefined();
|
|
99
|
+
expect(testServerObject1._id).toBeDefined();
|
|
100
|
+
}, 1000);
|
|
101
|
+
test("Server object has correct values", async () => {
|
|
102
|
+
expect(testServerObject1.active).toBe(true);
|
|
103
|
+
expect(testServerObject1.description).toBe("TestObj1");
|
|
104
|
+
expect(testServerObject1.ref).toBeUndefined();
|
|
105
|
+
console.log(testServerObject1.obj);
|
|
106
|
+
expect(JSON.stringify(testServerObject1.obj)).toBe(JSON.stringify({
|
|
107
|
+
_id: "default",
|
|
108
|
+
obj: { _id: "default" },
|
|
109
|
+
}));
|
|
110
|
+
}, 1000);
|
|
111
|
+
test("Client object has correct values", async () => {
|
|
112
|
+
expect(testClient1Object1.active).toBe(true);
|
|
113
|
+
expect(testClient1Object1.description).toBe("TestObj1");
|
|
114
|
+
expect(testClient1Object1.ref ?? null).toBe(null);
|
|
115
|
+
console.log(testClient1Object1.obj);
|
|
116
|
+
expect(JSON.stringify(testClient1Object1.obj)).toBe(JSON.stringify({
|
|
117
|
+
_id: "default",
|
|
118
|
+
obj: { _id: "default" },
|
|
119
|
+
}));
|
|
120
|
+
expect(testClient2Object1.active).toBe(true);
|
|
121
|
+
expect(testClient2Object1.description).toBe("TestObj1");
|
|
122
|
+
expect(testClient2Object1.ref ?? null).toBe(null);
|
|
123
|
+
console.log(testClient2Object1.obj);
|
|
124
|
+
expect(JSON.stringify(testClient2Object1.obj)).toBe(JSON.stringify({
|
|
125
|
+
_id: "default",
|
|
126
|
+
obj: { _id: "default" },
|
|
127
|
+
}));
|
|
128
|
+
}, 1000);
|
|
129
|
+
test("Client2 redacted object not loaded", async () => {
|
|
130
|
+
expect(testClient2Object3).toBeUndefined();
|
|
131
|
+
expect(clientManagers2.Test.objectsAsArray.length).toBe(2);
|
|
132
|
+
});
|
|
133
|
+
test("Autostatus at creation - Client", async () => {
|
|
134
|
+
expect(testServerObject1.status).toBe(Status.ACTIVE);
|
|
135
|
+
}, 1000);
|
|
136
|
+
test("Autostatus at creation - Client", async () => {
|
|
137
|
+
expect(testClient1Object1.status).toBe(Status.ACTIVE);
|
|
138
|
+
expect(testClient2Object1.status).toBe(Status.ACTIVE);
|
|
139
|
+
}, 1000);
|
|
140
|
+
test("Parent fill from parent after object already created", async () => {
|
|
141
|
+
expect(testServerObject1.parent?.description).toBe(testServerObject2.description);
|
|
142
|
+
}, 1000);
|
|
143
|
+
test("Child reference added after created object with parent", async () => {
|
|
144
|
+
expect(testServerObject1.refarr[0]?.description).toBe(testServerObject3.description);
|
|
145
|
+
}, 1000);
|
|
146
|
+
test("Setting shallow value", async () => {
|
|
147
|
+
await testServerObject1.setValue("active", false);
|
|
148
|
+
expect(testServerObject1.active).toBe(false);
|
|
149
|
+
}, 1000);
|
|
150
|
+
test("Autostatus on set value", async () => {
|
|
151
|
+
expect(testServerObject1.status).toBe(Status.INACTIVE);
|
|
152
|
+
}, 1000);
|
|
153
|
+
test("Setting deep value", async () => {
|
|
154
|
+
await testServerObject1.setValue("obj.obj._id", "3");
|
|
155
|
+
expect(testServerObject1.obj?.obj?._id).toBe("3");
|
|
156
|
+
}, 1000);
|
|
157
|
+
test("Setting ref value", async () => {
|
|
158
|
+
await testServerObject1.setValue("ref", testServerObject3._id);
|
|
159
|
+
expect(testServerObject1.ref?.description).toBe(testServerObject3.description);
|
|
160
|
+
}, 1000);
|
|
161
|
+
test("Setting ref's value deep value", async () => {
|
|
162
|
+
await testServerObject1.ref?.setValue("obj.obj._id", "4");
|
|
163
|
+
expect(testServerObject3.obj?.obj?._id).toBe("4");
|
|
164
|
+
}, 1000);
|
|
165
|
+
test("Setting ref's shallow value", async () => {
|
|
166
|
+
await testServerObject1.ref?.setValue("description", "Testing...");
|
|
167
|
+
expect(testServerObject3.description).toBe("Testing...");
|
|
168
|
+
await testServerObject3.setValue("description", "TestObj3");
|
|
169
|
+
}, 1000);
|
|
170
|
+
test("Setting ref's shallow value from parent", async () => {
|
|
171
|
+
await testServerObject1.setValue_("ref.description", "get tested broski");
|
|
172
|
+
expect(testServerObject3.description).toBe("get tested broski");
|
|
173
|
+
await testServerObject3.setValue("description", "TestObj3");
|
|
174
|
+
}, 1000);
|
|
175
|
+
test("Setting ref's deep value from parent", async () => {
|
|
176
|
+
await testServerObject1.setValue_("ref.obj._id", "gay");
|
|
177
|
+
expect(testServerObject3.obj?._id).toBe("gay");
|
|
178
|
+
}, 1000);
|
|
179
|
+
test("Setting shallow value from client", async () => {
|
|
180
|
+
await testClient1Object2.setValue("active", false);
|
|
181
|
+
expect(testClient1Object2.active).toBe(false);
|
|
182
|
+
expect(testServerObject2.active).toBe(false);
|
|
183
|
+
}, 1000);
|
|
184
|
+
test("Updating value at client from server", async () => {
|
|
185
|
+
while (testClient2Object2.active) {
|
|
186
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
187
|
+
}
|
|
188
|
+
expect(testClient2Object2.active).toBe(false);
|
|
189
|
+
}, 1000);
|
|
190
|
+
test("Autostatus on set value from client", async () => {
|
|
191
|
+
expect(testClient1Object2.status).toBe(Status.INACTIVE);
|
|
192
|
+
expect(testServerObject2.status).toBe(Status.INACTIVE);
|
|
193
|
+
expect(testClient2Object2.status).toBe(Status.INACTIVE);
|
|
194
|
+
}, 1000);
|
|
195
|
+
test("Setting deep value from client", async () => {
|
|
196
|
+
await testClient1Object2.setValue("obj.obj._id", "gayUwU69");
|
|
197
|
+
expect(testClient1Object2.obj?.obj?._id).toBe("gayUwU69");
|
|
198
|
+
expect(testServerObject2.obj?.obj?._id).toBe("gayUwU69");
|
|
199
|
+
while (testClient2Object2.obj?.obj?._id !== "gayUwU69") {
|
|
200
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
201
|
+
}
|
|
202
|
+
expect(testClient2Object2.obj?.obj?._id).toBe("gayUwU69");
|
|
203
|
+
}, 1000);
|
|
204
|
+
test("Setting parent value from server", async () => {
|
|
205
|
+
await testServerObject2.setValue_("parent", testServerObject2);
|
|
206
|
+
expect(testServerObject2.parent?.description).toBe(testServerObject2.description);
|
|
207
|
+
while (testClient2Object2.parent?.description !== "TestObj2") {
|
|
208
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
209
|
+
}
|
|
210
|
+
expect(testClient2Object2.parent?.description).toBe("TestObj2");
|
|
211
|
+
while (testClient2Object2.parent?.description !== "TestObj2") {
|
|
212
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
213
|
+
}
|
|
214
|
+
expect(testClient2Object2.parent?.description).toBe("TestObj2");
|
|
215
|
+
}, 1000);
|
|
216
|
+
test("Setting parent value from client", async () => {
|
|
217
|
+
console.error(testClient1Object2.parent?.description);
|
|
218
|
+
await testClient1Object2.setValue("parent", testClient1Object3._id);
|
|
219
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
220
|
+
expect(testServerObject2.parent?._id).toBe(testServerObject3._id);
|
|
221
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
222
|
+
expect(testClient1Object2.parent?._id).toBe(testClient1Object3._id);
|
|
223
|
+
}, 1000);
|
|
224
|
+
test("Denied deletion from client", async () => {
|
|
225
|
+
console.error("gay2");
|
|
226
|
+
expect((await testClient2Object2.destroy()).success).toBe(false);
|
|
227
|
+
}, 1000);
|
|
228
|
+
test("Allowed deletion from server", async () => {
|
|
229
|
+
expect((await testClient1Object2.destroy()).success).toBe(true);
|
|
230
|
+
}, 1000);
|
|
231
|
+
let newObjectId1;
|
|
232
|
+
test("Creation of new object from server", async () => {
|
|
233
|
+
newObjectId1 = (await serverManagers.Test.createObject({
|
|
234
|
+
description: "TestObj4",
|
|
235
|
+
active: true,
|
|
236
|
+
status: Status.INACTIVE,
|
|
237
|
+
ref: null,
|
|
238
|
+
refarr: [],
|
|
239
|
+
obj: null,
|
|
240
|
+
parent: null,
|
|
241
|
+
}))._id.toString();
|
|
242
|
+
expect(serverManagers.Test.getObject(newObjectId1)?.description).toBe("TestObj4");
|
|
243
|
+
while (clientManagers1.Test.getObject(newObjectId1)?.description !== "TestObj4") {
|
|
244
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
245
|
+
}
|
|
246
|
+
expect(clientManagers1.Test.getObject(newObjectId1)?.description).toBe("TestObj4");
|
|
247
|
+
}, 1000);
|
|
248
|
+
test("Client2 not notified of object creation", async () => {
|
|
249
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
250
|
+
expect(clientManagers2.Test.getObject(newObjectId1)).toBeUndefined();
|
|
251
|
+
});
|
|
252
|
+
test("Creation of new object from client", async () => {
|
|
253
|
+
let newObjectId2 = (await clientManagers1.Test.createObject({
|
|
254
|
+
description: "TestObj5",
|
|
255
|
+
active: true,
|
|
256
|
+
status: Status.INACTIVE,
|
|
257
|
+
ref: null,
|
|
258
|
+
refarr: [],
|
|
259
|
+
obj: null,
|
|
260
|
+
parent: null,
|
|
261
|
+
}))._id.toString();
|
|
262
|
+
expect(clientManagers1.Test.getObject(newObjectId2)?.description).toBe("TestObj5");
|
|
263
|
+
expect(serverManagers.Test.getObject(newObjectId2)?.description).toBe("TestObj5");
|
|
264
|
+
while (clientManagers2.Test.getObject(newObjectId2)?.description !== "TestObj5") {
|
|
265
|
+
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
266
|
+
}
|
|
267
|
+
expect(clientManagers2.Test.getObject(newObjectId2)?.description).toBe("TestObj5");
|
|
268
|
+
}, 1000);
|
|
269
|
+
test("Creating Invalid Object", async () => {
|
|
270
|
+
try {
|
|
271
|
+
await clientManagers1.Test.createObject({
|
|
272
|
+
description: "TestObj5",
|
|
273
|
+
ref: null,
|
|
274
|
+
refarr: [],
|
|
275
|
+
obj: null,
|
|
276
|
+
parent: null,
|
|
277
|
+
});
|
|
278
|
+
expect(true).toBe(false);
|
|
279
|
+
}
|
|
280
|
+
catch (error) {
|
|
281
|
+
expect(error).toBeInstanceOf(Error);
|
|
282
|
+
expect(error.message).toContain("validation failed");
|
|
283
|
+
}
|
|
284
|
+
}, 1000);
|
|
285
|
+
test("Creating manager with an invalid type", async () => {
|
|
286
|
+
class Test3 {
|
|
287
|
+
_id;
|
|
288
|
+
isActive;
|
|
289
|
+
status;
|
|
290
|
+
someGayText;
|
|
291
|
+
referance;
|
|
292
|
+
}
|
|
293
|
+
__decorate([
|
|
294
|
+
classProp,
|
|
295
|
+
__metadata("design:type", String)
|
|
296
|
+
], Test3.prototype, "_id", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
classProp,
|
|
299
|
+
__metadata("design:type", Boolean)
|
|
300
|
+
], Test3.prototype, "isActive", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
classProp,
|
|
303
|
+
__metadata("design:type", String)
|
|
304
|
+
], Test3.prototype, "status", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
classProp,
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], Test3.prototype, "someGayText", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
classProp,
|
|
311
|
+
classRef(),
|
|
312
|
+
__metadata("design:type", Object)
|
|
313
|
+
], Test3.prototype, "referance", void 0);
|
|
314
|
+
const socket = io("http://localhost:3001", {
|
|
315
|
+
auth: {
|
|
316
|
+
token: "GayClient",
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
try {
|
|
320
|
+
await AUCManagerFactory({
|
|
321
|
+
Test3,
|
|
322
|
+
}, {
|
|
323
|
+
info: () => console.log,
|
|
324
|
+
debug: () => console.debug,
|
|
325
|
+
error: () => console.error,
|
|
326
|
+
warn: () => console.warn,
|
|
327
|
+
}, socket, true);
|
|
328
|
+
}
|
|
329
|
+
catch (e) {
|
|
330
|
+
expect(e).toBeInstanceOf(Error);
|
|
331
|
+
expect(e.message).toContain("Local type does not match server type for manager");
|
|
332
|
+
socket.disconnect();
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
socket.disconnect();
|
|
336
|
+
}, 1000);
|
|
337
|
+
});
|
|
338
|
+
//# sourceMappingURL=dem.test.js.map
|
|
339
|
+
//# sourceMappingURL=dem.test.js.map
|
|
340
|
+
//# sourceMappingURL=dem.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dem.test.js","sourceRoot":"","sources":["../../tests/dem.test.js"],"names":[],"mappings":"AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,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E,KAAK,CAAC,CAAC,CAAC;QAC3C,UAAU,CAAC;YACP,SAAS;YACT,QAAQ,EAAE;YACV,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;SACpC,EAAE,KAAK,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC,uBAAuB,EAAE;YACvC,IAAI,EAAE;gBACF,KAAK,EAAE,WAAW;aACrB;SACJ,CAAC,CAAC;QACH,IAAI,CAAC;YACD,MAAM,iBAAiB,CAAC;gBACpB,KAAK;aACR,EAAE;gBACC,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG;gBACvB,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK;gBAC1B,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK;gBAC1B,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI;aAC3B,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACP,MAAM,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAChC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,mDAAmD,CAAC,CAAC;YACjF,MAAM,CAAC,UAAU,EAAE,CAAC;YACpB,OAAO;QACX,CAAC;QACD,MAAM,CAAC,UAAU,EAAE,CAAC;IACxB,CAAC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC,CAAC,CAAC;AACH,oCAAoC;AACpC,oCAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function TabLayout(): any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Tabs } from 'expo-router';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HapticTab } from '@/components/haptic-tab';
|
|
4
|
+
import { IconSymbol } from '@/components/ui/icon-symbol';
|
|
5
|
+
import { Colors } from '@/constants/theme';
|
|
6
|
+
import { useColorScheme } from '@/hooks/use-color-scheme';
|
|
7
|
+
export default function TabLayout() {
|
|
8
|
+
const colorScheme = useColorScheme();
|
|
9
|
+
return (<Tabs screenOptions={{
|
|
10
|
+
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
|
|
11
|
+
headerShown: false,
|
|
12
|
+
tabBarButton: HapticTab,
|
|
13
|
+
}}>
|
|
14
|
+
<Tabs.Screen name="index" options={{
|
|
15
|
+
title: 'Home',
|
|
16
|
+
tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color}/>,
|
|
17
|
+
}}/>
|
|
18
|
+
<Tabs.Screen name="explore" options={{
|
|
19
|
+
title: 'Explore',
|
|
20
|
+
tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color}/>,
|
|
21
|
+
}}/>
|
|
22
|
+
</Tabs>);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=_layout.js.map
|
|
25
|
+
//# sourceMappingURL=_layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.js","sourceRoot":"","sources":["../../../../expo-test/app/(tabs)/_layout.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,MAAM,CAAC,OAAO,UAAU,SAAS;IAC7B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACrB,qBAAqB,EAAE,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,CAAC,IAAI;YAC1D,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,SAAS;SAC1B,CAAC,CACJ;MAAA,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC7B,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE;SACrF,CAAC,EACJ;MAAA,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC/B,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE;SAC1F,CAAC,EACN;IAAA,EAAE,IAAI,CAAC,CAAC,CAAC;AACb,CAAC;AACD,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function TabTwoScreen(): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Image } from 'expo-image';
|
|
2
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
3
|
+
import { Collapsible } from '@/components/ui/collapsible';
|
|
4
|
+
import { ExternalLink } from '@/components/external-link';
|
|
5
|
+
import ParallaxScrollView from '@/components/parallax-scroll-view';
|
|
6
|
+
import { ThemedText } from '@/components/themed-text';
|
|
7
|
+
import { ThemedView } from '@/components/themed-view';
|
|
8
|
+
import { IconSymbol } from '@/components/ui/icon-symbol';
|
|
9
|
+
import { Fonts } from '@/constants/theme';
|
|
10
|
+
export default function TabTwoScreen() {
|
|
11
|
+
return (<ParallaxScrollView headerBackgroundColor={{ light: '#D0D0D0', dark: '#353636' }} headerImage={<IconSymbol size={310} color="#808080" name="chevron.left.forwardslash.chevron.right" style={styles.headerImage}/>}>
|
|
12
|
+
<ThemedView style={styles.titleContainer}>
|
|
13
|
+
<ThemedText type="title" style={{
|
|
14
|
+
fontFamily: Fonts.rounded,
|
|
15
|
+
}}>
|
|
16
|
+
Explore
|
|
17
|
+
</ThemedText>
|
|
18
|
+
</ThemedView>
|
|
19
|
+
<ThemedText>This app includes example code to help you get started.</ThemedText>
|
|
20
|
+
<Collapsible title="File-based routing">
|
|
21
|
+
<ThemedText>
|
|
22
|
+
This app has two screens:{' '}
|
|
23
|
+
<ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> and{' '}
|
|
24
|
+
<ThemedText type="defaultSemiBold">app/(tabs)/explore.tsx</ThemedText>
|
|
25
|
+
</ThemedText>
|
|
26
|
+
<ThemedText>
|
|
27
|
+
The layout file in <ThemedText type="defaultSemiBold">app/(tabs)/_layout.tsx</ThemedText>{' '}
|
|
28
|
+
sets up the tab navigator.
|
|
29
|
+
</ThemedText>
|
|
30
|
+
<ExternalLink href="https://docs.expo.dev/router/introduction">
|
|
31
|
+
<ThemedText type="link">Learn more</ThemedText>
|
|
32
|
+
</ExternalLink>
|
|
33
|
+
</Collapsible>
|
|
34
|
+
<Collapsible title="Android, iOS, and web support">
|
|
35
|
+
<ThemedText>
|
|
36
|
+
You can open this project on Android, iOS, and the web. To open the web version, press{' '}
|
|
37
|
+
<ThemedText type="defaultSemiBold">w</ThemedText> in the terminal running this project.
|
|
38
|
+
</ThemedText>
|
|
39
|
+
</Collapsible>
|
|
40
|
+
<Collapsible title="Images">
|
|
41
|
+
<ThemedText>
|
|
42
|
+
For static images, you can use the <ThemedText type="defaultSemiBold">@2x</ThemedText> and{' '}
|
|
43
|
+
<ThemedText type="defaultSemiBold">@3x</ThemedText> suffixes to provide files for
|
|
44
|
+
different screen densities
|
|
45
|
+
</ThemedText>
|
|
46
|
+
<Image source={require('@/assets/images/react-logo.png')} style={{ width: 100, height: 100, alignSelf: 'center' }}/>
|
|
47
|
+
<ExternalLink href="https://reactnative.dev/docs/images">
|
|
48
|
+
<ThemedText type="link">Learn more</ThemedText>
|
|
49
|
+
</ExternalLink>
|
|
50
|
+
</Collapsible>
|
|
51
|
+
<Collapsible title="Light and dark mode components">
|
|
52
|
+
<ThemedText>
|
|
53
|
+
This template has light and dark mode support. The{' '}
|
|
54
|
+
<ThemedText type="defaultSemiBold">useColorScheme()</ThemedText> hook lets you inspect
|
|
55
|
+
what the user's current color scheme is, and so you can adjust UI colors accordingly.
|
|
56
|
+
</ThemedText>
|
|
57
|
+
<ExternalLink href="https://docs.expo.dev/develop/user-interface/color-themes/">
|
|
58
|
+
<ThemedText type="link">Learn more</ThemedText>
|
|
59
|
+
</ExternalLink>
|
|
60
|
+
</Collapsible>
|
|
61
|
+
<Collapsible title="Animations">
|
|
62
|
+
<ThemedText>
|
|
63
|
+
This template includes an example of an animated component. The{' '}
|
|
64
|
+
<ThemedText type="defaultSemiBold">components/HelloWave.tsx</ThemedText> component uses
|
|
65
|
+
the powerful{' '}
|
|
66
|
+
<ThemedText type="defaultSemiBold" style={{ fontFamily: Fonts.mono }}>
|
|
67
|
+
react-native-reanimated
|
|
68
|
+
</ThemedText>{' '}
|
|
69
|
+
library to create a waving hand animation.
|
|
70
|
+
</ThemedText>
|
|
71
|
+
{Platform.select({
|
|
72
|
+
ios: (<ThemedText>
|
|
73
|
+
The <ThemedText type="defaultSemiBold">components/ParallaxScrollView.tsx</ThemedText>{' '}
|
|
74
|
+
component provides a parallax effect for the header image.
|
|
75
|
+
</ThemedText>),
|
|
76
|
+
})}
|
|
77
|
+
</Collapsible>
|
|
78
|
+
</ParallaxScrollView>);
|
|
79
|
+
}
|
|
80
|
+
const styles = StyleSheet.create({
|
|
81
|
+
headerImage: {
|
|
82
|
+
color: '#808080',
|
|
83
|
+
bottom: -90,
|
|
84
|
+
left: -35,
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
},
|
|
87
|
+
titleContainer: {
|
|
88
|
+
flexDirection: 'row',
|
|
89
|
+
gap: 8,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=explore.js.map
|
|
93
|
+
//# sourceMappingURL=explore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore.js","sourceRoot":"","sources":["../../../../expo-test/app/(tabs)/explore.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,MAAM,CAAC,OAAO,UAAU,YAAY;IAChC,OAAO,CAAC,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,yCAAyC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CACxN;MAAA,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CACvC;QAAA,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,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f;kBAAI,CAAC,UAAU,CAAC,IAAI,CAAC,iBAAiB,CAAC,iCAAiC,EAAE,UAAU,CAAC,CAAC,GAAG,CACzF;;YACF,EAAE,UAAU,CAAC,CAAC;SACjB,CAAC,CACJ;MAAA,EAAE,WAAW,CACf;IAAA,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC3B,CAAC;AACD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7B,WAAW,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,CAAC,EAAE;QACX,IAAI,EAAE,CAAC,EAAE;QACT,QAAQ,EAAE,UAAU;KACvB;IACD,cAAc,EAAE;QACZ,aAAa,EAAE,KAAK;QACpB,GAAG,EAAE,CAAC;KACT;CACJ,CAAC,CAAC;AACH,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function HomeScreen(): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Image } from 'expo-image';
|
|
2
|
+
import { Platform, StyleSheet } from 'react-native';
|
|
3
|
+
import { HelloWave } from '@/components/hello-wave';
|
|
4
|
+
import ParallaxScrollView from '@/components/parallax-scroll-view';
|
|
5
|
+
import { ThemedText } from '@/components/themed-text';
|
|
6
|
+
import { ThemedView } from '@/components/themed-view';
|
|
7
|
+
import { Link } from 'expo-router';
|
|
8
|
+
export default function HomeScreen() {
|
|
9
|
+
return (<ParallaxScrollView headerBackgroundColor={{ light: '#A1CEDC', dark: '#1D3D47' }} headerImage={<Image source={require('@/assets/images/partial-react-logo.png')} style={styles.reactLogo}/>}>
|
|
10
|
+
<ThemedView style={styles.titleContainer}>
|
|
11
|
+
<ThemedText type="title">Welcome!</ThemedText>
|
|
12
|
+
<HelloWave />
|
|
13
|
+
</ThemedView>
|
|
14
|
+
<ThemedView style={styles.stepContainer}>
|
|
15
|
+
<ThemedText type="subtitle">Step 1: Try it</ThemedText>
|
|
16
|
+
<ThemedText>
|
|
17
|
+
Edit <ThemedText type="defaultSemiBold">app/(tabs)/index.tsx</ThemedText> to see changes.
|
|
18
|
+
Press{' '}
|
|
19
|
+
<ThemedText type="defaultSemiBold">
|
|
20
|
+
{Platform.select({
|
|
21
|
+
ios: 'cmd + d',
|
|
22
|
+
android: 'cmd + m',
|
|
23
|
+
web: 'F12',
|
|
24
|
+
})}
|
|
25
|
+
</ThemedText>{' '}
|
|
26
|
+
to open developer tools.
|
|
27
|
+
</ThemedText>
|
|
28
|
+
</ThemedView>
|
|
29
|
+
<ThemedView style={styles.stepContainer}>
|
|
30
|
+
<Link href="/modal">
|
|
31
|
+
<Link.Trigger>
|
|
32
|
+
<ThemedText type="subtitle">Step 2: Explore</ThemedText>
|
|
33
|
+
</Link.Trigger>
|
|
34
|
+
<Link.Preview />
|
|
35
|
+
<Link.Menu>
|
|
36
|
+
<Link.MenuAction title="Action" icon="cube" onPress={() => alert('Action pressed')}/>
|
|
37
|
+
<Link.MenuAction title="Share" icon="square.and.arrow.up" onPress={() => alert('Share pressed')}/>
|
|
38
|
+
<Link.Menu title="More" icon="ellipsis">
|
|
39
|
+
<Link.MenuAction title="Delete" icon="trash" destructive onPress={() => alert('Delete pressed')}/>
|
|
40
|
+
</Link.Menu>
|
|
41
|
+
</Link.Menu>
|
|
42
|
+
</Link>
|
|
43
|
+
|
|
44
|
+
<ThemedText>
|
|
45
|
+
{`Tap the Explore tab to learn more about what's included in this starter app.`}
|
|
46
|
+
</ThemedText>
|
|
47
|
+
</ThemedView>
|
|
48
|
+
<ThemedView style={styles.stepContainer}>
|
|
49
|
+
<ThemedText type="subtitle">Step 3: Get a fresh start</ThemedText>
|
|
50
|
+
<ThemedText>
|
|
51
|
+
{`When you're ready, run `}
|
|
52
|
+
<ThemedText type="defaultSemiBold">npm run reset-project</ThemedText> to get a fresh{' '}
|
|
53
|
+
<ThemedText type="defaultSemiBold">app</ThemedText> directory. This will move the current{' '}
|
|
54
|
+
<ThemedText type="defaultSemiBold">app</ThemedText> to{' '}
|
|
55
|
+
<ThemedText type="defaultSemiBold">app-example</ThemedText>.
|
|
56
|
+
</ThemedText>
|
|
57
|
+
</ThemedView>
|
|
58
|
+
</ParallaxScrollView>);
|
|
59
|
+
}
|
|
60
|
+
const styles = StyleSheet.create({
|
|
61
|
+
titleContainer: {
|
|
62
|
+
flexDirection: 'row',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
gap: 8,
|
|
65
|
+
},
|
|
66
|
+
stepContainer: {
|
|
67
|
+
gap: 8,
|
|
68
|
+
marginBottom: 8,
|
|
69
|
+
},
|
|
70
|
+
reactLogo: {
|
|
71
|
+
height: 178,
|
|
72
|
+
width: 290,
|
|
73
|
+
bottom: 0,
|
|
74
|
+
left: 0,
|
|
75
|
+
position: 'absolute',
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../expo-test/app/(tabs)/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,MAAM,CAAC,OAAO,UAAU,UAAU;IAC9B,OAAO,CAAC,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CA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IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,UAAU,CAAC;QAC7D,EAAE,UAAU,CACd;MAAA,EAAE,UAAU,CACd;IAAA,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC3B,CAAC;AACD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC7B,cAAc,EAAE;QACZ,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACT;IACD,aAAa,EAAE;QACX,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,CAAC;KAClB;IACD,SAAS,EAAE;QACP,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;KACvB;CACJ,CAAC,CAAC;AACH,iCAAiC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
|
|
2
|
+
import { Stack } from 'expo-router';
|
|
3
|
+
import { StatusBar } from 'expo-status-bar';
|
|
4
|
+
import 'react-native-reanimated';
|
|
5
|
+
import { useColorScheme } from '@/hooks/use-color-scheme';
|
|
6
|
+
export const unstable_settings = {
|
|
7
|
+
anchor: '(tabs)',
|
|
8
|
+
};
|
|
9
|
+
export default function RootLayout() {
|
|
10
|
+
const colorScheme = useColorScheme();
|
|
11
|
+
return (<ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
|
|
12
|
+
<Stack>
|
|
13
|
+
<Stack.Screen name="(tabs)" options={{ headerShown: false }}/>
|
|
14
|
+
<Stack.Screen name="modal" options={{ presentation: 'modal', title: 'Modal' }}/>
|
|
15
|
+
</Stack>
|
|
16
|
+
<StatusBar style="auto"/>
|
|
17
|
+
</ThemeProvider>);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=_layout.js.map
|
|
20
|
+
//# sourceMappingURL=_layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.js","sourceRoot":"","sources":["../../../expo-test/app/_layout.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,MAAM,EAAE,QAAQ;CACnB,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,UAAU;IAC9B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAC9E;MAAA,CAAC,KAAK,CACJ;QAAA,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,EAC5D;QAAA,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAChF;MAAA,EAAE,KAAK,CACP;MAAA,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EACzB;IAAA,EAAE,aAAa,CAAC,CAAC,CAAC;AACtB,CAAC;AACD,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ModalScreen(): any;
|