esoftplay-event 0.0.1-j → 0.0.1-k
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/config.json +1 -1
- package/event/artistv2.tsx +34 -33
- package/event/scan_item.tsx +2 -2
- package/event/tms_in_success.tsx +1 -1
- package/event/tms_out.tsx +1 -1
- package/package.json +1 -1
package/config.json
CHANGED
package/event/artistv2.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import { EventFirebase_socket, EventFirebase_socketProperty } from 'esoftplay/ca
|
|
|
4
4
|
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
5
5
|
import { EventIndexProperty } from 'esoftplay/cache/event/index/import';
|
|
6
6
|
import { EventMessage } from 'esoftplay/cache/event/message/import';
|
|
7
|
+
import { LibCarrousel } from 'esoftplay/cache/lib/carrousel/import';
|
|
7
8
|
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
8
9
|
import { LibList } from 'esoftplay/cache/lib/list/import';
|
|
9
10
|
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
@@ -16,7 +17,7 @@ import esp from 'esoftplay/esp';
|
|
|
16
17
|
import moment from 'esoftplay/moment';
|
|
17
18
|
import useSafeState from 'esoftplay/state';
|
|
18
19
|
import React, { useEffect } from 'react';
|
|
19
|
-
import { TouchableOpacity, View } from 'react-native';
|
|
20
|
+
import { Text, TouchableOpacity, View } from 'react-native';
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
moment().locale('id')
|
|
@@ -104,38 +105,38 @@ export default function m(props: EventArtistv2Props): any {
|
|
|
104
105
|
});
|
|
105
106
|
};
|
|
106
107
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
108
|
+
if (item?.images?.length > 1) {
|
|
109
|
+
return (
|
|
110
|
+
<LibCarrousel
|
|
111
|
+
key={i}
|
|
112
|
+
delay={4000}
|
|
113
|
+
style={{ height: sliderHeight, width: width }}
|
|
114
|
+
autoplay
|
|
115
|
+
>
|
|
116
|
+
{
|
|
117
|
+
item?.images?.map((item1: any, ii: number) => {
|
|
118
|
+
return (
|
|
119
|
+
<TouchableOpacity key={ii} onPress={handlePress} >
|
|
120
|
+
<LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
|
|
121
|
+
</TouchableOpacity>
|
|
122
|
+
)
|
|
123
|
+
})
|
|
124
|
+
}
|
|
125
|
+
</LibCarrousel>
|
|
126
|
+
)
|
|
127
|
+
} else if (item?.images?.length == 1) {
|
|
128
|
+
return (
|
|
129
|
+
<TouchableOpacity key={i} onPress={handlePress} >
|
|
130
|
+
<LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
|
|
131
|
+
</TouchableOpacity>
|
|
132
|
+
)
|
|
133
|
+
} else {
|
|
134
|
+
return (
|
|
135
|
+
<TouchableOpacity key={i} onPress={handlePress} style={styleId_Z2g4Hs7}>
|
|
136
|
+
<Text allowFontScaling={false} numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
|
|
137
|
+
</TouchableOpacity>
|
|
138
|
+
)
|
|
139
|
+
}
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
return (
|
package/event/scan_item.tsx
CHANGED
|
@@ -49,11 +49,11 @@ export default function m(props: EventScan_itemProps): any {
|
|
|
49
49
|
<View style={{}}>
|
|
50
50
|
{
|
|
51
51
|
props?.item?.hall_scanned && props?.item?.hall_scanned != "0000-00-00 00:00:00" &&
|
|
52
|
-
<Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#c9c9c9", marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.hall_scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.timezone) + props.item?.timezone_locale || ""}</Text>
|
|
52
|
+
<Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: "#c9c9c9", marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.hall_scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.scanned_detail?.timezone) + props.item?.scanned_detail?.timezone_locale || ""}</Text>
|
|
53
53
|
}
|
|
54
54
|
{
|
|
55
55
|
!Array.isArray(props?.item?.scanned_detail) && props?.item?.scanned_detail?.scanned != "" && props?.item?.scanned_detail?.scanned != "0000-00-00 00:00:00" &&
|
|
56
|
-
<Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: LibStyle.colorRed, marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.scanned_detail?.scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.timezone) + props.item?.timezone_locale || ""}</Text>
|
|
56
|
+
<Text allowFontScaling={false} ellipsizeMode={'tail'} numberOfLines={2} style={applyStyle({ color: LibStyle.colorRed, marginBottom: 4, fontSize: 14, letterSpacing: 1.5 })}>{esp.lang("event/scan_item", "scan_on") + LibUtils.moment(props?.item?.scanned_detail?.scanned).serverFormat("DD MMMM YYYY H:m:s ", props?.item?.scanned_detail?.timezone) + props.item?.scanned_detail?.timezone_locale || ""}</Text>
|
|
57
57
|
}
|
|
58
58
|
{
|
|
59
59
|
props.item?.status == 1 &&
|
package/event/tms_in_success.tsx
CHANGED
|
@@ -105,7 +105,7 @@ export default function m(props: EventTms_in_successProps): any {
|
|
|
105
105
|
is_tms: 1,
|
|
106
106
|
qty: _qty,
|
|
107
107
|
tms_id: UserClass.state().get()?.id,
|
|
108
|
-
scanned: LibUtils.moment().
|
|
108
|
+
scanned: LibUtils.moment().localeFormat('YYYY-MM-DD HH:mm:ss'),
|
|
109
109
|
}
|
|
110
110
|
EventTms_homeProperty.addCounterEntranceOpenGate(1, selectedTicket?.price_id)
|
|
111
111
|
syncUsedTiketState.set(LibObject.push(syncUsedTiketState.get(), [url, post])())
|
package/event/tms_out.tsx
CHANGED
|
@@ -71,7 +71,7 @@ export default function m(props: EventTms_outProps): any {
|
|
|
71
71
|
gate_id: selectGate?.id,
|
|
72
72
|
trx_id: new Date().getTime() + "" + UserClass.state().get()?.id,
|
|
73
73
|
price_id: modifyList?.filter((item: any) => item.checked == 1).map((it: any) => it.price_id),
|
|
74
|
-
scanned_out: LibUtils.moment().
|
|
74
|
+
scanned_out: LibUtils.moment().localeFormat('YYYY-MM-DD HH:mm:ss'),
|
|
75
75
|
}
|
|
76
76
|
let urlOut = "event_tms_out_confirm"
|
|
77
77
|
LibNavigation.replace('event/tms_out_success', { data: finalData, ...args, url: urlOut, post: postOut })
|