esoftplay 0.0.119-b → 0.0.119-e
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/bin/router.js +77 -49
- package/global.ts +0 -2
- package/import_migrator.mjs +44 -0
- package/{modules/lib → libs}/worker.tsx +63 -75
- package/modules/lib/carrousel.tsx +4 -1
- package/modules/lib/carrousel_snap.tsx +3 -1
- package/modules/lib/collaps.tsx +2 -1
- package/modules/lib/{component.ts → component.tsx} +0 -0
- package/modules/lib/crypt.js +3 -1
- package/modules/lib/curl.ts +9 -1
- package/modules/lib/datepicker.tsx +6 -1
- package/modules/lib/dialog.tsx +8 -1
- package/modules/lib/direct_image.tsx +3 -1
- package/modules/lib/direct_text.tsx +3 -1
- package/modules/lib/document.ts +4 -1
- package/modules/lib/effect.tsx +3 -1
- package/modules/lib/gallery.tsx +5 -1
- package/modules/lib/icon.tsx +27 -22
- package/modules/lib/image.tsx +7 -1
- package/modules/lib/image_crop.tsx +8 -1
- package/modules/lib/image_multi.tsx +11 -2
- package/modules/lib/image_shadow.tsx +2 -1
- package/modules/lib/infinite.tsx +12 -2
- package/modules/lib/input.tsx +6 -1
- package/modules/lib/input_base.tsx +3 -1
- package/modules/lib/lazy.tsx +1 -1
- package/modules/lib/list.tsx +6 -2
- package/modules/lib/loading.tsx +3 -1
- package/modules/lib/locale.ts +2 -1
- package/modules/lib/navigation.ts +8 -2
- package/modules/lib/net_status.tsx +2 -2
- package/modules/lib/notification.ts +9 -1
- package/modules/lib/notify.ts +3 -1
- package/modules/lib/picture.tsx +5 -2
- package/modules/lib/progress.tsx +5 -1
- package/modules/lib/roll.tsx +6 -1
- package/modules/lib/scroll.tsx +2 -1
- package/modules/lib/scrollpicker.tsx +2 -1
- package/modules/lib/skeleton.tsx +3 -2
- package/modules/lib/slidingup.tsx +5 -1
- package/modules/lib/sociallogin.tsx +4 -2
- package/modules/lib/tabs.tsx +4 -1
- package/modules/lib/textstyle.tsx +2 -1
- package/modules/lib/theme.tsx +3 -2
- package/modules/lib/timepicker.tsx +3 -1
- package/modules/lib/toast.tsx +2 -1
- package/modules/lib/updater.tsx +8 -5
- package/modules/lib/utils.ts +2 -1
- package/modules/lib/version.tsx +9 -1
- package/modules/lib/video.tsx +3 -1
- package/modules/lib/webview.tsx +2 -1
- package/modules/lib/workloop.tsx +4 -1
- package/modules/use/connect.ts +2 -1
- package/modules/use/curl.ts +3 -1
- package/modules/use/deeplink.ts +4 -1
- package/modules/use/form.ts +1 -1
- package/modules/use/form_persist.ts +1 -2
- package/modules/user/class.ts +6 -2
- package/modules/user/data.ts +1 -2
- package/modules/user/hook.tsx +2 -1
- package/modules/user/index.tsx +20 -8
- package/modules/user/loading.tsx +1 -1
- package/modules/user/login.tsx +8 -5
- package/modules/user/notifbadge.tsx +3 -2
- package/modules/user/notification.tsx +8 -1
- package/modules/user/notification_item.tsx +3 -1
- package/modules/user/routes.ts +1 -1
- package/package.json +1 -1
- package/modules/lib/workview.tsx +0 -33
package/modules/lib/curl.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { esp } from 'esoftplay';
|
|
3
|
+
|
|
4
|
+
import { LibCrypt } from 'esoftplay/cache/lib/crypt.import';
|
|
5
|
+
import { LibNet_status } from 'esoftplay/cache/lib/net_status.import';
|
|
6
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress.import';
|
|
7
|
+
import { LibToastProperty } from 'esoftplay/cache/lib/toast.import';
|
|
8
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
9
|
+
|
|
2
10
|
import { reportApiError } from "esoftplay/error";
|
|
3
11
|
import Constants from 'expo-constants';
|
|
4
12
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
|
+
import { useSafeState } from 'esoftplay';
|
|
4
|
+
|
|
5
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading.import';
|
|
6
|
+
import { LibScrollpicker } from 'esoftplay/cache/lib/scrollpicker.import';
|
|
7
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
8
|
+
import { LibToastProperty } from 'esoftplay/cache/lib/toast.import';
|
|
3
9
|
|
|
4
|
-
import { LibLoading, LibScrollpicker, LibStyle, LibToastProperty, useSafeState } from 'esoftplay';
|
|
5
10
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
6
11
|
import React, { useEffect, useRef } from 'react';
|
|
7
12
|
import { Text, TouchableOpacity, View } from 'react-native';
|
package/modules/lib/dialog.tsx
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { useGlobalState } from 'esoftplay';
|
|
3
|
+
|
|
4
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
5
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon.import';
|
|
6
|
+
import { LibIconStyle } from 'esoftplay/cache/lib/icon.import';
|
|
7
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
8
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
9
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme.import';
|
|
2
10
|
|
|
3
|
-
import { LibComponent, LibIcon, LibIconStyle, LibStyle, LibTextstyle, LibTheme, useGlobalState } from 'esoftplay';
|
|
4
11
|
import React from 'react';
|
|
5
12
|
import { BackHandler, Keyboard, TouchableOpacity, View } from 'react-native';
|
|
6
13
|
|
package/modules/lib/document.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { esp } from 'esoftplay';
|
|
3
|
+
|
|
4
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl.import';
|
|
5
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress.import';
|
|
2
6
|
|
|
3
|
-
import { esp, LibCurl, LibProgress } from 'esoftplay';
|
|
4
7
|
import * as DocumentPicker from 'expo-document-picker';
|
|
5
8
|
|
|
6
9
|
export default class m {
|
package/modules/lib/effect.tsx
CHANGED
package/modules/lib/gallery.tsx
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
|
|
4
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon.import';
|
|
5
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
6
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
7
|
|
|
3
|
-
import { LibIcon, LibNavigation, LibStyle } from 'esoftplay';
|
|
4
8
|
import React, { useRef } from 'react';
|
|
5
9
|
import { Pressable, View } from 'react-native';
|
|
6
10
|
import Gallery from 'react-native-awesome-gallery';
|
package/modules/lib/icon.tsx
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { AntDesign } from 'esoftplay/cache/ant/design.import';
|
|
4
|
+
import { EvilIcons } from 'esoftplay/cache/evil/icons.import';
|
|
5
|
+
import { FontAwesome } from 'esoftplay/cache/font/awesome.import';
|
|
6
|
+
import { MaterialCommunityIcons } from 'esoftplay/cache/material/community.import';
|
|
7
|
+
import { MaterialIcons } from 'esoftplay/cache/material/icons.import';
|
|
8
|
+
import { SimpleLineIcons } from 'esoftplay/cache/simple/line.import';
|
|
9
|
+
import { Zocial
|
|
10
|
+
} from '@expo/vector-icons';
|
|
3
11
|
import {
|
|
4
|
-
|
|
5
|
-
EvilIcons,
|
|
6
|
-
Feather,
|
|
7
|
-
FontAwesome,
|
|
8
|
-
Fontisto,
|
|
9
|
-
Foundation, Ionicons, MaterialCommunityIcons, MaterialIcons,
|
|
10
|
-
Octicons, SimpleLineIcons, Zocial
|
|
12
|
+
AntDesignTypes } from 'esoftplay/cache/zocial
|
|
11
13
|
} from '@expo/vector-icons';
|
|
12
14
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
/ant.import';
|
|
16
|
+
import { EntypoTypes } from 'esoftplay/cache/entypo/types.import';
|
|
17
|
+
import { EvilIconsTypes } from 'esoftplay/cache/evil/icons.import';
|
|
18
|
+
import { FeatherTypes } from 'esoftplay/cache/feather/types.import';
|
|
19
|
+
import { FontAwesomeTypes } from 'esoftplay/cache/font/awesome.import';
|
|
20
|
+
import { FontistoTypes } from 'esoftplay/cache/fontisto/types.import';
|
|
21
|
+
import { FoundationTypes } from 'esoftplay/cache/foundation/types.import';
|
|
22
|
+
import { IoniconsTypes } from 'esoftplay/cache/ionicons/types.import';
|
|
23
|
+
import { MaterialCommunityIconsTypes } from 'esoftplay/cache/material/community.import';
|
|
24
|
+
import { MaterialIconsTypes } from 'esoftplay/cache/material/icons.import';
|
|
25
|
+
import { OcticonsTypes } from 'esoftplay/cache/octicons/types.import';
|
|
26
|
+
import { SimpleLineIconsTypes } from 'esoftplay/cache/simple/line.import';
|
|
27
|
+
import { ZocialTypes
|
|
26
28
|
} from '@expo/vector-icons/build/esoftplay_icons';
|
|
27
|
-
import { LibComponent } from 'esoftplay
|
|
29
|
+
import { LibComponent } from 'esoftplay/cache/zocial/types
|
|
30
|
+
} from '@expo/vector-icons/build/esoftplay_icons';
|
|
31
|
+
import { .import';
|
|
32
|
+
|
|
28
33
|
import React from 'react';
|
|
29
34
|
|
|
30
35
|
export interface LibAntDesignIconProps {
|
package/modules/lib/image.tsx
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { esp, useGlobalState } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl.import';
|
|
5
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon.import';
|
|
6
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
7
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress.import';
|
|
8
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
9
|
|
|
3
|
-
import { esp, LibComponent, LibCurl, LibIcon, LibNavigation, LibProgress, LibStyle, useGlobalState } from 'esoftplay';
|
|
4
10
|
import { Camera } from 'expo-camera';
|
|
5
11
|
import * as ImageManipulator from 'expo-image-manipulator';
|
|
6
12
|
import { SaveFormat } from 'expo-image-manipulator';
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
+
import { useSafeState } from 'esoftplay';
|
|
3
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon.import';
|
|
4
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
5
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress.import';
|
|
6
|
+
import { LibStatusbar } from 'esoftplay/cache/lib/statusbar.import';
|
|
7
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
8
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
9
|
+
import { LibToastProperty } from 'esoftplay/cache/lib/toast.import';
|
|
2
10
|
|
|
3
|
-
import { LibIcon, LibNavigation, LibProgress, LibStatusbar, LibStyle, LibTextstyle, LibToastProperty, useSafeState } from 'esoftplay';
|
|
4
11
|
import * as ImageManipulator from "expo-image-manipulator";
|
|
5
12
|
import React, { useEffect, useRef } from 'react';
|
|
6
13
|
import { Dimensions, Image, Text, TouchableOpacity, View } from 'react-native';
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
import {
|
|
3
|
+
//
|
|
4
|
+
import { useSafeState } from 'esoftplay';
|
|
5
|
+
import { FlashList } from "@shopify/flash-list";
|
|
6
|
+
import { LibIcon } from 'esoftplay/cache/flash/list } from "@shopify/flash-list";
|
|
7
|
+
import { .import';
|
|
8
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading.import';
|
|
9
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
10
|
+
import { LibObject } from 'esoftplay/cache/lib/object.import';
|
|
11
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
12
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
13
|
+
|
|
5
14
|
import * as MediaLibrary from 'expo-media-library';
|
|
6
15
|
import React, { useEffect } from 'react';
|
|
7
16
|
import { FlatList, Image, TouchableOpacity, View } from 'react-native';
|
package/modules/lib/infinite.tsx
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
import {
|
|
3
|
+
//
|
|
4
|
+
import { } from 'esoftplay';
|
|
5
|
+
import { FlashList } from "@shopify/flash-list";
|
|
6
|
+
import { esp } from 'esoftplay/cache/flash/list } from "@shopify/flash-list";
|
|
7
|
+
import { esp.import';
|
|
8
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
9
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl.import';
|
|
10
|
+
import { LibListItemLayout } from 'esoftplay/cache/lib/list.import';
|
|
11
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading.import';
|
|
12
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
13
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
14
|
+
|
|
5
15
|
import React from 'react';
|
|
6
16
|
import isEqual from 'react-fast-compare';
|
|
7
17
|
import { FlatList, View } from 'react-native';
|
package/modules/lib/input.tsx
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
5
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme.import';
|
|
6
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
7
|
+
|
|
3
8
|
import React from 'react';
|
|
4
9
|
import { TextInput, View } from 'react-native';
|
|
5
10
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// useLibs
|
|
2
2
|
// noPage
|
|
3
|
+
import { } from 'esoftplay';
|
|
4
|
+
import { LibInput_base_dataProperty } from 'esoftplay/cache/lib/input_base_data.import';
|
|
5
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
3
6
|
|
|
4
|
-
import { LibInput_base_dataProperty, LibUtils } from 'esoftplay';
|
|
5
7
|
import React, { useEffect, useRef } from 'react';
|
|
6
8
|
import { TextInput } from 'react-native';
|
|
7
9
|
|
package/modules/lib/lazy.tsx
CHANGED
package/modules/lib/list.tsx
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
//
|
|
5
|
-
import {
|
|
4
|
+
//
|
|
5
|
+
import { } from 'esoftplay';
|
|
6
|
+
import { FlashList } from "@shopify/flash-list";
|
|
7
|
+
import { LibComponent } from 'esoftplay/cache/flash/list } from "@shopify/flash-list";
|
|
8
|
+
import { .import';
|
|
9
|
+
|
|
6
10
|
import React from "react";
|
|
7
11
|
import { FlatList, View } from 'react-native';
|
|
8
12
|
|
package/modules/lib/loading.tsx
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme.import';
|
|
2
5
|
|
|
3
|
-
import { LibComponent, LibTheme } from 'esoftplay';
|
|
4
6
|
import React from 'react';
|
|
5
7
|
import { ActivityIndicator, View } from 'react-native';
|
|
6
8
|
|
package/modules/lib/locale.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { useGlobalReturn, useGlobalState } from 'esoftplay';
|
|
3
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
2
4
|
|
|
3
|
-
import { LibNavigation, useGlobalReturn, useGlobalState } from 'esoftplay';
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
const state = useGlobalState("id", { persistKey: 'lib_locale_lang' })
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
// noPage
|
|
3
|
+
import { } from 'esoftplay';
|
|
4
|
+
import { CommonActions } from 'esoftplay/cache/common/actions.import';
|
|
5
|
+
import { StackActions } from '@react-navigation/native';
|
|
6
|
+
import { esp } from 'esoftplay/cache/stack/actions } from '@react-navigation/native';
|
|
7
|
+
import { esp.import';
|
|
8
|
+
import { LibNavigationRoutes } from 'esoftplay/cache/lib/navigation.import';
|
|
9
|
+
import { UserClass } from 'esoftplay/cache/user/class.import';
|
|
10
|
+
import { UserRoutes } from 'esoftplay/cache/user/routes.import';
|
|
3
11
|
|
|
4
|
-
import { CommonActions, StackActions } from '@react-navigation/native';
|
|
5
|
-
import { esp, LibNavigationRoutes, UserClass, UserRoutes, _global } from 'esoftplay';
|
|
6
12
|
import React from "react";
|
|
7
13
|
|
|
8
14
|
export interface LibNavigationInjector {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { useGlobalReturn, useGlobalState } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
2
4
|
|
|
3
|
-
import NetInfo from '@react-native-community/netinfo';
|
|
4
|
-
import { LibComponent, useGlobalReturn, useGlobalState } from "esoftplay";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Animated, Text } from "react-native";
|
|
7
7
|
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
|
|
1
2
|
import { useGlobalReturn } from 'esoftplay';
|
|
2
3
|
// noPage
|
|
3
4
|
|
|
4
|
-
import { esp,
|
|
5
|
+
import { esp, useGlobalState } from 'esoftplay';
|
|
6
|
+
import { LibCrypt } from 'esoftplay/cache/lib/crypt.import';
|
|
7
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl.import';
|
|
8
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
9
|
+
import { LibObject } from 'esoftplay/cache/lib/object.import';
|
|
10
|
+
import { UserClass } from 'esoftplay/cache/user/class.import';
|
|
11
|
+
import { UserNotification } from 'esoftplay/cache/user/notification.import';
|
|
12
|
+
|
|
5
13
|
import { fastFilter } from "esoftplay/fast";
|
|
6
14
|
import Constants from 'expo-constants';
|
|
7
15
|
import * as Notifications from 'expo-notifications';
|
package/modules/lib/notify.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// useLibs
|
|
2
|
+
import { useGlobalState } from 'esoftplay';
|
|
3
|
+
import { LibCrypt } from 'esoftplay/cache/lib/crypt.import';
|
|
4
|
+
import { LibObject } from 'esoftplay/cache/lib/object.import';
|
|
2
5
|
|
|
3
|
-
import { LibCrypt, LibObject, useGlobalState } from 'esoftplay';
|
|
4
6
|
|
|
5
7
|
export interface LibNotifyItem {
|
|
6
8
|
to: string,
|
package/modules/lib/picture.tsx
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
|
+
import { esp, useSafeState } from 'esoftplay';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
5
|
+
import { LibWorkloop } from 'esoftplay/cache/lib/workloop.import';
|
|
3
6
|
|
|
4
|
-
import { esp, LibStyle, LibWorker, LibWorkloop, useSafeState } from 'esoftplay';
|
|
5
7
|
import * as FileSystem from 'expo-file-system';
|
|
6
8
|
import { useLayoutEffect } from 'react';
|
|
7
9
|
import { PixelRatio, Platform, View } from 'react-native';
|
|
8
10
|
import FastImage from 'react-native-fast-image';
|
|
11
|
+
import Worker from '../../libs/worker';
|
|
9
12
|
const sh = require("shorthash")
|
|
10
13
|
|
|
11
14
|
export interface LibPictureSource {
|
|
@@ -36,7 +39,7 @@ const getCacheEntry = async (uri: string, toSize: number): Promise<{ exists: boo
|
|
|
36
39
|
return { exists, path };
|
|
37
40
|
};
|
|
38
41
|
|
|
39
|
-
const fetchPicture =
|
|
42
|
+
const fetchPicture = Worker.registerJobAsync?.('lib_picture_fetch', (url: string, toSize: number) => {
|
|
40
43
|
'show source';
|
|
41
44
|
return new Promise((resolve, reject) => {
|
|
42
45
|
fetch(url, { mode: 'cors' })
|
package/modules/lib/progress.tsx
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { useGlobalState } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
5
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
6
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme.import';
|
|
2
7
|
|
|
3
|
-
import { LibComponent, LibStyle, LibTextstyle, LibTheme, useGlobalState } from 'esoftplay';
|
|
4
8
|
import React from 'react';
|
|
5
9
|
import { ActivityIndicator, BackHandler, View } from 'react-native';
|
|
6
10
|
|
package/modules/lib/roll.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl.import';
|
|
5
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading.import';
|
|
6
|
+
import { LibScroll } from 'esoftplay/cache/lib/scroll.import';
|
|
7
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
2
8
|
|
|
3
|
-
import { LibComponent, LibCurl, LibLoading, LibScroll, LibTextstyle } from 'esoftplay';
|
|
4
9
|
import React from 'react';
|
|
5
10
|
import { View } from 'react-native';
|
|
6
11
|
|
package/modules/lib/scroll.tsx
CHANGED
package/modules/lib/skeleton.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
5
|
|
|
3
|
-
import MaskedView from '@react-native-masked-view/masked-view';
|
|
4
|
-
import { LibComponent, LibStyle } from 'esoftplay';
|
|
5
6
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
6
7
|
import React, { useEffect } from 'react';
|
|
7
8
|
import { View } from 'react-native';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibKeyboard_avoid } from 'esoftplay/cache/lib/keyboard_avoid.import';
|
|
5
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
6
|
+
|
|
3
7
|
import React from 'react';
|
|
4
8
|
import { Animated, BackHandler, Keyboard, TouchableOpacity, View } from 'react-native';
|
|
5
9
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { esp } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
5
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
6
|
|
|
3
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
4
|
-
import { esp, LibComponent, LibNavigation, LibStyle } from "esoftplay";
|
|
5
7
|
import React from "react";
|
|
6
8
|
import { ActivityIndicator, View } from "react-native";
|
|
7
9
|
import { WebView } from 'react-native-webview';
|
package/modules/lib/tabs.tsx
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
5
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
2
6
|
|
|
3
|
-
import { LibComponent, LibStyle, LibUtils } from 'esoftplay';
|
|
4
7
|
import React from 'react';
|
|
5
8
|
import { ScrollView, View } from 'react-native';
|
|
6
9
|
import { fastFilter } from '../../fast';
|
package/modules/lib/theme.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { esp, useGlobalState } from 'esoftplay';
|
|
3
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
5
|
|
|
3
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
4
|
-
import { esp, LibNavigation, LibStyle, useGlobalState } from 'esoftplay';
|
|
5
6
|
|
|
6
7
|
const { colorPrimary, colorAccent } = LibStyle
|
|
7
8
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
|
+
import { useSafeState } from 'esoftplay';
|
|
4
|
+
import { LibScrollpicker } from 'esoftplay/cache/lib/scrollpicker.import';
|
|
5
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
3
6
|
|
|
4
|
-
import { LibScrollpicker, LibStyle, useSafeState } from 'esoftplay';
|
|
5
7
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
6
8
|
import React, { useEffect, useRef } from 'react';
|
|
7
9
|
import { Text, TouchableOpacity, View } from 'react-native';
|
package/modules/lib/toast.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
|
+
import { useGlobalState } from 'esoftplay';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
3
5
|
|
|
4
|
-
import { LibStyle, useGlobalState } from 'esoftplay';
|
|
5
6
|
import React, { useEffect } from 'react';
|
|
6
7
|
import { Text } from 'react-native';
|
|
7
8
|
import Animated, { interpolate, useAnimatedProps, useSharedValue, withTiming } from 'react-native-reanimated';
|
package/modules/lib/updater.tsx
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
|
+
import { esp } from 'esoftplay';
|
|
4
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon.import';
|
|
5
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress.import';
|
|
6
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
3
7
|
|
|
4
|
-
import { esp, LibIcon, LibProgress, LibStyle } from 'esoftplay';
|
|
5
8
|
import Constants from 'expo-constants';
|
|
6
9
|
import * as Updates from 'expo-updates';
|
|
7
10
|
import React from 'react';
|
|
@@ -28,18 +31,18 @@ export function checkAlertInstall(): void {
|
|
|
28
31
|
check((isNew) => { if (isNew) alertInstall() })
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
export function check(callback
|
|
34
|
+
export function check(callback?: (isNew: boolean) => void): void {
|
|
32
35
|
if (__DEV__) {
|
|
33
|
-
callback(false)
|
|
36
|
+
callback?.(false)
|
|
34
37
|
return
|
|
35
38
|
}
|
|
36
39
|
Updates.checkForUpdateAsync().then(({ isAvailable }) => {
|
|
37
40
|
if (!isAvailable) {
|
|
38
|
-
callback(false)
|
|
41
|
+
callback?.(false)
|
|
39
42
|
LibProgress.hide()
|
|
40
43
|
} else {
|
|
41
44
|
Updates.fetchUpdateAsync().then(({ isNew }) => {
|
|
42
|
-
callback(isNew)
|
|
45
|
+
callback?.(isNew)
|
|
43
46
|
}).catch((e) => {
|
|
44
47
|
LibProgress.hide()
|
|
45
48
|
})
|
package/modules/lib/utils.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import { createCache, esp } from 'esoftplay';
|
|
3
|
+
import { LibToastProperty } from 'esoftplay/cache/lib/toast.import';
|
|
2
4
|
|
|
3
|
-
import { createCache, esp, LibToastProperty } from "esoftplay";
|
|
4
5
|
import * as Clipboard from 'expo-clipboard';
|
|
5
6
|
import { Linking, Platform, Share } from "react-native";
|
|
6
7
|
import shorthash from "shorthash";
|
package/modules/lib/version.tsx
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import { esp
|
|
2
|
+
import { esp } from 'esoftplay';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl.import';
|
|
5
|
+
import { LibDialog } from 'esoftplay/cache/lib/dialog.import';
|
|
6
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon.import';
|
|
7
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
8
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
9
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
10
|
+
|
|
3
11
|
import Constants from 'expo-constants';
|
|
4
12
|
import React from 'react';
|
|
5
13
|
import { BackHandler, ImageBackground, Linking, Platform, TouchableOpacity } from 'react-native';
|
package/modules/lib/video.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
|
+
import { } from 'esoftplay';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
5
|
+
import { LibToastProperty } from 'esoftplay/cache/lib/toast.import';
|
|
3
6
|
|
|
4
|
-
import { LibStyle, LibToastProperty } from 'esoftplay';
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import { ActivityIndicator, StyleSheet, View } from 'react-native';
|
|
7
9
|
import { WebView } from 'react-native-webview';
|
package/modules/lib/webview.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* */
|
|
2
2
|
// noPage
|
|
3
|
+
import { esp } from 'esoftplay';
|
|
4
|
+
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
3
5
|
|
|
4
|
-
import { esp, LibComponent } from "esoftplay";
|
|
5
6
|
import React from "react";
|
|
6
7
|
import { Animated, Dimensions, Linking, Platform } from "react-native";
|
|
7
8
|
import { WebView } from 'react-native-webview';
|