text
stringlengths
2
1.04M
/* * Backpack - Skyscanner's Design System * * Copyright 2016-2019 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 * ...
const path = require('path') const root = path.join(__dirname, '../') const src = path.join(root, 'src') module.exports = { root, src, buildPath: path.join(root, '/build'), }
// let map; const osmMarkers = L.markerClusterGroup(); const osmMosqueIcon = L.ExtraMarkers.icon({ icon: 'fa-moon-o', // '#009000' is 'Islamic green' according to colorhexa.com markerColor: 'green', shape: 'circle', prefix: 'fa' }) $(document).ready(init); function init() { <!-- Map provide...
import { UnsupportedChainIdError, useWeb3React } from '@web3-react/core'; import { WalletConnectConnector } from '@web3-react/walletconnect-connector'; import React, { useEffect, useState } from 'react'; import { isMobile } from 'react-device-detect'; import styled from 'styled-components'; import MetamaskIcon from '.....
import React from 'react' import Layout from '../components/layout' import styles from '../components/blog.module.css' export default () => { return ( <Layout> <div className={styles.blog}> <h1 className={styles.title}>This is our blog page</h1> <h2>This is second heading</h2> </div> ...
// This file was generated by GenerateJavaScriptI18nTask from javascript/lang/src/de.js. // See https://github.com/silverstripe/silverstripe-buildtools for details if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') { if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined'); } else { ...
// @flow type TableLinkOpen<pointer, key> = {| leafOpen: pointer, gapKeyOpen: key |}; type TableLinkClose<pointer, key> = {| leafClose: pointer, gapKeyClose: key |}; type GapLink<pointer, key> = {| link: pointer, key: key |}; export type { GapLink, TableLinkOpen, TableLinkClose };
import Reporter from './Reporter'; import { ApplicationError } from './Exceptions'; export default function newReporter({ sourcePath }, settings) { const keys = ['reportLevel', 'haltLevel', 'warningStream', 'debug', 'errorEncoding', 'errorEncodingErrorHandler']; const missingKeys = keys.filte...
// (C) Copyright 2020 Hewlett Packard Enterprise Development LP export const searchEngine = (searchString, data, searchKeys) => { if (!searchString) { return data; } const result = data.filter((quote) => { const listToSearch = []; // contains only data on which search has to be done. searchKeys.forEa...
import React from "react" import { SEO } from "../components" import { Button, Purchase } from "../styles/Components" import { Link } from "gatsby" export default function thanks() { return ( <div> <SEO title="successful purchase" /> <Purchase> <h2> Sucessful purchase <spa...
const enums = { key_major: [ { value: 'c', text: '0 (C / a)' }, { value: 'g', text: '1# (G / e)' }, { value: 'd', text: '2# (D / h)' }, { value: 'a', text: '3# (A / fis)' }, { value: 'e', text: '4# (E / cis)' }, { value: 'b', text: '5# (H / gis)' }, { value: '...
const path = require('path'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: './src/app.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') }, plugins: [ new CleanWebpackPlugin([...
/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * 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/LICEN...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // This file was procedurally generated from the following sources: // - src/annex-b-fns/func-exsting-var-no-init.case // - src/annex-b-fns/func/if-decl-no-else.template /*--- description: Existing variable binding is not modified...
var book = { "name": "Lamentations", "numChapters": 5, "chapters": { "1": { "1": "<sup>1</sup> How lonely sits the city That was full of people! She has become like a widow Who was once great among the nations! She who was a princess among the provinces Has become a forced laborer!", "2": "<sup>2</sup> She w...
window._ = require("lodash"); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require("popper.js").default; ...
const url = require('url'); const debug = require('ghost-ignition').debug('api:shared:http'); const shared = require('../shared'); const models = require('../../models'); /** * @description HTTP wrapper. * * This wrapper is used in the routes definition (see web/). * The wrapper receives the express request, prepa...
import React from 'react' import MarkdownDocs from 'components/MarkDowns/MarkdownDocs' const req = require.context('containers/views/referentinput', false, /\.(md|js|tsx)$/) const reqSource = require.context( '!raw-loader!containers/views/referentinput', false, /\.(js|tsx)$/, ) const reqPrefix = 'containers/view...
document.querySelector(".hamburguer").addEventListener("click", () => document.querySelector(".container").classList.toggle("show-menu") ) document.querySelector("#qtde").addEventListener("change",atualizarPreco) document.querySelector("#js").addEventListener("change",atualizarPreco) document.querySelector("#layout...
import React from "react"; import { Form, Button, Message, Grid, Header, Segment } from "semantic-ui-react"; import { connect } from "react-redux"; import withSemanticUIFormik from "../../components/hoc/FormikSUI"; import * as Yup from "yup"; import { Redirect } from "react-router-dom"; // import { success ...
jQuery( function ( $ ) { $( '.btn.archive' ).on( 'click', function ( e ) { e.preventDefault(); var name = $( this ).closest( '.record' ).find( '.name' ).text(), type = $( this ).closest( '.record' ).data( 'type' ), link = $( this ).attr( 'href' ), message; ...
let source; function check() { if (typeof module === 'undefined') return; if (module.hot.status() === 'idle') { module.hot.check(true).then(modules => { console.log(`[SAPPER] applied HMR update`); }); } } function connect(port) { if (source || !window.EventSource) return; source = new EventSource(`http:...
(window.webpackJsonp=window.webpackJsonp||[]).push([[90],{2944:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return a}));n(11),n(2),n(5),n(8),n(4),n(10);var r=n(0),i=n.n(r);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.protot...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import { ChakraProvider } from "@chakra-ui/react"; import App from "./App"; import customTheme from "./utils/theme"; ReactDOM.render( <React.StrictMode> <ChakraProvider theme={customTheme}> <App /> </Ch...
/* eslint-disable no-undef */ import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { loadUser, loadStarred } from '../actions' import User from '../components/User' import Repo from '../components/Repo' im...
// Forked from: https://github.com/KyleAMathews/react-sparkline at commit a9d7c5203d8f240938b9f2288287aaf0478df013 import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; export default class Sparkline extends React.Component { componentDidMount() { return this.renderSparkline(); } ...
import styled from 'styled-components' import { Grid } from '@material-ui/core' export const CellContainer = styled.div` height: 64px; width: 64px; background-color: ${props => props.color === 'true' ? '#fff' : '#3f51b5'}; display: flex; align-items: center; /* Cells border logic */ bor...
/* @generated */ // prettier-ignore if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') { Intl.DisplayNames.__addLocaleData({"data":{},"availableLocales":["it-CH"]}) }
(function () { 'use strict'; angular .module('flairbiApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider', 'PERMISSIONS']; function stateConfig($stateProvider, PERMISSIONS) { $stateProvider .state('report-management', { parent: 'admin...
import React from 'react' const M = 'M' const L = 'L' const a0 = 8 const a1 = 24 const Lambda = ({ size = 128, strokeWidth = 2, color = 'currentcolor', className }) => ( <svg className={className} viewBox='0 0 32 32' width={size} height={size} fill='none' stroke={color} strokeWid...
dragElement(document.getElementById("mydiv")); function dragElement(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; if (document.getElementById(elmnt.id + "header")) { document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown; } else { elmnt.onmousedown = dragMouseDown; } functio...
export const cibHighly = ["32 32","<path d='M13.599 27.197h4.803v4.803h-4.803zM12 0h8v24h-8z'/>"]
//Modules import React from "react" import Image from "gatsby-image" import { useStaticQuery, graphql } from "gatsby" //Sass import styles from "./InstagramWidgetSmall.module.scss" const InstagramWidget = () => { // const data = useStaticQuery(query) // const insta = data.insta.edges // const user = data.instaUs...
var Flod = window.Flod || {}; (function (ns, undefined) { "use strict"; ns.Image = Backbone.Model.extend({ getImageUrl: function (width, height) { if (width && height) { return this.get('url') + "?width=" + width + "&height=" + height; } ...
import ndarray from 'ndarray'; import ops from 'ndarray-ops'; import pack from '../lib/ndarray-pack'; import convolve from '../lib/cpu/convolve-2d'; import mvprod from '../lib/cpu/matrix-vector-product'; import * as activationFuncs from '../functions/activations'; /* * Convolutional neural network layers * * shape of ...
#!/usr/bin/env npx jbash set("-x"); set("-e"); const rootFolder = require("path").join(__dirname, "../"); const specFilename = `spec-v1-swagger.json`; const swaggerConfigFilename = `config.json`; cd(rootFolder); // Download latest spec from the API if ($1 == "--useLocalSpec") { echo( `WARNING: --useLocalSpec ...
/** * @generated-from ./../impls/$every/async-every.js * This file is autogenerated from a template. Please do not edit it directly. * To rebuild it from its template use the command * > npm run generate * More information can be found in CONTRIBUTING.md */ export { asyncEvery as default } from '../impls/$every/...
import Vue from 'vue' import App from './App.vue' import axios from 'axios' import VueAxios from 'vue-axios' Vue.use(VueAxios, axios) import Buefy from 'buefy' Vue.use(Buefy) import 'buefy/dist/buefy.css' import vueCountryRegionSelect from 'vue-country-region-select' Vue.use(vueCountryRegionSelect); import VueApexCh...
/** * 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'); import Echo from "laravel-echo"; import axios from 'axios' import VueAxio...
const webpackDevMock = require('webpack-dev-mock'); module.exports = (config, mock, context) => { // dev mock const { commandArgs, command } = context; if (!commandArgs.disableMock && command === 'start' && mock) { const originalDevServeBefore = config.devServer.get('before'); // replace devServer before...
const Theme2 = `var theme_defaults = { 'banner-border': '#005172', 'banner-color-1': '#fff', 'banner-color-2': '#fff', 'banner-color-3': '#fff', 'banner-size-1': '22', 'banner-size-2': '22', 'banner-size-3': '22', 'banner-button-background': '#6fd4e4', 'banner-button-color': '#005172', 'input-fontna...
_N_E = (window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([["amp"],{ /***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js": /*!*****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! \********************...
/* * 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 ...
import React from 'react' import styled from 'react-emotion' const Container = styled.div` ${tw`max-w-sm rounded overflow-hidden shadow-lg bg-white`}; ` const Image = styled.img` ${tw`w-full bg-white`}; ` const Contents = styled.div` ${tw`px-6 py-4 bg-white`}; ` const CardTitle = styled.h3` ${tw`font-bold f...
const endianToggle = require('endian-toggle') module.exports = function (client, server, { beforePing = null }) { client.once('ping_start', onPing) client.once('legacy_server_list_ping', onLegacyPing) function onPing () { const response = { version: { name: server.mcversion.minecraftVersion, ...
/* * jquery-lp-factory-slide-panel - v0.0.1 * A jump-start for jQuery plugins development. * https://github.com/LpFactory * * Made by Jonathan Bouzekri * Under MIT License */ !function(a){"use strict";function b(b,e){this.element=b,this.$element=a(b),this.settings=a.extend({},d,e),this._defaults=d,this._nam...
import React, { useContext, useState, useEffect } from 'react'; import LayerItem from '../LayerItem/LayerItem'; import { MapContext } from '../../../context/MapState'; import { LayerGridContext } from '../../../context/LayerGridState'; import { MapModeContext } from '../../../context/MapModeState'; import { ToolBarCont...
const listings = require('./listings'); const buying = require('./buying'); module.exports = { listings, buying, };
const Discord = require('discord.js') module.exports = { name: 'aşkölçer', aliases: ['askolcer'], category: 'genel', run: async(client, message, args) => { let member = message.guild.member(message.mentions.users.array()[0] || message.guild.members.cache.get(args[0])) let member2 = message.guild.me...
var nota1 = 9 var nota2 = 6 var resultado = (nota1 + nota2) / 2 if (resultado > 9.0){ console.log("N1:" + nota1 + " N2:" + nota2 + " Média:" + resultado + " Conseito:A" + " APROVADO") } else if (resultado > 7.5 && resultado <= 9.0){ console.log("N1:" + nota1 + " N2:" + nota2 + " Média:" + resultado + " Conse...
const DEFAULT_SIZE = { height: 450, width: 600 }; const initialState = { annotationPane: null, annotationPaneSize: DEFAULT_SIZE, annotationPaneOffset: null, data: null, focus: null, isPrompt: false, popup: null, size: DEFAULT_SIZE, title: '', type: null }; const SET_DIALOG = 'SET_DIALOG'; const SE...
// @flow strict-local import type { Asset as IAsset, Bundle as IBundle, BundleGroup, CreateBundleOpts, Dependency as IDependency, GraphVisitor, MutableBundleGraph as IMutableBundleGraph, BundlerBundleGraphTraversable, Target, } from '@parcel/types'; import type {ParcelOptions} from '../types'; impor...
const app = require('./config/express')(); const http = require('http').Server(app); const port = process.env.PORT || 3000; const server = http.listen(port, () => { let usingHost = server.address().address; if (usingHost === '::') usingHost = 'localhost'; let usingPort = server.address().port; console.log...
// Generated by CoffeeScript 1.9.2 var Validator, _, _regexp, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; _ = require('underscore'); _regexp = { ruleName: /%s/g, ruleKey: /%([a-zA-Z]{1}([a-zA-Z0-9\-_]{1,})?)...
// Detect if we're dealing with Firefox, Safari, or Chrome var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; var isSafari = typeof(safari) == 'object'?true:false; var _settings = typeof(localStorage.settings)=='undefined' ? {} : JSON.parse(localStorage.settings); if ( isSafari ) { if ( sa...
import path from 'path' export const cli = 'tailwind' export const defaultConfigFile = './tailwind.config.js' export const defaultPostCssConfigFile = './postcss.config.js' export const defaultConfigStubFile = path.resolve(__dirname, '../stubs/defaultConfig.stub.js') export const simpleConfigStubFile = path.resolve(__...
(window.webpackJsonp=window.webpackJsonp||[]).push([[262],{3082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,n(10);var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=argum...
'use strict'; const path = require('path'); const express = require('express'); const app = express(); const hbs = require('hbs'); const morgan = require('morgan'); const bodyParser = require('body-parser'); const viewsDir = path.join(__dirname, 'views'); const publicDir = path.join(__dirname, 'public'); app.set('...
import { arrayOf, normalize } from 'normalizr'; import commentSchema from '../../schemas/comment'; import * as actionTypes from '../../constants/actionTypes'; import { mergeEntities } from '../../actions/entities'; import { setRequestInProcess } from '../../actions/request'; import { setPaginateLink } from '../../actio...
import React from 'react'; import { Button, Form, Grid, Header, Message, Segment, Divider } from 'semantic-ui-react'; import { Auth, Logger, JS } from 'aws-amplify'; import { AuthPiece, withFederated } from 'aws-amplify-react'; const logger = new Logger('LoginForm'); const FederatedButtons = (props) => ( <div> ...
/* eslint-disable import/no-webpack-loader-syntax, import/no-unresolved, import/extensions */ import 'core-js/stable'; import 'regenerator-runtime/runtime'; import 'script-loader!moment/min/moment.min.js'; import 'jquery-ui/ui/core.js'; import 'jquery-ui/ui/widget.js'; import 'jquery-ui/ui/widgets/mouse.js'; import 'jq...
"use strict"; require("core-js/modules/es.object.assign.js"); require("core-js/modules/es.object.to-string.js"); require("core-js/modules/es.regexp.exec.js"); require("core-js/modules/es.regexp.to-string.js"); require("core-js/modules/es.string.replace.js"); require("core-js/modules/es.string.split.js"); Object....
import React from "react"; import Icon from "./_base"; import CheckRedIcon from "frontend/icons/check-red.svg"; const CheckRed = props => { return <Icon icon={CheckRedIcon} {...props} />; }; export default CheckRed
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).symbolObservable=e()}}(function(){return function(){return func...
export default function withMock(mockFn, testFn) { return t => { const cleanUp = mockFn(t) if (typeof cleanUp !== 'function') { throw new TypeError('mockFn should return a cleanup function') } testFn(t) cleanUp(t) } } export function withMockDocument(t) { const originalDocument = globa...
/** * Free to drag the HTML element to any place 🍭 * * DragIt v1.1.6 * https://github.com/Alex-xd/drag-it * * Copyright 2017 Alex-xd * Released under the MIT license */ ;(function (factory) { var registeredInModuleLoader = false if (typeof define === 'function' && define.amd) { define(factory) reg...
define("dojox/grid/_Layout", [ "dojo/_base/kernel", "../main", "dojo/_base/declare", "dojo/_base/array", "dojo/_base/lang", "dojo/dom-geometry", "./cells", "./_RowSelector" ], function(dojo, dojox, declare, array, lang, domGeometry){ return declare("dojox.grid._Layout", null, { // summary: // Controls grid c...
var express = require('express'); var bodyParser = require('body-parser'); // for passport middleware var cookieParser = require('cookie-parser'); //use to parse the cookie for the session var passport = require('passport'); //for passport var session = require('express-session'); //for express session //gives us ...
import React, { Component } from 'react'; import './Cards.css'; class Card extends Component { constructor(props) { super(props); this.state = { isHovered: false, bgColor: '', buttonColor: '' }; this.hovered = this.hovered.bind(this); } hovered(id){ let hovered = !this.s...
export const CHAT_VIDEO_UPDATE = 'CHAT_VIDEO_UPDATE'; export function chatVideoUpdate(contact, data) { return { type: CHAT_VIDEO_UPDATE, contact, data, }; }
/* * Copyright (c) 2022 Huawei Device Co., 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 * * Unless required by applicable law ...
var _ = require('lodash') , Shared = require('./../../shared') , ServerHeartbeatModel = require('./cronServerHeartbeatModel.js') , CronJobExecutionModel = require('./cronJobExecutionModel.js') , Logger = require('./../../logger').tag('cronjob-management') , Utils = require('./../../utils') , Enc...
var fs = require('fs') function bufferToStdout (gl, width, height) { // Write output var pixels = new Uint8Array(width * height * 4) gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels) process.stdout.write(['P3\n# gl.ppm\n', width, ' ', height, '\n255\n'].join('')) for (var i = 0; i < pixel...
import { combineReducers } from 'redux'; import { graphReducer } from './graph'; import { dashboardReducer } from './dashboard'; const rootReducer = combineReducers({ graphReducer, dashboardReducer }); export default rootReducer;
'use strict'; describe('Form:', sandbox(function () { var ServerResponse = require('http').ServerResponse, IncomingMessage = require('http').IncomingMessage, express = require('express'), request = require('supertest'), Form = require('../lib/form'), FormError = require('.....
import { pick } from "lodash/object"; export const extractFields = (req, fieldsProp) => req.query[fieldsProp] ? req.query[fieldsProp].split(",") : undefined; const getSelectedFields = (object, fields = []) => fields.length ? pick(object, fields) : object; export const collection = (arr, transformer) => { const...
"use strict"; const JSON_DIR = "data/spells/"; const SUBCLASS_LOOKUP = {}; class SpellsPage extends ListPage { constructor () { super({ pageFilter: new PageFilterSpells(), sublistClass: "subspells", dataProp: ["spell"], }) this._multiSource = new MultiSource({ fnHandleData: this._addSpells.bind(...
const Command = require('../../structures/Command'); const request = require('node-superfetch'); module.exports = class FoxCommand extends Command { constructor(client) { super(client, { name: 'fox', group: 'random-image', memberName: 'fox', description: 'Responds with a random fox image.', clientPer...
/* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool...
export default { erc20: '0xc5febf8C2E11f6fC85897b0134A79175b8410b4f', eth: '0x6F54CDAE7c98b0306fB3aB4daED4cAEe25b92Bc6', eos: 'swaponline42', reputationOracle: '0x6260B5ef52d72732674fF4BDE3B37a4222dB1785', protectedBtcKey: '023d894571a253b87868db7d54a8b583e0c8ce53b484af8a0b0390b7722975cfaa', }
import React from 'react'; import ModalPortal from '../modal-portal'; import { gettext } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '../../utils/utils'; import toaster from '../toast'; import UpdateWebdavPassword from '../dialog/update-webdav-password'; co...
import { Base64 } from 'js-base64'; import { AUTH_KEY } from '../constants'; import getItemFromStorage from './getItemFromStorage'; export default function getAuthDataFromStorage() { const localStorageItem = getItemFromStorage(AUTH_KEY); if (localStorageItem) { try { const decodedLocalStorageItem = Base...
'use strict';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) : (__.prototype = b.prototype, new __()); }; var __decorate = (this && this.__decorate) || fun...
const functions = require('firebase-functions'); //include library expressjs setelah install di folder functions : npm i --save firebase-functions const express = require('express'); var admin = require("firebase-admin"); var refreshToken; // var serviceAccount = require("/Documents/Project/cromosom/functions/abc.jso...
import moment from 'moment'; import query from '../utils/queries'; import handleResponse from '../utils/responseHandler'; import pool from '../utils/connection'; import isEmptyObject from '../utils/isEmptyObject'; class RepaymentController { /** * * @description Create a repayment record * @static * @pa...
import React from "react" import MiniCart from "./mini-cart" export default () => ( <MiniCart /> )
'use strict'; const electron = require('electron'); const delay = require('delay'); const settings = require('./common/settings'); const loadRoute = require('./utils/routes'); const {BrowserWindow, systemPreferences} = electron; const croppers = new Map(); let notificationId = null; let isCropperOpen = false; cons...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Tab, TabBar, TabBarEmpty, TabClose, TabPlus } from './styled-elements'; function last(arr, pre = '') { let base = arr.length > 2 ? `${arr[arr.length - 2]}` : ''; if (base.indexOf(`${pre}> `) !== 0) { base = 'bash'; } ret...
import { login, logout, getInfo } from '@/api/user' import { setToken, removeToken } from '@/utils/auth' import { resetRouter } from '@/router' const getDefaultState = () => { return { token: 'admin-token', name: 'Super Admin', avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif'...
import React from 'react'; import moment from 'moment'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons'; import { SingleDatePicker } from 'react-dates'; import 'react-dates/initialize'; export default class ExpenseForm extends Re...
module.exports = () => Math.PI();
import Ember from 'ember'; export default Ember.Route.extend({ model() { return this.modelFor('role'); }, afterModel(model) { return model.get('memberships'); }, setupController(controller, model) { let contextHref = model.get('data.links.organization'); let authorizationContext = this.get(...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(){function q(a,b,c){b+=c;for(var d=a[b],e=/[\s]/;d&&e.test(d);)b+=c,d=a[b];return d}function r(a){return/%$/.test(a)?a:a+"px"}function t(a){var ...
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import noteStore from '../stores/note/'; import * as NoteActions from '../actions/note'; let store =noteStore(); class Notes extends React.Component{ _bind(...methods){ methods.forEach((method)=>this[m...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-c81f9f1 */
const stripe = require("../../stripe.app.js") module.exports = { key: "stripe-custom-webhook-events", name: "Custom Webhook Events", version: "0.0.1", description: "Subscribe to one or more event types and emit an event on each webhook request", props: { stripe, enabledEvents: { type: "string[]...
env.BASH = '/bin/sh'; env.NEWENV = 'foo'; echo(env.PATH);
import React from "react" import { Link } from 'react-router-dom' const Landing = () => { return ( <section> <h1 className="lg text-center">Trending Items</h1> <div className="container flex py-1"> <ul className="flex"> <li><Link to="/" className="btn">Home</Link></li> <li><...
import React, { createContext, useContext, useEffect, useState } from 'react'; export function Footer() { return ( <footer className='container'> <div className='row'> <div className='col-6'> <strong>Christopher Reynolds</strong> </div> <div className='col-6'> <p className='footRight'>&copy...
import React from 'react'; import Icon from '@mdi/react' import { Trans } from 'locales/Trans'; import whoIco from "whoRezeda.png"; // import mkd from "../img/iconfinder_Macedonia-Flag_32270.png" // import './index.scss' const NavLink = (props) => { const onClickHand = () => { window.location.href = "#/"+props.navR...