text
stringlengths
2
1.04M
/* * @Author: zhangyu * @Email: zhangdulin@outlook.com * @Date: 2021-06-10 15:29:58 * @LastEditors: zhangyu * @LastEditTime: 2021-06-10 15:30:09 * @Description: */ // babel.config.js module.exports = { presets: [ ['@babel/preset-env', {targets: {node: 'current'}}], '@babel/preset-typescript', ...
import React from "react"; import "./App.css"; import GlobalStyles from "./GlobalStyles"; import Home from "./pages/Home"; import { BrowserRouter as Router, Route } from "react-router-dom"; import Paste from "./pages/Paste"; function App() { return ( <div className="App"> <GlobalStyles /> <Router> ...
import { Buffer } from '../../core/src/geometry/Buffer'; /** * Class controls cache for UV mapping from Texture normal space to BaseTexture normal space. * * @class * @memberof PIXI */ export class MeshBatchUvs { /** * @param {PIXI.Buffer} uvBuffer - Buffer with normalized uv's * @param {TextureMatr...
import{r as registerInstance,h,H as Host}from"./index-70672e81.js";import{g as generateMedColor}from"./med-theme-83c28ab9.js";var medAddCardCss=":host(.med-add-card){cursor:pointer}.med-add-card__container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.med-add-card__icon{stroke:hsl(var(--med...
'use strict'; require('./src/assets/scss/init.scss'); require('./static/css/prismjs/theme.vsc-dark-plus.css');
//*@public /** _enyo.Collection_ is an array-like structure that houses collections of [enyo.Model](#enyo.Model) instances. Collections are read-only entities in terms of retrieving and setting data via an [enyo.Source](#enyo.Source). Like _enyo.Model_, _enyo.Collection_ has a separate and distinct non- bubbling n...
/** * @/core 输出 * */ // 工具方法 export * from "./util/"; // 请求实例 export { default as axiosInstance } from "./util/axiosInstance" // 路由实例 export { default as routeGenerator } from "./util/routeGenerator" // 复制到剪切板方法 export { default as clipboard } from "./util/clipboard" // 事件总线 export { default as event } from "./util/e...
// @flow import { createToolbarEvent, sendAnalytics } from '../../analytics'; import { translate } from '../../base/i18n'; import { IconShareDoc } from '../../base/icons'; import { connect } from '../../base/redux'; import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components'; import { navi...
function handleNoGeolocation(a){new google.maps.LatLng(60,105);addMarker(new google.maps.LatLng(60,105),"Current Position",map,"")} function addMarker(a,d,b,c,f){var e=new google.maps.Marker({position:a,draggable:!1,map:b,title:d,id:f});markers.push(e);google.maps.event.addListener(e,"click",function(){$("#loader-infor...
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. let module_size = 19; let string_len = 0x00fffff0 - module_size; print("Allocating backing store: " + (string_len + module_size)); let backing = new Ar...
/** * @file Create a Node.Js Application with pattyFW to test it * @author Patricia de Sousa Paula <patricia@virtual.ufc.br> * @author Wellington Wagner Ferreira Sarmento <wwagner@virtual.ufc.br> * @version 0.5.0 * @license Apache-2.0 */ let express = require('express'), app = express(), port = process.env....
array = []; $( "#add-produto").click(function() { console.log('teste'); var produto = $('#produto').val(); var quantidade = $('#quantidade').val(); var data = { product: produto.split(" ")[0], quantidade: parseInt(quantidade) }; if(validaForm(data)){ var exist = false;...
"use strict"; var KTDatatableDataLocalDemo = { init: function () { var t; (t = $(".kt-datatable").KTDatatable({ data: { type: "remote", source: 'http://127.0.0.1:8000/api/mykad', method: get, pageSi...
const config = require('./config.json'); const mongoose = require('mongoose'); const winston = require('winston'); const dbOptions = { db: {native_parser: true}, replset: { auto_reconnect:false, poolSize: 10, socketOptions: { keepAlive: 1000, connectTimeoutMS: 30000 } }, server: {...
'use strict'; /** * Module dependencies */ var acl = require('acl'); // Using the memory backend acl = new acl(new acl.memoryBackend()); /** * Invoke Shippings Permissions */ exports.invokeRolesPolicies = function () { acl.allow([{ roles: ['admin'], allows: [{ resources: '/api/shippings', p...
/** * Copyright 2019 British Broadcasting Corporation * * 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 applic...
'use strict'; const expect = require('chai').expect; const stringUtils = require('app/components/string-utils'); const CAPITALISATION_TEST_POSTCODE_1 = 'UB8 1PJ'; const CAPITALISATION_TEST_SOURCE_FORMAT_1 = '17, GLADE COURT, 65, HAREFIELD ROAD, UXBRIDGE, UB8 1PJ'; const CAPITALISATION_TEST_UPDATED_FORMAT_1 = '17 Glad...
"use strict"; window.addEventListener('DOMContentLoaded', (event) => { app_start(); }); function app_start() { TemplateJS.View.lightbox_class = "lightbox"; window.app = new App(); window.app.init(); } function parse_fetch_error(e) { var txt; if (e.headers) { var ct = e.headers.get("Content-Type"); if (...
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile',...
////////////////////////////// Required Packages ////////////////////////////// ////////////////////////////// DO NOT MESS WITH /////////////////////////////// let Discord = module.require(`discord.js`); const fs = module.require(`fs`); const CONFIG = require("../storage/config.json"); const myLoggers = require('log4js...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. const { Deskto...
(function () { 'use strict'; angular .module('experts') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('experts', { abstract: true, url: '/experts', template: '<ui-view/>' }) .s...
import React from "react" import { makeStyles } from "@material-ui/core" const useStyles = makeStyles(theme => ({ root: { position: "fixed", zIndex: 999, margin: "0 auto", width: "100vw", display: "flex", flexDirection: "row", justifyContent: "flex-end", bottom: "0.5em", [theme.br...
/** * Module Imports */ const { Client, Collection, MessageEmbed } = require("discord.js"); const { readdirSync } = require("fs"); const { join } = require("path"); const { TOKEN_FALCON, TOKEN_TEST, PREFIX } = require("./config.json"); const client = new Client({ disableMentions: "everyone" }); cl...
export default { name: 'ChevronDoubleUpIcon', props: { size: { type: String, default: '24', validator: (s) => (!isNaN(s) || s.length >= 2 && !isNaN(s.slice(0, s.length -1)) && s.slice(-1) === 'x' ) } }, functional: true, render(h, ctx) { const size = ctx.props.size.slice(-1)...
'use strict'; describe('Test Usage: Exchange List', function () { it('List of all available exchanges from the package', function (done) { const actual_Exchanges = require('..') const expected_Exchanges = [ 'length', 'bitfinex', 'bittrex', 'gdax', 'gemini', 'kraken', ...
import React, { Component } from "react"; class App extends Component { constructor(props) { super(props); this.state = { ...props.state }; } render() { const { state } = this; const { commands: { add, setName } } = this.props; const onChange = event => { setName(event.target.value); ...
class Country { constructor(data, running_order) { const c = this; this.running_order = running_order; this.index = 0; this.judged = false; Object.keys(data).forEach(function(k) { c[k] = data[k]; }); this.css = {}; this.css[`flag-icon-${thi...
const course = require('express').Router(); const courseController = require('./course.controller'); course.get('/', courseController.get); course.post('/', courseController.post); course.get('/:pageId', courseController.getByPageId); course.put('/:pageId', courseController.putByPageId); course.put('/:pageId/thumbnai...
const convertTypeToGraphQLName = ({ type, name }, index) => { if (name !== '') { return name } let queryName = type if (type.includes('[]')) { queryName = `${type.substring(0, type.length - 2)}Arr_${index}` } else { queryName = `${type}_${index}` } return queryName } const mapOutputType = (ty...
import React from 'react'; import { createRenderer } from 'react-test-renderer/shallow'; import App from './App'; import Header from '../containers/Header'; import MainSection from '../containers/MainSection'; const setup = propOverrides => { const renderer = createRenderer(); renderer.render(<App />); const out...
export default { key: 'C', suffix: '13b9', positions: [ { frets: '2101', fingers: '3102' }, { frets: '3100', fingers: '3100' }, { frets: '3454', fingers: '1243' }, { fr...
import styled from 'styled-components'; export const AlbumsCoverWrapper = styled.div` width: 100%; height: 100%; font-size: 12px; .img-cover { position: relative; width: 100%; height: ${props => props.imgSize + "px"}; &:hover .icon-play{ display: inline-block; } } .img-mask { ...
import './index.scss'; import 'markdown-it-highlight/dist/index.css'; import 'highlight.js/styles/hybrid.css'; import hljs from 'highlight.js'; import {load} from './loaders/md-loader?folder=./guide!'; import StackBlitzSDK from '@stackblitz/sdk'; import sbIcon from './assets/stackblitz.svg'; // Import the LitElement b...
/** * Set some options for the chat. * * @namespace jsxc.options */ jsxc.options = { /** name of container application (e.g. owncloud or SOGo) */ app_name: 'web applications', /** Timeout for the keepalive signal */ timeout: 3000, /** Timeout for the keepalive signal if the master is busy */ bu...
$(document).ready(function() { }); function CargarRegionSeleccionada(numero){ var datos = { id: numero }; $.ajax({ headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}, type: "POST", cache: false, url: "BusquedaRegion", dataType: "json", data ...
// Is webkit? http://stackoverflow.com/a/16459606/376773 module.exports = function isWebkit () { try { return ('WebkitAppearance' in document.documentElement.style) && !/Edge/.test(navigator.userAgent) } catch (error) { return false } }
#!/usr/bin/env node /** * The main bin module that triggers initialization of Mink in CLI or API * mode. API Mode is used when requiring Mink in another project, or testing * the codebase. * @module Mink */ const service = require('./core/service') /** * Service * @param {argv} - array of arguments from the t...
// @flow import _ from 'lodash'; import slug from 'slug'; import randomstring from 'randomstring'; import { DataTypes, sequelize } from '../sequelize'; import { asyncLock } from '../redis'; import events from '../events'; import Document from './Document'; import CollectionUser from './CollectionUser'; import Event fro...
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import Grid from '@material-ui/core/Grid' import Card from '@material-ui/core/Card' import CardContent from '@material-ui/core/CardContent' import Divider from '@material-ui/core/Divider' import Typography from '@mat...
define(["jquery", "acme", "webforms/formUtils"], function($,acme, formUtils) { var pkg = {}; var i18nPromise = acme.I18N_MANAGER.load(['web.login.emailEmpty', 'web.login.passwordEmpty']); var I18N = acme.I18N_MANAGER.getMessage; pkg.Manager = function(params){ ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const usuariosScheme = new Schema({ email: { type: String, required: true, unique: true, lowercase: true, trim: true }, nombre: { type: String, required: true, trim: true }, password: { type: String, ...
import React from 'react'; import styles from './ItemEditorWrapper.scss'; import classNames from 'classnames/bind'; import ItemEditorPane from 'components/itemEditor/ItemEditorPane'; import Button from 'components/common/Button'; const cx = classNames.bind(styles); const ItemEditorWrapper = ({children, onGoBack, onSub...
/** * Copyright 2015 The AMP HTML Authors. 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 require...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React from 'react'; import ReactDOM from 'react-dom'; //import { Amplify } from 'aws-amplify'; import { BrowserRouter as Router } from 'react-router-dom'; import './index.css'; import App from './App'; import config from './config'; import { initSentry } from './libs/errorLib'; import * as serviceWorker from './...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var __chunk_1 = require('../chunk-cf203200.js'); var React = _interopDefault(require('react')); require('@carbon/icon-helpers'); require('prop-types'); var Mobile32 = /*#__PURE__*/ React.f...
"use strict"; /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.21.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator...
document.getElementById('redirect_to').focus();
/** * navigation.js * * Handles toggling the navigation menu for small screens and enables tab * support for dropdown menus. */ ( function() { var container, button, menu, links, subMenus; container = document.getElementById( 'site-navigation' ); if ( ! container ) { return; } button = container.getElemen...
/*! highlight.js v9.12.0 | BSD3 License | git.io/hljslicense */
actualizarPiloto = { funcionesAddOnload : function() { this._init(); this._conectEvents(); }, _init : function() { $("#actualizar_piloto_command_empresa").select2({ allowClear: true }); $("#actualizar_piloto_command_nacionalidad").select2({ allow...
angular.module('decorators') .directive('home_de-de', ['homeService', function (homeService) { return { restrict: 'E', replace: true, templateUrl: '../public/javascripts/src/templates/homeDirective_de-de.html', link: function ($scope) { $scope....
import { colors, fontSizes } from '../../storybook/args' export const defaultArgs = { color: 'text.light', fontSize: 2, type: 'ol', } export const argTypes = { color: { name: 'color', type: { name: 'string', required: false }, description: 'Palette color to use', table: { type: { ...
var gulp = require('gulp'); var minify = require("gulp-minify"); var uglify = require("gulp-uglify"); var concat = require("gulp-concat"); gulp.task("default", function() { return gulp.src("./public/js/widget/*.js") .pipe(concat("parle.js")) .pipe(gulp.dest("./public/js/widget/dist")); }) /*gulp.task("widget-ini...
var _ = require('../util') var Directive = require('../directive') var compiler = require('../compiler') /** * Update v-ref for component. * * @param {Boolean} remove */ exports._updateRef = function (remove) { var ref = this.$options._ref if (ref) { var refs = (this._scope || this._context).$refs if ...
import React from 'react'; import FormRenderer from '@data-driven-forms/react-form-renderer/dist/cjs/form-renderer'; import FormTemplate from '@data-driven-forms/pf4-component-mapper/dist/cjs/form-template'; import componentMapper from '@data-driven-forms/pf4-component-mapper/dist/cjs/component-mapper'; import { map...
import React from 'react' import CommentForm from './CommentForm' import CommentList from './CommentList' class CommentBox extends React.Component { constructor(props){ super(props); const sock = new WebSocket('ws://localhost:7777/comment'); sock.onopen = function() { console.l...
const apiUrl = 'http://106.14.142.74:8081';//线上域名,自己改成自己的 export default apiUrl
/** * This module provides service functions */ // Module dependencies var async = require('async') , url = require('url') , https = require('https'); // Retrieve the Rules Service parameters if (process.env.VCAP_SERVICES) { var env = JSON.parse(process.env.VCAP_SERVICES); if (env['businessrules']) { // if ...
import React from 'react'; export default function Header() { return ( <header> <h1>RESTy</h1> </header> ) }
var override = require('json-override'); var grunt = require('grunt'); var fs = require('fs'); var ini = require('ini'); var execSync = require('child_process').execSync; var stringToObj = function(path,value,obj) { var parts = path.split("."), part; var last = parts.pop(); while(part = parts.shift()) { if( t...
const Command = require("../../lib/Command"); const fetch = require("node-fetch"); const config = require("../../config"); class unmonitorCommand extends Command { constructor(...args) { super(...args, { aliases: ["removemonitor", "rmmonitor", "unmonitorsteam", "umonitor"], description: "Stops monito...
export function isNan (val) { return typeof val === 'number' && isNaN(val) }
(function ($, undefined) { /* ColorGradient messages */ if (kendo.ui.ColorGradient) { kendo.ui.ColorGradient.prototype.options.messages = $.extend(true, kendo.ui.ColorGradient.prototype.options.messages,{ "contrastRatio": "Contrast ratio:", "fail": "Fail", "pass": "Pass", "hex":...
const { defineConfig } = require('cypress') module.exports = defineConfig({ component: { devServer: { bundler: 'webpack', framework: 'vue-cli' }, }, })
//# sourceMappingURL=i18n-fa-IR-json.e03a7516.chunk.js.map
//Biblioteca para crear rutas absolutas o relativas de los recursos de la aplicación const path = require('path'); //Biblioteca manejo de JSON const bodyParser = require('body-parser'); //Importando la biblioteca express para la creación de servidores const express = require('express'); //Traer un objeto sequelize con...
const request = require("request"); const gm = require("@tohru/gm").subClass({ imageMagick: true }); exports.run = async (bot, message, args) => { const image = await bot.getImage(message).catch(error => { message.reply("you need to provide an image to deep fry!"); console.log(error); }); if (image !==...
const playwright = require('playwright'); const path = require('path'); const webpack = require('webpack'); const CI = Boolean(process.env.CI); let build = `material-ui local ${new Date().toISOString()}`; if (process.env.CIRCLECI) { const buildPrefix = process.env.CIRCLE_PR_NUMBER !== undefined ? process...
#!/usr/bin/env node const package = require('../package'); const { Command } = require('commander'); const { CreateCommand } = require('../src/commands'); const program = new Command(); program .version(package.version, '-v, --version', 'display version for vta-cli') .usage('<command> [options]'); program .opt...
import React, { useState, useEffect } from 'react'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import { Menu, Button, Dropdown, Container, Icon, Image, Label } from 'semantic-ui-react'; import { useSubstrate } from './substrate-lib'; function Main (props) { const { keyring } = useSubs...
// Includes const generalRequest = require('../util/generalRequest.js').func // Args exports.required = ['group'] exports.optional = ['useCache', 'jar'] // Define exports.func = function (args) { const events = { __EVENTTARGET: 'JoinGroupDiv', __EVENTARGUMENT: 'Click' } return generalRequest({ url: '//w...
import SpinnerElement from '../SpinnerElement.js'; export class LoopingRhombusesSpinner extends SpinnerElement { static get is() { return 'looping-rhombuses-spinner'; } static get defaults() { return { color: '#ff1d5e', duration: 2.5, size: 15, }; } static get observedAttributes() {...
describe('BaseDisplayer', function() { var myDisplay, myPoly; beforeEach(function() { myPoly = new Polygon(200,200,50, 0, 5); myDisplay = new BaseDisplayer(myPoly); }); describe('init', function() { it('initializes with a Polygon', function() { console.log(myDisplay); expect(myDisplay.polygon).toBe(myP...
function item_taken(elm){ $(elm).parent().parent().parent().toggleClass('gone'); }
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */ import React, {Component} from 'react'; import {TextInput, StyleSheet, Text, View} from 'react-native'; type Props = {}; export default class Page3 extends Component<Props> { render() { const {navigation}...
import React, { Fragment, useEffect } from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Navbar from './components/layout/Navbar'; import Landing from './components/layout/Landing'; import Register from './components/auth/Register'; import Login from './components/auth/Login...
/** * Test syncing from non-primaries. * * Start a set. * Inital sync. * Kill member 1. * Add some data. * Kill member 0. * Restart member 1. * Check that it syncs. * Add some data. * Kill member 1. * Restart member 0. * Check that it syncs. */ load("jstests/replsets/rslib.js"); var name = "sync_passive...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // mode(s) for the sequence chart dsl's mscgen, xù and msgenny // For more information on mscgen, see the site of the original author: // http://www.mcternan.me.uk/mscgen // // This mode for m...
console.log(666888); alert("aaa");
define(function(require, exports, module) { 'use strict'; const $ = require('jquery'); const _ = require('underscore'); const __ = require('orotranslation/js/translator'); const Backbone = require('backbone'); let config = require('module-config').default(module.id); config = _.extend({ ...
/* jslint node: true */ 'use strict'; // ENiGMA½ const MenuModule = require('./menu_module.js').MenuModule; const ViewController = require('./view_controller.js').ViewController; const messageArea = require('./message_area.js'); const MessageAreaConfTempSwitcher =...
/* eslint-disable operator-linebreak */ const authRouter = require('express').Router(); const bcrypt = require('bcrypt'); require('express-async-errors'); const { generatePasswordHash, generateUserToken } = require('../utils/helper'); const User = require('../models/User'); authRouter.post('/signup', async (request, ...
function vizifluChartLower() { // define chart layout var margin = { // top margin includes title and legend top: 70, // right margin should provide space for last horz. axis title right: 40, bottom: 20, // left margin should provide space for y axis titles left: 140 }; // height...
$(document).ready(function () { //store variables for weather data to display on html and apis var historyContainer = $('#old-searches'); var formSearch = $('#search'); var todayContainer = $('#today'); var forecastContainer = $('#forecast'); var apiKey = 'd52bfbcfacc4ca103f3cb67d31cb1af6'; ...
import React, { Component } from "react"; import PropTypes from "prop-types"; import withStyles from "@material-ui/core/styles/withStyles"; // MUI Stuff import Button from "@material-ui/core/Button"; import Grid from "@material-ui/core/Grid"; import TextField from "@material-ui/core/TextField"; // Redux stuff import ...
import { elements } from './base'; export const renderItem = item => { const markup = ` <li class="shopping__item" data-itemid=${item.id}> <div class="shopping__count"> <input type="number" value="${item.count}" step="${item.count}" class="shopping__count-value"> <p>${item.unit}...
import React from 'react' import PropTypes from 'prop-types' import theme from '@/styles/theme' class Step extends React.Component { static propTypes = { index: PropTypes.number.isRequired, title: PropTypes.string.isRequired, validTitle: PropTypes.string.isRequired, isActif: PropTypes.bool.isRequire...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
// // Import vendor jQuery plugin example // import '~/app/libs/mmenu/dist/mmenu.js' document.addEventListener('DOMContentLoaded', () => { let rellax = new Rellax('.rellax'); let paralax = new Rellax('.paralax', { wrapper: '.advice' }); function someHight(itemClass){ let item = document.querySelectorAll(i...
import React from "react"; import Widget from "admin/components/Widget/index"; const AayurvedaCard = () => { return ( <Widget styleName="gx-card-full gx-text-center"> <div className="gx-pt-4 gx-px-3"> <div className="gx-separator gx-bg-success-dark"/> <h2 className="gx-mb-4 gx-text-success...
import React from 'react'; import AppContainer from './app-container'; import compiler from 'mson/lib/compiler'; import { render, fireEvent } from '@testing-library/react'; const generateComplexComponent = { component: 'Action', schema: { component: 'Form', fields: [ { name: 'componentType', ...
/*eslint no-unused-vars: ["error", { "args": "none", "varsIgnorePattern": "(page)" }]*/ import { setup as setupModelFactoryInjections, reset as resetModelFactoryInjections } from 'dummy/tests/helpers/model-factory-injection'; import { A } from '@ember/array'; import { resolve, Promise as EmberPromise, all, ...
'use strict'; /* Directives */ eventsApp.directive('contenteditable', function() { return { require: 'ngModel', link: function(scope, elm, attrs, ctrl) { // view -> model elm.on('blur', function() { scope.$apply(function() { ctrl.$setVie...
'use strict'; const awsRequest = require('@serverless/test/aws-request'); const { expect } = require('chai'); const fixtures = require('../fixtures'); const { deployService, removeService } = require('../utils/integration'); const { resolveIotEndpoint } = require('../utils/iot'); describe('test/integration/iotFleetPr...
import { Comments } from "./components/comments"; import { Ajax } from "./utils/ajax"; const list = new Comments(document.querySelector('.comments')); Ajax.get('http://localhost:4001/comments'), (response) => { console.log(response); }, (e) => { console.log(e) };
import {Input} from 'antd'; import PropTypes from 'prop-types'; import {Mesgs, Proxy0, SK} from 'sk-js'; import AntdComp from '../AntdComp'; import React from 'react'; const {TextArea} = Input; TextArea.defaultProps = SK.extends(true, {}, {}, TextArea.defaultProps, {}); TextArea.propTypes = SK.extends(true, {}, { ...
const { gzipSync } = require('zlib') const consola = require('consola') const { createSitemap, createSitemapIndex } = require('./builder.js') const { createRoutesCache } = require('./cache.js') const { setDefaultSitemapOptions, setDefaultSitemapIndexOptions } = require('./options.js') const { excludeRoutes } = requir...
import axios from 'axios' import BaseModel from './BaseModel' export default class ExpenseCategoryModel extends BaseModel { constructor (data = null) { super() this.errors = [] this.error_message = '' this._url = '/api/expense-categories' this.entity = 'ExpenseCategory' ...