text
stringlengths
7
3.69M
import React from "react"; import { completeReservation, deleteTable } from "../../utils/api"; export default function Table({table, loadDashboard}) { async function finishReservation(event) { const abortController = new AbortController() if (window.confirm('Is this table ready to seat new guests...
function _Initialize() { $NC.setGlobalVar({ policyVal: { LO420: "", LO440: "", LO450: "" }, CARRIER_CD: "", SCAN_CD: "", BARCD_DATA_DIV: "-", NEWORDER_CHK: "", ORDERCAN_CHK: "", ORDERHOLD_CHK: "", SUM_ENTRY_QTY: 0, SUM_CONFIRM_QTY: 0, SUM_INSPECT_QTY: 0, ...
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; <<<<<<< Sampler import { NavigationContainer } from "@react-navigation/native"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import Ionicons from "react-native-vect...
var React = require('react'); var superagent = require('superagent'); var timer; var loadingText; function startTimer(callback) { loadingText = 'Loading'; timer = setInterval(function() { loadingText += '.'; callback(); }, 200); } function stopTimer(callback) { clearInterval(timer); ...
$(document ).ready(function() { var basepath = $("#basepath").val(); $(document).on('submit','#driverForm',function(e){ e.preventDefault(); if(validateDriver()) { var formDataserialize = $("#driverForm").serialize(); formDataserialize = decodeURI(formDataserialize...
import React from "react"; import { connect } from "react-redux"; import { Switch, Route, Link } from "react-router-dom"; import { getAbbMonthName } from "utilities/dates"; import Milestone from "./scenes/Milestone"; import TopGreyBar from "../../components/TopGreyBar"; import "./style.css"; const MilestoneListItem = ...
var script = document.getElementById("map_load"); var JS__FILE__ = script.getAttribute("src"); // 获得当前js文件路径 var home = JS__FILE__.substr(0, JS__FILE__.lastIndexOf("/") + 1); // 地图API主目录 // 地图类型 baidu google var MAP_TYPE = 'baidu'; // websocket请求协议 wss ws var WEBSOCKET_PROTOCOL = 'ws'; (function () { window.Map_loa...
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import InfiniteCalendar from './src/index' var badges = {"20160612":2, "20160621":5}; var today = new Date(); var minDate = new Date(2014,0,1); var nextweek = new Date(2016,5,29); render(<InfiniteCalendar badges={badges} selectedDate...
//소스는 웬만하면 퍼가지 마세요. //콘솔에 입력하여 실행할수 있습니다. alert('TG_2를 이용해 주셔서 감사합니다... 로딩을 시작합니다.(일부 사이트에선 tg를 사용하실수 없습니다.(play스토어,크롬새탭등))') console.log('Loading'); const p = (e) =>{console.log(e)}; const 프린트 = (e) =>{console.log(e)}; const 출력 = (e) =>{console.log(e)}; const p_warn = (e) =>{console.warn(e)}; const 출력_경고 = (e) =>{cons...
/*! * Original code from three.js project. https://github.com/mrdoob/three.js * Original code published with the following license: * * The MIT License * * Copyright &copy; 2010-2014 three.js authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software an...
exports.getSeed = () => ({ modelName: 'user', className: 'User', fields: [{ name: 'name', type: 'STRING', }, { name: 'email', type: 'STRING', }], })
angular.module('myApp', []) .controller('MyController', ['$http', '$scope', function($http, $scope) { $scope.order = 'age'; $scope.changeOrder = function() { if ($scope.order === 'age') { $scope.order = '-age'...
import React from 'react'; import { Link, withRouter, useHistory } from 'react-router-dom'; import styled from 'styled-components'; import Footer from '../../Components/Footer/Footer'; import { KAKAO_LOGIN_API } from '../../config'; import { setToken } from '../../utils/storage'; function Login() { const history = u...
const crypto = require('crypto'); const connection = require('./db'); const _collection = 'images'; class ImageService { static getRandomKey(orgUrl = '' , prefix = ''){ const date = new Date(); const randomText = date.getMonth() + date.getDay() + date.getHours() + date.getMinutes(); ...
'use strict'; const TABLE_NAME = "skill" module.exports = { up: async (queryInterface, Sequelize) => { return queryInterface.createTable(TABLE_NAME, { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, profile_id: { t...
//获取dom对象 var $ = function(id) { return typeof id === 'string' ? document.getElementById(id) : id; }; // 弹窗构造函数 var Modal = function (id,html) { this.html =html; this.id = id; this.open = false; } Modal.prototype.create = function () { if(!this.open){ var modal = document.createElement('...
var db = require('../../../config/db.config'); var fs = require('fs'); const Questions = db.questionary; exports.findAll = (req,res)=>{ Questions.findAll().then(data=>{ return res.json({ success: true, message: "Data Found", data: {'request':data}, }) }).c...
robot.open("http://siterobot.justengland.c9.io/debug", function() { robot.expect.val("SiteRobot Debug Page").ele("title") // The title ele should have a value robot.expect.val("Client").ele("label[for='client']") // the label should have a value robot.expect.val("value", "go!").attr("#submit", "value") // T...
function JotEditor () { var textBox; // this._textBox = textBox = document.createElement('textarea'); this._textBox = textBox = document.createElement('input'); textBox.type = "text"; textBox.className = "row"; textBox.style.border = "1px solid black"; this._inView = null; // the view we're editi...
const MAX_VISIBLE_CATEGORIES = 2; export const ALL_CATEGORIES_OPTION = { key: 'all', label: 'All categories', }; export function isAllCategoriesSelected(selectedCategories) { return _.includes(selectedCategories, ALL_CATEGORIES_OPTION.key); } export function getCategoriesDisplayLabel(categoryNames) ...
define(['async!//maps.google.com/maps/api/js?sensor=false', 'underscore', 'jquery', 'signalr.hubs', 'riderTime'], function (googleMaps, _, $, hubs, RiderTime) { var eventSlug = null; var riderSlug = null; function initialize() { // retrieve basic information about the event rider (map default location and zoom...
/* eslint-env mocha */ 'use strict'; const { ESLINT_KEY, organizeOptions } = require('#util'); const { isEmptyArray } = require('./test-util'); const { strict: assert } = require('assert'); describe ( 'organizeOptions', () => { it ( 'should wr...
const serializeError = require('serialize-error').serializeError; const ipc = require('node-ipc'); function _handleError(error) { this.set('Content-Type', 'application/json; charset=utf-8'); this.statusCode = error.code || error.statusCode || 500; this.send(serializeError(error)); } let socketAPI...
import React, { Fragment } from "react"; import { API_ROOT, axiosWithCache } from "../../app/app-helpers"; import ReactGA from "react-ga"; export default class DownloadCatalogFilterTleButton extends React.Component { state = { isLoading: false, errorMessage: "", textFile: null, }; linkRef = React.cr...
define(function (require) { var util = require('lib/util.js'); describe('an property', function () { it('can be initialised with a value', function () { var prop = util.property('initial value'); expect(prop()).to.equal('initial value'); }); it('accepts a function value', function () { ...
/* 🤖 this file was generated by svg-to-ts*/ export const EOSIconsFence = { name: 'fence', data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 12v-2h-2V7l-3-3-2 2-2-2-2 2-2-2-3 3v3H3v2h2v2H3v2h2v4h14v-4h2v-2h-2v-2h2zm-5-5.17l1 1V10h-2V7.83l.41-.41.59-.59zm-4 0l.59.59.41.41V10h-2V7.83...
import Icon from "./iconLibrary/icon"; function App() { return ( <div className="App"> <h1>Custom Icon Library</h1> <Icon icon="TWITTER" color="black" size="40" /> <Icon icon="FACEBOOK" color="black" size="40" /> <Icon icon="LINKEDIN" color="black" size="40" /> <Icon icon="GITHUB" c...
const fs = require('fs') require('dotenv-safe').config() const moment = require('moment') const { WebClient } = require('@slack/web-api') console.log('Getting started with Node Slack SDK') // Create a new instance of the WebClient class with the token read from your environment variable const web = new WebClient(pro...
const initState = {} const httpHistoryReducer = (state = initState, action) => { switch (action.type) { case 'RENDER_HISTORY_DATA': console.log('this is added data', action.payload) return action.payload default: return state; } }; export default...
const myModule = require('./script'); const myModuleInstans = new myModule(); myModuleInstans.hello(); myModuleInstans.goodbye();
var assert = require('assert'); var fs = require('fs'); var PDFReader = require('../index'); function getTestFileBytes() { return new Uint8Array(fs.readFileSync('./pdfs/50PAGE.pdf')); } describe('PDFReader', function () { var pdfReader = new PDFReader(getTestFileBytes()); describe('#open()', function () { ...
function getHammingDistance(str1, str2){ var diff=0; if(str1.length != str2.length){ console.log("Error! Strings are not equal"); } else { for (var i=0; i<str1.length; i++){ if (str1.charAt(i) != str2.charAt(i)) diff++; } } return diff; } function countSubstrPattern(strOriginal, strPattern){ var total...
import React, { Component } from "react"; export default class App extends Component { state = { name: [], }; componentDidMount() { fetch("http://localhost:9000/students") .then((response) => response.json()) .then((data) => { // console.log("data students", data); this.setSt...
import React from 'react' import { Row } from 'react-bootstrap' import PropTypes from 'prop-types' const Section = (props) => { return ( <Row className="justify-content-md-center top-spacer"> <h2 id={props.title.toLowerCase()} className='text-center'>{props.title}</h2> <hr /> { props.children }...
var dispatcher = require('../dispatcher'); module.exports = { testAction: function() { dispatcher.dispatch({ title: 'hey', type: 'testaction' }) }; };
import React from 'react' const NavBar = (props) => { return ( <header className="App-header"> <a href="/"> <img href="/" src='https://api.nasa.gov/assets/img/favicons/favicon-192.png' style={{ width: "100px", height: "100px" }} className="App-logo" ...
const router = require('express').Router() const Artist = require('../models').Artist const Album = require('../models').Album // list all artists router.get('/', function (req, res) { Artist .findAll({attributes: ['id', 'name', 'genre']}) .then(function (artists) { res.json(artists) }) .catch(...
$(document).ready(function () { function disableButton() { $("#btnSubmit").prop('disabled', true); } function enableButton() { $("#btnSubmit").prop('disabled', false); } $('#btnSubmit').click(function (e) { e.preventDefault(); var isfoto = validate_foto(); var valid = $("#form-pinj-agri").validationEn...
'use strict' const Manager = use('App/Models/Manager') class ManagerController { async index ({ view }) { const managers = await Manager.all(); return view.render('managers', {managers: managers.toJSON()}); } async create ({ request, response }) { const manager = await Manager.create(request.only...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import './Navbar.css'; export default function Navbar() { const dispatch = useDispatch(); const history = useHistory(); const handleLogout = () => { dispatch({type: `LOGOUT`}); dispatch(...
import React, { Component, } from 'react'; import PropTypes from 'prop-types'; import { Animated, PanResponder, Platform, StyleSheet, TouchableOpacity, ViewPropTypes, View, Text } from 'react-native'; export default class SwipeRow extends Component { // 构造 constructor(props)...
let memGrid; const topPad = 50 function setup() { let canvasParent = document.getElementById("canvascontainer") let canvas = createCanvas(canvasParent.clientWidth, canvasParent.clientHeight); canvas.parent(canvasParent); /* console.log("width:" + canvasParent.clientWidth) console.log("height:" +...
// var moment = require('moment'); // moment().format();
import React from 'react' import styled from 'styled-components' const StyledDiv = styled.div` display: flex; width: 100%; ` const StyledCard = styled.div` background: WHITESMOKE; border-radius: 2px; height: 125px; margin: 1rem; width: 20%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0....
// 定义一些状态 export default { }
import React, { Component } from 'react'; import * as QR from 'qrcode-generator'; class QRCodeImg extends Component { constructor(props) { super(props); this.state = {}; } render() { if (!this.props.NanoAddress) { return null; } let typeNumber = 4; let errorCorrectionLevel = 'L'; let qr = QR(type...
var express = require("express"); var bodyParser = require("body-parser"); var expressHbs = require('express-handlebars'); var parser = bodyParser.urlencoded({extended:false}); var app = express(); app.use(express.static("public")); app.engine('.hbs', expressHbs({defaultViews: 'home_views', extname: '.hbs'})); app.set...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setDefaultCompany } from 'ducks/DefaultCompany'; import kroLogo from 'images/powered-by-kro.png'; import asOneLogo from 'images/working-as-one.png'; import Box from 'components/Box'; import Button from 'components/Button'; import ...
/* * * TaskForm constants * */ export const CHANGE_SUBJECT = 'app/TaskForm/CHANGE_SUBJECT'; export const CHANGE_STARTTIME = 'app/TaskForm/CHANGE_STARTTIME'; export const CHANGE_ENDTIME = 'app/TaskForm/CHANGE_ENDTIME'; export const CHANGE_NEWCOWORKER = 'app/TaskForm/CHANGE_NEWCOWORKER'; export const CHANGE_COWORKER...
var app= require('express').Router(); var fb= require('./fbconfig'); var utils= require('./utils'); var personaldetailsobj= { getall:(req,res)=>{ fb.ref('/personaldetails').once('value',success=>{ let personaldetails = utils.fbtoarr(success.val()); return res.send(personal...
import React from 'react'; import {createStackNavigator} from 'react-navigation-stack'; import ReportDetails from '../screens/StudentScreens/ReportDetails'; import MyReportsScreen from '../screens/StudentScreens/MyReportsScreen'; export const AppStackNavigator = createStackNavigator({ ReportsList : { ...
import React from 'react' import { View, Text, StyleSheet } from 'react-native' import { connect } from 'react-redux' import BackButton from '../Components/BackButton' class LaunchDetails extends React.Component{ static navigationOptions = { header: null } render(){ const { missionName, launchYear, rock...
const path = require('path') describe('wdio-image-comparison-service check methods folder options', () => { const baselineFolder = browser.config.services.includes('sauce') ? 'tests/sauceLabsBaseline' : 'localBaseline' beforeEach(async () => { await browser.url('') await browse...
// Write a function, given 2 positive intergers, find out if the two numbers have the same frequency of digits // function must have complexities: // Time O(N) function sameFrequency(num1, num2) { // DO stuff // convert intergers to strings num1 = num1.toString(); num2 = num2.toString(); // if number lengths ...
const express = require('express'); const uuid = require('uuid'); const fs = require('fs'); const app = express(); const {getElementById,createElement,updateElement,deleteElement} = require('./controller/controller'); let data = require('./data.json'); app.use(express.urlencoded({extended:true})); app.use(express.js...
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import urls from 'textCleanup/constants/urls'; import AssessmentApp from 'textCleanup/containers/AssessmentApp'; import FieldSelection from 'textCleanup/containers/FieldSelection'; import Items from 'textCleanup/containers/Items/App'; expor...
Ext.define('CustomApp', { extend: 'Rally.app.App', requires:['Rally.ui.renderer.template.FormattedIDTemplate','Rally.ui.grid.plugin.PercentDonePopoverPlugin'], componentCls: 'app', title: 'BPO Portfolio View', launch: function() { this.add({ xtype: 'rallyownerfilter', itemId: 'ownerComboBox', s...
/// <reference path="../ProductList/ProductList.js" /> /*******************Store Model************************/ var m_pro_pricemasterid = { name: 'price_master_id', type: 'string' }; var m_pro_base = [ { name: 'product_image', type: 'string' }, { name: 'product_id', type: 'string' }, { name: 'brand_name', ...
/* * JS for startScreen generated by Appery.io */ Apperyio.getProjectGUID = function() { return '566c72a3-f7ce-435a-932b-efebe1a73adf'; }; function navigateTo(outcome, useAjax) { Apperyio.navigateTo(outcome, useAjax); } // Deprecated function adjustContentHeight() { Apperyio.adjustContentHeightWithPa...
"use strict"; // *** LOOPIES *** // // a conditional runs once if the condition is true, but a loop allows you to run the same block of code based on whether or not a condition remains true // for (setup, condition, increment) {} keeps looping until the condition is met, and increments as given // const colors = ['...
export { default } from './interceptor'
myApp.controller("WorldController",function($scope, $location, $stateParams,$ionicSlideBoxDelegate,$ionicModal,$ionicScrollDelegate,$timeout) { $scope.playJulio = function(){ console.log("pressed julio"); }; $scope.callSlide = function(theIndex){ console.log("WORLD pressed slide"+theIndex...
// Generated by CoffeeScript 1.3.3 /* slideBaseClient-plugin-alone.js ------------------------------------------------ author: [Takeharu Oshida](http://about.me/takeharu.oshida) version: 0.1 licence: [MIT](http://opensource.org/licenses/mit-license.php) */(function(){var e;e=new sbClient.Model.Plugin({name:"alone",ele...
exports.seed = function(knex, Promise) { // Deletes ALL existing entries return knex('param_type').del() .then(function () { // Inserts seed entries return knex('param_type').insert([ {id: 1, name: 'Grant价格', desc:'((stage_count-free_count)-(stage_count-free_count)/discount_unit)*price_per_...
const router = require('express').Router(); const commentController = require('../../controllers/admin/comment'); const { isAuthenticated, isAdmin } = require('../../middleware/authenticated'); router.all('/*', isAuthenticated, isAdmin,(req, res, next) => { next(); }); router.get("/",commentController.getComments...
// Valider med et RegExp, at en tekststreng kun indeholder nogle positive heltal, adskilt med komma. let regex = /^([1-9]\d*,)*[1-9]\d*$/; let string1 = 'test'; let string2 = '0'; let string3 = '1,2,3,4,50'; let string4 = '-1'; let string5 = '7'; let string6 = 'daw7,6'; console.log(regex.test(string1)); console.log(...
$(document).ready(function(){ document.querySelector('.welcome').style.display = "block"; }); let origBoard, huPlayer = '', aiPlayer = '', level = "", yourScore = 0, aiScore = 0; const winCombos = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], ...
import React, { Component, useState ,useContext, useReducer} from 'react' const Context = React.createContext(); const { Provider } = Context; function FruitAdd(props) { const context = useContext(Context); const {fruits,dispatch}=context; const [fname, setPname] = useState(''); const onAddFruit = ...
import React, { Component } from 'react'; import HeaderMain from "./Header"; import { Grid } from '@material-ui/core' class MainLayout extends Component { render() { //console.log('render Home') const { children } = this.props return ( <div> <HeaderMain /> <div> { children } </div>...
import React from 'react' import ReactEcharts from 'echarts-for-react' const DepositTrend = () => { const onChartReady = (echart) => { console.log('echart is ready', echart) } const onChartLegendselectchanged = (param, echart) => { console.log(param, echart) } const onChartClick = (...
jQuery(document).ready(function($) { var scrollLink = $('.scroll'); //Smooth scrolling scrollLink.click(function(e){ e.preventDefault(); $('body, html').animate({ scrollTop: $(this.hash).offset().top - 70 }, 500) }) //Menu scroll active class $(window).scroll(function(){ var sc...
(function () { 'use strict'; angular .module('StationCreator') .directive('actionSelector', ActionSelector); ActionSelector.$inject = [ '$log', '$translate' ]; function ActionSelector( $log, $translate ) { return { restrict: 'E', transclude: true, replace: true, template: ( '<md-inp...
const { Command } = require("discord.js-commando"); const { MessageEmbed } = require("discord.js"); const { oneLine } = require("common-tags"); const moment = require("moment-timezone"); module.exports = class PollCommand extends Command { constructor(client) { super(client, { name: "poll", group: "po...
$(() => { hentAlleBestillinger(); }); function hentAlleBestillinger() { $.get("Holberg/hentAlle", (bestillinger) => { formaterAlleBestillinger(bestillinger); } ); } function formaterAlleBestillinger(bestillinger) { let ut = "<table class='table table-striped'>" + "<tr>" + ...
'use strict'; // client === {clientName, phone, email, companyName, address, city, state, zip, // projectName, projectAddress, projectContact, projectDescription} // options === {brochure: bool, credit: bool, contract: bool, capture: dataURL} // pricing === {grandMonthly, term, totalQuantity, // col...
const Offer = require('../model/Offer') const checkPrivileges = require('../util/offerFunctions').checkPrivileges module.exports = { method: 'GET', path: '/api/offers/{id}', options: { handler: async (request, h) => { return request.pre.offer }, auth: { strat...
import {onGet,onPost} from "../main"; // 保存合同 export const saveContract = params=>{ return onPost('deal/saveContract',params) } // 查询合同模板详细 export const queryTemplateInfo= params=>{ return onPost('deal/queryDetailed',params) } // 查询客户列表 export const queryCustomerList= params=>{ return onPost('customer/queryCon...
/* * Counting Vowels - Two Ways * Zack Sargent, April 26th, 2021 * Node v15.5.0 */ // Imperative Way: function countVowels1(string) { let totalVowels = 0; for (const char of string.toLowerCase()) { switch (char) { case "a": case "e": case "i": case "...
//app.js const util = require('./utils/util.js') App({ onLaunch: function () { // 登录 wx.login({ success: res => { wx.request({ url: `https://gy.lianwuyun.cn/api//Wxmini/login/${res.code}`, success: res => { let self= this; let wxid = res.data.results....
import { classNameBindings, classNames } from '@ember-decorators/component'; import BaseCarouselSlide from 'ember-bootstrap/components/base/bs-carousel/slide'; @classNameBindings('left', 'next', 'prev', 'right') @classNames('item') export default class CarouselSlide extends BaseCarouselSlide {}
import Vue from 'vue' import vClickOutside from 'v-click-outside' import '~/assets/argon/vendor/nucleo/css/nucleo.css' import '~/assets/argon/vendor/font-awesome/css/font-awesome.css' import '~/assets/argon/scss/argon.scss' import '~/assets/argon/scss/bvFill.scss' import '~/assets/argon/scss/my-shit.scss' import Vue...
function shhh(sentence) { const low = sentence.toLowerCase(); return `"${low.charAt(0).toUpperCase() + low.slice(1)}", whispered Edabit.`; } const result = shhh("tHaT'S Pretty awesOme"); console.log(result); // Test.assertEquals(shhh("HI THERE!"), "\"Hi there!\", whispered Edabit.") // Test.assertEquals(shhh("coo...
/** * Created by leonard on 2016/11/26. */ var SuperType = function () { this.property = true; }; SuperType.prototype.getSuperValue = function () { return this.property; }; // 原型链继承 // 主要问题: // 1. 假若父类有一个属性是引用类型,则所有的子类公用该属性 // 2. 没办法在不影响所有子类对象示例的情况下,向父类的构造函数传递参数 // 故实践中很少单独使用原型链继承 var SubType1 = function ...
var census = require('./../census'); var db = require('./../database'); var updateDelay = 1000 * 60 * 60 * 24 * 7; var updateTimeout; db.UpdateHistory.findById('vehicle').then(function (record) { if (record) { var diff = new Date() - record.lastUpdate; if (diff > updateDelay) { refres...
var saxn = require('saxn-saxjs'); var sax = require('sax').createStream(false, {lowercasetags:true, trim:true}); var fs = require('fs'); var util = require('util'); var html = ''; var parser = saxn.createSaxnSaxjsParser(sax, { 'table:table': function(tag) { var tableName = tag.attributes['table:name']; html ...
import React from 'react'; import Card from '../../components/Card/Card'; import { Container, Grid } from '@material-ui/core'; import './Home.css'; function Home() { return ( <div className="home"> <h1>Home Page</h1> <Container fixed> <Grid container spacing={1}> <Grid container it...
// 对象的字面量增强 const age = 15 const obj = { name: 'andy', // age: 15, age, // 同名直接放入 // foo: function () { // console.log(this); // }, // 等价于 foo(){ console.log(this); }, // 计算属性-表达式当成属性 [ 表达式 ] ,这个属性是动态生成的 [Math.random()]: '123123' }
var a = 2; var b = 1; document.write("a is "+a); document.write("<br>"); document.write("<br>"); document.write("b is "+b); document.write("<br>"); document.write("<br>"); var result = --a - --b + ++b + b--; // --a is 1 and a is 1 // --b is 0 and b is 0 // ++b is 1 and b is 1 // b-- is 1 and b is 0 document.write("resu...
import { Data } from '../../CharacterDataStructure' import { valueRender, skillDurationRender, targetRender, changeRender } from '../../Descriptions.js'; Data.descriptionGenerators.ApplyDamageAbsorbingShieldTarget = (character, skill, effect) => { return `grant target damage-absorbing shield for ${valueRender(charac...
import React, { useEffect } from "react"; import classes from "./projectsList.module.css"; import Layout from "../../../Layout/Layout"; import { Box, Button, Checkbox, FormControlLabel, FormGroup, Grid, Paper, Slider, TextField, } from "@material-ui/core"; import { Autocomplete } from "@...
define(['jquery', 'QDP'], function ($, QDP) { "use strict"; // EVENT-ON:layout.started QDP.on("layout.started", function () { console.info("注册->系统运行后自动注册 - plugins-actions - 功能扩展插件:city、chart"); }); var plugins = []; // EVENT-ON:generator.option.rendered QDP.on('generator.option.rendered', fun...
(function(){ var componentBox = document.querySelectorAll('.component-container'); for (var i = 0; i < componentBox.length; i++) { var codeBox = document.getElementById(componentBox[i].dataset.include); var componentHTML = componentBox[i].innerHTML; codeBox.innerHTML = componentHTML.replace(/&/g,'&amp;').repla...
/* * ProGade API * Copyright 2014, Hans-Peter Wandura (ProGade) * Last changes of this file: Aug 12 2014 */ var PG_FOLDERUPDATE_ACTION_STATUS_STOPPED = 0; var PG_FOLDERUPDATE_ACTION_STATUS_RUNNING = 1; var PG_FOLDERUPDATE_NETWORK_REQUESTTYPE = 'PGFolderUpdateRequest'; /* @start class @param extends classP...
// For any third party dependencies, like jQuery, place them in the lib folder. // Configure loading modules from the lib directory, // except for 'app' ones, which are in a sibling // directory. // Start loading the main app file. Put all of // your application logic in there. //Load common code that includes config...
import './serializers' import './rendering' import './transforms'
// Layouts import LayoutRestaurante from '../Layouts/layoutRestaurante' import LayoutSeguridad from '../Layouts/layoutSeguridad' import LayoutSistema from '../Layouts/layoutSistema' // Pages import Login from '../Pages/Login/login'; //Menus Admin Restaurante import MenuEspecialidades from '../Pages/AdminRestaurante/Me...
/* eslint-disable no-undef */ import React, { Component } from 'react'; import './Map.css'; import _ from 'lodash'; class Map extends Component { constructor(props) { super(props); // Key is referrer restricted to // https://worldviewer.github.io/react-map-location/ this.APIkey = 'AIzaSyDwtT6k0iFxxUDIg0CdaH...
import { combineReducers } from "redux"; import authReducer from "./authReducer"; import errorReducer from "./errorReducer"; import profileReducer from "./profileReducer"; import dogReducer from "./dogReducer"; export default combineReducers({ auth: authReducer, errors: errorReducer, profile: profileReducer, d...
import * as actionTypes from '../actions/actionTypes'; const initialState = { orderReady: false, orders : [] } const reducer = (state = initialState, action) => { switch (action.type) { case actionTypes.PURCHASE_INIT: return { ...state, //Just in case I add some more ...
var app = angular.module('shortURLApp',[]); app.controller('shortAppCtrl', function($scope){ });