text stringlengths 7 3.69M |
|---|
module.exports = function (p) {
'use strict';
var through = require('through2')
, path = require('path')
, fs = require('fs');
function replace(file, cb) {
var string = String(file.contents)
, res = [];
string = string.replace(/\<inline.*?src\=('|")(.*?)\1.*?\/?\>/g, function (all, quz, sr... |
//declare variables
var express = require("express"),
app = express(),
bodyParser = require("body-parser"),
methodOverride = require("method-override"),
mongoose = require("mongoose"),
auth = require("./config/auth"),
passport = require("passpor... |
(function() {
'use strict';
var app = angular.module('app', [ 'smart-table', 'lrDragNDrop' ]);
app.factory('DOMUtilService', function($rootScope) {
var domUtils = {
getElementBox: getElementBox,
adjustExpandedRows: adjustExpandedRows
};
return domUtils;
function getElementBox(elem... |
var app = angular.module("setPoints", []);
//app.controller("points", function($http, $scope) {
// var controller = this;
//
// controller.updatePoints = [];
// $scope.updatePoints = function() {
// };
//
// $http.post("/rating", Userpoints);
//
//});
app.controller("score", function($http, $scope) {
var... |
import React, { Component } from 'react'
export default class UserContainer extends Component {
render() {
console.log('userC: ',this.props)
return (
<>
<p className='user-name'>{this.props.details.first_name} {this.props.details.last_name}</p>
{/* <p onClick={this.handleSubmit} classN... |
var twttr = {
"txt": {
"regexen": {
"spaces_group": function () {},
"spaces": function () {},
"invalid_chars_group": function () {},
"punct": function () {},
"rtl_chars": function () {},
"nonLatinHashtagChars": function () {},
... |
app.controller("myCtrl", function($scope) {
$scope.name = "";
$scope.getName = function() {
if($scope.name === "")
return $scope.name;
else
return("Hello " + $scope.name);
}
$scope.alertName = function() {
window.alert("Hello " + $scope.name);
}
});
|
import React, { useState, useEffect } from "react";
const EditUser = ({ user, index, updateUser }) => {
const { name, share, paid } = user;
const [userName, setUserName] = useState(name);
const [userShare, setUserShare] = useState(share);
const [userPaid, setUserPaid] = useState(paid);
useEffect(() => {
update... |
"use strict";
/* packages
========================================================================== */
var Busboy = require("busboy");
var mongoose = require("mongoose");
var fs = require("fs");
var zlib = require("zlib");
/* controllers and models
==================================================================... |
import React, { useState } from "react";
import {
Button,
Layout,
Row,
Col,
Typography,
Card,
Input,
Divider,
Carousel,
} from "antd";
import ExternalLink from "./components/ExternalLink";
import RightCardPages from "./components/RightCardPages";
import "./App.scss";
function onChange(a, b, c) {
con... |
import sharedParams from './sharedPlaylistParams';
export default class PlaylistDynamic {
constructor(echonest) {
this.echonest = echonest;
}
create(params, callback) {
const filter = sharedParams.slice();
filter.push('session_catalog');
const filteredParams = this.echonest.network._filterParam... |
const {User, Transaction, TransactionItem, Item} = require("../models")
const bcrypt = require("bcryptjs")
const convertDate = require("../helpers/convertDate")
class UserController {
static register (req, res) {
res.render("pages/user/register.ejs")
}
static create (req, res) {
User.findOne({where: {us... |
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import Spinner from './Spinner';
import { getTagCloud } from '../utils/api';
import './TagCloud.css';
function TagCloud() {
const tags = useTags();
const width = useWindowWidth();
function getLabel(id) {
return tags... |
import React from 'react'
import './PanelsWrapper.css'
const PanelsWrapper = ({ children }) => {
return <section className="PanelsWrapper">{children}</section>
}
export default PanelsWrapper
|
function toggleClassOnHover(selector, klass){
$(selector).hover(function(){
$(this).addClass(klass);
}, function(){
$(this).removeClass(klass);
});
}
function activateSectionToggler(box_selector, toggle_selector, content_selector){
$(toggle_selector).click(function(e){
e.preventDefault();
if($(th... |
const connection = require('../config/database.js');
var Payments = function (params) {
// console.log('params',params);
this.BankFailedReason = params.BankFailedReason ;
this.BankReceiptID = params.BankReceiptID ;
this.BankReturnCode = params.BankReturnCode ;
this.CustomerName = params.CustomerNam... |
/// <reference path="snake.ts"/>
'use strict';
var Game;
(function (Game) {
var start = document.getElementById('start');
var score = document.getElementById('score');
var floor = new Game.Floor({
parent: document.getElementById('container')
});
floor.initialize();
var snake = new Game.S... |
import React from "react";
import pDefer from "p-defer";
import Portal from "../../src";
const styles = {
fontFamily: "sans-serif",
textAlign: "center",
};
function Hello({ name }) {
return <h1 className="t">Hello {name}!</h1>;
}
export default function App() {
let [v, refresh] = React.useState(1);
let [contain... |
import React, { useContext, useEffect } from 'react';
import BillsContext from '../../context/bills-context'
import BillList from '../BillList.jsx'
const Home = () => {
const { state, dispatch } = useContext(BillsContext);
useEffect(() => {
fetch('/bills')
.then(res => res.json())
.then(json => {
... |
import router from './router'
import store from './store'
import NProgress from 'nprogress' // Progress 进度条
import 'nprogress/nprogress.css' // Progress 进度条样式
// import { Message } from 'element-ui'
import { getSessionId, getUserId } from '@/utils/auth'
// import { getToken } from '@/utils/auth' // 验权
// import { navig... |
const axios = require("axios");
const router = require("express").Router();
const cheerio = require("cheerio");
router.get("/recipes", (req, res) => {
axios
.get("http://www.recipepuppy.com/api/", { params: req.query })
.then(({ data: { results } }) => res.json(results))
.catch(err => res.status(422).jso... |
export { RedirectToHome } from './redirect-to-home';
|
$("a").click(function(){
$("body,html").animate({
scrollTop:$("#" + $(this).data('value')).offset().top-100
},1500)
})
$(document).ready(function () {
$(".navbar-nav a").click(function (e) {
e.preventDefault();
$('.navbar-collapse.show').collapse('hide');
});... |
import React, { Component } from 'react';
import ExternalClick from 'ExternalClick';
const Item = (isExternalClick) => (
<div className={`item ${isExternalClick && 'external'}`}>
{`${isExternalClick ? 'Click Me' : 'Click Outside'}`}
</div>
);
class Menu extends Component {
render() {
const { show } = t... |
import React from 'react';
import Link from 'gatsby-link';
import Base from '../layouts/base';
import MainContent from '../layouts/main_content';
class PageNotFound extends React.Component {
render() {
const { location } = this.props;
return (
<Base location={location}>
<MainContent>
... |
import React, { useState } from "react";
import { Vcharts } from "~components";
import "echarts-gl";
import getOption from "../options/line3D";
const GeneratorLine3D = ({ uniqueId, value, options, onChange }) => {
// if (isEmpty(value?.dataConfig?.data)) return null;
const [stauts, setStauts] = useState(false);
... |
import React from 'react';
import { FaRegUserCircle } from 'react-icons/fa';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import {useDispatch, useSelector} from 'react-redux';
import { startLogout } from './actions/auth';
const MenuContainer = styled.nav`
.ul-menu{
disp... |
import { profileAPI } from './ProfileApi'
const FETCH = 'profile/Fetch'
const CHANGE_STATUS = 'profile/CHANGE_STATUS'
const initiaState = {
status: null,
profile: {},
}
export const ProfileReducer = (state = initiaState, action) => {
switch (action.type) {
case CHANGE_STATUS:
return { ...state, statu... |
let Managers = require('./ManagerSchema');
// default data
let managers = ['anikshen', 'danzha', 't-jucheng', 'v-jelu'];
let team = 'AZURE PAAS APP SERVICE';
// create default manager
exports.createManager = async (ctx, next) => {
const manager = new Managers(
{
Team: ctx.params.manager || tea... |
import {connect} from 'react-redux';
const Dashboard = ({tasksDone,tasksNotDone}) => (
<div className="p-2 m-2">
<span className="badge badge-primary p-2 mr-2">Complete: <strong>{tasksDone}</strong></span>
<span className="badge badge-danger p-2 mr-2">InComplete: <strong>{tasksNotDone}</strong></sp... |
import types from 'Actions/types';
const { ADD_FLASH_MESSAGE, REMOVE_FLASH_MESSAGE } = types;
/**
* @description This handles flash message reducers
* @param {object} state - redux state
* @param {object} action - action creator
* @returns {object} new state
*/
const flashMessages = (state = {}, action) => {
... |
/* global malarkey:false, moment:false */
(function() {
'use strict';
angular
.module('template')
.constant('STATES', {
kHomeState:'home',
kContactsState: 'contacts',
kStoreState: 'store',
kCEOState: 'contacts.ceo',
kPresidentState: 'contacts.president',
kFounderState: 'con... |
import React from 'react';
import HitElement from './HitElement';
export default function HitList(props) {
if (props.showNoResults) {
return (
<div className="result-error">
{props.noHitsMessage}
</div>
);
}
if (!props.hits.length || !pro... |
/**
* Copyright (C) 2009 eXo Platform SAS.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This softwar... |
import { useNavigation } from "@react-navigation/native";
import axios from "axios";
import React, { useState, useContext, useEffect, useRef } from "react";
import {
ActivityIndicator,
Image,
KeyboardAvoidingView,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from "react-native";
i... |
/**
* 员工档案,分页
*
*/
export default {
path: '/perArchives',
component: resolve=>require(["@/page/perArchives/index"],resolve),
meta: {
requiresAuth: true
},
redirect: '/perArchives/main',
children: [
//分页
{
path: '/perArchives/main',
... |
import { withRouter } from "react-router";
import React from "react";
import "../CSS/Store-Syuppin.css";
import SuperKlass from './DefineConst';
import axios from 'axios';
class StoreSyuppin extends React.Component {
constructor(props){
super(props);
this.state = {
isConfirm:false,
foodInfo:... |
import { useStaticQuery, graphql } from 'gatsby';
export const useSiteImages = () => {
const { avatar, icon } = useStaticQuery(
graphql`
query SiteImages {
avatar: file(relativePath: { eq: "raphadeluca-avatar.png" }) {
childImageSharp {
fixed(width: 400) {
... |
import { ADD_ORDER, REMOVE_ORDER, SET_ORDER } from "../actions/orders";
import Order from "../../models/orderItem";
import { v4 as uuidv4 } from "uuid";
import "react-native-get-random-values";
const initialState = {
orders: [],
};
const orderReducer = (state = initialState, action) => {
switch (action.ty... |
// build the numbers
function makeNum(event){
if (gotTotal === true){
displayClear();
}
display.appendChild(document.createTextNode(event.target.textContent));
var number = event.target.textContent;
if (gotFirst){
secondNumb = parseFloat(secondNumb + number);
gotSecond = t... |
import React from 'react'
import {Grid, Row, Col, Panel} from 'react-bootstrap';
export default class HomePage extends React.Component {
render() {
let imgUrl = "http://static.tumblr.com/43467ee80971d8a4e52f15fd80a50539/nvi0dip/QCwnybas4/tumblr_static_afdblu9pkhkwosgckkcsocc4.jpg";
return (
... |
const test = require('tape');
const shuffle = require('./shuffle.js');
test('Testing shuffle', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof shuffle === 'function', 'shuffle is a Function');
const arr = [1,2,3,4,5,6];
t.notE... |
function sellsByMonth(sells) {
if (typeof(sells) === 'string') {
sells = JSON.parse(sells);
}
var month = [];
var values = [];
for (var sell in sells.Sell) {
month[sell] = sells.Sell[sell].Sell.created;
values[sell] = parseFloat(sells.Sell[sell][0].total);
}
$(... |
export const GET_ADS = 'app/AllAds/GET_ADS';
|
/*jslint browser: true*/
/*global $, window, WOW, particlesJS, Typed*/
(function ($) {
'use strict';
var win = $(window),
navbar = $('.navbar'),
scrollUp = $(".scroll-up"),
sideMenu = $(".side-menu");
/*========== Start Wow Js ==========*/
new WOW().init();
... |
import React, { Component } from 'react'
import { withStyles } from 'material-ui/styles'
import { connect } from 'react-redux'
import compose from 'recompose/compose'
import { reduxForm } from 'redux-form'
import Grid from 'material-ui/Grid'
import Card, { CardContent } from 'material-ui/Card'
import Typography from 'm... |
window.onload=function (){
function g(id){return document.getElementById(id);}
// 获得按钮
var pre_btn=g('prev');
var next_btn=g('next');
// 获得图片框
var imgBox_left=g('imgBox_left');
var imgBox_right=g('imgBox_right');
//获得图片内容和说明文字等
var img_left=imgBox_left.getElementsByTagName('img')[0];
var img_detail_... |
import React, { Component } from 'react'
import FormSalidas from '../animals/FormSalida';
import {Card, List, Divider} from 'antd'
import {Link} from 'react-router-dom'
import MainLoader from '../../common/Main Loader';
//import {bindActionCreators} from "redux";
import {connect} from "react-redux";
class SaleNoteDet... |
//! AUTH
export const OTP_REQUEST = 'OTP_REQUEST';
export const OTP_SUCCESS = 'OTP_SUCCESS';
export const OTP_ERROR = 'OTP_ERROR';
export const RESEND_OTP_REQUEST = 'RESEND OTP REQUEST';
export const RESEND_OTP_SUCCESS = 'RESEND OTP SUCCESS';
export const OTP_VERIFY_REQUEST = 'OTP_VERIFY_REQUEST';
export const OTP_VERI... |
import cart from '@/web-client/reducers/shop/cart';
import productList from '@/web-client/reducers/shop/productList';
import ui from '@/web-client/reducers/shop/ui';
export default (state = {}, action) => ({
cart: cart(state.cart, action),
productList: productList(state.productList, action),
ui: ui(state.u... |
import React, { Fragment } from 'react';
import { storiesOf } from '@storybook/react';
import { pluck } from 'ramda';
import Filters from './Filters';
import Quarter from './Filters.Quarter';
import Cuisine from './Filters.Cuisine';
import Bar from './Filters.Bar';
import Price from './Filters.Price';
import withSearch... |
/* Copyright (c) 2020 Red Hat, Inc. */
/// <reference types="cypress" />
import { getDefaultSubstitutionRules, getViolationsPerPolicy, getViolationsCounter } from './views'
import { getConfigObject } from '../config'
export const test_genericPolicyGovernance = (confFilePolicy, confFileViolationsInform, confFileViolat... |
import Link from '@docusaurus/Link';
import Layout from '@theme/Layout';
import React from 'react';
const Help = () => {
return (
<Layout>
<section>
<div className="container help-container">
<h1>Need help?</h1>
<div className="help-two-col">
<p>
If you... |
var checkRelQ = function () {
if (populatedRelQ) {
displayFirstDataRelQ();
} else {
setTimeout(checkRelQ, 100);
}
}
function displayFirstDataRelQ() {
document.getElementById("addMultipleRelQ").checked = true;
$('#sprintReleaseQ option:last').prop('selected', true);
var dropdow... |
import React, { useState } from 'react';
export function CaraBuena() {
return <div style={{
border: '1px solid #F4D03F',
borderRadius: 100,
fontSize: '3rem',
width: 60,
height: 60,
backgroundColor: '#F4D03F',
margin: "10px 20px 10px 20px",
textAlign: ... |
import React, { useState, useCallback, useEffect } from 'react';
import { StyleSheet, Text, View, TouchableOpacity, ImageBackground, Alert, SafeAreaView, } from 'react-native';
import { Appbar, Button, TextInput, ActivityIndicator } from 'react-native-paper';
import { FancyAlert } from 'react-native-expo-fancy-alerts';... |
/* Common Exercise Functions */
// tick users howler.js - http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library
var tick = new Howl({
urls: ['/media/audio/click03.ogg', '/media/audio/click03.mp3'],
autoplay: false
});
function playTick(){
tick.pos(.04);
tick.play();
}
function setGame... |
X.define("model.blogModel",function () {
var api = X.config.blog.api,
model = X.model.create("model.blogModel");
//删除某个文章
model.del = function(data, callback) {
var option = {
url: api.articleEdit + data.postId,
type: 'DELETE',
callback: callback
};
X.loadData(option)
};
//获取id文章数据
model.get... |
/**
* Created by rhett on 5/20/14.
*/
angular.module('2048Game', ['cfp.hotkeys']); |
import React, { Component } from 'react';
import Board from './screens/Board'
import { Provider } from 'react-redux'
import store from './redux/store/store.js'
import { BrowserRouter as Router, Route,Redirect,Switch} from 'react-router-dom';
import './style/default.less'
class App extends Component {
render() {
... |
import React from 'react';
import {StyleSheet, Text, View, Slider, ScrollView, Image} from 'react-native';
import { Container, Card, CardItem, Header, Left, Body, Thumbnail, Right, Button, Icon, Title, Segment, Content, Item} from 'native-base';
export default class Profile extends React.Component {
constructor(pro... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Button, Typography, InputText } from "components";
import { CopyText } from '../../copy';
import { connect } from "react-redux";
import { getAppCustomization } from "../../lib/helpers";
import loading from 'assets/loading-circle.gif'... |
import { RESPONSES_GET, RESPONSES_RESULT, RESPONSE_SEND } from '../constants/ActionTypes';
import ResponseAPI from '../api/responses'
import { fetchNext } from './next';
const api = new ResponseAPI();
function getResponses(data) {
return {
type: RESPONSES_GET
};
};
function receiveResponses(responses) {
re... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
Writer = Class.extend({
recorder: null,
drawingAgent: null,
modeAgent: null,
init: function() {
console.log("init writer");
this.drawingAgent = new DomAgent("#char-matrix");
this.modeAgent = new ModeAgent();
//this.strokeHandler = new StrokeHandler();
this.reco... |
$(document).ready(function(){
$(".pregunta-laberintos").change(function(){
valor = parseInt($('input[name=pregunta-laberintos-3]').val());
valor2= parseInt($('input[name=pregunta-laberintos-1]').val());
valor3 = parseInt($('input[name=pregunta-laberintos-2]').val());
suma = valor +valor2+valor3;
i... |
window.b=function(f,h){function c(){var d=g.length;if(0<d)for(var a=0;a<d;a++){var k=g[a],e;if(e=k)e=k.getBoundingClientRect(),e=(0<=e.top&&0<=e.left&&e.top)<=(window.innerHeight||h.documentElement.clientHeight)+200;e&&(k.src=k.getAttribute("data-src"),g.splice(a,1),d=g.length,a--)}else h.removeEventListener?f.removeEv... |
module.exports = [{
id: 0,
name: 'John Cena',
phone: '8845579923',
email: 'johncena@example.com',
relation: ' ',
invited: ' ',
}, {
id: 1,
name: 'Tommy Curtin',
phone: '7044439912',
email: 'tommycurtin@example.com',
relation: ' ',
invited: ' ',
}, {
id: 2,
name: '... |
import React from 'react'
import { observer, inject } from 'mobx-react';
@inject('kiwoomStore') @observer
class ConnectAndLogin extends React.Component {
constructor(props) {
super(props)
}
render() {
const { connectionInfo, cls } = this.props.kiwoomStore
return (
<div>
{ connectionIn... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Car = /** @class */ (function () {
/*
private make:string;
private model:string;
private color:string;
private regNo:string;
*/
function Car(_make, _model, _color, _regNo) {
this._make = ... |
const form = document.querySelector('form')
const emailError = document.querySelector('.email.error')
const hourlyRateError = document.querySelector('.Hourly.rate.error')
const noJobsType = document.querySelector('.noJobTypes.error')
const noLanguages = document.querySelector('.noLanguages.error')
... |
import React from 'react';
import PropTypes from 'prop-types';
import { Box } from '../Box';
import { Text } from '../Text';
const shortDays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
function Weekday({ className, weekday, localeUtils = {} }) {
return (
<Box
flex="1 0 0"
minWidth="650"
... |
var searchData=
[
['logger',['logger',['../classspatial__driver_1_1spatial__driver.html#a5d9fcdf9d8185cb89fb1941038cfbbc8',1,'spatial_driver::spatial_driver']]]
];
|
//=====================9_11=====================
function change(number) {
let inch = (Number(number) / 254) * 100;
console.log(inch);
///254*100;
let feet = inch / 12;
console.log(inch, feet);
return inch, feet;
}
//=====================9_12=====================
function cal_volume(radius, height) {
let ... |
define(function() {
var Index = {
init: function() {
console.log('Module Index loaded!');
}
};
return Index;
}); |
// create by hjKim. KOOKMIN UNIV.
// Annotorious Coustom version.
// + auto_selector.js <-- applied prototype annotorious.
/* Annotorious Initialize */
//annotorious module extending
//add Module name = "changeLabelBoxUI"
anno.addUIModule = function(moduleName, activate) { // no prototype.
// you have to inp... |
import { handleActions } from 'redux-actions'
import {
ADD_TO_CART,
REDUCE_FROM_CART,
} from 'actions/cart'
const cache = localStorage.getItem('cache_cart');
const initialState = cache ?
JSON.parse(cache) :
{
products: {},
total: 0,
};
export const handlers = {
REMOVE_FROM_CART: (state, action) =... |
import React from 'react';
import './styles.css';
export default function FilmCard({ film }) {
const { title, rating } = film;
return (
<div className="film-card">
{title}
{rating}
</div>
);
}
|
const config = require("config");
const express = require("express");
const Users = require("../../services/users");
const router = express.Router();
const jwt = require("jsonwebtoken");
const Joi = require("joi");
router.post("/login", (req, res) => {
console.log(req.body);
const { error } = validateLogin(req.bod... |
import React from 'react';
import 'antd/dist/antd.css';
import '../Components/DashboardComponents/index1.css';
import '../Components/DashboardComponents/Dashboard/Dashboard.css';
import { Layout } from 'antd';
import {
MenuFoldOutlined,
} from '@ant-design/icons';
import MediaQuery from "react-responsive";
import { u... |
window.JSON = window.JSON || require('json3');
/**
* A User Data Loader API that can load user data from any provider using the {@link UserDataProvider.js}
* API to expose user data.
*
* This function has a prototype that exposes two methods for loading user data:
* <li>loadUserData(request) - get user data from ... |
const gulp = require('gulp');
const path = require('path');
const os = require('os');
const del = require('del');
const packager = require('electron-packager');
const zip = require('gulp-zip');
const { argv } = require('yargs');
const packageJson = require('../package.json');
const config = require('./config');
cons... |
module.exports.formulario_inclusao_noticia = function(app, req, res){
res.render('admin/form_add_noticia', {validacao : {}, noticia : {}});
}
module.exports.noticias_salvar = function(app, req, res){
var noticia = req.body;
//res.send(noticias);
req.assert('titulo','O Titulo é obrigatorio').notEmpty();
req.asse... |
'use strict';
/**
* This project is written in the spirit of literate programming.
*/
var dir = {
/**
* Documentation is handwritten.
*/
doc: 'doc/',
/**
* Sources are generated from the documentation.
*/
src: 'src/',
/**
* Vanilla HTML, CSS and JavaScript are built from sources.
*/
b... |
(function() {
angular.module('itibrasil')
.controller('EditarPerfilController', EditarPerfilController);
function EditarPerfilController($state, Notify, Loading, UsuarioService) {
var vm = this;
// public
vm.alterarSenha = function alterarSenha(senhaAtual, novaSenha) {
... |
import 'angular';
import './ors-star/ors-star.js';
import './ors-route/ors-route.js';
import 'angular/angular-csp.css';
import './style.scss';
const app = angular.module('main', ['ors-star', 'ors-route']);
app.directive('orsHeader', function () {
return {
restrict: 'E',
templateUrl: 'tmpl/ors-hea... |
import { grey4, blue3, alert } from '../private/palette';
export default {
'.standard': { borderColor: grey4 },
'.formAccent': { borderColor: blue3 },
'.critical': { borderColor: alert }
};
|
'use strict'
class S3 {
generateTags (params, operation, response) {
const tags = {}
if (!params || !params.Bucket) return tags
return Object.assign(tags, {
'resource.name': `${operation} ${params.Bucket}`,
'aws.s3.bucket_name': params.Bucket
})
}
}
module.exports = S3
|
var moment = require('moment')
, crypto = require('crypto');
var getExpiryTime = function () {
var _date = new Date((new Date()).getTime() + 100*60000);
return moment.utc(_date).toISOString();
};
module.exports = function (app) {
app.server.get("/s3/policy", function(req, res, next){
var mode = 'pu... |
'use strict'
const logger = require('./logger')
module.exports = {
splitX,
delay,
resolveable,
sortById,
sortByDate,
sortBySemver,
shortDateString,
retry,
times,
arrayFrom,
}
/**
* @template T
* @type { (times: number, waitSeconds: number, name: string, fn: () => Promise<T>) => Promise<T>}
*... |
import React from 'react'
import { Header, Footer } from 'blk'
import Intro from './Intro.jsx'
import ModularScaleDemo from './ModularScaleDemo.jsx'
import GridDemo from './GridDemo.jsx'
import TypographyDemo from './TypographyDemo.jsx'
import NestedGrid from './NestedGrid.jsx'
import RatiosDemo from './RatiosDemo.jsx... |
import NewRoomForm from './../components/NewRoomForm/NewRoomForm';
const NewRoom = () => {
return <NewRoomForm />;
};
export default NewRoom;
|
"use strict";
/// <reference path="../../scene/ComponentConfig.d.ts" />
Object.defineProperty(exports, "__esModule", { value: true });
const LightConfig_1 = require("./LightConfig");
SupCore.system.registerPlugin("componentConfigs", "Light", LightConfig_1.default);
|
import Home from "@containers/Home.vue";
import JoinRoom from "@containers/JoinRoom.vue";
import Login from "@containers/Login.vue";
import Register from "@containers/Register.vue";
import Questions from "@containers/Questions.vue";
import Quizzes from "@containers/Quizzes.vue";
import QuizzesStart from "@containers/Qu... |
db.vendas.aggregate([
{$match:{
status:{$in:["EM SEPARACAO","ENTREGUE"]}
}},
{$group:{
_id:"$clienteId",
valorTotal:{
$sum:"$valorTotal"
}
}},
{$sort:{"valorTotal": -1}},
{$limit:5}
]) |
fis.config.merge({
namespace: 'spa'
});
|
const linkifyIt = require("linkify-it")();
const linkifyText = (text) => {
let linkifiedText = text;
if (linkifyIt.test(text)) {
linkifyIt.match(text).forEach(({ url }) => {
linkifiedText = text.replace(
url,
`<a href="${url}" target="_blank">${url}</a>`
);
});
}
return link... |
import React from 'react'
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faGithub} from "@fortawesome/free-brands-svg-icons";
import Image from'../project.jpg'
const Project=(props)=>{
const {project}=props
const card=project?(
project.map(proj=>{
return(
... |
var bio = {
"name" : "Hamish Williams",
"role" : "Graphic Designer",
"welcomeMessage" : "Swag normcore Helvetica plaid messenger bag. Vinyl odd Future narwhal. Sustainable Pinterest PBR&B Tumblr. Seitan polaroid, VHS cliche literally hella flexitarian Tumblr. Vinyl fingerstache DIY, cred kale chips seitan 9... |
import CountrySelectModule from './country-select.module';
describe('countrySelect module', () => {
let $rootScope, $state, $location;
beforeEach(window.module(CountrySelectModule));
beforeEach(window.module(($provide) => {
const mock = jasmine.createSpyObj('countrySelectService',
['searchCountries',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.