@oxyhq/services 5.4.2 → 5.4.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/README.md +14 -0
- package/lib/commonjs/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/OxyLogo.svg +1 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +67 -0
- package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/icons/OxyServices.js +53 -0
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -0
- package/lib/commonjs/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/constants/version.js +28 -0
- package/lib/commonjs/constants/version.js.map +1 -0
- package/lib/commonjs/core/index.js +1660 -0
- package/lib/commonjs/core/index.js.map +1 -0
- package/lib/commonjs/index.js +160 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lib/sonner.js +21 -0
- package/lib/commonjs/lib/sonner.js.map +1 -0
- package/lib/commonjs/models/interfaces.js +2 -0
- package/lib/commonjs/models/interfaces.js.map +1 -0
- package/lib/commonjs/models/secureSession.js +2 -0
- package/lib/commonjs/models/secureSession.js.map +1 -0
- package/lib/commonjs/node/createAuth.js +95 -0
- package/lib/commonjs/node/createAuth.js.map +1 -0
- package/lib/commonjs/node/index.js +63 -0
- package/lib/commonjs/node/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/components/Avatar.js +98 -0
- package/lib/commonjs/ui/components/Avatar.js.map +1 -0
- package/lib/commonjs/ui/components/FollowButton.js +246 -0
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -0
- package/lib/commonjs/ui/components/FontLoader.js +181 -0
- package/lib/commonjs/ui/components/FontLoader.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedItem.js +109 -0
- package/lib/commonjs/ui/components/GroupedItem.js.map +1 -0
- package/lib/commonjs/ui/components/GroupedSection.js +33 -0
- package/lib/commonjs/ui/components/GroupedSection.js.map +1 -0
- package/lib/commonjs/ui/components/OxyLogo.js +56 -0
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -0
- package/lib/commonjs/ui/components/OxyProvider.js +522 -0
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/OxySignInButton.js +178 -0
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -0
- package/lib/commonjs/ui/components/ProfileCard.js +124 -0
- package/lib/commonjs/ui/components/ProfileCard.js.map +1 -0
- package/lib/commonjs/ui/components/QuickActions.js +87 -0
- package/lib/commonjs/ui/components/QuickActions.js.map +1 -0
- package/lib/commonjs/ui/components/Section.js +36 -0
- package/lib/commonjs/ui/components/Section.js.map +1 -0
- package/lib/commonjs/ui/components/SectionTitle.js +35 -0
- package/lib/commonjs/ui/components/SectionTitle.js.map +1 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js +37 -0
- package/lib/commonjs/ui/components/bottomSheet/index.js.map +1 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js +27 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/commonjs/ui/components/icon/index.js +14 -0
- package/lib/commonjs/ui/components/icon/index.js.map +1 -0
- package/lib/commonjs/ui/components/index.js +97 -0
- package/lib/commonjs/ui/components/index.js.map +1 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/commonjs/ui/components/internal/TextField.js +576 -0
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +584 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -0
- package/lib/commonjs/ui/index.js +136 -0
- package/lib/commonjs/ui/index.js.map +1 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js +269 -0
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -0
- package/lib/commonjs/ui/navigation/types.js +6 -0
- package/lib/commonjs/ui/navigation/types.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +313 -0
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +299 -0
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +855 -0
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +843 -0
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +788 -0
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js +664 -0
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +636 -0
- package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +2515 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +1620 -0
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js +450 -0
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +449 -0
- package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignInScreen.js +882 -0
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/SignUpScreen.js +1036 -0
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +88 -0
- package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +364 -0
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +227 -0
- package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +148 -0
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +127 -0
- package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +105 -0
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
- package/lib/commonjs/ui/store/index.js +52 -0
- package/lib/commonjs/ui/store/index.js.map +1 -0
- package/lib/commonjs/ui/styles/FONTS.md +126 -0
- package/lib/commonjs/ui/styles/fonts.js +84 -0
- package/lib/commonjs/ui/styles/fonts.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +28 -0
- package/lib/commonjs/ui/styles/index.js.map +1 -0
- package/lib/commonjs/ui/styles/theme.js +121 -0
- package/lib/commonjs/ui/styles/theme.js.map +1 -0
- package/lib/commonjs/utils/deviceManager.js +173 -0
- package/lib/commonjs/utils/deviceManager.js.map +1 -0
- package/lib/commonjs/utils/index.js +13 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/polyfills.js +42 -0
- package/lib/commonjs/utils/polyfills.js.map +1 -0
- package/lib/module/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/OxyLogo.svg +1 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/assets/icons/OxyServices.tsx +67 -0
- package/lib/module/assets/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
- package/lib/module/assets/icons/OxyServices.js +46 -0
- package/lib/module/assets/icons/OxyServices.js.map +1 -0
- package/lib/module/assets/icons/logo_OxyServices.svg +1 -0
- package/lib/module/assets/illustrations/HighFive.js +55 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/constants/version.js +21 -0
- package/lib/module/constants/version.js.map +1 -0
- package/lib/module/core/index.js +1634 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/index.js +48 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/lib/sonner.js +16 -0
- package/lib/module/lib/sonner.js.map +1 -0
- package/lib/module/models/interfaces.js +2 -0
- package/lib/module/models/interfaces.js.map +1 -0
- package/lib/module/models/secureSession.js +2 -0
- package/lib/module/models/secureSession.js.map +1 -0
- package/lib/module/node/createAuth.js +90 -0
- package/lib/module/node/createAuth.js.map +1 -0
- package/lib/module/node/index.js +27 -0
- package/lib/module/node/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/ui/components/Avatar.js +93 -0
- package/lib/module/ui/components/Avatar.js.map +1 -0
- package/lib/module/ui/components/FollowButton.js +241 -0
- package/lib/module/ui/components/FollowButton.js.map +1 -0
- package/lib/module/ui/components/FontLoader.js +176 -0
- package/lib/module/ui/components/FontLoader.js.map +1 -0
- package/lib/module/ui/components/GroupedItem.js +104 -0
- package/lib/module/ui/components/GroupedItem.js.map +1 -0
- package/lib/module/ui/components/GroupedSection.js +28 -0
- package/lib/module/ui/components/GroupedSection.js.map +1 -0
- package/lib/module/ui/components/OxyLogo.js +49 -0
- package/lib/module/ui/components/OxyLogo.js.map +1 -0
- package/lib/module/ui/components/OxyProvider.js +516 -0
- package/lib/module/ui/components/OxyProvider.js.map +1 -0
- package/lib/module/ui/components/OxySignInButton.js +172 -0
- package/lib/module/ui/components/OxySignInButton.js.map +1 -0
- package/lib/module/ui/components/ProfileCard.js +119 -0
- package/lib/module/ui/components/ProfileCard.js.map +1 -0
- package/lib/module/ui/components/QuickActions.js +82 -0
- package/lib/module/ui/components/QuickActions.js.map +1 -0
- package/lib/module/ui/components/Section.js +31 -0
- package/lib/module/ui/components/Section.js.map +1 -0
- package/lib/module/ui/components/SectionTitle.js +30 -0
- package/lib/module/ui/components/SectionTitle.js.map +1 -0
- package/lib/module/ui/components/bottomSheet/index.js +5 -0
- package/lib/module/ui/components/bottomSheet/index.js.map +1 -0
- package/lib/module/ui/components/icon/OxyIcon.js +22 -0
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -0
- package/lib/module/ui/components/icon/index.js +4 -0
- package/lib/module/ui/components/icon/index.js.map +1 -0
- package/lib/module/ui/components/index.js +18 -0
- package/lib/module/ui/components/index.js.map +1 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/module/ui/components/internal/TextField.js +571 -0
- package/lib/module/ui/components/internal/TextField.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +579 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -0
- package/lib/module/ui/index.js +26 -0
- package/lib/module/ui/index.js.map +1 -0
- package/lib/module/ui/navigation/OxyRouter.js +262 -0
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -0
- package/lib/module/ui/navigation/types.js +4 -0
- package/lib/module/ui/navigation/types.js.map +1 -0
- package/lib/module/ui/screens/AccountCenterScreen.js +308 -0
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountManagementDemo.js +296 -0
- package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -0
- package/lib/module/ui/screens/AccountOverviewScreen.js +849 -0
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js +837 -0
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js +782 -0
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -0
- package/lib/module/ui/screens/AppInfoScreen.js +658 -0
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -0
- package/lib/module/ui/screens/BillingManagementScreen.js +631 -0
- package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +2510 -0
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +1615 -0
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -0
- package/lib/module/ui/screens/ProfileScreen.js +444 -0
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -0
- package/lib/module/ui/screens/SessionManagementScreen.js +444 -0
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -0
- package/lib/module/ui/screens/SignInScreen.js +876 -0
- package/lib/module/ui/screens/SignInScreen.js.map +1 -0
- package/lib/module/ui/screens/SignUpScreen.js +1030 -0
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js +83 -0
- package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +358 -0
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js +222 -0
- package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +142 -0
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +122 -0
- package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +1 -0
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +100 -0
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -0
- package/lib/module/ui/store/index.js +44 -0
- package/lib/module/ui/store/index.js.map +1 -0
- package/lib/module/ui/styles/FONTS.md +126 -0
- package/lib/module/ui/styles/fonts.js +81 -0
- package/lib/module/ui/styles/fonts.js.map +1 -0
- package/lib/module/ui/styles/index.js +5 -0
- package/lib/module/ui/styles/index.js.map +1 -0
- package/lib/module/ui/styles/theme.js +114 -0
- package/lib/module/ui/styles/theme.js.map +1 -0
- package/lib/module/utils/deviceManager.js +167 -0
- package/lib/module/utils/deviceManager.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/polyfills.js +36 -0
- package/lib/module/utils/polyfills.js.map +1 -0
- package/lib/typescript/assets/icons/OxyServices.d.ts +29 -0
- package/lib/typescript/assets/icons/OxyServices.d.ts.map +1 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/constants/version.d.ts +14 -0
- package/lib/typescript/constants/version.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts +603 -0
- package/lib/typescript/core/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +20 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/lib/sonner.d.ts +6 -0
- package/lib/typescript/lib/sonner.d.ts.map +1 -0
- package/lib/typescript/models/interfaces.d.ts +179 -0
- package/lib/typescript/models/interfaces.d.ts.map +1 -0
- package/lib/typescript/models/secureSession.d.ts +27 -0
- package/lib/typescript/models/secureSession.d.ts.map +1 -0
- package/lib/typescript/node/createAuth.d.ts +7 -0
- package/lib/typescript/node/createAuth.d.ts.map +1 -0
- package/lib/typescript/node/index.d.ts +13 -0
- package/lib/typescript/node/index.d.ts.map +1 -0
- package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
- package/lib/typescript/types/express.d.ts +5 -0
- package/lib/typescript/types/react-redux.d.ts +5 -0
- package/lib/typescript/ui/components/Avatar.d.ts +62 -0
- package/lib/typescript/ui/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/ui/components/FollowButton.d.ts +92 -0
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/FontLoader.d.ts +15 -0
- package/lib/typescript/ui/components/FontLoader.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts +17 -0
- package/lib/typescript/ui/components/GroupedItem.d.ts.map +1 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts +19 -0
- package/lib/typescript/ui/components/GroupedSection.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts +29 -0
- package/lib/typescript/ui/components/OxyLogo.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts +12 -0
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts +70 -0
- package/lib/typescript/ui/components/OxySignInButton.d.ts.map +1 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts +20 -0
- package/lib/typescript/ui/components/ProfileCard.d.ts.map +1 -0
- package/lib/typescript/ui/components/QuickActions.d.ts +15 -0
- package/lib/typescript/ui/components/QuickActions.d.ts.map +1 -0
- package/lib/typescript/ui/components/Section.d.ts +11 -0
- package/lib/typescript/ui/components/Section.d.ts.map +1 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts +9 -0
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -0
- package/lib/typescript/ui/components/bottomSheet/index.d.ts +4 -0
- package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +10 -0
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/index.d.ts +3 -0
- package/lib/typescript/ui/components/icon/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/index.d.ts +13 -0
- package/lib/typescript/ui/components/index.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +42 -0
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +17 -0
- package/lib/typescript/ui/index.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts +5 -0
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -0
- package/lib/typescript/ui/navigation/types.d.ts +116 -0
- package/lib/typescript/ui/navigation/types.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +8 -0
- package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts +8 -0
- package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts +9 -0
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +1 -0
- package/lib/typescript/ui/store/index.d.ts +19 -0
- package/lib/typescript/ui/store/index.d.ts.map +1 -0
- package/lib/typescript/ui/styles/fonts.d.ts +21 -0
- package/lib/typescript/ui/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/ui/styles/index.d.ts +3 -0
- package/lib/typescript/ui/styles/index.d.ts.map +1 -0
- package/lib/typescript/ui/styles/theme.d.ts +68 -0
- package/lib/typescript/ui/styles/theme.d.ts.map +1 -0
- package/lib/typescript/utils/deviceManager.d.ts +66 -0
- package/lib/typescript/utils/deviceManager.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +3 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/lib/typescript/utils/polyfills.d.ts +6 -0
- package/lib/typescript/utils/polyfills.d.ts.map +1 -0
- package/package.json +7 -6
- package/src/assets/illustrations/HighFive.tsx +41 -0
- package/src/node/createAuth.ts +116 -0
- package/src/node/index.ts +4 -0
- package/src/types/expo-vector-icons.d.ts +3 -0
- package/src/types/express.d.ts +5 -0
- package/src/types/react-redux.d.ts +5 -0
- package/src/ui/components/OxyProvider.tsx +136 -135
- package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
- package/src/ui/components/internal/TextField.tsx +694 -0
- package/src/ui/index.ts +6 -2
- package/src/ui/navigation/OxyRouter.tsx +8 -3
- package/src/ui/screens/FeedbackScreen.tsx +1042 -0
- package/src/ui/screens/SignInScreen.tsx +179 -222
- package/src/ui/screens/SignUpScreen.tsx +772 -608
- package/src/ui/store/index.ts +51 -0
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _OxyContext = require("../context/OxyContext");
|
|
10
|
+
var _fonts = require("../styles/fonts");
|
|
11
|
+
var _version = require("../../constants/version");
|
|
12
|
+
var _sonner = require("../../lib/sonner");
|
|
13
|
+
var _OxyIcon = _interopRequireDefault(require("../components/icon/OxyIcon"));
|
|
14
|
+
var _vectorIcons = require("@expo/vector-icons");
|
|
15
|
+
var _OxyServices = _interopRequireDefault(require("../../assets/icons/OxyServices"));
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
|
+
const AppInfoScreen = ({
|
|
20
|
+
onClose,
|
|
21
|
+
theme,
|
|
22
|
+
navigate
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
user,
|
|
26
|
+
sessions,
|
|
27
|
+
oxyServices
|
|
28
|
+
} = (0, _OxyContext.useOxy)();
|
|
29
|
+
const [systemInfo, setSystemInfo] = (0, _react.useState)(null);
|
|
30
|
+
const [isRunningSystemCheck, setIsRunningSystemCheck] = (0, _react.useState)(false);
|
|
31
|
+
const [connectionStatus, setConnectionStatus] = (0, _react.useState)('unknown');
|
|
32
|
+
const isDarkTheme = theme === 'dark';
|
|
33
|
+
const backgroundColor = isDarkTheme ? '#121212' : '#f2f2f2';
|
|
34
|
+
const primaryColor = '#007AFF';
|
|
35
|
+
(0, _react.useEffect)(() => {
|
|
36
|
+
const updateDimensions = () => {
|
|
37
|
+
const dimensions = _reactNative.Dimensions.get('window');
|
|
38
|
+
setSystemInfo(prev => ({
|
|
39
|
+
...prev,
|
|
40
|
+
platform: _reactNative.Platform.OS,
|
|
41
|
+
version: _reactNative.Platform.Version?.toString() || 'Unknown',
|
|
42
|
+
screenDimensions: {
|
|
43
|
+
width: dimensions.width,
|
|
44
|
+
height: dimensions.height
|
|
45
|
+
},
|
|
46
|
+
timestamp: new Date().toISOString()
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// Set initial dimensions
|
|
51
|
+
updateDimensions();
|
|
52
|
+
|
|
53
|
+
// Listen for dimension changes
|
|
54
|
+
const subscription = _reactNative.Dimensions.addEventListener('change', updateDimensions);
|
|
55
|
+
|
|
56
|
+
// Check API connection on mount
|
|
57
|
+
const checkConnection = async () => {
|
|
58
|
+
setConnectionStatus('checking');
|
|
59
|
+
const apiBaseUrl = oxyServices?.getBaseURL() || 'https://api.oxy.so';
|
|
60
|
+
try {
|
|
61
|
+
const response = await fetch(`${apiBaseUrl}/`, {
|
|
62
|
+
method: 'GET',
|
|
63
|
+
timeout: 3000
|
|
64
|
+
});
|
|
65
|
+
if (response.ok) {
|
|
66
|
+
setConnectionStatus('connected');
|
|
67
|
+
} else {
|
|
68
|
+
setConnectionStatus('disconnected');
|
|
69
|
+
}
|
|
70
|
+
} catch (error) {
|
|
71
|
+
setConnectionStatus('disconnected');
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
checkConnection();
|
|
75
|
+
|
|
76
|
+
// Cleanup listener on unmount
|
|
77
|
+
return () => {
|
|
78
|
+
subscription?.remove();
|
|
79
|
+
};
|
|
80
|
+
}, []);
|
|
81
|
+
const copyToClipboard = async (text, label) => {
|
|
82
|
+
try {
|
|
83
|
+
await _reactNative.Clipboard.setString(text);
|
|
84
|
+
_sonner.toast.success(`${label} copied to clipboard`);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
_sonner.toast.error('Failed to copy to clipboard');
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const runSystemCheck = async () => {
|
|
90
|
+
if (!oxyServices) {
|
|
91
|
+
_sonner.toast.error('OxyServices not initialized');
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
setIsRunningSystemCheck(true);
|
|
95
|
+
const checks = [];
|
|
96
|
+
|
|
97
|
+
// Get the API base URL from the services instance
|
|
98
|
+
const apiBaseUrl = oxyServices?.getBaseURL() || 'https://api.oxy.so'; // Default for now, could be made configurable
|
|
99
|
+
|
|
100
|
+
try {
|
|
101
|
+
// Check 1: API Server Health
|
|
102
|
+
checks.push('🔍 Checking API server connection...');
|
|
103
|
+
_sonner.toast.info('Running system checks...', {
|
|
104
|
+
duration: 2000
|
|
105
|
+
});
|
|
106
|
+
try {
|
|
107
|
+
const response = await fetch(`${apiBaseUrl}/`, {
|
|
108
|
+
method: 'GET',
|
|
109
|
+
timeout: 5000
|
|
110
|
+
});
|
|
111
|
+
if (response.ok) {
|
|
112
|
+
const data = await response.json();
|
|
113
|
+
checks.push('✅ API server is responding');
|
|
114
|
+
checks.push(`📊 Server stats: ${data.users || 0} users`);
|
|
115
|
+
checks.push(`🌐 API URL: ${apiBaseUrl}`);
|
|
116
|
+
setConnectionStatus('connected');
|
|
117
|
+
} else {
|
|
118
|
+
checks.push('❌ API server returned error status');
|
|
119
|
+
checks.push(` Status: ${response.status} ${response.statusText}`);
|
|
120
|
+
setConnectionStatus('disconnected');
|
|
121
|
+
}
|
|
122
|
+
} catch (error) {
|
|
123
|
+
checks.push('❌ API server connection failed');
|
|
124
|
+
checks.push(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
125
|
+
checks.push(` URL: ${apiBaseUrl}`);
|
|
126
|
+
setConnectionStatus('disconnected');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Check 2: Authentication Status
|
|
130
|
+
checks.push('🔍 Checking authentication...');
|
|
131
|
+
if (oxyServices.isAuthenticated()) {
|
|
132
|
+
checks.push('✅ User is authenticated');
|
|
133
|
+
|
|
134
|
+
// Check 3: Token Validation
|
|
135
|
+
try {
|
|
136
|
+
const isValid = await oxyServices.validate();
|
|
137
|
+
if (isValid) {
|
|
138
|
+
checks.push('✅ Authentication token is valid');
|
|
139
|
+
} else {
|
|
140
|
+
checks.push('❌ Authentication token is invalid');
|
|
141
|
+
}
|
|
142
|
+
} catch (error) {
|
|
143
|
+
checks.push('❌ Token validation failed');
|
|
144
|
+
checks.push(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
checks.push('⚠️ User is not authenticated');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Check 4: Session Validation (if user has active sessions)
|
|
151
|
+
if (user && sessions && sessions.length > 0) {
|
|
152
|
+
checks.push('🔍 Checking active sessions...');
|
|
153
|
+
try {
|
|
154
|
+
// Just check if we can fetch sessions
|
|
155
|
+
const userSessions = await oxyServices.getUserSessions();
|
|
156
|
+
checks.push(`✅ Session validation successful (${userSessions.length} sessions)`);
|
|
157
|
+
} catch (error) {
|
|
158
|
+
checks.push('❌ Session validation failed');
|
|
159
|
+
checks.push(` Error: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Check 5: Platform Information
|
|
164
|
+
checks.push('🔍 Checking platform information...');
|
|
165
|
+
checks.push(`✅ Platform: ${_reactNative.Platform.OS} ${_reactNative.Platform.Version || 'Unknown'}`);
|
|
166
|
+
checks.push(`✅ Screen: ${systemInfo?.screenDimensions.width || 0}x${systemInfo?.screenDimensions.height || 0}`);
|
|
167
|
+
checks.push(`✅ Environment: ${__DEV__ ? 'Development' : 'Production'}`);
|
|
168
|
+
|
|
169
|
+
// Check 6: Package Information
|
|
170
|
+
checks.push('🔍 Checking package information...');
|
|
171
|
+
checks.push(`✅ Package: ${_version.packageInfo.name}@${_version.packageInfo.version}`);
|
|
172
|
+
|
|
173
|
+
// Check 7: Memory and Performance (basic)
|
|
174
|
+
checks.push('🔍 Checking performance metrics...');
|
|
175
|
+
const memoryUsage = performance.memory;
|
|
176
|
+
if (memoryUsage) {
|
|
177
|
+
const usedMB = Math.round(memoryUsage.usedJSHeapSize / 1024 / 1024);
|
|
178
|
+
const totalMB = Math.round(memoryUsage.totalJSHeapSize / 1024 / 1024);
|
|
179
|
+
checks.push(`✅ Memory usage: ${usedMB}MB / ${totalMB}MB`);
|
|
180
|
+
} else {
|
|
181
|
+
checks.push('✅ Performance metrics not available on this platform');
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// Final summary
|
|
185
|
+
const errorCount = checks.filter(check => check.includes('❌')).length;
|
|
186
|
+
const warningCount = checks.filter(check => check.includes('⚠️')).length;
|
|
187
|
+
checks.push('');
|
|
188
|
+
checks.push('📋 SYSTEM CHECK SUMMARY:');
|
|
189
|
+
if (errorCount === 0 && warningCount === 0) {
|
|
190
|
+
checks.push('✅ All systems operational');
|
|
191
|
+
_sonner.toast.success('System check completed - All systems operational!');
|
|
192
|
+
} else if (errorCount === 0) {
|
|
193
|
+
checks.push(`⚠️ ${warningCount} warning(s) found`);
|
|
194
|
+
_sonner.toast.warning(`System check completed with ${warningCount} warning(s)`);
|
|
195
|
+
} else {
|
|
196
|
+
checks.push(`❌ ${errorCount} error(s) and ${warningCount} warning(s) found`);
|
|
197
|
+
_sonner.toast.error(`System check failed with ${errorCount} error(s)`);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Show results in an alert and copy to clipboard
|
|
201
|
+
const report = checks.join('\n');
|
|
202
|
+
_reactNative.Alert.alert('System Check Results', `Check completed. Results copied to clipboard.\n\nSummary: ${errorCount} errors, ${warningCount} warnings`, [{
|
|
203
|
+
text: 'View Full Report',
|
|
204
|
+
onPress: () => copyToClipboard(report, 'System check report')
|
|
205
|
+
}, {
|
|
206
|
+
text: 'OK',
|
|
207
|
+
style: 'default'
|
|
208
|
+
}]);
|
|
209
|
+
} catch (error) {
|
|
210
|
+
_sonner.toast.error('System check failed to run');
|
|
211
|
+
console.error('System check error:', error);
|
|
212
|
+
} finally {
|
|
213
|
+
setIsRunningSystemCheck(false);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
const generateFullReport = () => {
|
|
217
|
+
const report = {
|
|
218
|
+
packageInfo: {
|
|
219
|
+
name: _version.packageInfo.name,
|
|
220
|
+
version: _version.packageInfo.version,
|
|
221
|
+
description: _version.packageInfo.description
|
|
222
|
+
},
|
|
223
|
+
systemInfo,
|
|
224
|
+
userInfo: {
|
|
225
|
+
isAuthenticated: !!user,
|
|
226
|
+
userId: user?.id || 'Not authenticated',
|
|
227
|
+
username: user?.username || 'N/A',
|
|
228
|
+
totalUsers: sessions?.length || 0
|
|
229
|
+
},
|
|
230
|
+
apiConfiguration: {
|
|
231
|
+
apiUrl: oxyServices?.getBaseURL() || 'Not configured'
|
|
232
|
+
},
|
|
233
|
+
buildInfo: {
|
|
234
|
+
timestamp: new Date().toISOString(),
|
|
235
|
+
environment: __DEV__ ? 'Development' : 'Production'
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
return JSON.stringify(report, null, 2);
|
|
239
|
+
};
|
|
240
|
+
const handleCopyFullReport = () => {
|
|
241
|
+
const report = generateFullReport();
|
|
242
|
+
copyToClipboard(report, 'Full application report');
|
|
243
|
+
};
|
|
244
|
+
const InfoRow = ({
|
|
245
|
+
label,
|
|
246
|
+
value,
|
|
247
|
+
copyable = false,
|
|
248
|
+
icon = 'information-circle',
|
|
249
|
+
iconComponent,
|
|
250
|
+
color = '#8E8E93',
|
|
251
|
+
isFirst = false,
|
|
252
|
+
isLast = false,
|
|
253
|
+
onPress,
|
|
254
|
+
showChevron = false
|
|
255
|
+
}) => {
|
|
256
|
+
const handlePress = () => {
|
|
257
|
+
if (onPress) {
|
|
258
|
+
onPress();
|
|
259
|
+
} else if (copyable) {
|
|
260
|
+
copyToClipboard(value, label);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
const isInteractive = copyable || !!onPress;
|
|
264
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
265
|
+
style: [styles.settingItem, isFirst && styles.firstSettingItem, isLast && styles.lastSettingItem],
|
|
266
|
+
onPress: isInteractive ? handlePress : undefined,
|
|
267
|
+
disabled: !isInteractive,
|
|
268
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
269
|
+
style: styles.settingInfo,
|
|
270
|
+
children: [iconComponent ? (/*#__PURE__*/_react.default.cloneElement(iconComponent, {
|
|
271
|
+
style: styles.settingIcon
|
|
272
|
+
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
273
|
+
name: icon,
|
|
274
|
+
size: 20,
|
|
275
|
+
color: color,
|
|
276
|
+
style: styles.settingIcon
|
|
277
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
278
|
+
style: styles.settingDetails,
|
|
279
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
280
|
+
style: styles.settingLabel,
|
|
281
|
+
children: label
|
|
282
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
283
|
+
style: [styles.settingValue, (copyable || onPress) && {
|
|
284
|
+
color: primaryColor
|
|
285
|
+
}],
|
|
286
|
+
children: value
|
|
287
|
+
})]
|
|
288
|
+
})]
|
|
289
|
+
}), copyable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
290
|
+
name: "copy",
|
|
291
|
+
size: 16,
|
|
292
|
+
color: "#ccc"
|
|
293
|
+
}), showChevron && /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
294
|
+
name: "chevron-forward",
|
|
295
|
+
size: 16,
|
|
296
|
+
color: "#ccc"
|
|
297
|
+
})]
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
301
|
+
style: [styles.container, {
|
|
302
|
+
backgroundColor
|
|
303
|
+
}],
|
|
304
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
305
|
+
style: styles.header,
|
|
306
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
307
|
+
style: styles.cancelButton,
|
|
308
|
+
onPress: onClose,
|
|
309
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
310
|
+
name: "close",
|
|
311
|
+
size: 24,
|
|
312
|
+
color: "#666"
|
|
313
|
+
})
|
|
314
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
315
|
+
style: styles.headerTitle,
|
|
316
|
+
children: "App Information"
|
|
317
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
318
|
+
style: styles.placeholder
|
|
319
|
+
})]
|
|
320
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
321
|
+
style: styles.content,
|
|
322
|
+
showsVerticalScrollIndicator: false,
|
|
323
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
324
|
+
style: styles.section,
|
|
325
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
326
|
+
style: styles.sectionTitle,
|
|
327
|
+
children: "Package Information"
|
|
328
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
329
|
+
label: "Name",
|
|
330
|
+
value: _version.packageInfo.name,
|
|
331
|
+
copyable: true,
|
|
332
|
+
iconComponent: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyServices.default, {
|
|
333
|
+
width: 20,
|
|
334
|
+
height: 20
|
|
335
|
+
}),
|
|
336
|
+
color: "#007AFF",
|
|
337
|
+
isFirst: true
|
|
338
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
339
|
+
label: "Version",
|
|
340
|
+
value: _version.packageInfo.version,
|
|
341
|
+
copyable: true,
|
|
342
|
+
icon: "pricetag",
|
|
343
|
+
color: "#5856D6"
|
|
344
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
345
|
+
label: "Description",
|
|
346
|
+
value: _version.packageInfo.description || 'No description',
|
|
347
|
+
icon: "document-text",
|
|
348
|
+
color: "#34C759"
|
|
349
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
350
|
+
label: "Main Entry",
|
|
351
|
+
value: _version.packageInfo.main || 'N/A',
|
|
352
|
+
icon: "code",
|
|
353
|
+
color: "#FF9500"
|
|
354
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
355
|
+
label: "Module Entry",
|
|
356
|
+
value: _version.packageInfo.module || 'N/A',
|
|
357
|
+
icon: "library",
|
|
358
|
+
color: "#FF3B30"
|
|
359
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
360
|
+
label: "Types Entry",
|
|
361
|
+
value: _version.packageInfo.types || 'N/A',
|
|
362
|
+
icon: "construct",
|
|
363
|
+
color: "#32D74B",
|
|
364
|
+
isLast: true
|
|
365
|
+
})]
|
|
366
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
367
|
+
style: styles.section,
|
|
368
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
369
|
+
style: styles.sectionTitle,
|
|
370
|
+
children: "System Information"
|
|
371
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
372
|
+
label: "Platform",
|
|
373
|
+
value: _reactNative.Platform.OS,
|
|
374
|
+
icon: "phone-portrait",
|
|
375
|
+
color: "#007AFF",
|
|
376
|
+
isFirst: true
|
|
377
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
378
|
+
label: "Platform Version",
|
|
379
|
+
value: systemInfo?.version || 'Loading...',
|
|
380
|
+
icon: "hardware-chip",
|
|
381
|
+
color: "#5856D6"
|
|
382
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
383
|
+
label: "Screen Width",
|
|
384
|
+
value: `${systemInfo?.screenDimensions.width || 0}px`,
|
|
385
|
+
icon: "resize",
|
|
386
|
+
color: "#FF9500"
|
|
387
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
388
|
+
label: "Screen Height",
|
|
389
|
+
value: `${systemInfo?.screenDimensions.height || 0}px`,
|
|
390
|
+
icon: "resize",
|
|
391
|
+
color: "#FF3B30"
|
|
392
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
393
|
+
label: "Environment",
|
|
394
|
+
value: __DEV__ ? 'Development' : 'Production',
|
|
395
|
+
icon: "settings",
|
|
396
|
+
color: "#34C759",
|
|
397
|
+
isLast: true
|
|
398
|
+
})]
|
|
399
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
400
|
+
style: styles.section,
|
|
401
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
402
|
+
style: styles.sectionTitle,
|
|
403
|
+
children: "User Information"
|
|
404
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
405
|
+
label: "Authentication Status",
|
|
406
|
+
value: user ? 'Authenticated' : 'Not Authenticated',
|
|
407
|
+
icon: "shield-checkmark",
|
|
408
|
+
color: user ? '#34C759' : '#FF3B30',
|
|
409
|
+
isFirst: true
|
|
410
|
+
}), user && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
411
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
412
|
+
label: "User ID",
|
|
413
|
+
value: user.id,
|
|
414
|
+
copyable: true,
|
|
415
|
+
icon: "person",
|
|
416
|
+
color: "#007AFF"
|
|
417
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
418
|
+
label: "Username",
|
|
419
|
+
value: user.username || 'N/A',
|
|
420
|
+
icon: "at",
|
|
421
|
+
color: "#5856D6",
|
|
422
|
+
onPress: () => {
|
|
423
|
+
if (user?.username && navigate) {
|
|
424
|
+
navigate('Profile', {
|
|
425
|
+
userId: user.id
|
|
426
|
+
});
|
|
427
|
+
} else {
|
|
428
|
+
_sonner.toast.info('No username available or navigation not supported');
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
showChevron: true
|
|
432
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
433
|
+
label: "Email",
|
|
434
|
+
value: user.email || 'N/A',
|
|
435
|
+
icon: "mail",
|
|
436
|
+
color: "#FF9500"
|
|
437
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
438
|
+
label: "Premium Status",
|
|
439
|
+
value: user.isPremium ? 'Premium' : 'Standard',
|
|
440
|
+
icon: "star",
|
|
441
|
+
color: user.isPremium ? '#FFD700' : '#8E8E93'
|
|
442
|
+
})]
|
|
443
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
444
|
+
label: "Total Active Sessions",
|
|
445
|
+
value: sessions?.length?.toString() || '0',
|
|
446
|
+
icon: "people",
|
|
447
|
+
color: "#32D74B",
|
|
448
|
+
isLast: true
|
|
449
|
+
})]
|
|
450
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
451
|
+
style: styles.section,
|
|
452
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
453
|
+
style: styles.sectionTitle,
|
|
454
|
+
children: "API Configuration"
|
|
455
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
456
|
+
label: "API Base URL",
|
|
457
|
+
value: oxyServices?.getBaseURL() || 'Not configured',
|
|
458
|
+
copyable: true,
|
|
459
|
+
icon: "server",
|
|
460
|
+
color: "#007AFF",
|
|
461
|
+
isFirst: true
|
|
462
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
463
|
+
label: "Connection Status",
|
|
464
|
+
value: connectionStatus === 'checking' ? 'Checking...' : connectionStatus === 'connected' ? 'Connected' : connectionStatus === 'disconnected' ? 'Disconnected' : 'Unknown',
|
|
465
|
+
icon: connectionStatus === 'checking' ? 'sync' : connectionStatus === 'connected' ? 'wifi' : 'wifi-off',
|
|
466
|
+
color: connectionStatus === 'checking' ? '#FF9500' : connectionStatus === 'connected' ? '#34C759' : '#FF3B30',
|
|
467
|
+
onPress: async () => {
|
|
468
|
+
setConnectionStatus('checking');
|
|
469
|
+
const apiBaseUrl = oxyServices?.getBaseURL() || 'https://api.oxy.so';
|
|
470
|
+
try {
|
|
471
|
+
const response = await fetch(`${apiBaseUrl}/`, {
|
|
472
|
+
method: 'GET',
|
|
473
|
+
timeout: 3000
|
|
474
|
+
});
|
|
475
|
+
if (response.ok) {
|
|
476
|
+
setConnectionStatus('connected');
|
|
477
|
+
_sonner.toast.success('API connection successful');
|
|
478
|
+
} else {
|
|
479
|
+
setConnectionStatus('disconnected');
|
|
480
|
+
_sonner.toast.error(`API server error: ${response.status}`);
|
|
481
|
+
}
|
|
482
|
+
} catch (error) {
|
|
483
|
+
setConnectionStatus('disconnected');
|
|
484
|
+
_sonner.toast.error('Failed to connect to API server');
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
showChevron: true,
|
|
488
|
+
isLast: true
|
|
489
|
+
})]
|
|
490
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
491
|
+
style: styles.section,
|
|
492
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
493
|
+
style: styles.sectionTitle,
|
|
494
|
+
children: "Build Information"
|
|
495
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
496
|
+
label: "Build Timestamp",
|
|
497
|
+
value: systemInfo?.timestamp || 'Loading...',
|
|
498
|
+
copyable: true,
|
|
499
|
+
icon: "time",
|
|
500
|
+
color: "#007AFF",
|
|
501
|
+
isFirst: true
|
|
502
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
503
|
+
label: "React Native",
|
|
504
|
+
value: "Expo/React Native",
|
|
505
|
+
icon: "logo-react",
|
|
506
|
+
color: "#61DAFB"
|
|
507
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoRow, {
|
|
508
|
+
label: "JavaScript Engine",
|
|
509
|
+
value: "Hermes",
|
|
510
|
+
icon: "flash",
|
|
511
|
+
color: "#FF3B30",
|
|
512
|
+
isLast: true
|
|
513
|
+
})]
|
|
514
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
515
|
+
style: styles.section,
|
|
516
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
517
|
+
style: styles.sectionTitle,
|
|
518
|
+
children: "Quick Actions"
|
|
519
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
520
|
+
style: [styles.settingItem, styles.firstSettingItem],
|
|
521
|
+
onPress: handleCopyFullReport,
|
|
522
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
523
|
+
style: styles.settingInfo,
|
|
524
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
525
|
+
name: "copy",
|
|
526
|
+
size: 20,
|
|
527
|
+
color: "#007AFF",
|
|
528
|
+
style: styles.settingIcon
|
|
529
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
530
|
+
style: styles.settingDetails,
|
|
531
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
532
|
+
style: styles.settingLabel,
|
|
533
|
+
children: "Copy Full Report"
|
|
534
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
535
|
+
style: styles.settingDescription,
|
|
536
|
+
children: "Copy complete application information to clipboard"
|
|
537
|
+
})]
|
|
538
|
+
})]
|
|
539
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
540
|
+
name: "chevron-forward",
|
|
541
|
+
size: 16,
|
|
542
|
+
color: "#ccc"
|
|
543
|
+
})]
|
|
544
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
545
|
+
style: [styles.settingItem, styles.lastSettingItem, isRunningSystemCheck && styles.disabledSettingItem],
|
|
546
|
+
onPress: runSystemCheck,
|
|
547
|
+
disabled: isRunningSystemCheck,
|
|
548
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
549
|
+
style: styles.settingInfo,
|
|
550
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
551
|
+
name: isRunningSystemCheck ? "sync" : "checkmark-circle",
|
|
552
|
+
size: 20,
|
|
553
|
+
color: isRunningSystemCheck ? "#FF9500" : "#34C759",
|
|
554
|
+
style: [styles.settingIcon, isRunningSystemCheck && styles.spinningIcon]
|
|
555
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
556
|
+
style: styles.settingDetails,
|
|
557
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
558
|
+
style: styles.settingLabel,
|
|
559
|
+
children: isRunningSystemCheck ? 'Running System Check...' : 'Run System Check'
|
|
560
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
561
|
+
style: styles.settingDescription,
|
|
562
|
+
children: isRunningSystemCheck ? 'Checking API, authentication, and platform status...' : 'Verify application health and status'
|
|
563
|
+
})]
|
|
564
|
+
})]
|
|
565
|
+
}), !isRunningSystemCheck && /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyIcon.default, {
|
|
566
|
+
name: "chevron-forward",
|
|
567
|
+
size: 16,
|
|
568
|
+
color: "#ccc"
|
|
569
|
+
})]
|
|
570
|
+
})]
|
|
571
|
+
})]
|
|
572
|
+
})]
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
const styles = _reactNative.StyleSheet.create({
|
|
576
|
+
container: {
|
|
577
|
+
flex: 1
|
|
578
|
+
},
|
|
579
|
+
header: {
|
|
580
|
+
flexDirection: 'row',
|
|
581
|
+
alignItems: 'center',
|
|
582
|
+
justifyContent: 'space-between',
|
|
583
|
+
paddingHorizontal: 16,
|
|
584
|
+
paddingVertical: 12,
|
|
585
|
+
backgroundColor: '#fff'
|
|
586
|
+
},
|
|
587
|
+
cancelButton: {
|
|
588
|
+
padding: 5
|
|
589
|
+
},
|
|
590
|
+
headerTitle: {
|
|
591
|
+
fontSize: 24,
|
|
592
|
+
fontWeight: 'bold',
|
|
593
|
+
color: '#000',
|
|
594
|
+
fontFamily: _fonts.fontFamilies.phuduBold
|
|
595
|
+
},
|
|
596
|
+
placeholder: {
|
|
597
|
+
width: 34 // Same width as cancel button to center title
|
|
598
|
+
},
|
|
599
|
+
content: {
|
|
600
|
+
flex: 1,
|
|
601
|
+
padding: 16
|
|
602
|
+
},
|
|
603
|
+
section: {
|
|
604
|
+
marginBottom: 24
|
|
605
|
+
},
|
|
606
|
+
sectionTitle: {
|
|
607
|
+
fontSize: 16,
|
|
608
|
+
fontWeight: '600',
|
|
609
|
+
color: '#333',
|
|
610
|
+
marginBottom: 12,
|
|
611
|
+
fontFamily: _fonts.fontFamilies.phuduSemiBold
|
|
612
|
+
},
|
|
613
|
+
settingItem: {
|
|
614
|
+
backgroundColor: '#fff',
|
|
615
|
+
padding: 16,
|
|
616
|
+
flexDirection: 'row',
|
|
617
|
+
alignItems: 'center',
|
|
618
|
+
justifyContent: 'space-between',
|
|
619
|
+
marginBottom: 2
|
|
620
|
+
},
|
|
621
|
+
firstSettingItem: {
|
|
622
|
+
borderTopLeftRadius: 24,
|
|
623
|
+
borderTopRightRadius: 24
|
|
624
|
+
},
|
|
625
|
+
lastSettingItem: {
|
|
626
|
+
borderBottomLeftRadius: 24,
|
|
627
|
+
borderBottomRightRadius: 24,
|
|
628
|
+
marginBottom: 8
|
|
629
|
+
},
|
|
630
|
+
settingInfo: {
|
|
631
|
+
flexDirection: 'row',
|
|
632
|
+
alignItems: 'center',
|
|
633
|
+
flex: 1
|
|
634
|
+
},
|
|
635
|
+
settingIcon: {
|
|
636
|
+
marginRight: 12
|
|
637
|
+
},
|
|
638
|
+
settingDetails: {
|
|
639
|
+
flex: 1
|
|
640
|
+
},
|
|
641
|
+
settingLabel: {
|
|
642
|
+
fontSize: 16,
|
|
643
|
+
fontWeight: '500',
|
|
644
|
+
color: '#333',
|
|
645
|
+
marginBottom: 2
|
|
646
|
+
},
|
|
647
|
+
settingValue: {
|
|
648
|
+
fontSize: 14,
|
|
649
|
+
color: '#666'
|
|
650
|
+
},
|
|
651
|
+
settingDescription: {
|
|
652
|
+
fontSize: 14,
|
|
653
|
+
color: '#999'
|
|
654
|
+
},
|
|
655
|
+
disabledSettingItem: {
|
|
656
|
+
opacity: 0.6
|
|
657
|
+
},
|
|
658
|
+
spinningIcon: {
|
|
659
|
+
// Note: Animation would need to be implemented with Animated API
|
|
660
|
+
// For now, just showing the sync icon to indicate loading
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
var _default = exports.default = AppInfoScreen;
|
|
664
|
+
//# sourceMappingURL=AppInfoScreen.js.map
|