esoftplay-event 0.0.2-v → 0.0.2-x
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/event/additional.tsx +1 -1
- package/event/additional_new.tsx +565 -0
- package/event/artist.tsx +7 -6
- package/event/artist_detail.tsx +5 -3
- package/event/artist_detailv2.tsx +129 -69
- package/event/artistv2.tsx +2 -11
- package/event/capture.tsx +2 -0
- package/event/countdown.tsx +10 -6
- package/event/detail.tsx +10 -13
- package/event/detail2.tsx +63 -61
- package/event/loading_page.tsx +62 -82
- package/event/order_detail.tsx +13 -6
- package/event/order_detail_upgrade_payment.tsx +3 -2
- package/event/order_reschedule.tsx +28 -15
- package/event/payment_subscribe.tsx +18 -0
- package/event/point_events.tsx +35 -0
- package/event/point_redemption.tsx +101 -0
- package/event/point_redemption_exchange.tsx +60 -0
- package/event/point_redemption_input.tsx +56 -0
- package/event/point_redemption_success.tsx +50 -0
- package/event/point_summary.tsx +48 -0
- package/event/schedule.tsx +1 -1
- package/event/schedule2.tsx +86 -0
- package/event/seat_map_new.tsx +4 -4
- package/event/ticket_list2.tsx +13 -3
- package/event/ticket_list_item.tsx +61 -0
- package/event/ticket_list_new.tsx +710 -0
- package/event/tms_dashboard.tsx +62 -25
- package/event/tms_gate.tsx +7 -13
- package/event/tms_home.tsx +4 -4
- package/id.json +6 -1
- package/package.json +1 -1
package/event/tms_dashboard.tsx
CHANGED
|
@@ -11,6 +11,11 @@ import esp from 'esoftplay/esp';
|
|
|
11
11
|
import useGlobalState, { useGlobalReturn } from 'esoftplay/global';
|
|
12
12
|
import { useRef } from 'react';
|
|
13
13
|
|
|
14
|
+
import { EventTms_dashboardProperty } from 'esoftplay/cache/event/tms_dashboard/import';
|
|
15
|
+
import { EventTms_gateProperty } from 'esoftplay/cache/event/tms_gate/import';
|
|
16
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
17
|
+
import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
|
|
18
|
+
import { LibProgress } from 'esoftplay/cache/lib/progress/import';
|
|
14
19
|
import React from 'react';
|
|
15
20
|
import { ScrollView, Text, TouchableOpacity, View } from 'react-native';
|
|
16
21
|
|
|
@@ -45,6 +50,48 @@ export function stateSelectedEvent(): useGlobalReturn<any> {
|
|
|
45
50
|
export default function m(props: EventTms_dashboardProps): any {
|
|
46
51
|
const [user] = UserClass.state().useState()
|
|
47
52
|
const dialogClosing = useRef<LibSlidingup>(null)
|
|
53
|
+
let dataEvent = user?.is_tms[0]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
function loadGate(event_id: any, is_v2: boolean) {
|
|
57
|
+
let post = {
|
|
58
|
+
event_id: event_id
|
|
59
|
+
}
|
|
60
|
+
LibProgress?.show(esp.lang("event/tms_dashboard", "please_wait_loading_data_gate"))
|
|
61
|
+
new LibCurl('event_gate', post, (res, msg) => {
|
|
62
|
+
LibProgress.hide()
|
|
63
|
+
if (res.length == 1) {
|
|
64
|
+
let a = LibObject.set(EventTms_dashboardProperty.closingDataState().get(), res[0].id)('gate_id')
|
|
65
|
+
EventTms_dashboardProperty.closingDataState().set(a)
|
|
66
|
+
LibNavigation.navigate(is_v2 ? 'tms/tms_home' : 'event/tms_home', { selectedGate: res[0], typeScanner: "tms" })
|
|
67
|
+
EventTms_gateProperty?.stateSelectedGate()?.set(res?.[0])
|
|
68
|
+
} else {
|
|
69
|
+
LibNavigation.navigate('event/tms_gate', { typeScanner: 'tms', is_v2: is_v2 })
|
|
70
|
+
}
|
|
71
|
+
}, (error) => {
|
|
72
|
+
LibProgress.hide()
|
|
73
|
+
LibDialog.warning(esp.lang("event/tms_gate", "warning_load"), error?.message)
|
|
74
|
+
}, 1)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function loadHall(event_id: any, is_v2: boolean) {
|
|
78
|
+
let post = {
|
|
79
|
+
event_id: event_id
|
|
80
|
+
}
|
|
81
|
+
LibProgress?.show(esp.lang("event/tms_dashboard", "please_wait_loading_data_hall"))
|
|
82
|
+
new LibCurl('event_hall', post, (res, msg) => {
|
|
83
|
+
LibProgress.hide()
|
|
84
|
+
if (res.length == 1) {
|
|
85
|
+
LibNavigation.navigate(is_v2 ? 'tms/tms_home' : 'event/tms_home', { selectedGate: res[0], typeScanner: "hall" })
|
|
86
|
+
EventTms_gateProperty.stateSelectedHall().set(res?.[0])
|
|
87
|
+
} else {
|
|
88
|
+
LibNavigation.navigate('event/tms_gate', { typeScanner: 'hall', is_v2: is_v2 })
|
|
89
|
+
}
|
|
90
|
+
}, (error) => {
|
|
91
|
+
LibProgress.hide()
|
|
92
|
+
LibDialog.warning(esp.lang("event/tms_gate", "warning_loadhall"), error?.message)
|
|
93
|
+
}, 1)
|
|
94
|
+
}
|
|
48
95
|
|
|
49
96
|
let menus = [
|
|
50
97
|
{
|
|
@@ -54,13 +101,11 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
54
101
|
active: 1,
|
|
55
102
|
color_accent: '#FFC523',
|
|
56
103
|
onPress: () => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
LibNavigation.navigate('event/tms_gate', { typeScanner: 'tms' })
|
|
63
|
-
})
|
|
104
|
+
let a = LibObject.set(stateClosingData?.get(), dataEvent?.id)('event_id')
|
|
105
|
+
let b = LibObject.set(a, dataEvent?.name)('event_name')
|
|
106
|
+
stateClosingData?.set(b)
|
|
107
|
+
stateSelectedEvent()?.set(dataEvent)
|
|
108
|
+
loadGate(dataEvent?.id, false)
|
|
64
109
|
}
|
|
65
110
|
},
|
|
66
111
|
{
|
|
@@ -70,10 +115,8 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
70
115
|
active: 1,
|
|
71
116
|
color_accent: '#01D0FB',
|
|
72
117
|
onPress: () => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
LibNavigation.navigate('event/tms_gate', { typeScanner: 'hall' })
|
|
76
|
-
})
|
|
118
|
+
stateSelectedEvent()?.set(dataEvent)
|
|
119
|
+
loadHall(dataEvent?.id, false)
|
|
77
120
|
}
|
|
78
121
|
},
|
|
79
122
|
{
|
|
@@ -83,9 +126,7 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
83
126
|
active: 1,
|
|
84
127
|
color_accent: '#800020',
|
|
85
128
|
onPress: () => {
|
|
86
|
-
LibNavigation.
|
|
87
|
-
LibNavigation.navigate('event/exchange_ticket', { dataEvent: value })
|
|
88
|
-
})
|
|
129
|
+
LibNavigation.navigate('event/exchange_ticket', { dataEvent: dataEvent })
|
|
89
130
|
}
|
|
90
131
|
},
|
|
91
132
|
{
|
|
@@ -105,13 +146,11 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
105
146
|
active: esp.isDebug("") ? 1 : 0,
|
|
106
147
|
color_accent: '#FFC523',
|
|
107
148
|
onPress: () => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
LibNavigation.navigate('event/tms_gate', { typeScanner: 'tms', is_v2: true })
|
|
114
|
-
})
|
|
149
|
+
let a = LibObject.set(stateClosingData?.get(), dataEvent?.id)('event_id')
|
|
150
|
+
let b = LibObject.set(a, dataEvent?.name)('event_name')
|
|
151
|
+
stateClosingData?.set(b)
|
|
152
|
+
stateSelectedEvent()?.set(dataEvent)
|
|
153
|
+
loadGate(dataEvent?.id, true)
|
|
115
154
|
}
|
|
116
155
|
},
|
|
117
156
|
{
|
|
@@ -121,10 +160,8 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
121
160
|
active: esp.isDebug("") ? 1 : 0,
|
|
122
161
|
color_accent: '#01D0FB',
|
|
123
162
|
onPress: () => {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
LibNavigation.navigate('event/tms_gate', { typeScanner: 'hall', is_v2: true })
|
|
127
|
-
})
|
|
163
|
+
stateSelectedEvent()?.set(dataEvent)
|
|
164
|
+
loadHall(dataEvent?.id, true)
|
|
128
165
|
}
|
|
129
166
|
},
|
|
130
167
|
]
|
package/event/tms_gate.tsx
CHANGED
|
@@ -56,13 +56,6 @@ export default function m(props: EventTms_gateProps): any {
|
|
|
56
56
|
}
|
|
57
57
|
new LibCurl('event_gate', post, (res, msg) => {
|
|
58
58
|
setGates(res)
|
|
59
|
-
if (res.length == 1) {
|
|
60
|
-
let a = LibObject.set(EventTms_dashboardProperty.closingDataState().get(), res[0].id)('gate_id')
|
|
61
|
-
EventTms_dashboardProperty.closingDataState().set(a)
|
|
62
|
-
LibNavigation.back()
|
|
63
|
-
LibNavigation.navigate(is_v2 ? 'tms/tms_home' : 'event/tms_home', { selectedGate: res[0], typeScanner: typeScanner })
|
|
64
|
-
stateSelectedGate().set(res?.[0])
|
|
65
|
-
}
|
|
66
59
|
}, (error) => {
|
|
67
60
|
LibDialog.warning(esp.lang("event/tms_gate", "warning_load"), error?.message)
|
|
68
61
|
LibNavigation.back()
|
|
@@ -75,11 +68,6 @@ export default function m(props: EventTms_gateProps): any {
|
|
|
75
68
|
}
|
|
76
69
|
new LibCurl('event_hall', post, (res, msg) => {
|
|
77
70
|
setGates(res)
|
|
78
|
-
if (res.length == 1) {
|
|
79
|
-
LibNavigation.back()
|
|
80
|
-
LibNavigation.navigate(is_v2 ? 'tms/tms_home' : 'event/tms_home', { selectedGate: res[0], typeScanner: typeScanner })
|
|
81
|
-
stateSelectedHall().set(res?.[0])
|
|
82
|
-
}
|
|
83
71
|
}, (error) => {
|
|
84
72
|
LibDialog.warning(esp.lang("event/tms_gate", "warning_loadhall"), error?.message)
|
|
85
73
|
LibNavigation.back()
|
|
@@ -99,6 +87,7 @@ export default function m(props: EventTms_gateProps): any {
|
|
|
99
87
|
setSelectGate(item)
|
|
100
88
|
let a = LibObject.set(EventTms_dashboardProperty.closingDataState().get(), item?.id)('gate_id')
|
|
101
89
|
EventTms_dashboardProperty.closingDataState().set(a)
|
|
90
|
+
LibNavigation.back()
|
|
102
91
|
LibNavigation.navigate(is_v2 ? 'tms/tms_home' : 'event/tms_home', { selectedGate: item, typeScanner: typeScanner })
|
|
103
92
|
}} style={{ flexDirection: 'row', alignContent: 'center', alignItems: 'center', backgroundColor: _selectGate ? LibStyle.colorGrey : '#fff', ...LibStyle.elevation(2), padding: 16, marginBottom: 10, marginHorizontal: 15, borderRadius: 5, flex: 1 }}>
|
|
104
93
|
<LibIcon name={_selectGate ? "radiobox-marked" : "radiobox-blank"} size={18} color={_selectGate ? "#3ea4dc" : "#434343"} />
|
|
@@ -108,7 +97,12 @@ export default function m(props: EventTms_gateProps): any {
|
|
|
108
97
|
}
|
|
109
98
|
|
|
110
99
|
if (!gates) {
|
|
111
|
-
return
|
|
100
|
+
return (
|
|
101
|
+
<View style={{ flex: 1 }}>
|
|
102
|
+
<EventHeader title={typeScanner == "tms" ? esp.lang("event/tms_gate", "header_title1") : esp.lang("event/tms_gate", "header_title2")} subtitle={esp.lang("event/tms_gate", "gate_sub")} />
|
|
103
|
+
<LibLoading />
|
|
104
|
+
</View>
|
|
105
|
+
)
|
|
112
106
|
}
|
|
113
107
|
|
|
114
108
|
return (
|
package/event/tms_home.tsx
CHANGED
|
@@ -621,7 +621,7 @@ export default function m(props: EventTms_homeProps): any {
|
|
|
621
621
|
<>
|
|
622
622
|
<View style={applyStyle({ flexDirection: 'row', justifyContent: 'space-between', })}>
|
|
623
623
|
<TouchableOpacity onPress={() => {
|
|
624
|
-
if (esp.isDebug("")) {
|
|
624
|
+
if (esp.isDebug("") && UserClass?.state().get().email == "bagus@fisip.net") {
|
|
625
625
|
if (typeScanner == "tms") {
|
|
626
626
|
stateTypeScanTMS()?.set("gate_out")
|
|
627
627
|
actionGateOut()
|
|
@@ -644,7 +644,7 @@ export default function m(props: EventTms_homeProps): any {
|
|
|
644
644
|
</TouchableOpacity>
|
|
645
645
|
|
|
646
646
|
<TouchableOpacity onPress={() => {
|
|
647
|
-
if (esp.isDebug("")
|
|
647
|
+
if (esp.isDebug("") && UserClass?.state().get().email == "bagus@fisip.net") {
|
|
648
648
|
if (typeScanner == "tms") {
|
|
649
649
|
stateTypeScanTMS()?.set("gate_in")
|
|
650
650
|
actionGateIn()
|
|
@@ -672,7 +672,7 @@ export default function m(props: EventTms_homeProps): any {
|
|
|
672
672
|
typeScanner == "tms" && result?.event?.config?.temporary_out == 1 &&
|
|
673
673
|
<View style={{ marginTop: 10, flexDirection: 'row', justifyContent: 'space-between' }}>
|
|
674
674
|
<TouchableOpacity onPress={() => {
|
|
675
|
-
if (esp.isDebug("")) {
|
|
675
|
+
if (esp.isDebug("") && UserClass?.state().get().email == "bagus@fisip.net") {
|
|
676
676
|
stateTypeScanTMS()?.set("gate_out_temp")
|
|
677
677
|
actionGateOutTemp()
|
|
678
678
|
} else {
|
|
@@ -687,7 +687,7 @@ export default function m(props: EventTms_homeProps): any {
|
|
|
687
687
|
<Text allowFontScaling={false} style={applyStyle({ fontFamily: "ArialBold", fontSize: 14, textAlign: "center", textAlignVertical: 'center', color: LibStyle.colorRed, marginLeft: 10 })} >{esp.lang("event/tms_home", "temp_out")}</Text>
|
|
688
688
|
</TouchableOpacity>
|
|
689
689
|
<TouchableOpacity onPress={() => {
|
|
690
|
-
if (esp.isDebug("")) {
|
|
690
|
+
if (esp.isDebug("") && UserClass?.state().get().email == "bagus@fisip.net") {
|
|
691
691
|
stateTypeScanTMS()?.set("gate_in_back")
|
|
692
692
|
actionGateInBack()
|
|
693
693
|
} else {
|
package/id.json
CHANGED
|
@@ -1126,6 +1126,7 @@
|
|
|
1126
1126
|
"no": "Tidak",
|
|
1127
1127
|
"no_ticket_need_reschedule_or_refund": "Tidak ada Tiket yang perlu di Reschedule / Refund",
|
|
1128
1128
|
"ok": "Ok",
|
|
1129
|
+
"price+tax": "(harga + pajak)",
|
|
1129
1130
|
"process_er": "Oops",
|
|
1130
1131
|
"qty_left": "Tersisa %s Tiket",
|
|
1131
1132
|
"ready_ticket": "Tiket yang Tersedia",
|
|
@@ -1376,7 +1377,9 @@
|
|
|
1376
1377
|
"failed_sync": "Gagal sinkronisasi kursi",
|
|
1377
1378
|
"other_user": "Seat sedang dipilih user lain",
|
|
1378
1379
|
"picked_byother": "Dipilih orang lain",
|
|
1379
|
-
"
|
|
1380
|
+
"please_choose_seat": "Silakan tentukan kursi untuk tiket ",
|
|
1381
|
+
"seat_not_avail": "Seat tidak tersedia",
|
|
1382
|
+
"yes_next": "Ya, Lanjutkan"
|
|
1380
1383
|
},
|
|
1381
1384
|
"event/seat_map_test": {
|
|
1382
1385
|
"front": "DEPAN",
|
|
@@ -1492,6 +1495,8 @@
|
|
|
1492
1495
|
"gate_scanner": "Gate Scanner",
|
|
1493
1496
|
"log_exchange": "Log Penukaran Tiket",
|
|
1494
1497
|
"log_tms": "Log TMS (Gate + Hall)",
|
|
1498
|
+
"please_wait_loading_data_gate": "Mohon tunggu sedang mengambil data gate",
|
|
1499
|
+
"please_wait_loading_data_hall": "Mohon tunggu sedang mengambil data hall",
|
|
1495
1500
|
"qc_idcard": "QC ID Card (Print)"
|
|
1496
1501
|
},
|
|
1497
1502
|
"event/tms_event_list": {
|