text stringlengths 7 3.69M |
|---|
$(document).ready(function () {
// Event sidebar-toggler
var sidebar_toggler = $('#sidebar-toggler');
var wrapper = $('#wrapper');
sidebar_toggler.click(function () {
if (wrapper.hasClass('hide-menu')) {
wrapper.removeClass('hide-menu');
wrapper.addClass('show-menu');
... |
// プッシュ通知された
self.addEventListener("push", event => {
console.log("[Service Worker] Push Received.");
console.log(`[Service Worker] Push had this data: "${event.data.text()}"`);
const title = "私はプッシュ通知です";
const options = {
body: event.data.text(),
icon: "/static/kuma.png",
badge: "/static/risu.png... |
import React, { Component } from 'react';
import styled from 'styled-components';
class TradeOperation extends Component {
render() {
const { name, currency, value, handleChange } = this.props;
return (
<TradeOperationsInputWrapper>
<TradeOperationsInput onChange={handleChange} name={name} valu... |
'use strict';
function createViewModule() {
var BearView = function(model, canvas) {
var self = this;
this.RIGHTFALL = [];
this.LEFTFALL = [0];
/**
* Maintain the model.
*/
this.model = model;
/**
* Maintain the canvas and its context.
*/
this.canvas = canvas;
t... |
jQuery(document).ready(function()
{
// INITIALIZE DROPDOWN MENU
jQuery('.dd-menu li:has(ul) > a').addClass('dd-submenu-title').append('<span class="dd-arrow"></span>');
jQuery('.dd-menu li').hover(function(){
// HOVER IN HANDLER
jQuery('ul:first', this).css({visibility: "visible",display: "none"}).sli... |
const $ = require('jquery');
require('./style.css');
const template = require('./template.html')
const mount = $('#mount');
mount.html(template);
|
/**
* Created by Piet on 11.05.2014.
*/
var timerStart;
var timerEnd;
var timerInterval;
var timerStatus;
$(document).ready(function () {
timerMode(localStorage.getItem("timerStatus"), true);
$("#timer-button-left").on('click touchstart', function (e) {
e.stopPropagation();
e.preventDefault... |
import React from 'react';
export const About = () => (
<div class="container">
<div class="row">
<h3>By The Numbers !</h3>
</div>
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">#1</h5>
<p clas... |
function runTest()
{
var url = basePath + "commandLine/1854/issue1854.html";
FBTest.openNewTab(url, function()
{
// Step 1: Open Firebug
FBTest.openFirebug(function()
{
// Step 2: Enable the Script and the Console panel
// Step 3: Switch to the Console panel
... |
import { combineReducers } from 'redux'
import loader from './app/shared/components/loader/redux/Reducer'
export default combineReducers({
loader
})
|
var UID = '_yuid';
Y.Array.each([
/**
* Passes through to DOM method.
* @method replaceChild
* @param {HTMLElement | Node} node Node to be inserted
* @param {HTMLElement | Node} refNode Node to be replaced
* @return {Node} The replaced node
*/
'replaceChild',
/**
* Pa... |
module.exports = function(req,res){
console.log('table',req.body.table)
console.log('un',req.body.un)
console.log('pw',req.body.pw)
console.log('colNum1',req.body.colNum)
console.log('colnames[0]',req.body.colnames[0])
console.log('coltypes[0]',req.body.colTypes[0])
var schemaTopHalf = 'var Sequelize = re... |
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var router = express.Router();
var bodyParser = require('body-parser')
// var cors = require('cors');
users = [];
connections = [];
// app.use(express.json());
app.use(bodyParser.json... |
(function () {
/**
* 根据第一个key值获取其下的子内容,逗号分隔子项。
* @param sKey:datasource.cfg中第一个key,有pool,db等
*
* @returns sChild:子内容字符串。
*/
var fnGetConfig = function(sKey) {
var sChild = "";
var list = java.Config.getConfig(sKey).root().keySet().iterator();
while (list.hasNext()) {
... |
/* global browser, window, chrome */
import 'regenerator-runtime/runtime';
import ext from './ext';
export default {
async set(obj) {
await ext.storage.local.set(obj, () => {});
},
async get(key) {
try {
if (browser['storage']) {
const resp = await ext.storage.local.get(key);
return... |
import {is} from "bpmn-js/lib/util/ModelUtil";
import {
getLabel as basicGetLabel,
setLabel as basicSetLabel,
} from "bpmn-js/lib/features/label-editing/LabelUtil";
import * as labelUtils from "bpmn-js/lib/util/LabelUtil"
import {isAny} from "bpmn-js/lib/features/modeling/util/ModelingUtil";
import {assign} fr... |
export { default } from './ProfileDisplayTop';
|
import LoginScene from '../components/LoginScene';
import { handleLogin } from '../actions/user';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
const mapStateToProps = ({ user }) => ({
user
});
const mapDispatchToProps = dispatch => ({
handleLogin: payload => dispatch(handleLog... |
var stompClient = null;
function setConnected(connected) {
$("#connect").prop("disabled", connected);
$("#disconnect").prop("disabled", !connected);
if (connected) {
$("#conversation").show();
}
else {
$("#conversation").hide();
}
$("#greetings").html("");
}
function connec... |
// import { resume } from '../../data/resume-data'
document.write(resume.meta.version) |
function add (a, b) {
return a + b;
}
function subtract (a, b) {
return a - b;
}
function sum (array) {
let arraySum;
for (let i; i < array.length; i++) {
arraySum += array[i];
}
return arraySum;
}
function multiply () {
let arraySum;
for (let i; i < array.length; i++) {
arraySum *= array[i]... |
$(document).ready(function () {
var funcion = "";
$('#form_inscripcion_evento').submit(e => {
let id_evento = $('#txtId_evento').val();
let nombre_participante = $('#txtNombreParticipante').val();
let tipo_doc = $('#selTipoDoc').val();
let documento = $('#txtDoc').val();
... |
import React from 'react';
import RecentlyPlayedMusic from '../RecentlyPlayed/RecentlyPlayedMusic.jsx';
import Header from '../Header.jsx';
import R from '../../js/Requisition.js';
const parseToTime = time => {
const minutes = Math.floor(time % 3600 / 60);
const seconds = Math.floor(time % 3600 % 60);
retu... |
import gql from "graphql-tag";
export default gql`
mutation SignIn($login: String!, $password: String!) {
signIn(login: $login, password: $password) {
id
profilePictureUrl
fullName
firstName
lastName
username
email
}
}
`;
|
const path = require("path");
const express = require("express");
const multer = require("multer");
const nanoid = require("nanoid");
const fileDb = require("../fileDb");
const config = require("../config");
const storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, config.uploadPath);
}... |
const shorten = (url) => {
const filteredURL = url.replace(/\?|\=|\&|\:|\+|\-|\.|http|https|\%|\//g ,"")
const length = 5
var shortURL = ""
for (var i = 0; i < length; i++) {
shortURL += filteredURL.charAt(Math.floor(Math.random() * filteredURL.length))
}
return shortURL
}
modul... |
/**
* 화면 초기화 - 화면 로드시 자동 호출 됨
*/
function _Initialize() {
// 단위화면에서 사용될 일반 전역 변수 정의
$NC.setGlobalVar({
labelList: [],
ORDERCAN_CHK: "",// 주문취소
ORDERHOLD_CHK: "", //주문보류
MATCHINGYN: "N"
});
$NC.G_JWINDOW.set({
"minWidth": 1050,
"minHeight": 550
});
$NC.G_CONSTS.... |
var knex = require('./knex');
function Jobs() {
return knex('job');
}
module.exports = {
addcontact: function(firstname, lastname, company, email, message){
return Jobs().insert({
'firstname': firstname,
'lastname': lastname,
'company': company,
'email': email,
... |
/**
* Created by xuwusheng on 15/11/23.
*/
'use strict';
define(['../../../app','../../../services/storage/storage/checkStorageService'], function (app) {
var app = angular.module('app');
app.controller('CheckStorageCtrl',['$scope','$state','$stateParams','$sce','$window','checkStorage',function ($scope,$stat... |
export const deleteAction = id => ({type: 'DELETE', id})
export const initializeAction = {type: 'INITIALIZE'}
export const changeNameAction = name => ({type: 'CHANGE_NAME', name})
export const changeAgeAction = age => ({type: 'CHANGE_AGE', age})
export const requestDataAction = {type: 'REQUEST_DATA'}
export const recei... |
'use strict';
App.
controller('MessageEnvController',
['$scope','$http','$location',
function($scope, $http ,$location) {
//start
var self = this;
var sendMessage = 'http://localhost:808/message/messages';
var messageRecus = 'http://localhost:8080/message/messageRecus';
var messageEnv... |
'use strict';
var fs = require('fs');
var serverTest = require('./helpers/server-test');
var testChangeset = new serverTest.testChangeset();
var serverShouldStatus = function (mock, done, status) {
var options = {
method: 'POST',
url: '/upload/' + testChangeset.changesetId,
payload: mock
};
server.i... |
import React, { useState, useEffect } from "react";
import {
StyleSheet,
ActionSheetIOS,
ToastAndroid,
AlertIOS,
View,
Image,
Text
} from "react-native";
import { useNavigation } from "@react-navigation/native";
import styled from "styled-components/native";
function ContactCard(props) {
const navigati... |
'use strict';
angular.module('ManualReporting', ['ngTable', 'siTable', 'eums.ip', 'PurchaseOrder', 'ReleaseOrder'])
.controller('ManualReportingController', function ($sorter, $scope, $q, $location, PurchaseOrderService, ReleaseOrderService) {
$scope.sortBy = $sorter;
var purchaseOrders = [];
... |
import React from "react";
import { useState } from "react/cjs/react.development";
function Form() {
const [name, setName] = useState("");
const handleSubmit = (e) => {
e.preventDefault();
alert(`Submitting Name ${name}`);
};
return (
<div>
<form onSubmit={handleSubmit}>
<label>
... |
//Base
import React, { Component } from 'react';
//Component
import Map from '../../organisms/Contact/Map';
import Contact from '../../organisms/Contact/Form';
class ContactPage extends Component {
render() {
return (
<section>
<div style={{position: 'relative'}}>
<Map />... |
/************************
des: 页面布局(页面导航)
date: 2016/12/01
auth: mike
************************/
import ngApp from '../../components/app';
ngApp.directive('ngNav',function() {
return {
restrict: "E",
templateUrl: "../../build/html/layout/nav.html",
replace: true,
link: ($scope,$element,attrs) => {
$s... |
const { item } = require( "./validations/item.val") ;
const { sale } = require( "./validations/sale.val") ;
const { user } = require( "./validations/user.val") ;
const { seller } = require( "./validations/seller.val") ;
const { purchase } = require( "./validations/purchase.val") ;
const respond = require... |
const express = require("express");
const router = express.Router();
const commentController = require("../controllers/comment");
router.post("/comment", commentController.create);
router.put("/comment/:id", commentController.update);
router.delete("/comment/:id", commentController.delete);
module.exports = router;
|
// @flow
import yaml from 'js-yaml';
import fs from 'fs';
const data = (): Object => {
const mapFiles = fs.readdirSync('maps');
const pagesFiles = fs.readdirSync('pages');
const pointLangs = fs.readdirSync('points');
// const doc = yaml.safeLoad(fs.readFileSync("/home/ixti/example.yml", "utf8"));
const map... |
$(document).ready(function() {
//array shuffle
function shuffle(primates) {
var currentIndex = primates.length, temporaryValue, randomIndex ;
// While there remain elements to shuffle...
while (0 !== currentIndex) {
// Pick a remaining element...
randomIndex = Math.floor(Math.random(... |
const mutations = {
SET_TOKEN:(state,token)=>{
state.token = token
},
SET_USERNAME:(state,username)=>{
state.username = username
},
// 设置当前正在编辑的文章,将它存放在vuex中
SET_CURRENT_ARTICLE:(state,{id,title,tags,content,isPublished})=>{
state.id = id
state.title = title
... |
/** @jsx React.DOM */
/**
* Notes View
*
* Displays a list of notes.
*/
/*jshint unused:false */
var React = require("react");
var _ = require("lodash/dist/lodash.underscore");
var Base = require("./base.jsx");
var NotesItem = require("./notes/item.jsx");
var ENTER = 13;
module.exports = React.createClass({
// ... |
<!-- layervis - generic togggler for show/hide on any divs by id-->
function toggleLayerVis(id){
if (document.getElementById) {
if (this.document.getElementById(id).style.display=="none")
(this.document.getElementById(id).style.display="block") ;
else
(this.document.getElementById(id).style.display="n... |
// const JUHE_APPKEY = "0dc40f74a5eff40697341bf4a45967d9";
const JUHE_APPKEY = "1d74cd347b169ba4422176ad1350f3b2";
const VUE_APP_URL = "http://localhost:8080"
export {
JUHE_APPKEY,
VUE_APP_URL
} |
import Drawer from './Drawer.component'
export { Drawer } |
dragElement(document.getElementById(("shorts")));
dragElement(document.getElementById(("shorts2")));
dragElement(document.getElementById(("shorts3")));
dragElement(document.getElementById(("hat")));
dragElement(document.getElementById(("jeans")));
dragElement(document.getElementById(("shoes")));
dragElement(docum... |
var request = require("request");
var key = process.env.TWITTER_CONSUMER_KEY;
var secret = process.env.TWITTER_CONSUMER_SECRET;
var cat = key + ":" + secret;
var credentials = new Buffer(cat).toString('base64');
var url = 'https://api.twitter.com/oauth2/token';
request({
url: url,
method: 'POST',
headers... |
export class CoverCurve extends HTMLElement {
constructor() {
super();
const shadowRoot = this.attachShadow({ mode: "open" });
const template = document.getElementById("CoverCurve");
const fragment = document.importNode(template.content, true);
shadowRoot.appendChild(fragment);
}
}
|
import Ember from 'ember';
import Sortable from 'ui/mixins/sortable';
import C from 'ui/utils/constants';
export default Ember.Controller.extend(Sortable, {
application : Ember.inject.controller(),
queryParams : ['sortBy', 'sortOrder', 'eventType', 'resourceType', 'resourceId', 'clientIp', 'authType'],... |
var Entry = require("./diaryDay.js");
function getEntry(today) {
return new Promise(function(resolve, reject) {
var query = Entry.findOne({ "date": { "$eq": today } });
query.exec(function (err, entry) {
if (err) {
reject(err);
}
resolve(entry);
});
});
}
function updateEnt... |
import React, { useState } from 'react'
import axios from 'axios'
export default function Transfer() {
const [fromId, setFromId] = useState('')
const [toId, setToId] = useState('')
const [amount, setAmount] = useState('')
const [transferred, setTransferred] = useState(false)
const [operation, setOp... |
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v11',
center: [-74.50, 40],
zoom: 9
}); |
/*
* File: %<%NAME%>%.%<%EXTENSION%>%
* Author: %<%USER%>%
*
* Created on %<%DATE%>%, %<%TIME%>%
*/
/*
* The MIT License
*
* Copyright 2015 bernard.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
var productController = require('../controllers/product');
var express = require('express');
var productRouter = express.Router();
productRouter.route('/:productId')
.get(productController.getProduct);
productRouter.route('/:productId/tag')
.post(productController.addProductTag);
productRouter.route('/:prod... |
function gitName() {
} |
import config from './config'
import http from 'http'
import mongoose from './mongoose'
import * as MetricsController from './controllers/log.controller'
import url from 'url'
import { renderFile } from './helpers/renderFile'
process.on('uncaughtException', function (err) {
console.log(err)
})
let db = mongoose.con... |
import axios from "axios";
export const storeCategory = (textValue) => {
return axios.post(
`https://localhost:44334/api/addfields/category/?CategoryName=${textValue}`
);
};
export const getCategory = () => {
return axios.get(`https://localhost:44334/api/addfields/getcategory`);
};
export const storeTestTy... |
let currency = {};
$("#overlay").hide();
function convertCurrency(amount, fromCurrency, toCurrency, cb) {
fromCurrency = encodeURIComponent(fromCurrency);
toCurrency = encodeURIComponent(toCurrency);
let query = `${fromCurrency}_${toCurrency}`;
let url = `https://free.currencyconverterapi.com/api/v5/convert?q... |
import fs from 'node:fs/promises'
import terser from '@rollup/plugin-terser'
import pkg from './package.json' assert { type: 'json' }
const clean = (path) => ({
name: 'clean',
buildStart() {
fs.rm(path, {recursive: true, force: true})
},
})
const banner = `/*!
* Circle Progress - v${pkg.version} - ${new Date().... |
var express = require('express');
var router = express.Router();
//引用连接数据库Model
var TestModel = require('../models/testDB');
// test 数据
var resData = [];
resData.push(
{
SortID: "1",
Name: "A",
Sex: "女",
Address: "SSS",
timeDate: "05-08"
}
);
// resData.push(
// {
... |
var slug = function(str) {
var $slug = '';
var trimmed = $.trim(str);
$slug = trimmed.replace(/[^a-z0-9-]/gi, '-').
replace(/-+/g, '-').
replace(/^-|-$/g, '');
return $slug.toLowerCase();
}
$.ajax({
type: 'GET',
url: 'http://comrade-api.azurewebsites.net/postingMongo5/kategori/Artikel',
d... |
define(['jquery', 'pubsub'], function ($, ps) {
return {
init: function (el, events) { // name - event name
ps.sub(events.completed, function (promise) {
promise.success(function (data) {
el.empty();
$.each(data, function () {
... |
/**
* Created by iyobo on 2016-10-17.
*/
const path = require('path');
const root = process.cwd();
module.exports={
appRoot: root,
models: path.join(root,'app','models'),
controllers: path.join(root,'app','controllers'),
views: path.join(root,'app','views'),
schemaTypes: path.join(root,'app','data','types'),
s... |
function register(env) {
env.addGlobal("unixtimestamp", handler);
}
function handler(var_attr) {
return Math.floor(new Date().getTime() / 1000);
}
export {
handler,
register as default
};
|
// src/js/reducers/index.js
import { ADD_ARTICLE, DEL_ARTICLE, SHOW_NOTIFICATION, DATA_LOADED, API_ERRORED } from "../constants/action-types";
const initialState = {
articles: [],
remoteArticles: [],
notification: { message: "", type: "" }
};
function rootReducer(state = initialState, action) {
debugg... |
// crear un elemento HTML .createELement(nombre_etiqueta_html)
const elemento = document.createElement("section")
// Agregamos propiedaes a nuestro elemento
// no se pueden agregar propiedades bajo un objeto :'v
let clasesElemento = ["contenedor", "grid", "flex-content"]
elemento.classList.add(clasesElemento)
elemento.... |
var Restaurant = require('../models/restaurant-model');
require('../models/food-model');
// Action: index
function indexRestaurants(req, res) {
Restaurant.find({}, function (err, restaurants) {
if (err) {
console.log('Could not get list of restaurants:', err.message);
res.status(404).json({ message:... |
import MouseTool from "./mouseTool";
import * as Registry from "../../core/registry";
import SimpleQueue from "../../utils/simpleQueue";
export default class PanTool extends MouseTool {
constructor() {
super();
this.startPoint = null;
this.lastPoint = null;
this.startCenter = null;... |
import { GET_FOLLOWERS } from "../ActionTypes/followTypes";
const followersReducer = (state = {followers: [], loading: true}, action) => {
switch (action.type) {
case GET_FOLLOWERS:
return {...state, followers: [...action.payload.data]};
default:
return state;
}
};
export default followersRedu... |
import styled from "styled-components";
export const StyledTeacherMenu = styled.div`
background: #18191b;
font-size: 1rem;
font-weight: 300;
padding: ${(props) => (props.isComment ? "0 1rem" : "0.3rem 1rem")};
width: 30%;
position: absolute;
right: 0;
top: 2.8rem;
z-index: 1000;
:hover {
cursor... |
//built-in
const os = require('os');
const path = require('path');
const fs = require('fs');
const { promises: fsAsync } = fs;
const { spawn } = require('child_process');
const pty = require('node-pty');
const SSHConfig = require('ssh-config');
// npm lib(used to simplify dealing with child_process i/o)
const {
on... |
import React from 'react';
import { AboutWrapper } from './styles'
import Fade from 'react-reveal/Fade';
import { Parallax } from 'react-parallax';
const About = () => {
// TODO: Create AWS Lambda GET service to provide this data
const brands = [
{name: "Wells Fargo", image: "https://www.pasadenaplayho... |
/*
* Copyright 2015 Kopasoft http://kopatheme.com/.
* MIT License.
*/
"use strict";
jQuery(document).ready(function() {
var masory_epl;
var menu_height;
var map_change;
/*---------------goto top-----------------*/
jQuery(window).scroll(function(){
if (jQuery(this).scrollTop() > 200) {
... |
import React, { Component } from "react";
import SignUpForm from "./SignupForm";
import Welcome from "./Welcome";
export class Landing extends Component {
render() {
const { username, name, password, email } = this.props.signupForm;
return (
<>
<SignUpForm
signup={this.props.signup}
... |
// Notes Collection
var _ = require("lodash/dist/lodash.underscore");
var Backbone = require("backbone");
var NoteModel = require("../models/note");
var NotesCollection = Backbone.Collection.extend({
url: "/api/notes",
model: NoteModel
});
// Singleton.
NotesCollection.getInstance = _.memoize(function () {
ret... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsCompassCalibration = {
name: 'compass_calibration',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="17" r="4"/><path d="M12 10.07c1.95 0 3.72.79 5 2.07l5-5C19.44 4.59 15.9 3 12 3S4.56 4.59 2 7.15l5 5a7.06 7.... |
import React from 'react';
const QualitativeAttr = ({name, value}) => (
<div className="breed-attribute qualitative">
<span className="name">{name}</span>
{' '}
<span className="value">{value}</span>
</div>
)
export default QualitativeAttr;
|
var gulp = require('gulp'),
sass = require('gulp-sass'),
rename = require('gulp-rename'),
plumber = require('gulp-plumber'),
livereload = require('gulp-livereload');
gulp.task('default', ['watch']);
gulp.task('sass', function() {
return gulp.src('assets/sass/*.scss')
.pipe(plumber({
errorH... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.inView = void 0;
/**
* Will return true if the element is in view.
* @param {HTMLElement} el - Ad HTML element.
* @param {Number} offset - Amount of offset to add detect when an the element
* is in view.
* @... |
/*Debemos lograr tomar Los numeros por ID ,
transformarlos a enteros (parseInt) y Sumarlos.
Mostar el resulto por medio de "ALERT"*/
function sumar()
{
var numeroUno=33; //esto es un numero
var numeroDos="33";//esto es una palabra
var suma;
numeroUno=document.getElementById('numeroUno').value;
numeroDos=doc... |
var bodyParser = require("body-parser");
const express = require("express");
Media = require("../models/media");
const postMedia = (req, res) => {
const nom = req.body.nom;
const type = req.body.type;
const short = req.body.short;
const detail = req.body.detail;
const poster = req.body.poster;
... |
exports.up = function(knex, Promise) {
return knex.schema.createTable("book", function(book){
book.increments();
book.string("title");
book.integer("author_id").references("id").inTable("author");
});
};
exports.down = function(knex, Promise) {
return knex.schema.dropTableIfExists... |
import React from 'react'
import classes from './Backdrop.css'
const Backdrop = ({ show, clicked }) => {
return show ? (
<div
className={classes.Backdrop}
onClick={clicked}
></div>
) : null
}
export default Backdrop |
require("./style.css") // 载入 style.css
document.write('Hello World!')
require('./other.js')
|
export default "SELECTING_AI_LEVEL";
|
import React, { useState } from "react";
import { Link } from "react-router-dom";
import { Button, Checkbox, Form } from "semantic-ui-react";
const AddForm = ({ addTour }) => {
const [name, setName] = useState("");
const [info, setInfo] = useState("");
const [image, setImage] = useState("");
const [price, setP... |
import "./index.css"
import GridList from "../../Components/GridList/gridList"
import MustBePhoto from "../../Components/MustBePhoto/mustBePhoto"
import SpaceForYourHeading from "../../Components/SpaceForYourHeading/spaceForYourHeading"
import NextPage from "../../Components/NextPage/nextPage"
const list = [
{
... |
// approveDeploy.js
var app = angular.module('app', [
'ui.grid',
'ui.grid.resizeColumns',
'ui.grid.grouping',
'ui.grid.selection',
'ui.bootstrap',
'angular-loading-bar'
]);
app.controller('MainGridController', function($scope, $http, uiGridConstants) {
$scope.init = function()
{
... |
import React, { Component } from "react";
import Input from "../Input/Input";
import validate from "../../utils/helpers/validate";
const inputs = {
email: {
type: "email",
label: "E-mail",
},
username: {
type: "text",
label: "Username",
},
signUpPassword: {
type: "password",
label: "P... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Segment,
Grid } from 'semantic-ui-react'
class IntroContainer extends Component {
constructor(props) {
super(props);
this.state = {
}
... |
/**
* Created by zz on 2017/11/12.
*/
"use strict";
const productDao = require("../dao/productDao.js");
const teaproduct ={
getProductC(request,response){
let params = [];
let nowPage = request.body.nowPagec;
params.push(parseInt(parseInt(nowPage)-1)*productDao.currentPage);
para... |
import { assert, match, spy, stub } from 'sinon';
import { Base } from '../helper';
import { expect } from 'chai';
import { path as p } from '../../../../lib/string-utils';
import path from 'path';
import proxyquire from 'proxyquire';
const ROOT = '../../../../lib';
describe('info app', () => {
let InfoApp,
in... |
import React from 'react';
import {cyan500} from 'material-ui/styles/colors';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import AddContent from './addcontent';
const muiTheme = getMuiTheme({
palette: {
textColor: cyan500
},
appBar:... |
import React, { Component } from 'react';
import PropTypes from "prop-types";
import Autosuggest from "react-autosuggest";
export default class Navbar extends Component {
constructor(props) {
super(props);
this.state = {
value: "",
suggestions: [],
};
}
escapeRegexCharacters(str) {
r... |
angular.module('troopApp').directive('addActivity',function(){
return {
templateUrl: '../views/modals/addActivity.html',
}
}) |
import React, { Component } from 'react'
import { Link, withRouter } from 'react-router-dom'
class LogoutComponent extends Component {
render() {
return (
<>
<h1>You are logged out</h1>
<div className="container">
Thank You for Using Our Appli... |
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const offerModel = new Schema({
validTill: { type: Date, required: true },
category: { type: Schema.Types.ObjectId, ref: 'Category' },
user_id: { type: Schema.Types.ObjectId, ref: 'User' },
companyName: { type: String, required: true }... |
export default function ProgressBar (props) {
const { completed } = props;
let bgcolor='green';
(completed <= 50) ? bgcolor='green': bgcolor='red';
console.log(completed + " bgcolor "+ bgcolor);
return (
<div className='containerStyles'>
<div className= 'f... |
import React from 'react';
const Banner = () => {
return (
<>
<div className='trade-cryptocurrency-area ptb-100'>
<div className='container'>
<div className='row align-items-center'>
<div className='col-lg-6 col-md-12'>
<div className='trade-cryptocurrency-conten... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.