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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: red; icon-glyph: home; | |
let collection = "932809"; | |
const FORCE_IMAGE_UPDATE = true; | |
// Store current datetime | |
const date = new Date(); |
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
let quantity = "500.000"; | |
let widget = new ListWidget(); | |
let widgetInputRAW = args.widgetParameter; | |
if (widgetInputRAW) { | |
try { | |
widgetInputRAW.toString(); |
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
let isRefreshing = false; | |
let refreshSubscribers = []; | |
const instance = axios.create({ | |
baseURL: Config.API_URL, | |
}); | |
instance.interceptors.response.use(response => { | |
return response; | |
}, 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 React, { Component } from 'react'; | |
import { StyleSheet, Image, TouchableOpacity, View } from 'react-native'; | |
import Carousel from 'react-native-carousel-view'; | |
import Colors from '../../config/Colors'; | |
const image1 = require('../../assets/img/1.png'), | |
image2 = require('../../assets/img/2.png'), | |
image3 = require('../../assets/img/3.png'), | |
image4 = require('../../assets/img/4.png'); |
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 React, { PureComponent, Fragment } from 'react'; | |
import { View, ScrollView } from 'react-native'; | |
import { withFormik } from 'formik'; | |
import ButtonLoading from '../../../react-component/buttonLoading'; | |
import InputComponent from '../../../components/inputComponent'; | |
import { enderecoSchema } from '../../../constants/schemas'; |
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
'use strict'; | |
let config = { | |
AWS = { | |
accessKeyId: ACCESSKEYHERE, | |
secretAccessKey: SECRETEACCESSKEYHERE, | |
region: REGIONHERE | |
} | |
} |
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
'use strict' | |
const AWS = require('aws-sdk') | |
const env = require('../../.env') | |
const formidable = require('formidable') | |
const fs = require('fs') | |
const sendErrorsFromDB = (res, dbErros) => { | |
const errors = [] | |
_.forIn(dbErros.errors, error => errors.push(error.message)) | |
return res.status(400).json({ errors }) |