esoftplay-event 0.0.0-a → 0.0.0-b
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 +4 -4
- package/event/additional_input.tsx +11 -11
- package/event/alert.tsx +32 -0
- package/event/artist.tsx +166 -0
- package/event/artist_detail.tsx +520 -0
- package/event/artist_detail_multi.tsx +548 -0
- package/event/badge.tsx +22 -0
- package/event/button.tsx +40 -0
- package/event/config.ts +4 -0
- package/event/countdown.tsx +5 -5
- package/event/countdown_base.tsx +83 -0
- package/event/counter_cashier.tsx +11 -11
- package/event/counter_cashier_report.tsx +6 -6
- package/event/counter_cashier_sell.tsx +7 -7
- package/event/counter_eo.tsx +19 -19
- package/event/counter_history.tsx +4 -4
- package/event/counter_lm.tsx +16 -16
- package/event/counter_report.tsx +4 -4
- package/event/counter_report_breakdown.tsx +2 -2
- package/event/counter_report_detail.tsx +12 -12
- package/event/counter_report_detail_list.tsx +4 -4
- package/event/counter_request.tsx +4 -4
- package/event/counter_request_detail.tsx +6 -6
- package/event/counter_send.tsx +6 -6
- package/event/counter_user_list.tsx +13 -13
- package/event/coupon.tsx +4 -4
- package/event/coupon_claim.tsx +4 -4
- package/event/coupon_claim_detail.tsx +8 -7
- package/event/coupon_claim_history.tsx +9 -9
- package/event/coupon_claim_reimburse.tsx +7 -8
- package/event/coupon_claim_reimburse_history.tsx +4 -4
- package/event/coupon_claim_reimburse_history_detail.tsx +4 -4
- package/event/coupon_claim_staff.tsx +10 -10
- package/event/coupon_detail.tsx +3 -3
- package/event/coupon_event_list.tsx +4 -4
- package/event/coupon_generate.tsx +4 -4
- package/event/coupon_generate_event.tsx +4 -4
- package/event/coupon_generate_list.tsx +2 -2
- package/event/date_picker.tsx +5 -5
- package/event/detail.tsx +12 -15
- package/event/entrance.tsx +17 -17
- package/event/entrance_again.tsx +22 -23
- package/event/entrance_failed.tsx +15 -15
- package/event/entrance_idcard.tsx +23 -23
- package/event/entrance_list.tsx +24 -24
- package/event/entrance_list_item.tsx +6 -6
- package/event/entrance_log.tsx +24 -24
- package/event/entrance_success.tsx +8 -8
- package/event/entrance_warning.tsx +14 -14
- package/event/exchange_reward.tsx +2 -2
- package/event/exchange_reward_result.tsx +7 -8
- package/event/exchange_ticket.tsx +11 -12
- package/event/exchange_ticket_list.tsx +10 -12
- package/event/exchange_ticket_result.tsx +11 -12
- package/event/exit.tsx +9 -9
- package/event/exit_failed.tsx +12 -12
- package/event/exit_list.tsx +15 -15
- package/event/exit_log.tsx +22 -22
- package/event/exit_success.tsx +8 -8
- package/event/exit_temporary.tsx +21 -21
- package/event/expander.tsx +36 -0
- package/event/fab.tsx +24 -0
- package/event/firebase_socket.ts +365 -0
- package/event/hall_in.tsx +13 -13
- package/event/hall_in_failed.tsx +22 -22
- package/event/hall_in_list.tsx +17 -17
- package/event/hall_in_log.tsx +24 -24
- package/event/hall_in_success.tsx +8 -8
- package/event/hall_out.tsx +13 -13
- package/event/hall_out_failed.tsx +11 -11
- package/event/hall_out_list.tsx +17 -17
- package/event/hall_out_log.tsx +24 -24
- package/event/hall_out_success.tsx +8 -8
- package/event/header.tsx +119 -0
- package/event/label_input.tsx +23 -0
- package/event/list.tsx +20 -21
- package/event/list_filter.tsx +12 -13
- package/event/list_item.tsx +76 -0
- package/event/list_item2.tsx +78 -0
- package/event/loading_page.tsx +248 -0
- package/event/log.tsx +54 -54
- package/event/message.tsx +32 -0
- package/event/order.tsx +323 -0
- package/event/order_detail.tsx +813 -0
- package/event/order_detail_payment.tsx +153 -0
- package/event/order_detail_upgrade.tsx +164 -0
- package/event/order_detail_upgrade_button.tsx +60 -0
- package/event/order_detail_upgrade_payment.tsx +221 -0
- package/event/order_detail_visitor.tsx +196 -0
- package/event/order_detail_waiting.tsx +520 -0
- package/event/order_history.tsx +101 -0
- package/event/order_item.tsx +118 -0
- package/event/order_lottery.tsx +172 -0
- package/event/order_reschedule.tsx +439 -0
- package/event/order_reschedule_list.tsx +85 -0
- package/event/order_share_to.tsx +219 -0
- package/event/order_share_to_detail.tsx +181 -0
- package/event/order_status.tsx +66 -0
- package/event/order_waiting.tsx +143 -0
- package/event/pending_trx.tsx +50 -0
- package/event/qc_idcard.tsx +10 -10
- package/event/qc_idcard_failed.tsx +4 -4
- package/event/qc_idcard_success.tsx +4 -4
- package/event/qr_bg.tsx +22 -0
- package/event/queue_out.tsx +3 -3
- package/event/queue_pricing.tsx +2 -3
- package/event/rating.tsx +49 -0
- package/event/rating_mini.tsx +35 -0
- package/event/review.tsx +3 -3
- package/event/review_add.tsx +8 -8
- package/event/review_detail.tsx +4 -4
- package/event/review_item.tsx +4 -4
- package/event/scan_item.tsx +2 -2
- package/event/schedule.tsx +8 -9
- package/event/seat.tsx +16 -18
- package/event/seat_autopick.tsx +4 -4
- package/event/seat_map.tsx +4 -4
- package/event/seat_map_test.tsx +2 -2
- package/event/section_menu.tsx +40 -0
- package/event/sheet.tsx +73 -0
- package/event/slider.tsx +46 -0
- package/event/step.tsx +29 -0
- package/event/ticket_list.tsx +15 -16
- package/event/ticket_list2.tsx +16 -17
- package/event/tms.tsx +4 -4
- package/event/tms_add.tsx +7 -8
- package/event/tms_add_result.tsx +4 -4
- package/event/tms_check_code.tsx +160 -0
- package/event/tms_check_ticket.tsx +72 -0
- package/event/tms_check_ticket_result.tsx +384 -0
- package/event/tms_dashboard.tsx +7 -7
- package/event/tms_event_list.tsx +46 -43
- package/event/tms_gate.tsx +96 -0
- package/event/tms_home.tsx +639 -0
- package/event/tms_idcard.tsx +203 -0
- package/event/tms_in.tsx +215 -0
- package/event/tms_in_again.tsx +199 -0
- package/event/tms_in_failed.tsx +190 -0
- package/event/tms_in_hall.tsx +148 -0
- package/event/tms_in_hall_failed.tsx +270 -0
- package/event/tms_in_hall_list.tsx +222 -0
- package/event/tms_in_hall_log.tsx +134 -0
- package/event/tms_in_hall_success.tsx +132 -0
- package/event/tms_in_list.tsx +264 -0
- package/event/tms_in_log.tsx +130 -0
- package/event/tms_in_success.tsx +155 -0
- package/event/tms_in_warning.tsx +91 -0
- package/event/tms_list_item.tsx +88 -0
- package/event/tms_log.tsx +435 -0
- package/event/tms_out.tsx +91 -0
- package/event/tms_out_failed.tsx +135 -0
- package/event/tms_out_hall.tsx +143 -0
- package/event/tms_out_hall_failed.tsx +133 -0
- package/event/tms_out_hall_list.tsx +215 -0
- package/event/tms_out_hall_log.tsx +133 -0
- package/event/tms_out_hall_success.tsx +130 -0
- package/event/tms_out_list.tsx +118 -0
- package/event/tms_out_log.tsx +131 -0
- package/event/tms_out_success.tsx +143 -0
- package/event/tms_out_temporary.tsx +226 -0
- package/event/toggle.tsx +30 -0
- package/event/transaction.ts +34 -0
- package/event/turnstile_event_gate.tsx +2 -2
- package/event/turnstile_event_list.tsx +4 -4
- package/event/turnstile_event_ticket.tsx +4 -4
- package/event/turnstile_settings.tsx +11 -11
- package/event/turnstile_settings_otp.tsx +4 -4
- package/event/turnstile_settings_status.tsx +2 -2
- package/event/voucher.tsx +9 -10
- package/event/voucher_multi.tsx +4 -5
- package/id.json +644 -0
- package/package.json +1 -1
package/event/tms_dashboard.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
import {
|
|
2
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
3
3
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
4
4
|
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
5
5
|
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
@@ -26,8 +26,8 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
26
26
|
active: 1,
|
|
27
27
|
color_accent: '#FFC523',
|
|
28
28
|
onPress: () => {
|
|
29
|
-
LibNavigation.navigateForResult('
|
|
30
|
-
LibNavigation.navigate('
|
|
29
|
+
LibNavigation.navigateForResult('event/tms_event_list', { data: user?.is_tms }).then((value) => {
|
|
30
|
+
LibNavigation.navigate('event/tms_gate', { is_scanner: value, typeScanner: 'tms' })
|
|
31
31
|
})
|
|
32
32
|
}
|
|
33
33
|
},
|
|
@@ -38,8 +38,8 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
38
38
|
active: 1,
|
|
39
39
|
color_accent: '#01D0FB',
|
|
40
40
|
onPress: () => {
|
|
41
|
-
LibNavigation.navigateForResult('
|
|
42
|
-
LibNavigation.navigate('
|
|
41
|
+
LibNavigation.navigateForResult('event/tms_event_list', { data: user?.is_tms }).then((value) => {
|
|
42
|
+
LibNavigation.navigate('event/tms_gate', { is_scanner: value, typeScanner: 'hall' })
|
|
43
43
|
})
|
|
44
44
|
}
|
|
45
45
|
},
|
|
@@ -50,7 +50,7 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
50
50
|
active: 1,
|
|
51
51
|
color_accent: '#D0004F',
|
|
52
52
|
onPress: () => {
|
|
53
|
-
LibNavigation.navigateForResult('
|
|
53
|
+
LibNavigation.navigateForResult('event/tms_event_list', { data: user?.is_tms }).then((value) => {
|
|
54
54
|
LibNavigation.navigate('event/exchange_ticket', { dataEvent: value })
|
|
55
55
|
})
|
|
56
56
|
}
|
|
@@ -76,7 +76,7 @@ export default function m(props: EventTms_dashboardProps): any {
|
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
79
|
-
<
|
|
79
|
+
<EventHeader title={'Dashboard TMS'} />
|
|
80
80
|
|
|
81
81
|
<ScrollView>
|
|
82
82
|
{
|
package/event/tms_event_list.tsx
CHANGED
|
@@ -1,66 +1,69 @@
|
|
|
1
1
|
// withHooks
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
import { applyStyle } from 'esoftplay';
|
|
3
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
4
|
+
import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
|
|
5
|
+
import { LibLoading } from 'esoftplay/cache/lib/loading/import';
|
|
4
6
|
import { LibNavigation } from 'esoftplay/cache/lib/navigation/import';
|
|
5
7
|
import { LibPicture } from 'esoftplay/cache/lib/picture/import';
|
|
8
|
+
import { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
6
9
|
import { LibUtils } from 'esoftplay/cache/lib/utils/import';
|
|
7
10
|
import esp from 'esoftplay/esp';
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
|
|
8
13
|
import React from 'react';
|
|
9
14
|
import { ScrollView, Text, TouchableOpacity, View } from 'react-native';
|
|
10
15
|
|
|
11
16
|
|
|
12
|
-
export interface EventTms_event_listArgs {
|
|
13
|
-
|
|
14
|
-
}
|
|
15
17
|
export interface EventTms_event_listProps {
|
|
16
18
|
|
|
17
19
|
}
|
|
18
20
|
export default function m(props: EventTms_event_listProps): any {
|
|
19
|
-
const {
|
|
21
|
+
const { data } = LibNavigation.getArgsAll(props)
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (data?.length == 1) {
|
|
25
|
+
LibNavigation.sendBackResult(data[0])
|
|
26
|
+
}
|
|
27
|
+
return () => LibNavigation.cancelBackResult(LibNavigation.getResultKey(props))
|
|
28
|
+
}, [])
|
|
25
29
|
|
|
26
30
|
function renderItem(item: any, i: number) {
|
|
31
|
+
const widthImg = LibStyle?.width - 20
|
|
32
|
+
const sliderHeight = widthImg / 1920 * 1080
|
|
33
|
+
|
|
27
34
|
return (
|
|
28
35
|
<TouchableOpacity onPress={() => {
|
|
29
|
-
LibNavigation.
|
|
30
|
-
}} key={i} >
|
|
31
|
-
<View style={
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
<View style={styleId_Z1B8TCk}>
|
|
39
|
-
<Text allowFontScaling={false} style={styleId_Z2mC6aP}>{item.name || ""}</Text>
|
|
40
|
-
<Text allowFontScaling={false} style={styleId_Z1R4k1n} >{LibUtils.getDateRange(item.start_date, item.end_date, esp.lang("event/tms_event_list", "until"))}</Text>
|
|
41
|
-
</View>
|
|
36
|
+
LibNavigation.sendBackResult(item)
|
|
37
|
+
}} key={i} style={{ margin: 10, marginBottom: 0, backgroundColor: '#fff', borderRadius: 10 }}>
|
|
38
|
+
<View style={{ ...LibStyle.elevation(2), backgroundColor: '#fff', borderRadius: 10 }}>
|
|
39
|
+
<LibPicture source={{ uri: item.image }} style={{ width: widthImg, height: sliderHeight, borderRadius: 10 }} />
|
|
40
|
+
</View>
|
|
41
|
+
<View style={{ padding: 10 }}>
|
|
42
|
+
<Text allowFontScaling={false} numberOfLines={2} ellipsizeMode='tail' style={applyStyle({ fontSize: 18 })}>{item.name || ""}</Text>
|
|
43
|
+
<Text allowFontScaling={false} style={applyStyle({ fontSize: 14, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, color: "#f39c12" })} >{LibUtils.getDateRange(item.start_date, item.end_date, esp.lang("event/tms_event_list", "until"))}</Text>
|
|
42
44
|
</View>
|
|
43
45
|
</TouchableOpacity>
|
|
44
|
-
|
|
45
46
|
)
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
if (data?.length == 0) {
|
|
50
|
+
LibDialog.warning("Oops", "Daftar event kosong.")
|
|
51
|
+
LibNavigation.back()
|
|
52
|
+
} else if (data?.length == 1) {
|
|
53
|
+
return (
|
|
54
|
+
<LibLoading />
|
|
55
|
+
)
|
|
56
|
+
} else {
|
|
57
|
+
return (
|
|
58
|
+
<View style={{ flex: 1, backgroundColor: LibStyle.colorBgGrey }}>
|
|
59
|
+
<EventHeader title={esp.lang("event/tms_event_list", "title_list_event")} />
|
|
60
|
+
<ScrollView showsVerticalScrollIndicator={false} >
|
|
61
|
+
{/* untuk scanner */}
|
|
62
|
+
{
|
|
63
|
+
data?.map(renderItem)
|
|
64
|
+
}
|
|
65
|
+
</ScrollView>
|
|
66
|
+
</View>
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// withHooks
|
|
2
|
+
import { EventHeader } from 'esoftplay/cache/event/header/import';
|
|
3
|
+
import { LibCurl } from 'esoftplay/cache/lib/curl/import';
|
|
4
|
+
import { LibDialog } from 'esoftplay/cache/lib/dialog/import';
|
|
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 { LibStyle } from 'esoftplay/cache/lib/style/import';
|
|
9
|
+
import esp from 'esoftplay/esp';
|
|
10
|
+
import useSafeState from 'esoftplay/state';
|
|
11
|
+
|
|
12
|
+
import React, { useEffect } from 'react';
|
|
13
|
+
import { Pressable, ScrollView, Text, View } from 'react-native';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export interface EventTms_gateArgs {
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
export interface EventTms_gateProps {
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
export default function m(props: EventTms_gateProps): any {
|
|
23
|
+
const { is_scanner, typeScanner } = LibNavigation.getArgsAll(props)
|
|
24
|
+
|
|
25
|
+
const [selectGate, setSelectGate] = useSafeState<any>()
|
|
26
|
+
const [gates, setGates] = useSafeState<any>()
|
|
27
|
+
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (typeScanner == "tms") {
|
|
30
|
+
loadDataGates()
|
|
31
|
+
} else {
|
|
32
|
+
loadDataHall()
|
|
33
|
+
}
|
|
34
|
+
}, [])
|
|
35
|
+
|
|
36
|
+
function loadDataGates() {
|
|
37
|
+
let post = {
|
|
38
|
+
event_id: is_scanner?.id
|
|
39
|
+
}
|
|
40
|
+
new LibCurl('event_gate', post, (res, msg) => {
|
|
41
|
+
setGates(res)
|
|
42
|
+
if (res.length == 1) {
|
|
43
|
+
LibNavigation.back()
|
|
44
|
+
LibNavigation.navigate('event/tms_home', { is_scanner: is_scanner, selectedGate: res[0], typeScanner: typeScanner })
|
|
45
|
+
}
|
|
46
|
+
}, (error) => {
|
|
47
|
+
LibDialog.warning(esp.lang("event/tms_gate", "warning_load"), error?.message)
|
|
48
|
+
LibNavigation.back()
|
|
49
|
+
}, 1)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function loadDataHall() {
|
|
53
|
+
let post = {
|
|
54
|
+
event_id: is_scanner?.id
|
|
55
|
+
}
|
|
56
|
+
new LibCurl('event_hall', post, (res, msg) => {
|
|
57
|
+
setGates(res)
|
|
58
|
+
if (res.length == 1) {
|
|
59
|
+
LibNavigation.back()
|
|
60
|
+
LibNavigation.navigate('event/tms_home', { is_scanner: is_scanner, selectedGate: res[0], typeScanner: typeScanner })
|
|
61
|
+
}
|
|
62
|
+
}, (error) => {
|
|
63
|
+
LibDialog.warning(esp.lang("event/tms_gate", "warning_loadhall"), error?.message)
|
|
64
|
+
LibNavigation.back()
|
|
65
|
+
}, 1)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function renderGates(item: any, i: number) {
|
|
69
|
+
let _selectGate = item.id == selectGate?.id
|
|
70
|
+
return (
|
|
71
|
+
<Pressable key={i} onPress={() => {
|
|
72
|
+
setSelectGate(item)
|
|
73
|
+
LibNavigation.navigate('event/tms_home', { is_scanner: is_scanner, selectedGate: item, typeScanner: typeScanner })
|
|
74
|
+
}} 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 }}>
|
|
75
|
+
<LibIcon name={_selectGate ? "radiobox-marked" : "radiobox-blank"} size={18} color={_selectGate ? "#3ea4dc" : "#434343"} />
|
|
76
|
+
<Text allowFontScaling={false} style={{ marginLeft: 10, fontSize: 17, fontWeight: "normal", fontStyle: "normal", letterSpacing: 0, textAlign: "center", color: '#9e9e9e', paddingLeft: 3, paddingRight: 3 }}>{item.name}</Text>
|
|
77
|
+
</Pressable>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (!gates) {
|
|
82
|
+
return <LibLoading />
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<View style={{ flex: 1 }}>
|
|
87
|
+
<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")} />
|
|
88
|
+
<ScrollView style={{}}>
|
|
89
|
+
<Text allowFontScaling={false} style={{ margin: 20, marginBottom: 10, fontFamily: "Arial", fontSize: 16, fontWeight: "bold", fontStyle: "normal", letterSpacing: 0, paddingLeft: 3, paddingRight: 3 }}>{esp.lang("event/tms_gate", "text_select", typeScanner == "tms" ? esp.lang("event/tms_gate", "gate") : esp.lang("event/tms_gate", "hall"))}</Text>
|
|
90
|
+
{
|
|
91
|
+
gates?.length > 1 && gates?.map(renderGates)
|
|
92
|
+
}
|
|
93
|
+
</ScrollView>
|
|
94
|
+
</View>
|
|
95
|
+
)
|
|
96
|
+
}
|