text
stringlengths
7
3.69M
// ==UserScript== // @name BiliBili WebSocket Proxy Rebuild // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author Shugen // @match *://*.bilibili.com/* // @match *://*.bilibili.com // @require https://cdnjs.cloudflare.com/...
import React, {Component} from 'react'; /* Component imports */ import NotFound from './NotFound'; import Photo from './Photo'; class PhotoContainer extends Component { componentDidMount() { /* Fetches data on mount based on query */ this.props.pageLoad(); if (this.props.data) { this.props.getP...
import React from 'react'; import { ListContainer } from '../../Shared/Styles/Containers'; const FeaturedList = (props) => { return( <ListContainer> <div>project 1</div> <div>project 2</div> <div>project 3</div> </ListContainer> ) }; export de...
import styled from "styled-components"; export const HeadingOne = styled.div` font-size: 55px; padding: 10px; `; export const HeadingTwo = styled.div` font-size: 40px; padding: 10px; `; export const HeadingThree = styled.div` font-size: 30px; `; export const Paragraph = styled.div` font-size: 22px; pa...
'use strict'; class SomeStringDependentService { /** * @param {string} someString */ constructor(someString) { this.someString = someString; } } module.exports = SomeStringDependentService;
// const ticker = "time.updated"; let startDate = "2018-03-18"; let endDate = "2018-04-18"; let currency = "USD"; let api_url = `http://api.coindesk.com/v1/bpi/historical/close.json?currency=${currency}&start=${startDate}&end=${endDate}`; $(document).ready(() => { $("#date1").change(function () { startD...
import React, {useState} from 'react'; import {Router} from '@reach/router'; import UserParent from './UserParent'; import CreateUser from './CreateUser'; import UpdateUser from "./UpdateUser"; const FormSelect = (props) => { const [users, setusers] = useState([{ fname: "", lname: "", passwo...
/** # 46. Permutations (https://leetcode.com/problems/permutations/) Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1: Input: nums = [1,2,3] Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]] Example 2: Input: nums = [0,1] Outpu...
import React ,{useState, useEffect} from 'react' import {motion} from "framer-motion" import "../maincomponent.css" import "./Dashboard.css" import {Line, Doughnut} from "react-chartjs-2" import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import firebase from "../../firebase"; import {set, useForm} from "...
#pragma strict function OnGUI() { GUI.Label(Rect(32, 32, 400, 400), "Move the sphere with the keyboard.\nThe cube follows the sphere with 1 second delay."); }
import http from 'http'; import express from 'express'; import config from './utils'; import graphQL from './graphql_server'; import dotenv from 'dotenv'; dotenv.config({ path: 'variables.env' }); const app = express(), PORT = process.env.PORT || 5000; graphQL.applyMiddleware({ app }); app.use(config); const...
import { combineReducers } from 'redux'; const createList = (type, childType) => { const ids = (state = [], action) => { switch(action.type) { case 'FETCH_ROUTINES_SUCCESS': return action.response.result; case 'ADD_ROUTINE_SUCCESS': return [...state, action.response.result] defa...
import React, { Component } from 'react'; import Login from './components/login/login.js'; import Home from './components/home/home'; import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom'; export default class App extends Component { render(props) { return ( <Router> <div> {/* A...
function validaExemplo() { var bValidado = true; // Limpar todos os spans de validação $("#vTexto").text(""); $("#vEscolha1").text(""); $("#vEscolha2").text(""); $("#vSelecao3").text(""); // Como validar input type=text (TextBox) if ( $("#txtTexto").val() == "") { $("#vTex...
'use strict' angular.module('sharedServices').directive("additionalField", function ($compile) { var linkFunction = function (scope, element, attributes, formController) { }; return { restrict: "E", link: linkFunction, require: '^form', replace: true, templateUrl:...
import auth0 from './auth0' if (process.env.NODE_ENV === 'production'){ auth0.getClient({ client_id: process.env.AUTH0_CLIENT_ID }, (err, client) => { if (err) console.log(err) let {callbacks} = client let urls = [ `${process.env.CMS_URL}/callback`,`${process.env.LUME_URL}/callback` ] ...
import React from 'react' import PropTypes from 'prop-types' import './LiveMatch.scss' import PlayerTable from './PlayerTable' import { gameTime } from '../../actions/matchProcessing' import LiveValue from './LiveValue' import Progress from '../Progress' import Minimap from '../Minimap/Minimap' import MatchScore from '...
function EnviarDatos(){ var nombre = document.getElementById("inputName"); var apellido = document.getElementById("inputLastName"); var dni = document.getElementById("inputDni"); var legajo = document.getElementById("inputLegajo"); var sueldo = document.getElementById("inputSueldo"); var errores = []; if(!V...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Brand = void 0; class Brand { constructor(brand) { this.Brand = brand; } } exports.Brand = Brand; Object.seal(Brand);
$(document).ready(function() { // Transition effect for navbar $(window).scroll(function() { // checks if window is scrolled more than 300px, adds/removes solid class if ($(this).scrollTop() > 400) { $('.navbar').addClass('solid'); $('.navbar-nav>li>a ').addClass('mainco...
var model = require('model'), ui = require('ui');
define(['frame'], function(ngApp) { ngApp.provider.controller('ctrlReceived', ['$scope', 'http2', function($scope, http2) { $scope.page = { current: 1, size: 30, keyword: '' }; $scope.doSearch = function(page) { if (page) { $scope.page.current = page; } else ...
import $ from "jquery"; import styled from 'styled-components' import "../containers/Calculator.css"; const blink_me = styled.div` color: #E0B612; ` export default function blinker() { $(blink_me).fadeOut(200); $(blink_me).fadeIn(200); } setInterval(blinker, 500);
var express = require("express"); var womenRoute = express.Router(); var Women = require("../models/women-schema"); womenRoute .get("/", function(req, res){ Women.find(function(err, womenArray){ if (err) res.status(500).send(err); res.send(womenArray); }) }) .post("/", function(req, res){ ...
import RestfulDomainModel from '../base/RestfulDomainModel' export default new RestfulDomainModel([ { id: { name: 'ID', dataOnly: true }}, { avatar: { name: '头像' }}, { customID: { name: '微信号' }}, { nickname: { name: '昵称' }} ], '/im/profile')
import React from 'react' import logo from '../Images/app_bg.png' import firebase from '../firebase' function loadScript(src) { return new Promise(resolve => { const script = document.createElement('script') script.src = src script.onload = () => { resolve(true) } ...
import React from "react"; import styled from "styled-components"; const Wrapper = styled.div` margin: 1em; `; const Welcome = () => { return ( <Wrapper> <h3> Our mission is to share children's books by Black authors where readers can learn through mirrors and windows. </h3> ...
import React, { useEffect } from "react"; import styled from "styled-components"; import { Density, Input, Color, Surface, ListItem } from "amino-ui"; import { useInput } from "react-hanger"; import useSWR from "swr"; import { fetcher } from "../../utils/fetcher"; import jwtDecode from "jwt-decode"; import { Dialog } f...
import api from '../services/api'; import { useMutation } from 'react-query'; export default function useUnlikePost() { return useMutation((id) => api.delete(`posts/${id}/unlike`)); }
import express from 'express'; import validate from 'express-validation'; import controller from '../../controllers/user.controller'; import { authorize, ADMIN, LOGGED_USER } from '../../middlewares/auth'; import { listUsers, createUser, replaceUser, updateUser, } from '../../validations/user.validation'; con...
//API is communication protocol between different parts of a computer program /* //4.ReactDOM & JSX import React from 'react' import ReactDOM from 'react-dom' ReactDOM.render(<div><h1>Hello world</h1><p>My Name is James </p></div>,document.getElementById("root")) */ /* //5.ReactDOM & JSX Practice import React from 'r...
var ConfigModel = function () { this.table = "config"; this.init = (appCore) => { this.core = appCore; this.router = appCore.eRouter("configModel"); appCore.runRoute("model", this.router, "config"); this.db = appCore.connectDB(); }; this.getAll = () => { let q = ...
console.log("bot start"); let Twit = require("twit"); var config = require("./config") var T = new Twit(config); //search parameters var params = { q: '#100DaysOfCode', count: 10 } T.get('search/tweets', params, function (err, data, response) { if (!err) { // Loop through the returned tweets fo...
import React, { Component } from 'react' import axios from 'axios' import { Link } from 'react-router-dom' import Grid from '@material-ui/core/Grid' import Card from '@material-ui/core/Card' import CardContent from '@material-ui/core/CardContent' import Typography from '@material-ui/core/Typography' import moment from ...
var gardenDisplay = ["img/branches/tree-nobranches.png", "img/branches/tree-2branches.png", "img/branches/tree-4branches.png", "img/branches/tree-6branches.png", "img/leaves/tree-1leaves.png", "img/leaves/tree-2leaves.png", "img/leaves/tree-3leaves.png", "img/leaves/tree-4leaves.png", "img/leaves/tree-5leaves.png", "...
// (function() { // angular // .module('rocks-minerals-app') // .controller('googleCtrl', googleCtrl); // googleCtrl.$inject = ['$scope', 'Google']; // function googleCtrl($scope, Google){ // var vm = this; // console.log(window.location); ...
/* * @Author: duchengdong * @Date: 2020-11-04 14:24:34 * @LastEditors: duchengdong * @LastEditTime: 2020-11-04 15:10:18 * @Description: */ import { createApp } from 'vue' import App from './App.vue' import router from './router' createApp(App).use(router).mount('#app')
import _ConnectionManager from './connection-manager' export const ConnectionManager = _ConnectionManager
const fs = require('fs'); const path = require('path'); const async = require('async'); const csv = require('fast-csv'); const should = require('should'); const {normalize} = require('../sro_utils'); const {findNodes} = require('../neo4j_utils'); const log = require('../sro_utils/logger')("ImportedEntitiesFromPlayer")...
$(function(){ $.ajaxSetup({ cache: false, }); //e.preventDefault(); $("a.load_courses").on("click", function(e){ e.preventDefault(); $.ajax({ method: "GET", url: this.action, data: $(this).serialize(), dataType: "json", success: function(courses){ courses....
'use strict' var mongoose = require('mongoose'); var Schema = mongoose.Schema; var UserSchema = new Schema({ facebook_user_id: String, facebook_access_token: String, username: String, email: {type: String, lowercase: true}, pic: String, points: Number, achievements: Array }); module.exports = mongoose.model('...
var password = 'azerty'; if (password.length > 5) { console.log('the password has more than 5 Characters') } else { console.log('the password has 5 characters or less') }
import React from 'react'; import styled from 'styled-components'; const SpriteImage = styled.img` transform: translate(-${({ left }) => left}px, -${({ top }) => top}px); user-drag: none; user-select: none; -moz-user-select: none; -webkit-user-drag: none; -webkit-user-select: none; -ms-user-select: none...
/** * raids.js * * Controls the initialization of a DataTable containing all raids. */ $(document).ready(function() { let ajaxRaidsUrl = "/raids"; let instanceSelector = $("#raidsInstanceSelect"); function reloadDataTable() { $("#raidsTable").DataTable({ responsive: true, ...
import React from "react"; import Item from "./Item"; const ItemList = ({articulos}) => { return ( <div className="grid-list" style={{ display: "grid", gridTemplateColumns: "1fr 1fr 1fr 1fr 1fr"}} > {articulos.map((articulo) => ( <Item key={articulo.id} item={articulo} /> ))} </d...
import Microcastle from '../index.js'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import I from 'immutable'; import thunk from 'redux-thunk'; const reducer = combineReducers({ microcastle: Microcastle.MicrocastleStore.reducer, }); const store = ...
import { getTheme } from '@fluentui/react' import React from 'react'; import * as $ from 'jquery'; import HeaderPage from './HeaderPage' require('bootstrap') const theme = getTheme(); function scrollFun(){ if($('#page')){ if ($('#page').scrollTop() >= document.getElementById("content").offsetTop - 350){ ...
;(function(){ // 获知信息底下的鼠标移入放大 $(".xinxi_list img,.xinxi_list p").hover(function(){ $(this).parent().css("transform","scale(1.3)"); },function(){ $(this).parent().css("transform","scale(1)"); }) // 线下公告解读 $(".local a").mouseover(function(){ $(".local a").removeClass("active"); $(this).addClass("active"); ...
/* * * productDiscontinueApi.js * * Copyright (c) 2016 HEB * All rights reserved. * * This software is the confidential and proprietary information * of HEB. * */ 'use strict'; /** * Constructs the API to call the backend for product discontinue reporting. */ (function () { angular.module('productMainte...
/** * Created by lijianxun on 2017/1/3. */ const Parse = require('./parseInit').Parse; let Like = Parse.Object.extend('Like'); let football = new Like(); football.set("price",50); let basketball = new Like(); basketball.set("price",100); let teacher = new Parse.Object("Teacher"); teacher.set("name", "tom"); teacher...
const initialState = { results: [], pageInfo: null, errorMsg: '', }; const contactReducer = (state = initialState, action) => { switch (action.type) { case 'LIST_CONTACT': { return { ...state, results: action.payload, pageInfo: action.pageInfo, }; } case 'SET_CON...
/** * Created by xinin on 13/02/16. */ 'use strict'; angular.module('wishList').service('Auth', function() { var user = undefined; return { isAuth: function(){ return (user)? true:false; }, getUser: function() { return user; }, setUser: functi...
/** * Copyright 2016 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 law or agreed to...
import React from "react"; import { createTweet } from "../../redux/reducers/tweet"; import { connect } from "react-redux"; import PropTypes from "prop-types"; class PostTweetPage extends React.Component { constructor(props) { super(props); this.state = { tweetText: "", selectedImage: "", ...
var router = require('express').Router(); var Reward = require('./rewardModel'); router.get('/', function(req, res) { Reward.find({}, function(err, result) { res.json(err || result); }); }); router.post('/', function(req, res) { var newReward = new Reward(req.body); newReward.createdBy = req....
import { db } from 'src/lib/db' import { JsonRpcProvider } from '@ethersproject/providers' export const ads = () => { return db.ad.findMany() } export const ad = ({ id }) => { return db.ad.findOne({ where: { id }, }) } export const createAd = ({ input }) => { return db.ad.create({ data: input, }) ...
window.addEventListener('load', function(){ var theForm = document.querySelector('#theFormulario'); var theEmail = document.querySelector('#email'); var theYearsOld = document.querySelector('#yearsOld'); var theDescription = document.querySelector('#description'); theForm.addEventListener('submit'...
import config from 'dotenv'; import db from './utils/db'; import Logger from './utils/logger'; import AuthService from './services/AuthService'; const logger = new Logger().logger(); config.config(); db.destroy() .then(() => { logger.info('Dropped tables'); db.initialize().then(() => { logger.info('C...
var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var http = require('http').Server(app); var io = require('socket.io')(http); var randomstring = require("randomstring"); var Game = require('./game.js'); var Player = require('./player.js'); app.use(bodyParser.json()); app.u...
import PropTypes from 'prop-types' import { css } from '@emotion/core' import styled from '@emotion/styled' import { contained } from '../../../traits' import { grid } from '../../../macros' const Columns = styled.div( ...grid.styles(), contained.styles, ({ theme, columns }) => { let template = `repeat(${co...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { BrowserRouter } from 'react-router-dom'; import {Provider} from 'react-redux'; import configureStore from "./redux/store/configureStore"; impo...
let filme = document.querySelector ("ul"); let corpo = document.querySelector ("body"); let filmes = [ {nome:"Frozen"}, {nome:"Alladin"}, {nome:"Olga"}, {nome:"Moana"}, ] let imprimirNomes = (cor) =>{ for(let filmes of filme){ lista.innerHTML += `<li>${filmes.nome}</li>` } corpo.sty...
import React, {Component} from 'react'; import {withRouter} from 'react-router-dom'; import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {ADMIN_USERS_URI} from './routes'; import {cleanFilters, getUsers, setEmailValue} from '../../store/modules/administration/adminUsers'; import {changeActi...
import React from "react"; import Square from "./square"; export default class Board extends React.Component { render() { if (this.props.value < 10) { return <Square value={this.props.value} />; } } }
export { default as MapSection } from './MapSection';
/*============================================================================= # # Copyright (C) 2016 All rights reserved. # # Author: Larry Wang # # Created: 2016-06-27 18:53 # # Description: Route middleware to verify token. # =============================================================================*/ const jwt...
/* eslint-disable prettier/prettier */ import React,{Component} from 'react'; import {StyleSheet, ImageBackground,View,Alert, Button,Text} from 'react-native'; import { Container, } from 'native-base'; import { TextInput } from 'react-native-gesture-handler'; var gb = require('./images/b.jpg'); class Regist...
import './css/index.css'; // import './css/index.less' // import './css/index.scss' /** * 1. logo === 图片打包之后地址 * 2. 图片等静态文件需要放在"/src/assets"目录下 */ import logo from './assets/images/png/LOGO.png'; const hModel = require('./js/Header.js'); const cModel = require('./js/Content.js'); const fModel = require('./js/Footed...
import React, { useState } from 'react' import { useDispatch } from 'react-redux' import { makeStyles } from '@material-ui/core/styles' import AppBar from '@material-ui/core/AppBar' import Button from '@material-ui/core/Button' import CssBaseLine from '@material-ui/core/CssBaseLine' import Menu from '@material-ui/core/...
bssim.controller("FormQueryController", function($scope, $routeParams, Noty, $http, $location){ var schemaTable = $routeParams["schemaTable"]; var config = angular.fromJson($routeParams["config"]); var path = $location.path(); Noty.loading('Loading...', path); $http.get("/tables/"+schemaTable+"/co...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.pouchSumma = f...
"use strict"; exports.default = void 0; var _bar_gauge = require("./gauges/bar_gauge"); var _default = _bar_gauge.dxBarGauge; /** * @name BarGaugeLegendItem * @inherits BaseLegendItem * @type object */ exports.default = _default; module.exports = exports.default; module.exports.default = exports.default;
import { css } from 'styled-components'; export const H1 = css` font-weight: bold; font-size: 40px; line-height: 48px; letter-spacing: -2px; `; export const H2 = css` font-weight: bold; font-size: 32px; line-height: 42px; letter-spacing: -1px; `; export const H3 = css` font-weight: bold; font-siz...
//query database to show ajax recomendations // This uses an externam javascript library $(document).ready( function() { $('#search_box_center_input').keyup(function() { /* This function will run on every keyup event on the search box in in the landing page */ query = $('#search_b...
import React, { Component } from 'react'; import { getComments, postComment, deleteComment } from '../api' import CommentCard from './CommentCard' import CommentAdder from './CommentAdder' import ErrorPage from './ErrorPage' import { UserContext } from '../contexts/User' class Comments extends Component { state...
import React from "react"; import { Box, Text, Flex, Input, Button } from "@chakra-ui/core"; import { GiFishingBoat } from "react-icons/gi"; import { GrVisa } from "react-icons/gr"; import { RiMastercardFill } from "react-icons/ri"; import { BsArrowRight } from "react-icons/bs"; export default function Upgrade() { ...
// ajax请求导航栏页面 (function(){ var head=document.querySelector("head"); var script=document.createElement("LINK"); script.rel="stylesheet" script.href="./css/nav.css" head.appendChild(script); var xhr=createXhr(); xhr.onreadystatechange=function(){ if(xhr.readyState==4&&xhr.status==200){ var res=xhr.respo...
export default function onPress(navigation) { navigation.navigate('Profile'); }
import React, { PureComponent, Component } from "react"; import { StyleSheet, Dimensions, Image, StatusBar, Alert } from "react-native"; import { Container, Header, Title, Content, Footer, FooterTab, Text, Icon, ListItem, Separator,Left, Right,Body, View } from "native-base"; import helper...
var jsPerson1 = { name:"王小波", age:48, writeJs:function () { console.log("my name is" + this.name+", i can write js") } } jsPerson1.writeJs() var jsPerson2 = { name:"姚泽宇", age:18, writeJs:function () { console.log("my name is" + this.name+", i can write js") } } jsPerson2...
var crdt = require('crdt') , nodeStatic = require('node-static') , shoe = require('shoe') , MuxDemux = require('mux-demux'); var staticFiles = new(nodeStatic.Server)('./public'); var server = require('http').createServer(function (request, response) { request.addListener('end', function () { stati...
const Promise = require('bluebird'); const semver = require('semver'); const {headMessage, headBranch, headClean} = require('./core/git'); const VALIDATE = 'validate'; const UPGRADE = 'bump-dependencies'; const BUMP = 'auto-bump'; const SETUP = 'setup'; const DIRTY = 'warn-dirty'; const NOOP = 'noop'; const selectCom...
import { createStore } from 'redux' const initialState = { number: 0, number1: 0, number2: 0, nestedNumber: { number1: { number: 0, level2: { number: 0 }, }, number2: 0 } } export const reducers = (state = initialState, action) => { const newState...
import '../../stylesheets/component/common/topMenu.css'; import Links from '../../data/links.json'; const { topMenu } = Links; export default function TopMenu(props) { return ( <nav id="top-menu"> <ul> {topMenu.map((item, idx) => { return ( <a href={item.link}> <li className="menu-item"><sp...
angular.module('AdSales').controller('NewSlsSttlmtOpController', function ($scope, $location, locationParser, SlsSttlmtOpResource ) { $scope.disabled = false; $scope.$location = $location; $scope.slsSttlmtOp = $scope.slsSttlmtOp || {}; $scope.save = function() { var successCallback = func...
/** * 本地开发环境的mock数据 */ const server_host = "http://localhost:3001"; // script/server.js 中配置,代理到http://www.mockhttp.cn const API = { ENTRY: { MESSAGE: server_host + "/calculator/v1/table/list" }, HOME: { // MESSAGE: } }; export default API;
const { body } = require('express-validator'); const signInSchema = require('./sign_in'); module.exports = [ body('name') .trim() .isString() .notEmpty() .exists() .withMessage('is required'), body('last_name') .trim() .isString() .notEmpty() .exists() .withMessage('is requi...
// Simple Express server setup to serve for local testing/dev API server const compression = require('compression'); const helmet = require('helmet'); const express = require('express'); const fetch = require('cross-fetch'); const data = require('./places.json'); const app = express(); app.use(helmet()); app.use(compr...
/** * 口座開設サンプル * @ignore */ const moment = require('moment'); const pecorino = require('../'); pecorino.mongoose.connect(process.env.MONGOLAB_URI); const redisClient = new pecorino.ioredis({ host: process.env.REDIS_HOST, // tslint:disable-next-line:no-magic-numbers port: parseInt(process.env.REDIS_POR...
/** * Promise A+规范 * https://juejin.im/post/6844903767654023182 * 参考资料 * 1. https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g * 2. https://juejin.im/post/6844903918686715917?utm_source=gold_browser_extension#heading-12 */ const PENDING = 'pending'; const FULFILLED = 'fulfilled'; const REJECTED = 'rejected'; fun...
import React, { PureComponent } from 'react'; import styled from 'styled-components'; import { Row, Col } from 'react-flexbox-grid'; import { DefaultPlayer as Video } from 'react-html5video'; import 'react-html5video/dist/styles.css'; import Logo from '../../assets/video/logo.mp4'; import {Link} from "react-router-dom"...
import React, { Component } from 'react' import { Card, Button, Form, Col, InputGroup } from 'react-bootstrap'; import {UtilityFunctions as UF} from '../../Common/Util'; import SSM from '../../Common/SimpleStateManager'; import Wrap from '../../Common/Wrap'; import './SellerPage.css'; import SimpleMessageModal from '.....
import React, { Component } from "react"; import { Button, FormGroup, FormControl, ControlLabel } from "react-bootstrap"; import "./Login.css"; import Main from '../Main'; import Header from '../Login/Header' import { GoogleLogin } from 'react-google-login'; import LogoDC3 from 'assets/images/dc3_logo.jpg'; import Abou...
'use strict'; // Use local.env.js for environment variables that grunt will set when the server starts locally. // Use for your api keys, secrets, etc. This file should not be tracked by git. // // You will need to set these on the server you deploy to. module.exports = { CLIENT_ID: 'put your instagram client id ...
function onSendMsg() { if (!selToID) { alert("您还没有好友,暂不能聊天"); $("#send_msg_text").val(''); return; } //获取消息内容 var msgtosend = document.getElementsByClassName("msgedit")[0].value; var msgLen = webim.Tool.getStrBytes(msgtosend); if (msgtosend.length < 1) { alert("发...
import './DivRight.css'; import React from 'react'; export default () => { return ( <div className='div-right'> <p class="open">Czynne pon.- pt. i niedz. 12-22, sob. 12-23 </p> <p>Dowóz na terenie Żagania gratis</p> </div> ) }
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import store from '@/web-client/stores'; import history from '@/web-client/history'; import router from '@/web-client/router'; import '@/web-client/styles/base.css'; const render = async (location) => { const element...
var DB = 1; exports.PATTERNS = [ ["GET", /^\/nihongo\/key\/(.*)$/, function(transaction, key) { transaction.redis.multi() .SELECT(DB) .LRANGE("key:" + decodeURIComponent(key), 0, -1) .exec(transaction.rwrap(function(results) { var m = transaction.redis.multi(); r...
// TODO: remove when merging into get_smart require('vendor/i18n'); require('vendor/i18n_js_extension'); const moment = require('moment'); const I18n = window.I18n; I18n.translations = I18n.translations || {}; const canLolcalize = (process.env.NODE_ENV !== 'production' || window.DEPLOY_ENV === 'edge'); if (canLolcal...
import React from 'react'; import NotificationBanner from 'src/components/NotificationBanner'; import TopBar from 'src/components/nav/TopBar'; const PageMini = ({ children }) => { return ( <div className='Page-mini'> {/* <NotificationBanner /> */} <TopBar /> <div classNa...