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 {Prop, TypedSchema} from '@orion-js/typed-model' | |
@TypedSchema() | |
export class StoreProfileTagCategoryValue { | |
@Prop() | |
value: string | |
@Prop() | |
label: 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 {Collection} from '@orion-js/app' | |
const Counters = new Collection({ | |
name: 'autoIncrement_counters', | |
indexes: [ | |
{ | |
keys: {name: 1}, | |
unique: 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
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Effect": "Allow", | |
"Action": [ | |
"acm:*", | |
"acm-pca:*", | |
"cloudfront:*", | |
"elasticbeanstalk:*", | |
"ec2:*", |
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 from 'react' | |
import styles from './styles.css' | |
import PropTypes from 'prop-types' | |
import Text from 'orionsoft-parts/lib/components/fields/Text' | |
import clone from 'lodash/clone' | |
import Button from 'orionsoft-parts/lib/components/Button' | |
import autobind from 'autobind-decorator' | |
import IconButton from 'orionsoft-parts/lib/components/IconButton' | |
import DeleteIcon from 'react-icons/lib/md/delete' |
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
orion build --output "$BUILD_DIR/build" |
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
conditionsgroup | |
const finalquery = {$or: []} | |
for (const group of conditionsgroup) { | |
const groupQueries = {$and: []} | |
for (const conditions of group) { | |
const query = { /* generar query */ } | |
groupQueries.$and.push(query) | |
} |
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
Los datos que compartas solo serán usados para contactarte y no serán compartidos con nadie |
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 JSSHA from 'jssha' | |
import rp from 'request-promise' | |
export default async function(query, variables, apiKey, apiSecretKey) { | |
// New actual Time-Stamp | |
const timestamp = new Date().getTime() / 1000 | |
const body = JSON.stringify({query, variables}) | |
const shaObj = new JSSHA('SHA-512', 'TEXT') | |
shaObj.setHMACKey(apiSecretKey, 'TEXT') |
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
/* global $ */ | |
function marcar(amountToTransfer, fecha, bchile) { | |
let total = 0 | |
$('.linea1tablaSB input[type=checkbox]').map(function() { | |
const input = $(this) | |
const tr = input.parent().parent() | |
const fileNameTr = tr.prev().prev() | |
const fileName = fileNameTr.find('td:not([align=right]) strong').text() | |
const date = fileName.split(' ')[2] + ' ' + fileName.split(' ')[3] | |
const cuenta = $(tr.find('td')[5]).find('div:first').text().trim() |
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
// Main.js | |
import withGraphQL from 'react-apollo-decorators/lib/withGraphQL' | |
import gql from 'graphql-tag' | |
import Content from './Content' | |
@withGraphQL(gql`query getMyData ($section: String) { | |
dataForSection (section: $section) { | |
...${Content.fragmentName} | |
} | |
}`, { |
NewerOlder