text
stringlengths
7
3.69M
import Amplify, { API, graphqlOperation } from "@aws-amplify/api"; import awsconfig from "./aws-exports"; import { createOrder } from "./graphql/mutations"; import { listProducts } from "./graphql/queries"; Amplify.configure(awsconfig); async function createNewOrder() { const order = { userId: "value1", or...
import React from 'react'; export default function LazyComponent(){ return ( <div>I am a lazy component brother</div> ) }
// Ontology Broker // ## ontology_broker/queueMapper.js // Maps a Message of a certain type to the queue mapped. const queueMapper = { 'percp_scope_1.concepts': 'concept', 'percp_scope_1.course': 'course', 'percp_scope_1.media_content': 'content', 'percp_scope_1.user': 'user', 'percp_scope_1.learner_state':...
//singleDirectoryView var bpapp = bpapp || {}; bpapp.singleDirectoryView = Backbone.View.extend({ tagName: "article", className: "dir", events: { "click": "toggle", "focusin": "showStatus" }, template: _.template( $("#directoryElement").html() ), initialize: function(options)...
module.exports = { root: true, env: { node: true, browser: true, jest: true, }, extends: [ 'react-app', 'plugin:jsx-a11y/recommended', 'plugin:prettier/recommended', ], plugins: ['jsx-a11y', 'prettier'], }
export const SET_IMG_DATA = 'SET_IMG_DATA'; export const SET_VIDEO_STREAM = 'SET_VIDEO_STREAM'; export const SET_CAN_PLAY = 'SET_CAN_PLAY'; export const SET_IS_STREAMING = 'SET_IS_STREAMING'; export const SET_FRAME_DATA = 'SET_FRAME_DATA';
/* global describe it beforeEach */ const chai = require('chai'); const chaiHttp = require('chai-http'); const should = chai.should(); const app = require('../app'); const { Result, } = require('../models'); chai.use(chaiHttp); describe('Result API', () => { beforeEach((done) => { Result.destroy({ wh...
// import React, {Component} from 'react'; // import {connect} from 'react-redux'; // import {bindActionCreators} from 'redux'; // import {details} from '../actions/details_actions' // import { store } from '..'; // import '../index.css'; // // class RemoveMusic extends Component { // // onDeleteClick = (e) => { // ...
/** * Created by plter on 2016/11/22. */ angular.module("register").component("register", { templateUrl: "register/register.template.htm", controller: function ($scope, $http, $location) { $scope.login = ""; $scope.pass = ""; $scope.passConfirm = ""; $scope.loading = false; ...
import React, {Component} from 'react'; import {Input} from '../../components/Input' import {Button} from '../../components/Button' import { Platform, StyleSheet, View, TextInput, Text, } from 'react-native'; export default class ViewInApp extends Component { constructor(props) { super(props); ...
import { InitialState } from './state'; import { actionTypes } from './actionTypes'; export const reducer = (state = InitialState, action) => { switch (action.type) { case actionTypes.TICK: return { ...state, lastUpdate: action.ts, light: !!action.light } case actionTypes....
import Bag from '../classes/Bag'; export default () => { const elementBag = document.querySelector('.js-bag'); window.bag = new Bag(elementBag); bag.updateLength('orders'); };
class Tree { constructor() {} addValue(value) { if (!this.number && value) { this.number = value this.nodeIndex = 0 } else if (this.number && value) { if (this.valueIndex) this.valueIndex += 1 else this.valueIndex = 1 // right, higher ...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {fetchQuestions} from '../actions/index'; import Question from './question'; import Results from './results'; class QuestionList extends Component { constructor(props) { super(prop...
import React, { Component } from "react"; import "./App.css"; // import connect to the store import { connect } from "react-redux" // import actions import { getSmurfData, removeSmurf } from "../actions" // import components import AddSmurf from "./AddSmurf" import Smurfs from "./Smurfs" class App extends Componen...
import { useState } from 'react'; export default function useForm(fields) { const [state, setState] = useState(_generateInitialState(fields)); function updateField(key, value) { state[key] = value; setState({ ...state }); } return [state, updateField]; } function _generateInitialSta...
/* eslint-disable no-console, no-undef, no-unused-vars */ import {HTTPS as https} from 'express-sslify' import Express, {Router} from 'express' import cookieParser from 'cookie-parser' import bodyParser from 'body-parser' import auth from './auth' import routes from './routes' export function start() { const app = ...
$(document).ready(function () { var id = window.location.hash; id = id.substring(1); // alert(id); var posts = $("#posts"); window.addEventListener('hashchange', hashchange); function hashchange(){ var id = location.hash; id = id.substring(1); window.location.reload(); } $.ajax({ url: "db/articles...
// Let's just learn a little bit more about strings. //Just like arrays we would be able to find out the the index of any character present inside string. const Airplane = "Nepal Airlines"; const Plane = "A435"; console.log(Airplane[3]); console.log(Airplane[0]); console.log(Airplane[1]); console.log(Airpl...
import {useRoutes} from 'hookrouter'; import React from 'react'; import ReactDOM from 'react-dom'; import './css/materialIcons.css'; import './css/component.css' import './css/bootstrap.min.css'; import Home from './home/Home'; import Blog from './blog/blog' import Article from './article/Article' import Archive from '...
import React from 'react' import Layout from "../components/layout"; import Title from '../components/Globals/Title'; import BackgroundSection from "../components/Globals/BackgroundSection"; export default function Contact() { return ( <Layout> <div class="container"> <Title title="Contact Us" /> ...
import React from "react"; import axios from "axios"; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHead from '@material-ui/core/TableHead';...
import React, {Component} from 'react' import Highcharts from 'highcharts' import {connect} from 'react-redux' function percentage(previousCount, currentCount) { if (previousCount === 0 || currentCount === 0) return 0 var increaseCount = previousCount - currentCount; var percentage = (increaseCount / previous...
import React, { Component } from 'react' import { connect } from 'react-redux' import { getShops } from '../../actions/shops/getShops' import ShopsPage from './ShopsPage'; class ShopsContainer extends Component { componentDidUpdate() { this.props.user && !this.props.shop && this.props.getShopProducts(thi...
import React, { useState } from 'react'; import { Snackbar } from '@material-ui/core'; import MyCalendar from '../Components/Calendar'; import Backdrop from '../Components/Backdrop'; function Cameras() { const [snackBarOpen, setSnackBarOpen] = useState(false); const [backdropOpen, setBackdropOpen] = useState(false...
export const USERS_PAGE = '/users'; export const PRODUCTS_PAGE = '/products'; export const SERVICES_PAGE = '/services';
var cats = [{ 'name': 'Sadie', 'age': 9, 'color': 'black and peanut butter', 'favorite activity': 'eating', 'favorite toy': 'Mr. Mouse', 'sound': 'mew', 'face': 'perfect', 'fuzziness level': 'off the charts' }, { 'name': 'Layla', 'age': 9, 'color': 'grey and white and black', 'favorite activity'...
//Variables //Declarar let nombre; //Inicializar nombre = "Julio"; let elementos = ["Celular", "Computadora"]; typeof elementos; //Variable tipo objeto let persona = { nombre: "Diego", edad: 20 } console.log(persona);
import { LightningElement, track, api } from "lwc"; import { ShowToastEvent } from "lightning/platformShowToastEvent"; import createContact from "@salesforce/apex/VendorOnBoardingController.createContact"; export default class Vrf_vendor_capability extends LightningElement { // this code is written by jatinder kumar ...
function Board(settings) { this.w = settings.w; this.h = settings.h; this.size = this.w * this.h; this.tiles = new Array(this.size); } Board.prototype.set = function(settings) { this.constructor(settings); }; Board.prototype._out = function() { return [ this.w, this.h, this.size, this.tile...
const args = process.argv.slice(2) const depth = ['colors', 'shades', 'variants', 'swatches'].includes(args[0]) ? args[0] : 'swatches' const depthMap = { colors: 1, shades: 2, variants: 3, swatches: 4, } const level = depthMap[depth] const colors = [ 'primary', 'secondary', 'tertiary', 'light', '...
const { request, response } = require("express"); const personaTabla=require('../models/persona'); exports.iniciarSesion=(request, response)=>{ const error = response.locals.mensajes; //console.log(error); response.render('iniciarSesion',{ nombrePagina:'Sinfit | Ingreso ', error });...
const express = require('express'); const bodyParser = require('body-parser'); const pino = require('express-pino-logger')(); var http = require('http'); var twilio = require('twilio'); const app = express(); app.use(bodyParser.urlencoded({ extended: false })); app.use(pino); app.get('/api/greeting', (req, res) => { ...
const gulp = require('gulp'); const gulpTheo = require('gulp-theo'); const theo = require('theo'); const deepMap = require('../formats/deepMap.scss'); const map = require('../formats/map.scss'); const metaJs = require('../formats/meta.js'); const commonJs = require('../formats/common.js'); // Custom formats theo.regis...
import React from 'react' const DeleteButton = (props) => { return ( <div onClick={() => props.deleteTodo({ id: props.id })}> <i className="fa fa-times fa-lg"></i> </div> ) } export default DeleteButton
import asset from "plugins/assets/asset"; export default function ItemBanner ( { urlImage, children, style, linkLine, } ){ return ( <> <div className="itemBanner" style={style}> <img className={"imgBanner"} src={urlImage ? urlImage : asse...
import { Row, Col } from 'antd'; import pointBox from '../../images/point-box.png' import pic2 from '../../images/pic2.jpg' export default function SurveyView(props) { const {survey} = props; return( <> <Col lg={6} md={8} xs={24}> {/* 대표 이미지 */} <div style=...
//Function to return true if passed int is even function isEven(int) { return int % 2 === 0; } //Function to return the factorial of a number function factorial(int) { var ans = 1; while (int !== 0) { ans *= int; int--; } return ans; } //Function to turn a string with hyphens to underscores function k...
import React from 'react'; import OptionallyDisplayed from './OptionallyDisplayed'; import { shallow } from 'enzyme'; test('It renders its children when display is set to true', () => { const component = shallow( <OptionallyDisplayed display={true}> <p>I'm a computer!</p> </OptionallyDi...
'use strict'; const EventEmitter = require('events'); const _ = require('lodash'); const Async = require('async'); const Batchelor = require('batchelor'); const Boom = require('@hapi/boom'); const Google = require('googleapis').google; const GoogleCal = Google.calendar('v3'); const OAuth2 = Google.auth.OAuth2; class...
import React, { useState } from 'react'; import styled from 'styled-components'; import Modal from 'react-responsive-modal'; const PageHolder = styled.div` width: 82%; height: 100%; overflow-y: scroll; padding: 3%; display: flex; flex-direction: column; align-items: center; font-size: 1.6rem; position: relati...
import React, { Component } from 'react' const ProjectsContext = React.createContext({ projects: [], archiveProjects: [], error: null, darkMode: false, setError: () => {}, clearError: () => {}, setProjects: () => {}, setArchiveProjects: () => {} }) export default ProjectsContext export class ProjectsP...
const _ = require('lodash') const bcrypt = require('bcryptjs') const express = require('express') const router = express.Router() const models = require('../models/index') const l = require('../../../lib') const requiresCorrectUser = (req, res, next) => { if (!req.isAuthenticated()) { return res.status(403).send...
/* * Ajax news search */ function search() { var keystring = jQuery('#search').val(); var url = jQuery('#search').data('url'); var csrf = jQuery('#search').data('csrf'); jQuery('#postsList').load(url, {keystring:keystring, csrf:csrf}); } jQuery(function() { jQuery('#search').keyup(function(event){ if(...
import React, { Component } from 'react'; import LoadableWrapped from '../LoadableWrapped'; const Dashboard = LoadableWrapped({ loader: () => import('cps/Dashboard'), modules: ['cps/Dashboard'], webpack: () => [require.resolveWeak('cps/Dashboard')], }); const Hello = LoadableWrapped({ loader: () => import('cp...
"use strict"; exports.__esModule = true; exports.RuleProcessor = void 0; var RuleProcessor = /** @class */ (function () { function RuleProcessor(rule) { this.id = rule.id; this.amountNeeded = rule.amountNeeded; this.strict = rule.strict; this.discount = rule.discount; this.ap...
var mongoose = require( 'mongoose' ); var facultySchema = new mongoose.Schema({ firstName: { type: String, required: true }, lastName: { type: String, required: true }, email: { type: String, unique: true, required: true }, bio: { type: Strin...
var tarokka = { "seniordeck": [ { "name": "Артефакт", "ally": "Ищите человека, выступающего с обезьяной. Это человек более могущественный, чем кажется.", "location": "Он рыщет во тьме, где ранее сияли лучи рассвета - в святом месте.", "image": "img/artifact.png", "value": "джокер 1...
const AdsModel = require('../Models/AdsModel') const ClientModel = require('../Models/ClientModel') const DiscountModel = require('../Models/DiscountModel') const CheckoutModel = require('../Models/CheckoutModel') const ClientDiscountModel = require('../Models/ClientDiscountModel') class Checkout { constructor(){ ...
import React from "react"; import { Grid, Row, Col } from "react-bootstrap"; const Vehicle = ({ vehicle, isFetching }) => { if (isFetching) { return ( <Grid> <Row> <Col md={12}> <span className="img-loader" /> </Col> </Row> </Grid> ); } return ...
import React from "react"; import Slider from "rc-slider"; import "rc-slider/assets/index.css"; import './style.css' const { createSliderWithTooltip } = Slider; const Range = createSliderWithTooltip(Slider.Range); const ItemRange = React.memo( ({ min, max, data = [null, null], handleChange, name, title, step, marks...
// OBJETO TOTAL // var personaLitaral = { // nombre: "Jose literal", // apellido: "vasquez", // edad: 20, // saluda: function () { // return "Hola soy " + this.nombre; // } // } // console.log (personaLitaral.saluda()) // }; // // FUNCION CONSTRUCTORA // var Persona = function (nombre, ape...
import React, { Component } from 'react'; import { connect } from 'react-redux' import RaisedButton from 'material-ui/RaisedButton'; import IconButton from 'material-ui/IconButton'; import AutoSearch from '../core/AutoSearch'; import FlatButton from 'material-ui/FlatButton'; import ContentAdd from 'material-ui/svg-icon...
import { Meteor } from 'meteor/meteor'; import { withTracker } from 'meteor/react-meteor-data'; import { Groups } from '../../../api/groups/groups'; import GroupsList from '../GroupsList/GroupsList'; export default MyGroupsContainer = withTracker(() => { const sub$ = Meteor.subscribe('groups.getOwnGroups'); ret...
import core from './ui.tree_list.core'; import { filterRowModule } from '../grid_core/ui.grid_core.filter_row'; core.registerModule('filterRow', filterRowModule);
import {HeaderControlsLiner} from "../common/headerControlsLiner"; import {HeaderControlsSVG} from "../common/headerControlsSVG"; export const PlayTrackSVG = () => { return <HeaderControlsLiner> <HeaderControlsSVG xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20" st...
'use strict'; angular.module('AdProcmt').controller('prcmtOrderShowCtlr',['$scope','ProcmtUtils','PrcmtOrderState','PrcmtDeliveryState','genericResource','$routeParams','$location','$q','fileExtractor',function($scope,ProcmtUtils,PrcmtOrderState,PrcmtDeliveryState,genericResource,$routeParams,$location,$q,fileExtracto...
(function (exports) { const $M = require('memory'); $M.set_memcheck(true); function fch(csm) { const $memcheck_call_push = $M.memcheck_call_push, $memcheck_call_pop = $M.memcheck_call_pop; $memcheck_call_push('fch', 'derp.ljs', 1, 0); var a = 0; var b = 0; var c = 0; var t = 0; a = csm...
var cryptglue_8c = [ [ "CRYPT_MOD_CALL_CHECK", "cryptglue_8c.html#a69a7f3b98b67a0831a8a5e3fc47d5c93", null ], [ "CRYPT_MOD_CALL", "cryptglue_8c.html#acaf721ab817757c241a5abd18fc8618b", null ], [ "crypt_init", "cryptglue_8c.html#aaecf706c319966f9eafd582b58ba531f", null ], [ "crypt_cleanup", "cryptglue_8c...
import React from 'react' import {AiFillGithub , AiOutlineFundView , AiOutlineFolderView} from 'react-icons/ai' const View= props => { return ( <div> <div className="preview"> <button className="btn-view" >Live Demo</button> <div className="line"> ...
$(document).ready(function(){ // $('#tgllahir').datepicker({ // autoclose:true, // dateformat:"dd-mm-yyyy", // language:"id" // }); // $(document).on('click', '#cekDataRegistrasi', function(){ // const nik = $('#cekData') // $('#cekData').on("...
import React, { Fragment, useState, useEffect } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { editEducation, getCurrentProfile } from "../../actions/profile"; import TextField from "@material-ui/core/TextField"; import { FormControlLabel, Checkbox } from "@material-ui...
// Made up item IDs that I use for items such as the bracers/boots from the Karazhan basement bosses where all the items use the same item id but they have different stats // But each item in the sim needs to have a unique ID so I just make one up here and use that const fakeItemIds = { lurkersCordOfShadowWrath: -1, ...
import React,{Component} from 'react' class TemperatureInput extends Component { constructor(props){ super(props) } render(){ let {temp,type} = this.props.temp let {title} = this.props.type let {changeVal} = this.props return ( <fieldset> ...
// Generated by CoffeeScript 1.6.3 var Future, appConfig, path, pathConfigFile, requirejs, savedConfigFuture, _, __slice = [].slice; path = require('path'); requirejs = require('requirejs'); _ = require('lodash'); Future = require('../utils/Future'); appConfig = require('../appConfig'); pathConfigFile = 'public...
let dataSet = [ ["Dělníci v oblasti výstavby budov", 3207, 15931, -12724], ["Montážní dělníci ostatních výrobků",2064,12389,-10325], ["Montážní dělníci elektrických, energetických a elektronických zařízení",236,8451,-8215], ["Montážní dělníci mechanických zařízení",711,7431,-6720], ["Řidiči nákladních automob...
var d = require("./Common_Data"), o = require("./Util"), i = require("./ComPage"), n = function() { function t() {} return t.setShareOpen = function(t) { this.shareOpen = t; }, t.getShareOpen = function() { return this.shareOpen; }, t.g...
import React from 'react' import {Link} from 'react-router-dom'; function Partners() { return ( <React.Fragment> <h2><Link style={LinkStyle} to="/partner/profile">View My Profile</Link>{' '}</h2> <h2><Link style={LinkStyle} to="/partner/delete">Delete My Account</Link>{' '}</h2> <h2...
'use strict'; var gulp = require('gulp'), runSequence = require('run-sequence'), browserSync = require('browser-sync'), sass = require('gulp-sass'), rename = require('gulp-rename'), csso = require('gulp-csso'), autoprefixer = require('gulp-autoprefixer'), sourcemaps = require('gulp-sourcema...
import React from 'react'; import { ScrollView, Dimensions } from 'react-native'; import { ListItem, Divider } from 'react-native-elements'; import { Icon } from 'expo'; import { Modal } from '../../../../components/modal'; import { Button } from '../../../../components/button'; import { CloseTouchable, TitleText, ...
$(document).ready(function() { var camera, scene, renderer; var pano = document.getElementById('pano'); var target = new THREE.Vector3(); var lon = 90, lat = 0; var phi = 0, theta = 0; var touchX, touchY; var tc_bg_switch = true,switch_fm = true,switch_dengta = true,switch_jiangtai = true,sw...
import BranchState from './BranchState.jsx'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import branchStateActions from '../../redux-actions/branchStateActions'; import { getSelectedBranch, getActiveModules, getInactiveModules, getPendingBranchBuilds } from '../../selectors'; cons...
// ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS // @externs_url http://closure-compiler.googlecode.com/svn/trunk/contrib/externs/maps/google_maps_api_v3.js // ==/ClosureCompiler== /** * @name CSS3 InfoDiv with tabs for Google Maps API V3 * @version 0.8 * @author Luke Mahe * @fileoverview * Thi...
// Get input element let inputLastName = document.getElementById("lastname"); // Add on input an event listener on blur to display a message inputLastName.addEventListener("blur", function(){ alert("Merci de votre participation") })
import { graphql, GraphQLSchema, GraphQLString, GraphQLObjectType } from 'graphql'; import rootQuery from './queries/root'; export default new GraphQLSchema({ query: rootQuery });
/** * Copyright (C) 2009 eXo Platform SAS. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This softwar...
import { SET_CART_TOTAL, SET_CART_ITEMS, SET_CAR_DATA, SET_EXTRAS_DATA } from '../store/types'; import { store } from '../store/store'; export const setCartData = (items, type) => (dispatch) => { const currentState = store.getState().cart; if (type === 'car') { const total = parseInt(parseInt(currentState.total)...
'use strict'; var zgodaPierwsza = document.getElementById('zgoda-marketingowa-1'); var zgodaDruga = document.getElementById('zgoda-marketingowa-2'); var obieZgody = document.getElementById('wszystkie-zgody'); var wszystkieCheckboxy = document.querySelectorAll('input[type=checkbox]'); var inputImie = document.getEle...
function header(){ var html = (function() {/* <nav class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" dat...
export const QUOTEINFO = [ { id:1, text: 'You cannot alter your fate. However, you can rise to meet it.', movie: 'Princess Mononoke', year: 1997 }, { id:2, text: 'We each need to find our own inspiration. Sometimes it’s not easy.', movie: 'Kiki’s Deli...
import React, { useContext } from 'react' import { ThemeContext } from '../contexts/ThemeContext' import { BookContext } from '../contexts/BookContext' const BookList = () => { // Load context const context = useContext(ThemeContext) const { isLightTheme, light, dark } = context const books = useContext(BookC...
import React, { useContext } from 'react' import Styled from 'styled-components' import { SearchContext } from '../contexts/SearchContext' // This component to render info for each artist the user selects from the search bar const SelectedItem = ({ item }) => { const { search, dispatch } = useContext(SearchContext)...
analytics.factory('agendaService', function ($http, moment) { // Internal variables used by the service for having a state. These are reset by the method resetState(). var agendaService = {}; var date; var endTime; var agenda = []; var attendees; var name = ""; var description = ""; ...
var ExamAnswer = React.createClass({ render(){ var answers = this.props.answers.map((answer) => { return( <ExamAnswerList answer={answer} /> ) }); return( <ol> {answers} </ol> ) } })
import { config } from 'dotenv'; import express from 'express'; import countryTrendRouter from './src/routers/country-trends'; import errorHandler from './src/middleware/errorHandler'; config(); const PORT = process.env.PORT || 8080; const URI = process.env.URI || 'http://127.0.0.1'; const app = express(); app.use(...
export const getPlayers = (state) => { if (state.firestore.data._users === undefined) { return undefined; } return Object.keys(state.firestore.data._users || []) .map((userId) => { const user = state.firestore.data._users[userId]; return { id: user.id, name: user.name, ...
export default function validateCreateLink({ description, url }) { let errors = {} // Description Errors if (!description) { errors.description = 'Description required' } else if (description.length < 10) { errors.description = 'Description must be at least 10 characters' } // Url Errors if (!ur...
import React from 'react' import PropTypes from 'prop-types' import BigNumber from 'bignumber.js' import { omit } from 'lodash' import { toBigNumber } from 'Utilities/convert' import { tag as tagPropType, numberish } from 'Utilities/propTypes' import Expandable from 'Components/Expandable' class Units extends React.C...
import React, {Component} from 'react'; import './WeatherTomorrow.css'; const toCelsius = require('../../../utils/toCelsius'); class WeatherTomorrow extends Component { constructor(props) { super(props); } render() { if (this.props.tomorrow !== undefined) { return (<div className="...
/* Copyright (c) 2020 Red Hat, Inc. */ /// <reference types="cypress" /> import { test_genericPolicyGovernance, test_applyPolicyYAML } from '../common/tests' describe('RHACM4K-1724 - GRC UI: [P1][Sev1][policy-grc] Pod policy governance', () => { test_genericPolicyGovernance('Pod_governance/policy-config.yaml', 'Po...
const { Tab, Company } = require('../models') module.exports = app => { app.get('/tab/:company', (req, res) => { Tab.find({company: req.params.company}) .populate('company') .populate('items') .then(tab => res.json(tab)) .catch(e => console.log(e)) }) ...
'user strict' module.exports = (sequelize, DataTypes) => { const Trigger = sequelize.define('trigger', { name: { type: DataTypes.STRING, required: true }, termA: { type: DataTypes.STRING, required: true }, termB: { type: DataTypes.STRING, required: true }, ...
$(document).ready(function () { $(".Modern-Slider").slick({ autoplay: true, autoplaySpeed: 6500, speed: 500, slidesToShow: 1, slidesToScroll: 1, pauseOnHover: false, dots: true, cssEase: "ease-out", waitForAnimate: false, fade: true, draggable: false, prevArrow: false, ...
import React from 'react' import { NavLink } from 'react-router-dom'; import web from "../src/images/img8.png" import Common from './Common'; const About = () => { return ( <> <Common name="Welcomme to About Page of" imgsrc={web} visit="/contact" ...
const reducer = (state = [], action) => { switch (action.type) { case 'SET_USERS': return action.data; default: return state; } }; export const setUsers = (users) => { return async (dispatch) => { dispatch({ type: 'SET_USERS', data: us...
import axios from 'axios' import { CATEGORIES } from './__types' export default () => async dispatch => { try { const response = await axios.get('https://turing-ecommerce-challenge.herokuapp.com/api/categories') // console.log(response) dispatch({ type: CATEGORIES, p...
var express = require("express"); var app = express(); var bodyParser = require("body-parser"); app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); app.use(express.static(__dirname + "/public")); var server = app.listen(process.env.PORT || '8080',() => {console.log("App Listening for ...
import console from 'console' import sample from './sample.json' import Delta from 'quill-delta' import 'react-quill/dist/quill.snow.css'; import 'react-quill/dist/quill.bubble.css'; const ReactQuill = typeof window === 'object' ? require('react-quill') : () => false; export default class Editor extends React.Compone...
import { FaTag } from "react-icons/fa"; export default { name: "tag", title: "Tags", type: "document", icon: FaTag, fields: [ { name: "title", title: "Title", type: "string" }, { name: "slug", title: "Slug", type: "slug", options: { source: "title...
OC.L10N.register( "files_external", { "Step 2 failed. Exception: %s" : "ຂັ້ນຕອນທີ 2 ລົ້ມເຫລວ. ຂໍ້​ຍົກ​ເວັ້ນ: %s", "Error verifying OAuth2 Code for " : "ຂໍ້ຜິດພາດຢືນຢັນລະຫັດ OAuth2 ສໍາລັບ", "Personal" : "ສ່ວນບຸກຄົນ" }, "nplurals=1; plural=0;");