This file contains 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
console.log("good from gist") |
This file contains 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
{"lastUpload":"2020-05-13T02:04:23.246Z","extensionVersion":"v3.4.3"} |
This file contains 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 currentPrefix = "Giới thiệu/" //current folder | |
const fileName = "tung.jpg" | |
const prefix = path.join(currentPrefix, fileName) | |
const { data: { url }} = await api.get(`/s3/buckets/ilotusland/presigned-put-object?prefix=${prefix}`) | |
// `url` là API trả về, để từ Frontend PUT lên dữ liệu | |
const file = Object{} // file from select |
This file contains 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
client.processTrip({ | |
idTrip: 'trip_id_' + Math.floor(Date.now() / 1000).toString(), | |
idDriver: 'id_driver_' + Math.floor(Date.now() / 1000).toString(), | |
idGuess: 'id_guess_' + Math.floor(Date.now() / 1000).toString(), | |
amount: 15000, | |
balanceType: 1, | |
appMode: 'dev', | |
platform: 'IOS' | |
}, (error, response) => { | |
if (!error) { |
This file contains 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
client.processTrip({ | |
idTrip: 'trip_id_' + Math.floor(Date.now() / 1000).toString(), | |
idDriver: 'id_driver_' + Math.floor(Date.now() / 1000).toString(), | |
idGuess: 'id_guess_' + Math.floor(Date.now() / 1000).toString(), | |
amount: 15000, | |
balanceType: 1, | |
appMode: 'dev', | |
platform: 'IOS' | |
}, (error, response) => { | |
if (!error) { |
This file contains 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 mongoose from "mongoose"; | |
var { Schema } = mongoose; | |
var HistoryActionSchema = new Schema({ | |
userId: String,// driver id | |
tripId: { | |
type: String, | |
unique: true, | |
required: true, |
This file contains 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 mongoose from "mongoose"; | |
var { Schema } = mongoose; | |
var PaymentOrderSchema = new Schema({ | |
debitAccount: String,// driver id | |
creditAccountId: String, // guess id | |
balanceType: Number, | |
tripId: { | |
type: String, |
This file contains 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 mongoose from "mongoose"; | |
var { Schema } = mongoose; | |
var BillingLogSchema = new Schema({ | |
sourceId: String, | |
destId: String, | |
debitMoney: { | |
type: Number, | |
default: 0 |
This file contains 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
// hoc/create-lang.js | |
/*eslint-disable*/ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
import objectPath from 'object-path' | |
import { connectAutoDispatch } from 'redux/connect' | |
import { changeLanguage } from 'redux/actions/languageAction' | |
import { autobind } from 'core-decorators' | |
import dot from 'dot' |
This file contains 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 color from 'color' | |
export const SHAPE = { | |
RED: '#EB5C55', | |
ORANGE: '#F6A623', | |
PURPLE: '#A076C5', | |
BLACK: '#3B3B3B', | |
GREEN: '#2ECC71', | |
PRIMARY: '#389BFF', | |
PRIMARYBOLD: '#007EE5', |
NewerOlder