text
stringlengths
7
3.69M
/* * theadFixer * * https://github.com/Mystist/theadFixer * * Copyright (c) 2013 Foundation and other contributors * * License: https://github.com/Mystist/theadFixer/blob/master/MIT-LICENSE.txt * */ (function($) { var methods = { init: function(options) { var defaults = { "bindResize":...
const TelegramClass = function (name,desc,members) { this.name = name; this.desc = desc; this.members = members; this.members.sort( (a,b) => { if (a.optional && !b.optional) { return 1; } else if (!a.optional && b.optional) { return -1; } else { ...
const mongoClient = require("mongodb").MongoClient const connectionUrl = " mongodb://127.0.0.1:27017" const dbName = "animalfarm" mongoClient.connect(connectionUrl, {useUnifiedTopology: true}, (error, client) => { if(error){ throw "Error connecting to mongodb" + error } const animalFarm = client....
import React, { useEffect, useCallback, useRef } from 'react'; import Swiper from 'swiper'; import { useDispatch, useSelector } from 'react-redux'; import { requsetGoodList, goodListSelector } from '../../store/Good/Good'; import './style.scss'; let IScroll = window.IScroll; const GoodBanner = function(props) { ...
import Koa from 'koa'; import Router from 'koa-router'; import jwt from 'jsonwebtoken'; import config from 'config'; const app = new Koa(); const router = new Router(); router.post('/', (ctx, next) => { const { email, password } = ctx.request.body; if (email === 'admin' && password === 'password') { const sec...
export const Numero = (props) => { const { numero } = props; return <input type="number" value={numero} readOnly />; };
var name = 'Allegheny Elementary'; var students = ["Lorean Seybert", "Lowell Brumfield", "Vicki Hunley", "Karole Riley", "Doloris Steffy",   "Sharda Patel", "Elvira Bednar",   "Lyndia Peil", "Jesus Pennywell",  "Sanford Duffie", "Dana Jeon", "Janean Hodnett",   "Verna Hester", "Annette Keating", "Tatiana Sevilla",   "F...
import React from 'react'; import Logom from './immagini/logo_B2.png'; import classes from './Logo.module.css'; const logo = props => ( <div className={classes.Logo}> <img src={Logom} width="75%" alt="stemma_meldola"></img> </div> ) export default logo;
import React from 'react' import styles from '../hero.modules.css' import { DEEP_RED, RED, YELLOW, GREEN } from '../data/constants' const PositivityLegend = ({ x = 0, y = 0 }) => { const legendData = [ [GREEN, '<3% positivity rate'], [YELLOW, '3% - 5%'], [RED, '5% - 10%'], [DEEP_RED, '10% +'], ...
/** * @flow */ import * as path from 'path'; import * as rcUtil from '@esy-ocaml/esy-install/src/util/rc.js'; import {parse} from '@esy-ocaml/esy-install/src/lockfile'; type Rc = { 'esy-import-path': Array<string>, 'esy-prefix-path': ?string, }; export function getRcConfigForCwd(cwd: string): Rc { return rcU...
export const AMOUNT_MAX_LENGTH = 16; export const MIN_WIDTH_COLUMN_TH = 140;
$(document).ready(function(){ //counters and initial score var wins = 0; var losses = 0; var total = 0; //html gem grabbers var garnet = $("#garnet"); var amethyst = $("#amethyst"); var pearl = $("#pearl"); var pink = $("#pink_diamond"); //reset gem values var gar...
import React, { useEffect } from 'react' import { useTranslation } from 'next-i18next' import { clearCurrentCourse, setCurrentCourse } from '../../store/courses/reducer' import { clearLessons, setLessons } from '../../store/lesson/reducer' import { useDispatch, useSelector } from 'react-redux' import { getLessons } fro...
import { Meteor } from 'meteor/meteor'; import { Foods } from './foods'; Meteor.publish('foods.getListIfNotLoggedIn', function getListIfNotLoggedIn() { if (this.userId) { return this.ready(); } return Foods.find(); }); Meteor.publish('foods.getListIfLoggedIn', function getListIfLoggedIn() { if (!this.use...
// Default import fix var anime = require('animejs').default ? require('animejs').default : require('animejs'); function SideMenuAnimate(config) { var activeAnimation; var option = Object.assign( { }, { easing: 'easeInOutCubic', duration: 300, }, con...
import React from 'react'; import './App.css'; import Home from './componets/pages/Home'; import Services from './componets/pages/Services'; import Products from './componets/pages/Products'; import SignUp from './componets/pages/SignUp'; import Navbar from './componets/Navbar'; import { BrowserRouter as Router, Route,...
const insuranceItemReducer = (state = [], action) => { switch(action.type) { case 'ADD_INSURANCE_ITEM': return [...state, action.payload]; default: return state; } }; export default insuranceItemReducer;
function isVowel(char){ var vowel = false; switch(char) { case 'a': case 'e': case 'i': case 'o': case 'u': vowel = true; break; default: vowel = false; } return vowel; } function pigLatin(str){ var ay = "ay"; ...
const Main = (input) => { const tmp = input.split(' ') const a = tmp[0] const b = tmp[1] if (a * b % 2 === 0) { return 'Even' } else { return 'Odd' } } module.exports = Main
// @flow strict import PdfViewer from './src/PdfViewer'; export { default as PdfViewAndStore } from './src/PdfViewAndStore'; export default PdfViewer;
/** * Created by descombes on 16/03/17. */ loadZnetsConfiguration = function() { callAJAX('getConfig.json', '', 'json', displayZnetsConfiguration, null); } /*********************************************************************************/ displayZnetsConfiguration = function(json) { var formatter = ne...
import React from "react" import Layout from "../components/layout" import { graphql } from "gatsby" import SEO from "../components/seo" import Post from "../components/post" export default function BlogCategory({ data }) { // sorted by post length const categories = data.allWpCategory ? data.allWpCategory.nod...
import React from 'react'; import styles from '../styles/styles'; import { Text, Container } from 'native-base'; export default class Feedback extends React.Component { render() { return ( <Container style={styles.centerText}> <Text>TODO FEEDBACK COMPONENT</Text> </Container> ); } }
import Ember from 'ember'; import truncateDecimal from 'great-tipper/utils/truncate-decimal'; export default Ember.Component.extend({ tagName: 'button', classNames: ['btn', 'btn-primary'], mealCost: null, tipPercentage: null, // preset calculations for 15%, 18%, and 20% tips // automatic calculations for...
(function () { "use strict"; describe("AuthMgmtService", function () { // --------------------- // Testing setup // --------------------- var $httpBackend, $http, $log, $state, userService, service, defer, AlertsService, ApiService; ...
const assert = require('assert') const { Signature } = require('../../lib') describe('Test MySignature', () => { it(`Normal Test`, async () => { const appid = 'abcdefg' const secret = '123456' const signature = new Signature(secret, 600) const expires = signature.getExpires() const queryParams = ...
import React from "react"; const SearchBox = ({ value, onChange }) => { return ( <div className="search-container"> <div className="search-box"> <input type="text" name="query" className="" placeholder="search your favourite plant..." value={value} onChan...
import React, {useState, useEffect, useContext} from 'react'; import {Navbar, Nav, Button, Container, Modal, ModalTitle, ModalBody, Form} from 'react-bootstrap'; import {Link} from "react-router-dom"; import styled from "styled-components"; import ModalHeader from "react-bootstrap/ModalHeader"; import axios from "axios...
import React, { PureComponent } from 'react' import { Text, StyleSheet ,TouchableOpacity} from 'react-native' import { scale, width,colors } from '@/utils/device'; export default class LargeBtn extends PureComponent { render(){ return( <TouchableOpacity style={[styles.btn,this.props.btnStyle]} ac...
export class Card { constructor(data, template, userId, {handleCardClick, handleLikeClick, handleDeleteClick}) { this._name = data.name; this._link = data.link; this._likes = data.likes; this._cadrId = data._id; this._ownerId = data.owner._id; this._userId = userId; ...
services. service('PushNotificationService', ['$rootScope', '$state', '$cordovaPush', '$cordovaDialogs', '$cordovaMedia', '$cordovaToast', 'ionPlatform', 'Account', function ($rootScope, $state, $cordovaPush, $cordovaDialogs, $cordovaMedia, $cordovaToast, ionPlatform, Account) { var notifications = []; ...
import React from 'react'; import { Nav, Navbar, NavDropdown, Form, FormControl, Button, } from 'react-bootstrap'; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import { Link } from "react-router-dom"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { fa...
import React, { Component } from 'react'; import './App.css'; import { connect } from 'react-redux'; import SnackList from '../SnackList/SnackList'; import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; // import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/cor...
var s; var scl=10; var tuna; const SPEED = 20; function setup() { createCanvas(400, 400); s = new Snake(); frameRate(SPEED); pickLocation(); } function pickLocation(){ var cols = floor(width/scl); var rows = floor(height/scl); tuna = createVector(floor(random(cols)),floor(random(rows))); ...
import { loginout,login,cadastro } from "./login.js"; export function pag_home(){ var bt1 = window.document.getElementById("bt1"); var bt2 = window.document.getElementById("bt2"); bt1.addEventListener("click",login); bt2.addEventListener("click",cadastro); } export function pag_root(){ var bt3 =...
test('des01', () => { const alphabetGrec = [ 'α', 'β', 'γ', 'δ', 'ε' ] const alpha = alphabetGrec[0] const beta = alphabetGrec[1] console.log(alpha, beta) });
(function() { "use strict"; angular .module("vcas") .factory("ApiService", ApiService); /* @ngInject */ function ApiService($q, $http, AlertsService) { return { callEndpoint: callEndpoint, }; ////////// function callEndpoint (url, payload, errorMsg) { /** * Calls t...
// JavaScript Document $(function(){ var deviceWidth = document.documentElement.clientWidth; if(deviceWidth > 750) deviceWidth = 750; document.documentElement.style.fontSize = deviceWidth / 7.5 + 'px'; //年份 var day=new Date(); var d = day.getFullYear(); $(".nowtime").html(d); //点击显示导航 $(".zg_d...
const mongoose = require('mongoose'); const expensesSchema = new mongoose.Schema({ merchant: { type: String, minlength: [4, 'Merchant must be at least 4 characters.'], maxlength: [20, 'Merchant must be less than 20 characters.'], required: true }, total: { type: Stri...
'use strict'; /** * @ngdoc function * @name laoshiListApp.controller:LoginCtrl * @description * # LoginCtrl * Controller of the laoshiListApp */ angular.module('laoshiListApp') .controller('LoginCtrl', ['currentAuth', '$scope', 'firebasePath', '$location', 'Auth', function (currentAuth, $scope, firebasePath, $...
import Vue from 'vue' import VModal from '../src/index.js' import ModalAlert from './modal-alert.vue' import App from './app.vue' Vue.use(VModal, { register: { 'alert': ModalAlert, }, }) Vue.component('App', App) new Vue({ render: h => h('App') }).$mount('#app')
/*global describe:true, it:true, before:true, after:true */ 'use strict'; var _ = require('lodash'), demand = require('must'), fs = require('fs'), path = require('path'), redis = require('redis'), sinon = require('sinon') ; var Reflip = require('../index'); var testfile = path.join(__dirname, './m...
export const ADD_CARDS = 'ADD_CARDS'; export const ADD_TO_CART = 'ADD_TO_CART'; export const REMOVE_FROM_CART = 'REMOVE_FROM_CART';
import React from 'react'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import InputAdornment from '@material-ui/core/InputAdornment'; import TextField from '@material-ui/core/TextField'; import style from '../modules/root.module.css'; import Button from '@material-ui/core/But...
import React from 'react'; import Logo from 'images/logo_dash.svg'; const DashLogo = () => ( <span className="dash-logo"> <Logo /> </span> ); export default DashLogo;
/** * Utilities */ /* Methods -------------------------------------------------------------------*/ /** * Returns value for an exponential curve * @param {number} progress The p value for the curve * @param {number} start The start value for the curve * @param {number} end The end value for the curve * @return...
import React from 'react'; import {Layout} from "../Layout"; import {connect} from 'react-redux'; import {compose, lifecycle} from 'recompose'; import {getProfile} from "./store/action"; import {InfoAlert} from "../Alerts"; import { Button, Card, CardBody, CardText, Col, Row, } from 'reactstrap'; import { F...
import React from "react"; import "./instruction.css"; import Navbar from '../../components/Navbar' const instructionPage = ({ match }) => ( <div> <Navbar page="instructions"/> <div class="wrapper"> <br></br> <div class="half"> <div class="tab"> <input id="tab-one" type="checkbox" name="tab...
function TrelloAuthenticationRepository(){ return { apiKey: "08a27147750faeb03030d310b919258c", apiToken: "4439c681d1629b22c8c14a8f80052c9b950cf524e10b7c8d83a9a38150982eca" }; } module.exports = TrelloAuthenticationRepository;
import React, { Component } from 'react'; import { Text, View, Image, ListView, ScrollView, Dimensions, StyleSheet, } from 'react-native'; import { Tile, List, ListItem, Card, } from 'react-native-elements'; import GiftedSpinner from 'react-native-gifted-spinner'; import Swip...
import { BrowserRouter,Link, Route, Switch} from 'react-router-dom' import {Nav} from '../Nav/Nav' import Main from "../Main/main"; import About from "../About/about"; import ProductsList from "../Products/ProductsList"; import Product from "../Products/Product"; import Blog from "../Blog/Blog"; import MyForm from "../...
Ext.define('Samurai.store.UserStore', { extend: 'Ext.data.Store', model: 'Samurai.model.User', autoLoad: true, autoSync: true, proxy: { type: 'ajax', api: { read: 'User/GetUsers', update: 'User/Update' }, reader: { ty...
function validateForm() { var name = document.forms["contactForm"]["name"].value; var email = document.forms["contactForm"]["email"].value; var msg = document.forms["contactForm"]["message"].value; if (name == "") { alert("Please fill in your name."); return false; } if (email ==...
import React, { useEffect } from 'react' import { useMutation, gql } from '@apollo/client' import { useRouter } from 'next/router' import styled from 'styled-components' import { useMessages } from '../../context/useMessages' import RegisterForm from './RegisterForm' const MainLayout = styled.div` background: #f0f2f...
import React, {Component} from 'react'; import Header from "../Components/Header"; import TabComponents from "../Components/TabComponents"; import Footer from "../Components/Footer"; class Main extends Component { render() { return ( <> <Header/> <div style={cont...
import ImageService from "./image-service.js"; //Your ImageService is a global class what can you do here to instantiate it? let _imageService = new ImageService function draw(image) { document.getElementById("bg").style.backgroundImage = `url(${image.large_url})` } export default class ImageController { const...
//export appointment tablet module.exports = (sequelize,DataTypes) => { var Appointment = sequelize.define('Appointment', { reservation_date: { type: DataTypes.STRING, defaultValue: "", // allowNull: false, }, reservation_time: { type: DataTypes.STRING, // allowNull: false,...
import React from 'react'; import classNames from 'classnames'; import SignupForm from '../SignupForm/SignupForm'; import Translator from '../Translator/Translator'; import styles from './App.scss'; class App extends React.Component { state = { reordered: false, }; handleSignIn = () => { this.setState...
const dateOfBirth = document.querySelector("#date-of-birth"); const luckyNumber = document.querySelector("#lucky-number"); const checkButton = document.querySelector("#check-btn"); const outputBox = document.querySelector("#output-box") function luckyOrNot (sum , luckyNumber ) { if ( sum % luckyNumber === 0) { ...
'use strict' const http = require('http') , express = require('express') , app = express() , server = http.createServer(app); var count = 0; app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-Wit...
// the purpose of tor-manager is to buy the TOR router ASAP // so that another script can buy the port breakers. This script // dies a natural death once tor is bought. export async function main(ns) { const torCost = 200000; var hasTorRouter = false; while (true) { if (hasTorRouter) { ...
/* eslint-disable global-require */ /* eslint-disable promise/catch-or-return */ // import * as pdfjs from 'pdfjs-dist'; import { isWebApp } from './env'; export function findFileById(files, id) { for (let i = 0; i < files.length; i += 1) { // eslint-disable-next-line no-underscore-dangle if (files[i]._id =...
import './App.scss'; import Navigation from './components/navigation'; import { library } from '@fortawesome/fontawesome-svg-core'; import { faLinkedin } from '@fortawesome/free-brands-svg-icons'; import { faFacebook } from '@fortawesome/free-brands-svg-icons'; import { faTwitter } from '@fortawesome/free-brands-svg-ic...
let app = new Vue({ el: '#app', data: { message: 'Hi, Hello Vue World!' } }) let app2 = new Vue({ el: '#app-2', data: { message: '이 페이지는 ' + new Date() + '에 로드 되었습니다.' } }) let app3 = new Vue({ el: '#app-3', data: { seen: true } }) let app4 = new Vue({ ...
const validate = (validation,type, value) => { //debounce ; // let delta = 1000 // let timeoutID = null // clearTimeout(timeoutID) // timeoutID = setTimeout(() => { // return validation[type](value) // },delta) return validation[type](value) } const formValidation = { pwd : (value) => { }, use...
/* eslint-disable no-undef */ /* globals Cypress cy */ describe('CI test for blog pages', () => { // refactor with a beforeEach for cy.visit command it('should open the homepage and click on the blog1 link to display the correct url', () => { cy.visit(Cypress.env('HOST')); cy.get('[href="/blog/milestones"] ...
/** * Created by samschmid on 23.03.14. */ Array.prototype.contains = function(obj) { var i = this.length; while (i--) { if (this[i] === obj) { return true; } } return false; } function Database(grunt) { this.grunt = grunt; this.appconfig = grunt.config().appconfig...
import React from 'react'; import { Table, Popconfirm, Modal, Form, Input, InputNumber, Select, Button } from 'antd'; import { connect } from 'react-redux'; import dayjs from 'dayjs'; import BlankContent from 'src/layouts/BlankContent'; const formItemLayout = { labelCol: { span: 4 }, wrapperCol: { span: 12 }, }; ...
import React, { Component } from "react"; import { Link } from "react-router"; import Sound from "react-sound"; export default class Landing extends Component { constructor(props){ super(props); this.state = { logoHeight: 0, logoWidth: 0, fontSize: 32, x: 650, y: 250, opacity: 0, playSound: f...
const path = require('path'); const webpack = require('webpack'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const CleanPlugin = require('clean-webpack-plugin'); const CompressionPlugin = require('compression-webpack-plugin'); const HtmlPlugin = require('html-webpack-plugin'); const UglifyJsPl...
const submitBtn = document.querySelector('.container.left .search-action'); const form = document.querySelector('.container.left form'); const emailInput = document.querySelector('.container.left #email'); const roleInput = document.querySelector('.container.left select[name=role]'); MicroModal.init({ awaitCloseA...
export { removeRequests, removedToFalse, addRequest, addBudget, fetchRequests, fetchApproveRequests, fetchRejectRequests, removedToFalseRequest, fetchApproveBudget, fetchRejectBudget, fetchDriver, assingDriver, updateItems, onDismissAlert } from './requestActions'...
var j = replace; var i = j; console.log(i);
import React, { Component } from "react"; import coins from 'assets/coins.png'; import "./index.css"; export default class CoinFlip extends Component { constructor(props){ super(props) } render() { return ( <img src={coins} styleName={'coinflip-icon'}/> ); } }
const SERVER_URL= "http://unitechno.xyz:3000" module.exports= { SERVER_URL };
module.exports = app => { const { STRING, INTEGER, DATE } = app.Sequelize; const Invitation = app.model.define('invitations', { id: { type: INTEGER, primaryKey: true, autoIncrement: true }, code: STRING(10), user_id:STRING(100), use_user_id:STRING(100) },{ timestam...
import styled from 'styled-components'; const TitleEl = styled.h2` font-size: 2em; `; export { TitleEl };
const getTodoDetails = function () { return fetch('api/getTodoDetails') .then((res) => res.json()) .then((details) => JSON.parse(details)); }; const sendPostReq = function (url, body) { return fetch(url, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(body)...
var wins = 0; var loses = 0; var guessesLeft = 10; var guessesSoFar = []; var computerGuess = randomChar();; function randomChar() { var chosen = ""; var letter = "abcdefghijklmnopqrstuvwxyz"; for (var i = 0; i < 5; i++) { chosen += letter.charAt(Math.floor(Math.random() * lette...
export default class Response { status (status) { this.status = status return this } json (data) { return data } }
const express = require('express'); const router = express.Router(); const ProductController = require("../controllers/ProductController"); router.get("/", (req,res) => ProductController.index(req,res)); router.get("/add", (req,res) => ProductController.add(req,res)); router.get("/edit", (req,res) => ProductController...
'use strict'; var lineCount = 7; // Write a program that draws a // diamond like this: // // // * // *** // ***** // ******* // ***** // *** // * // // The diamond should have as many lines as lineCount is for (var i = 1; i <= lineCount; i++) { var j = lineCount-i; if (i >= lineCount/2+1) { ...
const express = require('express'); const app = express(); const morgan = require('morgan'); const bodyParser = require('body-parser'); const cookieParser = require('cookie-parser'); const expressValidator = require('express-validator'); require('dotenv').config(); // import mongoose const mongoose = require('mongoose...
'use strict'; var parseUrl = require('url').parse; var merge = require('lodash.merge'); module.exports = function assertUrl(url) { if (typeof url === 'string') { url = parseUrl(url); ['protocol', 'hostname'].forEach(function(param) { if (!url[param]) { throw new Error(...
const mongoose = require('mongoose'); const createSchema = mongoose.Schema({ image: { type: String, }, // file:{ data: Buffer, contentType: String }, link: { type: String, required: false, }, application_date: { type: String, required: false, }...
import React from "react"; import TaskCard from './TaskCard'; import {Droppable} from 'react-beautiful-dnd'; function List(props) { let tasks=props.tasks; let renderTasks = (tasks) => { let index=-1; return tasks.map((e) => { index=index+1; return ( <TaskCard ...
const https = require('https'); const agent = new https.Agent({ rejectUnauthorized: false }); module.exports = class RestfulAPI { constructor(clientID) { if (!clientID) throw new Error( 'Client ID Required for this Class to Properly Function. Please Visit: https://trovo.live/policy/apis-developer-d...
//REQUIRED FUNCTIONS IMPORT import React from 'react'; //COMPONENTS IMPORT import NavbarRouter from './NavbarRouter'; //STYLES IMPORT import './styles/App.scss'; import './styles/NavbarRouter.scss'; function App() { return ( <div className="App"> <NavbarRouter /> </div> ); } export default App;
const Transaction = require('../SharedCode/models/transaction'); const Blocks = require('../SharedCode/blockchain/blocks'); const transactionService = require('../SharedCode/service/transaction.service'); const queueService = require('../SharedCode/service/queue.service'); const { StatusTypes, TransactionStatus } = req...
export const ENV = { BASE_URL: 'http://localhost:3500/v1/', AUTH_KEY: 'id_token', APP_KEY: '1234567WE1WEW', USER_DATA: 'user_data', };
import React from 'react'; import womanImg from '../images/svg/pick-woman.svg'; import manImg from '../images/svg/pick-man.svg'; import babyImg from '../images/svg/pick-baby.svg'; import SectionTitle1 from './SectionTitle1'; import Tiles from './Tiles'; const OfferSection = ({ offerList }) => { const images = [woma...
let t = 'When' let m = 'Mickey Mouse gets punished by Mini Mouse and is vigalent just in case' let sound; function setup() { createCanvas(400, 400); sound = loadSound('assets/track 10.mp3'); } function mousePressed() { if (sound.isPlaying()) { sound.stop(); background(255, 0, 0); } else { sound...
const nodemailer = require('nodemailer') const crypto = require('crypto') require('dotenv').config() const Email = process.env.Email const Password = process.env.Password const transporter = nodemailer.createTransport({ service: 'gmail', auth: { user: Email, pass: Password, }, }) const ProgContest = req...
export { default as BooksList } from './BooksList' export { default as CategoriesList } from './CategoriesList'
var mongoose = require('../mongoose') var Comment = mongoose.model('Comment') var Article = mongoose.model('Article') var moment = require('moment') /** * 发布评论 * @method * @param {[type]} req [description] * @param {[type]} res [description] * @return {[type]} [description] */ exports.postComment = (req, re...
// @flow import * as React from 'react'; import { Translation } from '@kiwicom/mobile-localization'; import IconWithText from './IconWithText'; import { type InsuranceType } from './variantButtons/__generated__/VariantButtons.graphql'; type Props = {| +selectedVariant: InsuranceType, |}; const InsuranceSummary = ...
import Ember from 'ember'; export default Ember.Controller.extend({ position: 'current', });
var mongo = require('mongodb'); var Server = mongo.Server, Db = mongo.Db, BSON = mongo.BSONPure; var server = new Server('localhost', 27017, {auto_reconnect: true}); db = new Db('viddb', server, {safe: true}); db.open(function(err, db) { if(!err) { console.log("Connected to 'viddb' database"); ...
// // for pro : built version, use node to start // let config = require('./bin/config.js') // config.FileDir.root = __dirname || '/' // // let server = require('./bin/main.js') // server.start() // for dev : srouce version, use babel-node to start let config = require('./src/config/appconfig.js') config.FileDir.root ...
import Api from '@/services/Api' export default { getInstructionGuides(search){ return Api().get('instructionGuides', { params: { search:search } }) }, postInstructionGuides(instructionGuides){ return Api().post('instructionGuides', instructio...