text
stringlengths
2
1.04M
var pixelix = pixelix | {}; pixelix = { ws: {} }; pixelix.ws.getLogLevelStr = function(logLevel) { var str = ""; switch(logLevel) { case 0: str = "INFO"; break; case 1: str = "WARNING"; break; case 2: str = "ERROR"; break; case 3: ...
/*** * Copyright (C) Rodolfo Herrera Hernandez. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root * for full license information. * * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ * * For related information - https://...
$(document).ready(function() { $('.button-collapse').sideNav(); $('.select').material_select(); $('.datepicker').pickadate({ format: 'dd-mm-yyyy', }); tinymce.init({ selector: '#deskripsi', plugins:'advlist autolink link lists charmap print preview' }); });
module.exports = { moduleFileExtensions: ["ts", "tsx", "js"], testRegex: "\\.(test|spec)\\.tsx?$", transform: { "\\.(js|jsx|ts|tsx)$": "ts-jest", }, transformIgnorePatterns: ["/node_modules/(?!(lodash-es|@foundry|@workshop|@palantir|@acme|@gotham|@tron)/)"], globals: { "ts-jest": { tsConfigFil...
"use strict"; const path = require( "path" ); const walkSync = require( "walk-sync" ); const requireFromCWD = require( "./require-from-cwd" ); const requireQUnit = require( "./require-qunit" ); const utils = require( "./utils" ); const IGNORED_GLOBS = [ "**/node_modules/**" ]; const RESTART_DEBOUNCE_LENGTH = 200; ...
import { Component, Element, Prop, Host, Event, h, Listen } from "@stencil/core"; import { inRange, sameDate, dateFromRange } from "../../utils/date"; import { getKey } from "../../utils/key"; import { getElementDir } from "../../utils/dom"; export class CalciteDatePickerMonth { constructor() { /** Date currently...
var app = (function() { var loadIcon = $('#loader'), viewContainer = $('#viewContainer'), offScreenNav = $('#effeckt-off-screen-nav'), modalViewWrap = $('#effeckt-modal-wrap'), modalViewListContainer = $('#modalViewListContainer'), topcoatListTpl = Handlebars.compile($('#top...
/** * * Reset the device by clearing the device un- and reinstalling app package (if existing). * * <example> :resetApp.js browser.reset() * </example> * * @see https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/appium-bindings.md#reset * @type mobile * @for android * */ ex...
/** * Yapily API * To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) * * The version of the OpenAPI document: 1.154.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://...
/* global __dirname, module, require */ const path = require('path'); const webpack = require('webpack'); const GenerateJsonPlugin = require('generate-json-webpack-plugin'); // Addon directory const dest_dir = path.resolve(__dirname, 'addon'); // Make manifest.json out of package.json information const package = re...
// See https://docusaurus.io/docs/site-config for all the possible // site configuration options. const wallets = [ { name: 'Uphold', image: 'uphold_logo.svg', link: 'https://www.uphold.com/signup' }, { name: 'Gatehub', image: 'gatehub_logo.svg', link: 'https://gatehub.net' }, { n...
var createTextGeometry = require('three-bmfont-text'); var loadBMFont = require('load-bmfont'); var registerComponent = require('../core/component').registerComponent; var coreShader = require('../core/shader'); var THREE = require('../lib/three'); var utils = require('../utils/'); var error = utils.debug('components...
import React from "react" const IndexPage = () => ( <> <div class="content nickreid-logo"> <h1 class="nickreid-picture"> <em>Hello!</em>&nbsp; My name is Nick Reid </h1> <p> I'm a PhD student in <a href="http://bime.uw.edu/"> Biomedical Informatics and Medical Education ...
import React from 'react'; import PropTypes from 'prop-types'; import cookie from 'react-cookies'; import moment from 'moment'; import { gettext, siteRoot, username, isDocs } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '../../utils/utils'; import collabServe...
const mongoose = require("mongoose"); const prospectSetSchema = new mongoose.Schema({ prospectName: { type: String, required: true }, demographic: { type: String, required: true }, source: { type: String, required: true }, addedBy: { type: String, required: true }, dateAdded: { type: Date, ...
import React from 'react'; import {useQuery} from '@apollo/client'; import ReactMarkdown from 'react-markdown'; import {format} from 'date-fns'; import styled from 'styled-components'; import {IS_LOGGED_IN} from '../gql/query'; import NoteUser from './NoteUser'; const StyledNote = styled.article` max-width: 800px; m...
module.exports = function (router) { router.get('/:section', require('./index')); };
require('babel-register'); const express = require('express'); const session = require('express-session'); const path = require("path")//NODE const http = require('http')//NODE const fs = require('fs')//NODE const MongoStore = require('connect-mongo')(session); const mongoose = require('mongoose') const app = express()...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
/** * Loads a Wavefront .obj file with materials * * @author mrdoob / http://mrdoob.com/ * @author angelxuanchang */ THREE.OBJMTLLoader = function ( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; }; THREE.OBJMTLLoader.prototype = { constructor: THREE.OBJMTLLoad...
frappe.ui.form.ControlHTMLEditor = frappe.ui.form.ControlMarkdownEditor.extend({ editor_class: 'html', set_language() { this.df.options = 'HTML'; this._super(); }, update_preview() { if (!this.markdown_preview) return; let value = this.get_value() || ''; value = frappe.dom.remove_script_and_style(value); ...
'use strict' const reduce = require('lodash.reduce') const normalize = require('./normalize') function getItem (item) { const normalizedItem = normalize(item) const {name, image, link} = normalizedItem const price = normalizedItem.newPrice || normalizedItem.price if (!price) return const title = `${name} €...
const mongoose = require('mongoose') const schema = new mongoose.Schema({ name: { type: String }, items: [{ image: { type: String }, url: { type: String } }], }) module.exports = mongoose.model('Ad', schema)
const axios = require('axios'); const Dev = require('../models/Dev'); const str2array = require('./utils/str2array'); const { findConnections, sendMessage } = require('../websocket'); /** * Query params: req.query * Route params: req.params * Body: req.body */ module.exports = { async index(req, res) { ...
export const status_params = { success: { svg: '<path class="check" d="M101.4 42L52.7 90.6 31 69.3" />', title: 'Operazione completata', mes: null, ok_btn_text: 'OK', title_class: 'text-success', ok_btn_class: 'btn-success', timer: 4000 }, error: { svg: '<path d="M35 39L96.4 ...
const eeui = app.requireModule('eeui') const stream = app.requireModule('stream') // import MD5 from 'blueimp-md5' // 可以引入npm包,当你需要时 import apiList from './api/apis.js' // root-api const API_BaseUrl = 'http://app.asyke.com' //const API_BaseUrl = 'http://app.zruup.com.cn' const API_OssUrl = 'http://ueditor-upload.oss-...
import {FiChevronDown, FiChevronUp} from "react-icons/fi"; import {useState} from "react"; function HeadColumn(props) { const { col, sortedRows } = props; const [orderBy, setOrderBy] = useState(0); const orderOptions = ['asc', 'desc']; const sortRows = () => { if(col.sort...
import Tracker from 'trackr'; import EJSON from 'ejson'; import _ from 'underscore'; import Data from './Data'; import Random from '../lib/Random'; import call from './Call'; import { isPlainObject } from "../lib/utils.js"; class Cursor { constructor(collection, docs) { this._docs = docs || [ ]; this._colle...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
import axios from 'axios' import { apiBaseUrl } from '../config' import { Message, MessageBox } from 'element-ui' import store from '../store' import { getToken } from './auth' // Create axios instance const service = axios.create({ // baseURL: process.env.BASE_API, // api of base_url baseURL: apiBaseUrl, timeou...
import { types } from "../constants/action-types"; var initialState = { zoom: 1, showProgress: true, showLabels: true, showConnections: true }; export default function (state = initialState, action) { switch (action.type) { case types.SET_ZOOM: { return Object.assign({}, state,...
/* * Copyright (C) 2017 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
module.exports = { "extends": "airbnb", "parser": "babel-eslint", "parserOptions": { "sourceType": "module", "allowImportExportEverywhere": false }, "rules": { "comma-dangle": ["error", { "arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multil...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); require("babel-core/register"); var app = express(); // view engine setup app.set('views', path.j...
let csrf = ''; // Cache for current csrf token // Gets a new csrf token from the server const getToken = (callback) => { sendRequest('GET', '/getToken', null, (result) => { callback(result.csrfToken); }); }; const handleError = (message) => { const errorDisplay = document.querySelector('#error-dis...
export default { version: "2.2.0", steps: [ { titleIcon: "fa fa-map-o", title: { "en-US": "Welcome to Node-RED 2.2!", "ja": "Node-RED 2.2へようこそ!" }, description: { "en-US": "Let's take a moment to discover the...
module.exports = async function (scriptwriter) { const { client } = scriptwriter.company; await Promise.all([ client.send('Accessibility.enable'), client.send('Runtime.enable'), client.send('DOM.enable'), ]); scriptwriter.emit('ready', 'client'); };
import Transitions from "./transitions"; import Modals from "./modals"; export function initialize(container) { container.register('transitions:map', Transitions); ['outlet', 'with', 'if'].forEach(function(viewName) { container.injection('view:liquid-' + viewName, 'transitions', 'transitions:map'); }); c...
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_Pages_Admin_Applications_ShowTerms_vue"],{ /***/ "./node_modules/@headlessui/vue/dist/headlessui.esm.js": /*!*************************************************************!*\ !*** ./node_modules/@headlessui/vue/dist/headlessui.esm.js ***! \***...
import axios from "axios"; export default async function rest(url) { const res = await axios.get(`http://localhost:1337/${url}`); return res.data; }
import { expect } from 'chai'; import sinon from 'sinon'; import { ipcRenderer } from 'electron'; describe('/renderer/li/webview-preload', () => { const sandbox = sinon.createSandbox(); let originalNotification; beforeEach(() => { originalNotification = sinon.stub(); window.Notification = originalNotifi...
/* istanbul ignore file */ import {httpGETRequest, httpPOSTRequest,httpPOSTRequestWithoutToken} from "../httpRequestHandler"; import API from "../endpoints"; import { setApplicationListByFormId, serviceActionError, setApplicationList, setApplicationDetail, setApplicationDetailLoader, setApplicationProcess, ...
import { readFileSync } from 'fs'; import module from 'module'; import { extname } from 'path'; import { fileURLToPath } from 'url'; /** @type {Map<string, { content: string; type: string;}>} */ const packageContent = new Map(); /** * @param {string} id * @param {string} relativeTo */ export function requireConten...
var searchData= [ ['description_3',['description',['../structmtb__radar__sensing__event__info__t.html#a38f7e5feb87c65dbe0f0ae226b531d6b',1,'mtb_radar_sensing_event_info_t::description()'],['../structmtb__radar__sensing__presence__event__info__t.html#a5d0eda69bfaee239bb336b1416a9d1c6',1,'mtb_radar_sensing_presence_eve...
/* Simple app tests with ava. */ import test from 'ava'; // import request from 'supertest'; import server from '../app'; import routes from '../config/routes'; // const app = server(); // test.beforeEach((t) => { // t.context.server = server; // }); test('did the app load', (t) => { t.truthy(server, 'Hapi ser...
import { popupAjaxError } from "discourse/lib/ajax-error"; export default Ember.Controller.extend({ actions: { cancelProduct() { this.transitionToRoute("adminPlugins.discourse-subscriptions.products"); }, createProduct() { this.get("model.product") .save() .then(product => { ...
import React from "react" import FeaturedProduct from "../../components/individualProductPage/FeaturedProduct" import Layout from "../../components/Layout" import styled from "styled-components" import RequestDemoForm from "../../components/individualProductPage/RequestDemoForm" import StealBackground from "../../compo...
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var fp=require("lodash/fp");const mapWith=fp.curry((e,p)=>p.map(e)),lens=(e,p)=>r=>{const s=fp.compose(r,e);return e=>mapWith(r=>p(r,e),s(e))},mapConst=e=>({value:e,map:function(){return this}}),mapIdentity=e=>({value:e,map:p=>mapIdentity(p(e))}),view=...
module.exports = function(grunt) { // Change these local settings var project_name = "new_project_grunt-bower"; // Name of the project - for notifications var localhost = "http://localhost/" + project_name + "/build/"; // Define if your using a server, default = project_name var root_project_name = "/" + proje...
const merge = require('deepmerge'); const { isDependency } = require('@aduth/is-dependency'); const jsdoc = require('./jsdoc.js'); const prettier = require('./prettier.js'); const typescript = require('./typescript.js'); module.exports = [jsdoc, prettier, typescript].reduce( (result, { dependencies, config }) => is...
/** * Kendo UI v2016.2.607 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
goog.provide("goog.net.XhrIoPool"); goog.require("goog.net.XhrIo"); goog.require("goog.structs.PriorityPool"); goog.requireType("goog.structs.Map"); goog.net.XhrIoPool = function(opt_headers, opt_minCount, opt_maxCount, opt_withCredentials) { this.headers_ = opt_headers; this.withCredentials_ = !!opt_withCredential...
//GENERATE SHORT NEWS BLOCK let render_short_news_block = (blockForRenderId, type = 'render') => { let xmlhttp = new XMLHttpRequest(); let formData2 = new FormData(); xmlhttp.open("POST", "/Landing/GetShortNews", true); xmlhttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); formData2.app...
/* jshint node: true */ var path = require('path'), envModule; module.exports = function(environment) { var ENV = { modulePrefix: 'scrapeconfig-ui', environment: environment, baseURL: '/', locationType: 'hash', contentSecurityPolicy: { 'default-src': "'none'...
/* Czech translation for the jQuery Timepicker Addon */ /* Written by Ondřej Vodáček */ (function($) { $.timepicker.regional['cs'] = { timeOnlyTitle: 'Vyberte čas', timeText: 'Čas', hourText: 'Hodiny', minuteText: 'Minuty', secondText: 'Vteřiny', millisecText: 'Milisekundy', timezoneText: 'Časo...
import { getApolloClient } from './utils'; Cypress.Commands.add('disableSmoothScroll', () => { return cy.document().then((document) => { const node = document.createElement('style'); node.innerHTML = 'html { scroll-behavior: auto !important;}'; document.body.appendChild(node); }); }); Cypress.Comman...
/*eslint no-console: 0, no-unused-vars: 0, no-undef: 0, no-shadow: 0*/ "use strict"; var hdb = require("@sap/hdbext"); var xsenv = require("@sap/xsenv"); var async = require("async"); var hanaOptions = xsenv.getServices({ hana: { tag: "hana" } }); var pool = hdb.getPool(hanaOptions.hana); module.exports = { callHA...
const Generator = require("yeoman-generator"); const capitalise = reqiure("../../utils/capitalise"); module.exports = class extends Generator { constructor(args, opts) { super(args, opts); this.argument("component-name", { type: String, required: false }); } async prompting() { t...
const N = require("../web-components/base-node").default; class CSSFilterElement extends N { static get type() { return N.SCREEN; } static get inputs() { return [ { name: "chain-id", observe: true, defaultValue: "", restrict: String }, { name: "selector", observe: true, defa...
require("dotenv").config(); const { QuickTwitchBot } = require("quick-chat-bot"); const path = require("path"); const twitchBot = new QuickTwitchBot({ username: "robo0NEGUY", password: process.env.TWITCH_OAUTH, channel: "0neguy", commandsDir: path.join(__dirname, "commands"), }); twitchBot.connect();
export const HeadPost = ({ meta, isBlogPost }) => ( <> <img src={meta.image}></img> <h1 className={isBlogPost? 'great-title' :null} >{meta.title}</h1> <div className='details'> { isBlogPost? null: <p>{meta.description}</p> } <span>{meta.date}</span> <span ro...
(function( $ ) { 'use strict'; /** * All of the code for your public-facing JavaScript source * should reside in this file. * * Note: It has been assumed you will write jQuery code here, so the * $ function reference has been prepared for usage within the scope * of this function....
import { applyMiddleware, createStore } from 'redux'; import thunk from 'redux-thunk'; import createReducer from './reducers'; export default function configureStore(initialState) { const store = createStore( createReducer(), initialState, applyMiddleware(thunk), ); if (module.hot) { module.hot....
import React from 'react' import { StaticQuery, graphql } from 'gatsby' import styled from '@emotion/styled' import Link from './link' import config from '../../config' import './styles.css' const forcedNavOrder = config.sidebar.forcedNavOrder const Sidebar = styled('aside')` width: 100%; background-color: #ff...
'use strict'; const gulp = tars.packages.gulp; const cache = tars.packages.cache; const changed = tars.packages.changed; const plumber = tars.packages.plumber; const notifier = tars.helpers.notifier; const imagesPath = `${tars.config.fs.staticFolderName}/${tars.config.fs.imagesFolderName}`; /** * Raster SVG-files (...
'use strict'; describe('Thermostat', function() { var thermostat; var temperature; beforeEach(function(){ thermostat = new Thermostat(); }); describe('defaults', function() { it('temperature of 20deg', function() { thermostat.currentTemp(0); expect(thermostat.temperature).toEqual(20); ...
/** * @license * Copyright 2012 Google Inc. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
import { By, until } from 'selenium-webdriver'; export default function minNumActivitiesShown(numActivities) { return until.elementLocated(By.css(`[role="listitem"]:nth-child(${numActivities})`)); }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withHeaders = function (requestFactory, overrideHeaders) { return function (path, query, body, formData, headers, method, configuration) { var headersObject = new Headers(headers || {}); new Headers(overrideHeaders)...
export * from './collection.js'; import './permissions.js'; import './views.js';
const ngxWallabyJest = require('ngx-wallaby-jest'); module.exports = (wallaby) => { return { files: [ 'src/**/*.+(ts|html|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', '!src/**/*.spec.ts', ], tests: ['src/**/*.spec.ts'], env: { type: 'n...
import React, { PropTypes } from 'react' import { StyleSheet } from 'elementum' import MaskedInput from 'react-maskedinput' const styles = StyleSheet.create({ self: { width: '100%', height: '32px', boxSizing: 'border-box', background: 'transparent', boxShadow: 'none', border: '1px solid #e5e5...
import { updateDataAsync } from '../../actions/nested-list'; /* eslint-disable import/prefer-default-export */ export const mapDispatchToProps = { updateData: updateDataAsync };
const _user = [{ "first_name": "admin", "email": "admin@admin.com" }] const getAll = () => { return _user; }; const get = id => { return _user.find(item => item.id === id); }; const create = (data) => { _user.push(data); }; const update = (old, data) => { var foundIndex = _user.findIndex(item => it...
(function (root) { 'use strict'; /* name: simple-jsonrpc-js version: 1.0.0 */ var _Promise = Promise; if (typeof _Promise === 'undefined') { _Promise = root.Promise; } if (_Promise === undefined) { throw 'Promise is not supported! Use latest version node/browser ...
(function() { var fn = function() { (function(root) { function now() { return new Date(); } var force = false; if (typeof root._bokeh_onload_callbacks === "undefined" || force === true) { root._bokeh_onload_callbacks = []; root._bokeh_is_loading = und...
module.exports = { env: { browser: true, node: true, }, extends: [require.resolve('tsjs/eslint-config')], parserOptions: { project: 'tsconfig.eslint.json', tsconfigRootDir: __dirname, sourceType: 'module', }, overrides: [ { files: ['**/...
import Grid from '@material-ui/core/Grid'; import React from 'react'; import TypographyWithIcon from '../Components/Helpers/TypographyWithIcon'; import OurListItem from '../Components/Items/OurListItem'; export function getParentHeightWidth() { var height = window.innerHeight; var width = window.innerWidth; if (...
(function () { 'use strict'; angular.module('BlurAdmin.theme') .directive('lineChart1', lineChart1); function lineChart1($window) { return { restrict: 'A', link: function ($scope, element, attrs) { //attrs是DOM元素的属性集合 var myChart = echarts.init(elemen...
'use strict'; let myForm = document.getElementById('myForm'); let myTable = document.getElementById('myTable'); let tBody = document.getElementById('tBody') let orders = document.getElementById('orders'); let mainArr = []; function Food(userName,foodType){ this.userName=userName; this.foodType=foodType; m...
const token = require('../../token.json'); const DBL = require('dblapi.js'); const { MessageEmbed } = require("discord.js"); module.exports = { name: "bot", description: "get info about a bot!", category: "fun", usage: "`bot [mention/id]`", run: async (bot, message, args, userinfo) => { let dbl = new DB...
// Babylon import * as BABYLON from "@babylonjs/core/Legacy/legacy"; import { GridMaterial } from "@babylonjs/materials"; import { FireMaterial } from "@babylonjs/materials"; import { WaterMaterial } from "@babylonjs/materials"; import "@babylonjs/loaders/glTF"; import * as GUI from "@babylonjs/gui"; // Physics impor...
// string const name = 'fred' const anotherName = "Jim" const yetAnotherName = `Mary and ${name}` // number const age = 18 const Zipcode = '87109' const cars = ['ford','dodge', 'toyota'] const empty = [] console.log(cars[0]) console.log(cars[2]) // Object ....JSON const person = {name: 'Fred', age: 18}
export const AND = 'AND' export const OR = 'OR'
const { NotImplementedError } = require('../extensions/index.js'); /** * Given matrix where you have to find cats by ears "^^" * * @param {Array<Array>} matrix * @return {Number} count of cats found * * @example * countCats([ * [0, 1, '^^'], * [0, '^^', 2], * ['^^', 1, 2] * ]) => 3` * */ function coun...
module.exports = /* * Generated by PEG.js 0.10.0. * * http://pegjs.org/ */ (function() { "use strict"; function peg$subclass(child, parent) { function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); } function peg$SyntaxError(message, expec...
const { dbURL } = require('../../config.json'); const Logger = require('../util/Logger'); const path = require('path'); const readdir = require('util').promisify(require('fs').readdir); const Sequelize = require('sequelize'); const db = new Sequelize(dbURL, { logging: false }); class Database { static get db() { r...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'indent', 'id', { indent: 'Tingkatkan Lekuk', outdent: 'Kurangi Lekuk' });
"use strict"; const Hapi = require('hapi'); const Wreck = require('wreck'); const server = new Hapi.Server({ port: 3000 }); const handler = (request, h) => { return "Order API"; }; server.route({ method: 'GET', path: '/', handler }); server .start() .then(() => { console.log(`Ser...
define( "dijit/_editor/nls/zh/FontChoice", //begin v1.x content ({ fontSize: "大小", fontName: "字体", formatBlock: "格式", serif: "有衬线", "sans-serif": "无衬线", monospace: "等宽字体", cursive: "草书", fantasy: "虚线", noFormat: "无", p: "段落", h1: "标题", h2: "子标题", h3: "二级子标题", pre: "预设有格式的", 1: "XXS 号", 2: "XS 号", 3:...
'use strict' const merge = require('webpack-merge') const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', BASE_API: '"http://devapi.isouth.com:8080/"', })
var BijeloPolje = Pljevlja = Podgorica = Kotor = Niksic = Cetinje = HercegNovi = Tivat = Bar = Budva = Ulcinj = HercegNovi2 = Plav = Danilovgrad = Mojkovac = Pluzine = Andrijevica = Berane = Rozaje = Zabljak = Kolasin = Savnik = var spisakOpstina = { Andrijevica: Andrijevica...
'use strict'; function D3_RadialTidyTree(selector, aProps) { var svg = d3.select(selector); if (svg.empty() == true) { console.log('D3RadialTidyTree: Could not identify element based on selector: '+selector); return; } svg.style("height","auto"); var nSvgWidth = svg.node().getBoundingClientRect().width; ...
import { Link } from "react-router-dom"; import Listing from "../components/Listing"; import './homePage.css'; import data from "../Data.json"; export default function HomePage() { return ( <div className="listingList"> {data.listings.map(({ id, image, name, price, stocked }) => { return ( ...
import MockAdapter from 'axios-mock-adapter'; import Api from '~/api'; import axios from '~/lib/utils/axios_utils'; import httpStatus from '~/lib/utils/http_status'; describe('Api', () => { const dummyApiVersion = 'v3000'; const dummyUrlRoot = '/gitlab'; const dummyGon = { api_version: dummyApiVersion, r...
module.exports = { entry: [ './src/index.js' ], output: { path: __dirname, publicPath: '/', filename: 'bundle.js' }, module: { loaders: [{ test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader' } }] } };
/*global define*/ define([ '../Core/Color', '../Core/defined', '../Core/defineProperties', '../Core/DeveloperError', '../Scene/Material' ], function( Color, defined, defineProperties, DeveloperError, Material) { 'use strict'; /...
ace.config.setModuleUrl('ace/ext/beautify', require('file-loader!./src-noconflict/ext-beautify.js')) ace.config.setModuleUrl('ace/ext/elastic_tabstops_lite', require('file-loader!./src-noconflict/ext-elastic_tabstops_lite.js')) ace.config.setModuleUrl('ace/ext/emmet', require('file-loader!./src-noconflict/ext-emmet.js'...
/*! * ${copyright} */ /** * Helper functionality for table, list and tree controls for the Support Tool infrastructure. */ sap.ui.define(["sap/ui/support/library", "sap/base/Log"], function(SupportLib, Log) { "use strict"; // shortcuts var Audiences = SupportLib.Audiences, // Control, Internal, Application C...
/** * NOTE: This file must be run with babel-node as Node is not yet compatible * with all of ES6 and we also use JSX. */ import url from 'url'; import React from 'react'; import express from 'express'; import webpack from 'webpack'; import { renderToStaticMarkup } from 'react-dom/server'; import config from './web...