text stringlengths 7 3.69M |
|---|
import React from 'react';
const SearchPanel = ({label, onFiltersChange}) => {
return (
<input
type="text"
value={label}
onChange={(e) => onFiltersChange('label', e.target.value)}
className="form-control search-panel"
placeholder="Type here to search" />
);
};
export default Sea... |
import React from "react";
import {Button, Card, message, Popconfirm} from "antd";
const text = 'Are you sure delete this task?';
const Placement = () => {
function confirm() {
message.info('Click on Yes.');
}
return (
<Card title="Placement" className="gx-card">
<div className="gx-ov... |
'use strict';
const fns = {};
const noop = () => {};
fns.report = function(msg, next) {
this.prior(msg, (nn, response) => {
msg.origin_role = msg.role;
msg.role = 'reporter';
msg.data = response.data;
try {
this.fire(msg, null);
} catch (e) {}
next(nul... |
//node 模块所以要用require 而不是import
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ROOT_PATH = path.resolve(__dirname);
var APP_PATH = path.resolve(__dirname, './src/app');
var BUILD_PAT... |
'use strict';
describe('Mq Service', function() {
var mqService;
beforeEach(module('FEF-Angular-UI'));
var setUp = inject(function(MqService) {
mqService = MqService;
});
xit("should throw an error if Modernizr is not defined", function() {
Modernizr = undefined;
setUp();
expect(mqService.mq()).toThro... |
export const DOMAIN_API = 'http://localhost:5000/';
export const ENDPOINT_POST_URLS = 'api/urls';
export const ENDPOINT_KEY = 'api/'; //':key'
export const ENDPOINT_DELETE = 'api/urls/'; //':key';
export const ENDPOINT_KEY_STATS = 'api/urls/:key/stats'; |
import firebase from 'firebase';
firebase.initializeApp({
apiKey: 'AIzaSyDcQKiqbyq0t8u1aXXBjEV0rX-UKaeevJc',
authDomain: 'my-doctor-b6c56.firebaseapp.com',
databaseURL: 'https://my-doctor-b6c56.firebaseio.com',
projectId: 'my-doctor-b6c56',
storageBucket: 'my-doctor-b6c56.appspot.com',
messagingSenderId: '... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import John from './John';
import Anna from './Anna'
import ListPeople from './ListPeople'
import Feed from './Feed'
import MyProfile from './MyProfile'
import Messages from './Messages'
import './App.css';
import { Row, Col, Icon, Men... |
var dir_90f0eba0315374579a2e79c7bff15e5c =
[
[ "PDEDialog.java", "_p_d_e_dialog_8java.html", [
[ "PDEDialog", "classde_1_1telekom_1_1pde_1_1codelibrary_1_1ui_1_1components_1_1dialog_1_1_p_d_e_dialog.html", "classde_1_1telekom_1_1pde_1_1codelibrary_1_1ui_1_1components_1_1dialog_1_1_p_d_e_dialog" ]
] ],
... |
/**
*
*/
$(document).ready(function() {
$("#button_submit").click(function() {
var pas1 = $("#pas1").val();
var pas2 = $("#pas2").val();
var hasError = false;
if (pas1 == '') {
hasError = true;
} else if (pas2 == '') {
hasError = true;
} else if (pas1 != pas2) {
hasError = true;
... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { Products } from '../Collections/Products.js';
import { Carts } from '../Collections/Carts.js';
import '../client/layouts/BuyerHomeLayout.html';
import '../client/layouts/BuyerMainLayout.html';
import './buyervegansnacks.html... |
import React, { useContext } from "react";
import styled from "styled-components";
import { DispatchContext, StateContext } from "@home/Game";
import { ThemeContext } from "@common/Layout";
import { keyboard } from "@utils/constants";
import { SET_SCALE } from "@reducer/action-types";
import { FlexBox, StyledLabel } fr... |
const titleWords = require('../src/algorithms/titleWords');
describe('titleWords', () => {
it('should throw an error if the input is not a string', () => {
const actual = titleWords(7);
expect(actual).toBe('you need a string');
});
it('should capitalize ONLY the beginning of each word', (... |
import React from 'react'
import { Title } from '../../../Titles/Title/Title'
export const WhoDie = (props) => {
const { whoDie } = props
return (
<>
<Title title={`${whoDie.death}`} size="small" />
</>
)
}
|
// @flow
import * as React from "react";
import { Collapsible } from "../Collapsible/Collapsible";
import "./css/ListMultipleSelect.css";
type OptionType =
{
id: number,
title: string
};
type Props =
{
title?: string,
value: Array<number>,
options: Array<OptionType>,
disabled?: boolean,
isCollapsed?: boo... |
import React from 'react';
import { Grid, Responsive, Image, Segment, List, Icon } from 'semantic-ui-react';
import Layout from '../components/Layout/';
import Trio from '../components/Trio';
import DigitalImage from '../../public/static/images/digital-image.jpg';
import MapImage from '../../public/static/images/map.pn... |
const name = {
ACTIVE: 'active', // 激活状态
CHECK: 'check_status', // 审核状态
RECEIVE_ORDER_STATUS: 'order_receive_status', // 待接订单状态
INPUT_ORDER_STATUS: 'order_create_status', // 订单录入状态
SPLIT_ORDER_STATUS: 'order_split_status', // 订单拆分状态
JOB_ORDER_STATUS: 'order_maintain_status', // 订单维护状态
DIRECTION: ... |
/**
* Call to action button
*
* Button that highlights common user needs. Appears on the homepage. Provides a link to a webpage where people can take action with the department. Includes a text label and link. Copy writing tip: Ideally starts with a verb.
*
*/
(function (blocks, editor, i18n, element, components,... |
'use strict';
/* App Module */
var diceApp = angular.module('diceApp', [
'ngAnimate',
'diceControllers',
]);
diceApp.factory('sheetFactory', function() {
return new Sheet();
});
diceApp.factory('gameFactory', function() {
return new DiceGame();
}); |
import React, { useState } from 'react';
import './App.css';
import axios from 'axios';
function App() {
const [ handle, setHandle ] = useState(null);
const [ codes, setCodes ] = useState([]);
let [ message, setMessage ] = useState('');
const handleGetMessage = async (codes) => {
let c = codes.join(" ");... |
import { listen } from 'popmotion';
import scroll from 'stylefire/scroll';
import React, { Component } from 'react';
import CommandBar from './CommandBar';
import ScrollBar from './ScrollBar';
import SystemBar from './SystemBar';
import Viewport from './Viewport';
import './index.module.css';
export default class Ab... |
import { getStyledSystemColors } from './getStyledSystemColors'
import chroma from 'chroma-js'
// colors: {
// primary: "#000",
// secondary: "#fff",
// ...
//}
export function getColorsJSON(colors) {
const colorsJSON = {}
Object.entries(colors).forEach((colorObj) => {
const styledSystemColors = getStyledS... |
/* M:WoH Battle Simulator - Gary Longwith */
/* Initialization and Presentation Layer */
/* This file connects the page to the application logic */
requirejs.config({
baseUrl: 'assets/js',
paths: {
app: '../../src/modules'
}
});
requirejs(['jquery','app/simulator'],
function ($, model) {
$.fn.exists = functio... |
test_score_1 = 0;
test_score_2 = 0;
test_score_3 = 0;
/*if(!document.getElementById("below_three").checked | !(document.getElementById("from_three_to_four").checked) | !(document.getElementById("five_and_over").checked)) {
window.alert("Please select your age before clicking on eyechart for the test or else, ... |
import { useEffect, useState } from 'react'
import { checkGitIsInstalled } from '../utilities/gitLogic.js'
export const useGitIsInstalled = () => {
const [gitIsInstalled, setGitIsInstalled] = useState(false)
useEffect(() => {
checkGitIsInstalled().then(verdict => setGitIsInstalled(verdict))
}, [])
return gi... |
import React from "react"
import styled from "styled-components"
import { Container, HeadingWrapper, Heading } from "../../Common/Utility"
const ContentWrapper = styled.div`
position: relative;
padding: 4rem 0;
background: #d9be8f;
::before {
content: "";
position: absolute;
left: 50%;
top: 0;... |
var gulp = require('gulp');
var watch = require('gulp-watch');
var less = require('gulp-less');
var path = require('path');
var svgSprite = require('gulp-svg-sprite');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer');
var cssnano = require('cssnano');
gulp.task('default', function() {
... |
export { default as Table } from "./reactResponsiveTable";
|
import React from "react";
export default class Project extends React.Component {
render() {
const image = this.props.imageURL;
return (
<div className="project dark window">
<h3>{this.props.title}</h3>
<img src={image} alt={this.props.alt} width="80%" />
<a href={this.props.live... |
import React from 'react'
import { Landing } from '../components/Landing'
import { Navbar } from '../components/Navbar'
export const index = () => {
return (
<div>
<Navbar/>
<Landing/>
</div>
)
}
|
/*
* bk-switch
* https://github.com/lemonroot/bk-switch
*
* Copyright (c) 2013 lemonlwz
* Licensed under the MIT license.
*/
(function($) {
var method = {
init: function(){
this.elem = $(this.options.elem);
this.content = this.elem.find('.switch-content');
this.ul = this.content.find('ul'... |
import {StyleSheet} from 'react-native';
export default StyleSheet.create({
textStyle: {
fontFamily: 'SFUIText-Regular',
alignSelf: 'center',
color: '#fff',
fontSize: 15,
paddingTop: 10,
paddingBottom: 10,
},
buttonStyle: {
flex: 1,
alignSelf: 'stretch',
backgroundColor: '#423... |
export const SAVE_DATA='SAVE_DATA';
export const saveData=(data)=>
{
return async (dispatch)=>
{
try
{
dispatch({
type:SAVE_DATA,
data:data
})
}
catch(Err)
{
console.log('error at save data',Err)
... |
var app = angular.module('app',
['ui.router',
'restangular',
'ui.bootstrap',
'ngAnimate',
'ngSanitize',
'ui.validate',
'ngTouch',
'SignInCtrl',
'MainCtrl',
'ListCtrl',
'DetailCtrl'],
['$stateProvider',
'$urlRouterProvider',
function($stateProvider, $urlRout... |
import io from 'socket.io-client'
import feathersClient from 'feathers/client'
import socketio from 'feathers-socketio/client'
import hooks from 'feathers-hooks'
import authentication from 'feathers-authentication/client'
import wings from 'wings-feathers'
let socket = io('//localhost:3030')
let feathers = fea... |
//words split
var text="hello hai hello hai"
var words=text.split(" ")
var dict={}
for(var word of words){
if(word in dict){
dict[word+=1]
}
else{
dict[word]=1
}
}
console.log(dict)
|
// Create a module that exports a function that takes a number as a parameter and stores it in a list.
// The list should not be accessible from outside the module.
// Export another function that returns a version of the data list that is sorted in ascending order.
// The function you use to sort the data correctly s... |
import React, { Component } from 'react'
import { ScrollView, Text, View } from 'react-native'
import PropTypes from 'prop-types'
import { Query } from 'react-apollo'
import Touchable from '@vivintsolar-oss/native-vs-touchable'
import SearchLayout from '../../common/SearchBar'
import get from 'lodash.get'
import search... |
const expect = require('chai').expect
const server = require('../index');
describe('test', () => {
it('should return a string', () => {
expect('test ci with travis').to.equal('test ci with travis');
});
});
|
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var hammer
var ground
var stone
var iron
function preload()
{
}
function setup() {
var canvas = createCanvas(1200, 400);
engine = Engine.create();
world = engine.world;
//Create the Bodies Here.... |
define([
'backbone'
],
function(Backbone) {
// To save us repeating ourselves.
var BaseView = Backbone.View.extend({
initialize: function() {
this.listenTo(this.model, 'change', this.render);
},
render: function() {
this.$el.html(this.template(this.model.to... |
$(document).ready(function() {
/********************************************
* Navbar Class Swap
* adapted from
* @author [email protected]
*
********************************************/
/* on home page ONLY, swap out navabar classes if user scrolls down 50 px */
$(window).scroll(function() {
if($(thi... |
Presence.state = function() {
if(Meteor.user()) {
return {
currentChartId: Session.get("chartId"),
user: Meteor.user().profile.name,
}
}
}
Template.chartEditStatus.helpers({
manyConnections: function() {
var count = Presences.find().fetch().length;
if (count > 1) {
return true;
... |
let a = 5;
let b = 10;
console.log("a", a); // 5
console.log("b", b); // 10
/* Write your code here so that the values of "a" and "b" are swapped and console.log them again. */
let mainColor = "tomato";
let secondaryColor = "limegreen";
console.log("mainColor", mainColor);
console.log("secondaryColor", secondaryC... |
const assert = require('assert');
const {encode,decode} = require('../main.js');
const json = {
string: 'hello world',
number: 100,
arr: [1,6,"hello"],
date: new Date(),
buf: new Buffer('hello world')
};
const jsonStr = encode(json);
const obj = decode(jsonStr);
assert.deepEqual(json,obj); |
const bent = require('bent');
const fs = require('fs').promises;
const path = require('path');
const docPath = "https://api.hubspot.com/cos-rendering/v1/hubldoc";
const getJSON = bent('json');
const nunjucksFilters = [
'abs',
'batch',
'capatalize'
];
(async () => {
let existingFilters = await getSupporte... |
/*
* Copyright 2018 ConsenSys AG.
*
* 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... |
jQuery(function($){
$("#output").lunbo({
imgurl:["img/index/7d2f0da441884ab98365e768dfa61d5e.jpg",
"img/index/ba40a2e1b72d40b99065cfe4419fe2bd.jpg",
"img/index/65e3c6fd815645f497e2b35e12800a09.jpg",
"img/index/8518fd4a74f443a896df10921bfcf905.jpg",
... |
'use strict'
import Axios from 'axios';
import { isEmpty, isEqual } from 'lodash';
import HttpStatus from 'http-status-codes';
const axios = Axios.create({
baseURL: 'https://slack.com/api',
timeout: 20000,
withCredentials: true
});
const defaults = {
token: undefined,
channel: undefined,
webhookURL: undefined
}... |
import React from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import { makeStyles } from '@material-ui/core/styles';
import './style.css';
const useStyles = makeStyles(() => ({
cancelbutton: {
marginTop: 30,
},
}));
export const CancelButton = ({ onClick }) => {... |
import * as React from 'react';
import { DataGrid } from '@material-ui/data-grid';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import { useState, useEffect } from "react";
import { Link } from "react-router-dom";
import PrescriptionDataService from "../../../servi... |
var searchData=
[
['tearcontroller_2ecs_56',['TearController.cs',['../d7/d76/_tear_controller_8cs.html',1,'']]]
];
|
import React, { useContext, useState } from 'react'
import { useHistory } from "react-router-dom"
import { motion } from 'framer-motion'
import { SweetConfirm, SweetError, SweetSuccess, SweetWrong } from '../../SweetAlert'
import { Context } from '../../utils/context'
import { notEmpty, ValidatePhone, validatePinCode }... |
/*global define*/
define([
'underscore',
'backbone',
'models/user-model'
], function (_, Backbone, UserModel) {
'use strict';
var UsersCollection = Backbone.Collection.extend({
//Model used for this collection
model: UserModel,
//Default url to call to fetch this collect... |
/* See license.txt for terms of usage */
define([
"firebug/firebug",
"firebug/lib/trace",
"firebug/lib/object",
"firebug/lib/domplate",
"firebug/lib/events",
"firebug/lib/dom",
"firebug/lib/css",
"firebug/lib/array",
"firebug/dom/domBaseTree",
"firebug/lib/locale",
"firebug/... |
'use strict';
const routes = require('../../constants/routes.json');
const onSubmit = (bindActions) => {
const { login, navigate } = bindActions;
return (loginData) => {
return login(loginData)
.then(() => navigate(routes.tasks));
};
};
module.exports = {
onSubmit
}; |
'use strict';
module.exports = BigNumber; // jshint ignore:line
|
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
FlatList,
SectionList,
Dimensions,
Platform,
Text,
ViewPropTypes,
View,
ActivityIndicator,
RefreshControl,
StyleSheet,
} from 'react-native';
import ListView from 'deprecated-rea... |
var World = require('./world');
var CRUISING = 0.00001;
function Bullet(player, now) {
var self = this;
var p = player.get_actual(now);
var name = p.name + "_bullet";
var type = "bullet";
var _id = p.id + "___" + now;
var r = p.r;
var dy = CRUISING * Math.cos(r);
var dx = CRUISING * M... |
import React from 'react';
//import { Link} from "react-router-dom";
import 'bootstrap/dist/css/bootstrap.min.css';
import '../auth/Auth';
//import "../auth/Signup";
//import "../auth/Login";
const Home = (props) => {
console.log(`HOME PROPS: `, props)
return (
<div classNam... |
var num1;
var num2;
num1 = prompt("Enter Number 1");
num2 = prompt("Enter Number 2");
var div = parseInt(num1)/parseInt(num2);
document.write("Division of "+num1+" and "+num2+" is "+div); |
'use strict';
System.register(['aurelia-framework', 'jquery', 'periscope-framework', 'lodash'], function (_export, _context) {
var Container, Decorators, bindable, $, StringHelper, IntellisenceManager, GrammarTree, SearchBox, ExpressionParser, PermissionsCustomAttribute, _, _createClass, DefaultSearchBox;
functio... |
import {Dimensions, Platform, StyleSheet} from 'react-native'
export default StyleSheet.create({
container: {
display: 'flex',
alignItems: 'center'
},
viewBody: {
paddingTop: 20,
},
textCongratulations: {
color: '#D4A452',
textAlign: 'center',
fontSiz... |
import express from 'express';
import pg from 'pg';
import cors from 'cors';
import dayjs from 'dayjs'
const app = express();
app.use(cors());
app.use(express.json());
const { Pool } = pg;
const connection = new Pool({
user: 'bootcamp_role',
password: 'senha_super_hiper_ultra_secreta_do_role_do_bootcamp',
host... |
const { Stream: $ } = require('xstream')
const Cycle = require('component')
const dropRepeats = require('xstream/extra/dropRepeats').default
const prop = require('ramda/src/prop')
const lensProp = require('ramda/src/lensProp')
const over = require('ramda/src/over')
const unless = require('ramda/src/unless')
const pipe ... |
import { applyMiddleware, combineReducers, createStore } from 'redux'
import profileReducer from './profile-reducer'
import usersReducer from './users-reducer'
import thunk from 'redux-thunk'
import commensReducer from './comments-reduser'
let reducers = combineReducers({
commetnsPage: commensReducer,
profilePage: p... |
const PORT = 5000;
const express = require ('express');
const app = express();
app.listen(PORT, () => {
console.info('Express server listening on port ' + PORT)
});
app.get('/', (req, res) => {
res.send('Express server')
}); |
var BaseComponent = /** @class */ (function (_super) {
function BaseComponent(props, context) {
var _this = _super.call(this, props, context) || this;
return _this;
}
})();
export { BaseComponent };
|
import { combineReducers } from 'redux'
import {showLoaderReducer, showDropzoneLoaderReducer} from './showLoader'
import {notificationsReducer} from './notifications'
import {currentUserReducer} from './currentUser'
import {artGalleryReducer, updatingArtGalleryReducer} from './artGallery'
import {artistGalleryReducer, ... |
import React from 'react';
import Wrapper from './Wrapper'
import FeatureExcerpt from '../FeatureExcerpt'
import { GridTile, GridList } from 'material-ui/GridList';
export default class FeatureList extends React.Component {
static propTypes = {
features: React.PropTypes.array
};
renderFeatures(features) {
... |
import thumbnail from "./images/iuCorps-thumb-optimized.jpg";
import hero from "./images/iuCorps-hero-optimized.jpg";
import postit1 from "./images/iuCorps-postit1.png";
import postit2 from "./images/iuCorps-postit2.png";
import postit3 from "./images/iuCorps-postit3.png";
import siteMap from "./images/iuCorps-sitemap-... |
import React, { Component } from 'react';
import styles from './createCheckInfo.styles';
import withStyles from "@material-ui/core/styles/withStyles";
import RequestResolver from "../../helpers/RequestResolver/RequestResolver";
import {connect} from "react-redux";
const BlindSignature = require('blind-signatures');
con... |
import { GET_HOT_CITYS, CHANGE_CITY, FIND_AIR_PORT, EMPTY_AIR_PORT} from '../actions/flightCitys.js'
const inint = {
tabs: [{
title: '国內'
}, {
title: '国际·港澳台'
}],
selectIndex:0,
historyDomesticCitys: wx.getStorageSync('historyDomesticCitys')||[],
historyInternationalCitys: wx.getStorageSync('histo... |
var firstNum = "";
var secondNum = "";
var operator = "";
var isFirstNum = function(){
if ("" == operator)
return true;
return false;
}
$( ".numbers" ).click(function() {
var isFirst = isFirstNum();
if (isFirst)
firstNum = firstNum + $(this).html();
else
secondNum = secondNum + $(this).html();
con... |
export default function nameFormatter(name) {
if (name.length < 30) return name;
const initial = name.slice(0, 20);
const extension = name.split(".")[1];
if (extension) {
return initial + "...." + extension;
}
return initial;
}
|
// Generated by CoffeeScript 1.6.2
/*
IDE Definition
*/
define(['ace/ace'], function(ace) {
var Editor;
Editor = (function() {
function Editor() {}
Editor._id = 0;
Editor.$editors = [];
Editor.$curEditor = null;
Editor.$fontSize = parseInt(Settings.fontSize);
Editor.increaseFont = fun... |
import React from 'react';
import { Text, View, StyleSheet, TouchableOpacity } from 'react-native';
export const Todo = (props) => {
return (
<TouchableOpacity activeOpacity={0.5}
onLongPress={() => props.removeTodo(props.id)}
onPress={() => props.openTodo(props.id)}>
<V... |
import React, { Component } from 'react';
import Destiny from './components/Destiny';
class App extends Component {
render() {
return (
<div className="Destiny">
<Destiny />
</div>
);
}
}
export default App;
|
import React from "react";
import { Link } from "react-router-dom";
import classes from "./MainNavigation.module.css";
import hostel_logo from "../images/hostel-logo.png";
import { useStateValue } from "../StateProvider";
import { auth } from "../firebase";
function MainNavigation() {
const imageStyles = {
backg... |
/**
* Created by Lucifer on 2016/11/23.
*/
<?
var content = $('#userid').html();
if(content !== "" && title1.value.length !== 0)
{
$.ajax(
{
type: "post",
async:false,
dataType: 'html',
url: "http://localhost/EASYBUY/home/user/update",
data: "co... |
import React, {useState, useEffect, useContext} from "react";
import { userContext } from "../../utils/Context.js";
import { Link } from "react-router-dom";
import logo from '../../assets/logo.svg'
import "./style.css";
function Nav (props) {
const [currentUser, setCurrentUser] = useContext(userContext);
cons... |
import { firstLists } from "./firstState";
const list = (state, action) => {
switch (action.type) {
case "CREATE_LIST":
return {
title: action.title,
};
default:
return state;
}
};
const lists = (state = firstLists, action) => {
switch (action.type) {
case "CREATE_LIST":
... |
const request = require('request');
//const serverUri = "http://rdkucs1.il.nds.com:57778/";
const serverUri = "http://localhost:9090/signaling/1.0/";
function getOffer(connectionId) {
console.log("requesting offer for connection id: " + connectionId)
request.get(serverUri + 'connections/' + connectionId + '/... |
import express from 'express';
import {render} from 'mjml-react';
import * as email1 from './email';
import * as email2 from './email-second';
const port = 3000;
const app = express();
app.get('/2', (req, res) => {
const {html} = render(email2.generate(), {validationLevel: 'soft'});
res.send(html);
});
app.get(... |
function adduser(){
username=document.getElementById('username').value;
localStorage.setItem('username',username);
window.location='index2.html';
}
const inputs = document.querySelectorAll(".input");
function addcl(){
let parent = this.parentNode.parentNode;
parent.classList.add("focus");
... |
/**
* Created by TULGAA on 4/7/2017.
*/
angular
.module('altairApp')
.controller('indexController', [
'$scope','mainService','$filter','$rootScope','$http','$state',
function ($scope,mainService,$filter,$rootScope,$http,$state) {
$scope.searchForm = {};
$scope.searchInP... |
import React, { Component } from 'react';
import FormInput from '../../components/FormInput'
import Actions from '../../flux/Actions';
class RegisterStepOne extends Component {
constructor(props) {
super(props);
this.continue = this.continue.bind(this);
this.setValue = this.setValue.bind(this);
this.birthdat... |
/**
* Created by py on 02/09/2018.
*/
module.exports = class ChainController {
constructor(blockService) {
this.blockService = blockService;
}
getChain(request, response) {
let heightPromise = this.blockService.getBlockHeight();
let validChainPromise = this.blockService.validateCh... |
import React from 'react';
import {Component} from "react";
import user from '../asset/abdo.jpg';
import {NavLink} from "react-router-dom";
import {connect} from 'react-redux';
export class PostDetails extends Component {
goToUserArticels = (name) =>{
this.props.history.push({ pathname: '/userArticle',use... |
import React from "react";
import "../components/Register.scss";
import PhoneInput from 'react-phone-input-2'
const initialState={
username:"",
password:"",
email:"",
emailError:"",
user:"",
number:"",
usernameError:"",
passwordError:"",
userError:"",
numberError:""
}
export de... |
///////////
//Client side of file controll
//////////
const express = require('express');
const router = express.Router();
const mongoose = require('mongoose');
const File = require('../models/mfile');
//GET all files on the Client side
router.get('/',(req, res, next) => {
File.find({'user' : 'Client'})
.se... |
export const INCREMENT_COUNTER = 'INCREMENT_COUNTER';
export const DECREMENT_COUNTER = 'DECREMENT_COUNTER';
export const DECREMENT_COUNTER_SUCCESS = 'DECREMENT_COUNTER_SUCCESS';
export const ADD_FORM = 'ADD_FORM';
export const REMOVE_FORM = 'REMOVE_FORM';
export const UPDATE_FORM = 'UPDATE_FORM';
export const incremen... |
import { connect } from 'react-redux';
import EmailAccept from './EmailAccept';
import {EnhanceLoading} from '../../../components/Enhance';
import {buildOrderPageState} from '../../../common/orderAdapter';
import {postOption,fetchJson, showError} from '../../../common/common';
import {dealActions} from '../../../common... |
class CountriesTable
{
constructor(countries)
{
this.table = this.getCountriesAsTable(countries);
}
getTable()
{
return this.table;
}
getCountriesAsTable(countries)
{
var self = this;
var table = $("<table></table>");
countries.forEach(function(... |
const micro = require('micro')
let router, port, server
let prod = process.env.NODE_ENV === 'production' | process.env.NODE_ENV === 'PRODUCTION'
const start = () => {
if(server && prod) return false
if(server && !prod) server.close()
let index = require('./index.js')(start, stop)
index.start()
server = mic... |
import { css } from 'emotion';
const sliderWrapper = css`
position: relative;
width: calc(100vw - 18%);
margin: 100px auto;
overflow: hidden;
padding: 40px 0;
`;
export default sliderWrapper;
|
import BaseModel from '../../../base/model/base';
export default class ForumoverviewModel extends BaseModel {
} |
var functions________________c________8js____8js__8js_8js =
[
[ "functions________c____8js__8js_8js", "functions________________c________8js____8js__8js_8js.html#aca17726ead58ab78f0d294f74ede14db", null ]
]; |
import { Theme } from "../../model/theme"
// pages/theme/index.js
Page({
/**
* 页面的初始数据
*/
data: {
_theme:null,
recommend:null,
_tName:"",
rows:3,
showLoading:true,
showtitle:true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: async function (options) {
const tName = options.tNam... |
/**
* 全局filters, 定义通用处理函数
*/
export const str = val => {
return val + parseInt(Date.parse(new Date()) / 1000); //当前时间戳
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.