text
stringlengths
2
1.04M
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const ReactComponent = props => (react_1.default.crea...
/* eslint-disable linebreak-style */ /** ********************************************************* * Copyright (C) 2022 * Worktez * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License * * * This program is distributed in the hope that it will be useful,...
/** * Default State */ const defaultAuth = { user: null, token: localStorage.getItem('token'), role: localStorage.getItem('role'), approve: localStorage.getItem('approve'), personalVerify: false, message: '', error: false, newUser: true, }; const defaultSignup = { message: null, personalVerify: f...
var Event = require('./Event') module.exports = EventEmitter function EventEmitter() { this.eventRegister = { } } EventEmitter.prototype.event = function(key) { var event, key if(key instanceof Array || typeof key == 'object' && key.length) { key = key.join('.') } else if(key.length === 0) { ...
'use strict' /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use('Model') class DoseDate extends Model { dose() { return this.hasOne('App/Models/Dose') } } module.exports = DoseDate
import React from 'react' import Header from './header' import Footer from './footer' import '../styles/index.scss' import layoutStyles from './layout.module.scss' const Layout = (props) => { return ( <div className={layoutStyles.container}> <div className={layoutStyles.content}> ...
$(document).ready(function(){ giveHtml('production',1); $('#production-btn').click(function(){ giveHtml('production',1); }) $('#social-btn').click(function(){ giveHtml('social',2); }) $('#about-btn').click(function(){ giveHtml('about',3); }) $('#siteMusic').clic...
// Although MongoDB doesn't enforce any data normalization, the database collections will // benefit from at least a little bit of structure. Mongoose fills that need, allowing us // to add rules for the data so that it's not a free-for-all. Mongoose also provides us with // a lot of similar capabilities that Sequel...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../utils/Class'); var FromPoints = require('../geom/rectangle/FromPoints'); var Rectangle = require('../geom/rectangle/Rect...
import { useServerSideEffect } from 'webshift'; import axios from 'axios'; import logger from '@logger'; export default function Posts() { logger.verbose({message: "[Render]", meta: { component: 'Users'}}); const [data, error] = useServerSideEffect('posts', () => { return axios.get("https://jsonplace...
'use strict'; import { Command } from 'axoncore'; class Pong extends Command { constructor(module) { super(module); this.label = 'pong'; this.aliases = ['pong']; this.isSubcmd = true; this.hasSubcmd = false; this.infos = { owner: ['KhaaZ'], ...
/** * @fileoverview Defines PCx86 CPU constants * @author Jeff Parsons <Jeff@pcjs.org> * @copyright © 2012-2021 Jeff Parsons * @license MIT <https://www.pcjs.org/LICENSE.txt> * * This file is part of PCjs, a computer emulation software project at <https://www.pcjs.org>. */ "use strict"; var X86 = { /* ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function get() { return _media2["default"]; } }); require("./media.sass"); var _media2 = _interopRequireDefault(require("./media")); function _interopRequireDef...
 /** * France (France) translation * By Thylia * 09-11-2007, 02:22 PM * updated by disizben (22 Sep 2008) * updated by Thylia (20 Apr 2010) */ Ext.onReady(function() { var cm = Ext.ClassManager, exists = Ext.Function.bind(cm.get, cm); if (Ext.Updater) { Ext.Updater.defaults.indicatorText...
import Mousetrap from 'mousetrap'; import preventDefaults from './userInterface/preventDefaults'; const MOUSETRAP = new Mousetrap(); const addKeyboardShortcuts = (container, viewer, viewerDOMId, tumorWidget, compareWidget) => { container.addEventListener('mouseenter', () => { MOUSETRAP.bind('1', function (even...
// @flow /* eslint-env mocha */ import assert from 'power-assert' import differenceInYears from '.' describe('differenceInYears', function() { it('returns the number of full years between the given dates', function() { var result = differenceInYears( new Date(2012, 6 /* Jul */, 2, 18, 0), new Date(2...
const origin = "http//localhost:3100";
require("kaoscript/register"); var Type = require("@kaoscript/runtime").Type; module.exports = function() { var __ks_Array = require("../_/_array.ks")().__ks_Array; __ks_Array.__ks_func_injectAt_0 = function(index, ...args) { if(arguments.length < 1) { throw new SyntaxError("Wrong number of arguments (" + argume...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
/** * Swedish translation (utf8-encoding) * By Erik Andersson, Monator Technologies * 24 April 2007 * Changed by Cariad, 29 July 2007 */ Ext.onReady(function() { var cm = Ext.ClassManager, exists = Ext.Function.bind(cm.get, cm); if (Ext.Updater) { Ext.Updater.defaults.indicatorText = '<di...
'use strict'; function foo() {} // Local rules // Off: mocha/no-mocha-arrows, mocha/no-skipped-tests describe.skip( () => { // Off: mocha/no-hooks-for-single-case beforeEach( () => { } ); // Off: mocha/no-skipped-tests it.skip( () => { } ); } ); // Recommended // Off: mocha/valid-suite-description describe( 'S...
/** * ************************************ * * @module next-persist * @author most-js * @description function to save state to cookies * * ************************************ */ const Cookie = require('js-cookie'); function setCookieStore(cookieConfig, state) { const key = Object.keys(cookieConfig)[0]; ...
/* * Copyright (c) 2017-2018 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; const constants = require('../constants'); const LinkedDataSignature2015 = require('./LinkedDataSignature2015'); module.exports = class GraphSignature2012 extends LinkedDataSignature2015 { constructor(injector, algorithm = 'Gr...
import React, { useState, useEffect } from "react"; import { connect } from "react-redux"; import axios from "axios"; import { Link } from "react-router-dom"; const SignIn = (props) => { const [user, setUser] = useState({ username: "", password: "" }); const handleChange = (e) => { setUser({ ...user...
import { UPDATE_KEYWORD } from '../actions/keyword'; const initialState = { filterText: '' }; export default function keyword(state = initialState, action = {}) { switch (action.type) { case UPDATE_KEYWORD: return Object.assign({}, initialState, {filterText: action.payload.filterText})...
function wait(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } describe('Visual testing', () => { test('Components available', () => expect(components && components.length > 0).toBeTruthy()); if (components && components.length) { for (const { identifier, link, skip, wait: waitMs } of componen...
$(document).ready(function () { const context = $('.scrolling-wrapper') $('.left-arrow').bind('click touchstart', function (e) { // console.log(context) context.animate({scrollLeft: 0}, 400, 'swing'); }) $('.right-arrow').bind('click touchstart', function (e) { // console.log(context) co...
/** <doc:module date="2001-06-12"> <doc:module>exslt:date-time</doc:module> <doc:name>dates</doc:name> <doc:version>2.0</doc:version> <doc:language>exslt:javascript</doc:language> <doc:meta> <doc:author email="chris@bayes.co.uk" url="http://www.bayes.co.uk">Chris Bayes</doc:author> <doc:summa...
OC.L10N.register( "calendar", { "User-Session unexpectedly expired" : "ההפעלה של המשתמש הסתיימה באופן בלתי צפוי", "Provided email-address is not valid" : "כתובת הדוא\"ל שצוינה אינה חוקית", "%s has published the calendar »%s«" : "%sפרסם את לוח השנה»%s«", "Unexpected error sending email. Please co...
const Discord = require('discord.js'); const client = new Discord.Client(); const { DiscordTogether } = require('../index.js'); client.discordTogether = new DiscordTogether(client); client.on('message', async message => { if (message.content === 'APESHIT') { if(message.member.voice.channel) { ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","en",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark",rdq...
(function (ns) { 'use strict'; ns.views.LanguageView = function () { var configTemplate = $('#selectTemplate').html(); return { system:undefined, configView: undefined, languageModel: undefined, configUtils: undefined, notificationSer...
import { mockUser } from '@@profile/tests/fixtures/users/user.js'; import serviceHistory from '@@profile/tests/fixtures/service-history-success.json'; import fullName from '@@profile/tests/fixtures/full-name-success.json'; import claimsSuccess from '@@profile/tests/fixtures/claims-success'; import appealsSuccess from '...
// Client-side JavaScript, bundled and sent to client. // Define Minimongo collections to match server/publish.js. Lists = new Meteor.Collection("lists"); Todos = new Meteor.Collection("todos"); // ID of currently selected list Session.set('list_id', null); // Name of currently selected tag for filtering Session.set...
import React from 'react'; import PropTypes from 'prop-types'; import { FlatList, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import I18n from '../i18n'; import * as List from '../containers/List'; import Status from '../containers/Status/Status'; import TextInput from '../containers/TextI...
import React from 'react'; import { string, func, bool } from 'prop-types'; import { uniqueId } from 'lodash'; import classNames from 'classnames'; import './Checkbox.css'; const Checkbox = ({ name, label, onChange, value, checked, inputClassName, labelClassName, normalizeLabel }) => { const checkboxId = uniqueId(l...
/* fill the URL text field with sampel network URLs */ $("#sample-network1").on("click",function(){ // H.pylori ppi network // $("#csv-file-url").val("https://dl.dropboxusercontent.com/u/59758/SimPPI-sample-net.csv") // $("#csv-file-url").val("https://dl.dropboxusercontent.com/u/59758/physical_ppi_table_f.csv"); $...
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'blockquote', 'bn', { toolbar: 'Block Quote' // MISSING });
import request from '../../utils/request' import APIUrl from '../apiUrl/basic-information-management' // 新增保存 export function saveItemMonitoring(params) { return request({ url: APIUrl.itemMonitoringList.saveItemMonitoring, method: 'post', data: params }) } // 修改保存 export function updateItemMonitoring(pa...
/* Jake's Discord bot currently has no definite purpose or use case exists to teach me JavaScript enjoy */ const Discord = require("discord.js"), // Discord API client = new Discord.Client(), // Set Client config = require("./config.json"), // contains "path" and "t...
describe("List Support Test - HTMLCollection", () => { beforeAll(() => {}); it("filter()", () => { let content = create("<div></div>" + "<a></a>" + "<div></div>" + "<a></a>" + "<div></div>" + "<a></a>" + "<div></div>" + "<a></a>" + "<div></div>" +...
import React from "react"; import MainPage from "./components/MainPage"; function App() { return ( <div> <MainPage /> </div> ); } export default App;
class Section3 extends HTMLElement { constructor() { super(); document.addEventListener("mousemove", parallax); function parallax(e){ document.querySelectorAll(".object").forEach(function(move){ var moving_value = move.getAttribute("data-value"); var x = (e....
var NAVTREEINDEX24 = { "class_p_h_p_unit___text_u_i___command.html":[48,0,708], "class_p_h_p_unit___text_u_i___command.html#a011800c63ece4cbbfa77136a20607023":[48,0,708,12], "class_p_h_p_unit___text_u_i___command.html#a16a628a086f941d2a00d4cde917d1251":[48,0,708,0], "class_p_h_p_unit___text_u_i___command.html#a1b74a8af...
// select all air quality advisories $(document).ready(function () { $("#selectAll").click(function () { $(".aqa").prop('checked', $(this).prop('checked')); }); $(".aqa").change(function () { if (!$(this).prop("checked")) { $("#selectAll").prop("checked", false); } }...
module.exports = new Date(2010, 11, 22)
import UIPlugin from '../../templates/ui/ui-plugin.js'; const COLOR_PRIMARY = 0x4e342e; const COLOR_LIGHT = 0x7b5e57; const COLOR_DARK = 0x260e04; class Demo extends Phaser.Scene { constructor() { super({ key: 'examples' }) } preload() { } create() { this.print = ...
$(function () { "use strict"; Morris.Area({ element: 'morris-area-chart' , data: [{ period: '2010' , iphone: 10 }, { period: '2011' , iphone: 1667 }, { period: '2012' ,...
/** * # A testing environment for React components using karma. * Bit testing environment for testing of React components using Karma, with Mocha and ChaiJS. * * ## How to use? * import the environment * ```bash * bit import bit.envs/testers/karma-mocha-react -t * ``` * * ## What's inside? * - [Karma](https:...
let data = { "body": "<path d=\"M27.66 15.61L18 6l-9.66 9.61A1 1 0 1 0 9.75 17L17 9.81v19.13a1 1 0 1 0 2 0V9.81L26.25 17a1 1 0 0 0 1.41-1.42z\" class=\"clr-i-outline clr-i-outline-path-1\" fill=\"currentColor\"/>", "width": 36, "height": 36 }; export default data;
const mongoose = require('mongoose'); const logger = require('./services/logger.factory'); const config = { autoIndex: false, useUnifiedTopology: true, useNewUrlParser: true, }; if (process.env.DB_URL) { mongoose.connect(process.env.DB_URL, config); } else { logger.info('No MongoDB connection beca...
import { isFunction, isString } from './type'; export const encodeHtml = (function() { const encodeRegExp = [new RegExp('&', 'g'), new RegExp('"', 'g'), new RegExp('\'', 'g'), new RegExp('<', 'g'), new RegExp('>', 'g')]; return function(str) { return String(str) .replace(encodeRegExp[0], '...
const MachineOptions = require('./machine'); const inquirer = require('inquirer'); const options = require('../../data'); class User extends MachineOptions{ constructor({opt, name, selected}){ super({opt}); this._name = name; this._selected = selected; this._sort = this.sort() }...
const { getAdaptiveCardFromTemplate } = require('./getAdaptiveCardFromTemplate'); const { formatReleaseMessage, formatErrorMessage, formatCommentMessage, formatErrorStateMessage, } = require('./formatBugsnagMessage'); const { findItemInAdaptiveCard } = require('./adaptiveCardHelper'); const { THUMB_ICON_URL } =...
/** * 压缩图片 * @param {*} file * @param {*} success * @param {*} error */ const compressImage = (file, success, error) => { // 图片小于1M不压缩 if (file.size < Math.pow(1024, 2)) { return success(file); } const name = file.name; //文件名 const reader = new FileReader(); reader.readAsDataURL(file); read...
import {otherRouter, appRouter} from '@/router/router'; import Util from '@/libs/util'; import Cookies from 'js-cookie'; import Vue from 'vue'; const app = { state: { cachePage: [], lang: '', isFullScreen: false, openedSubmenuArr: [], // 要展开的菜单数组 menuTheme: 'dark', // 主题 ...
/* * wysiwyg web editor * * suneditor.js * Copyright 2017 JiHong Lee. * MIT license. */ 'use strict'; (function (global, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = global.document ? factory(global, true) : function (w) {...
export const petitionsClerkRescansAddedBatch = test => { return it('Petitions clerk rescans a pre-existing batch', async () => { const selectedDocumentType = test.getState( 'currentViewMetadata.documentSelectedForScan', ); await test.runSequence('openConfirmRescanBatchModalSequence', { batchI...
'use strict'; console.log('Loading function'); let doc = require('dynamodb-doc'); let dynamo = new doc.DynamoDB(); const tableName = process.env.TABLE_NAME; const createResponse = (statusCode, body) => { return { "statusCode": statusCode, "body": body || "" } }; exports.get = (event, context,...
// @flow import fs from 'fs-extra'; import mkdirp from 'mkdirp'; import os from 'os'; import path from 'path'; import promisify from 'util.promisify'; const mkdirpAsync = promisify(mkdirp); /* A Cacher is used to wrap a fallible or expensive function and to memoize its results on disk in case it either fails or we d...
"use strict"; exports.__esModule = true; exports.pathRadialDiagonal = pathRadialDiagonal; exports.default = LinkRadialDiagonal; var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _d3Shape = require("d3-shape"); var _accessors = require("../.....
import React from 'react' import { configure, mount } from 'enzyme' import Adapter from '@wojtekmaj/enzyme-adapter-react-17' import renderer from 'react-test-renderer'; import CToastHeader from '../CToastHeader' configure({ adapter: new Adapter() }) describe('CToastHeader', () => { it('renders basic wrapper correc...
import React from "react" export default ({ pageContext: { dog } }) => ( <section> {dog.name} - {dog.breed} </section> )
import { Button } from '@material-ui/core' import React from 'react' export const WithdrawQuestion = (props) => { const { row, handleWithdraw } = props const handleClick = () => { handleWithdraw(row) } return ( <Button onClick={handleClick} size={'small'} variant={'contained'} color={'primary'}> ...
import { duration, displayDuration } from '../localizationService'; import { assert } from 'lightning/utilsPrivate'; const MINUTE_MILLISECONDS = 1000 * 60; export function relativeFormat() { return { format: (value) => { const now = Date.now(); const timestamp = Number(value); ...
var express = require('express'), app = express(); var bodyParser = require('body-parser'); var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport({ service: 'gmail', auth: { user: 'stephengoveia@spacetimeathleta.co', pass: 'pass4sA100M*' } }); // Create application/x-www-...
var check = document.querySelector("#shippingInfo"); // 체크박스의 id는 shippingInfo check.addEventListener("click", function() { // check 요소에 click 이벤트가 발생했을 때 실행할 함수 var nameInfo = document.querySelector("#billingName").value; // 주문 정보 - 이름 var telInfo = document.querySelector("#billingTel").value; // 주문 정보 - 전...
import { h } from 'vue' export default { name: "StoreRemove", vendor: "Mdi", type: "", tags: ["store","remove"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-store-remo...
import React, { useEffect, useState } from "react" import Recipe from "./Recipe" import "./App.css" const App = () => { const APP_ID = "2dc16ac9" const APP_KEY = "9d9f50cc366668293ff143814da5b3ca" const exampleReq = `https://api.edamam.com/api/recipes/v2?type=public&beta=false&q=chicken&app_id=${APP_ID}&app_key=${A...
/* Copyright (c) 2019, Piet Hein Schouten. All rights reserved. * Licensed under the terms of the MIT license. */ /* * Adapted from: * https://github.com/zenorocha/clipboard.js/blob/master/src/clipboard-action.js */ function TextClipboard(container) { this.container = document.body; this.fakeElem = null;...
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import { graphql } from "gatsby" const IndexPage = () => ( <Layout> <SEO title="Home" /> <section className="hero is-light is-bol is-...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useRouter } from 'next/router'; import Link from 'next/link'; import { withAuthUser, AuthAction } from 'next-firebase-auth'; import styles from './login.module.scss'; import { toggleNavigation } from '.....
const express = require('express') const modelController = require('./controllers/model.controller') const authController = require('../auth/controllers/auth.controller') const router = express.Router() const jsonParse = require('body-parser').json() router.route('/') .get(authController.isAuthenticated, modelContro...
module.exports = { iconButton: theme => ({ iconButton: { '&:hover': { backgroundColor: 'transparent', color: theme.palette.primary.main, }, }, }), };
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
// 更新歌单描述 module.exports = (query, request) => { const data = { id: query.id, desc: query.desc, } return request( 'POST', `https://interface3.music.163.com/eapi/playlist/desc/update`, data, { crypto: 'eapi', cookie: query.cookie, proxy: query.proxy, url: '/api/play...
exports.action = { name: 'addSource', description: 'addSource', blockedConnectionTypes: [], outputExample: {}, matchExtensionMimeType: false, version: 1.0, toDocument: true, inputs: { type: { required: ...
import Vue from 'vue' import VueRouter from 'vue-router' import Home from './views/Home.vue' import ArticlePage from './views/ArticlePage.vue' Vue.use(VueRouter) const router = new VueRouter({ routes: [ { path: '/', component: Home }, { path: '/article/:id', component: ArticlePage } ] }) export default ...
const assert = require('assert'); const app = require('../../src/app'); describe('\'trader-profile\' service', () => { it('registered the service', () => { const service = app.service('trader-profile'); assert.ok(service, 'Registered the service'); }); });
/* global document */ import { Frenchify, rules, languageRules } from 'frenchify-rules'; import showdown from 'showdown'; import Vue from '../node_modules/vue/dist/vue'; import txt from '../i18n/en.json'; const el = '#app'; const showDownConverter = new showdown.Converter(); const options = languageRules .map(langu...
/* * Either obsolete or a refactor... not sure * */ js.extend('lsn.ext.dde', function (js) { /** Class definition */ var proto = {}; // class prototype this.Masks = function (dde) { this.dde = dde; this.marker = null; this.interval = 100; // ms this.iid = null; // interval id this.masks ...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Default factory for <code>WebChannelTransport</code> to * avoid exposing concrete classes to clients. */ goog.provide('goog.net.createWebChannelTransport'); goog.require('goog.labs.net.webChann...
import * as Gbi from "../../../../../include/gbi" import { snow_09008800, snow_09005000, snow_09008000, } from "../../../../../textures/snow" import { ccm_seg7_texture_07004300 } from "../../../../ccm/texture.inc" const ccm_seg7_lights_0701CED8 = Gbi.gdSPDefLights1( 0x15, 0x15, 0x15, 0x55, 0x55, 0x55, 0x...
import React from 'react' import Feedback from 'marketplace/components/Feedback/Feedback' import DocumentTitle from 'react-document-title' import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js' import AUheading from '@gov.au/headings/lib/js/react.js' import { rootPath } from 'marketplace/routes' const BriefATMR...
import './index.css'; import Uploader from './uploader'; const LOADER_TIMEOUT = 500; const Icon = '<svg width="12" height="14" xmlns="http://www.w3.org/2000/svg"><path d="M4.109 2.08H2.942a.862.862 0 0 0-.862.862v8.116c0 .476.386.862.862.862h5.529a.862.862 0 0 0 .862-.862V7.695H4.11V2.08zm1.905.497v3.29h3.312l-3.312-...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
window.addEventListener('load', () => { document.querySelectorAll(".preloader").forEach(e => e.parentNode?.removeChild(e) ) document.querySelectorAll(".reveal").forEach(e=>{ e.style.opacity = "1" } ) })
HabitDetail { _id: String; habitName: String; description: String; icon: String; color: String; timeInDate: all | morning | afternoon | night; duplicateType: daily | weekly | monthly weekdays: [mon, tue, wed, thus, fri, sat, sun]; timePerWeek: Number; dateExpired: Date; i...
const mongoose = require('mongoose'); const AutoIncrement = require('mongoose-sequence')(mongoose); const mongoose_delete = require('mongoose-delete'); const STATE_TAKEN = 'TAKEN'; const STATE_PREPARATION = 'PREPARATION'; const STATE_DISPATCHED = 'DISPATCHED'; const STATE_DELIVERED = 'DELIVERED'; const STATE_CANCELLE...
import React from 'react'; import {connect} from 'react-redux'; import Backlog from '../components/Backlog'; import UserMenu from '../components/UserMenu'; import ActionLog from '../components/ActionLog'; import Users from '../components/Users'; import Estimation from '../components/Estimation'; /** * The board is ...
/** * See detailed Core Image filter list at: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIPhotoEffectInstant */ const validCIFilterNames = [ /** Applies a preconfigured set of effects that imitate vintage photogr...
const Discord = require('discord.js'); exports.run = (client, message, args) => { let mesaj = args.slice(0).join(' '); if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send("Bunu yapabilmek için yeterli yetkin yok") if (mesaj.length < 1) return message.reply('Yazmam için herhangi bir şey y...
const ListViewLinksModel = require("../../links-view-model"); const link = require("../../link"); const navigationLinks = [ new link("BasicWebView", "ns-ui-widgets-category/web-view/basics/basics-page"), new link("WebView source", "ns-ui-widgets-category/web-view/source-load/source-load-page"), new link("Ge...
import React from "react" import { Link, graphql } from "gatsby" import Layout from "../../components/layout" import SEO from "../../components/seo" import styled from "styled-components" const SponsorGrid = styled.div` display: flex; width: 100%; justify-content: space-around; flex-wrap: wrap; ` const Level ...
import React from "react" import Modal from "react-modal" import Helmet from "react-helmet" import MdClose from "react-icons/lib/md/close" import { navigate, PageRenderer } from "gatsby" import presets, { colors } from "../utils/presets" import Banner from "../components/banner" import Navigation from "../components/na...
import { combineReducers } from 'redux'; import filter from 'reducers/new_ruleset/filter/index'; import rules from 'reducers/new_ruleset/rules'; const newRulesetReducer = combineReducers({ rules, filter }); export default newRulesetReducer;
function addWidgetsfrmLocalStore() { var hbxLocalStore = new kony.ui.Box({ "id": "hbxLocalStore", "isVisible": true, "orientation": constants.BOX_LAYOUT_HORIZONTAL, "position": constants.BOX_POSITION_AS_NORMAL }, { "containerWeight": 100, "layoutAlignment": consta...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
import { lowerCase } from '@antv/util'; export { Facet } from './facet'; /** * 所有的 Facet 类 */ var Facets = {}; /** * 根据 type 获取 facet 类 * @param type 分面类型 */ export var getFacet = function (type) { return Facets[lowerCase(type)]; }; /** * 注册一个 Facet 类 * @param type 分面类型 * @param ctor 分面类 */ export var regi...
import React, { Component } from 'react' import PayrollContract from '../build/contracts/Payroll.json' import getWeb3 from './utils/getWeb3' import { Layout, Menu, Spin, Alert } from 'antd'; import Employer from './components/Employer'; import Employee from './components/Employee'; import 'antd/dist/antd.css'; impor...