text
stringlengths
2
1.04M
const http = require('http'); const { PORT = 8001 } = process.env; const server = http.createServer((req, res) => { res.writeHead(200, { 'Content-Type': 'text/html' }) res.end(`You have reached the ${req.url.slice(1)} bucket.`); }); server.listen(PORT, () => { console.log('mock server running on ', server.addr...
/*! @name videojs-resume-content @version 0.0.9 @license MIT */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var videojs = _interopDefault(require('video.js')); var version = "0.0.9"; function _inheritsLoose(subClass, superClass) { ...
/** * Copyright (C) 2014 KO GmbH <copyright@kogmbh.com> * * @licstart * This file is part of WebODF. * * WebODF is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License (GNU AGPL) * as published by the Free Software Foundation, either version 3 of * ...
'use strict'; [{ zoneRegex: { en: /^Eden's Gate: Sepulture$/, cn: /^伊甸希望乐园 \(觉醒之章4\)$/, ko: /^희망의 낙원 에덴: 각성편 \(4\)$/, }, timelineFile: 'e4n.txt', triggers: [ { id: 'E4N Voice of the Land', regex: Regexes.startsUsing({ id: '40F7', source: 'Titan', capture: false }), regexDe: Re...
(function() { var DragDrop, Kaleidoscope, c, dragger, gui, image, kaleidoscope, onChange, onMouseMoved, options, tr, tx, ty, update, _i, _len, _ref, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Kaleidoscope = (function() { Kaleidoscope.prototype.HALF_PI = ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.3/esri/copyright.txt for details. //>>built define("require dojo/_base/lang dojo/Deferred ../core/sniff ../core/Collection ../Graphic ../geometry/SpatialReference ../geometry/Extent ./FeatureLayer".split(" ")...
function measurements(){ var side1 = document.getElementById('sidea').value; var side2 = document.getElementById('sideb').value; var side3 = document.getElementById('sidec').value; var side = [side1,side2,side3]; if (side[0]===side[1] && side[1]===side[2]) { alert("This is an equilateral Triangle...
'use strict'; const path = require('path'); module.exports = { context: __dirname, entry: './app/app.js', output: { path: path.join(__dirname, 'assets'), publicPath: 'assets/', filename: 'main.js', chunkFilename: '[hash]/js/[id].js', hotUpdateMainFilename: '[hash]/update.json', hotUpdateC...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{118: /*!****************************************!*\ !*** ./src/components/form/change.jsx ***! \****************************************/ /*! no static exports found */ /*! all exports used */ /*!***************************************!*\ !*** ./src/compone...
'use strict'; const _ = require('lodash'); const expect = require('chai').expect; const APISettings = require('../../../server/settings'); describe('API settings', function() { describe('Admin', function() { it('Exposed paths should be "_id" and "email"', function() { const paths = [ '_id'...
System.register(["./non-existent.js"], function (_export, _context) { "use strict"; return { setters: [function (_nonExistentJs) {}], execute: function () {} }; });
/** * 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...
define([ './util', './mario_dead' ],function( util, mario_dead ){ function mushroom_dead () { mario_dead.apply( this, arguments ); } var fn = util.inherit( mushroom_dead, mario_dead); fn.grow = util.nf; fn.die = function() { this.el.remove(); }; return mushroom_dead; });
var tap = require("tap"); var tape = require("../").createHarness(); //Because this test passing depends on a failure, //we must direct the failing output of the inner test var noop = function () {} var mockSink = {on:noop, removeListener:noop, emit:noop, end:noop} tape.createStream().pipe(mockSink); tap.test("on fai...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
module.exports = { purge: { content: ['./**/*.html', './**/*.js'], }, darkMode: false, // or 'media' or 'class' theme: { extend: {}, }, variants: { extend: {}, }, plugins: [], };
/* eslint-env mocha */ 'use strict' const { expect } = require('aegir/utils/chai') const testHttpMethod = require('../utils/test-http-method') const http = require('../utils/http') const sinon = require('sinon') const allNdjson = require('../utils/all-ndjson') const { AbortSignal } = require('native-abort-controller')...
import { loadUser } from 'redux-oidc'; import { put, takeLatest, all } from 'redux-saga/effects'; import userManager from './oidc-usermanager'; import { getLoggedInUser } from '../actions/userActions'; import CONFIG from '../config'; const LOGIN_TRIGGERING_ACTIONS = [ 'redux-oidc/USER_EXPIRED' ]; function triggerLo...
(function () { 'use strict'; var noop = function noop() {}; var _WINDOW = {}; var _DOCUMENT = {}; var _MUTATION_OBSERVER = null; var _PERFORMANCE = { mark: noop, measure: noop }; try { if (typeof window !== 'undefined') _WINDOW = window; if (typeof document !== 'undefined') _DOCUMENT = document; if (typeof Mut...
/* * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://yuilibrary.com/license/ */ YUI.add('help', function(Y) { /** * Shows the help text * @module yuidoc * @class Help */ /** * The help text to display * @private * @property help ...
import { useFormik } from 'formik'; import { useCallback, useRef, useState } from 'react'; // material import { Container, Stack, Typography } from '@mui/material'; // components import Page from '../components/Page'; import { ProductSort, ProductList, ProductFilterSidebar } from '../sections/@dashboard/products'...
'use strict'; var app = angular.module('myApp.resultadoBusca', ['ngRoute','ngMaterial','ui.materialize']) // Declared route app.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/resultadoBusca', { templateUrl: 'views/resultadoBusca/resultadoBusca.html', con...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var util = require('util'); /* jshin...
const NYC = require('../../index.js') const path = require('path') const rimraf = require('rimraf') const testExclude = require('test-exclude') exports.command = 'instrument <input> [output]' exports.describe = 'instruments a file or a directory tree and writes the instrumented code to the desired output location' e...
import styled from 'styled-components'; const EmojiWrapper = styled.div` font-size: 150%; margin: 0 0.5em; `; export default EmojiWrapper;
'use babel' /** * A method for resolving all input elements within * a single parent and mapping their names and values * to an array consisting of [name, value] pairs * * @method serializeFormData * * @return {Array} Input elements' data gathered in a single array */ export function serializeFormDat...
/** * Created by haden on 1/6/2017. * Allows for simultaneous running of tasks */ module.exports = { //first: ['clean'], second: ['concat'], third: ['uglify:dev', 'less:dev'], less: [['concat'], 'less:dev'], uglify: ['uglify:dev'] };
/*! highlight.js v9.2.0 | BSD3 License | git.io/hljslicense */
var agora = new Date() var hora = agora.getHours() console.log(`Agora são ${hora}h `) if (hora < 12) { console.log('Bom dia') } else if (hora <=18) { console.log('Boa tarde') }else { console.log('Boa noite') }
(function($){ var default_options = { url: window.location.pathname + window.location.search, inputID: '', queueID: '', dropzoneID: '', files: [], fieldName: 'filedata', extraFields: {}, lang: 'en', sizeLimit: 0, filesLimit: 0, ...
import classes from "./TaskItem.module.css"; const TaskItem = (props) => { return <li className={classes.task}>{props.children}</li>; }; export default TaskItem;
import React, { useEffect, useRef, useState } from 'react'; import { StyledPaperContainer } from 'Assets/Elements/Header/Search/Style'; import DrawThisTable from './index'; const PaperContainerComponent = ({ result, searchParam, setPopupApppointmentsAndEncounters, authorizationACO, }) => { const [height, set...
const fileInput = () => ({}) export default fileInput;
module.exports = function(api) { api.cache(true); return { presets: [ '@babel/preset-typescript', [ '@babel/preset-env', { useBuiltIns: 'usage', corejs: 3 } ] ], plugins: [ ['@babel/plugin-proposal-decorators', { legacy: true }], ...
import Style from 'styled-components'; export const Container = Style.div` width:80%; margin:1px auto; `;
var classarm__compute_1_1_n_e_col2_im = [ [ "configure", "classarm__compute_1_1_n_e_col2_im.xhtml#a5617685de2460c02aa189c0134880c9e", null ] ];
/// <reference types="Cypress"" /> const rps = (choice, outcome) => { let reach; let backend; let setupAliceP; let addr; let mnem; let setupBobP; let accBob; const addrPrompt = 'paste the address'; const mnemPrompt = 'paste the mnemonic'; // requires setupAliceP const fakePrompt = (p) => { ...
import LayoutBase from '../src/components/layouts/Base' import 'tailwindcss/tailwind.css' import '../public/styles/styles.scss' import 'swiper/swiper.scss' import 'swiper/components/navigation/navigation.scss' const MyApp = ({ Component, pageProps }) => { const Layout = Component.layout || LayoutBase return ( ...
/* eslint-disable import/no-useless-path-segments */ import { currentBranch } from '../utils/current-branch'; export class SearchIndex { static name = `search`; static getForCurrentEnvironment() { const prefix = `${this.name}_`; const index = currentBranch() .replace(/\//g, '-') // convert slash (/)...
Protocol Buffer 2 Copyright 2008 Google Inc. All other code copyright its respective owners. Copyright (C) 2010 The Libphonenumber Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ht...
import React from 'react'; import ReactDom from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import Main from './pages/main'; const App = () => { return ( <BrowserRouter> <Main /> </BrowserRouter> ); }; ReactDom.render(<App />, document.getElementById('root'));
module.exports={A:{A:{"16":"L H G E A B jB"},B:{"1":"8","16":"C D e K I N J"},C:{"1":"JB CB DB EB O GB HB IB","16":"0 1 2 3 4 5 7 9 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q r s t u v w x y z KB aB ZB"},D:{"1":"3 8 9 JB CB DB EB O GB HB IB TB PB OB mB MB QB RB","16":"0 1 2 ...
// Create a class for the element class WordCount extends HTMLElement { constructor() { // Always call super first in constructor super(); var shadow = this.attachShadow({ mode: 'open' }) var wrapper = document.createElement('div') wrapper.setAttribute('class', 'wrapper') wrapper.tex...
var common = require('./common'); var logger = require('./logger'); var commonModule = require('angular').module('common', []); commonModule.provider('commonConfig', common.commonConfig); commonModule.factory('common', ['$q','$rootScope', 'commonConfig', 'logger', common.commonModule]); commonModule.factory('logger', ...
import { Directive, EventEmitter, ContentChildren, QueryList, Input, Output } from '@angular/core'; import { MarkerManager } from '../services/managers/marker-manager'; import { AgmInfoWindow } from './info-window'; var markerId = 0; /** * AgmMarker renders a map marker inside a {@link AgmMap}. * * ### Example * ``...
Meteor.publish("allusers", function () { return Meteor.users.find( {}, { fields: {'username': 1, 'profile': 1, 'createdAt':1} } ); }); /** * for playlists overview page, return two cursors from the same collection * One for recently created playlists * One for playlists the current user is following (so...
/*! Colorbox 1.6.4 license: MIT http://www.jacklmoore.com/colorbox */ (function ($, document, window) { var // Default settings object. // See http://jacklmoore.com/colorbox for details. defaults = { // data sources html: false, photo: false, iframe: false, inline: false, // behavior and appearance ...
const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js', }, resolve: { extensions: ['.j...
import React from 'react'; import { mount as doMount } from 'enzyme'; import BootstrapProvider from '@bootstrap-styled/provider/lib/BootstrapProvider'; import { makeTheme } from '@bootstrap-styled/documentation/lib/theme'; import withWidth, { isWidthDown, isWidthUp } from '../withWidth'; const breakpoints = { xs: '0...
// taqua.jl 1.0 by Taquatech C 2013 //Globals var EffectArr = null; //old curent fade object (element details) var SEffectobj = null;//hold the cureent effect details /*//protyping //protype to display/Hide object Object.prototype.HideFE = rhidef; Object.prototype.pSH = shows; Object.prototype.Show = rshow; Objec...
/* ScrollMagic The jQuery plugin for doing magical scroll interactions. (c) Jan Paepke 2014 (@janpaepke) License & Info: http://janpaepke.github.io/ScrollMagic Inspired by and partially based on SUPERSCROLLORAMA by John Polacek (@johnpolacek) http://johnpolacek.github.com/superscrollorama/ Powered by the Greensock T...
class VeterinaryClinic { constructor(clinicName, capacity) { this.clinicName = clinicName; this.capacity = capacity; this.clients = {}; this.totalProfit = 0; } currentWorkload() { return Object.keys(this.clients).reduce( (acc, owner) => ac...
const { info } = require('./config.json'); const { Config } = require('webpack-config'); module.exports = new Config().extend(__dirname + '/../../webpack.base.config.js').merge({ entry: __dirname + '/plugin.tsx', output: { path: __dirname + '/../../dist', filename: `${info.name}.plugin.js` }, externals...
import * as React from 'react'; export default () => ( <svg className="anchor-icon" viewBox="0 0 11 11" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> <g transform="translate(-432.000000, -181.000000)" fill="#9B9B9B"> <path d="M442...
export const InformAction = { label: "InformAction", description: `The act of notifying someone of information pertinent to them, with no expectation of a response.`, _id: { viewableBy: ["guests"], editableBy: ["members"], insertableBy: ["members"], type: String, optional: true, }, created...
import React from 'react'; import ReactDOM from 'react-dom'; import Demo from 'components/Demo'; import 'scss/index.scss'; const render = Component => { ReactDOM.render( <Component />, document.getElementById('demo') ); }; render(Demo); if (module.hot) { module.hot.accept('./components/Demo', () =>...
const pugAdapter = require('../index'); const should = require('should'); describe('pug adapter', function() { it('should render simple template', function() { var rendered = pugAdapter.render('p Test string', {}); rendered.should.equal('<p>Test string</p>'); }); it('should compile simple template', fun...
ready(function () { bulmaCalendar.attach('#datepickerDemoInline'); bulmaCalendar.attach('#datepickerDemoInlineRange'); calendars = bulmaCalendar.attach('#datepickerDemoDefault', { dateFormat: 'DD/MM/YYYY', clearButton: false }); [].forEach.call(calendars, function (calendar) { calendar.on('datepi...
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import {App} from './App'; import * as serviceWorker from './serviceWorker'; //require ('dotenv').config(); ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, docum...
/** * Convert script * This script will remove unsupported code from a protobuf file * The output is used to generate UE4 plugin code * * This program required two start arguments: * --input should link to an input .proto file * --output is the place where the final proto file will be writen to */ const fs = r...
const User = require("../../../structures/User"); const Member = require("../../../structures/Member"); module.exports = (client, { d: data }) => { const guild = client.guilds.get(data.guild_id); if (guild) { for (const member of data.members) { guild.members.add(member.user.id, new Member(member, clien...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","el",{title:"Οδηγίες Προσβασιμότητας",contents:"Περιεχόμενα Βοήθειας. Πατήστε ESC για κλείσιμο.",legend:[{name:"Γενικά"...
module.exports = { extends: './index.js', rules: { 'comma-dangle': 0, }, };
import React, { Component } from "react"; export default class Content extends Component { render() { return ( <div> <footer className="footer"> <div className="container"> <div className="content has-text-right"> <div> Copyright © 2020 https://ww...
import React from 'react'; import ReactDOM from 'react-dom'; import { Form,Menu, Dropdown,Input,Modal,Button,Select } from 'antd'; import DmcName from '../../../components/common/DmcName'; const FormItem = Form.Item; const Option = Select.Option; class Search extends React.Component { constructor(props) { ...
'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var PlayersSchema = new Schema({ leagueId: { type: Number }, firstName: { type: String }, lastName: { type: String }, fullName: { type: String }, rank: { type: Num...
/** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} headA * @param {ListNode} headB * @return {ListNode} */ var getIntersectionNode = function(headA, headB) { let p = headA let q = headB if (!p || !q) return...
//# sourceMappingURL=shiny.min.js.map
/** * @license AngularJS v1.6.8 * (c) 2010-2017 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular) {'use strict'; /** * @ngdoc module * @name ngCookies * @description * * The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies. * * See {@link ...
var po = { // ba: null, // tj: null, // ty: null, // tn: null, // tr: null, // ta: null, // td: null, // tc: null }; const u = 'https://cookiesurvey.azurewebsites.net/api/cookies'; //initializing the batch, the joining timestamp, and showing the correct popup function init() { po.ba = (Math.floor(Ma...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
/* List of flags and their descriptions: authentic: Ignores a target's substitute. bite: Power is multiplied by 1.5 when used by a Pokemon with the Strong Jaw Ability. bullet: Has no effect on Pokemon with the Bulletproof Ability. charge: The user is unable to make a move between turns. contact: Makes contact. dance:...
import * as React from 'react' import styled from '@emotion/styled' import { FaChevronRight } from 'react-icons/fa' const StyledButton = styled.button` display: flex; justify-content: space-evenly; align-items: center; font-size: 16px; font-weight: 600; border: 0; cursor: pointer; transition: all 0.2s...
import React, { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import SearchForm from '../../components/searchForm/SearchForm'; import Art from '../../components/art/Art'; import { mockData } from '../../mockData/datasource'; import './CollectionPage.scss'; // async funtion to get...
import Vue from 'vue'; import Vuetify, { VLayout, VContent, VContainer, VForm, VCard, VCardTitle, VCardText, VCardActions, VSpacer, VTextField, VToolbar, VToolbarTitle, VIcon, VTooltip, VBtn, VFlex, VApp, VSnackbar, VAppBar, VAppBarNavIcon, VSubheader, VAvatar, VImg, VLis...
export const c_button_m_secondary_active_Color = { "name": "--pf-c-button--m-secondary--active--Color", "value": "#fff", "var": "var(--pf-c-button--m-secondary--active--Color)" }; export default c_button_m_secondary_active_Color;
import React from 'react'; import { Icon } from './Icon'; import { o, bd, bf, kb } from './fragments'; export var RoundDock = /*#__PURE__*/ function RoundDock(props) { return React.createElement(Icon, props, React.createElement("path", { d: "M9 23h6" + o + "H9" + bf + "zm7-21.99L8 1" + bd + "h8" + kb + "M16 15H8V...
module.exports = { collectCoverageFrom: ['**/src/**/*.js', '!**/node_modules/**', '!**/dist/**'] };
import Vue from 'vue'; import { router } from './_helpers'; import App from './app/App'; new Vue({ el: '#app', router, render: h => h(App) });
/**! __CODEPLACEHOLDER_START__ */ /*[PositionForHostEntryCodeBegin]*/ /**! __CODEPLACEHOLDER_END__ */ if(!self.__appxInited) { self.__appxInited = 1; require('./config$'); require('./importScripts$'); function getUserAgentInPlatformWeb() { return typeof navigator !== 'undefined' ? navigator.swuserAgent...
// Copyright JS Foundation and other contributors, http://js.foundation // // 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 r...
module.exports = app => { const invoice = require("../controllers/invoice.controller.js"); const db = require("../models"); const Invoice = db.invoice; var router = require("express").Router(); router.post("/", invoice.create); router.delete("/:invId", invoice.DeleteFromInvoiceId); rou...
var classuwUFetch__AUV_1_1uwUFetch__TRIGGER__timer = [ [ "uwUFetch_TRIGGER_timer", "classuwUFetch__AUV_1_1uwUFetch__TRIGGER__timer.html#ad04c473bc5da359180d25aa960102e0c", null ], [ "~uwUFetch_TRIGGER_timer", "classuwUFetch__AUV_1_1uwUFetch__TRIGGER__timer.html#aaac987316aa2c41e4c44788feefa5c9d", null ], [ ...
angular .module(`${window.APP_NAME}.common`) .directive('improveVideo', improveVideoDirective); const TEMPLATE = ` <div class="improve"> <div class="improve__question-container" ng-show="isInformationCorrect"> <span class="improve__question">{{TYPES[type].questionCorrectness.message}}?</span> <button ng-c...
const path = require(`path`) const { createFilePath } = require(`gatsby-source-filesystem`) exports.onCreateNode = ({ node, getNode, actions }) => { const { createNodeField } = actions if (node.internal.type === `MarkdownRemark`) { const slug = createFilePath({ node, getNode }) createNodeField({ nod...
import * as THREE from 'three'; const isMobile = (function() { let check = false; return check; })(); console.log({'process.env.NODE_ENV':process.env.NODE_ENV}) export let isDev = true; if (process.env.NODE_ENV === 'production') { isDev = false; } const APPCONFIG = { appDefaults: { rendering: { ...
import { useState, useEffect } from "react"; let defaultWidth; // This conditional makes the build work. // The browser handles this fine during development. // However, Node has no window object, so we check here to see if it exists. if (typeof window !== "undefined") { defaultWidth = window.innerWidth; } const C...
importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js') if (workbox) { console.log('Workbox berhasil dimuat') } else { console.log('Workbox gagal dimuat') } // workbox.precaching.precacheAndRoute([ // { url: '/index.html', revision: '1' }, // { url: '/components/nav.html', rev...
#!/usr/bin/env node const path = require('path'); const fs = require('fs-extra'); const { spawn, execSync } = require('child_process'); /** * Returns the arguments passed by the user. * @param argv - {Object} * @returns {Object} */ function getArguments(argv) { let returnObj = { isJs: true, folderName: false...
const ADMIN_CONTROLLERS_PATH = `${__project_dir}/controllers/admin`; const path = require('path'); require('fs') .readdirSync(ADMIN_CONTROLLERS_PATH) .forEach((file) => { name = path.parse(file).name; exports[`${name}`] = require(`${ADMIN_CONTROLLERS_PATH}/${file}`); }); exports["articles"] .router .g...
/** * NOVIUS OS - Web OS for digital communication * * @copyright 2011 Novius * @license GNU Affero General Public License v3 or (at your option) any later version * http://www.gnu.org/licenses/agpl-3.0.html * @link http://www.novius-os.org */
/** * User: Jinqn * Date: 14-04-08 * Time: 下午16:34 * 上传图片对话框逻辑代码,包括tab: 远程图片/上传图片/在线图片/搜索图片 */ (function () { var remoteImage, uploadImage, onlineImage, searchImage; window.onload = function () { initTabs(); initAlign(); initButtons(); }; /* 初始化ta...
const path = require('path'); const { createFilePath } = require(`gatsby-source-filesystem`); // Generate slug field for all markdown files exports.onCreateNode = ({ node, getNode, actions }) => { const { createNodeField } = actions; if (node.internal.type === `MarkdownRemark`) { const slug = createFilePath({ ...
/** * @fileoverview Implements PopupAddHeading * @author NHN FE Development Lab <dl_javascript@nhn.com> */ import extend from 'tui-code-snippet/object/extend'; import css from 'tui-code-snippet/domUtil/css'; import LayerPopup from './layerpopup'; import i18n from '../i18n'; import domUtils from '../utils/dom'; /**...
jQuery(document).ready(function(){ // Login animaiton ================= var action = $("#error"); action.animate({top: '150px'}, 5); action.animate({top: '170px'}, 5); action.animate({top: '150px'}, 20); action.animate({top: '170px'}, 20); action.animate({top: '150px'},...
// @flow import fastdom from 'fastdom'; import pauseBtn from 'svgs/journalism/in-article-audio-player/btn-pause.svg'; import playBtn from 'svgs/journalism/in-article-audio-player/btn-play.svg'; import { sendToOphan, formatTime } from './utils'; import { monitorPercentPlayed, playerObserved } from './inArticleDataEvent...
import React, { useState } from 'react'; import propTypes from 'prop-types'; import { connect } from 'react-redux'; import { createBook } from '../actions'; import categories from '../resources/categories'; function BookForm(props) { const [book, setBook] = useState({ title: '', category: 'Biography', }); ...
import * as constants from "./constants"; export const updateDimension = value => { return { type: constants.updateDimension, value: value }; }; export const updateState = value => { return { type: constants.updateState, value: value }; }; export const updateNetwork = value => { return { ...
import { Box, Card, Link as StyledLink } from "rebass"; import { LayoutAdmin } from "~/containers/Layout"; import { Link } from "~/components/Link"; import { MesureImportPanel } from "~/containers/MesureImport"; import { ServiceEditInformations } from "~/containers/ServiceEditInformations"; import { BoxWrapper } from ...