text stringlengths 7 3.69M |
|---|
import React, { Component } from 'react';
import './App.css';
// This component doesn't use any data in the store! Fix this.
class DisplayTodos extends Component {
render = () => {
return (<div> I need to get implemented </div>)
}
}
export default DisplayTodos;
|
import React from 'react';
import {string} from 'prop-types';
import './next-portfolio-screen.scss';
import {withRouter} from 'react-router-dom'
import classNames from 'classnames';
export class NextPortfolioScreenComponent extends React.Component {
static propTypes = {
nextPageHref: string
};
state = {
... |
const Koa = require("koa");
const Router = require("koa-router");
const BodyParser = require("koa-bodyparser");
const app = new Koa();
const router = new Router();
const config = require("./config");
const vectorTile = require("./vector_tile");
const cors = require("@koa/cors");
app.use(cors());
app.use(router.routes(... |
export function Route(name, htmlName, purpose) {
try {
if (!name || !htmlName) {
throw Error('Name and htmlName params are mandatories');
}
this.constructor(name, htmlName, purpose);
} catch (e) {
console.error(e);
}
}
Route.prototype = {
constructor: functio... |
var express = require('express');
var loginRouter = express.Router();
var loginAdminRouter = express.Router();
var logoutRouter = express.Router();
var loginGuestRouter = express.Router();//dontgetconfused,this is the signup router :)
var authMiddleware = require('./middlewares/auth');
var db = require('../../lib/datab... |
import React, { useEffect, useState } from 'react';
import ItemDetail from '../ItemDetail/ItemDetail';
import './ItemDetailContainer.css';
import { db } from '../../firebase';
import { useParams } from 'react-router-dom';
const ItemDetailContainer = () => {
const [item, setItem] = useState([]);
const [loading, set... |
const express = require('express');
const validator = require('validator');
const db = require('../database.js');
const nodemailer = require('nodemailer');
const { transporter, sendEmail } = require('../email.js')
const router = express.Router();
router.post('/', (req, res) => {
let code;
try {
let ... |
/**
* @class widgets.GUI.RadioGroup
* Controle de radio button.
* @alteracao 09/07/2015 191657 Projeto Carlos Eduardo Santos Alves Domingos
* Criação.
*/
var args = arguments[0] || {};
/**
* @property {Object} listControl Lista de controles no componente.
*/
var listControl = [];
/**
* @property {Number} selec... |
const sqlite3 = require('sqlite3').verbose()
let uniqid = require('uniqid')
const ipcRenderer = require('electron').ipcRenderer
/**
|--------------------------------------------------
| @function fetchData is called on onload method on body,
| so that folder list will be fetched before rendering
|---------------------... |
module.exports = {
HOST: "10.110.3.162",
PORT: 27017,
DB: "exam-manager"
}; |
class A {
}
class B extends
/*EXPECTED
[
{
"word" : "A"
},
{
"word" : "Object"
},
{
"word" : "Error"
},
{
"word" : "EvalError"
},
{
"word" : "RangeError"
},
{
"word" : "ReferenceError"
},
{
"word" : "SyntaxError"
},
{
"word" : ... |
import XBody from './src/index.vue'
XBody.install = (vue) => {
vue.component(XBody.name, XBody)
}
export default XBody
|
import React, { Component } from "react";
import NotLoggedIn from "./notLoggedIn";
import axios from 'axios';
import "./jobs.css";
import { withRouter } from 'react-router-dom'
class Savedjobs extends Component {
constructor(props) {
super(props);
this.state = {
info: [],
}
... |
import React, { useState, useEffect } from 'react';
const HoldingItem = ({ holding }) => {
const [dayChange, setDayChange] = useState(0);
const [marketValue, setMarketValue] = useState(0);
useEffect(() => {
setDayChange(Math.round(holding.quote.dayChange * 100) / 100);
setMarketValue(Math.round(holding.... |
function calc (num) {
for (let i = 2; i <= num/2; i++){
if (num % i == 0){
return "not prime";
}
}
return "prime";
}
console.log(calc(63));
|
import React from "react";
import "./OccupantList.css";
import { connect } from "react-redux";
import OccupantItem from "./OccupantItem";
const OccupantList = ({ occupants, dispatch }) => {
return occupants.map((occupant) => {
return (
<OccupantItem
// occupantsList={occupant}
{...occupant}... |
import './Home.css'
import React from 'react';
import { useEffect } from 'react';
import { useState } from 'react';
import { fetchMovies,fetchGenre, fetchMovieByGenre, fetchPersons, fetchTopratedMovie } from '../../service';
import RBCarousel from "react-bootstrap-carousel";
import "react-bootstrap-carousel/dist/react-... |
import {
GetMemberInfo,
GetCourseTagInfo,
GetAllClass,
GetEnterPriseCourse,
GetShopCourse,
GetAllDepartment,
GetRoleList,
GetChaine,
GetPosition,
GetHelpType,
GetFriendlyLink,
GetHelp,
GetAD,
GetAllMember,
GetAllArticleType,
GetArticleByEnterprise,
GetRoleMenu,
GetArticleList
} from ... |
/**
MIT License
Copyright (c) 2022 Sasikumar Ganesan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
import { stripTrailingSlash } from '../utils';
const BASE_DEVICE_MONITORING_URL_V2 = stripTrailingSlash(process.env.REACT_APP_BASE_URL_V2);
export const GET_DEVICE_STATUS_SUMMARY = `${BASE_DEVICE_MONITORING_URL_V2}/monitor/device/status`;
export const GET_NETWORK_UPTIME = `${BASE_DEVICE_MONITORING_URL_V2}/monitor/ne... |
"use strict";
/// <reference path="./GameBuildSettings.d.ts" />
Object.defineProperty(exports, "__esModule", { value: true });
const GameBuildSettingsEditor_1 = require("./GameBuildSettingsEditor");
const buildGame_1 = require("./buildGame");
SupClient.registerPlugin("build", "game", {
settingsEditor: GameBuildSett... |
/**
* 导航栏移动效果
*/
$(".navname a").on("mouseover", function() {
$(this).addClass("active");
var leftsize = $(window).width()*0.5;
var size = leftsize-200;
$(".navmsg").css("margin-left",size+"px");
$(".navmsg").removeClass("hide");
$(".navmsg").text($(this).text());
$(this).on("mouseout", function() {
$(this).... |
/*
* @akoenig/website
*
* Copyright(c) 2017 André König <andre.koenig@gmail.com>
* MIT Licensed
*
*/
/**
* @author André König <andre.koenig@gmail.com>
*
*/
import React from "react";
import styled from "styled-components";
const Wrapper = styled.section`
background: rgba(255, 255, 255, 0.8);
padding: 2... |
let age = 20;
if (age >= 18 && age <= 25) {
document.write("You can enter the bar!");
} |
let animals = ['dog', 'cat', 'seal', 'walrus', 'lion'];
let index = animals.indexOf('seal');
console.log(animals.lastIndexOf('walrus'));
console.log(animals.splice(index, 1));
|
const name=require('../Test');
const assert=require('chai').assert;
describe('should test',()=>{
it('should test smth', ()=>{
assert.equal(name(1),3);
});
}); |
'use strict';
var mongoose = require('mongoose');
require('mongoose-type-url');
var Schema = mongoose.Schema;
var SellerSchema = new Schema({
name:{
type:String,
default:"username",
},
});
module.exports = mongoose.model('sel_Seller', SellerSchema);
|
const db = require("../db");
const partialUpdate = require("../helpers/partialUpdate");
const ExpressError = require("../helpers/expressError");
class Product {
/** find all products (can filter on terms) */
static async findAll(data){
let baseQuery = `SELECT
id,
name,
image,
... |
const result = document.getElementById("coin_result")
function convertCurrency(form) {
const from = form.from_coin.value
const to = form.to_coin.value
const amount = form.coin_val.value
if(from === to )
{
letter = from == "E" ? " €" : (from == "D" ? " $": " ¥")
result.innerHTM... |
import React from 'react';
import moment from 'moment';
import styles from './stats.module.css';
const formattedMoment = (dateString) => moment(dateString, 'YYYY-MM-DD');
// https://stackoverflow.com/questions/25150570/get-hours-difference-between-two-dates-in-moment-js
function getNumDaysAbroad() {
const europe = ... |
var test = require('tape');
var textSlicer = require('../');
test('chopWords should return a well formed array of words', function (t) {
var chunks = textSlicer.chopWords(' mon petit chat gris : ');
t.deepEqual(chunks, [ 'mon', ' ', 'petit', ' ', 'chat', ' ', 'gris', ' ', ':' ]);
t.end();
});
test('c... |
const fetchFallbackImage = type => {
switch (type) {
case 'Bird':
return require('../images/fallbacks/bird-ph.png');
case 'Barnyard':
return require('../images/fallbacks/barnyard-ph.png');
case 'Cat':
return require('../images/fallbacks/cat-ph.png');
case 'Dog':
return require(... |
import React from "react";
import PropTypes from "prop-types";
import Notification from "../Notification/Notification";
const Statistics = ({
onGood,
onNeutral,
onBad,
onTotalFeedback,
onPositivePercentage,
}) => {
return (
<>
{onTotalFeedback !== 0 ? (
<ul className="list">
<l... |
/*
* Copyright (c) 2017 American Express Travel Related Services Company, Inc.
*
* 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 ... |
config = {
blog_name: "天狼星 ● 文档",
per_page: 10, // 首页每次载入文章列表数量
file_server: "http://"+window.location.hostname+":8001",
};
|
import React from 'react';
import { MDBRow, MDBCol, MDBView, MDBCard, MDBCardBody, MDBTable, MDBTableHead, MDBTableBody, } from 'mdbreact';
import Spinner from '../Spinner'
export default function FilmsPage({ result_film, isLoading }) {
return isLoading ? (
<Spinner />
) : (
<>
{/* <MDBCard classN... |
const aux = document.getElementById('aux');
const bac = document.getElementById('dd1');
const bac2 = document.getElementById('dd333'); |
const puppeteer = require('puppeteer');
const CREDS = require('./creds');
async function run() {
const browser = await puppeteer.launch({
headless: false
});
const page = await browser.newPage();
await page.goto('https://github.com/login');
// dom element selectors
const USERNAME_SELECTOR = '#login_... |
// @flow
import * as React from 'react';
type ShowDateViewProps = {
formatter: Date => string,
date: Date,
prefix?: string
}
export const ShowDateView: React.ComponentType<ShowDateViewProps> =
({
date,
formatter,
prefix = '-> '
}) => (
<div>{prefix}{formatter(da... |
const gulp = require('gulp');
//utilities
const del = require('del');
const plumber = require('gulp-plumber');
//css
const sass = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');
//html
const htmlReplace = require('gulp-html-replace');
const htmlMin = require('gulp-htmlmin');
//images
const imag... |
var searchData=
[
['genvariable_114',['GenVariable',['../structGenVariable.html',1,'']]]
];
|
jQuery().ready(function() {
if (jQuery('form.ecapForm') && typeof(Validation) !== "undefined" && typeof(ZipValidation) !== "undefined") {
Validation.initialize('form.ecapForm');
ZipValidation.initialize('form.ecapForm');
}
});
var getQueryStringParam = getQueryStringParam || function(param) {
... |
// Strict Mode On (엄격모드)
"use strict";
"use warning";
var PlayZClausePopup = new function() {
var INSTANCE = this;
var bg_common;
var allPass;
var license;
var personal_information;
var focus_purchase;
var btn_confirm = [];
var btn_detail = [];
var check = [];
/////////////... |
import { connect } from 'react-redux';
import Rule from './Rule';
import rules from '../../../generated/rules';
import { push } from 'react-router-redux';
const mapStateToProps = (_, { match }) => {
const { category, rule } = match.params;
return {
...rules[category][rule] || { docs: {} },
};
};
const mapDi... |
$(document).ready(function(){
$('.table').DataTable({
paging: false
});
$(".export").on('click', function (event) {
exportTableToCSV.apply(this, [$('.table'), 'task_data.csv']);
});
});
loading('start');
angular.module('ViewTask', ['datatables', 'ngResource'])
.controller('Tas... |
/* eslint-disable react/destructuring-assignment */
import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
// import rootReducer from './reducers/index';
import { connect } from 'react-redux';
import Todos from './components/Todos';
import NavBar from './components/NavBar';
i... |
/**
* Copyright 2016 IBM Corp.
*
* 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 agreed to in wr... |
const request = require('request')
const cheerio = require('cheerio')
const moment = require('moment-timezone')
const { createLogger, format, transports } = require('winston')
const mongo = require('mongodb').MongoClient
var ObjectId = require('mongodb').ObjectID
require('dotenv').config()
const URL = process.env.CURR... |
import React from 'react';
/*const layout = (props) => {
console.log(props.childern);
return (
<div>
<div>toolbar,lottu,losku</div>
<main>
{props.childern}
</main>
</div>
)
};*/
class Layout extends React.Component {
render() {
return (
<div>
... |
// scripts/MYNAMESPACE/init.js
var namespace = new Namespace('MYNAMESPACE'); // Cria namespace no nível global
namespace.myClassA = new MyClassA(); // Adiciona as classes ao namespace
namespace.myClassA.init(); // inicializa um método público da classe equivalente à window.MYNAMESPACE.myClassA.init();
|
// tGallery.js file
var base = require("./base.js");
var ActorGala = require("tpp-test-gallery");
add(new ActorGala(base, {
dialog_type: "dialog",
dialog: [
"Did you know they're building a gym just for me in Surldab City?",
"I'll be able to keep taunting you guys forever there!",
function(){ this.showEmote("... |
import './App.css';
import { useEffect, useState, useRef } from "react"
import PlayerForm from "./components/PlayerForm"
import GameArea from "./components/GameArea"
import {packPlayerMessage, packChatMessage} from "./utils/messages"
import replaceValue from "./utils/replaceValue"
import guessAPILocation from "./uti... |
/**
*
* @auth: db, created at 2013.10.19
* www.yynote.com
*
*/
function trim(str) {
return str.replace(/(^\s*)|(\s*$)/g, "");
}
function ltrim(str) {
return str.replace(/(^\s*)/g,"");
}
function rtrim(str) {
return str.replace(/(\s*$)/g,"");
}
/**
* 0 : view
* 1 : edit
*/
... |
/**
* @author: @joatin
*/
require('ts-node/register');
var helpers = require('./helpers');
exports.config = {
baseUrl: 'https://localhost:3000/',
/**
* Use `npm run e2e`
*/
specs: [
helpers.root('features/**/*.feature') // accepts a glob
],
exclude: [],
framework: 'custom',
frameworkPath: ... |
/**
* Choropleth Element for React-Dashboard
* Author Paul Walker (https://github.com/starsinmypockets)
*
* Based on the following projects:
*
* React D3 Map Choropleth (https://github.com/react-d3/react-d3-map-choropleth)
* Apache 2.0 License
*
* Mike Bostock's Choropleth (https://github.com/react-d3/react-d3... |
$(document).ready(function() {
setTimeout(function() {
$('#fullpage').css("-webkit-filter", "blur(5px)")
}, 1);
setTimeout(function() {
$('#fullpage').css("-webkit-filter", "blur(4px)")
}, 400);
setTimeout(function() {
$('#fullpage').css("-webkit-filter", "blur(3px)")
}, 600);
setTimeout(functi... |
// import moment from 'moment';
// import uuid from 'node-uuid';
const moment = require('moment');
const uuid = require('node-uuid');
module.exports = (sequelize, DataTypes) => {
return sequelize.define('release_log', {
id: {
type: DataTypes.STRING,
primaryKey: true
},
date: DataTypes.DATE,
... |
import React from 'react'
import styled from 'styled-components';
function Details() {
return (
<Container>
<Background>
<img src="https://images.squarespace-cdn.com/content/v1/583ed05c59cc68a8c3e45c0f/1600856532768-ATU3GLRFMRJ395DCE94E/bao-animationscreencaps.com-793.jpg?format=... |
// Here we are testing exceptions and the handler should be ours, we need to avoid tape-catch
import tape from 'tape';
import includes from 'lodash/includes';
import MockAdapter from 'axios-mock-adapter';
import splitChangesMock1 from './splitChanges.since.-1.json';
import mySegmentsMock from './mySegments.nico@split.i... |
//var appState = undefined;
//var AboutProjectModel = undefined;
var aboutProject = undefined;
var appState = undefined;
var projectNews = undefined;
var coaches = undefined;
var projects = undefined;
$(function () {
var Controller = Backbone.Router.extend({
routes: {
"": "main",
"... |
import React, { Component } from 'react';
import classNames from 'classnames';
import autobind from 'autobind-decorator';
import { Form, Text, Radio, RadioGroup, Select } from 'react-form';
import stateOptions from '../../models/brackets/state/states';
import { formatCurrency, formatPercent, numbersOnly } from '../../... |
import { productConstants } from "../actions/constants"
const initialState = {
products: [],
priceRange: {},
productsByPrice: {},
productsVariants: [],
pageRequest: false,
page: {},
error: null,
productDetails: {},
productVariants: [],
productsSearch: [],
loading: false
}
e... |
"use strict";
(function() {
let current_issue_text = 'VIEW PREVIOUS ISSUE';
let hidden_issue_text = 'VIEW CURRENT ISSUE';
let hidden_issue = document.getElementById('issue-4');
let current_issue = document.getElementById('issue-5');
const issue_btn = document.getElementById('issue-btn');
issue_... |
getNextStream = function() {
var msg = {};
msg["msg"] = "play";
socket.send( JSON.stringify(msg));
}
startPlaying = function() {
playNext( playing );
}
audioEnded = function() {
console.log( "length: " + audios.length );
console.log( "playing: " + playing );
playing++;
playNext( playing );
}
playNext = fu... |
/* global Tone */
app.config(function($stateProvider) {
$stateProvider.state('versus', {
url: '/versus/:songId/?chosenLevel&chosenLevelP2',
templateUrl: 'js/versus/versus.html',
resolve: {
song: function(SongFactory, $stateParams) {
return SongFactory.getSongById... |
import { Box, Button, CircularProgress, FormControl, Grid, InputLabel, makeStyles, MenuItem, Paper, Select, Snackbar, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, TextField, Typography } from '@material-ui/core';
import axios from 'axios';
import React, { useContext, useEffect, useS... |
// Concatenation
const fname = 'Suraj';
const age = 19;
// using +
console.log('My name is ' + fname + ' and I am ' + age);
// using template strings
console.log(`My name is ${fname} and I am ${age}`);
let s = 'Hello Duniya!';
console.log(s.length);
console.log(s.toUpperCase());
console.log(s.toLowerCase());
consol... |
const ShowdownWrapper = require("./LibsWrappers/ShowdownWrapper");
const FileSystemWrapper = require("./LibsWrappers/FileSystemWrapper");
const MarkdownService = require("./Services/MarkdownService");
const FolderService = require("./Services/FolderService");
const Builder = require("./Builder");
const PrintService = r... |
import styled from "styled-components";
const H2 = styled.h2`
font: normal normal 600 32px 'Nunito';
letter-spacing: 0px;
color: #0A194E;
opacity: 1;
`;
const P = styled.p`
font-family: 'Nunito', sans-serif;
letter-spacing: 0px;
color: #FFFFFF;
opacity: 1;
text-align: ${({ noF }) =... |
/*
* The MIT License (MIT)
* Copyright (c) 2019. Wise Wild Web
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
const RestaurantHelper = {
ucfirst (string) {
return (string.length) ? string.charAt(0).toUpperCase() + string.slice(1) : ''
},
uniqueArray (array) {
return array.filter(function (value, index, self) {
return self.indexOf(value) === index
})
},
formatCategories (categories) {
retur... |
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { reducer as reduxFormReducer } from 'redux-form';
import thunk from 'redux-thunk';
import { authReducer } from './reducers/authreducer';
import { tabsReducer } from './reducers/tabsreducer';
import { tasksReducer } from './reducers/tasksredu... |
/**
* @license
* Copyright (C) 2009 Google Inc.
*
* 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 l... |
import React, { useEffect } from 'react'
import styled from 'styled-components'
import { SortType } from '../../../Constant';
const Container = styled.div`
display:flex;
flex-flow: column nowrap;
/* background-color: white; */
margin-bottom: 0;
`;
const SearchField = styled.input`
margin: 0px 1re... |
/**
* Created by smoseley on 12/14/2015.
*/
(function(module){
var getCurrentStates = function(){
return [
{
state: 'default',
config: {
url: '/home',
controller: 'HomeController as vm',
templateUrl: '... |
import { useEffect, useRef } from "react";
export const usePrevius = (data) => {
const previusData = useRef();
useEffect(() => {
previusData.current = data;
}, []);
return previusData.current;
};
|
'use strict';
var expand = document.querySelectorAll('[data-plugin="expand"]');
expand.forEach(function (item) {
item.addEventListener('click', function (e) {
e.target.parentElement.nextElementSibling.classList.toggle("hidden");
});
}); |
import filter from "lodash/filter";
import orderBy from "lodash/orderBy";
import format from "date-fns/format";
/**
* @param {array} data
* @param {string} key
* @param {string} sortMode
* @return {array} sorded by the key field
*/
export const sortData = (data, key, sortMode) => {
//console.log("sor... |
var apiNo = context.getVariable("apiNo");
var faultName = context.getVariable ("fault.name");
var errorResponse = JSON.parse(context.getVariable ("error.content"));
var faultString = errorResponse.fault.faultstring;
context.setVariable("isoTimestamp", ISODateString()); // Prints something like 2009-09-28T19:03:12+08:0... |
/**
* Auth Sagas
*/
import { all, call, put, takeEvery,select,delay } from 'redux-saga/effects';
// app config
import AppConfig from '../constants/AppConfig';
import {getAxiosRequestAuth, AsyncStorage} from "../util/helpers/helpers"
import {
getCommsSuccess,
getCommsFailure
} from '../actions';
const g... |
import { groupBy, maxBy } from 'lodash';
import reviewNetwork from './contracts/review-network';
import wallet from './wallet';
class Survey {
async create(publicKey, title, surveyJsonHash, rewardPerSurvey, maxAnswers) {
const rn = await reviewNetwork.contract;
let rewardPerSurveyFormatted = await wallet.get... |
// You will be given two arrays of integers and asked to determine all integers that satisfy the following two conditions:
// 1) The elements of the first array are all factors of the integer being considered
// 2) The integer being considered is a factor of all elements of the second array
// These numbers are refer... |
Polymer({
is: "paper-toolbar",
hostAttributes: {
role: "toolbar"
},
properties: {
bottomJustify: {
type: String,
value: ""
},
justify: {
type: String,
value: ""
},
middleJustify: {
type: String,
... |
'use strict';
Wia.DEFAULT_PROTOCOL = 'https';
Wia.DEFAULT_HOST = 'api.wia.io';
Wia.DEFAULT_PORT = '443';
Wia.DEFAULT_BASE_PATH = '/v1/';
Wia.DEFAULT_STREAM_PROTOCOL = 'mqtts';
Wia.DEFAULT_STREAM_HOST = 'api.wia.io';
Wia.DEFAULT_STREAM_PORT = '8883';
Wia.PACKAGE_VERSION = require('./package.json').version;
Wia.USER_... |
const Hashids = require('hashids/cjs')
const hashids = new Hashids('', 10, 'abcdefghijklmnopqrstuvwxyz1234567890')
const { standardToUSDate } = require('../../utilities/string')
module.exports = (models, Sequelize, sequelize) => {
models.report.createNew = (params) => {
return sequelize.transaction(async (t) => ... |
// @flow strict
import * as React from 'react';
import { graphql } from '@kiwicom/mobile-relay';
import { DateFormatter } from '@kiwicom/mobile-localization';
import { withHotelsContext } from '../HotelsContext';
import type { Stay22HotelsSearchQueryResponse } from './__generated__/Stay22HotelsSearchQuery.graphql';
i... |
import React, { Component } from "react";
import { googStock as googData } from "./data/googStock";
import ChartHighstock from "./ChartHighstock";
import Paper from "@material-ui/core/Paper";
import { Header } from "semantic-ui-react";
import { graph } from "../actions/viewkra";
import { connect } from "react-redux";
c... |
import PreviewBox from './src/index.vue'
PreviewBox.install = (vue) => {
vue.component(PreviewBox.name, PreviewBox)
}
export default PreviewBox
|
$(window).load(function(){
Dashboard.init();
});
Dashboard = {
lock : false,
init: function() {
console.log("Starting dashboard...");
this.order();
this.product();
},
order: function() {
$.ajax({
url: "/dashboard/order",
async: true,
... |
import React, { useState, useEffect } from "react";
import SafeIlustration from "../../../assets/ilustrastion/safe-ilustration.png";
import { getSafe } from "../../../services";
import { Modal, Button } from "antd";
import "./Opening.scss";
import { useDispatch } from "react-redux";
const Opening = ({ navigation }) =... |
import tw from 'tailwind-styled-components'
export const CenterColumn = tw.section`
block
w-56
ml-6
flex-shrink-0
`
|
//API call to get employee data to poplate our table
import axios from "axios";
var employeeNum = 500;
export default {
getUsers: function() {
return axios.get("https://randomuser.me/api/?results=" + employeeNum + "&nat=us");
}
};
|
// 初始化Web Uploader
function upload(box,name,num,type,inputName,inputIndex){
var accept = {};
if(type) {
accept = {
title: 'Files',
extensions: 'pdf,doc,docx',
mimeTypes: 'application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.docume... |
import usersReducer from './usersReducer';
import initialState from '../initialState';
import types from '../../actions/actionTypes';
describe('user reducer', () => {
it('should return the initial state', () => {
expect(usersReducer(undefined, {})).toEqual(
{
instructors: [],
use... |
import Product from '../../../models/ecommerse/product'
import { tableColumnsByDomain } from '../../../scripts/utils/table-utils'
import { img, price } from '../../../scripts/utils/table-renders'
const width = App.options.styles.table.width
const options = {
image: {
width: width.img,
render(h, context) {
const... |
/*
* 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.
*/
angular.module('appMain').controller('rgpdController',function($scope,$http){
//obter as leads que estão encriptadas
fun... |
// FileWraper : 将文件操作封装成 promise ,用于 async / await 操作
let fs = require('fs')
export default class FileWraper {
constructor () { // eslint-disable-line
}
static async dirExist (path) {
return new Promise((resolve, reject) => {
fs.stat(path, (exists) => {
if (!exists) {
// console.log... |
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
'a': {
'textDecoration': 'none'
},
'body': {
'margin': [{ 'unit': 'px', 'value': 0 }, { 'unit': 'px', 'value': 0 }, { 'unit': 'px', 'value': 0 }, { 'unit': 'px', 'value': 0 }],
'padding': [{ 'unit': 'px', 'value': 0 }, { 'u... |
const express = require("express");
const checkUserRoute = express.Router();
const checkUserCon = require("../controller/checkUserCon.js");
const orderManger = require("../controller/orderMangerCon.js") ;
const customManger = require("../controller/customController.js");
const roleManger = require("../controller/roleMa... |
global.RESULT_200 = 200;
global.MESSAGE_200 = 'SUCCESS';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.