This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Frontend CI | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
| name: Deploy | |
| permissions: | |
| contents: write | |
| env: | |
| CI: false | |
| on: | |
| workflow_dispatch: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "CompanyName": "Dattel Sdn. Bhd. (9098767-X)", | |
| "CompanyRegistrationNo": "adsasdsadas", | |
| "BusinessTypeId": 1058, | |
| "CompanyAddress": "asdasdadsa", | |
| "Postcode": "12312", | |
| "CompanyCity": "sadasdasd", | |
| "StateId": 3, | |
| "Name": "Muhammad Norzariman", | |
| "NIRC": "010101010101", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Name": "Muhammad Norzariman", | |
| "NIRC": "010101010101", | |
| "DateOfBirth": "2001-01-01T00:00:00", | |
| "MobileNo": "0123456789", | |
| "CompanyName": "Dattel Sdn. Bhd. (9098767-X)", | |
| "CompanyRegistrationNo": "13123213", | |
| "BusinessTypeId": 1059, | |
| "EmergencyName": "asdsads", | |
| "FamilyRelationId": 2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const useVoucherParameter = (key) => { | |
| const [params, setParams] = useState({}) | |
| const findRef = useRef(); | |
| useLayoutEffect(() => { | |
| VoucherApi.initParameter().then({ | |
| complete: (res, e) => { | |
| if (res.data) { | |
| const params = res.data | |
| // params.MinAmount = 600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div style="display: flex;"> | |
| <img src="https://images.dattel.asia/i/mybox.png" alt="Malaysia" width="45" height="30"> | |
| <a href="https://images.dattel.asia/d/behave-arch2.pdf" target="_blank" style="margin: auto 8px auto;"> | |
| 30 Behaviour Archetypes | |
| </a> | |
| </div> | |
| <div style="display: flex;"> | |
| <img src="https://images.dattel.asia/i/thbox.png" alt="Thailand" width="45" height="30"> | |
| <a href="https://images.dattel.asia/d/behave-arch2.pdf" target="_blank" style="margin: auto 8px auto;"> | |
| 30 Behaviour Archetypes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Widget build(BuildContext context) { | |
| String loadUrl = | |
| "https://www.thevocket.com/rakaman-mak-cik-ini-terpaksa-langgar-axia-untuk-keluar-parkir-curi-tumpuan-ramai/"; | |
| return Scaffold( | |
| appBar: AppBar( | |
| // Here we take the value from the MyHomePage object that was created by | |
| // the App.build method, and use it to set our appbar title. | |
| title: Text(widget.title), | |
| ), | |
| body: WebView( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn=(delay=5,rands=[20,10,15])=>{ | |
| if(!loop) return; | |
| console.log("click") | |
| document.dispatchEvent(new Event('keydown', {keyCode: 'a'})) | |
| setTimeout(fn, rands.reduce((s,v)=>s+Math.random()*v) +5); | |
| } | |
| startFn=()=>{ | |
| loop = true | |
| fn() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:developer'; | |
| import 'package:dio/dio.dart'; | |
| import 'package:flutter_network_call_with_auth/interceptor/app.dart'; | |
| class AppRepo { | |
| AppRepo._(); | |
| static final AppRepo instance = AppRepo._(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:dio/dio.dart'; | |
| class AppInteceptor extends Interceptor { | |
| @override | |
| void onRequest(RequestOptions options, RequestInterceptorHandler handler) { | |
| options.headers.addAll({"Authorization": "bearer {{TOKEN}}"}); | |
| super.onRequest(options, handler); | |
| } | |
| } |
NewerOlder