text
stringlengths
7
3.69M
import "./PageFilter.css"; import React from "react"; function template() { return ( <div className="page-filter"> <h1>List with Filter</h1> <div> <span> Enter Name : <input onChange={this.fieldChange}/> </span> <span> <select onChange={this.fieldChange}> ...
import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import arrow from './arrow.svg'; import classes from './index.module.css'; import {getAsync} from '../../../../tool/api-helper'; import bag from './bag.svg'; import employee from './employee.svg'; import {If...
import React from 'react' import { render } from 'react-dom' import ExchangeApp from './components/exchange-app' import './index.css' const reactRendersHere = document.querySelector("#react-renders-here") render(<ExchangeApp/>, reactRendersHere )
import React from 'react' import Facility from '../utils/Facility' import Footer from '../utils/Footer' import ProductComponents from '../utils/ProductComponents' import Multi from '../utils/Multi'; import ItemPop from '../utils/ItemPop'; import LastNav from '../utils/LastNav'; const ProductsArea = () => { return...
const MessengerBuddy = require('../../game/players/messengerbuddy'); class PlayerController { static getFriends(id) { const connection = Pixel.getDatabase().connection; return new Promise((resolve, reject) => { connection.query({ sql: 'SELECT u1.id AS u1_id, u2.id AS u2...
import { StyleSheet } from "react-native"; export default StyleSheet.create({ filterModalContainer: { flex: 1, backgroundColor: "#fff" }, fitlerModal: { marginTop: 10, marginHorizontal: 10, paddingHorizontal: 10 }, rangesContainer: { flexDirection: "row", marginHorizontal: 15, ...
$(document).ready(function () { $('.select2').select2({ theme: "bootstrap" }); var open_event; var $dialog = $('#view-dialog').dialog({ autoOpen: false, buttons: { 'Duplicar': function () { duplicate_event(open_event); $(this).dialog("close"); }, 'Apagar': functi...
'use strict'; const Service = require('egg').Service, MD5 = require('md5.js'); class GetSignInResultService extends Service { async post(params) { try { let SignInResult; const { tel, password } = params, selectUserResult = await this.app.mysql.get('users', { tel, enabled: 1 }); ...
'use strict' const property = require('@northscaler/property-decorator') const { IllegalArgumentError, MissingRequiredArgumentError, MethodNotImplementedError } = require('@northscaler/error-support') const CardinalDirection = require('../enums/CardinalDirection') class Parallel { @property() _degrees @propert...
// @flow import * as React from "react"; import { NavigationGroup } from "./NavigationGroup.js"; import { NavigationElement } from "./NavigationElement"; import type { NavigationElementPropsType } from "./NavigationElement.js"; import type { NavigationGroupPropsType } from "./NavigationGroup.js"; export function N...
import React from 'react' import { Link } from 'react-router-dom' export default class Header extends React.Component { constructor(props){ super(props) this.state = { token: null } this.handleSignOut = this.handleSignOut.bind(this) } async componentWillMount(){ const token = await wi...
const _ = require('underscore'); const paging = require('../'); const dbUtils = require('./support/db'); const driver = process.env.DRIVER; describe('findWithReq', () => { let mongod; const t = {}; beforeAll(async () => { mongod = dbUtils.start(); t.db = await dbUtils.db(mongod, driver); await Prom...
// Dummy Ajax methode om de gegevens in de backend te controleren. function doAjaxRequest() { var length = $("#ordernummer").val(); var email = $("#email").val(); if (length.length === 12 && email != "") { var response; // 50% kans in dit geval if (Math.random() >= 0.5) { response = { ...
function isLeapYear(yr) { } module.exports = isLeapYear;
import express from "express"; import routes from "../routes" import { getWrite, board, postWrite, getBoardView, boardPageNumber, postCommentDelete, deleteBoard, getEditBoard, postEditBoard, postBoard } from "../controllers/boardController"; import { uploadWriteSingle, onlyPrivate } from "../middlewares"; const boardR...
import instance from '../../helpers/axios'; export default { state: { riders: [], }, mutations: { setRiders(state, payload) { state.riders = payload; }, addRiders(state, payload) { state.riders = [...state.riders, ...payload]; }, }, actions: { // eslint-disable-next-line n...
import React from 'react'; import { Alert, StyleSheet, View, Animated, Easing, } from 'react-native'; import { Button, Headline, Caption } from 'react-native-paper'; import { connect } from 'react-redux'; import * as AuthSession from 'expo-auth-session'; import axios from 'axios'; import AppIntro from 'rn-fal...
function counter() { var date = new Date(); var matchdate = Date(d,h,m,s); var presenttime = date.getTime(); var matchtime = matchdate.getTime(); var rtime = matchtime - presenttime ; var s1 = Math.floor(rtime/1000); var m1 = Math.floor(s1/60); var h1 = Math.floor(h1/60); var d1 = Math.floor(h1/24); ...
import React from 'react'; import Product from './Product'; const CartItem = ({ price, quantity, title, onRemove, }) => ( <Product price={price} quantity={quantity} title={title} action={ <button onClick={onRemove}>{' X '}</button> } /> ); export default CartItem;
import { Node } from '../helpers/Node' const BoardItem = props => { const { completed, hover, text, key } = props return ( Node('li', { class: `item ${completed && 'completed'}`, id: key }, hover && ( Node('span', { class: 'checkbox' }, Node('input', { type: 'checkbox' }) ) ...
import React from "react"; import { Component } from "react"; import "../index.css"; class Footer extends Component { render(){ return( <div id="footer_main_container"> <ul className="footer_box"> <li><a href="#" className="link_style">Home </a></li> <li><a href="#" className="link_s...
import blogCollection from '../models/blogMod.js'; // add a blog to the db export const createBlog = async (req,res,next)=>{ try { const { bTitle, bContent} = req.body; const { firstName, lastName } = req.user; const blog = await blogCollection.findOne({bTitle}); if (blog)...
var searchData= [ ['executing_0',['executing',['../classAIStatefulTask.html#a855cb8523b22595dc5ef69361633e7bb',1,'AIStatefulTask']]] ];
const fs = require('fs'); const path = require('path'); const autoprefixer = require('autoprefixer'); const cssnano = require('cssnano'); const less = require('less'); const NpmImportPlugin = require('less-plugin-npm-import'); const postcss = require('postcss'); const sass = require('node-sass'); const Core = require...
import React,{Component} from 'react' import './index.css' import UploadBtn from '../../shareComponent/UploadBtn' import {textCountRange} from '../../../funStore/CommonFun' import {Nickname,Groupname,MemberCount,Welcome,PicText,Admin,GroupInform,Keyword,GroupLabel,CommonRadio} from '../../giSystemPortal/EditModule/unit...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import InvoiceTable from "pages/InvoiceTable"; import Typography from "@material-ui/core/Typography"; import { Button} from "@material-ui/core"; import { useHistory } from "react-router-dom"; const useStyles = makeStyles((theme) => ({ ...
'use strict'; const express = require('express'); const router = express.Router(); const bodyParser = require("body-parser"); const config = require('config'); const cors = require('cors'); const app = express(); var log4js = require("log4js"); const { nanoid } = require("nanoid"); const log4jsConfig = { "append...
import Ember from 'ember'; export default Ember.Controller.extend({ projects: Ember.inject.service(), actions: { openDashboard() { window.open(this.get('model.dashboardUrl'),'_blank'); } } });
import * as types from './actionTypes' export const loadPages = (pages) => { return { type: types.EXPORT_PAGES_LOAD_PAGES, payload: pages } } export const updatePage = (page) => { return { type: types.EXPORT_PAGES_UPDATE_EXPORT_PAGE, payload: page } } export const resetExportPages = () => { return { type...
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.services' is found in services.js // 'start...
export * from './grid';
'use strict' import { StyleSheet, View, Text, } from 'react-native'; import React , {Component} from 'react'; import * as Progress from 'react-native-progress'; import TEAMS from '../../../utils/teams'; export default class PtsBar extends Component { constructor (props) { super(props) this.state =...
import dotenv from 'dotenv' import express from 'express'; import Mongoose from 'mongoose'; import TodoModel from './schemas/todo_schema.js'; import cors from 'cors'; dotenv.config() const app = express(); //getting values in json format app.use(express.json()); app.use(cors()); const port = 3000 || process.env.POR...
$(function(){ $(".js-accordion").click(function () { $(".js-accordion-list").stop().toggle(); }); $(".js-status-item").click(function () { var value = $(this).children("label").attr("data-value"); var innerValue = $(this).children("label").html(); $(".js-status").val(value);...
var validator = require('yode-validator'); Ext.define('Gvsu.modules.orgs.model.OrgsPubl', { extend: "Gvsu.modules.orgs.model.OrgsModel" ,regPatterns: { login: [/^[a-z0-9_а-яА-Я]{3,12}$/i, true] ,email: ['email', true] ,password: ['password', true] ,fname: ['name', true...
const express = require("express"); const cors = require("cors"); const restaurant = require("./restaurant"); const meal = require("./meal"); const order = require("./order"); const router = express.Router(); router.use(cors()); router.use("/restaurant", restaurant); router.use("/meal", meal); router.use("/order", or...
/** * @module wp.api */ angular.module( "wp.api", [ "wp.services", "ngResource", "ngSanitize" ] ) .provider("path", function() { var provider = {}; var config = { src : "http://" }; provider.set = function( url ) { config.src = url; } provider.$get = function() { ...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
const create_link_to_twitter = (username) => { window.open(`https://twitter.com/${username}`, "_blank"); }; const ministry_menu_button = () => { if ($(".ministry_list_navbar").css("height") == "0px") { $(".ministry_list_navbar").css("height", "auto"); //$('.ministry_list_navbar').css('width', '100%'); $...
import {Entity, PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, ManyToMany, JoinTable} from "typeorm"; import {Content} from "./Content"; import {Session} from "./Session"; import {Region} from "./Region"; import {Country} from "./Country"; @Entity() export class User { @PrimaryGeneratedColumn() id = Number...
import React, { useRef, useEffect } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import errorMailbox from 'images/error_mailbox'; import loadMail from 'images/load_mail'; import successMailbox from 'images/success_mailbox'; import { Dialog, DialogActions, ...
// Dropdown class Dropdown { constructor() { this.dropdownButton = document.querySelector('.dropdown__button'); this.dropdownMenu = document.querySelector('.dropdown__menu'); // console.log(this.dropdownMenu); this.dropdownButton.addEventListener('click', this.toggleMenu.bind(this)); } toggleMe...
const gulp = require('gulp'); const argv = require('yargs').argv; const { changelogModule, cleanModule, jsdocModule, versioningModule } = require('meister-js-dev').gulp; const { createBuildTask, createConfig, createCompiler } = require('meister-gulp-webpack-tasks'); // Build tasks. const MODULE_NAME = 'HtmlUi'; gulp....
let $this = new Object(); $this.alerts = new Object(); $this.alerts.hola = null; define($this);
import { helper } from '@ember/component/helper'; export function medalIcon(params/*, hash*/) { var rank = params[0] + 1; switch(rank) { case 1: return `<img class="medal-icon" src="https://s3-ap-northeast-1.amazonaws.com/coin24hours-static/gold.svg" height=37 width=37 />`; break; case 2: ...
var quizData = { name: 'My Badly Named Quiz', scores: new Object(), leaderboard: [], questions: [ { id: 0, question: 'What is your name?', answer: 'Arthur, King of the Britons', choices: ['Arthur, King of the Britons', 'Brave Sir Robin', 'Sir Launcelot'], attempts: 0, tim...
"use strict"; function AppState() { if (AppState._instanceAlreadyCreated) { if(console && console.warn) console.warn("Another instance of the AppState has been generated. There should only be 1 instantiated for the lifetime of the application."); } AppState._instanceAlreadyCreated = true; this.urlToPublicJs...
const mongoose = require('mongoose'); const user1Id = mongoose.Types.ObjectId(); const user2Id = mongoose.Types.ObjectId(); const user3Id = mongoose.Types.ObjectId(); const data = { users: [ { _id: user1Id, avatar: "https://cdn1.iconfinder.com/data/icons/ninja-things-1/1772/ninja-simple-512.png", ...
var util = require('util'); var User = require('./User.class.js'); var Users = require('./Users.class.js'); function PlayingUsers() { } util.inherits(PlayingUsers, Users); PlayingUsers.prototype.setUsers = function(users) { this.removeListeners(); this.users = users; this.addListeners(); this.broadcast('sta...
var mysql = require('mysql'); var inquirer = require('inquirer'); var connection = mysql.createConnection({ host: 'localhost', port: 3306, user: 'root', password: 'root', database: 'bamazon' }); connection.connect(function(err) { if (err) throw err; displayProducts(); itemsToBuy...
/** * 该文件专门用于暴露一个 store 对象,整个应用只有一个 store 对象 */ //引入 createStore ,用于创建 redux 中最为核心的 store对象 import { createStore, applyMiddleware } from 'redux' //引入redux-thunk,用于支持异步action import thunk from 'redux-thunk' //引入为Count组件服务的reducer import countReducer from './count_reducer' //暴露 store export default createStore(countRe...
/** * jsdoc How does it work in RN? * @flow * @format */ import React, { PureComponent } from 'react' import { StyleSheet, Text } from 'react-native' type Props = { text: string, children: any, style: StyleSheet.NamedStyles<any> } export default class HelloBlink extends PureComponent<Props> { static defaultP...
//we need to get access to the mongoose, which is gonna help us to define the schema or structure for db const mongoose = require('mongoose') //create schema now const alienSchema = new mongoose.Schema({ name: { type: String, required: true }, tech: { type: String, requir...
function HelloWorld() { alert("Hello World"); } function Addition() { let number1 = prompt("Input first number", 0); let number2 = prompt("Input second number", 0); if (isNaN(number1) || isNaN(number2)) { alert("Please enter only numbers !"); } else { const resultContainer = document.querySelector("...
/* * Copyright 2014 Jabil */ jQuery.sap.require("com.jabil.maestro.mob.util.Helper"); jQuery.sap.require("com.jabil.maestro.mob.util.Global"); jQuery.sap.require("com.jabil.maestro.mob.util.MainViewHelper"); jQuery.sap.require("com.jabil.maestro.mob.util.ShortagesHelper"); sap.ui.controller("com.jabil.maestro.mob.vi...
var http = require("http"); var fs = require("fs"); var qs = require("querystring"); var util = require("util"); var maxAcceptedLength = 4 * 1024; // 4KB function sendForm(res) { fs.readFile("form.html", function(error, data) { if (error) { console.log(error.message); res.writeHead...
<!-- /** * Codilar_Irp extension * NOTICE OF LICENSE * * * @category Codilar * @package Codilar_Afbt * @copyright Copyright (c) 2019 */ --> define(['jquery', 'underscore', 'owlCarousel'], function ($, _, owlCarousel) { return function (config) { var Irp = { fetchUrl: config.irpFetchUr...
let postfixstr; let answ= ""; const readline = require('readline'); const rl = readline.createInterface({input: process.stdin,output: process.stdout}); //Function for assigning weights to operators. function prec(ch){ switch(ch){ case '+' : return 1; case '-' : return 1; case '*' : ret...
/** * Created by jiayi.hu on 5/26/17. * 废弃代码 */ import React, { Component } from 'react' import promiseXHR from '../../funStore/ServerFun' import AuthProvider from '../../funStore/AuthProvider' import $ from 'jquery' import TagList from './TagList' import TagInput from './TagInput' import BubbleCheck from './Bubble...
import { MEISTER_DATA_STANDARD_ATTR } from './constants'; import { extractNodesWithSelector, replaceNodeWith, formatValue } from './utilities'; import createStandardElement from '../standard/createStandardElement'; /** * Returns a list of all child nodes that have meister standard data properties. * @memberof module...
import React from 'react' import { connect } from 'dva' import { table } from 'antd' const columns = [ { title: 'ss', dataIndex: 'name', }, { title: 'yy', dataIndex: 'id', }, ] const data = [] function Demo () { return (<div> <table columns={columns} datasource={data} /> </div> ) } expo...
(function() { 'use strict'; // TODO refactor this app into two components: an app component and a videoDetail component // see https://docs.angularjs.org/guide/component for help // 1. Create an app component that has a controller similar to the VideoListController - put template in app.html // 2. Create a...
import React, { PureComponent } from 'react'; import { View, KeyboardAvoidingView, TextInput } from 'react-native'; import PostMeta from './postMeta'; import styles from './styles'; import NavButton from './navButton'; import AddToPost from './addToPost'; class PostCreationScreen extends PureComponent { static navi...
/* eslint-disable no-unused-vars */ /** * Gets the repositories of the user from Github */ import { call, put, select, takeLatest } from 'redux-saga/effects'; import { LOAD_REPOS } from 'containers/App/constants'; import { reposLoaded, repoLoadingError } from 'containers/App/actions'; import { post } from 'axios'; i...
const Engineer = require('../engineer') describe('adding a git name',()=>{ it('Should store a github user using the constructor',()=>{ const testVal = 'markogit'; const testGuy = new Engineer('Marko',888,'[email protected]',testVal); expect(testGuy.github).toBe(testVal); }); }); describe(...
const REGEXP = /^[\s]*|[\s]*$/g; //trim() regex // const str = " Hello World " // // "Hello World" // const str = " We need more space " // // "We need more space"
import React, { useState } from "react"; import { Button, Col, Container, Form } from "react-bootstrap"; import { useStateValue } from "./StateProvider"; import { db } from "../firebaseConfig"; import { ToastContainer, toast } from "react-toastify"; import "../../node_modules/react-toastify/dist/ReactToastify.css"; imp...
const finalPOsition = function(moves) { let position = [0, 0]; for (let i = 0; i < moves.length; i++) { if (moves[i] === "north") { position[1] += 1; } else if (moves[i] === "south") { position[1] -= 1; } else if (moves[i] === "east") { position[0] += 1; } else if (moves[i] === "...
function orders_clear() { window.localStorage.clear(); } function recast() { var x = 'Cart is empty!'; $('#ordertable').text(x); window.localStorage.clear(); button_update(); } function orders_input() { var orders = orders_list(); $('#orders_input').val(orders); } function button_update() { var text = 'Cart'...
import React, { useEffect, useState } from 'react' import Title from '../text/Title' import Button from '../button/ButtonSmall' import Close from '../icon/Close' const Modal = ({ title, children, confirm, cancel, width = 600, hub }) => { const [visible, setVisible] = useState(false) useEffect(() => { setVisib...
const fish = require('./index'); test('calculate surviving fish', () => { const a = [4,3,2,1,5]; const b = [0,1,0,0,0]; expect(fish(a,b)).toEqual(2); }); test('calculate surviving fish', () => { const a = [0,1]; const b = [1,1]; expect(fish(a,b)).toEqual(2); });
import React, { Component } from "react"; import { Text, View, TextInput, StyleSheet, Image } from "react-native"; import { EMAIL_REGEX } from "../helpers/constants"; import { fonts, metrics, colors } from "../themes"; import Button from "../components/common/Button"; import Logo from "../images/logo.png"; import { s...
$(document).ready(function(){ $('a#ajaxjour').click(function(){ alert('okok'); $.ajax({ type: 'get', beforeSend: function(){ // $('.listehebergements').parent().append('<div class="loading"> </div>'); }, success: function(data){ alert('okok'); ...
/** * @param {*} req * @param {*} res * @param {*} next */ module.exports = async (req, res, next) => { try { req.ApiPack.operation.identifiers = req.params; req.ApiPack.operation.context.filters = req.query; req.ApiPack.operation.context.query = req.query; await req.ApiPack.read(); if (!req...
import React from "react"; import styled from "styled-components/native"; import { Text } from "react-native"; import { WIDTH } from "../../../constants/layout"; const SignUpBtn = ({ navigation, width, backgroundColor, height, marginTop, fontColor, text, handlePressbtn, }) => { return ( <NextBtnV...
//import liraries import React from 'react'; import {FaPhone, FaRegWindowClose, FaVideo} from 'react-icons/fa'; // create a component const ChatBox = () => { return ( <div className="chat"> <div className="chat__header"> <div className="chat__header-img"> <img...
import React, { useState, useEffect } from 'react'; import { withRouter } from 'react-router'; import { LeftOutlined, RightOutlined } from '@ant-design/icons'; import { parse } from 'utils/queryString'; import './pagination.scss'; const Pagination = ({ location, limit, totalResults, className, handlePageFilter }) => ...
// 1.Arithmetic Operators // 2.Assignment Operators // 3.Comparison Operators // 4.Logical Operators // 5.Membership Operators // 6.Bitwise Operators console.log("Arithmetic Operators") //-----------------1.Arithmetic Operators--------------- console.log("11 + 2=", 11+2) console.log("11 - 2=", 11-2) console.log("11 * ...
import request from '@/utils/request' // 查询课程类型列表 export function listType(query) { return request({ url: '/course/type/list', method: 'get', params: query }) } // 查询课程类型详细 export function getType(id) { return request({ url: '/course/type/' + id, method: 'get' }) } // 新增课程类型 export functi...
const express = require('express'); const router = express.Router(); const { userRateLimiter, userSlowDown } = require('../../../middleware/limitation'); const auth = require('../../../middleware/authentication'); // Models const User = require('../../../models/User'); const Walk = require('../../../models/Walk');...
/* * 消息提示模块 * @date:2014-09-05 * @author:kotenei([email protected]) */ define('km/tooltips', ['jquery'], function ($) { /** * 消息提示模块 * @param {JQuery} $element - dom * @param {Object} options - 参数 */ function Tooltips($element, options) { this.$element = $element; this.op...
'use strict'; var knex = require('../../connection.js'); var changesets = []; describe('changeset create endpoint', function () { it('returns a numerical changeset id.', function (done) { server.injectThen({ method: 'PUT', url: '/changeset/create', payload: { uid: 99, user: 'op...
//@ts-check const { createMacro } = require("babel-plugin-macros"); module.exports = createConstantMacro; /** * @param {Record<string,any>|any[]} data */ function createConstantMacro(data) { return createMacro(function Macro({ references, babel }) { const t = babel.types; Object.entries(references).forEac...
import React, { Component } from 'react' import ReactDOM from 'react-dom' const Otsikko = (props) => { return ( <h1>{props.otsikko}</h1> ) } const Osa = (props) => { const { text, number, symbol } = props return ( <p>{text}: {number} {symbol || null}</p> ) } const Sisalto = (props) => { const ...
import React from "react"; export default props => { const uri = window.location.origin; return ( <> <h2>Exam Notes</h2> <h3>Static Javascript Pages</h3> <ul> <li> <a href={uri + "/javascript-pages/calculator.html"}>Calculator</a> ...
import React, { useRef } from 'react'; import { useSpring, useChain, animated } from 'react-spring'; import AnimatedText from './components/AnimatedText'; function App() { const backgroundColorChange = useSpring({ from: { backgroundColor: 'white' }, to: { backgroundColor: '#9AE6B4' }, }); const fromTop...
"use strict"; /** * @class test factory model */ DIC.define('DemoApp.test.Factory.CircleTest', new function () { /** * @description the manager mock * @memberOf DemoApp.test.Factory.CircleTest * @alias {EquivalentJS.Manager} */ var manager; /** * @description setup the manager ...
var getData=function(){ var tam = document.getElementById("tamano").value; function burbuja(arreglo,n) { var i, k ,aux; for(k=1; k<n;k++){ for(i=0; i <(n-k);i++){ if(arreglo[i]>arreglo[i +1]){ aux=arreglo[i]; ...
import {inject} from "aurelia-framework"; import {Router, Redirect} from "aurelia-router"; import app, {users} from "../services"; const ERR_PASSWORD_MISMATCH = "Your passwords don't match. Try again."; const ERR_LOGIN_TAKEN = "That Login Name is already in use. Try again."; const ERR_EMPTY_FIELDS = "Please fill out a...
import React from 'react' import './style.scss' import { PropTypes } from 'prop-types' import { Link } from 'react-router-dom' import { Spinner } from 'react-bootstrap' export default function Widget({ value, title, className = '', loading = false, uri }) { return ( <Link to={uri} className={className ...
/** * Created by Ratnesh on 13/09/2019. */ import React from "react"; import BaseComponent from '../baseComponent' import DashBoardComponent from './dashboardComponent' import Utils, {dispatchAction} from "../../utility"; import {connect} from "react-redux"; class DashBoard extends BaseComponent { constructor(...
<!-- color script written entirely in JavaScript --> <!-- Written by myhyli & 色眯眯的小疯狗, 2003/05/12. --> var temp_bt_colorSetting; var tempState=1; var tempTimeout; function initializeUI() { if(GetCookie('blueidea_colorSetting')!=null) { document.styleSheets[0].disabled=1; updateColor(GetCookie('bluei...
var tomImage = new Image(); tomImage.src = "images/tomas.png"; function Tom(){ this.x = 100; this.y = 500; this.width = 50; this.height = 50; this.name = "Tom"; this.vx = 6; //15 this.vy = 3; //6 this.tomCounter = 0; this.tomArray = []; this.tomRandomArray = [ [Math.f...
/* 金币场大厅控制器 */ let Controller = require("../../frameworks/mvc/Controller"); cc.Class({ extends: Controller, ctor () { }, //初始化全局事件监听 initGlobalEvent() { qf.event.on(qf.ekey.EVT_SHOW_HALL, this.onShowHall, this); }, //控制器事件,随着主view销毁而销毁 initModuleEvent() { }, init...
const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('SalesInvoiceGrid', { entity_id: { type: DataTypes.INTEGER.UNSIGNED, allowNull: false, primaryKey: true, comment: "Entity ID" }, increment_id: { type: DataTypes.S...
export default { dark: "#000", medium: "#545454", light: "#fff", grey: "#999", lightgrey: "#eee", darkGrey: "#777", blue: "#558ded", lightBlue: "#7ca7f2", red: "#e73838", };
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var opencv4nodejs_1 = __importDefault(require("opencv4nodejs")); var show_image_1 = __importDefault(requ...
import React from "react"; import { FormControl, FormLabel, Input, Button, Center, Text, } from "@chakra-ui/react"; import { createExpense, updateExpense } from "../../data/api"; import { inputFormattedToday } from "../../helpers/date"; import applicationColors from "../../style/colors"; import PropTypes fr...
import React from "react"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core/Toolbar"; import Typography from "@material-ui/core/Typography"; import Badge from "@material-ui/core/Badge"; import Button from "@material-ui/core/Button"; import ListIcon from "@material-ui/icons/List"; c...
// test the website links var baseUrl = casper.cli.options.baseUrl; casper.test.begin(baseUrl, 2, function(test) { ///////////////////////////////// // first test the navbar links // ///////////////////////////////// casper.start(baseUrl + 'demos/', function() { test.assertTit...