text stringlengths 2 1.04M |
|---|
const Discord = require('discord.js');
const osudroid = require('osu-droid');
const config = require('../../config.json');
const {Db} = require('mongodb');
function hasUnicode(str = "") {
return [...str].some(v => v.charCodeAt(0) > 127);
}
function processEmbed(res, page, footer, index) {
const embed = new Di... |
import request from '@/utils/request'
export function listConsumeLog(query) {
return request({
url: '/consumeLog/list',
method: 'get',
params: query
})
}
export function createConsumeLog(data) {
return request({
url: '/consumeLog/create',
method: 'post',
data
})
}
export function read... |
if (
/^https:\/\/git\.ludd\.ltu\.se/.test(window.location.href) &&
!/\?.*w=1/.test(window.location.href)
) {
var str = "";
if (/\?(.+=.*&)*$/.test(window.location.href)) {
str = "";
} else if (/\?(.+=.*&)*.+=.*[^&]$/.test(window.location.href)) {
str = "&";
} else {
str = "?";
}
window.loca... |
/**
* Organize colors into three distinct categories
*
* - Brand
* Brand meaning the unique colors identifying the brand itself
* - Greys
* Everything has base greys and whites
* - UI
* Colors that have no resonance with the brand itself, but have UI weight
*
*/
/* BRAN... |
import Blockly from "./_transfer_.js";
import goog from "./goog-lib.js";
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... |
/*!
* Start Bootstrap - Centro de Artes suzuki v1.0.4 (https://startbootstrap.com/theme/agency)
* Copyright 2013-2021 Start Bootstrap
* Licensed under MIT (https://github.com/StartBootstrap/centro-de-artes-suzuki/blob/master/LICENSE)
*/
//
// Scripts
//
window.addEventListener('DOMContentLoaded', event => {
// N... |
import React from "react"
import { ThemeProvider } from "@material-ui/styles"
import theme from "./theme"
export default Component => {
const hocComponent = ({ ...props }) => {
return (
<ThemeProvider theme={theme}>
<Component {...props} />
</ThemeProvider>
)
}
return hocComponent
} |
const path = require('path');
const PATHS = {
cdn: {
src: path.join(__dirname, '../src/cdn'),
public: path.join(__dirname, '../dist/cdn'),
},
demo: {
src: path.join(__dirname, '../demo'),
public: path.join(__dirname, '../public-demo'),
assets: 'assets/',
},
};
e... |
function review(review) {
return { __typename: "ResumeReview", id: review.job }
}
module.exports = {
review
} |
var queryUrl ="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson"
// Perform a GET request to the query URL
d3.json(queryUrl, function(data) {
// Once we get a response, send the data.features object to the createFeatures function
createFeatures(data.features);
});
//function to assign... |
const Component = require('react').Component
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const inherits = require('util').inherits
const connect = require('react-redux').connect
const actions = require('../../../store/actions')
const { getNetworkDisplayName } = require('../../../../..... |
import {
getConsumptionsSegmentsConfig,
getCirclesSegmentsConfig,
} from "../../../calculations/gas-network/utils";
async function handler(req, res) {
if (req.method !== "POST") {
res.status(405).json({
message: `Метод не підтримується сервером!`,
});
return;
}
const { body: clientData } =... |
/**
* Enricher which try to find which standard console level
* would most likely suit this lo call.
*/
// if node.js : use amdefine (add it with npm)
if (typeof define !== 'function') { var define = require('amdefine')(module); }
define([
'lodash'
],
function(_) {
'use strict';
var console_levels = ['log', 'd... |
'use strict'
async function redirectRoutes(server) {
server.route({
method: 'GET',
url: '/',
handler: async (_, reply) => {
reply.redirect('https://expo.dev/@nearform/optic-expo')
}
})
}
module.exports = redirectRoutes |
'use strict';
module.exports = (bot) => {
bot.on('message', (payload, chat, data) => {
const text = payload.message.text;
if (data.captured) { return; }
chat.say(`Echo: ${text}`);
});
}; |
let env = require('./env')
let { getPorts, checkPort } = require('./ports')
let maybeHydrate = require('./maybe-hydrate')
let readArc = require('./read-arc')
module.exports = {
env,
getPorts,
checkPort,
maybeHydrate,
readArc
} |
import { PasteTextPlugin } from '.';
import { Value, Document, Block, Text, Editor } from 'slate';
import {
document,
block,
text,
leaf,
createPasteHtmlEvent,
createPasteEvent
} from './../shared/PasteTestHelpers';
import { BLOCKS } from '@contentful/rich-text-types';
import { List } from 'immutable';
con... |
describe("sap.ui.layout.ResponsiveGridLayoutVisual", function() {
browser.testrunner.currentSuite.meta.controlName = 'sap.ui.layout.form.ResponsiveGridLayout';
var sFormId = "SF1";
var oForm = element(by.id(sFormId));
// edit mode
it("should show Form in edit mode", function () {
expect(takeScreenshot(oForm)).t... |
( function ( w, d ) {
'use strict';
w.chrome = ( ( typeof browser != 'undefined' ) && browser.runtime ) ? browser : chrome;
if ( chrome.runtime.lastError ) {
console.log( '* chrome.runtime.lastError.message:', chrome.runtime.lastError.message );
}
var SCRIPT_NAME = 'twMediaDownloader';
function get_bool( valu... |
import React, {useState} from 'react';
import PropTypes from 'prop-types';
import {View, TouchableOpacity, Text, Image, StyleSheet, Animated, I18nManager} from 'react-native';
import {useCalendar} from '../DatePicker';
const Header = ({changeMonth,reverse}) => {
const {
options,
disableDateChange,
state... |
import { mod } from "../math/mod.js";
import { eq } from "./eq.js";
export const isOdd = (num) => eq(mod(num, 2), 1); |
"use strict";
import socket from "../socket";
import store from "../store";
import {switchToChannel} from "../router";
socket.on("join", function (data) {
store.getters.initChannel(data.chan);
const network = store.getters.findNetwork(data.network);
if (!network) {
return;
}
network.channels.splice(data.ind... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
import manifest from './manifest.json';
import { baseUrl } from '../../../config';
import { getSectionErrorContext } from '../getSectionErrorContext';
const generateFundingSourceOptions = ({ question, fundingSource }) => {
const fundingMap = question.options.map((option) => ({
...option,
checked: option.valu... |
/**
* Copyright 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.
*
* @providesModu... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as tslib_1 from "tslib";
import { BehaviorSubject } from 'rxjs';
import { ActivatedRoute, RouterState } from... |
var Faker = require('../lib');
var faker = new Faker({ locale: 'en_IE', localeFallback: 'en' });
faker.locales['en_IE'] = require('../lib/locales/en_IE');
faker.locales['en'] = require('../lib/locales/en');
module['exports'] = faker; |
import React, { useEffect, useState } from 'react';
import _ from 'lodash';
import { useParams } from 'react-router-dom';
import { handleResponse } from '../../../utils/Utils';
import { Breadcrumb } from '../../../components/Breadcrumb/Breadcrumb';
import { Message } from '../../../components/Message/Message';
import... |
import axios from "axios";
import React from "react";
import { useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import {
Col,
Row,
Button,
Form,
FormGroup,
Label,
Input,
FormText,
Table,
} from "reactstrap";
import RecruiterNavbar from "./RecruiterNavbar";
const Edit... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = fact... |
angular.module('akjch')
.factory('stockFactory', ['$http', function($http){
var stockSvc = {
getStockList: function(){
var promise = $http({
url: '/dashboard/stocklist',
method:'GET'
}).then(function(response){
... |
//# sourceMappingURL=runtime~main.a4f02cce975f5a06641f.bundle.js.map |
export const UPDATE_DAILY_GOAL = "UPDATE_DAILY_GOAL",
UPDATE_SEX = "UPDATE_SEX",
UPDATE_ACTIVITY_LEVEL = "UPDATE_ACTIVITY_LEVEL",
UPDATE_BASIC_INFO = "UPDATE_BASIC_INFO",
UPDATE_WEIGHT_GOAL = "UPDATE_WEIGHT_GOAL";
export const updateDailyGoal = daily_goal => dispatch => {
dispatch({
type: UPDATE_DAILY_GO... |
'use strict';
var mongoose = require('mongoose');
var troop = require('mongoose-troop');
var MovieSchema = new mongoose.Schema({
title: {
type: String,
required: true,
unique: true
},
year: {
type: Number
}
});
MovieSchema.plugin(troop.slugify, {
override: true
});... |
export const STYLE_BREAKPOINT_UPDATE = 'STYLE_BREAKPOINT_UPDATE';
export const SVC_ADD_POINT = 'SVC_ADD_POINT';
export const SVC_LABEL_CHANGED = 'SVC_LABEL_CHANGED';
export const SVC_CLEAR_POINTS = 'SVC_CLEAR_POINTS';
export const SVC_UNDO_POINT = 'SVC_UNDO_POINT';
export const SVC_REDO_POINT = 'SVC_REDO_POINT';
export... |
import { Component } from 'preact';
export default class Sound extends Component {
play = () => {
this.audio.play();
}
handleRef = (audio) => {
this.audio = audio;
}
handlePlayProp = () => {
const { play } = this.props;
if (play) {
this.audio.play();
} else if (!this.audio.ended) {
this.audio.p... |
* EventEmitter v5.2.9 - git.io/ee
* Unlicense - http://unlicense.org/
* Oliver Caldwell - https://oli.me.uk/
* @preserve |
"use strict";
// Load plugins
const autoprefixer = require("gulp-autoprefixer");
const browsersync = require("browser-sync").create();
const cleanCSS = require("gulp-clean-css");
const del = require("del");
const gulp = require("gulp");
const header = require("gulp-header");
const merge = require("merge-stream");
cons... |
'use strict';
const chai = require('chai'),
Sequelize = require('../../../../index'),
expect = chai.expect,
Promise = Sequelize.Promise,
Support = require(__dirname + '/../../support');
describe(Support.getTestDialectTeaser('Model'), () => {
describe('scope', () => {
describe('associations', () => {
... |
import primeNumberOrNot from './primeNumberOrNot';
import * as is from '../stringConstants/stringConstants';
const sumOfPrimeBelow = (inputNum) => {
if (/[a-z]/i.test(inputNum)) {
return inputNum;
} else if (String(inputNum).length > 6) {
return is.TOO_LONG;
} else if (inputNum < 3) {
return '0';
}... |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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 a... |
import messageHandler from "baselayer/MessageHandler";
import * as API from "../API";
import store from "../store";
const FETCH_OBSERVING_RUNS = "skyportal/FETCH_OBSERVING_RUNS";
const FETCH_OBSERVING_RUNS_OK = "skyportal/FETCH_OBSERVING_RUNS_OK";
// eslint-disable-next-line import/prefer-default-export
export const... |
const qs = require('querystring');
const json = qs.parse('age=16&name=wang&content=hello');
console.log(json); |
const { ErroresGlobal, LimpiarErrores } = require('./Global')
var C3D = require('../../C3D')
//Enum de tipos
export const Tipo = {
"INTEGER" : 0,
"DECIMAL" : 1,
"STRING" : 2,
"NODO" : 3,
"BOOLEAN" : 4,
"ATRIB" : 5,
"ERROR" : 6,
"SIBLING" : 7
}
export function getTipoById(numero... |
$(function () {
'use strict'
var ticksStyle = {
fontColor: '#495057',
fontStyle: 'bold'
}
var mode = 'index'
var intersect = true
var project = $('#sales-chart').data('project');
var name = [];
var total_hour = [];
var confirm_hour = [];
var effective = [];
... |
module.exports = {
async createTemplate (message, stacktrace, level) {
let currentDate = new Date();
let cDay = currentDate.getDate();
let cMonth = currentDate.getMonth() + 1;
let cYear = currentDate.getFullYear();
const date = `${cDay}/${cMonth}/${cYear}`,
... |
$(window).load(function() {
// Animate loader off screen
//$(".se-pre-con").fadeOut("slow");
});
// $(document).keydown(function(e){
// if(e.keyCode==123){
// return false;
// }
// });
// $(document).on("contextmenu",function(e){
// e.preventDefault();
// });
$(document).ready(fun... |
function create_UUID(){
var dt = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (dt + Math.random()*16)%16 | 0;
dt = Math.floor(dt/16);
return (c=='x' ? r :(r&0x3|0x8)).toString(16);
});
return uuid;
}
export ... |
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "plugin:prettier/recommended"],
rules: {
"prettier/prettier": "error",
"no-console": "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
parserOptions: {
parser: "babel-es... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
import { Component, ElementRef, forwardRef } from '@angular/core';
import { base } from './base';
var ratingMetaData = /** @class */ (function ... |
import { ACCURACY } from './variables.js';
const checkRange = (value, maxValue, label) => {
if (isNaN(value) || 0 > value || value > maxValue)
throw new RangeError(value + ' for ' + label + ' is not between 0 and ' + maxValue);
};
export class HSBColor {
constructor(hue, saturation, brightness, alpha = 1) {
... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (v... |
// UI module to control the style
"use strict";
// select element to be edited
function editStyle(element, group) {
showOptions();
styleTab.click();
styleElementSelect.value = element;
if (group) styleGroupSelect.options.add(new Option(group, group, true, true));
selectStyleElement();
styleElementSelect.c... |
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
return res.status(200).json({"message": "dummy"});
});
module.exports = router; |
var class_lite_f_x_1_1_rendering_1_1_backends_1_1_direct_x12_descriptor_set_layout =
[
[ "DirectX12DescriptorSetLayoutImpl", "class_direct_x12_descriptor_set_layout_1_1_direct_x12_descriptor_set_layout_impl.html", "class_direct_x12_descriptor_set_layout_1_1_direct_x12_descriptor_set_layout_impl" ],
[ "DirectX12... |
import clsx from "clsx";
import React from "react";
import CircularProgress from "@mui/material/CircularProgress";
import Paper from "@mui/material/Paper";
import useStyles from "./styles";
function Loading({ size, withoutBackground }) {
const classes = useStyles();
return (
<Paper
elevation={0}
... |
/*! For license information please see 2.a835ef7b.chunk.js.LICENSE.txt */ |
import { component } from 'react';
export default function(Refer) {
return class DemoRefer extends component {
render() {
return <Refer {...this.props} url={'/demo-web/demo/bankRef/bankdata'} />;
}
};
} |
$(function () {
//Initialize Select2 Elements
$('.select2').select2({
theme: 'bootstrap4'
});
$("#selectjobs").change(function () {
const conceptName = jQuery(
'#selectjobs :selected').val();
// console.log(conceptName);
if (conceptName == 'ทันตแพทย์') {
... |
//# sourceMappingURL=squarespace-icon.d.js.map |
describe('Regexp API:', function () {
describe('#isEmail()', function () {
it('webtools.isEmail("leiquanlive.com") should return false ', function () {
assert.notEqual(webtools.isEmail("leiquanlive.com"))
});
it('webtools.isEmail("leiquan@live.com") should return true ', functio... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var interfaces_1 = require("./interfaces");
var utils_1 = require("./utils");
var dab_1 = require("./dab");
function sendAction(action, newCtx) {
var current = this.getState(this.stateName), actionName = interfaces_1.ActionType[action], fn... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
TouchableOpacity,
ListView,
Dimensions,
LayoutAnimation
} from 'react-native';
import Image from 'react-native-image-progress';
import Progress from 'react-native-progress';
export def... |
import { Pool } from 'pg';
import dbConfig from './config';
const pool = (process.env.NODE_ENV === 'test') ? new Pool(dbConfig.test) : new Pool(dbConfig.database);
export default pool; |
import React from "react";
import ButtonPair from "./../../Element/ButtonPair";
import Input from "../../Form/Input";
import "./../../../main.sass";
import Black from "../../../assets/img/blackColor.svg";
import Blue from "../../../assets/img/blueColor.svg";
import Lightblue from "../../../assets/img/lightblueColor.svg... |
const $ = require('./zepto_custom');
class util {
constructor(){
this._el_no_href = '.js-no-href';
}
block_links(){
$(this._el_no_href).click(function(){return false});
}
init(){
this.block_links();
}
}
export default util; |
const {Kind} = require('graphql/language');
const identity = e => e;
const parseObject = ast => {
if (ast.kind === Kind.OBJECT) {
const obj = {};
ast.fields.forEach(field => {
obj[field.name.value] = parseObject(field.value);
});
return obj;
}
return undefined;
};
module.exports = {
... |
exports.CreateTriageTeamModal = (existingTeamData = null) => ({
'callback_id': 'setup_triage_workflow_view',
'private_metadata': JSON.stringify(existingTeamData),
'title': {
'type': 'plain_text',
'text': existingTeamData ? 'Modify team setup' : 'Setup new team',
'emoji': true,
},
'submit': {
'... |
import path from "path"
import { defineConfig } from "vite"
import { createVuePlugin as Vue2 } from "vite-plugin-vue2"
import ScriptSetup from 'unplugin-vue2-script-setup/vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from "unplugin-vue-components/vite"
import Icons from 'unplugin-icons/vite... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... |
/**
* Hydrogen Nucleus API
* The Hydrogen Nucleus API
*
* OpenAPI spec version: 1.9.5
* Contact: info@hydrogenplatform.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3
*
* Do not edit the... |
import React from 'react'
import Layout from '../components/layout'
const ContactPage = () => {
return(
<Layout>
<h1>ContactPage</h1>
<h4>feel free to call us</h4>
<p>Number will be avaliable soon</p>
<p>My Work <a href="https://github.com/qfaizan401">View My... |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "pdf-reader";
const pathData = "M486.5 154c15 0 25 10 25 25 0 16-10 26-25 26h-77v25h51c15 0 26 11 26 26s-11 25-26 25h-51v52c0 15-10 25-26 25-15 0-25-10-25-25V179c0-15 10-25 25-25h103zm-409 0c43 ... |
/*
* @lc app=leetcode id=250 lang=javascript
*
* [250] Count Univalue Subtrees
*/
// @lc code=start
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undef... |
const express = require('express');
const router = express.Router();
const user = require('../controllers/user');
router.get('/', user.getAllUser);
router.post('/signup', user.registerUser);
router.post('/login', user.loginUser);
router.post('/forgot-password', user.forgotPassword);
module.exports = router; |
// Compiled by ClojureScript 1.10.520 {}
goog.provide('figwheel.main.css_reload');
goog.require('cljs.core');
goog.require('clojure.string');
goog.require('goog.Uri');
goog.require('goog.log');
goog.require('goog.object');
goog.require('goog.cssom');
goog.require('goog.events');
goog.require('goog.Promise');
goog.requi... |
var express = require('express');
var path = require('path');
var app = express();
app.use(express.static(path.join(__dirname, 'public')));
app.listen(8000); |
#!/usr/bin/env node
'use strict'
const AWSCouchWatch = require('.')
const { version } = require('./package.json')
function scanWith (watcher) {
return watcher.scan().then(function (metrics) {
console.log('%i metrics received.', metrics.length)
return watcher.upload(metrics)
}).catch(function (error) {
... |
var ProceduralGeneration = ProceduralGeneration || {};
//Constructor RoomState
ProceduralGeneration.RoomState = function () {
"use strict";
Phaser.State.call(this); //Llamada al constructor padre
//Keys para la creación de tilset y tilemap
this.MAP_KEY = "room_tilemap";
this.MAP_TILESET = "dungeon... |
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 672854;
var summary =
"Syntax errors at the end of |for| statement header parts shouldn't cause " +
"crashe... |
/**
* A module to define the main stage UI.
*
* @module ui/stage
*/
define(['config/config', 'config/strings', 'misc/point'], function (config, strings, Point) {
/**
* Creates the main stage UI. It nust be extended by the other game UIs.
*
* @constructor
* @alias module:ui/stage
* @par... |
var searchData=
[
['types_2eh_75',['types.h',['../d9/d49/types_8h.html',1,'']]]
]; |
const app = getApp();
Page({
data: {
data_list_loding_status: 1,
data_list_loding_msg: '',
params: null,
detail: null,
editor_path_type: '',
rating_msg: ['非常差', '差', '一般', '好', '非常好'],
anonymous_value: 0,
anonymous_msg_list: ['你写的评论会以匿名的形式展现', '你写的评论会以昵称的形式展现'],
form_rating_list:... |
// It does not try to register in a CommonJS environment since jQuery is not
// likely to run in those environments.
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'grid-list'], factory);
} else {
factory(jQuery, GridLis... |
/*
* phi
*/
/*
* 定数
*/
var SCREEN_WIDTH = 640;
var SCREEN_HEIGHT = 640;
var CENTER_X = SCREEN_WIDTH /2;
var CENTER_Y = SCREEN_HEIGHT/2;
var AXIS_LENGTH = 300;
var UNIT_CIRCLE_RADIUS = 200;
var UNIT_CIRCLE_IMAGE = null;
/*
* main 処理
*/
tm.preload(function() {
va... |
// source: https://github.com/OpenSlides/OpenSlides/blob/f4f8b8422f9b3fbab58e35ac3f8f870d35813b7d/client/src/app/core/ui-services/html-to-pdf.service.ts
// and https://github.com/bpampuch/pdfmake/issues/205
/**
To use it:
import htmlToPdfMake from 'html-to-pdfmake.js'
htmlToPdfMake('<b>my bold text</b>');
*/
/*... |
alert("Hello World !"); |
var _validFileExtensions = [".jpg", ".jpeg", ".png"];
function PreviewImageCover() {
var oFReader = new FileReader();
oFReader.readAsDataURL(document.getElementById("cover").files[0]);
oFReader.onload = function (oFREvent)
{
document.getElementById("uploadPreviewCover").src = oFREvent.target.res... |
const City = require('../models/City');
const Itinerary = require('../models/Itinerary');
class CitiesService {
async getCities() {
try {
const cities = await City.find();
return cities || [];
} catch (err) {
return err;
}
}
async getCity(CityId) {
try {
const city = await... |
const express = require("express");
const vimeoRouter = express.Router();
const Vimeo = require("vimeo").Vimeo;
const { parse } = require("url");
// Load environment variables from .env
require("dotenv").load();
// VIMEO
const { VIMEO_ID, VIMEO_SECRET, VIMEO_TOKEN } = process.env;
const clientV = new Vimeo(VIMEO_ID, VI... |
/* eslint-disable no-mixed-spaces-and-tabs */
import request from '@/utils/request'
import requestImg from '@/utils/requestImg'
// import qs from 'qs'
// 请求列表
export function fetchList(data) {
return request({
url: '/management/memberUserList/list',
method: 'post',
data
})
}
// 请求未分页分类 // bannerPositi... |
// @flow
import * as React from 'react';
import { act } from 'react-dom/test-utils';
import debounce from 'lodash/debounce';
import throttle from 'lodash/throttle';
import { AutoSizer } from 'react-virtualized';
import { mountConnected } from '../../../../../test-utils/enzyme';
import MessageCenterModal from '../Mess... |
// @flow
import chunkBy from '../chunkBy';
import {fromJS} from 'immutable';
test(`chunkBy() on object should start a new chunk each time predicate returns true`, () => {
let chunked = chunkBy((value) => value === 1)({a:3,b:2,c:1,d:3,e:1,f:1,g:10});
expect(chunked).toEqual([
{a:3,b:2},
{c:1,d:3... |
var group___a_d_c__regular__external__trigger__edge =
[
[ "ADC_EXTERNALTRIGCONVEDGE_FALLING", "group___a_d_c__regular__external__trigger__edge.html#ga15975c01b6a514f346272a1373239c54", null ],
[ "ADC_EXTERNALTRIGCONVEDGE_NONE", "group___a_d_c__regular__external__trigger__edge.html#gab2e3a19c05441925f9b9a4822389... |
/*! For license information please see 4.b30c3251.chunk.js.LICENSE.txt */
//# sourceMappingURL=4.b30c3251.chunk.js.map |
const messages = {
locale: 'en-NZ',
labels: {
addressGroup: 'Address',
deliveryOrderMethod: 'Delivery time',
collectionOrderMethod: 'Pick-up time',
dineinOrderMethod: 'Dine in time'
},
formFields: {
dineIn: {
tableIdentifier: {
label:... |
/**
* dynCustom 指令,对应 HTML 中的 dyn-custom 标签
* 该指令作为
* HTML时用属性(A)和元素(E)声明格式来匹配指令定义
*
* @method dynCustom
* @param 无
* @return 指令
*/
app.directive("dynCustom", function($compile, $rootScope, widgetService){
return({
transclude: true,
priority: 1000,
restrict: "AE",
compile: function(element, attributes)... |
import React from 'react';
import PropTypes from 'prop-types';
const ProfileTop = ({
profile: {
status,
company,
location,
website,
social,
user: { name, avatar }
}
}) => {
return (
<div className='profile-top bg-primary p-2'>
<img className='round-img my-1' src={avatar} alt='' ... |
const { Schema, model } = require('mongoose');
const uuid = require('uuid');
const Joi = require('joi');
Joi.objectId = require('joi-objectid')(Joi);
const pageComponentSchema = new Schema({
_id: { type: String, min: 36, max: 36, default: uuid.v4 },
treeNodeLabel: { type: String, max: 255 },
attributes: { type: ... |
import styled from "styled-components"
import media from 'styled-media-query'
import AniLink from "gatsby-plugin-transition-link/AniLink"
export const ProfileWrapper = styled.section`
color: var(--texts);
display: flex;
flex-direction: column;
${media.lessThan('large')`
flex-direction: row;
`}
`
export... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.