text stringlengths 2 1.04M |
|---|
// @flow
import { useEffect, useState } from "react";
import inatjs from "inaturalistjs";
const FIELDS = {
title: true,
icon: true,
header_image_url: true,
description: true
};
const useProjectDetails = ( id: number ): Object => {
const [projectDetails, setProjectDetails] = useState( [] );
useEffect( ( ... |
import {
newUserTemplate,
newPasswordTemplate,
newAuthorizationKeyTemplate,
} from "~services/templates";
describe("Default Strategy Templates Exports", () => {
it("exports newUserTemplate", () => {
expect(newUserTemplate).toBeDefined();
});
it("exports newPasswordTemplate", () => {
expect(newPasswordTempla... |
import React from 'react';
import BootstrapTable from 'react-bootstrap-table-next';
// 포매터
export const formatter = (cell, row, rowIndex, Data) => {
var item = Data.item;
var onChange = Data.onChange;
return <BootstrapTable keyField={cell.keyField} data={cell.data} columns={cell.columns} />;
}; |
////// ----------------------- Connection "class" ---------------------- ////////////
/* jshint browser: true */
/* global document */
/* global console */
/* global session */
/* global window */
/* global location */
/* global setTimeout */
/* global clearTimeout */
/* global io */
/* global $ */
/* global socketName... |
var jam = require('../jam');
var expect = require('chai').expect;
describe('Utility', function() {
describe('random()', function() {
it('只有一个参数的情况', function() {
expect(jam.random(5)).to.be.most(5);
});
it('两个参数的情况', function() {
expect(jam.random(2, 8)).to.be.least(2);
expect(jam.random(2, 8)).to.be.m... |
/**
* Route Mappings
* (sails.config.routes)
*
* Your routes map URLs to views and controllers.
*
* If Sails receives a URL that doesn't match any of the routes below,
* it will check for matching files (images, scripts, stylesheets, etc.)
* in your assets directory. e.g. `http://localhost:1337/images/foo.jpg`... |
/**
*
*/
export const formatCoordinates = (xValue, yValue) => {
const formattedCoordinates = 'X: ' + xValue + '\nY: ' + yValue;
return formattedCoordinates;
}; |
/*! =========================================================
* bootstrap-slider.js
*
* Maintainers:
* Kyle Kemp
* - Twitter: @seiyria
* - Github: seiyria
* Rohit Kalkur
* - Twitter: @Rovolutionary
* - Github: rovolution
*
* =========================================================
*
* Licensed... |
import React, { useState } from 'react';
import { StyleSheet, View, Dimensions, ImageBackground } from 'react-native';
import AppLoading from 'expo-app-loading';
import Animated, {Easing, useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
import Icon from 'react-native-vector-icons/MaterialI... |
// autocomplate search data company
$('#company').autocomplete({
source: '/Menu/company',
focus: function(event, ui) {
$('#company').val(ui.item.label);
return false;
},
select: function(event,ui) {
$('#company').val(ui.item.label);
... |
/* global L Tabletop */
/*
* Script to display two tables from Google Sheets as point and polygon layers using Leaflet
* The Sheets are then imported using Tabletop.js and overwrite the initially laded layers
*/
// init() is called as soon as the page loads
function init() {
// PASTE YOUR URLs HERE
// these UR... |
let DEV_MODE = process.env.NODE_ENV !== 'production';
let path = require('path');
let webpack = require('webpack');
console.log("DEV_MODE: ", DEV_MODE);
module.exports = {
devtool: 'eval-source-map',
entry: [
'webpack-hot-middleware/client',
path.join(__dirname, './client.js')
],
outpu... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { registerTestBed } from '../../../../../../test_utils';
import { Foll... |
'us strict'
//Set endpoints
const hls_url = exports.hls_manifest;
const dash_url = exports.dash_manifest;
const mss_url = exports.mss_manifest;
const cmaf_url = exports.cmaf_manifest;
const player = videojs('video');
//Links
document.getElementById('live').href = exports.mediaLiveConsole;
document.getElementById('hls... |
/*globals describe, it, beforeEach, afterEach */
var sinon = require('sinon'),
should = require('should'),
Promise = require('bluebird'),
api = require('../../../server/api'),
redirectToSetup = require('../../../server/middleware/redirect-to-setup');
should.equal(... |
// flow-typed signature: c4461ec19dd14dd71798547c4675558d
// flow-typed version: <<STUB>>/rollup-plugin-babel_v^4.3.2/flow_v0.95.1
/**
* This is an autogenerated libdef stub for:
*
* 'rollup-plugin-babel'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share y... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.linterMessageToDiagnosticMessage = linterMessageToDiagnosticMessage;
exports.linterMessageV2ToDiagnosticMessage = linterMessageV2ToDiagnosticMessage;
exports.linterMessagesToDiagnosticUpdate = linterMessagesToDiagnosticUpdate;
expor... |
document.getElementById("signin").disabled = true;
var userBool = false;
var passBool = false;
var nameBool = false;
var emailBool = false;
var cpfBool = false;
var telBool = false;
var diaBool = false;
var cepBool = false;
var logBool = false;
var numBool = false;
var baiBool = false;
var cidBool = false;
function u... |
console.log(`${__dirname}`, `${__filename}`); |
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('category', {path: '/category/:category_id'});
this.route('listing', {path: '/listing/:listing_id'});
});
export default Router; |
const serviceWorkerFileName = '/ServiceWorker.js';
const swInstalledEvent = 'installed';
const staticCachePrefix = 'blazor-cache-v';
const updateAlertMessage = 'Update available. Reload the page when convenient.';
window.updateAvailable = new Promise(function (resolve, reject) {
var { hostname } = window.location;
... |
/**
* /api/services/ResponseService.js
*
* Generic response helper service.
*/
"use strict";
/**
* Simple service method to send "proper" error message back to client. This is called basically
* all over the application in cases where error may occur.
*
* @param {Error|{}} error Error object
* @param... |
const chai = require('chai');
const lab = require('lab').script();
const hapiFactory = require('../../../web/index');
const expect = chai.expect;
exports.lab = lab;
lab.describe('chairo', () => {
let server;
lab.before((done) => {
hapiFactory.start()
.then((_server) => { server = _server; done(); });
}... |
import {
AMOUNT_MAX_LENGTH,
formatMoney,
formatCurrency,
addComma,
getDecimalPlaces,
setCurrencies,
isCryptocurrency,
getCurrencyDisplayCode,
getCurrencyName,
getMinWithdrawal,
getTransferLimits,
getTransferFee,
getMinimumTransferFee,
getFormattedText,
getRoun... |
"use strict";
/**
* @packageDocumentation
* @module Parts.Logtta_TH
*/
Object.defineProperty(exports, "__esModule", { value: true });
class Logtta_TH {
constructor(peripheral) {
if (peripheral && !Logtta_TH.isDevice(peripheral)) {
throw new Error('peripheral is not logtta TH');
}
... |
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'FlagGbRoundIcon',
props: {},
functional: true,
render: function render(h, ctx) {
var attrs = ctx.data.attrs || {};
ctx.data.attrs = attrs;
return h("svg", _mergeJSXProps([{
attrs: {
xmlns: "http://ww... |
var stopAutocard = false;
var autocardTimeout = null;
function getElementPosition(el) {
var l = 0,
t = 0;
while (el.offsetParent) {
l += el.offsetLeft;
t += el.offsetTop;
el = el.offsetParent;
}
return {
left: l,
top: t
};
}
function autocard_init(classname) {
$('.' + classname).of... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{3611:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return i}));r(2),r(15),r(16),r(12);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnPropert... |
// const bulmacss = require('bulma')
// module.exports = {
// plugins: [
// bulma('./bulma.js'),
// require('autoprefixer')
// ]
// } |
"use strict";
const chalk = require('chalk');
const registeredAlerts = [];
function registerAlerts(alerts) {
if (!alerts) {
return;
}
alerts.forEach((alert) => {
if (!hasAlert(alert.name)) {
registeredAlerts.push(alert);
}
});
}
function hasAlert(name) {
let alert... |
module.exports = {
hooks: {
'pre-push': 'npm run lint && npm test',
},
}; |
describe('current date', function() {
var TITLE_FORMAT = 'MMMM D YYYY';
var options;
beforeEach(function() {
affix('#cal');
options = {
titleFormat: TITLE_FORMAT,
titleRangeSeparator: ' - ',
defaultDate: '2014-06-01'
};
});
describe('defaultDate & getDate', function() {
describeWhenInMonth(func... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[138],{
/***/ "./frontend/src/@core/components/b-card-code/index.js":
/*!************************************************************!*\
!*** ./frontend/src/@core/components/b-card-code/index.js ***!
\****************************************************... |
// Configuration specific to this environment:
// (variables not listed below are taken from the defaults)
var config = {
dbUrl: 'jdbc:mysql://localhost:3306',
ipsAuthorized: '127.0.0.1'
}
/**
* Get the specified setting, otherwise return the
* passed in default value (or undefined if no
* default value is give... |
const tokenTypes = require("./tokenTypes.js");
const reservedWords = {
and: tokenTypes.AND,
in: tokenTypes.IN,
class: tokenTypes.CLASS,
else: tokenTypes.ELSE,
false: tokenTypes.FALSE,
for: tokenTypes.FOR,
function: tokenTypes.FUNCTION,
if: tokenTypes.IF,
elif: tokenTypes.ELIF,
null: tokenTypes.NULL... |
module.exports = function warmup(temperature) {
return temperature*9/5 + 32;
}; |
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* 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
*
* Un... |
$(function(){
antsmc2__aucomplete = null;
});
function make_suggestions(elem_selector, fetch_qset_ids_url) {
var elem = document.querySelector(elem_selector);
if (new RegExp("^.*\{\{\s*$").test(elem.value)) {
$.get( fetch_qset_ids_url, function( list ) {
if(antsmc2__aucomplete){
... |
export default {
css() {
return `
/* generated from dna-version: 5.3.0 */
/* generated from dna-version: 5.3.0 */
/* Temporary skin variables that need to be moved into origins */
:root {
/* Icon Button*/
/* Button */
/* Shell */
/* haha remove this */
/* Custom selection color for placeholde... |
import React, { Component } from "react";
import Employee from "./contracts/Employee.json";
import getWeb3 from "./getWeb3";
import 'semantic-ui-css/semantic.min.css'
import "./App.css";
import { Menu, Divider } from "semantic-ui-react";
import { BrowserRouter, Switch, Route, Link, Redirect } from 'react-router-dom';
i... |
export const initialCss = props => ({
color: "#545769",
fontWeight: props.isSelected ? 600 : 400
});
export const highlightCss = () => ({
fontWeight: 600,
color: "#268DEC"
});
export const parentsCss = () => ({
color: "#98A1B8",
marginTop: "2px"
}); |
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
"use strict";
self.kiri.loader.push(function() {
let KIRI = self.kiri,
CAM = KIRI.driver.CAM,
API, WORLD, SPACE,
meshes = {},
speedDef = 20,
speed;
// ---( CLIENT FUNCTIONS )---
if (KIRI.client... |
exports.getCognitoUserIdByEmail = async ({ applicationContext, email }) => {
try {
const userFromCognito = await applicationContext
.getCognito()
.adminGetUser({
UserPoolId: process.env.USER_POOL_ID,
Username: email,
})
.promise();
const customUserId = (
userFrom... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || 'jmalCloud' // page title
//如果您的端口设置为80,
//使用管理员权限执行命令行。
//例如,Mac:sudo npm run
//您可以通过以下方法更改端口:
// port = 9528 npm run dev或... |
import React, { Component } from "react";
import CabinetDetailInfo from "./presenter";
import AdminAllocateCabinet from "components/AdminAllocateCabinet";
import AdminExtendCabinet from "components/AdminExtendCabinet";
import AdminExpireCabinet from "components/AdminExpireCabinet";
import AdminCleanCabinet from "compon... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
/**
* Next, we will create a fresh Vue application instance and attach ... |
//// [classExpression2.ts]
class D { }
var v = class C extends D {};
//// [classExpression2.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prot... |
import React, {Component} from 'react';
import { connect } from 'react-redux';
import { closeModal } from './utilidadAction'
class modal extends Component {
constructor(){
super()
this.closeModal = this.closeModal.bind(this)
}
closeModal(){
this.props.closeModal()
}
render()... |
import { RANDOM_QUOTE, FETCH_QUOTES_SUCCESS, FETCH_QUOTES_FAIL } from '../constants/quoteConstants';
export const fetchQuotes = () => async (dispatch) => {
try{
console.log('object')
const data = await fetch(
'https://gist.githubusercontent.com/camperbot/5a022b72e96c4c9585c32bf6a75f62... |
import React from "react";
import GithubLogo from "../asset/GithubLogo";
import {Link, Typography} from "@material-ui/core";
import {Markdown} from "./Markdown";
export default () => <React.Fragment>
<Markdown content source={`
- [ {
const history = useHistory()
const params = useParams()
const location = useLocation()
const query = UrlParser.qs.parse(location.search)
return {
history,
params,
locatio... |
module.exports = {
props:
{
/*
| The name and id
*/
field: {type: String, required: true },
/*
| The list of validation errors; Vee Validate ErrorBag instance
*/
errors: {type: Object, default: () => {return null} }
},
computed:
... |
import React from 'react';
import history from 'core/history';
import { useQuery } from 'react-apollo';
import countsQuery from './getCounts.graphql';
function Home() {
const { data } = useQuery(countsQuery);
return (
<div className="jumbotron jumbotron-fluid h-100 mb-0">
<div className="container">
... |
//// 'family', because these tests can be run unmodified by all sub-classes,
//// whether they’re third-tier (extend SynthSeqin directly), or fourth-tier
//// (extend a third-tier Seqin), or fifth-tier, etc.
//// 'isomorphic', because these tests will run in the browser or in Node.js.
!function (ROOT) {
const
is... |
var webpack = require("webpack");
var publicPath = "http://localhost:8888/";
var path = require("path");
module.exports = {
entry: {
app: ["webpack-dev-server/client?" + publicPath, "./test/demo.ts"]
},
output: {
filename: "index.js",
path: path.resolve(__dirname, "test"),
publicPath: publicPath
... |
/**
* Auto-generated action file for "Application Insights Data Plane" API.
*
* Generated at: 2019-05-07T14:37:15.682Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / azure-com-applicationinsights-swagger-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* ... |
import { useRouter } from 'next/router'
import useSWR from 'swr'
import dynamic from 'next/dynamic'
import Link from 'next/link'
import Image from 'next/image'
import Head from 'next/head'
import Meta from '@hackclub/meta'
import CalendarHeatmap from '@hackclub/react-calendar-heatmap'
import Icon from '@hackclub/icons'... |
exports._setParameters = function _setParameters(options = {}) {
this.debug = false;
this.metadata = {
pageCount: 0
};
// letter size
this.default = {
pageWidth: 612,
pageHeght: 792,
// pagePadding: 0,
// pageMargin: 0,
paperSizeTypes: {
'l... |
describe('Our Foe Does Not Wait', function() {
integration(function() {
describe('Our Foe Does Not Wait\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
dynastyDiscard:... |
window.Vue = require('vue');
const Edit = {
data() {
return {
numService: 1
}
},
methods: {
addService() {
this.numService++;
}
}
}
Vue.createApp(Edit).mount('#edit') |
// To run this code, edit file index.html or index.jade and change
// html data-ng-app attribute from angle to myAppName
// ----------------------------------------------------------------------
(function() {
'use strict';
angular
.module('app.lancamentos')
.controller('relatorioSaldoControlle... |
export default {
name: 'Modal',
supports: {
amaze: 'http://amazeui.github.io/docs/en/javascript/modal/',
blaze: 'http://blazecss.com/objects/modals/',
bootstrap3: 'https://getbootstrap.com/docs/3.3/javascript/#modals',
bootstrap4: 'https://getbootstrap.com/docs/4.0/components/modal/',
bulma: 'ht... |
const testUtils = require('../testUtils.js')
const StatusChangesParams = require('../../src/Events/StatusChangesParams.js')
test('should list status changes after given id ', async () => {
const { client, user } = await testUtils.createTestUserAndClient()
const chartKey = testUtils.getChartKey()
await test... |
define(['../../../doc/schema/Schema',
"doh/runner" ], function (Schema, doh) {
var attribute = {
"code": "date",
"editor": "tab",
"attributes": [
{
"code": "code",
"type": "string",
"required": true
},
{
"code": "type",
"type": "string",
"visible": false,
"required": true,... |
import { error } from './utils/utils.js'
import { DismissReason } from './utils/DismissReason.js'
import * as staticMethods from './staticMethods.js'
import * as instanceMethods from './instanceMethods.js'
import privateProps from './privateProps.js'
let currentInstance
// SweetAlert constructor
function SweetAlert (... |
var searchData=
[
['px_5fc_5fexport',['PX_C_EXPORT',['../Pxc_8h.html#aea189596f11f07c586d4757cc67e8f7f',1,'Pxc.h']]],
['px_5fmax_5fsweep_5fdistance',['PX_MAX_SWEEP_DISTANCE',['../PxGeometryQuery_8h.html#addb956623c5bb30dd0ad8ab09b84e73d',1,'PxGeometryQuery.h']]],
['px_5fphysx_5fcooking_5fapi',['PX_PHYSX_COOKING_A... |
$.ajax({
url: window.location.href + 'api/comments',
dataType: 'json',
type: 'GET',
success: function(result){
console.log(result);
result.forEach(comment => {
$('.blog-block').each(function(){
console.log($(this).parent().attr('blog-id'));
if... |
import { startOfHour, parseISO, isBefore, format } from 'date-fns';
import pt from 'date-fns/locale/pt';
import User from '../models/User';
import Appointment from '../models/Appointment';
import Notification from '../schemas/Notification';
import Cache from '../../lib/Cache';
class CreateAppointmentService {
async ... |
function copy(obj, customizerFn) {
var res = copyValue(obj);
return null !== res ? res: copyCollection(obj, customizerFn);
}
function copyCollection(obj, customizerFn) {
if ("function" != typeof customizerFn) {
throw new TypeError("customizer is must be a Function");
}
if ("function" == type... |
import $ from "autocomplete.js/zepto";
const utils = {
/*
* Move the content of an object key one level higher.
* eg.
* {
* name: 'My name',
* hierarchy: {
* lvl0: 'Foo',
* lvl1: 'Bar'
* }
* }
* Will be converted to
* {
* name: 'My name',
* lvl0: 'Foo',
* lvl1: 'Bar'
... |
import {inject} from 'aurelia-framework';
import {HttpClient} from 'aurelia-fetch-client';
import 'isomorphic-fetch';
@inject(HttpClient)
export class Identity{
heading = 'Identity as known in the web api';
identityInApi="waiting for identity information";
constructor(http){
http.configure(config =... |
import { graphql, StaticQuery } from 'gatsby'
import PropTypes from 'prop-types'
import React from 'react'
import './layout.css'
import '../shared/shared.scss'
export function Layout({ children }) {
return (
<StaticQuery
query={graphql`
query SiteTitleQuery {
site {
siteMetada... |
import React from 'react'
import { Link } from 'react-router-dom'
export default props =>
<div className="mj-box flex-column">
<Link to="/about">{'< About'}</Link>
<div className="is-size-5 has-text-centered">Majorna Technology</div>
<div className="m-t-m">
Following topics summarize Majorna's tec... |
Model: file://amf-client/shared/src/test/resources/validations/examples/invalid-json-schema-version-properties.raml
Profile: RAML 1.0
Conforms? false
Number of results: 1
Level: Violation
- Source: http://a.ml/vocabularies/amf/parser#invalid-required-array-for-schema-version
Message: Required arrays of properties n... |
/*==================================================================
[ Focus input ]*/
$('.input100').each(function(){
$(this).on('blur', function(){
if($(this).val().trim() != "") {
$(this).addClass('has-val');
}
else {
$(this).removeC... |
/*! For license information please see 8046.js.LICENSE.txt */
"!=" |
/*global QUnit, sinon*/
sap.ui.define([
"sap/ui/thirdparty/jquery",
"sap/ui/core/Core",
"sap/ui/core/library",
"sap/base/Log",
"sap/uxap/library",
"sap/uxap/ObjectPageDynamicHeaderTitle",
"sap/uxap/ObjectPageSection",
"sap/uxap/ObjectPageSectionBase",
"sap/uxap/ObjectPageSubSection",
"sap/uxap/BlockBase",
"s... |
var margin = {top: 20, right: 20, bottom: 80, left: 40},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var x = d3.scale.ordinal()
.rangeRoundBands([0, width], .1);
var y = d3.scale.linear()
.rangeRound([height, 0]);
var color = d3.scale.ordinal()
.range(["#3... |
/**
* EasyUI for jQuery 1.6.3
*
* Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
var _1=1;
function _2(_3){
var _4=$("<span class... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _createIcon = require('./util/createIcon');
var _createIcon2 = _interopRequireDefault(_createIcon);
function _interopRequireDefault(obj) { return obj && o... |
// flow-typed signature: 8fcb9d43602a27c30aef513da77814c8
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.29.1/flow_v0.37.4
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-flowtype'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to ... |
const getLikes = async () => {
const response = await fetch('https://us-central1-involvement-api.cloudfunctions.net/capstoneApi/apps/1nLM5MTDuqVGBJxBgtuq/likes');
const json = await response.json();
return json;
};
export default getLikes; |
/**
* Created by Nagarchith Balaji on 4/12/2017.
*/
var container = document.getElementById('container');
var graphMeasurement = document.getElementById('graph-measurement');
var allCircles = document.getElementsByTagName('circle');
var allLines = document.getElementsByTagName('line');
let destArray = [15,52,28... |
import { parseNumber } from '../utils/number';
(function (window) {
const SymfonyComponentValidatorConstraintsGreaterThan = function () {
this.message = '';
this.value = null;
this.validate = function (value) {
const f = FpJsFormValidator;
const compareValue = par... |
/**
* Costflow.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
tableName: 'costflow',
schema: true,
autoPK: true,
autoCreatedAt: true,
autoUpdated... |
'use strict';
angular.module('apiModule')
.service('ApiUrlService', ApiUrlService);
ApiUrlService.$inject = ['$rootScope', '$location', 'UrlConstants', 'WebsocketManager'];
function ApiUrlService($rootScope, $location, UrlConstants, WebsocketManager) {
var ApiUrlService = {};
ApiUrlService.init = init... |
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
if(request.method == 'getLocalStorage') {
sendResponse({data: localStorage[request.key]});
} else {
sendResponse({});
}
}); |
import React from 'react'
import { connect } from '@cerebral/react'
import { state, sequences } from 'cerebral'
export default connect(
{
title: state`newTodoTitle`,
changeNewTodoTitle: sequences`changeNewTodoTitle`,
submitNewTodo: sequences`submitNewTodo`,
},
function NewTodo({ title, changeNewTodoT... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
CKEDITOR.plugins.setLang("liststyle","en",{bulletedTitle:"Bulleted List Properties",circle:"Circle",decimal:"Decimal (1, 2, 3, etc.)",disc:"Disc",lowerAlpha:"Lower Alpha (a, b, c, d, e, etc.)",lowerRoman:"Lower Roman (i, ii, iii, iv, v, etc.)",none:"None",notset:"\x3cnot set\x3e",numberedTitle:"Numbered List Propertie... |
/*!
* Copyright 2019 SmugMug, Inc.
* Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms.
* @license
*/
'use strict';
var merge = require('merge'),
Row = require('./row');
/**
* Create a new, empty row.
*
* @method createNewRow
* @param layoutConfig {Object} Th... |
/*global angular:false */
(function(window, angular, undefined) {
'use strict';
var module = angular.module('netlogix.crud.service.xhrdebounce', []);
var XhrDebounce;
/**
* The $httpBackend is wrapped by the xhrDebounce.invoke method.
*/
module.config(['$provide', function($provide) {
$provide.decorator('$... |
'use strict'
module.exports = function generate_const (it, $keyword, $ruleType) {
var out = ' '
var $lvl = it.level
var $dataLvl = it.dataLevel
var $schema = it.schema[$keyword]
var $schemaPath = it.schemaPath + it.util.getProperty($keyword)
var $errSchemaPath = it.errSchemaPath + '/' + $keyword
var $brea... |
let jkr = require("Jkr");
cc.Class({
extends: jkr.BaseUI,
properties: {
inputNode: cc.Node,
inputBgNode: cc.Node,
inputStopNode: cc.Node,
inputEditBox: cc.EditBox,
chatParent: cc.Node,
chatItemPrefab: cc.Prefab,
},
registerGameListener: function() {
... |
define({
"viewer": {
"loading": {
"step1": "LÄSER IN BERÄTTELSE",
"step2": "LÄSER IN DATA",
"step3": "INITIERAR FÄRDEN",
"loadBuilder": "VÄXLA TILL BYGGLÄGET",
"redirectSignIn": "OMDIRIGERAR TILL INLOGGNINGSSIDAN",
"redirectSignIn2": "(du omdirigeras hit efter inloggning)",
... |
import React, { PureComponent } from 'react';
import {Link} from 'umi';
import RightContent from '../GlobalHeader/RightContent';
import BaseMenu from '../SiderMenu/BaseMenu';
import styles from './index.less';
export default class TopNavHeader extends PureComponent {
state = {
maxWidth: undefined,
};
static... |
'use strict'
const https = require('https')
const Web3 = require('web3')
const token = process.env.TOKEN
console.log("Using token: " + token);
const nodeUrl = "https://api.dft.one:8545?project=1"
//const nodeUrl = "https://eth.dft.one"
//nodeUrl = 'https://ropsten.infura.io/v3/83f9baf669d145d4844a13c58897bfec'
... |
import SearchBarComponent from './SearchBarComponent'
import TimeSelectComponent from './TimeSelectComponent'
import TokenComponent from './TokenComponent'
import GraphGradientComponent from './GraphGradientComponent'
export { SearchBarComponent, TimeSelectComponent, TokenComponent, GraphGradientComponent } |
/// <reference path="../knockout-3.3.0.debug.js" />
(function() {
var dataService = mongoTodo.app.services.dataService;
var app = new mongoTodo.app.models.AppVM(dataService);
ko.applyBindings(app);
}()) |
const { Server } = require("ws")
const { tpServerIP, DPPort } = require("../config.json")
const { randomBytes } = require("crypto")
const main = require("./main.js")
const ThreadTypes = ["GUILD_PUBLIC_THREAD", "GUILD_PRIVATE_THREAD", "GUILD_NEWS_THREAD"]
const WSServer = new Server({host: tpServerIP, port: DPPort})
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.