text stringlengths 3.22k 29.5k |
|---|
import Vue from 'vue';
import _ from 'lodash';
import store from '../core-data/store';
import { editAttr, placeholderAttr, placeholderProp, fieldProp, componentListProp, componentProp } from '../utils/references';
import { get } from '../core-data/groups';
import { isEmpty } from '../utils/comparators';
import placehol... |
/**
* @fileoverview Base JS file for pages that want to parse the results JSON
* from the testing bots. This deals with generic utility functions, visible
* history, popups and appending the script elements for the JSON files.
*
* The calling page is expected to implement three "abstract" functions/objects.
* gen... |
"use strict";
var moment = require('moment');
var React = require('react');
// var Grid = require('react-bootstrap').Grid;
var Col = require('react-bootstrap').Col;
var Row = require('react-bootstrap').Row;
var Modal = require('react-bootstrap').Modal;
var Button = require('react-bootstrap').Button;
var Form = requ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = ExternalHostProductSpecificLinks;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _styles = require("@material-ui/core/styles");
var _useMediaQ... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
import React, { useState, useRef, useEffect, useMemo } from "react"
import PropTypes from "prop-types"
import Chip from "@material-ui/core/Chip"
import Menu from "@material-ui/core/Menu"
import MenuItem from "@material-ui/core/MenuItem"
import ListItem from "@material-ui/core/ListItem"
import IconButton from "@material... |
var gameSettings = {
playerWins: 0,
computerWins: 0,
maxRounds: 0,
playedRounds: 0,
endOfGame: undefined,
progress: [],
enteredUsername: undefined
};
var random = function(items) {
return items[Math.floor(Math.random()*items.length)];
}
var items = [1,2,3];
var showModal = function(typeOfModal){
... |
'use strict';
/*global FamousFramework*/
var EventHandler = require('./../utilities/event-handler');
var converter = require('./../../../utilities/converter');
var toSalty = converter.sweetToSalty;
function getTimelineId(timelineName) {
return '__' + timelineName + 'Time';
}
function getObserverId(timelineId, ... |
// cursor
let cursor = document.querySelector('.cursor');
gsap.set(cursor, {
xPercent: -50,
yPercent: -50,
})
document.addEventListener('mousemove', e =>{
gsap.set(cursor,{
x:e.x,
y:e.y,
})
})
let lienCursor = document.querySelectorAll('.lien-cursor')
let tableauCursor = Array.from(l... |
import React, { useState } from 'react';
import './Form.css'
import { Formik, Form, Field, ErrorMessage } from 'formik';
import { Link, useHistory } from 'react-router-dom';
import { Select, Checkbox, TextField, Slider, FormControl, MenuItem, InputLabel, FormGroup, FormControlLabel } from '@material-ui/core';
import {... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var myApp = angular.module('sharedPOApp', []);
myApp.controller('sharedPOController', function ($scope, $http, $sce) {
$scope.po... |
var currentVideoNameCache = null;
var currentTrackNumCache = null;
var currentTimeCache = null;
var pausedCache = null;
var tracklistCache = null;
var trackProgressBarElement = null;
var trackProgressBarElement2 = null;
var currentKeyboardShortcutsListener = null;
var trackedTabId = null;
var trackedTabUrl = null;
var ... |
const {app, BrowserWindow, ipcMain, dialog } = require('electron');
const path = require('path');
const url = require('url');
const {autoUpdater} = require("electron-updater");
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbag... |
const babel = require('@babel/core');
const jsx = require('@babel/plugin-syntax-jsx');
const { text: escapeText, attr: escapeAttr } = require('../runtime');
const domMapping = require('./mapping');
const MODULE = '@intrnl/babel-plugin-transform-jsx-to-string/runtime';
const RID = Math.random().toString(36).slice(2, 2... |
import FileSaver from 'file-saver';
import config from '../config.json';
import jsyaml from "js-yaml"
import fs from "fs";
var example = fs.readFileSync("CodeExample.cpp", 'utf8').toString();
var code;
var clang_options;
var clang_version;
$(document).ready(function(){
$.ajax({
url: config.url + '/doc',
type: '... |
#!/usr/bin/env node
/*
* Automates the process of building the change log for releases.
*
* Assumption:
* You have shelljs installed globally using `npm install -g shelljs`.
*
* Example:
* node ./scripts/change-log-generator -v -r [patch | minor | major] -t 'April 3, 2021'
*/
const process = require('process'... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
$('body').on('statio:dashboard:sessions:report:create', function () {
$("#encryption_type", this).on('change', function(){
if($(this).val() != 'publicKey'){
$('#encrypt_alert').addClass('d-none');
$('button[type=submit]', $(this).parents('form')).removeAttr('disabled');
$... |
var _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]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
import React from 'react'
import PropTypes, { func } from 'prop-types'
import { Map, TileLayer, Circle, Popup } from 'react-leaflet'
import UserMenu from './UserMenu'
import { readData } from '../lib/database'
import { Link } from 'gatsby'
import "leaflet/dist/leaflet.css"
import '../styles/main.css'
import { Sidebar, ... |
const { MessageEmbed } = require(`discord.js`);
const { fetchuser } = require(`../utils/fetchuser`);
const Library = require(`../lib/index.js`);
const { Op } = require(`sequelize`);
const sortingFunc = (a, b) => parseInt(b.plays) - parseInt(a.plays);
let unique = new Set();
let period;
//const fs = require(`fs`);
/*
v... |
'use strict'
var path = require('path');
// var _ = require('lodash');
var async = require('async');
// var logger = require(path.resolve('./config/lib/logger'));
// var utils = require(path.resolve('./engine2/bot/action/common/utils'));
var nlp = require(path.resolve('./engine2/bot/engine/nlp/processor'));
var CBTag... |
/* eslint-disable */
import { Link as RouterLink, useNavigate } from 'react-router-dom';
import { useState } from 'react';
import { useContext } from 'react';
import { Helmet } from 'react-helmet';
import Avatar from '@material-ui/core/Avatar';
import { makeStyles } from '@material-ui/core/styles';
import localContext ... |
var Promise = require('es6-promise')
.Promise;
var _ = require('underscore');
var keystone = require('keystone');
var Page = keystone.list('Page');
var MenuLink = keystone.list('MenuLink');
var HomePage = keystone.list('HomePage');
function getInsertedId(saveOp) {
return saveOp.emitted.complete[0]._id;
}
var h... |
/*
* Copyright(c) 2014-2016 <NAME> of getmyscript.com
* See license file for more information
* Contact developers at <EMAIL>
* */
check();
function start(){
buildToolbox();
friendlist_generate_start();
}
function resizeFrame() {
var newClassName = document.getElementById(targetDivId).getAttribute("class");
new... |
const BAD_REQUEST_TEXT = 'Bad request.'
const BAD_REQUEST_CODE = 400
// Maps line colour codes to line names.
const LINE_NAME_LOOKUP = {
'#935E3A': 'brown',
'#007A4D': 'green',
'#CD202C': 'red',
'#DA487E': 'pink',
'#3FCFD5': 'turquoise',
'#E37222': 'orange',
'#6AADE4': 'skyblue',
'#C1AFE5': 'lilac',
... |
"use strict";
/**
* @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
*/
Object.defineProperty(exports, "__esModule", { value: true });
const ml = require("../ast/ast");
const ... |
var express = require("express");
var app = express();
var mongoose = require("mongoose");
var bodyParser = require("body-parser");
var nodeMailer = require('nodemailer');
var passport = require("passport");
var localStrategy = require("passport-local");
var passportLocalMongoose = require("passport-local-mong... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _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]; } } }... |
//
// Copyright 2018 Draios Inc.
//
// 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 agre... |
import React, { Component } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import router from 'umi/router';
import { Button, Col, Collapse, Form, Spin, Row, Select, } from 'antd';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import styles from '@/pages/Operate.less';
import... |
import React, { useCallback, useEffect } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
/** Styles */
import './App.css';
/** Redux */
import allActions from './redux/actions';
import { useSelector, useDispatch } from 'react-redux';
/** Services */
import API from './services/api';
... |
import React, { useState, useContext } from 'react'
import PropTypes from 'prop-types'
import {
AccordionItem,
AccordionButton,
AccordionPanel
} from '@reach/accordion'
import '@reach/accordion/styles.css'
import {
Disclosure,
DisclosureButton,
DisclosurePanel
} from '@reach/disclosure'
import '@reach/toolt... |
import Modal from './promotionModal.html';
const Chess = require('chess.js').Chess;
require('@chrisoakman/chessboardjs/dist/chessboard-1.0.0');
class BoardChess {
/**
* constructor
* @param id
* @param config
*/
constructor(id, config = {}) {
this.init();
this.boardId = id;... |
/**
* Author: DrowsyFlesh
* Create: 2018/10/22
* Description:
*/
import _ from 'lodash';
import $ from 'jquery';
import React from 'react';
import PropTypes from 'prop-types'
import styled from 'styled-components';
import {Button} from 'Components/common/Button';
import {parseTime} from 'Utils';
import {theme} fr... |
(function ($) {
$(document).on('keypress', 'form ', function(e) {
/*
if(e.which == 13) {
e.preventDefault();
console.log(e.target);
let form = $(e.target).closest("form");
console.log(form[0].elements);
next = false;
for(let ... |
import React from "react";
import { makeStyles } from "@material-ui/styles";
import { Grid } from "@material-ui/core";
import {
InputScan,
Loader,
InputBarcode,
ModalScan
} from "./components";
import api from "../../api";
import Alert from "../Alert";
import { connect } from "react-redux";
import {
addBarcode,
... |
import {useState} from 'react'
import Head from 'next/head'
import { useRouter } from 'next/router'
import { useQuery } from '@apollo/client'
import { Container, Row, Col } from 'react-grid-system'
import {Check} from 'react-feather'
import { initializeApollo } from '../../lib/apolloClient'
import { PRODUCT_DETAIL_QUE... |
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var toolberBg = '#f4f7f9',... |
/**
* @properties={typeid:35,uuid:"B6F7B9CF-4350-433D-9D14-BB0D1B1A1F26",variableType:-4}
*/
var log = scopes.svyLogManager.getLogger("servoy.bap.grid.utils");
/**
* @private
* @properties={typeid:35,uuid:"9DACA599-5F0A-4CDE-BCD8-3E25FC2D3380",variableType:-4}
*/
var convertedForms = [];
/**
* @properties={typ... |
$(document).ready(function(){
allflights();
$.ajax({
url : 'adminhome/cust_counter',
dataType : 'JSON',
beforeSend : function(xhr){
$("#count_customer").html("<i class='fa fa-spinner faa-spin-animated'></i>");
},
success:function(data){
$("#count_customer").html(data);
}
})
$.ajax({
url : 'ad... |
var width = 960,
height = 500,
padding = 1.5, // separation between same-color nodes
clusterPadding = 6, // separation between different-color nodes
maxRadius = 12;
// parse the date / time
let parseDate = d3.time.format("%d.%m.%Y").parse;
var tab_mois=new Array("Janvier", "Février", "Mars", "Avril", ... |
// var Api="http://1sourceestate.com/onesource_admin/";
// // var Api="http://localhost/onesource_admin/";
if(window.location.href.includes("localhost")){
Api = "http://localhost/onesource_admin/";
}
else{
Api="http://1sourceestate.com/onesource_admin/";
}
var purc_id,require_id,available_id,sale_id;
functi... |
class Calendar {
constructor() {
const self = this;
this.date = new Date();
this.currentMonth = this.date.getMonth();
this.currentYear = this.date.getFullYear();
this.currentDayFormatted = `${this.currentYear}-${this.currentMonth + 1}-${this.date.getDate()}`;
this.weekDays = ['S','M','T','W','... |
const activeClass = (e) => {
if (e.target.closest("a").classList.contains("active")) {
e.preventDefault();
return true;;
} else {
document.querySelectorAll("a").forEach((el) => {
if (el.classList.contains("active")) {
el.classList.remove("active");
... |
var View = require('./view');
var application = require('../application');
module.exports = View.extend({
// nav listens for changes in the collection.
afterInit: function afterInitNav(){
this.listenTo(this.collection, 'conceptChanged', this.showSelectedNode);
this.listenTo(this.collection, 'dataC... |
'use strict';
/**
* Requiring Core Library
*
* WARNING: Core modules MUST be included from TOP Level Module.
* All dependencies for core module must be excluded from the package.json
*/
const Core = process.mainModule.require('nodejs-lib');
/**
* Loader class for the model
*/
class Loader extends Core.AppBoots... |
import React from 'react';
import Axios from 'axios';
import BotaoBase from '../BotaoBase';
import ComponentBase from '../ComponentBase';
/**
* Componente de locação que realiza a adição de locações na lista, remoção e edição
*/
export default class Locacao extends ComponentBase {
constructor() {
super... |
import React, { useEffect, useState } from "react";
import {
CardLabel,
Dropdown,
LabelFieldPair,
MultiUploadWrapper,
CardSubHeader
} from "@egovernments/digit-ui-react-components";
import PropertyDocuments from "./PropertyDocuments";
const BPADocuments = ({ t, formData, applicationData, docs, bpaA... |
/**
* @author <NAME><http://barretlee.com/about/>
* @license MIT
*/
var os = require('os');
var Log = new require('log-color');
var path = require('path');
var fs = require('fs');
var ejs = require('ejs');
var mkdirp = require('mkdirp');
var spawn = require('child_process').spawn;
var exec = require('child_process'... |
var lienzo_01;
var lienzo_02;
var img_01;
var img_02;
// It's possible to convolve the image with many different
// matrices to produce different effects. This is a high-pass
// filter; it accentuates the edges.
let matrixsize = 3;
var matrix = [ [ 0, 0, 0 ],
[ 0, 1, 0 ],
[ 0, ... |
import {
getCommonContainer,
getCommonHeader,
getStepperObject,
getCommonTitle,
getBreak
} from "egov-ui-framework/ui-config/screens/specs/utils";
import { getCurrentFinancialYear } from "../utils";
import { pressapplyfooter,takeactionfooter } from "./applyResource/pressapplyfooter";
import jp from "jsonpat... |
var term = require( 'terminal-kit' ).terminal;
var child_process = require('child_process');
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function term_grab() {
term.grabInput( { mouse: 'motion' } ) ;
term.hideCursor(true);
}
function term_release() {
term.hideC... |
//alternativelayers.js
/*
LIST OF MY BAD-ASS API:
function styling(name, geoname, label, color); Creates a object with styling features. Name, GeoJSON name, on-screen label, display color.
function settingStyle(); Sets all the styling values. If added new country, add their styling... |
'use strict';
/*
5-trit text format, analogous to 7-bit ASCII
+1 to +121 normal text, black on white
-1 to -121 inverted, reverse video white on black
*/
var _chars = [
// control/digits
/* 00000 = 0 */ '\0', // NUL null, string terminator, only unbalanced; in serial mode zero-width, matrix mode alternating flas... |
const fs=require('fs');
const Discord=require("discord.js");
const client=new Discord.Client();
const db = require('quick.db')
const moment = require("moment");
const ayarlar=require("./ayarlar.json");
const express = require('express');
/////
const app = express()
app.get('/', (req, res) => res.send("Bot Aktif"))
app.... |
let socket= io();
let global_username;
$.get('/root/get/username',(data)=>{
if(data){
global_username = data;
socket.emit("add_page",{
username: data,
page_name: "friends_page"
});
}
})
$(document).ready(function(){
let prev_nav_flag = $('.navbar-nav li:firs... |
const test = require('tape')
const {
init,
setError,
setLabel,
setItemsLabel,
setContent,
setWidthClass,
setInputWidthClass
} = require('./fb-nunjucks-data-helpers')
test('When fb-nunjucks-data-helpers is required', t => {
t.ok(setError, 'it should export the setError method')
t.ok(setLabel, 'it shou... |
//Libraries
import React, { useState, useContext } from 'react';
import { ActivityIndicator, Platform, StyleSheet, View } from 'react-native';
import * as Print from 'expo-print';
import firebase from 'firebase/app';
import 'firebase/storage';
import 'firebase/firestore';
//Components
import { FormButtonFull, FormButto... |
import React, { useEffect, useState, useRef } from "react"
import { v4 as uuidv4 } from "uuid"
import {
ScheduleDay,
DanceClassBlock,
DanceClassDetail,
DanceClassTime,
DayContainer,
NoResultsContainer,
NoResultsImage,
ScheduleFilterTitle,
} from "./scheduleStyled"
import { TryButton, VirtualLink } from... |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
import Axios from 'axios';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Main from './Main';
class App extends Component {
constructor(props) {
super(props);
this.state = {
is_login:false
};
}
componentDidMount() {
let se... |
const messages = {
msg: {
title: 'Niffler Wallet',
password: 'Password',
passwordAgain: '<PASSWORD>',
wrongPassword: 'Failed to start Grin owner api. May be Wrong password',
login_: 'Login',
logout: 'Logout',
search: 'Search',
clearup: 'Clearup',
jump: 'Jump',
confirmed: 'Conf... |
'use strict';
const Base = Loader.require('./core/structures/Base');
const utils = Loader.require('./core/utils');
const redis = require('../../core/redis');
const statsd = require('../../core/statsd');
class Logger extends Base {
constructor(module) {
super();
this.module = module;
this.infractions = this.mod... |
var num_hire = 0, num_cost = 0
var num_six = 0, num_five = 0, backup_level = 0, non_six = 0
var lib_agent = new Map
var buffer_six = '', buffer_five = '', buffer_all = ''
var show_type = 0
var switch_up = false, switch_up_2 = false
var switch_activity = false, activity_done = false
lib_agent.set('up6', ['闪灵', '塞雷娅'])
l... |
import React,{useState, useEffect} from 'react';
import * as eva from '@eva-design/eva';
import { Layout, Text, Divider, List, ListItem, Icon, Button, Avatar, Card, Input, RadioGroup,Radio, RangeCalendar, SelectItem, Select, CheckBox,Modal } from '@ui-kitten/components';
import { SafeAreaView, View, StyleSheet, ScrollV... |
import { Actor, ScriptBehavior, Components, Timer, getActor, Vector2, getCurrentState } from "../ECS";
import { LifeBar } from "../helpers";
import DamageText from "../helpers/DamageText";
import * as EntityBuilder from "../helpers/entitybuilder.js";
const kHandicapForDeplacement = 120;
const kHandicapBetweenShoot = ... |
var containerEl = $(".container");
var containerHeader = $("<div>").addClass("header").text("JavaScript Quiz");
var containerBody = $("<div>").addClass("containerBody");
var questionBoxEl = $("<div>").addClass("questionBox");
var questionTextBox = $("<div>").addClass("questionTextBox");
var resultBox = $("<div>").addCl... |
import React from 'react'
import { Link } from 'gatsby'
import $ from 'jquery';
import PropTypes from 'prop-types'
import { iconsData } from "./iconData";
import Layout from '../../../components/layout'
import SubNav from '../../../components/subnavigation'
import AppContent from '../../../components/appcontent'
impor... |
import React, { createRef } from 'react'
import { Form, Button, Image, Transition, Progress } from 'semantic-ui-react'
import imageCompression from 'browser-image-compression'
import axios from 'axios'
import mime from 'mime-types'
import HeaderNav from './common/HeaderNav'
class UploadForm extends React.Component {
... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
var localHost = "http://localhost:8000/";
var production = "http://rendezvous-704e3pxx.cloudapp.net/";
$(document).ready(function() {
/**
* Summary: Logs the current user out of the application
*/
$("#logout").click(function (event) {
var currentUser = JSON.parse(localStorage.getItem('curren... |
'use strict';
import dashboardSettingsModalController from '../../../shared/modals/dashboard-settings-modal/dashboard-settings-modal.controller';
import dashboardSettingsModalTemplate from '../../../shared/modals/dashboard-settings-modal/dashboard-settings-modal.html';
import deleteProjectModalController from '../../.... |
// Copyright (C) 2008 Google Inc.
//
// 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... |
let pageNotFound = () => {
let mainBody = document.querySelector("body")
mainBody.innerHTML = "";
let errorFour04 = document.createElement("div");
errorFour04.setAttribute(
"style",
"width: 100vw; height: 100vh; z-index: 6; background-color: #fff; font-size: 5em; color: #0d59a0; padding: 10% 0; position... |
import React, { Component } from 'react';
import {
SafeAreaView,
View,
Text,
TextInput,
TouchableOpacity,
StyleSheet,
} from 'react-native';
import { connect } from 'react-redux';
import BaseScreen from '../BaseScreen/BaseScreen';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aw... |
/**
* Created by Olivier on 6/02/15.
*/
//Add by Johan 23-08-2016
function validate_ajax_form(userConfig) {
let config = {
form_name: 'MyFormName',
container_id: '#modalForm',
target_success: {
dom: '.#Target',
element_to_add: '<tr>__content__</tr>' //__content__ w... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var chars = false; // boolean to represent whether the numpad is it number or character mode
var charTimer; // timer for lock in of c... |
import React, { Component } from "react";
import { BrowserRouter as Router, Route, NavLink } from "react-router-dom";
import { Nav, NavItem } from "reactstrap";
import axios from "axios";
import PropTypes from "prop-types";
import {Input,Button, Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, Col } from "reacts... |
/**
* Copyright (c) 2016 Virtue Studios
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _inte... |
// handling document ready and phonegap deviceready
window.addEventListener('load', function () {
document.addEventListener('deviceready', onDeviceReady, false);
}, false);
var root = null; // File System root variable
var currentDir = null; // Current DirectoryEntry listed
var parentDir = null; // Parent of the c... |
import * as THREE from 'three'
import { CSS3DRenderer, CSS3DObject } from '../CSS3DRenderer.js'
import { MapControls as Controls } from '../Controls.js'
import { TWEEN } from 'three/examples/jsm/libs/tween.module.min.js'
var View = function ( domain, options = {} ) {
let scope = this
let fov = options.fov =... |
const body = document.querySelector("body");
let headerTitle = document.querySelector(".title h1");
let menuLinks = document.getElementsByClassName("menu-item");
let menuImg = document.getElementById("button-img");
let logoLink = document.querySelector(".logo-wrapper");
let title = document.querySelector(".title");
let... |
import React, { useState, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import 'antd/dist/antd.css';
import { Input, Tooltip, Icon, Avatar, Button } from 'antd';
import { setSearchText, setCurrentDomainRegStatus, setNonRenderingSearch } from '../../../redux/actions/actionCreators/sea... |
let userstats = {}
module.exports = userstats
let common = require("./common")
let database = require("./database")
let tiles = require("./tiles")
let units = require("./units")
let resource = require("./resource")
let performance = require('perf_hooks').performance
let current_version = "0.32"
userstats.load = asyn... |
import { getAllHyphenations } from './hyphenate-all';
import { getProperHyphenation, getVowelCount, normalizeWord } from './hyphenate';
import phoneticMap from '../data/phonetic-map.json';
import phoneticMapExtra from '../data/phonetic-map-extra.json';
import reverseMap from '../data/reverse-map.json';
import le... |
import React, { useContext, useState } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faListAlt as faListAlt0 } from '@fortawesome/free-regular-svg-icons'
import { faPlus, faAngleDown, faListAlt, faSpinner } from '@fortawesome/free-solid-svg-icons'
import { ProductsContext } fro... |
import format from "../lib/format";
const PhotoModel = (photoData) => {
const importPhotoData = (photoData) => {
if (
!photoData ||
!photoData.id ||
!Number.isInteger(photoData.index) ||
photoData.index < 0 ||
!("taken" in photoData) ||
!("instant" in photoData.taken) ||
... |
// import ARB_FCS from './ARB-FCS.json';
import ARB_UMAMI from './ARB-UMAMI.json';
// import ARB_OMIC from './ARB-OMIC.json';
// import AVAX_CAKE from './AVAX-CAKE.json';
// import AVAX_FORT from './AVAX-FORT.json';
import AVAX_CROWN from './AVAX-CROWN.json';
// import AVAX_GG from './AVAX-GG.json';
// import AVAX_ICE ... |
//test + formatNumber + Render dc gọi khi nhấn vào chọn màu sẽ tải csdl size thuộc màu đó lên
//đồng thời mặc định size ban đầu sẽ là giá trị đầu tiên dc tìm thấy
//hiển thị lun cả cmt của size thuộc màu đầu tiên
//khi chọn sẽ dc tô màu (nhấn 2 lần)
function test(id){
$.ajax({
url: '../sanphamAJ/'+id,
type: 'g... |
/** super simple logger with extra object args support */
let gjslog = (msg, ...o) => {
if (o.length > 0) msg = `${msg} ` + o.map(v => `${v}`).join(', ')
log(`[gjspipe] ${msg}`)
}
gi = imports.gi
const { Gio, GLib, GObject } = gi
const SIGTERM = 15 // can be ignored
const SIGKILL = 9 // cannot be ignored
... |
const k8s = require('@kubernetes/client-node');
// init k8s api
const kc = new k8s.KubeConfig();
// If env variable set, we read kubeconfig from ~/.kube/config else we read from default place when this script runs in a pod in a cluster
if(process.env.KUBECONFIG_INCLUSTER === 'true') kc.loadFromCluster();
else kc.load... |
/* SOUNDS.JS
* These functions deal with anything related to the audio engine
*/
const fs = require('fs');
const util = require('./util');
let firstPlaylistSound;
var loadedCount = 0;
/**
* @desc: Checks whether the sound path is valid and registers it with Hower
* Sounds that fail the path check get the soun... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
app.use(bodyParser.json())
app.set('port', (process.env.PORT || 5000))
const AUTH_TOKEN = '<PASSWORD>'
//export js files
var userManage = require('./userManage');
var serverValid = require('./serverValid');
var utilFunc... |
require('shelljs/global');
var fs = require("fs");
var path = require("path");
var http = require("http");
var jsdom = require("jsdom");
var jquery = require('fs').readFileSync(path.join(__dirname, "..", "public",'jquery.js')).toString();
var types = ["8hr", "hot", "week", "month", "imgrank", "pic", "late", "history"];... |
let hostSrc = "https://api.appworks-school.tw/api/1.0/";
let initPage = 0;
let initCategories = "";
let loadingStatus = false;
let initIndex = 0; // for slideEffect()
let urlParams = window.location.search;
let keyParams;
let redirectionCatalog;
// init function //
redirection();
campaigns();
window.onload = enterSum... |
import React, { Component } from 'react';
import {View} from 'react-native'
import elements from '../../elements'
import containers from '../../containers'
import multi from './multi'
import util from '../../utils/util'
const funMap = {}
class Region extends Component {
//全局状态管理
static redux = (obj) =... |
// 2020-08-08 18:34:41
// Author: <NAME>
// License: MIT
// myNanoJS: JavaScript C bindings for Nano cryptocurrency/IoT/P2PoW support
/*
* Peer 2 PoW Proof of Concept
* This example shows how to send/receive Nano using myNanoJS with P2PoW API
* References:
* 1- https://medium.com/@kaiquenunes/delegated-proof-o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.