text stringlengths 2 1.05M |
|---|
// get all workout data from back-end
fetch("/api/workouts/range")
.then(response => {
return response.json();
})
.then(data => {
populateChart(data);
});
API.getWorkoutsInRange()
function generatePalette() {
const arr = [
"#003f5c",
"#2f4b7c",
"#665191",
"#a05195",
"#d45087",
... |
import React from 'react';
import styles from './Button.module.css';
const Button = (props) => (
<button
className={[styles.Button, styles[props.btnType]].join(' ')}
onClick={props.clicked}
>
{props.children}
</button>
);
export default Button;
|
Bridge.assembly("TestProject", function ($asm, globals) {
"use strict";
var $m = Bridge.setMetadata,
$n = [System,Test.BridgeIssues.N1092,Test.BridgeIssues.N772,TestProject2,TestProject1];
$m($n[1].App, function () { return {"att":1048577,"a":2,"m":[{"a":2,"isSynthetic":true,"n":".ctor","t":1,"sn"... |
// import SimpleInput from "./components/SimpleInput";
import BasicForm from "./components/BasicForm";
function App() {
return (
<div className="app">
<BasicForm />
</div>
);
}
export default App;
|
var defaultFileStore = require('./default');
var StoreLocal = function (options) {
this.cwd = options.cwd || process.cwd();
};
StoreLocal.prototype = defaultFileStore.create();
module.exports = StoreLocal; |
import styled from 'styled-components';
const Page = styled.main`
max-width: ${(props) => props.theme.maxWidth};
margin: 0 auto;
`;
export default Page;
|
import { v4 as uuidv4 } from "uuid"
export const data = {
people: [
{
id: uuidv4(),
name: "Aman Khan",
img: "https://avatars2.githubusercontent.com/u/60522829",
links: {
website: "https://www.reverbnation.com/amankhan7",
linkedin: "https://www.linkedin.com/in/amkhan25/",
... |
!function(){function e(e){var t=n;e&&(n[e]||(n[e]={}),t=n[e]),t.define&&t.define.packaged||(r.original=t.define,t.define=r,t.define.packaged=!0),t.require&&t.require.packaged||(l.original=t.require,t.require=l,t.require.packaged=!0)}var t="ace",n=function(){return this}();if(n||"undefined"==typeof window||(n=window),t|... |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
var util = require('util');
var assert = require('assert');
var defineClass = require('library/class/defineClass.js');
var Class = require('library/class/Class.js');
var Lockable = require('library/thread').Lockable;
/**
A Wrapper Class implementing HashSet
REFERENCE http://docs.oracle.com/javase/7/docs/api/java/uti... |
var array = [];
var i, lat, lng, n, latlng, map, centroMapa;
centroMapa = L.latLng(-26.83051, -65.20382);
zoomMapa = 13;
map = L.map('map', {
center: centroMapa,
zoom: zoomMapa
});
L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
id: 'examples.map-i875mjb7'
}).addTo(map);
/*latlng ... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add('radio',function(a){return{title:a.lang.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){var c=this;delete c.radioButton;var... |
import {
TextField,
NumberField,
SimpleShowLayout,
Show,
Button,
} from 'react-admin';
import { useParams } from 'react-router-dom';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
import { useState } from 'react';
import React from 'react';
import Table from '@material-ui/core/Table';
import TableB... |
"use strict";
if (process.env.NODE_ENV === "production") {
module.exports = require("./index.cjs.production.min.js.js");
} else {
module.exports = require("./index.cjs.development.js.js");
}
|
// import container from './container';
import { combineReducers } from 'redux';
// import sagas from './sagas';
// import reducer from './reducer';
export const reducer = combineReducers({
});
export const sagas = [
];
// export default container;
export {
};
|
function DrawChart(canvasID, remoteFields, remoteData, remoteColors, remoteBorderColors) {
var ctx = document.getElementById(canvasID).getContext('2d');
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: remoteFields,
datasets: [{
data: remoteData,
backgroundColor: remoteColors,
b... |
/**
* @ngdoc module
* @name material.components.divider
* @description Divider module!
*/
angular.module('material.components.divider', [
'material.core'
])
.directive('mdDivider', MdDividerDirective);
/**
* @ngdoc directive
* @name mdDivider
* @module material.components.divider
* @restrict E
*
* @de... |
import '@storybook/addon-console';
import { configure, addDecorator } from '@storybook/react';
import { withPropsTable } from 'storybook-addon-react-docgen';
import { withKnobs } from '@storybook/addon-knobs';
addDecorator(withPropsTable);
addDecorator(withKnobs);
function loadStories() {
require('../stories'); // ... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><g><path d="M20.5 6c-2.61.7-5.67 1-8.5 1s-5.89-.3-8.5-1L3 8c1.86.5 4 .83 6 1v13h2v-6h2v6h2V9c2-.17 4.14-.5 6-1l-.5-2zM12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z" /></g></React.Fragment>
,... |
import $ from '../../core/renderer';
import { extend } from '../../core/utils/extend';
import eventsEngine from '../../events/core/events_engine';
import { addNamespace } from '../../events/utils/index';
import { name as clickEventName } from '../../events/click';
import { getImageContainer } from '../../core/utils/ico... |
const HuddlyDeviceApiIp = require('@huddly/device-api-ip').default;
const HuddlyDeviceApiIUsb = require('@huddly/device-api-usb').default;
const HuddlySdk = require('@huddly/sdk').default;
const { HUDDLY_L1_PID } = require('@huddly/sdk/lib/src/components/device/factory').default;
const ipApi = new HuddlyDeviceApiIp();... |
import predefinedPropTypes from '../../constants/prop-types/body'
import PropTypes from 'prop-types'
import React, { PureComponent } from 'react'
import SeparationCurve from '../separation-curve'
import styled from 'styled-components'
import styles from '../../constants/css'
import themeConst from '../../constants/them... |
import fs from 'fs';
import dotty from 'dotty';
import i18n from 'koa-i18n';
import locale from 'koa-locale';
const SUPPORTED_LOCALES = ['en'];
export function initI18nMiddleware(server) {
locale(server.app);
let directory = './translations';
const preferredDir = `./${server.config.project}-translations`;
if... |
hqDefine("domain/js/internal_settings", [
'jquery',
'knockout',
'underscore',
'hqwebapp/js/initial_page_data',
'hqwebapp/js/multiselect_utils',
'jquery-ui/ui/widgets/datepicker',
], function (
$,
ko,
_,
initialPageData,
multiselectUtils
) {
var areas = initialPageData.get... |
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 32,
height: 32,
},
content: [
{
elem: 'path',
attrs: { d: 'M19 24h4v4h-4zm7 0h4v4h-4zm-7-7h4v4h-4zm7 0h4v4h-4z' },
},
{
elem: 'path',
attrs: {
d:
... |
'use strict';
const EngineAddon = require('ember-engines/lib/engine-addon');
module.exports = EngineAddon.extend({
name: 'external-admin',
lazyLoading: true
});
|
define(
({
doNew: "[ny]",
edit: "[redigér]",
save: "[gem]",
cancel: "[annullér]"
})
);
|
const xmlHttpRequests = {
"/links/go" : (_response) => {
return _response.url;
}
};
XMLHttpRequest.prototype.openOriginal = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(_method, _url, _async, _user, _password) {
let xmlHttpRequest = xmlHttpRequests[_url];
if (xmlHttpR... |
/**
* @license Copyright 2018 The Lighthouse 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 required by applica... |
import React from 'react';
import { Link } from 'react-router';
import './Contact.scss';
const Contact = ({contact, authReducer}) => {
const detailUrl = authReducer.user.model_meta && (contact.ct === authReducer.user.model_meta.lead) ? '/detail-lead/' : '/detail-contact/';
return (
<div className="ri... |
export default "M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z" |
import charsEndIndex from './_charsEndIndex';
import charsStartIndex from './_charsStartIndex';
import stringToArray from './_stringToArray';
import toString from './toString';
/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;
/**
* Removes leading and trailing whitespace or specified ... |
/*
* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* * in FIPS 180-1
* * Version 2.2 Copyright Paul Johnston 2000 - 2009.
* * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* * Distributed under the BSD License
* * See http://pajhome.org.uk/crypt... |
var requirejs,require,define;!function(global){function isFunction(a){return"[object Function]"===ostring.call(a)}function isArray(a){return"[object Array]"===ostring.call(a)}function each(a,b){if(a){var c;for(c=0;c<a.length&&(!a[c]||!b(a[c],c,a));c+=1);}}function eachReverse(a,b){if(a){var c;for(c=a.length-1;c>-1&&(!a... |
'use strict';
const test = require('tap').test;
const objoin = require('../index.js');
const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const rint = (l, u) => Math.random() * (u - l) + l;
test('objoin retrieves and adds record to each item in collection', async(t) => {
const posts = [
{ au... |
'use strict';
/**
*
*App level module with it's dependencies
*
*/
angular.module('app', [
'ui.router',
'ui.bootstrap'
]); |
// S E C T I O N 3 : ES Modules
//Example 1
import {
message
} from './message.js'
const h1 = document.createElement('h1');
h1.textContent = message
document.body.appendChild(h1)
//Example 2
import {
message,
setMessage
} from './greeting.js';
console.log(message); // 'Hi'
setMessage('Hello');
console.l... |
const express = require('express');
const app = express();
const dotenv = require('dotenv');
const mongoose = require('mongoose');
//import routes
const authRoute = require('./routes/auth');
const sampleRoute = require('./routes/sample');
dotenv.config();
//Connect to DB
mongoose.connect(process.env.DB_Connect,
{ useN... |
var webpack = require('webpack')
var BundleTracker = require('webpack-bundle-tracker')
var config = require('./webpack.base.config.js')
staticDevConfig = config('production')
staticDevConfig.output.path = require('path').resolve('./assets/dist')
staticDevConfig.plugins = staticDevConfig.plugins.concat([
new Bun... |
define({
"_widgetLabel": "מערכת קואורדינטות",
"hintMessage": "הקש במפה לקבלת קואורדינטות.",
"defaultLabel": "ברירת מחדל",
"realtimeLabel": "הזז את העכבר כדי לקבל קואורדינטות",
"computing": "מחשב...",
"latitudeLabel": "קו רוחב",
"longitudeLabel": "קו אורך",
"loading": "טוען...",
"enableClick":... |
const { displayViewPlugin } = require('./view-package');
module.exports = function pluginViewCommand(pluginCommand) {
pluginCommand
.command('view <package>')
.description('view package and check plugin detail')
.option('--registry <url>', 'override configuration registry')
.action(... |
// This is the service worker with the Cache-first network
const CACHE = "pwabuilder-precache";
const precacheFiles = [
'./sounds/1up.mp3',
'./sounds/3.mp3',
'./sounds/06h30.mp3',
'./sounds/7thelement.mp3',
'./sounds/20thcenturyfoxalaflute.mp3',
'./sounds/56k.mp3',
'./sounds/011899988199911... |
'use strict';
/*
Copyright 2019 AnyMoe
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 applicable law or agreed to in writing, so... |
const cytoscape = require('cytoscape');
const sbgnStyleSheet = require('cytoscape-sbgn-stylesheet');
const { MATCHED_SEARCH_CLASS } = require('./actions');
module.exports = sbgnStyleSheet(cytoscape)
.selector('node')
.css({
'background-opacity': '0.4'
})
.selector('node:active')
.css({
'background-opacity': '0.7'... |
%include binpac.pac
%include zeek.pac
%extern{
#include "analyzer/protocol/dce-rpc/consts.bif.h"
#include "analyzer/protocol/dce-rpc/types.bif.h"
#include "analyzer/protocol/dce-rpc/events.bif.h"
%}
analyzer DCE_RPC withcontext {
connection : DCE_RPC_Conn;
flow : DCE_RPC_Flow;
};
connection DCE_RPC_Conn(zeek... |
const jwt = require('jsonwebtoken');
const defaultconfig = {
secret: 'abcdefghijklmnopqrstuvwxyz0123456789',
};
function PluginJWT(config={}) {
PluginJWT.config = {
...defaultconfig,
...config,
};
return build;
}
PluginJWT.getConfig = function getConfig(name) {
return !!name ? PluginJWT.config[nam... |
$(function(){
$('.subnav').css('height',$(window).height() ); //侧边栏高度
$('.wrap02 > .content').css('width',$(window).width()-265);//内容块宽度
$('.login').css('height',$(window).height());//登录高度
$(window).resize(function(){
$('.subnav').css('height',$(window).height()-43); //侧边栏高度
$('.wrap02 > .content').css('... |
/**
* Developer: Stanislav Guryev
* Date: 02.02.2017
* Copyright: 2009-2017 Comindware®
* All Rights Reserved
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Comindware
* The copyright notice above does not evidence any
* actual or intended publication of such source code.
*/
import Codem... |
export {default} from "./InformeContrataciones"; |
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _LocalDatastoreUtils = require("./LocalDatastoreUtils");
var _Storage = _interopRequireDefault(require("./Storage"));
function _createForOfItera... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return undefined; };
var argument2 = function() {
callbackArguments.push(arguments)
return "ÿ\u0019\u0019"; };
var argument3 = {"82":"xJF","705":8.902180178961623e+307,")":"`","1.3406512289226387e+308":1.21244855108... |
import { createStore } from 'redux';
const INITIAL_STATE = {
data: [
'React Native',
'ReactJS',
'NodeJS',
],
};
function courses(state = INITIAL_STATE, action) {
switch(action.type) {
case 'ADD_COURSE':
return { ...state, data: [ ...state.data, action.title] };
... |
"use strict";
const BloggifyPage = require("../lib");
const home = new BloggifyPage({
title: "Home"
, content: "Hey there!"
, metadata: {
customField: "Hello Mars!"
}
});
console.log(home);
// BloggifyPage {
// title: 'Home',
// slug: 'Home',
// url: '/Home',
// content: 'Hey there!',
//... |
// ==UserScript==
// @name Template - Favicon
// @version 1.0
// @description Add a favicon to "the website's name"
// @icon "Type a URL that is the website's icon"
// @include "Type the website's URL that needs a favicon"
// @author MrBukLau
// @gran... |
import PropTypes from "prop-types";
const Link = ({
icon = "external link",
tags = [],
type = "dashboards",
...props
}) => <link icon={icon} tags={tags} type={type} {...props} />;
Link.PropTypes = {
icon: PropTypes.string,
tags: PropTypes.arrayOf(PropTypes.string),
type: PropTypes.string,
};
export def... |
class RoleRemoteRepairer {
constructor() {
this.name = 'RemoteRepairer'
this.priority = 7
this.prespawn = 50
}
getName() {
return this.name
}
getPriority() {
return this.priority
}
getPrespawn() {
return this.prespawn
}
work(remoteRepai... |
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import UserForm from '../UserForm';
afterEach(cleanup);
describe('UserForm', () => {
it('should match snapshot', () => {
const { asFragment } = render(<UserForm />);
expect(asFragment).toMatchSnapshot();
});
});
|
// Fork of https://github.com/mapbox/wellknown under ISC license (MIT/BSD-2-clause equivalent)
import test from 'tape-promise/tape';
import parseWKT from '../../src/lib/parse-wkt';
import fuzzer from 'fuzzer';
test('parseWKT#fuzz', (t) => {
fuzzer.seed(0);
const inputs = [
'MULTIPOLYGON (((30 20, 10 40, 45 40... |
import styled from '@emotion/styled';
export const CountryContainer = styled.div`
width: 80%;
height: 200px;
margin: 20px auto 0;
display: flex;
justify-content: space-between;
align-items: center;
`
export const CountryImage = styled.img`
width: 50%;
height: 200px;
background-image: url(${p => p.im... |
window.globalProvideData('slide', '{"title":"Logging Out","trackViews":true,"showMenuResultIcon":false,"viewGroupId":"","historyGroupId":"","videoZoom":"","scrolling":false,"transition":"appear","transDuration":0,"transDir":1,"wipeTrans":false,"slideLock":false,"navIndex":-1,"globalAudioId":"","thumbnailid":"","present... |
function consultaCep() {
var cep = document.getElementById("cep").value;
var url = "https://viacep.com.br/ws/" + cep + "/json/";
console.log(url)
$.ajax({
url: url,
type: "GET",
success: function(response){
console.log(response);
document.getElementById... |
'use strict';
const letter = ['a', 'b', 'c', 'd', 'a', 'e', 'f', 'c', 'b'];
function removeDuplicates(array){
for( let element of array){
let run=(array.indexOf(element)+1);
for(run; run<array.length; run++){
if(array[run]==element){
array.splice(run, 1);
... |
/**
* Created by yangyanfei on 15/11/2016.
*/
//閻熸瑱绲鹃悗绲瑀l闁汇劌鍩妔
var cutStr = function(str, len) {
if(str==null)return null;
var str_length = 0;
var str_len = 0;
var str_cut = new String();
str_len = str.length;
var emoji=false;
var aa=str.match(/\ud83c[\udf00-\udfff]|\ud83d[\udc00-\ude4... |
/**
* @fileoverview Prefer Heading: Prevent heading tags (h1 ... h6), use Gestalt Heading, instead
*/
// @flow strict
import {
hasAttributes,
hasImport,
hasUnsupportedAttributes,
hasSpreadAttributes,
isTag,
getHtmlTag,
} from './helpers/eslintASTHelpers.js';
import {
renameTagFixer,
renameTagWithProp... |
/**
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* 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/LIC... |
define ("block_mynotes/mynotesblock",["jquery","core/yui","core/str","core/config","core/notification"],function(c,a,b){var d,e={DELETE_ICON:"<span class=\"delete\">❌</span>"},f={MYNOTES_BASE:"#mynotes_base",MYNOTES_OPENER:".mynotes-opener",MYNOTES_LISTS:".mynotes_list"},g={MYNOTES_BASE:"mynotes_base",MYNOTES_OP... |
import React, {Fragment, useEffect, useRef, useState} from 'react';
import CellTemplate from '../../../template/CellTemplate';
import {getColorByLabel, isAllow, limitString} from '../../../common/globalMethods';
import AddCell from '../../molecules/addCell/AddCell';
import RemoveCell from '../../molecules/removeCell/Re... |
System.register(["cc"], function (_export, _context) {
"use strict";
var _cclegacy, _dec, _dec2, _class, _class2, _descriptor, _descriptor2, _temp, _crd, ccclass, property, CloseToBorderComponent;
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.define... |
const path = require("path");
const baseConfig = {
mode: "production",
performance: {
hints: false
},
stats: {
modules: false,
children: false,
chunks: false,
chunkModules: false
},
resolve: {
extensions: [".ts", ".js"],
alias: {
"@lin-media": path.join(__dirname, "../pack... |
var shell = require("shelljs");
var config = require("../config/paths.js");
var marked = require('marked');
var TerminalRenderer = require('marked-terminal');
module.exports = (function () {
return {
execute: function (branch) {
// Checkout the new branch
shell.cd(`${config.WORKSHOP_HOME}/current`);
... |
const CliTable = require('cli-table')
function $(id) {
return document.getElementById(id);
}
var EPSILON = '\'\'';
var alphabet;
var nonterminals;
var terminals;
var rules;
var firsts;
var follows;
var ruleTable;
function createLl1Table(txt) {
rules = txt.split('\n');
alphabet = [];
nonterminals = [];
termina... |
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
import { Log } from "./Log.js";
import { CheckSessionIFrame } from "./CheckSessionIFrame.js";
import { Global } from "./Global.js";
export cla... |
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
*/
"use strict";var l={"STP":["STP","Sao Tom\u00E9-et-Principe"],"SDN":["SDN","Soudan"],"GMB":["GMB","Gambie"],"CMR":["CMR","Cameroun"],"GNB":["GNB",... |
var convert = require('./convert'),
func = convert('unionWith', require('../unionWith'));
func.placeholder = require('./placeholder');
module.exports = func; |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* @module engine/view/documentfragment
*/
import Text from './text';
import TextProxy from './textproxy';
import mix from '@ckeditor/ckeditor5-utils/src/mix';
import isIterable from ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
module.exports = {
'extends': 'eslint:recommended',
'env': {
'node': true,
'browser': false,
'es6': true
},
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module'
},
'rules': {
'linebreak-style':2,
'comma-dangle': ['error', 'only-mu... |
//模块的配置
require.config({
paths: {
'jquery': 'https://cdn.bootcdn.net/ajax/libs/jquery/3.3.1/jquery.min',
'jcookie': 'https://cdn.bootcdn.net/ajax/libs/jquery-cookie/1.0/jquery.cookie.min',
'jlazyload': 'https://cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.8.3/jquery.lazyload.min',
},
... |
// This is the main.js file. Import global CSS and scripts here.
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
import DefaultLayout from '~/layouts/Default.vue'
import '~/assets/scss/globals.scss'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { config, library } f... |
export default {
methods: {
onChangeLocale(command) {
this.$i18n.locale = command
}
}
}
|
define({
"_widgetLabel": "Tietojen yhteenveto",
"title": "InfoSummary-pienoisohjelma",
"helpText": "InfoSummary-ohjeteksti"
}); |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, fillIn, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | login-form', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async fun... |
import { useState, useEffect } from 'react';
import { Badge } from 'reactstrap';
import { Chart } from 'react-google-charts';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
import { faCalendar, faUser, faLink } from '@fortawesome/free-solid-svg-icons';
import SelfVisDataModel from 'libs/selfV... |
/**
* Changing fixtures won't reload worker
*/
'use strict';
module.exports = {
test: 'js',
};
|
/*
Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
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 applicable law or agreed ... |
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const DotEnvWebpackPlugin = require('dotenv-webpack');
const path = require('path');
const srcPath = path.resolve(__dirname, 'src');
const distPath = path.resolve(__dirname, 'dist');
module.exports = {
context: __dirname,
resolve: {
... |
$(document).ready(function () {
$(".items").click(function () {
var curentlist = $(this).parent().attr('id');
if (curentlist == "liste1")
$(this).detach().appendTo($("#liste2"));
if (curentlist == "liste2")
$(this).detach().appendTo($("#liste1"));
});
});
|
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var uglifycss = require('gulp-uglifycss');
var rename = require('gulp-rename');
gulp.task('dist', function() {
gulp.src('src/*.js')
.pipe(uglify())
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('dist'))
});
gulp.task('default',... |
const User = `
type User {
id: ID!
username: String
email: String
password: String
notes: [Note]
}
`;
export default User;
|
/*
Massively by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
(function($) {
var $window = $(window),
$body = $('body'),
$wrapper = $('#wrapper'),
$header = $('#header'),
$nav = $('#nav'),
$main = $('#main'),
$navPan... |
var group___p_b_a___c_o_n_f_i_g =
[
[ "BSP-Konfiguration", "group___b_s_p-_k_o_n_f_i_g_u_r_a_t_i_o_n.html", "group___b_s_p-_k_o_n_f_i_g_u_r_a_t_i_o_n" ],
[ "Taktkonfiguration für Delay", "group___d_e_f___d_e_l_a_y.html", "group___d_e_f___d_e_l_a_y" ],
[ "Taster-Bits", "group___d_e_f___t_a_s_t_e_r.html", "gr... |
var passport = require('passport-strategy');
var util = require('util');
var saml = require('./saml');
var url = require('url');
function Strategy (options, verify) {
if (typeof options == 'function') {
verify = options;
options = {};
}
if (!verify) {
throw new Error('SAML authentication strategy re... |
/*****************************************************************
* jQuery Validate扩展验证方法 (linjq)
* Modified by guojunhui
* Date modified:01/01/2017
*****************************************************************/
$(function(){
// 判断整数value是否等于0
jQuery.validator.addMethod("isIntEqZero", fun... |
#!/home/imtiaz/.local/bin/checkio --domain=js run number-radix
//
// END_DESC
"use strict";
function numberRadix(str_number, radix){
return -1;
}
var assert = require('assert');
if (!global.is_checking) {
assert.equal(numberRadix("AF", 16), 175, "Hex");
assert.equal(numberRadix("101", 2), 5, "Bin");
... |
var draw_view3 = {
data: 0,
height: 0,
width: 0,
div: 0,
view: 0,
graph_line_class: 0,
yScale: 0,
xScale: 0,
stroke_color: 0,
name_list: 0,
record_list: 0,
graph_text_class: 0,
initialize: function() {
var self = this;
self.div = "#view3";
self... |
import React, {Component} from 'react';
import {Route, Switch} from 'react-router-dom';
import Home from './pages/Home';
import Results from './pages/Results';
import Details from './pages/Details';
import './App.css';
/**
* Home.js
*
* This renders the primary App container. Also handles all app routing.
*/
class... |
/* eslint-disable no-param-reassign */
// eslint-disable-next-line import/no-extraneous-dependencies
import copy from '@guanghechen/rollup-plugin-copy'
// eslint-disable-next-line import/no-anonymous-default-export
export default {
input: 'index.js',
output: {
dir: 'lib/esm',
format: 'esm',
},
plugins:... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["line-style-outlined"] =... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
plugins: [
`gatsby-plugin-react-helm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.