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 CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "fonts": {
3
- "mono": "mono.ttf",
4
3
  "Arial": "Arial.ttf",
5
4
  "ArialBold": "ArialBold.ttf",
6
5
  "SFProText": "SFProText.ttf",
6
+ "mono": "mono.ttf",
7
7
  "MonoSpace": "MonoSpace.ttf",
8
8
  "DecoNumbers": "DecoNumbers.ttf",
9
9
  "digital": "digital.ttf"
@@ -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
- // if (item?.images?.length > 0) {
108
- // return (
109
- // <LibCarrousel
110
- // key={i}
111
- // delay={4000}
112
- // style={{ height: sliderHeight, width: width }}
113
- // autoplay
114
- // >
115
- // {
116
- // item?.images?.map((item1: any, ii: number) => {
117
- // return (
118
- // <TouchableOpacity key={ii} onPress={handlePress} >
119
- // <LibPicture key={ii} source={{ uri: item1 }} style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} />
120
- // </TouchableOpacity>
121
- // )
122
- // })
123
- // }
124
- // </LibCarrousel>
125
- // )
126
- // } else if (item?.images?.length == 1) {
127
- return (
128
- <TouchableOpacity key={i} onPress={handlePress} >
129
- <LibPicture style={{ height: sliderHeight, width: width, resizeMode: 'cover', backgroundColor: "#f1f2f3" }} source={{ uri: item.images[0] }} />
130
- </TouchableOpacity>
131
- )
132
- // } else {
133
- // return (
134
- // <TouchableOpacity key={i} onPress={handlePress} style={styleId_Z2g4Hs7}>
135
- // <Text allowFontScaling={false} numberOfLines={2} style={styleId_2cYE4h}>{item.title}</Text>
136
- // </TouchableOpacity>
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 (
@@ -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 &&
@@ -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().format('YYYY-MM-DD HH:mm:ss'),
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().format('YYYY-MM-DD HH:mm:ss'),
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 })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.1-j",
3
+ "version": "0.0.1-k",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {