text
stringlengths
2
1.04M
'use strict'; angular.module('solrpressApp') .config(function ($stateProvider) { $stateProvider .state('audits', { parent: 'admin', url: '/audits', data: { roles: ['ROLE_ADMIN'], pageTitle: 'audits.title' ...
import React from 'react'; import PropTypes from 'prop-types'; import { StaticQuery, graphql } from 'gatsby'; import Nav from './nav'; import './layout.css'; import Header from '../gatsby-theme-blog/components/header'; const GET_META_TITLE = graphql` query SiteTitleQuery { site { siteMetadata { ti...
import React from 'react' import { Link, graphql } from 'gatsby' import Bio from '../components/bio' import Layout from '../components/layout' import SEO from '../components/seo' import { rhythm } from '../utils/typography' const BlogIndex = ({ data, location }) => { const siteTitle = data.site.siteMetadata.title ...
'use strict'; const addToArray = require('../../lib/addToArray'); describe('addToArray', () => { it('adds item to array and returns its index', () => { const gltf = { buffers: [] }; const buffer0 = { byteLength: 100 }; const buffer1 = { by...
//# sourceMappingURL=4.e823d7af.chunk.js.map
const httpStatus = require('http-status'); const pick = require('../utils/pick'); const catchAsync = require('../utils/catchAsync'); const { danhMucDeXuatService } = require('../services'); /** * find */ const find = catchAsync(async (req, res) => { const result = await danhMucDeXuatService.find(); res.send(resu...
import _ from 'underscore'; import moment from 'moment'; const LivechatRoom = new Mongo.Collection('livechatRoom'); Template.livechatCurrentChats.helpers({ livechatRoom() { return LivechatRoom.find({ t: 'l' }, { sort: { ts: -1 } }); }, startedAt() { return moment(this.ts).format('L LTS'); }, lastMessage() { ...
import React, { Component } from "react"; class PostPage extends Component { render() { const { data } = this.props; if (!data) return null; return ( <div> <span>{data.contentfulBlogPost.date}</span> <h1>{data.contentfulBlogPost.title}</h1> <div dangerouslySetInner...
'use strict'; const express = require('express'); require('dotenv').config(); const app = express(); const notFound = require('./error-handler/404'); const error = require('./error-handler/500'); const foodRouter = require('./routes/food.route'); const clothesRouter = require('./routes/clothes.route'); const PORT...
/** * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * ...
// Show shipping address function showShippingAddress(contador){ var view = document.getElementById("viewShippingAddress"+contador); var show = document.getElementById("shippingAddress"+contador); show.style.display = "block"; view.innerHTML = ""; view.style.marginBottom = "2%"; } // Hide shipping address func...
module.exports = { "env": { "mocha": true, "node": true }, ...require('../../eslint.config.js') }
module.exports = { extends: [ './index.js', 'plugin:@typescript-eslint/recommended' ], // the ts-eslint recommended ruleset sets the parser so we need to set it back parser: require.resolve('vue-eslint-parser'), rules: { // this rule, if on, would require explicit return type on the `render` f...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
const path = require("path"); const { merge } = require("webpack-merge"); const common = require("./webpack.common.js"); const HtmlWebpackPlugin = require("html-webpack-plugin"); module.exports = merge(common, { mode: "development", devtool: "inline-source-map", devServer: { contentBase: path.resolve(__dirna...
App.$(document).on("init-wysiwyg-editor", function(e, editor) { if (editor.settings.modified !== undefined) { return; } if (editor.settings.format === undefined) { return; } App.callmodule("editorformats:getEditorFormat", [ editor.settings.format ], "access").then(function(data) { if (data...
function Computer() { this.unlocked = 0; this.threads = 1; this.freeThreads = 1; this.speed = 1; this.tick = function() { for(var i = 0; i < this.processes.length; i++) { this.tickRow(this.processes[i], this.speed * this.processes[i].threads); } }; this.tickRow ...
/** * 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'); window.Vue = require('vue'); /** * The following block of code may be ...
/** * Jdenticon * https://github.com/dmester/jdenticon * Copyright © Daniel Mester Pirttijärvi */ "use strict"; var dom = { /** @const */ ICON_TYPE_SVG: 1, /** @const */ ICON_TYPE_CANVAS: 2, /** @const */ HASH_ATTRIBUTE: "data-jdenticon-hash", /** @const */ VALUE_ATTRIBU...
// DATA_TEMPLATE: empty_table oTest.fnStart( "oLanguage.sLengthMenu" ); $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable( { "bServerSide": true, "sAjaxSource": "../../../examples/server_side/scripts/server_processing.php" } ); var oSettings = oTable.fnSettings(); ...
import React, { useRef } from 'react'; import { IconButton, ButtonGroup, Tooltip, TextField } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import TitleIcon from '@material-ui/icons/Title'; import FormatSizeIcon from '@material-ui/icons/FormatSize'; import StopIcon from '@material-ui/...
const express = require('express'); const shipping = require('./shipping'); const inventory = require('./inventory'); const cors = require('cors'); const app = express(); app.use(cors()); /** * Retorna a lista de produtos da loja via InventoryService */ app.get('/products', (req, res, next) => { inventory.Searc...
import * as TreeViewModule from "/scripts/tree-view.js"; window.onload = function () { //创建控制元素折叠展开的子菜单 let visibilityMenu = { text: "Manage Visibility", icon: "/image/tree.png", submenu: [] }; visibilityMenu.submenu.push({ text: "Toggle Node", icon: "/image/lea...
'use strict' // Template version: {{ template_version }} // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { {{#axios}} '/api': { tar...
var annotated = [ [ "GroupListDelegate", "class_group_list_delegate.html", "class_group_list_delegate" ], [ "GroupListGroup", "class_group_list_group.html", "class_group_list_group" ], [ "GroupListWidget", "class_group_list_widget.html", "class_group_list_widget" ], [ "GroupModel", "class_group_model.ht...
'use strict'; angular.module('myApp.view1', []).controller('View1Ctrl', ['$scope', '$rootScope', 'myService', '$http', '$uibModal', '$cookies', '$sce', function ($scope, $rootScope, myService, $http, $uibModal, $cookies, $sce) { $scope.dataFromCtrl3 = $rootScope.data; $scope.userList = false; ...
const tape = require('tape'); const childProcess = require( 'child_process' ); const path = require('path'); const temp = require('temp').track(); const fs = require('fs'); const EOL = require('os').EOL; const _ = require('lodash'); tape('worker tests', (test) => { test.test('requested lat/lon inside a polygon shoul...
const cheerio = require('cheerio') const request = require('supertest') const app = require('../app.js') const extractCsrfToken = res => { var $ = cheerio.load(res.text) return $('[name=_csrf]').val() } const withCSRF = (_cookie, _csrf) => { return request => { request.set('Cookie', _cookie).send({ _csrf })...
import React from 'react' import Typography from '@material-ui/core/Typography' import Button from '@material-ui/core/Button' import Card from '@material-ui/core/Card' import CardActions from '@material-ui/core/CardActions' import CardContent from '@material-ui/core/CardContent' import TextField from '@material-ui/core...
// Ajax Call to Select Truck and Display Cost function selectTruck(truck_id) { $.ajax({ url : "selectTruck?truckID="+truck_id, type : "GET", dataType : "json", success : function(result) { var cost_html = "<center><h5>APPROX. &#8377; " + result.cost + " ONLY </h5></center>"; ...
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { StaticQuery, graphql } from 'gatsby'; import { Location } from '@reach/router'; import schemaGenerator from 'helpers/schemaGenerator'; const Head = ({ siteTitle, siteDescription, siteUrl, pageTitle, ...
import React from "react"; const colorVaga = (status) => { if(status === 'ATIVA') return ('badge-success') if(status === 'DESATIVADA') return ('badge-secondary') if(status === 'BLOQUEADA') return ('badge-danger') if(status === 'CONCLUIDA') return ('badge-primary') if(status === 'EM_ANDAMENTO') return ('badge...
/*! * jQuery JavaScript Library v2.1.1 -dimensions,-effects,-effects/Tween,-effects/animatedSelector,-offset,-css/hiddenVisibleSelectors,-wrap * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT licen...
(function() { 'use strict'; describe('service githubContributor', function() { var githubContributor; var $httpBackend; var $log; beforeEach(module('solution')); beforeEach(inject(function(_githubContributor_, _$httpBackend_, _$log_) { githubContributor = _githubContributor_; $http...
import Category from '../model/Category.js'; import validateRequest from '../validator/validateRequest.js'; const AdController = { getCategories: async (req, res) => { const cats = await Category.find(); let categories = []; for (let i in cats) { categories.push({ ...
var _ = function(){ var action = new PlugIn.Action(function(selection){ var isometricLib = this.IsometricLib newGeometry = selection.graphics[0].geometry newGeometry.size = isometricLib.scaleX(newGeometry.size, 2 / Math.sqrt(3)) selection.graphics[0].geometry = newGeometry }); ...
import settings from '../../globals/js/settings'; import eventMatches from '../../globals/js/misc/event-matches'; import ContentSwitcher from '../content-switcher/content-switcher'; import on from '../../globals/js/misc/on'; class Tab extends ContentSwitcher { /** * Container of tabs. * @extends ContentSwitche...
/* ! * Tencent is pleased to support the open source community by making Tencent Server Web available. * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy...
const argv = require('yargs').argv const clc = require('cli-color') const looksSame = require('looks-same') const puppeteer = require('puppeteer') let code = 0 async function run (testCase) { const browser = await puppeteer.launch({ // debug mode, uncomment this to see the browser // headless: false }) ...
import * as types from '../mutations-type' const map3dConfig = { state: { map3dConfig:{}, map3dLayers:{}, centerTab3d:[] }, getters: { get3dMapConfig: state => { return state.map3dConfig; }, get3dMapLayers: state => { return state.map3dLayers; }, getCenterTab3d: state...
import express from 'express'; import cors from 'cors'; import request from 'request' function parseProxyParameters(proxyRequest){ const params = {} // url - treat everything right to url= query parameter as target url value const urlMatch = proxyRequest.url.match(/(?<=[?&])url=(?<url>.*)$/) if(urlMatch) { ...
/** * Created by J&D on 21/12/2017. */ $('#form-message').submit(function(){ //alert(); $.smallBox({ title : "! Se mensaje fue enviado con éxito !", content : "<i class='fa fa-clock-o'></i><i>hace 1 segundo...</i>", color : "#5F895F", iconSmall : "fa fa-check bounce animated",...
"use strict"; /* * 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 dif...
const mysql = require('mysql'); require('dotenv').config(); const myConnection = mysql.createConnection({ host: 'localhost', port: 3306, user: process.env.DB_USERNAME, password: process.env.DB_PASSWORD, database: process.env.DB_NAME }); myConnection.connect((err) => { if (err) throw err }) ...
import { Builder as IntentsBuilder } from './intents'; export class Builder { constructor(lang) { this.builder = new IntentsBuilder(lang); this.handlers = new Map(); this.id = 0; } action(id) { // Auto assign an id if(! id) id = ('__auto__' + ++this.id); const builder = this.builder.intent(id); con...
import { expect } from 'chai'; import { spec } from 'modules/yieldmoBidAdapter.js'; import * as utils from 'src/utils.js'; describe('YieldmoAdapter', function () { const BANNER_ENDPOINT = 'https://ads.yieldmo.com/exchange/prebid'; const VIDEO_ENDPOINT = 'https://ads.yieldmo.com/exchange/prebidvideo'; const mock...
import './Entity.css'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from '../../lib/classnames'; import getClassName from '../../helpers/getClassName'; import Avatar from '../Avatar/Avatar'; const baseClassNames = getClassName('Entity'); // @TODO Try to load photo /*...
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed ...
const request = require('supertest'); const {Movie} = require('../../../models/movie'); const {Genre} = require('../../../models/genre'); const {User} = require('../../../models/user'); const mongoose = require('mongoose'); let server; let genre; describe('/api/movies', () => { beforeEach(async () => { se...
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) { ext...
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactCollapsibleControls/VolumeControl.mcss'; import CollapsibleWidget from '../../Widgets/CollapsibleWidget'; import EqualizerWidget from '../../Widgets/EqualizerWidget'; import LightButton from '../../Widgets/ToggleIconButton...
const mongoose = require('mongoose'); async function db() { try { await mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost/todos_generatordb', { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false, useCreateIndex: true ...
'use strict'; /** * Module dependencies */ var path = require('path'); var through = require('through2'); var verbfiles = ['.verb.md', '.verbrc.md']; module.exports = function readme() { return through.obj(function (file, enc, cb) { if (verbfiles.indexOf(path.basename(file.path)) !== -1) { file.path = ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["newFile"],{ /***/ "./newFile.js": /*!********************!*\ !*** ./newFile.js ***! \********************/ /*! no static exports found */ /***/ (function(module, exports) { // code splitting - module bundeling - lazy loading console.log("new file wit...
/** * Copyright (c) 2014 brian@bevey.org * * 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, pu...
const mysql = require('mysql'); const inquirer = require('inquirer'); const table = require('console.table'); const connection = mysql.createConnection({ host: 'localhost', port: 3306, user: 'root', password: 'Joyce_Stacy_20&', database: 'employees_db', }); const promptUser = async () => { ...
// Generated by CoffeeScript 1.12.6 /* Intention Data Action Document Workflow Interface Actor Reserve Prototype */ (function() { var previousRequire, ref, require, resolve, use_cache; if ((typeof window !== "undefined" && window !== null) && (((ref = window.modules) != null ...
'use strict'; angular.module('libappApp') .factory('MonitoringService', function ($rootScope, $http) { return { getMetrics: function () { return $http.get('metrics/metrics').then(function (response) { return response.data; }); }, ...
import React from 'react' import { Link, graphql } from 'gatsby' import Layout from '../components/layout' import './index.css' const IndexPage = (props) => { const postList = props.data.allMarkdownRemark; return ( <Layout> {postList.edges.map(({ node }, i) => ( <Link key={i} to={node.fields.path...
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export type Path = string; export type Glob = string; export type HasteConfig = {| defaultPlatform?:...
OC.L10N.register( "files_external", { "External storages" : "Armazenamento externo", "Personal" : "Pessoal", "System" : "Sistema", "Grant access" : "Conceder acesso", "Error configuring OAuth1" : "Erro ao configurar OAuth1", "Please provide a valid app key and secret." : "Por favor, indi...
'use strict'; /* * Request * * Copyright(c) 2014 Francois-Guillaume Ribreau <npm@fgribreau.com> * MIT Licensed * */ var request = require('request'); var _ = require('fg-lodash'); var RetryStrategies = require('./strategies'); var DEFAULTS = { maxAttempts: 5, // try 5 times retryDelay: 5000, // wait for 5s...
const { cyan, green, yellow, underline, red, dim } = require('kleur'); const { MigrationError } = require('./util'); exports.info = msg => { console.log(cyan('[ley] ') + msg); } exports.done = (type, arr) => { let msg = ''; if (type === 'new') { msg += 'Created ' + green('1') + ' file:'; msg += green().dim('\...
import React, { useState, useEffect } from 'react'; import Checkbox from '../../Checkbox/Checkbox'; import style from './FavoriteItem.module.scss'; import PropTypes from 'prop-types'; import { cutValueAfterPoint } from '../../../utils'; const FavoriteItem = ({ id, name, symbol, number, priceUsd, changePer...
const staticMatanHome = "matan-mashraki-home" const assets = [ "/index.html", "/assets/css/style.css", "/assets/js/data.js", "/assets/js/script.js", "/assets/js/themer.js", "/assets/icon/maskable-icon512.png", "/assets/icon/icon192.png", "/assets/icon/favicon.png", "/assets/icon/any-...
import { c as createCommonjsModule, a as commonjsRequire, b as moment, d as commonjsGlobal } from './moment-456daee2.js'; var srCyrl = createCommonjsModule(function (module, exports) { (function (global, factory) { typeof commonjsRequire === 'function' ? factory(moment) : factory(global.moment); }(commonjsGlobal...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @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 */ const core_1 = require("@angular-devkit/...
$(document).ready(function () { changeSponsorType(); $('select#SponsorType').change(changeSponsorType); $('button#submitButton').click(function (e) { $('p.error-msg').fadeOut('slow'); var valid = true; $('.mandatory').each(function (i, element) { if ($(element).val...
const test = require("ava") const fileNameParser = require("../../file-name-parser") test("parse name: 1.sql", t => { const parsed = fileNameParser("1.sql") t.deepEqual( parsed, { id: 1, name: "1.sql", type: "sql", }, "should parse correctly without name, the parsed name must be ...
/** * @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 */ import { __read, __values } from "tslib"; export function parseCookieValue(cookieStr, name) { var e_1, _a; na...
module.exports = { // testEnvironment: "jsdom", // preset: ["@babel/preset-env", "@babel/preset-react"], roots: ["../"], setupFilesAfterEnv: ["<rootDir>/setupTests.js"], // transformIgnorePatterns: [ // 'node_modules/?!core-js', // ], transform: { "^.+\\.(j|t)sx?$": "babel-jest", "^.+\\.(ts|ts...
/** * @license Angular v4.0.0-rc.4-b7212f5 * (c) 2010-2017 Google, Inc. https://angular.io/ * License: MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : typeof define === 'function' && ...
/** * This file holds The SEO Framework plugin's JS code for the Post SEO Settings. * Serve JavaScript as an addition, not as an ends or means. * * @author Sybre Waaijer <https://cyberwire.nl/> * @link <https://wordpress.org/plugins/autodescription/> */ /** * The SEO Framework plugin * Copyright (C) 2019 - 202...
(function(window, undefined){ /** * A static closure to provide easy access to the console * without having errors if the console doesn't exist * to use call: Debug.log('Your log here') * * @class Debug * @static */ var Debug = function(){}; /** * If we have a console * * @private * @property ...
/* global describe beforeEach it */ const {expect} = require('chai') const db = require('../index') const Product = db.model('product') const Cart = db.model('cart') describe('Product model', () => { beforeEach(() => { return db.sync({force: true}) }) describe('column definitions and validations', () => { ...
import { css, keyframes } from "styled-components" const moveInLeft = keyframes` 0% { opacity: 0; transform: translateX(-10rem); } 100% { opacity: 1; transform: translate(0); } ` export const moveInLeftAnimation = css` animation: ${moveInLeft} 1s ease-in-out .3s both `
var searchData= [ ['queue_5fmode',['queue_mode',['../namespacegrppi.html#aa0514650a765d4853343655e7588662b',1,'grppi']]] ];
import React from "react"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import store from "./store"; import { App } from "./components"; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById("root") );
// Generated by CoffeeScript 2.5.1 (function() { // `nodes.coffee` contains all of the node classes for the syntax tree. Most // nodes are created as the result of actions in the [grammar](grammar.html), // but some are created by other nodes as a method of code generation. To convert // the syntax tree into a ...
hljs.registerLanguage("dockerfile",function(e){return{aliases:["docker"],cI:!0,k:"from maintainer expose env arg user onbuild stopsignal",c:[e.HCM,e.ASM,e.QSM,e.NM,{bK:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{e:/[^\\]\n/,sL:"bash"}}],i:"</"}});
var modules = [ [ "API", "group___a_p_i.html", "group___a_p_i" ], [ "Framework", "group___framework.html", "group___framework" ] ];
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-399ca71f.js'); var React = require...
import { Component, h } from 'preact'; /** * This solves a problem of subroutes reacting * to route changes when they are being animated out. * * @class TransitionElement * @private */ class TransitionElement extends Component { shouldComponentUpdate (nextProps) { return !nextProps.preventUpdating;...
export { default } from './dist/manifestation-vue.common' export * from './dist/manifestation-vue.common' import './dist/manifestation-vue.css'
import { Link } from 'gatsby' import React from 'react' import styled from 'styled-components' import tw from 'tailwind.macro' import Moment from 'react-moment' import { buildImageObj, cn, getBlogUrl } from '../../lib/helpers' import { imageUrlFor } from '../../lib/image-url' import BlockText from '../block-text' cons...
/* Description: You are working at a lower league football stadium and you've been tasked with automating the scoreboard. The referee will shout out the score, you have already set up the voice recognition module which turns the refs voice into a string, but the spoken score needs to be converted into an array for the...
import Notifications from './Notifications.vue'; const NotificationStore = { state: [], // here the notifications will be added removeNotification(index) { this.state.splice(index, 1); }, notify(notification) { this.state.push(notification); }, }; const NotificationsPlugin = { install(Vue) { ...
const express = require('express'); const app = express(); const port = 8080; app.get('/', (req, res) => res.send('Seth Is Shot, bitch')); app.listen(port); console.log(`App running on http://localhost:${port}`);
/* @license dhtmlxScheduler v.5.3.12 Standard To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com (c) XB Software Ltd. */ Sch...
import { ApolloClient } from 'apollo-boost' import { HttpLink } from 'apollo-boost' import { InMemoryCache } from 'apollo-boost' import fetch from 'isomorphic-unfetch' let apolloClient = null // Polyfill fetch() on the server (used by apollo-client) if (!process.browser) { global.fetch = fetch } function create(in...
angular.module('app', [ 'ngRoute' ]);
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Loading...</div>; } //console.log(video); const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-deta...
"use strict" module.exports = function () { String.prototype.toProperCase = function () { return this.replace(/\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }; String.prototype.toCapLetter = function () { return this.cha...
// https://apps.apple.com/tr/app/userscripts/id1463298887 // License: MIT // copyright 2022 ihsan - ihsanl at pm dot me // ==UserScript== // @name geeksforgeeks // @description removes cookie div // @match *://*.geeksforgeeks.org/* // ==/UserScript== var removebyid = []; var removebyclass = [ "cookie-...
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('Pets', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, name: { allowNull: false, type: Sequelize.STRING(150) }, petTypeId: { ...
import Vue from 'vue' import App from './App.vue' import './registerServiceWorker' import router from './router' import store from './store' import "./style/init.scss" import 'font-awesome/css/font-awesome.css'; import axios from 'axios'; import qs from 'qs'; axios.defaults.baseURL = process.env.VUE_APP_URL; Vue.prot...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from "react"; import { Provider } from "react-redux"; import rootStore from "./store/root.js"; import HomeContainer from "./containers/HomeContainer.js"; import RootNavigatorView from "./view/RootNavigat...
import React, { Component } from "react"; import axiosInstance from "../axiosApi"; import DjangoCSRFToken from "django-react-csrftoken"; class Login extends Component { constructor(props) { super(props); this.state = { username: "", password: "" }; } handleChange = () => { this.setState({ [event.tar...
/** * @license * Copyright (c) 2017 - 2022 Vaadin Ltd. * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ */ class Material extends HTMLElement{static get version(){return"22.0.5"}}customElements.define("vaadin-material-styles",Material);export{Material};
import AuthForm, { STATE_LOGIN } from 'components/AuthForm'; import React from 'react'; import { Button, Modal, ModalBody } from 'reactstrap'; class AuthModal extends React.Component { state = { show: true, authState: STATE_LOGIN, }; toggle = () => { this.setState({ show: !this.state.show, ...