text
stringlengths
7
3.69M
import React, { useState } from "react"; import Dashboardfooter from '../Layout/DashboardFooter'; import Dashboardheader from '../Layout/DashboardHeader'; import Dashboardsidebar from '../Layout/DashboardSideBar'; import images from "../../utils/ImageHelper"; import { compose } from "redux"; import { useFirebase, useFi...
var myApp = angular.module("webservice", ['ngResource']); myApp.constant("baseUrl", "http://angularkea.azurewebsites.net/api/Internships/") .controller("internshipsResourceController", ['$scope','$resource', 'baseUrl', '$stateParams', '$state', function($scope, $resource, baseUrl, $stateParams, $state) { ...
angular.module('ngApp.express').controller("ExpressManifestController", function ($scope, $uibModal, ModalService, SessionService, config, $window, AppSpinner, ExpressManifestService, DirectBookingService, $rootScope, toaster, ExpressShipmentService, $http, $translate) { //multilingual translation key var set...
Ext.define('Gvsu.modules.tender.model.BidModel', { extend: "Gvsu.modules.docs.model.OrgDocsModel" ,collection: 'gvsu_tenderbid' ,dirPrefix: 'bid-' ,fields: [{ name: '_id', type: 'ObjectID', exp: false, visable: true },{ name: 'pid', ...
var db = require("../models"); var passport = require("../config/passport"); module.exports = function(app) { app.post("/api/login", passport.authenticate("local"), function(req, res) { res.json(req.user); }); var settings = { "async": true, "crossDomain": true, "url": "GET https://api.yelp.com/v3/busi...
var tokki = angular.module("reportesController"); tokki.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){ $stateProvider .state('system.reportes.dtes', { url: "/dtes", templateUrl: "pages/reportes/dtes/dtes.html", ...
import React from 'react' import "./Show.css"; import { Avatar } from "@material-ui/core"; function Show({ profileSrc, text, description }) { return ( <div className="show"> <div className="services"> <div className="icon"> <Avatar className="show__avatar" src...
'use strict'; import React from 'react' import classNames from 'classnames' import styles from '../../css/components/header.css' export default class Header extends React.Component { render() { const header = classNames( styles.lHeader, styles.header ); return ( ...
import { RestService } from '../../services/rest'; import { serviceOptions } from '../../services/serviceOptions'; export function neoScan(options) { var inst = new RestService(); serviceOptions(inst, 'neoScan', options); inst.getCurrentBlockHeight = getCurrentBlockHeight; return inst; } function g...
define(['jquery', 'pubsub'], function ($, ps) { return { init: function (settings, events) { ps.sub(events.gamesCountCompleted, function (promise) { promise.success(function (data) { if (data.ErrorMessage === null) { $(document)....
'use strict'; var almost = {}; (function () { var wordlist = []; var request; var uInt16Range; var array; var data; var lines; var line; var words; var word; var pct; var c; var i; var j; almost.load = function (callback) { if (wordlist.length > 0) { // It's already loaded ...
(function () { 'use strict'; angular.module('events.admin') .directive('manageUsers', userMgmtDirective); function userMgmtDirective () { UserMgmtDirectiveCtrl.$inject = ['$scope', '$log', 'ManageUserService', '$uibModal', 'SubscribeEventService']; return { restrict: '...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var cloned; var p = 0; // load XML file function loadStates() { initialize(); $.ajax({ type: "POST", url: "/S...
import $ from '$'; import _ from 'underscore'; class HAWCModal { constructor(){ // singleton modal instance var $modalDiv = $('#hawcModal'); if ($modalDiv.length === 0){ $modalDiv = $('<div id="hawcModal" class="modal hide fade" tabindex="-1" role="dialog" data-backdrop="stati...
'use strict'; var $ = require('jquery'); var _ = require('underscore'); var Backbone = require('backbone'); var template = require('./slots.html'); var AnimationController = require('../../modules/AnimationController'); var Slots = Backbone.View.extend({ template: _.template(template()), initialize: function() ...
import '../Login/Login.module.scss' export { Login } from './Login'; export { Register } from './Register';
define(["dojox/charting/Theme", "dojo/_base/Color", "dojox/charting/themes/common"], function(Theme, Color, themes){ /* A charting theme for Dayforce */ themes.FeussCharts = new Theme({ // The chart container chart: { stroke: null, fill: "transparent" }, // The area within the axis lines plotarea: ...
import firebase from "firebase/app" import "firebase/auth"; const app = firebase.initializeApp({ apiKey:process.env.REACT_APP_FIREBASE_API_KEY, authDomain:process.env.REACT_APP_AUTH_DOMAIN, projectId:process.env.REACT_APP_PROJECT_ID, storageBucket:process.env.REACT_APP_STORAGE_BUCKET, messa...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './index.scss'; class Label extends Component { render() { const { className, // color, labels, } = this.props; return ( <div className="labels"> {labe...
(async function () { const controller = app.Controller; const cssPath = "common/css"; controller.addStyle(cssPath); controller.addStyle(cssPath, "radio-button"); controller.addStyle(cssPath, "square-button"); controller.addStyle(cssPath, "radio-label"); controller.addStyle(cssPath, "card"); controller.a...
'use strict'; // 非高频使用,使用*sync api取代async api const {readdirSync, statSync} = require('fs'); const {join} = require('path'); const {createHmac} = require('crypto'); const config = require('./config.json'); // 忽略文件列表、文件编码、调试模式 const {blackList} = config; /** * 获取目录中所有指定类型的文件 * @param {string} dirPath * @param {st...
import styled from "styled-components" import { baseUnits } from "." export const SmallTitle = styled.h4` font-size: 1rem; letter-spacing: 0.5px; font-weight: 700; margin-bottom: ${baseUnits(0.25)}; ` export const MediumTitle = styled.h3` font-size: 1.66666rem; font-weight: 500; line-height: 1.2; ma...
import React, {Component} from 'react'; class FormEvent extends Component { state = { name: '', fName: '', phoneNo: '', bio: '', country: '', skills: [], birthDate: '', email:'', gender: '', agree: false } submit = event =>{ ...
var name = "Hasan"; if (name == "Mahmud") { console.log("My name is Mahmud"); } else{ console.log("I don't know my name"); } switch (name) { case "Mahmud": console.log("My name is Mahmud."); break; case "Hasan": console.log("My name is Hasan."); break; ...
// miniprogram/pages/speak/speak.js Page({ /** * 页面的初始数据 */ data: { topicId:'', index:0, oneTopic:[], userInfo:{}, talkBox:[], }, goEdit() { wx.navigateTo({ url: '../edit/edit?topicId=' + this.data.topicId + "&index=" + this.data.index, }) }, /** * 生命周期函数--监听页面加载 ...
import React, { useState } from 'react'; import { Link, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { login } from '../actions/auth'; import Styles from './Components.module.css'; import { Spring } from 'react-spring/renderprops'; import axios from 'axios'; import { FontAwesomeIco...
const webpack = require('webpack') const path = require('path') const merge = require('webpack-merge') const nodeExternals = require('webpack-node-externals') const base = require('./webpack.base.config')() const VueSSRServerPlugin = require('vue-server-renderer/server-plugin') const MiniCssExtractPlugin = require('min...
var AtomicHooks = require('./index'); var concat = require('concat-stream'); var util = require('util'); function LevelBucket(db, opts) { db._configBucket = opts || {}; db._configBucket.default = db._configBucket.default || 'default'; db._configBucket.sep = db._configBucket.sep || '!'; if (!db.atomic...
import classes from '../classes' describe("classes", () => { it("接受一个classes", () => { const result = classes("a") expect(result).toEqual("a") }) it("接受奇怪的classes", () => { const result = classes("a", "中文") expect(result).toEqual("a 中文") }) })
import React, {Component} from 'react' import {each, defaults, isObject, pick, merge} from 'lodash' export default class SingletonComponent extends Component { componentWillMount() { if (isObject(this.constructor.state)) { this.setState(this.constructor.state) this.constructor.state = false } ...
export const getLastRecord = (state) => state.records[state.records.length - 1] || {}; export const getNextRecordId = (state) => { const { id = 0 } = getLastRecord(state); return id + 1; };
function Controller() { function setValue() { args.params.callback && args.params.callback({ value: L(String(this.value)) }); APP.popOut(); return true; } require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__co...
document.write( '<div class="footer">' +' <p>@前端开发部 陈新垲</p>' +' </div>' );
import {NativeModules} from 'react-native'; const RNPreferences = NativeModules.RNPreferences; export default RNPreferences;
const knex = require('../config/knex.js'); const bookshelf = require('bookshelf')(knex); const model = bookshelf.Model.extend({ tableName: 'users', hasTimestamps: true, }); module.exports = { fetch: id => model.where('id', id).fetch(), save: (id, username) => { return model.forge({ id, usern...
// Create array/objects of 4 movies, with individual rating and boolean has(n't) watched. Then print as a coherent sentence. var movies = [ { // movie 1 name: "The Lord of the Rings", rating: 4.5, hasWatched: true }, { // movie 2 name: "Jurassic World", rating: 3, hasWatched: fals...
const apiURL = "https://api.openweathermap.org/data/2.5/weather?id=5604473&appid=164f498c15ca0ca0e8f322a9fd449b46&units=imperial"; fetch(apiURL) .then((response) => response.json()) .then((jsObject) => { console.log(jsObject); let temp = jsObject.main.temp; let windSpeed = jsObject.wind...
const express = require('express') const app = express() require('dotenv').config() const db = require('./dbConnect/connection') const router = require('./routes/routes') app.use(express.json()) app.use('/',router) app.listen(process.env.PORT,()=>console.log(`Server is Running on port ${process.env.PORT}`))
//--- Loading Mask window.onload = function () { $('#loading-mask').fadeOut(500); }; $('a:not([href^="#"]):not([href^="javascript://"]):not([target="_blank"]):not([tabindex="0"]):not([href^="javascript:if(window.print)window.print()"])').click(function (e) { $(".loader").fadeIn("slow"); }); //--- //-- Form Valida...
import React from 'react' import {Column, Row} from "simple-flexbox"; function DashBoardView(props) { let {state, onChangeEvent} = props; return ( <Column className="w-100 vh-100 align-items-center justify-content-center"> <div className="display-flex align-items-center fs-40"> ...
import {combineReducers} from "redux"; import {loadingReducer} from "./loadingReducer"; export default combineReducers({ loadingReducer })
var searchData= [ ['il9163_2fst7735_3a_20il9163_2fst7735_20control_20functions',['IL9163/ST7735: il9163/st7735 control functions',['../group___i_l9163___s_t7734___a_p_i.html',1,'']]], ['ili9341_3a_20ili9341_20control_20functions',['ili9341: ili9341 control functions',['../group__ili9341___a_p_i.html',1,'']]], ['i...
(function () { 'use strict'; angular .module('StationCreator') .directive('editorTools', EditorPanel); EditorPanel.$inject = [ '$log', '$rootScope', 'StateManager', 'MobidulService' ]; function EditorPanel( $log, $rootScope, StateManager, MobidulService ) { return { restrict: 'E', template: ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3...
"use strict"; function showFirstMessage(text) { console.log(text); } showFirstMessage("Hello world"); function calc (a , b){ return (a + b); } console.log(calc(1 , 2)); console.log(calc(1 , 3)); console.log(calc(5 , 2)); const logger = function() { console.log("hellow") }; logger(); const minus = (a ...
$( document ).ready(function() { $(".input").on("click",".btn_timeload", function(){ var flabel=false; var index = $('#input_channels>.timer_input').length+1; $(this).siblings("input:checked").each(function(){ if (!flabel){ var sourceLbl = document.createElement("div"); sourceLbl.innerHTML = "<label>T...
import React, {Component}from "react"; import {Col, Button} from 'reactstrap'; function CardContent(props) { return ( <div className="round bg-light"> <div className="align-items-center p-3"> <h5 className="styleLocationLabel">{props.location}</h5> <p className="styleCardTitle">{props.title...
import { createSlice } from '@reduxjs/toolkit'; import { v4 as uuidv4 } from 'uuid'; let nextStepId = 1 export const trackerSlice = createSlice({ name: 'tracker', initialState: { logs: [], session_id: uuidv4(), user_id: uuidv4(), current_filters: null, impressions: null, prices...
(function(win) { 'use strict'; NodeList.prototype.forEach = Array.prototype.forEach; NodeList.prototype.indexOf = Array.prototype.indexOf; win.qs = function (selector, context) { return (context || document).querySelector(selector); }; win.qsa = function (selector, context) { return (context || d...
// @flow // import type { Point } import { range } from '../util/array' export type PlainCard = { value: string } export default class Card { static createRandomString(length: number): string { const seed = '123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ' return range(1, length).map(number =...
import React, { useState } from "react"; import { v4 as uuid } from "uuid"; import DataEntry from "./DataEntry"; import "antd/dist/antd.css"; import { useSelector } from "react-redux"; import { selectCount } from "./features/counter/counterSlice"; import { selectTodo, addToDo, editToDo, removeToDo, } from "./fe...
/* * delegate prototype book */ const animal = { animalType: '', name: '', describe() { return `${this.name} is a ${this.animalType}`; }, }; export default animal;
'use strict'; var fs = require('fs'); var split = require('split'); var obj = {}; fs.createReadStream('./purchases.txt') .pipe(split()) .on('data', function (line) { var cols = line.split('\t'); obj[cols[2]] = obj[cols[2]] ? obj[cols[2]] : 0; obj[cols[2]] = Math.max(obj[cols[2]], parseFloat(cols[4]...
//singleActivityView constructor var SingleActivityView = function (container, model, activity){ this.container = container.clone(); this.activity = activity; this.day = null; //creating the row + divs for one activity this.div = this.container.find("#timeBox"); this.div2 = this.container.find("#colorBox"); ...
import profileImage2 from './../../resources/profile_image2.jpg'; import profileImage3 from './../../resources/profile_image3.jpg'; import profileImage4 from './../../resources/profile_image4.jpg'; const NEW_MESSAGE_CHANGE = 'NEW-MESSAGE-CHANGE'; const SEND_MESSAGE = 'SEND-MESSAGE'; let initialState = { contacts: [...
import React, { Component } from "react"; import logo from "../logo.png"; import BetAbi from "../abis/Bet"; import "./App.css"; import Web3 from "web3"; class App extends Component { constructor(props) { super(props); this.state = { account: null, betContract: null, ...
(function ($) { window.onload = function () { $(document).ready(function () { back_to_top(); moblie_bar(); height_banner(); fix_height_issue(); slider_related_post(); stuck_header(); search_header(); }); }; })(jQuery); func...
import React from 'react'; import ReactDOM from 'react-dom'; /************* first *****************/ // const name = 'zcreturn0'; // const element = <h2>Hello {name}</h2>; // ReactDOM.render( // element, // document.getElementById('root') // ); /************* 定时器 *****************/ // Date....
/************************************************************** * MENU *************************************************************/ var mainMenu = function(game){} mainMenu.prototype = { init: function(){ if(this.game.isDebug){ this.time.advancedTiming = true; } else{ t...
import React, {Component} from 'react'; import {render} from 'react-dom'; import {Link} from 'react-router'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import{IMG_CONSTANT,ICON_PATH} from '../constants/application.constants'; import {getNotificationsCount, showHideSearchCriteri...
'use strict'; const Composer = require('../lib/composer.js'); module.exports = function(Currency) { Composer.restrictModelMethods(Currency); };
import DS from 'ember-data'; const { Model, belongsTo } = DS; export default class DeliveryPlaceModel extends Model { @belongsTo('delivery-kind') deliveryKind; @belongsTo('geo-coordinate') geoCoordinate; @belongsTo('postal-address') postalAddress; }
module.exports = async(client) => { const mysql = require('mysql') const con = mysql.createConnection({ host: 'localhost', user: 'root', password: 'Liamclyde*2001', database: 'Pegasus' }); console.log(`Ready to RP to Findout!`) client.channels.cache.get('7651939035861...
import httpStatus from 'http-status/lib/index' export function catchErrors (err) { return { error_type: httpStatus[err.status], errors: { default: { msg: err.message, stack: err.stack } } } }
import styled from "styled-components"; import { Link } from "react-router-dom"; export const HeaderContainer = styled.header` grid-area: header; border: 3px solid var(--gold); display: flex; align-items: center; justify-content: space-between; background-color: var(--green); padding: 1rem 4rem; `; expo...
'use strict'; /* @flow */ import React from 'react'; import { IconNames } from "@blueprintjs/icons"; import { options as commonOptions, settings as commonSettings, } from '../../utils/common'; import type { // optionType, settingsType as commonSettingsType } from '../../utils/common'; import { ...
'use strict'; var targetingSys = require('./targetingSystem'); module.exports = { getTargetingSystem: function() { targetingSys.activate(); } };
class PrsmPara { rowLength = 30 ; blockLength = 10 ; letterWidth = 28; letterSize = 12 ; gapWidth = 20; rowHeight = 40; topMargin = 46; bottomMargin = 10 ; rightMargin = 50; leftMargin = 50; middleMargin = 40;//extra space is needed when the start of sequence is skipped extraPadding = 20;//incr...
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { getWeatherIfNeeded } from '../actions' import AreaMap from '../components/area-map' import { MAP_TEMP_PIECES, CITY } from '../constants' import { getPresentWeathers } from '../selectors' class MapConta...
$(document).ready(function(){ //define some globals canvasWidth = 1000; canvasHeight = 500; numberOfBubbles = 30; minRadius = 30; maxRadius = 70; minVelocity = -3; maxVelocity = 3; runAnimation = true; //run main function main(); //allow user to start and stop the animation $("#start").click(function()...
import { SAVED_TWEETS_KEY } from './constants'; import { DateTime } from 'luxon'; export function retrieveSavedTweetsFromLS() { const savedTweets = localStorage.getItem(SAVED_TWEETS_KEY); return savedTweets ? new Map((JSON.parse(savedTweets))) : new Map(); } export function clearSavedTweetsFromLS() { loca...
//This is the file with all the routes for the application var express = require('express'); var router = express.Router(); var Person = require('../db'); // '/' shows the mainpage of the application router.get('/', function(req, res, next) { res.render('index', {title: 'The People Database'}); }); //Link used to ...
// 登录管理 export default { type: '店铺分类', addType: '创建分类', checkSelectorHolder: '请选择审批状态', displaySelectorHolder: '请选择上架状态', checkStatus: '审核状态', checkStatusA: '待审', checkStatusB: '已审', checkStatusC: '驳回', putaway: '上下架', putawayA: '出售中', putawayB: '仓库中', putawayC: '上架', putawayD: '指定上架时间', put...
angular.module('esola').directive('esolaTodos', function () { return { scope: {url: '@', heartbeatUrl: '@'}, templateUrl: '/templates/todo-list.html', controllerAs: 'todoCtrl', controller: function ($http, $scope, $timeout) { var vm = this; vm.todos = []; ...
import "./App.css"; import { useEffect, useState } from "react"; import { Navbar, Container, CardColumns, Card, Button, Modal, } from "react-bootstrap"; import image from "./img/rick.png"; function App() { const [data, setData] = useState([]); useEffect(() => { fetch("https://rickandmortyapi.com/a...
angular.module("risevision.widget.common.storage-selector") .controller("StorageCtrl", ["$scope", "$modalInstance", "storageUrl", "$window", "$log", "STORAGE_MODAL", function($scope, $modalInstance, storageUrl, $window, $log, STORAGE_MODAL){ $scope.storageUrl = storageUrl; $scope.isSameOrigin = func...
const Footer = () => { return ( <foo> </foo> ) } export default Footer
import React from "react"; import PropTypes from "prop-types"; // Components import Select from "./Select"; const Options = props => ( <div className="currency-container"> <div className="currency" id={props.id}>{props.type}:</div> <div className="options"> <Select options={props.options} valu...
import firebase from 'firebase' firebase.initializeApp({ apiKey: "AIzaSyBOJwx3pKj--PkRrGJWKKoyCbnfeeu4X0o", authDomain: "recipe-46932.firebaseapp.com", databaseURL: "https://recipe-46932.firebaseio.com", projectId: "recipe-46932", storageBucket: "recipe-46932.appspot.com", messagingSenderId: "...
'use strict'; var numbers = [2, 3]; var sumNumbers = function (numArray) { let sumNums = 0; if (numArray !== null) { for (let i=0; i<numArray.length;i++) { sumNums += numArray[i]; } return sumNums; } else { throw new Error('Null object not found'); }; }; module.exports = sumNumbers;
import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import { Image } from 'semantic-ui-react'; import { QueryGetLoggedUserInfoTopNav } from '../GraphQL'; class TopNavMenu extends Component { constructor(props) { super(props) this.state = { username: '', ...
import React, { Component, PropTypes } from 'react'; import h from 'mgmt/utils/helpers'; class StudySortSelector extends Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this); this.state = props.studySorting; this.defaults = { order: ...
// Copyright 2013 - UDS/CNRS // The Aladin Lite program is distributed under the terms // of the GNU General Public License version 3. // // This file is part of Aladin Lite. // // Aladin Lite is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publis...
// 리액트에서 state는 컴포넌트 내부에서 바뀔 수 있는 값을 의미합니다. // 앞서 선언한 Counter 컴포넌트를 App.js 컴포넌트에서 불러와 렌더링 구현합니다. import React from "react"; import Counter from "./components/Counter"; const App = () => { return <Counter />; }; export default App;
import React from "react"; import FilterAction from "./FilterAction"; import FilterRow from "./FilterRow"; import { ReactComponent as Add } from "../assets/svg/plus-circle.svg"; class FilterItem extends React.Component { render() { return ( <div className="filter--list"> {this.props.data.map((filte...
'use strict'; var dbInterface = require('./dbInterface'); var Collection = module.exports = function Collection(colName) { this.colName = colName; }; Collection.prototype.getCollectionName = function () { return this.colName; }; Collection.prototype.create = function (data, callback) { dbInterface.create(this...
import assessmentStartup from 'assessment/split'; window.app.assessmentStartup = assessmentStartup;
import {commentEl, responseEl} from "./templates"; import {commentsToModel, markersToComments} from "./cmtools"; import {template, createElement} from "../../../utilities/travrs"; import {emit, date, Memo, arrayCompare} from "../../../utilities/tools"; require('./comments.scss'); // Component scaffold const scaffold =...
var Long = require('long'); var NBT = require('../dist/PowerNBT'); var assert = require('assert'); describe('NBT.NBTTagByte', function(){ describe('constructor', function(){ it('should be equal 0' , function(){ assert.equal(0, new NBT.NBTTagByte()); assert.equal(0, new NBT.NBTTagBy...
var searchData= [ ['terms',['terms',['../structefp__opts.html#a4ec4f0243a7e31d41130adc5d9989599',1,'efp_opts']]], ['total',['total',['../structefp__energy.html#a0db3434685baa95c90385830abc16473',1,'efp_energy']]] ];
$(function(){ nav.init(); }); nav={ init:function(){ $('#header .search').click(function(){ $("#header").hide(); $('#search').show(); $('input:text').focus(); }); $('#search .x').click(function(){ $("#header").show(); $('#search').hide(); }); $('input:text').blur(function(){ $(this).val(""...
var scene4_btn_save // save sketch var scene4_btn_fb // share var scene4_btn_clear // clear the canvas var scene4_btn_home // go back to scene4 // painting parameters var scene4_draw_thick = 10 var scene4_draw_color = 0 var scene4_thick var scene4_rSlider var scene4_gSlider var scene4_bSlider /** * Listening out ...
// STYLING CONSTANTS export const TOP_BAR_HEIGHT = "55px"; export const TOP_BAR_COLOR = "#655991"; export const PRIMARY_BACKGROUND_COLOR = "#332D51"; export const SECONDARY_BACKGROUND_COLOR = "#453967"; export const ACCENT_COLOR_LIGHT_BLUE = "#3cfcef"; export const ACCENT_COLOR_DARK_PURPLE = "#6f70aa"; //primary text c...
import React, { Component } from 'react'; import { AppRegistry, ListView, StyleSheet, Text, TouchableOpacity, TouchableHighlight, View, StatusBar, Image, InteractionManager, FlatList, Dimensions, } from 'react-native'; import { SwipeListView, SwipeRow } f...
/** * 创建目录 */ var fs = require('fs'); console.log('在C:/Course目录下创建testDemo4-8'); fs.mkdir('C:/Course/testDemo4-8/', function (err) { if (err) { return console.error(err); } console.log("目录创建成功。") });
/* eslint-disable prefer-destructuring */ /* eslint-disable global-require */ /* eslint-disable react/forbid-prop-types */ /* eslint-disable react/prop-types */ // @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { withStyles } from '@mat...
/****************************************************************************** * Compilation: node StockAccount.js * * Purpose: Program to keep track of different Companies, their price per * share & User Account to keep track of shares bought or sold. * Implementation of Linked List, ...
const should = require('should'); const rewire = require('rewire'); const nock = require('nock'); const request = rewire('../../../core/server/lib/request'); describe('Request', function () { it('[success] should return response for http request', function () { const url = 'http://some-website.com/endpoint...
google.charts.load('current', {packages: ['corechart', 'bar']}); // Draw Graph function drawBarGraph(queryId, title, subtitle, columns, data) { let graphDockingLocation = queryId; let footerId = `${queryId}-footer`; let footerTextId = `${queryId}-footer-text`; data.forEach(record => { for (let...
/* global QUnit */ /** * Before doing the test, import test-important-vs-urlblock.txt to AdGuard */ window.addEventListener('DOMContentLoaded', () => { const adgCheck = getComputedStyle(window.document.getElementById('subscribe-to-test-important-vs-urlblock-filter'), null).display === 'none'; QUnit.test('Ca...