text
stringlengths
2
1.04M
'use strict' const path = require('path') const defaultSettings = require('./src/settings.js') function resolve(dir) { return path.join(__dirname, dir) } const name = defaultSettings.title || 'vue Element Admin' // page title // If your port is set to 80, // use administrator privileges to execute the command line...
function buildCredentialSelectionBox(start_value) { var savedCredentials = $('#saved_credentials'); savedCredentials.children('option').each(function(){ $(this).remove() }); $.ajax({ url: '/users/credentials/', type: 'GET', dataType: 'json', data: { ac...
const isTestChecked = require('../utils/isTestChecked.js'); const isTestForCurrentBase = require('../utils/isTestForCurrentBase'); module.exports = { 'Breadcrumbs': function (browser) { if (isTestChecked(browser, "breadcrumbsTest") && isTestForCurrentBase(browser, "ReactJS")) { browser.page.l...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const lodash_1 = require("lodash"); const moment_1 = __importDefault(require("moment")); const capturer_...
var searchData= [ ['ky040',['KY040',['../class_k_y040.html',1,'']]] ];
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
import React from 'react' import tw from 'twin.macro' import styled from 'styled-components' import { css } from 'styled-components/macro' //eslint-disable-line import Header, { LogoLink, NavLinks, StyledNavLink as NavLinkBase, } from '../headers/light.js' const StyledHeader = styled(Header)` ${tw`justify-bet...
import { isValidDeviceName } from 'testcafe-browser-tools'; import roleMarkerSymbol from '../../../role/marker-symbol'; import { createBooleanValidator, createIntegerValidator, createPositiveIntegerValidator, createSpeedValidator } from './factories'; import { ActionOptionsTypeError, ActionBoo...
/*! * @license FusionCharts JavaScript Library * Copyright FusionCharts Technologies LLP * License Information at <http://www.fusioncharts.com/license> * * @author FusionCharts Technologies LLP * @version fusioncharts/3.2.4-sr1.10100 * @id fusionmaps.Honduras.20.10-30-2012 06:30:37 */
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbo...
// Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt QUnit.module("Number Formatting"); QUnit.test("#,###.##", function(assert) { assert.equal(format_number(100, "#,###.##"), "100.00"); assert.equal(format_number(1000, "#,###.##"), "1,000.00"); assert.equal(format_...
var data = { "body": "<path d=\"M102.602 165.683C77.852 133.2 92.582 67.731 155.417 72.5c-74.78-86.207-171.265 63.165-52.815 93.183\" fill=\"#B83C23\"/><path d=\"M213.277.175L256 25.74V237l-2.427-.58l-39.283-22.377l-1.013-1.6V.175z\" fill=\"#F78D2A\"/><path d=\"M256 237H43.396L0 212.443h213.277L256 237z\" fill=\"#B83C...
$(document).ajaxSend(function(event, xhr, settings) { function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie !== '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.t...
/*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */
/* * Copyright (c) 2020-present unTill Pro, Ltd. */ import _ from 'lodash'; import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { getBlobPath, nodeToPicture } from 'airc-shell-core'; import TableAreaGrid from './TableAreaGrid'; class TableArea extends PureComponent { constr...
const LOG_IN = 'LOG_IN'; const LOG_OUT = 'LOG_OUT'; const GET_USERS = 'GET_USERS'; const GET_USER = 'GET_USER'; const AUTH_INFO = 'AUTH_INFO'; const LOADING = 'LOADING'; const GET_VOTES = 'GET_VOTES'; const GET_VOTE = 'GET_VOTE'; const WARNING_POPUP = 'WARNING_POPUP'; const PLACE_WARNING_POPUP = 'PLACE_WARNING_POPUP'...
#!/usr/bin/env node 'use strict'; let http = require('http') let url = require('url') let child_process = require('child_process') let path = require('path') let fs = require('fs') let {pipeline} = require('stream') let os = require('os') let mime = require('mime') let run = function(name, args = [], stdin_input) {...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { NotSupported, DDoSProtection, AuthenticationError, ExchangeError, InsufficientFunds, InvalidOrder, OrderNotFound, InvalidNonce } = require ('./base/errors'); // -------...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ import { Injectable } from '@angular/core'; import { isInteger } from '../../util/util'; import * as i0 from "@angular/core"; /** * @return {?} */ export function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() { ret...
/** * Copyright (c) Nicolas Gallagher. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local */ type Groups = { [key: number]: { start: ?number, rules: Array<string> } }; type Selectors = { [key: string]: boolean }; ...
var RxOld = require('../old/rx.lite'); var RxNew = require('../../../dist/rx.lite'); var Benchmark = require('benchmark'); var suite = new Benchmark.Suite; // Backfill range to get rid of differences RxOld.range = function (start, count) { var scheduler = RxNew.Scheduler.currentThread; return new RxNew.AnonymousO...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
$(document).ready(function(){ $("#main_menu nav ul.nav li:first").addClass("home") // $("#main_menu nav ul.nav li:first").append("<i class='icon-home'></i>"); $(".idioma ul li:last-child").css("border-right","none") // Scroll to top $('#top').click(function(){ //Id del elemento cliqueable $('html, body...
import React from 'react' import { Link } from 'react-router-dom' import ImageLight from '../../assets/img/forgot-password-office.jpeg' import ImageDark from '../../assets/img/forgot-password-office-dark.jpeg' import { Label, Input, Button } from '@windmill/react-ui' function ForgotPassword() { return ( <div cl...
import {obtainGoogleTrendsArg, obtainGoogleTrendsGlobal} from './googleAnalizer'; import {generateGoogleTable} from './htmlTableGenerator'; const IFTTT_WEBHOOK_URL_ARG = 'https://maker.ifttt.com/trigger/social_trends_AR/with/key/bEJDjvRQ04PPYZVlKAP2E8'; const IFTTT_WEBHOOK_URL_USA = 'https://maker.ifttt.com/trigger/so...
import React from 'react' import { Headline1, Text } from '../defaultComponents' import styled from 'styled-components' import { StaticImage } from 'gatsby-plugin-image' import { Link } from "gatsby" const Wrapper = styled.section` max-width: min(90%, 1100px); margin: 0 auto; margin-top: 150px; padding...
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{177:function(t,n,o){},181:function(t,n,o){"use strict";var e=o(177);o.n(e).a},226:function(t,n,o){},318:function(t,n,o){"use strict";var e=o(226);o.n(e).a},322:function(t,n,o){"use strict";o.r(n);var e=o(190),r=o(186),s={mixins:[o(187).a],name:"Tool",components:{...
(function($) { console.log('Working!'); var successAlert = $('.alert-success'); var dangerAlert = $('.alert-danger'); function hasGetUserMedia() { return !!(navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); } if (hasGetUserMedia()) { succ...
import '@riotjs/hot-reload' import hydrate from '@riotjs/hydrate' import App from './app.riot' console.log('APP loaded and rendered statically, hydrating in a few seconds...') setTimeout(() => { hydrate(App)(document.querySelector('app'), window.__INITIAL_STATE__) console.log('APP hydrated') }, 5000)
var mongo = require('mongodb').MongoClient; var fname = process.argv[2]; var lname = process.argv[3]; var url = 'mongodb://localhost:27017/learnyoumongo'; mongo.connect(url, function(err, db) { if (err) { console.error(err); } var users = db.collection('users'); var user = { firstName: fname, las...
'use strict'; var gulp = require('gulp-help')(require('gulp')), prepareBuildHelper = require('../../util/build/prepareBuildHelper'); gulp.task('build:clean', 'Cleans up build folder' , function (done) { prepareBuildHelper.cleanBuild() .then(function () { done(); }); });
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@material-ui/core/Typography'; import { KeyValueRow, KeyL...
//// [emitDefaultParametersFunctionExpressionES6.ts] var lambda1 = (y = "hello") => { } var lambda2 = (x: number, y = "hello") => { } var lambda3 = (x: number, y = "hello", ...rest) => { } var lambda4 = (y = "hello", ...rest) => { } var x = function (str = "hello", ...rest) { } var y = (function (num = 10, boo = false...
import { createColorClasses, openURL } from '../../utils/theme'; export class BackButton { async onClick(ev) { const nav = this.el.closest('ion-nav'); if (nav && nav.canGoBack()) { ev.preventDefault(); if (!nav.isAnimating()) { nav.pop(); } ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ENDPOINTS = exports.URL = undefined; var _endpoints = require('./endpoints'); var ENDPOINTS = _interopRequireWildcard(_endpoints); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newO...
/** * * Asynchronously loads the component for ExploreStudios * */ import loadable from 'utils/loadable'; export default loadable(() => import('./index'));
<% if (passFunc) { %>(function () { <% } %>'use strict'; <% if (passFunc) { %> <% } %>/** <% if (passFunc) { %> <% } %> * @ngdoc service <% if (passFunc) { %> <% } %> * @name <% if (parentModuleName) { %><%= parentModuleName %>.<% } %><%= moduleName %>.constant:<%= upperCamel %> <% if (passFunc) { %> <% } %> * <...
import { html } from '@littleq/element-lite/lib/lit-html/lib/lit-extended.js'; const template = (self) => html` <header> <banner-section class="banner" baseLocation="${self.location}" thumbnail="${self.landing.banner.bitmap}" src="${self.landing.banner.src}" srcset="${self...
import dayjs from 'dayjs' function formatDate(s) { return dayjs(s).utc().format('YYYY-MM-DD'); } function formatDatetime(s) { return dayjs(s).utc().format('YYYY-MM-DD HH:mm:ss'); } export { formatDate, formatDatetime }
const mongoose = require('mongoose'); const { Schema } = mongoose; const recipientSchema = new Schema({ email: String, responded: { type: Boolean, default: false } }) module.exports = recipientSchema;
/** * Copyright 2018 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */ import { LitElement, html } from "lit-element/lit-element.js"; import { store } from "@lrnwebcomponents/haxcms-elements/lib/core/haxcms-site-store.js"; import { autorun, toJS } from "mobx"; import "@polymer...
import { lowerCaseFirst } from "."; var TEST_CASES = [ ["", ""], ["test", "test"], ["TEST", "tEST"], ]; describe("lower case first", function () { var _loop_1 = function (input, result) { it(input + " -> " + result, function () { expect(lowerCaseFirst(input)).toEqual(result); ...
module.exports = { roots: ["src"], testEnvironment: "jsdom", setupFilesAfterEnv: ["./jest.setup.ts"], moduleFileExtensions: ["ts", "tsx", "js"], testPathIgnorePatterns: ["node_modules/"], transform: { "^.+\\.tsx?$": "ts-jest", }, testMatch: ["**/*.test.(ts|tsx)"], moduleNameMapper: { "\\.(jpg|...
'use strict'; const Pug = require('pug'); const Path = require('path'); const register = function(server, options) { server.views({ engines: { pug: Pug }, relativeTo: __dirname, path: '.' }); server.route({ method: 'GET', path: '/', handler: function(request, h) { return ...
import { NotImplementedError } from '../extensions/index.js'; /** * Given a string, return its encoding version. * * @param {String} str * @return {String} * * @example * For aabbbc should return 2a3bc * */ export default function encodeLine(str) { if (!str) { return '' } let arr = str.split(''), ...
/************************************************************* * * MathJax/jax/output/SVG/fonts/Asana-Math/Size2/Regular/Main.js * * Copyright (c) 2013-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
/* * Copyright 2020 Cognitive Scale, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
import { difference } from '../../utils/functional/difference.js' import { getWordsList } from '../../utils/string.js' // Adapter feature 'filter:_OPERATOR' allows for // `args.filter: { attrName: { _OPERATOR: value } }` export const filterValidator = function ({ features, filterFeatures }) { const ops = getOps({ fe...
Ext.define('ScienceLeadership.interims.overrides.InterimsEditorForm', { override: 'SlateAdmin.view.progress.interims.EditorForm', requires: [ 'Ext.form.field.ComboBox', 'Ext.form.field.Display' ], initComponent: function() { var me = this; me.items = Ext.Array.insert(Ex...
/*\ title: $:/core/modules/widgets/eventcatcher.js type: application/javascript module-type: widget Event handler widget \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; var Widget = require("$:/core/modules/widgets/widget.js").widget; var EventWidget = function(parseTree...
import Radio from './radio.vue' Radio.install = function(Vue){ Vue.component(Radio.name,Radio) } export default Radio
var express = require('express'); var topicController = require('./api/v1/topic'); var topicCollectController = require('./api/v1/topic_collect'); var userController = require('./api/v1/user'); var toolsController = require('./api/v1/tools'); var replyController = require('./api/v1/reply'); var mes...
function playVid() { var video = $('#sky_vid'); video[0].paused ? video[0].play() : video[0].pause(); $('#play').toggleClass('glyphicon-pause glyphicon-play'); } function fastforwardVid() { var now = $('#sky_vid')[0].currentTime; $('#sky_vid')[0].currentTime=now+0.1; } function rewindVid() { var now...
'use strict'; const { RPCClient } = require('@alicloud/pop-core'); function hasOwnProperty(obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); } class Client extends RPCClient { constructor(config) { config.apiVersion = '2018-03-13'; super(config); } /** * @param {String} OwnerAcco...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://ww...
/* global inject, findIn */ describe('CustomButton component', () => { let parentScope, element, stateGoStub, apiPostStub beforeEach(module('app.services')) beforeEach(inject(($compile, $rootScope, $state, CollectionsApi) => { parentScope = $rootScope.$new() parentScope.customActions = { buttons:...
// Banner Data URL const logourl = // Watermark Data URL const watermarkurl = // Signature Data URL const signatureurl = // Export Module // export {bannerurl, watermarkurl, signatureurl}
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {contains, filter, clone, has, isNil, type, omit} from 'ramda'; /* global Plotly:true */ const filterEventData = (gd, eventData, event) => { let filteredEventData; if (contains(event, ['click', 'hover', 'selected'])) { c...
/** * Created by Jakub on 2014-08-25. */ var expect = require('chai').expect , sinon = require('sinon') , ArticleCtrl = require('../../../controllers/article') , Article = require('../../../models/Article') , db = monk('localhost:27017/publishing_house_test'); describe('Article controll...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
import _createClass from "@babel/runtime/helpers/createClass"; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import Ext_ux_form_MultiSelect from '../../Ext/ux/form/MultiSelect.js'; var Ext_ux_ItemSelector = /*#__PURE__*/function (_Ext_ux_form_MultiSel) { _inheritsLoose(Ext_ux_ItemSelector, _Ext_...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://ww...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/extUI/steps/steps"],{ /***/ "../../../../../../Users/bai/Desktop/vue/hellow/pages/extUI/steps/steps.vue": /*!*****************************************************************!*\ !*** /Users/bai/Desktop/vue/hellow/pages/extUI/steps/steps.vue ***! ...
import expressWinston from 'express-winston' import winston from 'winston' expressWinston.requestWhitelist.push('body') export const loggerMiddleware = expressWinston.logger({ transports: [new winston.transports.Console()], format: winston.format.json() }) export const errorLoggerMiddleware = expressWinston.erro...
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{tBlp:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),l=n.n(a),o=n("Bl7J"),c=n("vrFN");t.default=function(){return l.a.createElement(o.a,null,l.a.createElement(c.a,{title:"Page two"}),l.a.createElement("h1",null,"Components"),l.a.createElement("p",null,"Welcom...
/** * This file is part of OXID eShop Community Edition. * * OXID eShop Community Edition is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later ...
/* ======================================================================== * Bootstrap: popover.js v3.4.0 * https://getbootstrap.com/docs/3.4/javascript/#popovers * ======================================================================== * Copyright 2011-2018 Twitter, Inc. * Licensed under MIT (https://github.com...
/*! * vue-router v4.0.0-beta.13 * (c) 2020 Eduardo San Martin Morote * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'; const PolySymbol = (name) => ...
/* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ // @flow import * as React from 'react'; import {Button} from '../../button/index.js'; import {useStyletron} from '../../styles/index.js'; import {Combob...
'use strict' const importer = require('ipfs-unixfs-importer') const normaliseAddInput = require('ipfs-core-utils/src/files/normalise-input') const { parseChunkerString } = require('./utils') const pipe = require('it-pipe') const { withTimeoutOption } = require('../../utils') module.exports = ({ block, gcLock, preload...
class ToogleButton extends Phaser.GameObjects.Container { constructor(scene,x,y,w,h, backgroundColor, border, bordeColor, trueText,falseText, action) { let button = scene.add.rectangle(0,0,w,h, backgroundColor); button.setStrokeStyle(border, bordeColor); button.setInteractive(); but...
(function(){var check=document.createElement("script");if(!("noModule"in check)&&"onbeforeload"in check){var support=false;document.addEventListener("beforeload",function(e){if(e.target===check){support=true}else if(!e.target.hasAttribute("nomodule")||!support){return}e.preventDefault()},true);check.type="module";check...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function RiRepeatOneFill (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"none","d":"M0 0h24v24H0z"}},{"tag":"path","attr":{"d":"M8 20v1.932a.5.5 0 0 1-.82.3...
function formatRouters (resolve) { return [ { path: '/', component: resolve(__dirname, 'pages/layouts'), children: [ { path: '', name: 'home', component: resolve(__dirname, 'pages/home') }, { path: '/login', name: 'login',...
// @flow import React, { PureComponent } from 'react'; import { IconShareDesktop } from '../../icons'; import { getParticipantById } from '../../participants'; import { connect } from '../../redux'; import { getAvatarColor, getInitials } from '../functions'; import { StatelessAvatar } from '.'; export type Props =...
const redis = require("redis"), jsonServer = require('json-server'), server = jsonServer.create(), router = jsonServer.router( process.env.SERVERDATABASEFILENAME ); console.log(process.env); const redisClient = redis.createClient( { host: process.env.REDISENDPOINTADDRESS, port: proces...
/** * @param {string} s * @return {number} */ var lengthOfLongestSubstring = function (s) { const len = s.length; const map = new Map(); let start = 0; let res = 0; for (let end = 0; end < len; end++) { if (map.has(s[end])) { start = Math.max(map.get(s[end]), start); } res = Math.max(res...
/** * Copyright (c) 2017, FinancialForce.com, inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this...
// does not contain:__proto__ = (function() { var x = {x: 1}; var proto = {p: 2}; x.__proto__ = proto; inspect = function() { let p = Object.getPrototypeOf(x); return p === proto; } })();
define(['jquery-1.9', 'policy-service'], function($, policyService) { var Provider, Embed; /* * Provider class * * @param {String} name The name of the provider * @param {String} type The type of the provider can be "file", "photo", "video", "rich" * @pa...
/* Highlight.js 10.0.0 (51906fbb) License: BSD-3-Clause Copyright (c) 2006-2020, Ivan Sagalaev */ hljs.registerLanguage("bash",function(){"use strict";return function(e){const s={};Object.assign(s,{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{/,end:/\}/,contains:[{begin:/:-/,contains:[s...
const MODERN_ACTIVITY = 15; const HALF_LIFE_PERIOD = 5730; module.exports = function dateSample(activity) { let sampleActivity = parseFloat(activity); if (isNaN(sampleActivity) || sampleActivity <= 0 || sampleActivity > 15 || typeof(activity) !== "string" || activity == "") { return false; } else { ...
/* * Copyright © 2018 EnTanMo Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the EnTanMo Foundation, * no part of this software, including this file, may be copied, modified, * prop...
import axios from 'axios'; import {toastOnError} from '../../utils/Utils'; import {GET_NOTES, ADD_NOTES, DELETE_NOTE, UPDATE_NOTE} from './NotesTypes'; export const getNotes = () => dispatch => { axios .get("/api/v1/notes") .then(response => { dispatch({ type: GET_NOTES,...
exports.up = function(knex) { return knex.schema.createTable('tasks', tasks => { tasks.increments(); tasks.integer('user_id').unsigned().notNullable().references('id').inTable('users'); tasks.string('name').notNullable(); tasks.boolean('status'); tasks.date('date'); ...
define(function(require, exports, module) { J = jQuery; require('jqueryform'); require('bootstrap'); require('layer'); layer.config({ path: '/assets/js/vendors/layer/' //layer.js所在的目录,可以是绝对目录,也可以是相对目录 }); $("#addMobileCode").on("click", function(){ var username=$("#mobile")....
const path = require('path'); const express = require('express'); require('dotenv').config(); const { PORT } = process.env; const app = express(); app.use(express.static(path.join(__dirname, 'dist'))); app.get('/*', (req, res) => { res.sendFile(path.join(__dirname, 'dist', 'index.html')); }); app.listen(PORT);
export default (err, req, res, next) => { // set locals, only providing error in development res.locals.message = err.message; res.locals.error = req.app.get('env') === 'development' ? err : {}; // render the error page res.status(err.status || 500); res.json({ error: { message: err.message }...
/** * Copyright 2018 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
const { Router } = require("express"); const { check } = require("express-validator"); const { validate_fields } = require("../middlewares/validate-fields"); const router = Router(); const { save, getAparts, deleteOneApart, deleteManyApart, } = require("../controllers/apart"); var md_auth = require("../middlew...
import { ADD_NEW_NOTE, FETCH_NOTES, FETCH_NOTE, } from '../Actions/types'; const initialState = { notes: [], selectedNote: null, }; export default function (state = initialState, action) { switch (action.type) { case ADD_NEW_NOTE: return { ...state, notes: state.notes.concat(action.payload.data)...
import Taro, { Component } from '@tarojs/taro' import { View, Input, Text } from '@tarojs/components' import { connect } from '@tarojs/redux' import './index.scss' import { add, del } from '../../actions/index' class Index extends Component { config = { navigationBarTitleText: '首页' } constructor () { s...
let a = global.__abstract ? __abstract([], "[1, 2, 3]") : [1, 2, 3]; let n = global.__abstract ? __abstract("number", "(3)") : 3; let i = 0; let b = []; do { b[i] = a[i++]; } while (i < n); let x = b[1]; let j = b.length; inspect = function() { return i + " " + j + " " + x + " " + JSON.stringify(b); }
// Copyright (c) 2018 Uber Technologies, Inc. // // 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, modify, merge...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("uicolor","et",{title:"Värvivalija kasutajaliides",options:"Värvi valikud",highlight:"Esiletõstmine",selected:"Valitud värv",prede...
var classextras_1_1_date_c_e = [ [ "DateCE", "classextras_1_1_date_c_e.html#a2baccb1cce5d7baa2cf5adfeb32c490d", null ], [ "DateCE", "classextras_1_1_date_c_e.html#a523e4d708e419b31a6b0031c90be440a", null ], [ "from_tm", "classextras_1_1_date_c_e.html#a10608e2963e69efa24d65b7b9dbaae5c", null ], [ "hour",...
export const CHANGE_LOCALE = 'app/LanguageProvider/CHANGE_LOCALE'
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...