text stringlengths 2 1.05M |
|---|
const info = document.getElementById("info");
const subBtn = document.querySelector("#subBtn");
const inputs = document.querySelectorAll("#form-con input");
const formError = Array.from(document.querySelectorAll(".form-error"));
const formSucces = document.querySelector(".form-succes");
let myTimeOut;
const details = ... |
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
module.exports = {
entry: {
index: './src/index.tsx',
'index.min': './src/index.... |
'use strict';
const apiURL = 'https://api.tvmaze.com/search/shows?';
const hae = function (event) {
event.preventDefault();
$("#tulos").empty();
$.getJSON(apiURL + $(this).serialize(), function (response) {
$("#tulos").append("<h1>Tulokset</h1>");
if (response.length > 0) {
$.e... |
// 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... |
import i from"./GrowCard.6933a8d6.js";import s from"./SiteAnalysis.f7cdf5be.js";import a from"./VisitSource.864faf2e.js";import o from"./VisitRadar.a5348431.js";import r from"./SalesProductPie.fa969e11.js";import{k as l,r as d,K as e,o as n,n as t,q as m}from"./vendor.59fe1062.js";import"./index.21cfc268.js";import"./c... |
var clv = require("../../../../index.js");
var assert = require("assert");
describe("Generated test - ins/ins/undo/undo/ins/rm/rm/undo/redo/ins - 10-ops-cd9c733a-bc81-4cf5-bca0-467a409c023f", function() {
var doc1 = new clv.string.Document("63653010-537e-11e7-8e30-9514328ff5b2", 0, null);
var doc2 = new clv.string... |
'use strict';
let EventEmitter = require('events');
/*
The InjectingEventEmitter (I sound like I'm writing J2EE) is a thin wrapper
around the node EventEmitter that lets us do dependency-injected callbacks on
events.
TODO: make Bot an InjectingEventEmitter
*/
class InjectingEventEmitter extends EventEmitter {
con... |
requirejs.config({
paths:{
jquery:'jquery-3.4.1.min'
}
})
requirejs(['jquery','validate'],function($,validate){
console.log(validate.isEqual(3,4))
}) |
import './order-success.scss';
|
const { MessageAttachment } = require('discord.js');
const { createCanvas, loadImage, registerFont } = require('canvas');
const applyText = (canvas, text) => {
const ctx = canvas.getContext('2d');
let fontSize = 70;
do {
ctx.font = `${(fontSize -= 10)}px Roboto-Light`;
} while (ctx.measureText(text).width > ca... |
import 'regenerator-runtime/runtime.js';
import React from 'react';
import { hydrate } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import ApolloClient from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import { ApolloLink } from 'apollo-link';
import { InMemoryCache } from 'apo... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../differenceInCalendarISOWeekYears/index.js"));
var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js"));
function _interopRequireDefault(obj... |
module.exports = {
"extends": "airbnb-base",
"plugins": [
"react"
]
}; |
const path = require('path')
const run = require('../utils/run')
const assert = require('../utils/assert')
const sameDirContent = require('../utils/sameDirContent')
const f = require('../fixtures/constants')
const excludeFilter = [
'ElectrodeApiImpl.xcodeproj',
'project.pbxproj',
'package.json',
'.DS_Store',
... |
import satchelUpgrade from './other/satchel-upgrade';
//import DiamondRing from './rings/diamond-ring';
//import AmethystRing from './rings/amethyst-ring';
//import OldRing from './rings/old-ring';
import HpPotion from './other/hp-potion';
import GreatHpPotion from './other/great-hp-potio... |
import React, { useState } from 'react';
import './galeria.css';
import { PhotoSwipe } from 'react-photoswipe';
function Galeria(props) {
const [exibirGaleria, setExibirGaleria] = useState(false);
const [opcoesGaleria, setOpcoesGaleria] = useState({});
function handleFecharGaleria() {
setExibirGa... |
const schemaVersions = {};
schemaVersions['1.0'] = {
id: 'listMetadataResult',
type: 'array',
items: {
type: 'object',
},
};
module.exports = schemaVersions;
|
import { gql } from '@apollo/client';
import ApollosConfig from '@apollosproject/config';
export default gql`
query getHorizontalCardListFeature($featureId: ID!) {
node(id: $featureId) {
...HorizontalCardListFeatureFragment
}
}
${ApollosConfig.FRAGMENTS.HORIZONTAL_CARD_LIST_FEATURE_FRAGMENT}
# Fo... |
import DefaultLayout from './default';
import BlankContainer from './container';
export default DefaultLayout;
|
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
filename: 'main.js',
sourceMapFilename: '[name].js.map',
path: path.resolve(__dirname, 'dist'),
clean: true,
publicPath: '/weather_app/',
},
module: {
rules: [
{
test: /\.css$/i,
us... |
function CellInfoCollection() {
var collection = [];
collection.getInfo = function (row, col) {
for (var i = 0, ilen = this.length; i < ilen; i++) {
if (this[i].row <= row && this[i].row + this[i].rowspan - 1 >= row && this[i].col <= col && this[i].col + this[i].colspan - 1 >= col) {
return this... |
import Main from "./Main";
export { Main }; |
import template from './sw-cms-mapping-field.html.twig';
import './sw-cms-mapping-field.scss';
const { Component } = Shopware;
Component.register('sw-cms-mapping-field', {
template,
inject: ['cmsService'],
model: {
prop: 'config',
event: 'config-update'
},
props: {
confi... |
import AWS from 'aws-sdk';
import cuid from 'cuid';
import conf from '../../server/config.js';
const albumName = conf.awsAlbumName;
const s3 = new AWS.S3({
apiVersion: '2006-03-01',
params: {Bucket: conf.awsBucketName},
accessKeyId: conf.awsAccessKeyId,
secretAccessKey: conf.awsSecretAccessKey,
});
export fu... |
import React from 'react';
import ReactDOM from 'react-dom';
import ApolloClient from 'apollo-boost';
import { ApolloProvider } from '@apollo/react-hooks';
import Typography from '@material-ui/core/Typography';
import './index.css';
// import Board from './Board'
import Grid from './Grid'
import * as serviceWorker from... |
import React from 'react';
import './Header.css';
export default function Header(props) {
const Link = props.link;
return (
<nav className="navbar navbar">
<div className="container-fluid">
<div className="navbar-header">
<a className="navbar-brand" href="/">
<h2>JDSB</h2>
... |
const mongoose = require('mongoose')
const {server} = require('./index')
const dotenv = require('dotenv').config()
const socketListener = require('./socket')
mongoose.connect(process.env.DATABASE_URL, { useNewUrlParser: true, useUnifiedTopology: true }, err=>{
if (err){
console.log("Error" + err)
}
... |
import axios from 'axios';
let base = 'https://api.cfun.vip/';
export const requestLogin = params => { return axios.post(`${base}/admin/login`, params).then(res => res.data); };
export const addArticle = params => { return axios.post(`${base}/admin/add`, params).then(res => res.data); };//添加文章
export const getIndex... |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
let tiltOpened = false;
function test() {
if (!isTiltEnabled()) {
info("Skipping part of the arcball test because Tilt isn't enabled.");
return;
}
if (!isWebGLSupported()) {
info... |
module.exports = require("core-js-pure/features/math/rad-per-deg"); |
// Copyright (c) 2017, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Letter Head', {
refresh: function(frm) {
}
});
|
const localDataName = 'mateInvoice';
const orderStatusOptions = ['Pending', 'Shipped', 'Delivered'];
const fakedata = [
{
key: 1,
id: '1518713981654',
number: '#1231',
orderStatus: 'Shipped',
orderDate: 1518849188360,
currency: '$',
billTo: 'REDQ Inc.',
billToAddress:
'redq@comp... |
// State argument is not application state,
// only the state this reducer is responsible for
export default function(state = null, action) {
switch(action.type) {
case 'BOOK_SELECTED':
return action.payload;
}
return state;
} |
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports==="object"){factory(require("jquery"))}else{factory(jQuery)}})(function($,undef){var dataKey="plugin_hideShowPassword",shorthandArgs=["show","innerToggle"],SPACE=32,ENTER=13;var canSetInputAttribute=function(... |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/':{
target:'URL',
changeOrigin:true,
... |
const message = () => {
return "Message!";
};
module.exports = {
message,
};
|
/**
* Created by Roman on 02.01.2015.
*/
var azure = require('azure-storage');
module.exports = function() {
var Azure = function () {
"use strict";
var fileService = azure.createBlobService();
this.createContainerIfNotExists = function (container, callback) {
fileService.cre... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3'], factory) :
(factory((global.gAxis = global.gAxis || {}),global.d3));
}(this, function (exports,d3) { 'use stri... |
import { useState } from 'react';
import { runHooks } from '../.jest/helpers';
import { useSafely } from '../src';
describe('useSafely hook', () => {
it('returns a new updater that invokes the previous one', () => {
const state = Symbol();
const updater = jest.fn();
runHooks(() => useSafely([state, upda... |
/**
*
* Map
*
*/
import React from 'react'
import styled from 'styled-components'
import {Map as DgMap, Marker} from '2gis-maps-react'
import {ButtonZoom, ButtonZoomSmall, ZoomButtons} from './Zoom'
const MapWrapper = styled.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-... |
import React from "react"
import { render } from "../../../../test-utils"
import NextPageIcon from "../NextPageIcon"
describe("NextPageIcon", () => {
it("renders correctly", () => {
const component = render(<NextPageIcon />)
expect(component).toMatchSnapshot()
})
})
|
// Create clients and set shared const values outside of the handler
// Create a DocumentClient that represents the query to add an item
const dynamodb = require('aws-sdk/clients/dynamodb');
const docClient = new dynamodb.DocumentClient();
const { STATUSES } = require('./consts');
class DynamoDBApi {
constructor(... |
let _ = require('lodash')
let fs = require('fs')
let pts = fs.readFileSync("ptSectionsJsonNoPage.json")
let ptSections = JSON.parse(pts)
let ptLang = require('./pt')
let newPT = []
let output = {}
//{ "label": "2", "precision": 0, "page": 2, "tlp":["2"], "fontSize":"90px", "y_axis": 1, "x_axis": 9, "ger": "test pt ge... |
const Plugin = require('broccoli-plugin');
class MyPlugin extends Plugin {
constructor(inputNodes, options = {}) {
super(inputNodes, {
annotation: options.annotation
// see `options` in the below README to see a full list of constructor options
});
}
build() {
// Read files from this.in... |
import {Format} from "../../Format.js";
export class latexAUXFile extends Format
{
name = "Latex Auxiliary File";
ext = [".aux"];
forbidExtMatch = true;
magic = ["LaTeX auxiliary file"];
weakMagic = true;
untouched = true;
metaProvider = ["text"];
}
|
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var __chunk_1 = require('../../chunk-49d9503c.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var WatsonHealthRegionAnalysisAre... |
const numbersMapping = {
0: "zero", 1: "one", 2: "two", 3: "three", 4: "four",
5: "five", 6: "six", 7: "seven", 8: "eight", 9: "nine",
10: "ten", 11: "eleven", 12: "twelve", 13: "thirteen",
14: "fourteen", 15: "fifteen", 16: "sixteen",
17: "seventeen", 18: "eighteen", 19: "nineteen",
20: "twen... |
import React from 'react';
import autoBind from 'auto-bind';
import PropTypes from 'prop-types';
import abcjs from '../../../common/abcjs-import.js';
import { inject } from '../../../components/container-context.js';
import { sectionDisplayProps } from '../../../ui/default-prop-types.js';
import GithubFlavoredMarkdown ... |
'use strict';
RoCode.MechanicblockUno = {
id: '39.3',
name: 'MechanicblockUno',
url: 'http://www.mechanicblock.co.kr/',
imageName: 'mechanicblock_uno.png',
title: {
ko: '메카닉블럭 Uno',
en: 'Mechanicblock Uno',
},
setZero() {
if (!RoCode.hw.sendQueue.SET) {
... |
const AWS = require('aws-sdk');
const listTables = require('../methods/list-tables');
const describeTable = require('../methods/describe-table');
const extractIndexes = require('./extract-indexes');
module.exports = async function createClient(config) {
let client = new AWS.DynamoDB(config);
let documentClient = n... |
'use strict';
/**
* @ngdoc function
* @module ng
* @name angular.injector
* @kind function
*
* @description
* Creates an injector object that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules A l... |
module.exports = {
'GET /status': 'APIController.getStatus',
// User:
'POST /auth/register': 'UserController.register',
'POST /auth/login': 'UserController.login',
'POST /auth/validate': 'UserController.validate',
'POST /auth/refresh': 'UserController.refresh',
'POST /auth/logout': 'UserController.logout',
//... |
module.exports = function(nconf) {
return function(options) {
return {
to: '{0} <{1}>'.format('Mathieu LEMAIRE', 'lemaire.mathieu@gmail.com'),
subject: 'Test email'
};
};
}; |
import typescript from 'rollup-plugin-typescript2'
import commonjs from 'rollup-plugin-commonjs'
import external from 'rollup-plugin-peer-deps-external'
// import postcss from 'rollup-plugin-postcss-modules'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import url from 'ro... |
import NotesLayout from 'src/layouts/NotesLayout'
import NotesCell from 'src/components/NotesCell'
const NotesPage = () => {
return (
<NotesLayout>
<NotesCell />
</NotesLayout>
)
}
export default NotesPage
|
/**
* Given an array of 2n integers, your task is to group these integers into n pairs of integer,
* say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible.
*
* Example 1:
* Input: [1,4,3,2]
*
* Output: 4
* Explanation: n is 2, and the maximum sum of pai... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"widgets/Draw/setting/nls/strings":{addLocation:"\u0625\u0636\u0627\u0641\u0629 \u0648\u062d\u... |
define([
"require",
"./sympy_functions",
"./sympy_assumptions",
], function (require, sympy_functions, sympy_assumptions) {
return {
'name' : 'SymPy',
'sub-menu' : [
{
'name' : 'Setup',
'snippet' : [
'from __future__ import... |
// https://gist.github.com/pascaldekloe/62546103a1576803dade9269ccf76330
function decodeUTF8(bytes, offset, length) {
var s = '';
var i = offset;
while (i < offset + length) {
var c = bytes[i++];
if (c > 127) {
if (c > 191 && c < 224) {
if (i >= bytes.length) throw 'UTF-8 decode: incomplete 2-byte sequen... |
'use strict';
/**
* Module dependencies
*/
var util = require('util');
var braces = require('braces');
var toRegex = require('to-regex');
var extend = require('extend-shallow');
/**
* Local dependencies
*/
var compilers = require('./lib/compilers');
var parsers = require('./lib/parsers');
var cache = require('.... |
/**
* aui-pull-refresh.js
* @author Beck && 流浪男
* @todo more things to abstract, e.g. Loading css etc.
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function(window) {
'use strict';
/**
* Extend obj function
*
* This is an object extender function. It allows us... |
//
// Copyright (c) Microsoft and contributors. 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 requi... |
describe('<%= _.camelize(name) %>', function() {
beforeEach(module('<%= appname %>'));
it('should ...', inject(function(<%= _.camelize(name) %>) {
//expect(<%= _.camelize(name) %>.doSomething()).toEqual('something');
}));
});
|
import response from '../helpers/response.helper';
import accomodationServices from '../services/accomodation.service';
import AccommodationHelper from '../helpers/accomodation.helper';
import imageServices from '../services/image.services';
import roomServices from '../services/room.services';
import commentService fr... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.env} object which contains
* environment and browser information.
*/
if ( !CKEDITOR.en... |
var WebClient = require('_core/http/WebClient.js');
var ArrayExtensions = require('_core/extensions/ArrayExtensions.js');
var mvcApp = {
weixin: require('_core/weixin.js'),
ajax: {
busyPost: function (url, data, callback, busyText, onlyCallbackOnSuccess) {
var app = getApp();
var client = new WebClient();
... |
import { useEffect } from "react";
import { useLocation } from "react-router-dom";
const ScrollTop = () => {
const { pathname } = useLocation();
useEffect(() => {
window.scroll({
top: 0,
left: 0,
});
}, [pathname]);
return null;
};
export default ScrollTop;
|
const Utils = require("../dist/adapterUtils");
const gql = require("graphql-tag");
const assert = require("assert");
const _ = require("lodash");
describe("queryTable", () => {
it("queryTable with one and obj fields", function () {
assert.strictEqual((gql`${Utils.queryTable({
name: 'test', fields: {
... |
function _extends() {
module.exports = _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
... |
'use strict';
/* Controllers */
var timeclockControllers = angular.module('timeclockControllers', []);
timeclockControllers.controller('HomeCtrl2', ['$scope', 'Home',
function($scope, Home) {
}]);
timeclockControllers.controller('AboutCtrl2', ['$scope', 'Home',
function($scope, Home) {
$scope.date = new... |
module.exports = {"Strong-Regular.ttf":"AAEAAAARAQAABAAQTFRTSH/9DJUAAQsMAAABRE9TLzJoguiqAAABmAAAAGBWRE1Y8Z7buwABQYAAAAu6Y21hcIVolgQAAAb4AAADtmN2dCADlxX6AAAXKAAAAEZmcGdt8Rus2gAACrAAAAvEZ2FzcAAHAAcAAQsAAAAADGdseWa8iAleAAAXcAAA30BoZG14ikhpxAABDFAAADUwaGVhZPpaKhIAAAEcAAAANmhoZWEJAQXrAAABVAAAACRobXR4T5NAiwAAAfgAAAUAbG9jYW1B... |
import React from 'react';
import glamorous from 'glamorous';
import { WorkWrapper, WorkInfo } from './WorkWrapper';
const Image = glamorous.img({
width: '100%',
height: '100%',
display: 'block',
});
export const ImageWork = ({ src, overlay: { title, role } }) => (
<WorkWrapper>
<Image src={src} />
<... |
const Domain = require('url-domain-name');
module.exports = (url) => {
const domainName = Domain.from(url);
if (!domainName) {
throw new Error('Invalid URL');
}
return domainName.replace(/\./g, '-');
};
|
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webp... |
module.exports = {
root: true,
env: {
node: true,
},
extends: ['@lemonbot.fun/eslint-config-base'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.eslint.json',
},
};
|
module.exports = {
extends: [
'alloy',
'alloy/vue',
],
env: {
// 你的环境变量(包含多个预定义的全局变量)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// 你的全局变量(设置为 false 表示它不允许被重新赋值)
//
// myGlobal: false
},
rules: {
// 自... |
import React, { useContext } from 'react'
import { UserContext } from '../App'
import { useHistory } from 'react-router-dom'
const Listing = props => {
console.log(props)
const {push} = useHistory()
const {user} = useContext(UserContext)
// console.log(user)
const seller = props.userList.filter((p... |
import Ember from 'ember';
import layout from '../templates/components/char-count';
export default Ember.Component.extend({
layout,
classNames: ['char-count'],
classNameBindings: [
'showWarning:char-count--warning',
'showDanger:char-count--danger'
],
/**
@property string
@type String
*/
... |
!function e(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var i=n();for(var r in i)("object"==typeof exports?exports:t)[r]=i[r]}}("undefined"!=typeof self?self:this,function(){return function(e){function t(i){if(n[i])return n... |
'use strict';
const assert = require('assert');
const events = require('events');
const gState = {
queueSchema : {},
/**
* @type {Object.<string, MMQueue>}
*/
matchQueues : {},
/**
* all the tickets waiting for result
* @type {Object.<string, MMTicket>}
*/
allTickets : {}... |
var socket = io.connect('http://localhost:8888');
socket.on('error', function(data){
document.getElementById('message').innerHTML = data;
}) |
/**
* Vault API
* Allow clients to fetch Analytics through APIs.
*
* The version of the OpenAPI document: v3
* Contact: analytics.api.support@factset.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manual... |
var searchData=
[
['memelemp',['memElemP',['../SimulationControl_2processorModelSaveRestoreValidation_2harness_2harness_8c.html#ae38f3c4a857d44a45d3c073c7cac955a',1,'harness.c']]],
['memelemt',['memElemT',['../SimulationControl_2processorModelSaveRestoreValidation_2harness_2harness_8c.html#a8e43dee7b86512f43135c55a... |
// agent.spec.js modifies the process state
// causing these tests to fail when running under single process via mocha
delete require.cache[require.resolve("../index")];
delete require.cache[require.resolve("../request")];
const request = require("../index");
const { globalAgent } = require("http");
const assert = requ... |
import React, { useState, useEffect } from 'react';
import styled, { css, keyframes } from 'styled-components';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const Notification = ({ children, color, time = 2000 }) => {
const [showNotification, setShowNotification] = useState(true);
const [anima... |
import { Calendar, Badge } from 'uiw';
import Markdown from '@/components/Markdown';
export default class Page extends Markdown {
path = 'src/calendar/README.md';
dependencies = { Calendar, Badge };
async renderPage() {
const md = await import('../../../../packages/core/src/calendar/README.md');
return m... |
define(
[
'js/collections/Greetings',
'js/views/HelloView',
'backbone',
'jquery',
'underscore'
],
function ( Greetings,
HelloView,
Backbone, $, _
) {
var AppController = function ( container ) {
this.c... |
// @flow strict
/* eslint-disable no-console */
import m from 'mithril'
import { client } from 'Client'
import { scrollToBottom } from 'Lib/mithril'
import type { Vnode } from 'Flow'
async function oninit( v: Vnode ) {
await this.get( v )
}
function oncreate( v: Vnode ) {
scrollToBottom.call( v )
}
function on... |
const path = require('path')
const WindiCSS = require('vite-plugin-windicss').default
const deployConfig = require('../deploy.config')
module.exports = {
stories: [
'../src/**/*.stories.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)'
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essential... |
const config = require('config');
const mongoose = require('mongoose');
const path = require('path');
const createApp = require('./app').createApp;
const phonebookSchema = require('./models/phonebook');
const settingsConn = mongoose.createConnection(config.mongodb, {
useNewUrlParser: true,
});
const Phonebook = se... |
addServiceJs = {
_data:null,
init:function(){
var user;
if(!(user = viewJs.chkLogin())){
return;
}
this.initLabels();
var $p = $.mobile.activePage;
$p.find('.wx').hide();
//this.$file = $p.find('#take-pic');
$('#take-pic').remove();
this.$file = $('<input id="take-pic" type="file" accept="image/p... |
/* v5.3.0 */
"use strict";function hasClass(n,e){var t=n.className;return!!t&&t.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function addClass(n,e){hasClass(n,e)||(n.className+=" "+e)}function removeClass(n,e){var t;hasClass(n,e)&&(t=new RegExp("(\\s|^)"+e+"(\\s|$)"),n.className=n.className.replace(t," "))}function addEven... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
Text,
View,
} from 'react-native';
import GroupCheckBox from 'rn-group-checkbox';
const App = () => {
return (
... |
// common/mixins/active/days-terminals.js
const _ = require('lodash')
const START_OFFSET = 2
const END_OFFSET = 3
module.exports = function(Model) {
var starts = {}
var ends = {}
Model.epochStart = function(id, cb) {
//a date is active if its basedate is between:
//now - START_OFFSET
//now + END_OFFSET
... |
var FAIonicon = {'fa-circle-o': 'radio-button-off',
'fa-user': 'person',
'fa-map-marker': 'pin',
'fa-trophy': 'trophy',
'fa-headphones': 'headset',
'fa-code': 'code',
'fa-file-o': 'document',
'fa-gamepad': 'game-controller-a',
'fa-picture-o': 'image',
'fa-dollar': 'cash', //'logo-usd',
'fa-floppy-o': 'disc',
'fa-file-t... |
var RevSliderAdmin = new function(){
var t = this;
var g_postTypesWithCats = null;
/**
* init "slider" view functionality
*/
var initSaveSliderButton = function(ajaxAction){
jQuery("#button_save_slider").click(function(){
//collect data
var data = {
params: UniteSettings... |
"use strict";
module.exports = Sidenav;
var doc = window.document;
var html = doc.documentElement;
require("es6-promise").polyfill(); // Shim for browsers that does not support Promise natively.
function Sidenav(options) {
options = options || {};
this.extraClosePixels = options.extraClosePixels || 30;
this.... |
module.exports = {
testEnvironment: 'node',
coverageDirectory: 'coverage'
// coverageProvider: 'v8'
}
|
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'... |
import Toast from "./Toast";
const obj = {}
obj.install = function (Vue) {
//1.创建组件构造器
const toastContrustor = Vue.extend(Toast)
//2.new的方式,根据组件构造器,可以创建出来一个对象
const toast = new toastContrustor()
//3.将组件对象,手动挂载到某一个元素上
toast.$mount(document.createElement('div'))
//4.toast.$el对应的就是div
document.body.a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.