text stringlengths 7 3.69M |
|---|
import Vue from 'vue';
import Axios from 'axios';
import Vuex from 'vuex';
import App from './App.vue';
import SvgIcon from './components/django/svg-icon';
import CustomSvg from './components/django/custom-svg';
import Modal from './components/helpers/modal';
export const eventBus = new Vue();
Vue.config.productionT... |
(function() {
'use strict';
angular.module('myApp.budget', ['ngRoute', 'firebase'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/budget', {
restrict: 'E',
templateUrl: 'views/budget/budget.partial.html',
controller: 'BudgetCtrl',
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.partnerRouter = void 0;
var Partner_1 = require("./Partner/Partner");
Object.defineProperty(exports, "partnerRouter", { enumerable: true, get: function () { return Partner_1.router; } });
|
import { Meteor } from 'meteor/meteor';
import checkIfAuthorized from './checkIfAuthorized';
import mapMeteorUserToSchema from './mapMeteorUserToSchema';
/* eslint-disable consistent-return */
let action;
const getTotalUserCount = (currentUserId) => {
try {
return Meteor.users.find({ _id: { $ne: currentUserId ... |
var resume;
var section;
var subsection;
generateResume();
function generateResume(){
resume = createResume();
document.getElementById('AddResumeTitle').setAttribute('style', 'display: inline');
}
function generateSection(){
section = createSection();
document.getElementById('AddSectionTitle')... |
import CancelOutlinedIcon from '@material-ui/icons/CancelOutlined';
import React from 'react';
import './Payment.scss';
import PropTypes from 'prop-types';
import AppBar from '@material-ui/core/AppBar';
import useScrollTrigger from '@material-ui/core/useScrollTrigger';
import Toolbar from '@material-ui/core/Toolbar';
i... |
import { useState } from "react";
import { Row, Col } from "antd";
import AddToTeam from "./AddToTeam"
function CookieDetail({ cookie }) {
return (
<div className="cookie-flex">
<Row gutter={[32, 32]}>
<div className="ckies">
<Col
lg... |
import React from 'react';
import "./HomeInfoSection.scss"
import icon1 from '../assets/Icon-1.svg';
import icon2 from '../assets/Icon-2.svg';
import icon3 from '../assets/Icon-3.svg';
import icon4 from '../assets/Icon-4.svg';
import {Link} from "react-router-dom";
import {ReactComponent as Decoration} from '../assets/... |
/**
* New Order Countdown Widget
*/
import React, { Component } from 'react';
import { Card, CardBody } from 'reactstrap';
import IconButton from '@material-ui/core/IconButton';
// components
import CountDown from 'Components/CountDown/CountDown';
// intl messages
import IntlMessages from 'Util/IntlMessages';
expo... |
function digitCancelling() {
const fractions = [];
for(let numFirst = 1; numFirst <= 9; numFirst++) {
for(let numSecond = 1; numSecond <= 9; numSecond++) {
for(denomDigit = 1; denomDigit <= 9; denomDigit++) {
const num = [numFirst, numSecond];
const firstRedu... |
18 gid=1329781531
17 uid=183816338
20 ctime=1441138963
20 atime=1441138970
23 SCHILY.dev=16777221
23 SCHILY.ino=32545877
18 SCHILY.nlink=1
|
const createChild = (p, s) => p.appendChild(document.createElement(s));
const removeChildren = p => {while (p.firstChild) p.removeChild(p.lastChild);};
const addProperty = (object, name, type, optional = false) => {
const div = createChild(sidebar, "div");
const span = createChild(div, "span");
span.textContent = n... |
import React from 'react';
import axios from 'axios';
import { TablePagination } from 'react-pagination-table';
import EditIcon from '@material-ui/icons/Edit';
import AddCircleOutlineIcon from '@material-ui/icons/AddCircleOutline';
import ReactModal from 'react-modal';
import { MDBCloseIcon } from 'mdbreact';
import 'r... |
/* begin copyright text
*
* Copyright © 2016 PTC Inc., Its Subsidiary Companies, and /or its Partners. All Rights Reserved.
*
* end copyright text
*/
/* global module */
/* jshint node: true */
/* jshint strict: global */
/* jshint camelcase: false */
/* jshint esversion: 6 */
'use strict';
const namespace = requ... |
const cityName=document.getElementById('cityName');
const submitBtn=document.getElementById('submitBtn');
const city_name=document.getElementById('city_name');
const temp_status=document.getElementById('temp_status');
const temp_val=document.getElementById('temp_val');
const datahide=document.querySelector('.midle_laye... |
var searchData=
[
['opensimplexnoise_2eh',['OpenSimplexNoise.h',['../OpenSimplexNoise_8h.html',1,'']]],
['opentonanovdb_2eh',['OpenToNanoVDB.h',['../OpenToNanoVDB_8h.html',1,'']]],
['openvdb_2eh',['openvdb.h',['../openvdb_8h.html',1,'']]],
['operators_2eh',['Operators.h',['../Operators_8h.html',1,'']]]
];
|
/* Fake a Flog.* namespace */
if(typeof(Flog) == 'undefined') var Flog = {};
if(typeof(Flog.RayTracer) == 'undefined') Flog.RayTracer = {};
if(typeof(Flog.RayTracer.Material) == 'undefined') Flog.RayTracer.Material = {};
Flog.RayTracer.Material.BaseMaterial = Class.create();
Flog.RayTracer.Material.BaseMaterial.proto... |
'use strict';
module.exports = {
// The port to serve application
port: process.env.PORT || '3000',
users: require('./lib/users')(),
mongo: {
development: 'mongodb://root:toor@ds143777.mlab.com:43777/mobileproject'
},
}; |
import {
JOINED_ROOM,
REFRESHED_LOBBY,
REFRESHED_ROOM,
GAME_FORFEITED,
REFRESHED_PLAYER,
GAME_ERROR
} from "../actions/action-types";
import appState from './app-state';
export default function (state = appState.game, action) {
switch(action.type) {
case JOINED_ROOM:
ret... |
var pt = {
resourceType: "Patient",
birthDate: "2005",
name:[
{ given:["beve", "ave", "eve"], "family": ["15.9"]},
{ given: ["ava"]}
]
}
var fp = require("./index")
var ex = "Patient.name.*"
var results = fp(pt, ex);
console.log("results")
console.log(JSON.stringify(results[0]))
console.log(JSON.stri... |
"use strict";
const { run } = require("../../utils/test-utils");
describe("--entry-reset flag", () => {
it("should reset entry correctly", async () => {
const { exitCode, stderr, stdout } = await run(__dirname, [
"--entry-reset",
"--entry",
"./src/entry.js",
]);... |
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: require.resolve('@js-toolkit/configs/eslint/react.eslintrc.js'),
parserOptions: {
ecmaFeatures: {
legacyDecorators: true,
},
},
rules: {
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'of... |
import gql from 'graphql-tag'
import { graphql } from 'react-apollo'
import VouchersList from '@components/VouchersList'
import waitLoading from '@hocs/waitLoading'
const query = gql`
query allVouchers {
allVouchers {
utilizado
token
restaurante {
logoUrl
}
promocao {
validaAte
... |
import { LOGIN, SET_USER, LOGOUT } from './actionTypes';
export const login = () => ({ type: LOGIN });
export const setUser = info => ({ type: SET_USER, payload: info });
export const logOut = () => {
localStorage.removeItem('token');
return {
type: LOGOUT,
};
};
|
import React, {Component} from "react";
export default class Header extends Component {
render() {
let resumeData = this.props.resumeData;
return (
<React.Fragment>
<header id="home">
<nav id="nav-wrap">
{/* <a clas... |
const leboncoin = require('leboncoin-api');
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database('../assets/db/annonces.sqlite');
db.serialize(function() {
db.run(`CREATE TABLE IF NOT EXISTS annonces
(
id int NOT NULL PRIMARY KEY,
titre varchar(255),
prix int,
prixm2 float,
... |
jQuery(document).ready(function($){
$('#load_file_check').on('click', function(){
$('#add_check_file_form_file').click();
});
$('#add_check_file_form').on('change', '#add_check_file_form_file', function(){
uploadFile('add_check_file_form');
});
function uploadFile(nameForm){
... |
import {fruits} from './fruits.js';
import {romes} from './romeNums.js';
import {GetFontSize} from './getFontSize.js';
import {SaveData} from './SaveData.js';
let rightAnswerArr = [];
let respondentAnswer = [];
let symbolsCount = 6;
let $select = $('.form-select').on('click',()=>{
$('.info-bottom').remove()
i... |
//For checkbox and quantity input validation
document.querySelector("#checkBlack").onchange = function () {
document.querySelector("#qtyBlack").disabled = !this.checked;
document.querySelector("#qtyBlack").value = "";
document.querySelector("#qtyBlack").required = this.checked;
};
document.querySelector("#... |
import React, { Component } from 'react';
class InputElementNotControled extends Component {
handleSubmit = (event) => {
console.log(event);
event.preventDefault();
const nombre = event.target[0].value;
const email = event.target[1].value;
this.props.onSend({ nombre, ... |
export const state = () => ({
cartId: {
// 不同的store 之间的cartid 不能混用
cn: null,
en: null,
hk: null,
},
cart: {
// 不同的store 之间的cartid 不能混用
cn: null,
en: null,
hk: null,
},
cartQty: {
cn: 0,
en: 0,
hk: 0,
},
avaliableShippingMethod: [],
avaliablePaymentMethod: [... |
/**
* 路由权限
* 路由守卫
*/
import router from './index';
import store from '../store';
router.beforeEach((to,from,next)=>{
if(to.matched.some(item => item.meta.isLogin)){
const loginToken=store.state.loginToken;
if(loginToken){
next()
}else{
next({
path:'/l... |
'use strict';
(function() {
var pollUrl = appUrl + '/api/:id/polls';
function cleanArray(actual) {
var newArray = new Array();
for (var i = 0; i < actual.length; i++) {
if (actual[i]) {
newArray.push(actual[i]);
}
}
return newArray;
}
$('.more-options... |
import express from 'express';
import request from 'request';
const portRandom = (min = 1000, max = 9999) => Math.floor(min + Math.random() * (max + 1 - min));
export const serverProxy = () => {
const
app = express(),
port = portRandom();
app.use('/', (req, res) => {
const url = req.ur... |
var searchData=
[
['bottom_18',['Bottom',['../class_bottom.html',1,'Bottom'],['../class_bottom.html#a36619f278fb9c31534df098dc6e7d99c',1,'Bottom::Bottom()']]],
['bottom_2ecpp_19',['bottom.cpp',['../bottom_8cpp.html',1,'']]],
['budujpreambule_5f2d_20',['BudujPreambule_2D',['../class_pz_g_1_1_lacze_do_g_n_u_plota.h... |
import React from "react"
import { Switch, Route, HashRouter } from "react-router-dom"
import Main from "../components/main"
import styles from "./index.module.css"
import { Container, Row, Col } from "reactstrap"
import Header from "../components/Header"
import Nav from "../components/Nav/Nav"
import Music_Videos from... |
import styled, { keyframes } from 'styled-components';
const animLoader = keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`;
export const Container = styled.div`
& > svg {
width: 25px;
height: 25px;
stroke: #18b6ff;
font-size: 10px;
animation: ${ani... |
define(function (require) {
var $ = require('jquery'),
Configuration = require('../config');
//Globals
var _spinnerCounter = 0;
function BaseController() {
var config = new Configuration();
var startSpinner = function () {
if (++_spinnerCounter === 1) {
... |
import React, { Component } from 'react'
import * as api from "../../api"
import CommentList from '../comments/CommentList'
import ErrorPage from '../general/ErrorPage';
import Voter from '../general/Voter';
import {Link} from '@reach/router'
export default class SingleArticle extends Component {
state = {
arti... |
import { SHOW_FRIENDS, SHOW_USERS, ADD_FRIEND, PRIVATE_MESSAGE, ADD_MESSAGE, SIGNIN_PROGRESS, SIGNIN_SUCCESS, FRIENDSHIP, SIGNIN_FAILURE } from "./actionTypes";
import { APIUrls } from '../helpers/apis';
import { getFormBody } from '../helpers/utils';
import {getAuthTokenFromLocalStorage} from '../helpers/utils';
//re... |
var express = require('express');
var router = express.Router();
var Task = require('../models/task');
/* GET home page. */
router.get('/', function (req, res) {
res.render('index', { title: 'Express' });
});
router.route('/task')
.get(function (req, res) {
Task.find().exec(function (err, tasks) {
if (... |
import emojione from 'emojione'
class EmojiToNative {
fix(line) {
let data = line.match(/\<img class\=\"([^"]*)\" alt\=\"([^"]*)\" src\=\"([^"]*)\"\/\>/i)
return data[2]
}
decode(html) {
if ( ! html) return html
var e = document.createElement('div')
e.innerHTML =... |
import { Component, Inject } from '@angular/core';
import { CourseStoreService } from '../../services/course-store.service';
import template from './cart.template.html';
@Component({
selector: 'cart',
template: template,
styleUrls: ['app/components/cart/cart.style.css']
})
export class CartComponent {
construc... |
const {Schema,model} = require('mongoose');
const UserSchema = Schema({
firstName:{
type: String,
required : ['true','First name is required.'],
},
lastName:{
type: String,
required : ['true','Last name is required.'],
},
email:{
type:String,
required... |
const express = require('express'),
router = express.Router(),
Movie = require('../models/movie'),
Comment = require('../models/comment'),
Theatre = require('../models/theatre'),
Showtime = require('../models/showtime'),
Bill = require('... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var ball;
function preload()
{
}
function setup() {
createCanvas(800, 700);
engine = Engine.create();
world = engine.world;
rectMode(CENTER);
var boxPosition = 550;
var boxY=610;
var box... |
'use strict'
const apiUrl = "http://localhost:5000";
window.addEventListener('load', async function () {
const root = document.querySelector('.root');
const response = await fetch(`${apiUrl}/recipes`);
const recipes = await response.json();
root.innerHTML = `<h1>Correctly Fetched ${Object.keys(recipe... |
Vue.component("countrydata", {});
const app = new Vue({
el: "#app",
data: { info: [] },
mounted() {
axios
.get(" https://covid-api.mmediagroup.fr/v1/vaccines")
.then((response) => {
this.info = Object.freeze(response.data);
});
},
filters: {
percentageOfVaccinated(value) {
... |
/** _ _____ _ _
* | | |_ _| |_| |
* | |_ _| | | _ |
* |___|_|_| |_| |_|
* @author lo.th / http://lo-th.github.io/labs/
* CROWD worker launcher
*/
var Gr;
var Maxi = 1000;
var GrMax = Maxi * 5;
var crowd = ( function () {
'use strict';
var worker, blob;
var callback;//, upCall... |
const express = require("express");
const app = express();
const fetch = require("node-fetch");
const cors = require("cors");
const PORT = 5000;
app.use(cors());
app.get("/codewars/:username", async function(req, res) {
const { username } = req.params;
const response = await fetch(
"https://www.codewars.com/a... |
import React from "react";
import { useContext } from "react";
import { PlanetContext } from "../contexts/PlanetContext";
import { NavLink } from "react-router-dom";
import HamburgerMenu from "./HamburgerMenu";
import useStyles from "../styles/menu-style";
function Menu({ handleOverview, handleToggle, isMobileMenuOpen... |
import React from 'react';
import { expect } from 'chai';
import { shallow, mount } from 'enzyme';
import sinon from 'sinon';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import PropTypes from 'prop-types';
import PasswordField from './PasswordField';
const muiTheme = getMuiTheme();
const wrapper = mount... |
import React from 'react';
import { Input} from 'reactstrap';
import { AiOutlinePaperClip } from "react-icons/ai";
import sent from "../../../../assets/sent.webp";
const MobInput = () => {
return (
<React.Fragment>
<span className={"mobile-input-container"}>
<Input type={"textarea"} ... |
import React, { Component } from 'react';
import { HashRouter, Route, Switch, NavLink} from 'react-router-dom';
import { connect } from 'react-redux';
import {AppBar, MenuItem, Drawer, IconButton} from 'material-ui';
import { Link } from 'react-router-dom';
import { nextMenu } from '../actions/MenuActions';
/... |
var dep3_1_1 = require('./dep3-1-1');
var dep3_1_2 = require('./dep3-1-2');
module.exports = {
exec: function () {
console.log('dep3-1');
dep3_1_1.exec();
dep3_1_2.exec();
}
}; |
Posts = new Mongo.Collection("posts");
if (Meteor.isClient) {
Meteor.subscribe("posts");
Template.body.helpers({
posts: function () {
return Posts.find({}, {sort: {createdAt: -1 }});
}
});
Template.body.events({
"submit .new-post": function (event) {
var title = event.target.title.val... |
'use strict';
module.exports = app => {
class FindPeopleController extends app.Controller {
* getpeople() {
const openid = this.ctx.query.openid;
var result = yield this.ctx.service.post.getPost(openid,2);
if(result){
this.ctx.body = {code:1,result};
... |
import { FETCH_WORKS, FETCH_WORK } from './types';
export const fetchWorks = (q) => dispatch => {
q && q.length > 0 &&
fetch(`/api/works?q=${q}`)
.then(res => res.json())
.then(works =>
dispatch({
type: FETCH_WORKS,
payload: works
})
);
};
export const fetchWork = (id) => d... |
import { combineReducers } from 'redux';
import CategoryReducer from './CategoryReducer';
import SelectionReducer from './SelectionReducer';
import OrganizationReducer from './OrganizationReducer'
export default combineReducers({
categories: CategoryReducer,
organizations: SelectionReducer,
organization: Organiz... |
import React from 'react';
import {
ListItem,
ItemLabel,
ItemDescription,
ItemContentContainer,
CheckBox,
OptionItemContent,
} from './DropdownMultiSelect.style';
export const dropDownListToggler = (optionsList, listId) => {
if (optionsList && optionsList.length) {
const list = document.getElementBy... |
(function () {
requirejs.config({
paths: {
'jquery': '../scripts/libs/jquery.min',
'mocha': '../scripts/libs/mocha',
'chai': '../scripts/libs/chai',
'sinon': '../scripts/libs/sinon',
'httpRequest' : '../scripts/crowdChat/httpRequest',
'... |
function Score() {
var $score = $('#score');
var pointUnit = 100;
var points = 0;
var setScore = function() {
$score.text((' ' + points).substr(-8));
};
var clBonus = function(lines) {
if (lines > 0) {
points += pointUnit * (lines + (lines - 1) / 10);
setScore();
}
};
var reset = function(... |
import React from 'react';
import './App.css';
import Reel from 'react-reel'
const theme = {
reel: {
boxSizing: 'border-box',
height: "1em",
display: "flex",
alignItems: "flex-end",
overflowY: "hidden",
fontSize: '360px',
fontWeight: "300",
li... |
// Variables //
const iva = 1.21;
let resultadofinal = 0;
const pantalla = document.querySelector('.numero');
const cantCuotas = document.querySelector('.cantCuotas');
const mostrarCarrito1 = document.querySelector('.carrito');
let carrito = [];
let registrados = [];
const loginlogout = document.querySelector('.loginbt... |
const { books } = require("../data/books.js");
class Book {
static all() {
return books;
}
}
|
import React, { Component } from 'react'
import CoinImage from './CoinImage'
class CoinBlueprint extends Component {
render() {
return (
<section id="table">
<table id="coin-box">
<tbody>
<div id="formatting-drama">
<th>
<h2>{this.props.name}</h2>... |
import { platform } from '../../core/platform.js';
import { EventHandler } from '../../core/event-handler.js';
import { XrPlane } from './xr-plane.js';
/**
* Plane Detection provides the ability to detect real world surfaces based on estimations of the
* underlying AR system.
*
* ```javascript
* // start session ... |
var Mogy = {};
Mogy.config = require('./lib/config');
Mogy.start = require('./lib/start');
Mogy.register = require('./lib/register');
Mogy.workers = require('./lib/workers');
Mogy.cli = require('./lib/cli');
module.exports = Mogy;
|
const FETCH_STARTED_SEARCH_LIST='FETCH_STARTED_SEARCH_LIST';
const FETCH_SUCCESS_SEARCH_LIST='FETCH_SUCCESS_SEARCH_LIST';
const FETCH_FAILURE_SEARCH_LIST='FETCH_FAILURE_SEARCH_LIST';
const FETCH_INITED_SEARCH_LIST='FETCH_INITED_SEARCH_LIST';
export {FETCH_STARTED_SEARCH_LIST,FETCH_SUCCESS_SEARCH_LIST,FETCH_FAILURE_SEA... |
// Exception solo para no tener que nombrar
(function() {
'use strict';
/**
* @desc Modulo principal de SiipapX Kernell
* Nota: Usamos una etiqueta especial de eslint para permitir que
* el nombre de este archivo sea index.module.js y no sx-kernell.module.js
*/
angular
.module('luxor', ['ui.bootstra... |
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Button, Checkbox, Confirm, Dropdown, Grid, Header, Icon } from 'semantic-ui-react';
import axios from 'axios';
import LatePrefsheetModal from './LatePrefsheetModal';
import './settings.css';
const downloadO... |
$( document ).ready(function() {
var width = $("#container").innerWidth(),
height = $("#container").outerheight,
introX = width - 250,
introSpeed = width / 2000,
fullRotation = "6.2831853rad";
var intro1 = $("#intro-container div:eq(0)");
var intro2 = $("#intro-container div:eq(1)");
va... |
Page({
data: {
projId: 0,
canvasId: 0,
cardId: 0,
comments: {
avatar: 'http://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLnsYM6ibJ4QzKg0FaOUK4977khOcGic8kAJiaeLSNV6X5JS5SvjuQhxotadAFY9pYhqQ4UNvArB5Tuw/0',
nick_name: 'Junder King'
}
},
onLoad: function (options) {
console.log('cardDetai... |
import React, { useState } from 'react'
import icon_arrow from '../images/icon-arrow.svg';
import './styles/header.css';
const Header = ({getIpInfo}) => {
const [ipAddress,setIpAddress]=useState("");
return (
<div className="header">
<h2>IP Address Tracker</h2>
<div className="h... |
class Store {
constructor(rootReducer) {
this.state = {};
this.rootReducer = rootReducer;
this.getStore = this.getStore.bind(this);
}
getStore() {
return Object.assign({}, this.state);
}
}
const createStore = (...args) => new Store(...args);
const combineReducers = reducerContainer => {
ret... |
const router = require("express").Router();
const bucketController = require("../../controllers/bucketController");
router.route("/")
.get(bucketController.findAll)
.post(bucketController.create);
// Matches with "/api/bucket/:id"
router
.route("/:id")
// .get(bucketController.find)
.get(bucketController.fi... |
// http://dojotoolkit.org/reference-guide/1.10/dojo/i18n.html
define({
messages: {
instructions: 'Clique no botão do Mapillary e depois clique na localização desejada no mapa.',
notAvailable: 'Infelizmente, o Mapillary não está disponível nesta localização.'
},
rightClickMenuItem: {
... |
import React from "react";
import { Link } from "react-router-dom";
import { connect } from "react-redux";
// Components:
import FullPageSpinner from "./spinner/FullPageSpinner";
const LandingPage = props => {
// TODO: If logged-in and user visits this site, open it as it is.
if (!props.auth.isLoaded) return <Ful... |
var express = require('express');
var session = require('../session');
var router = express.Router();
router.get('/',function(req,res){
if(("sid" in req.cookies)&&session.getSession(req.cookies["sid"]))
res.render('become_a_host');
else
res.render('alert',{message:'로그인을 해주세요.',redirect:'/login'... |
import { AppRegistry } from 'react-native'
import firebase from 'firebase'
import App from './App'
const config = {
apiKey: 'AIzaSyCO6vjU2F9nIIS_NqCu-I7sk7p0PjO149I',
authDomain: 'reactauth-b4e16.firebaseapp.com/',
databaseURL: 'https://reactauth-b4e16.firebaseio.com',
projectId: 'reactauth-b4e16',
... |
var locMaps = L.map('map', {
zoom: 9,
center: new L.latLng([-5.3975221, 105.252922]),
layers: L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png')
});
L.marker([-5.3975221, 105.252922]).addTo(locMaps)
L.control.search({
url: 'https://nominatim.openstreetmap.org/search?format=json&q={s}',
... |
import React, { Component, PropTypes } from 'react'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import { fetchCustomers } from '../../actions'
import CustomerRow from './_CustomerRow'
require('../../styles/customers/list.scss')
class Customers extends Component {
componentWillMount () {... |
//React
import React, { Component } from 'react'
//Styles
import { Container, Paper, CssBaseline } from '@material-ui/core'
import { makeStyles } from '@material-ui/styles'
//Dependencies
import { PropTypes } from 'prop-types'
export default function Card(props) {
const useStyles = makeStyles({
cardMargins:... |
import './App.css';
import { useState, useEffect } from 'react'
import Users from './Users'
function App() {
const [list, setList] = useState([])
useEffect(() => {
fetch("https://www.breakingbadapi.com/api/characters")
.then((response) => response.json())
.then((json) => setList(json))
}, [])
ret... |
"use strict";
import React from "react";
import Router from "react-router";
import Routes from "./routes.jsx";
import {render} from "react-dom";
import ReactDOM from 'react-dom';
window.reactRoot = ReactDOM.render(Routes, document.getElementById('apps')); |
import history from '../history';
import HistoryUtils from '../Utils/HistoryUtils';
import config from '../config/config';
function isDef(v) {
return v !== undefined && v !== null;
}
function isAsyncPlaceholder(node) {
return node.isComment && node.asyncFactory;
}
function getFirstComponentChild(children) {
if... |
const Assets = require('./asset');
const Logs = require('./log');
module.exports = {
Assets,
Logs
}; |
module.exports = async (client, message, args) => {
message.delete();
if(!message.member.hasPermission("MANAGE_MESSAGES", false, true, true)) {
message.reply("**Você não tem permissão para limpar o chat!**");
return 0;
}
if (!message.guild.me.hasPermission("MANAGE_MESSAGES", false, true, tr... |
var ipint = require('../');
var ip = '174.36.207.186',
int = ipint.ipToInt('174.36.207.186');
console.log(ip + ' => ' + int);
console.log(int + ' => ' + ipint.intToIp(int));
|
import React from 'react';
import Constants from '../constants';
import NotificationSystem from 'react-notification-system';
import Modal from '../widgets/Modal.jsx';
import Loader from '../widgets/Loader.jsx';
import Tooltip from '../widgets/Tooltip.jsx';
import ContainersList from '../containers/ContainersList.jsx';
... |
import React, {useState} from 'react'
const AddMission = (props) => {
const [newMission, setNewMission] = useState("");
const [time, setTime] = useState(0);
const handleChange = (e) => {
e.preventDefault();
setTime(() => e.target.value);
};
function handleSubmit (e) {
e.p... |
import { getMerchantOpenList, getOperatorList, getInstList} from './api';
export async function fetchMerchantOpenList(params) {
const list = getMerchantOpenList(params);
const operator = getOperatorList();
const inst = getInstList();
return {
list:list,
operator:operator,
inst:inst
};
}
|
import XElement from "/libraries/x-element/x-element.js";
import QrScanner from "/libraries/qr-scanner/qr-scanner.min.js";
import BackupFile from "/libraries/backup-file/backup-file.js";
import XToast from "/secure-elements/x-toast/x-toast.js";
export default class XAccountFileImport extends XElement {
html() {
... |
module.exports = function (gulp, $, options) {
'use strict';
var fs = require('fs');
gulp.task('remove-index-pdf', function () {
return $.del([
options.dir.dest + '/index.pdf.html'
]);
});
gulp.task('make-pdf', function () {
var settings = JSON.parse(fs.readFileSync(__dirname + '/../src/c... |
var express = require('express');
var router = express.Router();
var models = require('../../lib/db');
var helper = require('../../lib/helper');
// All routes require authenication
router.use(helper.isAuthenicated);
// resolve the id given to be an item in current user's cart
// also inlcudes the product the cart ite... |
viewController.setObserver("profile", function () {
let dataUser = Session.get('user');
let lawer = dataUser.lawyer;
document.getElementById('name-profile-user').value = dataUser.name
document.getElementById('email-profile-user').value = dataUser.email;
document.getElementById('oab-profile-user').... |
/**
* Created by 14566 on 2017/2/15.
*/
'use strict';
const koa = require('koa');
const path = require('path');
const day2middleware = require('./day2-middleware');
const app = koa();
let fpath = path.join(__dirname, './day2.txt');
app.use(day2middleware.count(fpath));
app.listen(3000);
console.log('Listening port... |
const express = require('express');
const stripe = require('stripe')('sk_test_K8lkZPNcEhw1cA9A62L774Cc00aMK5TO1B');
const highlight = require('./endpoints/highlight/highlight.js');
const bodyParser = require('body-parser')
const ENDPOINT_SECRET = 'whsec_KoWtxyy5Z32gNFOnYd2aeYE4F9pxqkgr';
const app = express();
app.u... |
const express = require("express")
const fs = require("fs")
const ejs = require("ejs")
const api = require("../../Activity")
const router = express.Router()
function delay(gap) {
var then, now
then = new Date().getTime()
now = then
while (now - then < gap) {
now = new Date().getTime()
}
... |
import React, { Component } from "react";
import {
BrowserRouter as Router,
HashRouter,
Route,
Link
} from "react-router-dom";
import { Redirect, IndexRedirect } from "react-router-dom";
// import "./assets/react-toolbox/theme.css";
// import theme from "./assets/react-toolbox/theme.js";
// import ThemeProvide... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.