text
stringlengths
7
3.69M
import React, { useState } from 'react' import numeral from 'numeral' import Button from '../components/Button' import Link from '../components/Link' // import VideoContainer from '../components/VideoContainer' import SearchBox from '../components/SearchBox' import DatasetCard from '../components/DatasetCard' import {...
function active() { const menu = document.querySelector("img#menu"); const close = document.querySelector("img#close"); const m1 = document.querySelector("main#m1"); const m4 = document.querySelector("main#m4"); const aside = document.querySelector("aside"); menu.addEventListener("click", (e) => { menu...
module.exports = { up: (queryInterface, Sequelize) => queryInterface.createTable('compounds', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.BIGINT }, name: { allowNull: false, type: Sequelize.STRING }, ...
/** * 通用公共方法 * Created by lvls on 2018/1/30. */ $(document).ready(function() { }); // 恢复提示框显示 function resetTip(){ top.$.jBox.tip.mess = null; } // 关闭提示框 function closeTip(){ top.$.jBox.closeTip(); } //显示提示框 function showTip(mess, type, timeout, lazytime){ //resetTip(); setTimeout(function(){ ...
'use strict' const passport = require('passport'); const error_types = require('../controllers/error_types'); let middlewares = { ensureAuthenticated: (req, res, next) => { passport.authenticate('jwt', { session: false }, (err, user, info) => { if (info) { return next(new error_types.Error40...
//localHandler({"result":"我是远程js带来的数据"}); var localHandler = {"result":"我是远程js带来的数据"};
a = new Array(); a[4546625535] = 1; console.log(a[4546625535]);
import React from 'react' import Listfile from '../Components/Sunday/Listfile' const Sundaylist = () => { return ( <Listfile/> ) } export default Sundaylist
class MoodboardHelper { setTestHelper(ui) { this.ui = ui; return this; } setWrapper(wrapper) { this.wrapper = wrapper; return this; } getImages() { return [ {id: 1, src: 'abc.jpg', url: 'https://loremflickr.com/549/280/?71087', width: 549, height: 280}, {id: 2, src: 'def.jpg', url: 'https://...
var vumigo = require('vumigo_v02'); var libxml = require('libxmljs'); var crypto = require('crypto'); var App = vumigo.App; var Choice = vumigo.states.Choice; var ChoiceState = vumigo.states.ChoiceState; var FreeText = vumigo.states.FreeText; var EndState = vumigo.states.EndState; var HttpApi = vumigo.http.api.HttpApi...
/** * @name 地区枚举 */ import base from './base' const {file_host} = base export default [ { icon:`${file_host}/1.png`, text:'每日健康提醒', url:'#/lists/health' }, { icon:`${file_host}/2.png`, text:'我的治病经验', url:'#/experience' }, { icon:`${file_host...
function MainMenu() { this.background = null; }; MainMenu.prototype = { preload: function() { console.log("Main Menu PRELOADING"); }, create: function() { this.level_change_triggered = false; this.background = game.add.sprite(0,0, 'mainMenuBackground'); this.adc_logo = new ADCLogo(1100, 775, '...
import { combineReducers } from 'redux'; import songListReducer from './songListReducer'; import selectedSongReducer from './selectedSongReducer'; export default combineReducers({ songs: songListReducer, selectedSong: selectedSongReducer });
import React from 'react'; import {View, Text, TouchableOpacity, StyleSheet, Image, Dimensions, Alert} from 'react-native'; import PropTypes from "prop-types"; import Colors from "../constants/Colors"; const {width: SCREEN_WIDTH, height: SCREEN_HEIGHT} = Dimensions.get("window"); const SavedCardListItem = (props) => ...
module.exports = app => { const sectionModel = require('../models/sections/section.model.server'); const enrollmentModel = require('../models/enrollments/enrollment.model.server'); // find all enrollments app.get('/api/enrollment', (req, res) => enrollmentModel.findAllEnrollments() ...
import React from 'react'; import {Field, reduxForm} from 'redux-form'; import {Textarea} from '../../common/FormsControls/FormsControls'; import {required, maxLengthCreator} from '../../../utils/validators/validators'; import {Button, Form} from 'react-bootstrap'; import {nameAddMessageForm} from '../../common/FormsCo...
import React from 'react' import Link from 'gatsby-link' const IndexPageEn = () => ( <div> <div className="Hero"> <div className="HeroGroup"> <h1>HK Promising Academy</h1> <h2>We free our students from the restriction of locations by <strong>teaching online</strong>.</h2> <p>we grou...
const Sequelize = require('sequelize'); const DatabaseNormalizer = require("../util/DatabaseNormalizer"); const JalaliDate = require("../util/JalaliDate"); const {firstWithValue} = DatabaseNormalizer; module.exports = (sequelize, DataTypes) => { return VisitAppointment.init(sequelize, DataTypes); } class VisitAppoi...
// TODO: upload empty texture if null ? maybe not // TODO: upload identity matrix if null ? // TODO: sampler Cube let ID = 1; // cache of typed arrays used to flatten uniform arrays const arrayCacheF32 = {}; export class Program { constructor(renderer, { vertex = undefined, fragment = undefined, uniforms = {}, tran...
export const robots=[{ name:"Farhan", id:"1", email:"[email protected]" },{ name:"Falak", id:"2", email:"[email protected]" },{ name:"Saif", id:"3", email:"[email protected]" },{ name:"Daniyal", id:"4", email:"[email protected]" },{ name:"Fareha", ...
const Command = require("../base/Command"); const { ErrorMsg } = require("../functions"); module.exports = class Template extends Command { constructor(bot) { super(bot, { name:"clear", aliases:["purge"], category:"Moderation", usage:"!clear <amount> (reason) or !clear <user> [this will clear the most re...
module.exports = { mongoURL : 'mongodb://admin:[email protected]:51223/lcocourse', secret : "mystrongsecret" };
exports.seed = function(knex) { return knex("products").insert([ { productName: "Test Product - Store One", color: "white", size: "med", type: "dtg", designId: "1", product_id: "canvas-unisex-t-shirt", fullSizeURL: "https://res.cloudinary.com/dze74ofbf/image/uploa...
var map = new L.Map('introMap', { zoomControl: false }).setView([55.745, 37.606], 17); /* * Init layers */ var lt_cmade = L.tileLayer('http://{s}.tile.cloudmade.com/324b77d6f6774461a4ba74d61caba29b/997/256/{z}/{x}/{y}.png', { attribution: 'Данные карты &copy; участники <a href="http://openstreetmap.org">Open...
import DS from 'ember-data'; import config from '../config/environment' export default DS.RESTAdapter.extend({ host: config.APP.host, header: function() { return { 'sec-user-toke': 'dadasdasd' } } });
var React = require('react'), Link = require('react-router').Link; module.exports = React.createClass({ render: function () { var descr = this.props.category.description; var style = {}; if (this.props.category.img_url_big){ style = ({ backgroundImage: 'url('+this.props.category.img_url...
$(function() { $.localScroll(); });
import { put, post, get } from "./baseApi"; const getProject = async () => { return await get(`/projects`); }; const submitProject = async (data) => { return await post("/projects", data); }; const editProject = async (id, data, user) => { return await put(`/projects/${id}`, data); }; export { getProject, sub...
require('./deviceRouteTest'); require('./extRouteTest'); require('./configurationRouteTest'); require('./checkNestedFetching');
//we don't need to redefine the player and the board classes because raos.html will include both board.js and controller.js //this is initilized by main.js // var io = io.connect(); //controller vars var playerID; function join_game(game_id){ //send 'controller_connect' message to server so it can keep track of us. }...
export const UNSELECT_CHARACTER_TWO = "unselectCharacterTwo"; export default function unselectCharacterTwo() { return { type: UNSELECT_CHARACTER_TWO }; }
import React from "react" import styled from "styled-components" import Headline1 from "../Headlines/Headline1" import useMatchMedia from "../../hooks/useMatchMedia" import { above } from "../../styles/Theme" const BelowHeaderHeadlineSection = () => { const showHeadline = useMatchMedia({ width: 600 }) return ( ...
import React from 'react'; export const TimerHeader = ((props) => { return <h3>Działam od: {props.time} sekund</h3> })
const assert = require('assert'); function inc(x) { return x + 1; } function add(x, y) { return inc(x + y); } assert.equal(add.apply({}, [1, 2]), 4)
const express = require('express'); const page = require('../controller/page'); const template = require('../lib/template'); const router = express.Router(); router.get('/', page.index); module.exports = router;
var pyconKr = (function ($) { var $body = $('body'), $window = $(window), doc = document, $link = $('#nav a, #main a'), $mMenu = $('#m-menu'), scrollAnchor, scrollPoint, map, eventLocationMarker; function init() { $link.on('click', function () { scrollAnchor = $(this).attr...
import React, { useContext } from 'react' import { Context } from '../../../context/Context' export const AddProduct = (props) => { const {values, handleInputChange, uploadImage} = useContext(Context) const { id, marca, nombre, descripcion, precio } = values const handleFileChange = (e) => { c...
import React from 'react'; import FeatureTidbit from '../FeatureTidbit' import Wrapper from './Wrapper' import { withGoogleMap, GoogleMap, Marker } from "react-google-maps"; import _ from 'lodash' import withScriptjs from 'react-google-maps/lib/async/withScriptjs'; import InfoBox from "react-google-maps/lib/addons/Info...
import {plainProvedGet as g} from 'src/App/helpers' import {getFilteredVideoList} from 'ssr/lib/helpers/mapFns' export default x => ({ videoList: getFilteredVideoList( g(x, 'page', 'GALS_INFO', 'ids'), g(x, 'page', 'GALS_INFO', 'items') ), })
(function () { 'use strict'; angular .module('app.outbox') .controller('OutboxController', OutboxController) OutboxController.$inject = ['mailservice', 'logger']; function OutboxController(mailservice, logger) { /* jshint validthis:true */ var vm = this; vm.tit...
'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; const resultRouter = router.namespace('/results'); resultRouter.post('/list', controller.result.list); };
import Sequelize from 'sequelize'; import Admin from './Admin.model'; import db from '../config/database'; const Employee = db.define('employee', { id: { type: Sequelize.INTEGER, allowNull: false, autoIncrement: true, primaryKey: true, }, firstname: { type: Sequelize.STRING, allowNull: fa...
import { getNotificationsUser, getPages, sendMail, followFanfic, disFollowFanfic, followAuthor, disFollowAuthor, preventAbuse, favorite, unfavorite, getFollowAuthor, getFollowFanfic } from "@/api/other" export const namespaced = true; export const state = { news: [], notifications: [], pages: [], cont...
function scroll_to(div){ $('html, body').animate({ scrollTop: $(div).offset().top },1000); } $(window).resize(function(){ if ($(window).width()>=845){ $("#mobile-menu").hide(); } }); scroll_to("#container"); $('html').css('overflow', 'hidden'); $("#mobile-menu-img").click(function(event){ even...
const api = require("./api"); const http = require("http"); const url = require("url"); const https = require("https"); const fs = require("fs"); const MIME = { html: "text/html", css: "text/css", js: "application/x-javascript", png: "image/png", jpg: "image/jpeg", gif: "image/gif", mp3: "audio/mp3", j...
(function () { "use strict"; function doubler(number) { console.log(number); if (number <= 70000) { doubler(number * 2); } } doubler(2); // This is how you get a random number between 50 and 100 var allCones = Math.floor(Math.random() * 50) + 50; // Th...
'use strict'; angular.module('miwurster.model') .factory('UserService', ['Restangular', 'User', function (Restangular, User) { var resource = Restangular.all('users'); Restangular.extendModel('users', function (object) { return User.mixInto(object); }); return { findAll: function () { ...
import Happens from 'happens'; export default new class Screen{ constructor(){ Happens( this ); this.width = window.innerWidth; this.height = window.innerHeight; window.addEventListener('resize', this.onResize.bind(this), false); this.onResize(); } onResize(){ this.width = window.innerWidth; t...
const blocks = document.getElementsByClassName("block"); const turn = document.getElementById("turn"); const result = document.getElementById("result"); let tMatrix = [ [-1, -1, -1], [-1, -1, -1], [-1, -1, -1], ]; const winCombinations = ["00,01,02","00,10,20","00,11,22","10,11,12","20,21,22","02,12,22","01,11...
const formidable = require("formidable"); const dao = require("../dao/dao.js"); exports.Get_login = (request, response, next) => { //获取登陆界面,ok var tip = ""; var tips = request.query.tip; if(tips == 1) tip = "用户名或密码错误"; else if(tips == 2) tip = "请先登陆"; response.render("login", { "tip": tip }); } exports.Post_l...
alert('Welcome to the Top Anime Website'); var question1 = 'Who is your favourite character in one piece, luffy or zoro?'; alert(question1); var answer1 = prompt("your answer"); // Making a loop to get the answer for the question either zoro or luffy and adding the loop to a function var photo1 = '' var finalAns...
const services = require('../utils/services') async function list(filters = {}) { const commentsServiceClient = services.getCommentsServiceClient(); const result = await new Promise((reslove, reject) => { commentsServiceClient.list(filters, (err, res) => { if (err) reject(err) r...
// import * as types from '../api' // state初始化 const state = { all: [], isFetching: false } const getters = { isFetching: state => state.isFetching } export default { state, getters }
import React from 'react'; import { Grid } from 'react-bootstrap'; import Categories from './categoriesComponent'; import Posts from './postsComponent'; //component which holds the title of the app and creates posts and comments section const Homepage = () => ( <div> <Grid> <h1 className="appTitle"> ...
import { findOverlap, MinMax } from '../math/minmax'; import Shape from '../math/shape'; import Vec2 from '../math/vec2'; import { defaultBodyColor } from '../util/colorpalette'; const MAX_AXES = 15; /** * @typedef BodyAsObject * @property {import('../math/shape').ShapeAsObject} shape The shape of the body * @prop...
app.get("/api/getTickets", passport.authenticate("userPrivate"), (req, res) => { const { status, page, perPage, sort, order, dateFrom, dateTo } = req.query; const query = { user: req.user._id, ...(status && { status }), ...(dateFrom && dateTo && { createdAt: { $gte: new Date(`${d...
/* eslint-disable */ import { getModule } from 'nuxt-property-decorator' import Filters from '~/store/filters' import Object_ from '~/store/object' import Objects from '~/store/objects' import Pagination from '~/store/pagination' import LightCurveStore from '~/store/lightcurve' import FeaturesStore from '~/store/featur...
function controlBorrado($path){ swal({ title: "¿Estas seguro/a?", text: "Si eliges continuar no podras recuperar tu post!", icon: "warning", buttons: true, dangerMode: true, }) .then((willDelete) => { if (willDelete) { window.location.r...
import { useColor } from '../functions/providers/ColorContext'; import { mountReactHook } from './mockHook'; import { waitFor, act } from '@testing-library/react-native'; const green = { primary: "#ffffff", primaryText: "#465448", highlight: "#004509", inactive: "#687c6b", background: "#9fd984", ...
var reservation = angular.module('reservation', ['ngRoute']); reservation.config(function ($routeProvider, $locationProvider) { //роутинг и прочие настройки });
import authReducer from '../../reducers/auth'; test('should set uid for login', ()=>{ const testObject={ type: 'LOGIN', uid: '123456789abcdef' }; const result = authReducer({}, testObject); expect(result.uid).toEqual(testObject.uid); }); test('should clear the uid when logout', ()=>{...
//Programmer: Chris Tralie /** A canvas for drawing a self-similarity matrix synchronized with audio */ /** * Create a self-similarity canvas * @param {object} audio_obj - A dictionary of audio parameters, including * a handle to the audio widget and a time interval between adjacent rows * of the SSM, and the ...
import React from 'react'; export default class FilterOptions extends React.Component { handleChange(e) { const val = e.target.value; this.props.changeOption(val); } render() { return ( <div className="styled-select"> <select className="userLive" id="selectValue" onChange=...
var oTitle = document.getElementsByClassName("fix-title")[0]; var oRight = document.getElementsByClassName("pull-right")[0]; var oContainer = document.getElementsByClassName("container")[0]; var iContainer = parseInt(getStyle(oContainer, 'width')); var iContainer2 = parseInt(getStyle(oContainer, 'paddingLe...
import { connect } from 'react-redux'; import OrderPage from '../../../components/OrderPage'; import { Action } from '../../../action-reducer/action'; import { getPathValue } from '../../../action-reducer/helper'; import helper, { getObject, fetchJson, showError, showSuccessMsg} from '../../../common/common'; import {s...
import React, {useState} from 'react'; import {StackActions} from '@react-navigation/native'; import { StyleSheet, Text, View, ScrollView, TextInput, TouchableOpacity, } from 'react-native'; import normalize from 'react-native-normalize'; import {connect} from 'react-redux'; import {editUser, signOut, clear...
/** * Created by Ziv on 2017/1/29. */ /** * 在某一个位置左右两边的和是一样的,求出这个位置的下标 * @param arr * @returns {number} */ function findEvenIndex(arr) { let sum = 0, leftsum = 0; sum = arr.reduce((a, b) => a + b); for (let i = 0; i < arr.length; i++) { sum -= arr[i]; if (sum === leftsum) { ...
var ReactsNearYou = { init: function (dx, dy, excheight) { this.reactx = dx || 80 this.reacty = dy || 50 this.excheight = excheight || 20 }, nearyou: function () { return Math.abs(this.x - You.x) < this.reactx && Math.abs(this.y - You.y) < this.reacty }, think: funct...
(function() { 'use strict'; angular.module('app.usuarios.services', []) .factory('Usuarios', Usuarios) .factory('Generos', Generos) .factory('Escolaridades', Escolaridades) .factory('TipoDocumentos', TipoDocumentos) .factory('EntidadesAdministradoras', EntidadesAdministradoras) .factory('Ti...
// 通用操作按钮 export default { add: '添加', edit: '编辑', new: '新增', delete: '删除', confirm: '确定', close: '关闭', cancel: '取消', agree: '同意', refuse: '拒绝', detail: '详情', opt: '操作', prompt: '提示', search: '查询', inventory: '库存', check: '查看', modify: '修改', bulkImport: '批量导入', save: '保存', enterComp...
import React from "react"; function Card(props) { const { title, icon, des } = props.card_info; return ( <div className="col-md-4"> <div className="my-card"> {icon} <h4>{title}</h4> <p>{des}</p> </div> </div> ); } export default Card;
module.exports = { ensureAuthenticated: function(req, res, next){ if(req.isAuthenticated()){ //console.log('Authenticated'); return next(); } //console.log('Not Authenticated'); req.flash('error_msg', 'Please Log Back In'); res.redirect('/'); }, ...
import { mul } from './calc' const a = mul(3, 5) console.log(a) console.log(a)
// https://skillcode.fr/javascript-avance-exercices-poo/ // EXERCICE 1 var user = { prenom: "John", nom: "Maclane", pays: "France", age: 45, paiement: ["visa", "mastercards", "paypal"], paysOk: ["NOUVELLE-ZELANDE", "FRANCE", "ANGLETERRE", "ESPAGNE", "ITALIE"], paiementOk: ["VISA", "MASTERCA...
angular.module('loadTest', []) .controller('LoadTestController', ['$scope', '$http', '$timeout', '$location', function ($scope, $http, $timeout, $location) { // For each provided URL, spin off a test thread with a timeout // For each group of provided URLs, spin off n test threads with the given tim...
//** Import Modules */ import React, { useEffect, useState } from 'react'; import { gsap } from 'gsap'; import { Button } from 'antd'; import { refresh } from 'less'; import { useHistory } from 'react-router-dom'; export default function ChooseChildModal(props) { // Get the data to display const history = useHisto...
const queryString = require("querystring"); // 引入路由 const handleBlogRouter = require("./src/route/blog"); const handleUsersRouter = require("./src/route/users"); // 处理post Data数据 const getPostData = (req) => { return new Promise((resolve, reject) => { const { method } = req; // 不是post 直接返回 if (method !=...
import React from 'react'; import Cookies from 'js-cookie'; import makeSpriteLoop from '../../../helpers/spriteHelper'; import TopWavesSvg from './TopWavesSvg'; import GameSounds from './GameSounds'; let MARIO_WALK_TIMEOUT = 0; let MARIO_WALK_TIMER = 0; let MARIO_JUMP_TIMEOUT = 0; let MARIO_SEAT_TIMEOUT = 0; let MAR...
/** * @param {string[]} A * @return {number} */ var minDeletionSize = function(A) { var ans = 0; for (var i = 0; i<A[0].length; i++) { for(var j = 0; j<A.length-1; j++) { if(A[j].charCodeAt(i) > A[j+1].charCodeAt(i)) { ans++; break; } } } return ans; }; console.log(minDel...
'use strict' const auth = require('./auth'); const error = require('./error'); const Promise = require('promise'); const queryString = require('querystring'); /** * 사용자의 전체 repository 또는 하나의 repository 정보 가져온다. * @ params * @ {Object} authInfo : github 인증 정보 * @ {String} userName : 사용자 이름 * @ {String} passw...
import React from 'react'; import PropTypes from 'prop-types'; import {Redirect} from 'react-router-dom'; import {JobForYouWrapper} from './wrapper'; import {CollectionCard} from './component/collectionCard'; // import {TagSidebar} from '../../component/tag'; import {languageHelper} from '../../tool/language-helper'; ...
export const GET_ALL_CATEGORY = 'GET_ALL_CATEGORY'; export const INSERT_CATEGORY = 'INSERT_CATEGORY'; export const GET_ALL_PRODUCT = 'GET_ALL_PRODUCT'; export const INSERT_PRODUCT = 'INSERT_PRODUCT';
import React from "react"; import "./PrimaryButton.css"; const PrimaryButton = ({ classList, text, onClick, active, bgBlue }) => { return ( <div className={`button_primary paragraph__text border-sm bg-white flex-fill d-flex justify-content-center align-items-center font-weight-bold text-decoration-none ${ ...
import React from 'react'; import axios from 'axios'; import { Image, Segment, List, Item, Grid } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { listPlayer, changeActive } from '../actions'; import Stats from './Stats'; import CareerStats from './CareerStats'; import MLBMenu from './Menu'; i...
import React, { Fragment, useContext } from 'react'; import { Link, withRouter } from 'react-router-dom'; import axios from 'axios'; import { AppContext } from '../../context/appContext'; import { ApiAuthentication } from '../../api/auth'; import { StyledDropDownButton, StyledDropDownMenu } from './styles'; import { ...
//引入 CountUI组件 import CountUI from '../../components/Count' //引入 connect 用于连接UI组件与redux import { connect } from 'react-redux' //引入CountAction import { createIncrementAction, createDecrementAction, createIncrementAsyncAction } from '../../redux/count_action' //使用 connect()()创建并暴露一个 Count 的容器组件 export default conn...
var path = require('path'); module.exports = { /** * 模块化加载框架 [requirejs|modjs|seajs] * 为null时,每个js文件用script标签引入 * e.g. * <script src="/widget/a/a.js"></script> * <script src="/widget/b/b.js"></script> * 为requirejs|modjs|seajs时 * e.g. * require(["/widget/a/a.js", "/widget/b/b.js"]); ...
import React,{useState, useEffect} from 'react'; import "../Dashboard.css"; import "../Browse.css"; import 'react-activity-feed/dist/index.css'; import {Container, Col, Row, ListGroup,Nav, Navbar,Form , FormControl, Button} from 'react-bootstrap'; import axios from 'axios'; import logo from "./images/freelancerlogo.p...
let contextDelimiter = "::"; const responseTypes = { message(p_sText) { return { "message": { "text": p_sText } } }, quickReply(title, payload, image_url) { const reply = { "content_type": "text", title, payload } if (image_url) reply.image_url = i...
(function ($) { Drupal.behaviors.cr_donate_currency_buttons = { attach: function(context) { var $currency_buttons = $('img.currency-item'); var $select = $('#edit-currency'); // these vars are used for manually updated the dropkick select widget that // does not update automatically in re...
import { Box, Grid, makeStyles } from "@material-ui/core"; import React from "react"; const usestyles = makeStyles({ card: { backgroundColor: "#fff", }, dFlex: { display: "flex", justifyContent: "center", marginTop: 68, }, name: { fontWeight: 700, fontSize: 22, fontFamily: "Circula...
const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('SalesOrderStatusLabel', { status: { type: DataTypes.STRING(32), allowNull: false, primaryKey: true, comment: "Status", references: { model: 'sales_order_status',...
const functions = require('firebase-functions') const admin = require('firebase-admin') try { admin.initializeApp() } catch (e) { console.log(e) } const nodemailer = require('nodemailer') const gmailEmail = encodeURIComponent(functions.config().gmail ? functions.config().gmail.email : '') const gmailPassword = encodeUR...
import React, { useEffect, useState } from "react"; import Todo from "./Todo"; import TodoForm from "./TodoForm"; const LOCAL_STORAGE_KEY = "todoApp.todos"; export default function TodoList() { const [todos, setTodos] = useState([]); //READ todo from localStorage useEffect(() => { const storedTodos = JSON....
export default { thisBaseOn: '这是基于', baseOnL18n: '该项目的国际化基于', baseOn: '是根据', documentation: '文献资料', palette: '您可以在上生成调色板', theme: '选择配色方案:', dropHere: '将文件拖放到此处进行上传', tinymceTips: '在线富文本编辑器作为LGPL下的开源软件发布。', imageUploadTips: '改性。 如果要使用它,最好使用正式版本。', dropzoneTips: '', stickyTips: '当页面滚动到预设位置时,将在顶部粘贴。', backToT...
function notify(data) { Materialize.toast(data.message, 4000, '', function() { if (data.refresh) { window.location.reload(); } }); }
import { Router } from 'express'; import PageController from '../controllers/IndexController'; const controller = new PageController(); const router = Router(); router.get('/', controller.index.bind(controller)); router.get('/ping', controller.ping.bind(controller)); export default router;
import React, {Component} from 'react'; import { View, Image, SafeAreaView } from 'react-native'; import styles from './styles' import {compose} from "redux"; import {connect} from 'react-redux' import {Text, Button, Icon, Form, Item, Label, Input, Container,Content} from "native-base"; import {SYSTEM_ROUTE...
var LB=1, //Left Bottom LT=2, //Left Top RT=3, //Right Top RB=4, //Right Bottom HR=1, //Horizontal VR=2, //Vertical WordObjType='span', DIV='div', Word_Default_font_Family='Impact', distance_Counter=1, word_counter=1; function Util(){} //To Generate Random Colors For Words Util.getRan...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Button, Glyphicon } from 'react-bootstrap'; import { Link } from 'react-router-dom'; //import { capitalize } from '../helpers' import { votePost } fro...