esoftplay 0.0.120 → 0.0.121
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/build.js +4 -6
- package/bin/cli.js +63 -0
- package/bin/router.js +41 -43
- package/error.ts +2 -1
- package/esp.ts +4 -4
- package/global.ts +18 -23
- package/import_migrator.mjs +5 -5
- package/import_translator.mjs +17 -0
- package/modules/lib/carrousel.tsx +5 -8
- package/modules/lib/carrousel_snap.tsx +5 -8
- package/modules/lib/crypt.js +1 -3
- package/modules/lib/curl.ts +6 -7
- package/modules/lib/datepicker.tsx +4 -4
- package/modules/lib/dialog.tsx +6 -6
- package/modules/lib/direct_image.tsx +1 -4
- package/modules/lib/direct_text.tsx +1 -4
- package/modules/lib/document.ts +4 -5
- package/modules/lib/editbox.tsx +109 -0
- package/modules/lib/effect.tsx +1 -3
- package/modules/lib/gallery.tsx +3 -5
- package/modules/lib/icon.tsx +1 -1
- package/modules/lib/image.tsx +7 -7
- package/modules/lib/image_crop.tsx +7 -7
- package/modules/lib/image_multi.tsx +6 -6
- package/modules/lib/image_shadow.tsx +2 -2
- package/modules/lib/infinite.tsx +9 -10
- package/modules/lib/input.tsx +4 -5
- package/modules/lib/input_base.tsx +2 -3
- package/modules/lib/list.tsx +1 -2
- package/modules/lib/loading.tsx +2 -3
- package/modules/lib/locale.ts +1 -2
- package/modules/lib/navigation.ts +5 -5
- package/modules/lib/net_status.tsx +2 -2
- package/modules/lib/notification.ts +9 -9
- package/modules/lib/notify.ts +2 -2
- package/modules/lib/picture.tsx +3 -4
- package/modules/lib/progress.tsx +5 -5
- package/modules/lib/roll.tsx +5 -6
- package/modules/lib/scroll.tsx +1 -3
- package/modules/lib/scrollpicker.tsx +5 -7
- package/modules/lib/skeleton.tsx +2 -3
- package/modules/lib/slidingup.tsx +3 -4
- package/modules/lib/sociallogin.tsx +4 -4
- package/modules/lib/tabs.tsx +5 -6
- package/modules/lib/textstyle.tsx +1 -3
- package/modules/lib/theme.tsx +2 -6
- package/modules/lib/timepicker.tsx +3 -3
- package/modules/lib/toast.tsx +2 -2
- package/modules/lib/updater.tsx +3 -3
- package/modules/lib/utils.ts +1 -1
- package/modules/lib/version.tsx +7 -7
- package/modules/lib/video.tsx +2 -4
- package/modules/lib/webview.tsx +1 -2
- package/modules/lib/workloop.tsx +3 -3
- package/modules/use/connect.ts +2 -3
- package/modules/use/curl.ts +2 -2
- package/modules/use/deeplink.ts +4 -4
- package/modules/user/class.ts +6 -6
- package/modules/user/data.ts +1 -1
- package/modules/user/hook.tsx +2 -2
- package/modules/user/index.tsx +16 -15
- package/modules/user/login.tsx +7 -6
- package/modules/user/notifbadge.tsx +4 -4
- package/modules/user/notification.tsx +9 -7
- package/modules/user/notification_item.tsx +6 -4
- package/package.json +1 -1
package/modules/lib/curl.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
2
|
+
import { LibCrypt } from 'esoftplay/cache/lib/crypt/import';
|
|
3
|
+
import { LibNet_status } from 'esoftplay/cache/lib/net_status/import';
|
|
4
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress/import';
|
|
5
|
+
import { LibToastProperty } from 'esoftplay/cache/lib/toast/import';
|
|
6
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
7
|
+
import esp from 'esoftplay/esp';
|
|
9
8
|
|
|
10
9
|
import { reportApiError } from "esoftplay/error";
|
|
11
10
|
import Constants from 'expo-constants';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// noPage
|
|
3
3
|
import { useSafeState } from 'esoftplay';
|
|
4
4
|
|
|
5
|
-
import { LibLoading } from 'esoftplay/cache/lib/loading
|
|
6
|
-
import { LibScrollpicker } from 'esoftplay/cache/lib/scrollpicker
|
|
7
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
8
|
-
import { LibToastProperty } from 'esoftplay/cache/lib/toast
|
|
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';
|
|
9
9
|
|
|
10
10
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
11
11
|
import React, { useEffect, useRef } from 'react';
|
package/modules/lib/dialog.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import { LibComponent } from 'esoftplay/cache/lib/component
|
|
3
|
-
import { LibIcon, LibIconStyle } from 'esoftplay/cache/lib/icon
|
|
4
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
5
|
-
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle
|
|
6
|
-
import { LibTheme } from 'esoftplay/cache/lib/theme
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
|
+
import { LibIcon, LibIconStyle } from 'esoftplay/cache/lib/icon/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';
|
|
7
7
|
import useGlobalState from 'esoftplay/global';
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
@@ -109,7 +109,7 @@ export default class m extends LibComponent<LibDialogProps, LibDialogState>{
|
|
|
109
109
|
state.set({
|
|
110
110
|
visible: true,
|
|
111
111
|
view: view,
|
|
112
|
-
style:
|
|
112
|
+
style: "default",
|
|
113
113
|
icon: undefined,
|
|
114
114
|
title: undefined,
|
|
115
115
|
msg: undefined,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
5
|
-
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
6
3
|
import React from 'react';
|
|
7
4
|
import { Image, Platform } from 'react-native';
|
|
8
5
|
|
package/modules/lib/document.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import { LibProgress } from 'esoftplay/cache/lib/progress.import';
|
|
2
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
3
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress/import';
|
|
4
|
+
import esp from 'esoftplay/esp';
|
|
6
5
|
|
|
7
6
|
import * as DocumentPicker from 'expo-document-picker';
|
|
8
7
|
|
|
@@ -11,7 +10,7 @@ export default class m {
|
|
|
11
10
|
static pick(mimeType?: string): Promise<any> {
|
|
12
11
|
return new Promise((r) => {
|
|
13
12
|
let _mimeType = mimeType || '*/*'
|
|
14
|
-
DocumentPicker.getDocumentAsync({ type: _mimeType }).then((doc) => {
|
|
13
|
+
DocumentPicker.getDocumentAsync({ type: _mimeType }).then((doc: any) => {
|
|
15
14
|
const { type, uri, size, lastModified, output, file } = doc
|
|
16
15
|
if (type != 'cancel' && uri) {
|
|
17
16
|
r(doc)
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
|
|
2
|
+
// noPage
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
4
|
+
import { LibInput } from 'esoftplay/cache/lib/input/import';
|
|
5
|
+
import { LibKeyboard_avoid } from 'esoftplay/cache/lib/keyboard_avoid/import';
|
|
6
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
7
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme/import';
|
|
8
|
+
import useGlobalState from 'esoftplay/global';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Button, TouchableOpacity, View } from 'react-native';
|
|
11
|
+
|
|
12
|
+
export interface ComponentEditboxProps {
|
|
13
|
+
defaultValue?: string,
|
|
14
|
+
onSubmit?: (e: string) => void,
|
|
15
|
+
label?: string,
|
|
16
|
+
placeholder?: string,
|
|
17
|
+
error?: string,
|
|
18
|
+
helper?: string
|
|
19
|
+
allowFontScaling?: boolean,
|
|
20
|
+
autoCapitalize?: "none" | "sentences" | "words" | "characters",
|
|
21
|
+
autoCorrect?: boolean,
|
|
22
|
+
autoFocus?: boolean,
|
|
23
|
+
blurOnSubmit?: boolean,
|
|
24
|
+
caretHidden?: boolean,
|
|
25
|
+
contextMenuHidden?: boolean,
|
|
26
|
+
editable?: boolean,
|
|
27
|
+
inactive?: boolean,
|
|
28
|
+
keyboardType?: "default" | "email-address" | "numeric" | "phone-pad",
|
|
29
|
+
maxLength?: number,
|
|
30
|
+
multiline?: boolean,
|
|
31
|
+
onSubmitEditing?: () => void,
|
|
32
|
+
onChangeText?: (text: string) => void,
|
|
33
|
+
placeholderTextColor?: string,
|
|
34
|
+
returnKeyType?: "done" | "go" | "next" | "search" | "send",
|
|
35
|
+
secureTextEntry?: boolean,
|
|
36
|
+
selectTextOnFocus?: boolean,
|
|
37
|
+
selectionColor?: string,
|
|
38
|
+
style?: any,
|
|
39
|
+
value?: string,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface ComponentEditboxState {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
const initState = {
|
|
46
|
+
defaultValue: undefined,
|
|
47
|
+
onSubmit: undefined,
|
|
48
|
+
label: undefined,
|
|
49
|
+
keyboardType: undefined
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const state = useGlobalState<any>(initState)
|
|
53
|
+
|
|
54
|
+
class m extends LibComponent<ComponentEditboxProps, ComponentEditboxState>{
|
|
55
|
+
|
|
56
|
+
static show(label: string, defaultValue: string, keyboardType: "default" | "email-address" | "numeric" | "phone-pad", onSubmit: (e: string) => void): void {
|
|
57
|
+
state.set(
|
|
58
|
+
{
|
|
59
|
+
label: label,
|
|
60
|
+
defaultValue: defaultValue,
|
|
61
|
+
onSubmit: onSubmit,
|
|
62
|
+
keyboardType: keyboardType
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static hide(): void {
|
|
68
|
+
state.set(initState)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
input = React.createRef<LibInput>()
|
|
73
|
+
|
|
74
|
+
render(): any {
|
|
75
|
+
return (
|
|
76
|
+
<state.connect
|
|
77
|
+
render={(props) => {
|
|
78
|
+
const { label, onSubmit } = props
|
|
79
|
+
if (this?.input?.current && onSubmit) {
|
|
80
|
+
if (props.defaultValue)
|
|
81
|
+
this?.input?.current?.setText?.(props.defaultValue);
|
|
82
|
+
this?.input?.current?.focus?.()
|
|
83
|
+
}
|
|
84
|
+
if (!onSubmit) return null
|
|
85
|
+
return (
|
|
86
|
+
<View style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, backgroundColor: 'rgba(0,0,0,0.5)' }} >
|
|
87
|
+
<TouchableOpacity onPress={() => m.hide()} activeOpacity={1} style={{ flex: 1 }} >
|
|
88
|
+
<LibKeyboard_avoid style={{ flex: 1, justifyContent: 'flex-end', paddingBottom: 24 }} >
|
|
89
|
+
<TouchableOpacity onPress={() => { }} activeOpacity={1}>
|
|
90
|
+
<View style={[{ backgroundColor: LibTheme._colorBackgroundCardPrimary(), padding: 10 }, LibStyle.elevation(2)]} >
|
|
91
|
+
<LibInput
|
|
92
|
+
label={label}
|
|
93
|
+
ref={this.input}
|
|
94
|
+
{...props}
|
|
95
|
+
/>
|
|
96
|
+
<Button title="Simpan" color={LibStyle.colorPrimary} onPress={() => { onSubmit(this.input?.current?.getText?.()); m.hide(); }} />
|
|
97
|
+
</View>
|
|
98
|
+
</TouchableOpacity>
|
|
99
|
+
</LibKeyboard_avoid>
|
|
100
|
+
</TouchableOpacity>
|
|
101
|
+
</View>
|
|
102
|
+
)
|
|
103
|
+
}}
|
|
104
|
+
/>
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default m
|
package/modules/lib/effect.tsx
CHANGED
package/modules/lib/gallery.tsx
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation.import';
|
|
6
|
-
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
3
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
7
5
|
|
|
8
6
|
import React, { useRef } from 'react';
|
|
9
7
|
import { Pressable, View } from 'react-native';
|
package/modules/lib/icon.tsx
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
SimpleLineIconsTypes,
|
|
25
25
|
ZocialTypes
|
|
26
26
|
} from '@expo/vector-icons/build/esoftplay_icons';
|
|
27
|
-
import { LibComponent } from 'esoftplay/cache/lib/component
|
|
27
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
28
28
|
import React from 'react';
|
|
29
29
|
|
|
30
30
|
export interface LibAntDesignIconProps {
|
package/modules/lib/image.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
import { esp } from 'esoftplay';
|
|
3
|
-
import { LibComponent } from 'esoftplay/cache/lib/component
|
|
4
|
-
import { LibCurl } from 'esoftplay/cache/lib/curl
|
|
5
|
-
import { LibIcon } from 'esoftplay/cache/lib/icon
|
|
6
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation
|
|
7
|
-
import { LibProgress } from 'esoftplay/cache/lib/progress
|
|
8
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
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';
|
|
9
9
|
import useGlobalState from 'esoftplay/global';
|
|
10
10
|
import { Camera } from 'expo-camera';
|
|
11
11
|
import * as ImageManipulator from 'expo-image-manipulator';
|
|
@@ -54,7 +54,7 @@ const initState = {
|
|
|
54
54
|
image: undefined,
|
|
55
55
|
maxDimension: 1280
|
|
56
56
|
}
|
|
57
|
-
const state = useGlobalState(initState)
|
|
57
|
+
const state = useGlobalState<LibImageProps>(initState)
|
|
58
58
|
|
|
59
59
|
class m extends LibComponent<LibImageProps, LibImageState> {
|
|
60
60
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
import { useSafeState } from 'esoftplay';
|
|
3
|
-
import { LibIcon } from 'esoftplay/cache/lib/icon
|
|
4
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation
|
|
5
|
-
import { LibProgress } from 'esoftplay/cache/lib/progress
|
|
6
|
-
import { LibStatusbar } from 'esoftplay/cache/lib/statusbar
|
|
7
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
8
|
-
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle
|
|
9
|
-
import { LibToastProperty } from 'esoftplay/cache/lib/toast
|
|
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';
|
|
10
10
|
|
|
11
11
|
import * as ImageManipulator from "expo-image-manipulator";
|
|
12
12
|
import React, { useEffect, useRef } from 'react';
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
//
|
|
4
4
|
import { useSafeState } from 'esoftplay';
|
|
5
|
-
import { LibIcon } from 'esoftplay/cache/lib/icon
|
|
6
|
-
import { LibLoading } from 'esoftplay/cache/lib/loading
|
|
7
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation
|
|
8
|
-
import { LibObject } from 'esoftplay/cache/lib/object
|
|
9
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
10
|
-
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle
|
|
5
|
+
import { LibIcon } from 'esoftplay/cache/lib/icon/import';
|
|
6
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
7
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
8
|
+
import { LibObject } from 'esoftplay/cache/lib/object/import';
|
|
9
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
10
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
11
11
|
|
|
12
12
|
import * as MediaLibrary from 'expo-media-library';
|
|
13
13
|
import React, { useEffect } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import { LibPicture } from 'esoftplay/cache/lib/picture
|
|
2
|
+
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
import { Image, ImageStyle, View } from 'react-native';
|
|
4
5
|
|
|
5
|
-
|
|
6
6
|
export interface LibImage_shadowArgs {
|
|
7
7
|
|
|
8
8
|
}
|
package/modules/lib/infinite.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
4
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
5
|
+
import { LibListItemLayout } from 'esoftplay/cache/lib/list/import';
|
|
6
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
7
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
8
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
9
|
+
import esp from 'esoftplay/esp';
|
|
11
10
|
|
|
12
11
|
import React from 'react';
|
|
13
12
|
import isEqual from 'react-fast-compare';
|
|
@@ -65,7 +64,7 @@ export interface LibInfiniteState {
|
|
|
65
64
|
export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
|
|
66
65
|
|
|
67
66
|
isStop: boolean = false
|
|
68
|
-
page: number = 0
|
|
67
|
+
page: number | undefined = 0
|
|
69
68
|
pages: number[]
|
|
70
69
|
flatlist = React.createRef<FlatList<View>>()
|
|
71
70
|
|
|
@@ -215,7 +214,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
|
|
|
215
214
|
onEndReachedThreshold={0.5}
|
|
216
215
|
onEndReached={() => {
|
|
217
216
|
if (!this.isStop) {
|
|
218
|
-
this.loadData(this
|
|
217
|
+
this.loadData((this?.page || 0) + 1)
|
|
219
218
|
}
|
|
220
219
|
}}
|
|
221
220
|
{...this.props}
|
package/modules/lib/input.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
4
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme/import';
|
|
5
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
7
6
|
|
|
8
7
|
import React from 'react';
|
|
9
8
|
import { TextInput, View } from 'react-native';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// useLibs
|
|
2
2
|
// noPage
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { LibUtils } from 'esoftplay/cache/lib/utils.import';
|
|
3
|
+
import { LibInput_base_dataProperty } from 'esoftplay/cache/lib/input_base_data/import';
|
|
4
|
+
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
6
5
|
|
|
7
6
|
import React, { useEffect, useRef } from 'react';
|
|
8
7
|
import { TextInput } from 'react-native';
|
package/modules/lib/list.tsx
CHANGED
package/modules/lib/loading.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { LibTheme } from 'esoftplay/cache/lib/theme.import';
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme/import';
|
|
5
4
|
|
|
6
5
|
import React from 'react';
|
|
7
6
|
import { ActivityIndicator, View } from 'react-native';
|
package/modules/lib/locale.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
import { useGlobalReturn } from 'esoftplay';
|
|
3
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation
|
|
3
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
4
4
|
import useGlobalState from 'esoftplay/global';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
const state = useGlobalState("id", { persistKey: 'lib_locale_lang' })
|
|
9
8
|
|
|
10
9
|
export default class m {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
1
|
// noPage
|
|
3
2
|
import { CommonActions, StackActions } from '@react-navigation/native';
|
|
4
|
-
import { LibNavigationRoutes } from 'esoftplay
|
|
5
|
-
import { UserClass } from 'esoftplay/cache/user/class
|
|
6
|
-
import { UserRoutes } from 'esoftplay/cache/user/routes
|
|
7
|
-
|
|
3
|
+
import { LibNavigationRoutes } from 'esoftplay';
|
|
4
|
+
import { UserClass } from 'esoftplay/cache/user/class/import';
|
|
5
|
+
import { UserRoutes } from 'esoftplay/cache/user/routes/import';
|
|
6
|
+
import esp from 'esoftplay/esp';
|
|
7
|
+
import _global from 'esoftplay/_global';
|
|
8
8
|
import React from "react";
|
|
9
9
|
|
|
10
10
|
export interface LibNavigationInjector {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// noPage
|
|
2
|
+
import NetInfo from '@react-native-community/netinfo';
|
|
2
3
|
import { useGlobalReturn } from 'esoftplay';
|
|
3
|
-
import { LibComponent } from 'esoftplay/cache/lib/component
|
|
4
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
4
5
|
import useGlobalState from 'esoftplay/global';
|
|
5
|
-
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Animated, Text } from "react-native";
|
|
8
8
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { useGlobalReturn } from 'esoftplay';
|
|
3
2
|
// noPage
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
3
|
+
import { useGlobalReturn } from 'esoftplay';
|
|
4
|
+
import { LibCrypt } from 'esoftplay/cache/lib/crypt/import';
|
|
5
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
6
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
7
|
+
import { LibObject } from 'esoftplay/cache/lib/object/import';
|
|
8
|
+
import { UserClass } from 'esoftplay/cache/user/class/import';
|
|
9
|
+
import { UserNotification } from 'esoftplay/cache/user/notification/import';
|
|
10
|
+
import esp from 'esoftplay/esp';
|
|
12
11
|
import useGlobalState from 'esoftplay/global';
|
|
12
|
+
import _global from 'esoftplay/_global';
|
|
13
13
|
|
|
14
14
|
import { fastFilter } from "esoftplay/fast";
|
|
15
15
|
import Constants from 'expo-constants';
|
package/modules/lib/notify.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// useLibs
|
|
2
|
-
import { LibCrypt } from 'esoftplay/cache/lib/crypt
|
|
3
|
-
import { LibObject } from 'esoftplay/cache/lib/object
|
|
2
|
+
import { LibCrypt } from 'esoftplay/cache/lib/crypt/import';
|
|
3
|
+
import { LibObject } from 'esoftplay/cache/lib/object/import';
|
|
4
4
|
import useGlobalState from 'esoftplay/global';
|
|
5
5
|
|
|
6
6
|
|
package/modules/lib/picture.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
// noPage
|
|
3
3
|
import { esp, useSafeState } from 'esoftplay';
|
|
4
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
5
|
-
import { LibWorkloop } from 'esoftplay/cache/lib/workloop
|
|
6
|
-
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
5
|
+
import { LibWorkloop } from 'esoftplay/cache/lib/workloop/import';
|
|
7
6
|
import * as FileSystem from 'expo-file-system';
|
|
8
|
-
import { useLayoutEffect } from 'react';
|
|
7
|
+
import React, { useLayoutEffect } from 'react';
|
|
9
8
|
import { PixelRatio, Platform, View } from 'react-native';
|
|
10
9
|
import FastImage from 'react-native-fast-image';
|
|
11
10
|
import Worker from '../../libs/worker';
|
package/modules/lib/progress.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import { LibComponent } from 'esoftplay/cache/lib/component
|
|
3
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
4
|
-
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle
|
|
5
|
-
import { LibTheme } from 'esoftplay/cache/lib/theme
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
4
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
5
|
+
import { LibTheme } from 'esoftplay/cache/lib/theme/import';
|
|
6
6
|
import useGlobalState from 'esoftplay/global';
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
@@ -17,7 +17,7 @@ export interface LibProgressState {
|
|
|
17
17
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const state = useGlobalState({
|
|
20
|
+
const state = useGlobalState<LibProgressProps>({
|
|
21
21
|
show: false,
|
|
22
22
|
message: undefined
|
|
23
23
|
})
|
package/modules/lib/roll.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle.import';
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
4
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
5
|
+
import { LibScroll } from 'esoftplay/cache/lib/scroll/import';
|
|
6
|
+
import { LibTextstyle } from 'esoftplay/cache/lib/textstyle/import';
|
|
8
7
|
|
|
9
8
|
import React from 'react';
|
|
10
9
|
import { View } from 'react-native';
|
package/modules/lib/scroll.tsx
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
-
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
5
3
|
import React from "react";
|
|
6
4
|
import { RefreshControl, ScrollView, View } from "react-native";
|
|
7
5
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { LibComponent } from 'esoftplay/cache/lib/component.import';
|
|
4
|
-
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Dimensions,
|
|
6
|
+
Platform, ScrollView, StyleSheet,
|
|
7
|
+
Text,
|
|
8
|
+
View
|
|
11
9
|
} from 'react-native';
|
|
12
10
|
|
|
13
11
|
export interface LibScrollpickerProps {
|
package/modules/lib/skeleton.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
import MaskedView from '@react-native-masked-view/masked-view';
|
|
3
|
-
import { } from 'esoftplay';
|
|
4
|
-
import {
|
|
5
|
-
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
3
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
6
5
|
import { LinearGradient } from 'expo-linear-gradient';
|
|
7
6
|
import React, { useEffect } from 'react';
|
|
8
7
|
import { View } from 'react-native';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { LibStyle } from 'esoftplay/cache/lib/style.import';
|
|
2
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
3
|
+
import { LibKeyboard_avoid } from 'esoftplay/cache/lib/keyboard_avoid/import';
|
|
4
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
6
5
|
|
|
7
6
|
import React from 'react';
|
|
8
7
|
import { Animated, BackHandler, Keyboard, TouchableOpacity, View } from 'react-native';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
3
3
|
import { esp } from 'esoftplay';
|
|
4
|
-
import { LibComponent } from 'esoftplay/cache/lib/component
|
|
5
|
-
import { LibNavigation } from 'esoftplay/cache/lib/navigation
|
|
6
|
-
import { LibStyle } from 'esoftplay/cache/lib/style
|
|
4
|
+
import { LibComponent } from 'esoftplay/cache/lib/component/import';
|
|
5
|
+
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
6
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { ActivityIndicator, View } from "react-native";
|
|
9
9
|
import { WebView } from 'react-native-webview';
|
|
@@ -63,7 +63,7 @@ export default class m extends LibComponent<LibSocialloginProps, LibSocialloginS
|
|
|
63
63
|
onMessage={(e: any) => {
|
|
64
64
|
var data = e.nativeEvent.data
|
|
65
65
|
if (data) {
|
|
66
|
-
|
|
66
|
+
m.setUser(data)
|
|
67
67
|
onResult(JSON.parse(data))
|
|
68
68
|
}
|
|
69
69
|
}}
|