text stringlengths 7 3.69M |
|---|
import React, { Component } from 'react';
import { Breadcrumb, Divider, Select, Button, Form, Table, Input,Pagination,message } from 'antd';
import {Link} from 'react-router';
const FormItem = Form.Item;
const Option = Select.Option;
@Form.create()
class SupplierReg extends Component {
constructor(props) {
... |
/**
* The `caret-color` property allows the color to be set of the caret (blinking text insertion pointer) in an editable text area.
*
* See: https://caniuse.com/css-caret-color
*/
/**
* @type {import('../features').Feature}
*/
export default {
'caret-color': true,
};
|
var channelId = '';
var bypercent = 1;
//其他諮詢Model
Ext.define('MainMessage', {
extend: 'Ext.data.Model',
fields: [
{ name: "deal_method", type: "string" },
{ name: "deal_percent", type: "string" },
{ name: "deal_fee", type: "string" },
{ name: "creditcard_1_percent", type: "str... |
angular.module('timelineApp.services', [], function ($provide) {
$provide.factory('ProjectService', ['$http', 'AuthService', function($http, AuthService) {
var root = {};
root.view = function(successCallback, failureCallbackid) {
$http.get(AuthService.yii + 'api/project/view/' + id, {}).success(function(data) ... |
'use strict';
angular.module('cnnxtMobile').run(function ($state, $rootScope) {
// Handle States
$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
var toName = toState.name;
var fromName = fromState.name;
console.log('GOING TO: ' + toName);
... |
export const DELETE_TASK = 'DELETE_TASK';
export const COMPLETE_CHANGE = 'COMPLETE_CHANGE';
export const CREATE_TASK = 'CREATE_TASK';
export const UPDATE_TASK = 'UPDATE_TASK';
export const SET_FILTER = 'SET_FILTER';
export const VisibilityFilters = {
SHOW_ALL: 'SHOW_ALL',
SHOW_COMPLETED: 'SHOW_COMPLETED',
... |
// dependances
var gulp = require('gulp');
var del = require('del');
var es = require('event-stream');
var argv = require('yargs').argv;
var pngquant = require('imagemin-pngquant');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var $ = require('gulp-load-plugins')({
rename: {
'gulp-m... |
const users = require('./users/users.service.js');
const currencies = require('./currencies/currencies.service.js');
const places = require('./places/places.service.js');
const paymentMethods = require('./payment-methods/payment-methods.service.js');
const countries = require('./countries/countries.service.js');
const... |
/**
* 对于二三维地图的坐标转换
* 包括:距离转换、面积转换、坐标转换、坐标集合转换
*/
window.TQTransformat={
type:"default", //(区域)地图类型
to25DArea:function(option){/**面积转换 获取25维面积*/
$.ajax({
type:"post",
url:PATH+"/gisUtilManage/to25DArea.action",
data:{
points:option.geometry+""
},
... |
function getProportionalHeight(width, originalWidth, originalHeight) {
return (width * originalHeight) / originalWidth;
}
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function shuffle(array) {
let newArray = array.slice(0);
let len = newArray.length;
... |
var searchData=
[
['filechooser_5fform',['FileChooser_Form',['../classpresentacion_1_1form_1_1FileChooser__Form.html',1,'presentacion::form']]],
['filenames',['FileNames',['../classdomini_1_1utils_1_1FileNames.html',1,'domini::utils']]],
['folderorfile',['FolderOrFile',['../classpersistencia_1_1Utils_1_1FolderOrF... |
import React from 'react';
import LikeBar from './likebar';
import CommentBox from './commentbox';
import logo from '../assets/ig-logo-word.png';
import profilePic from '../assets/ProfilePic.jpg';
import { StackNavigator } from 'react-navigation';
import { Platform, StyleSheet, Image, Text, View, Button } from 'react-n... |
// initializing environment variables
if (process.env.NODE_ENV !== 'production') {
require('dotenv').load(); // eslint-disable-line
}
module.exports = {
port: process.env.PORT || 3000,
dbDialect: process.env.DB_DIALECT,
dbUsername: process.env.DB_USERNAME,
dbPassword: process.env.DB_PASSWORD,
dbHost: proce... |
// To import express.js
const express = require("express");
// For https requwst
const https = require("https");
// bodyparsing
const bodyParser = require("body-parser")
// Assigning app const to use express.js
const app = express();
// Syntax to use bodyParser
app.use(bodyParser.urlencoded({extended: true}));... |
// JavaScript - Node v8.1.3
function sumOfDifferences(arr) {
arr.sort((a, b) => b - a);
let sum = 0;
for (let i = 0; i < arr.length - 1; ++i) {
sum += (arr[i] - arr[i + 1]);
}
return sum;
}
|
import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { withStyles } from 'material-ui/styles';
import { CircularProgress } from 'material-ui/Progress';
import Table, {
TableBody,
TableCell,
TableHead,
TableRow
} from 'material-ui/Table';
import Typog... |
class NcArchive {
constructor(uploaded, path) {
this.uploaded = uploaded || true;
this.path = path || "D:/Omri's Storage/NX Output/Machine Kit tests/DMC1150V/dmg.arc";
}
}
class Geometry {
constructor() {
this.junctions = {};
this.classifications = [];
}
}
class Axis {
... |
// NOTE: discussion on IIFE...
// function statement
function greet(name) {
console.log('Hello ' + name);
}
greet('John');
// using a function expression
var greetFunc = function(name) {
console.log('Hello ' + name);
};
greetFunc('John');
// IIFE examples below...
// Part 1) using an Immed... |
//Written by Nabanita Maji and Cliff Shaffer, Spring 2015
$(document).ready(function () {
"use strict";
var av = new JSAV("NPCProofDiagramCON", {animationMode: 'none'});
var x=325;
var y=20;
var l=180;
var w=30;
var r= 10;
av.g.rect(x,y+0,l,w,r,{"fill":"Silver","opacity":"0.5"});
av.label("<b>Circuit-... |
function espacios (n)
{
var s = "";
for (var i = 0; i < n; i++)
s += " ";
return s;
}
function linea(n)
{
var sp="";
for (var i=4 ; i < 1 ; i++)
{
sp += "*" ;
}
var d=espacios(n-1);
console.log(sp + d + sp);
}
linea(12) |
"use strict";
$(document).ready(function() {
// Process about button: pop up a message with an alert
function about() {
alert(ODSA.AV.aboutstring(interpret(".avTitle"), interpret("av_Authors")));
}
$('#about').click(about);
// Process the reset button
function initialize() {... |
import Parameter from "../parameter";
import * as Registry from "../registry";
let typeString = "PointArray";
let description = "Should be an array of points";
function isValid(value) {
if (value instanceof Array) {
if (value.length === 0) {
return true;
}
for (var i in value)... |
var mongoose = require("mongoose");
var Campground = require("./models/campground");
var Comment = require ("./models/comment");
var data=[
{
name: "Cloud Rest",
image: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUWFRgWFhYZGRgYGhoaHBwcGBgcHBoaHCEaGhwdGhocIS4nHh4rHxwZJjgnKy8xNjU1Gi... |
import React, {Component} from 'react';
import {
View,
Text,
ImageBackground,
Image,
TouchableOpacity,
StyleSheet,
TextInput,
ScrollView,
StatusBar,
Dimensions
}
from 'react-native';
import mainStyle from '../src/styles/mainStyle';
export default class ThongTinTaiKhoanKyThuat extends Component{
... |
'use strict'
let friends = [`john`, `jenny`, `jack`, `jill`];
/**
* This is us defining what we want in an element
* This function prints to the console whatever is passed to it
* @param {*} something
*/
let print = function(element, index){
console.log(element, "is in position", index);
}
//this is how ... |
const MODE_2D = 0;
const MODE_3D = 1;
class DimensionsSelector {
constructor(viewer_2d, viewer_3d) {
this.viewers = [viewer_2d, viewer_3d];
this.viewer_index = MODE_2D;
}
setup() {
this.viewers.map((x) => x.setup());
// Change the number of dimensions with the 2D and 3D bu... |
const express = require('express');
const helmet = require('helmet');
const bodyParser = require('body-parser');
const log4js = require('log4js');
const apiRouter = require('./routes/apiRouter');
const app = express();
log4js.configure(__dirname + '/config/log_config.json');
const log = log4js.getLogger('app');
app.u... |
import PostApi from '../network/PostApi';
import { hideProgress } from './Progress';
export const POST_LIST_SUCCEEDED = 'POST_LIST_SUCCEEDED';
export const POST_SUCCEEDED = 'POST_SUCCEEDED';
export const ADD_COMMENT = 'ADD_COMMENT';
const defaultState = {
posts: [],
post: {},
};
export default function (state = ... |
var $dragImage = $('#dragImag');
var $dragImage = $('.dragTarget');
var $dragBox = $('.dragbox');
var dragTarget,
data = 'my name is heke';
function dragStartFun(e){
var dataTransfer = e.originalEvent.dataTransfer;
console.log('dragstart')
// 设置dataTransfer数据
e.originalEvent.dataTransfer.setData('text', data);
... |
import React, { Component } from 'react'
import Friends from "./Components/Friends"
import MainBody from "./Components/MainBody"
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
import Browse from "./Components/Browse"
class App extends Component {
render() {
return (
<Ro... |
// Javascript UI for surveyor
jQuery(document).ready(function(){
// if(jQuery.browser.msie){
// // IE has trouble with the change event for form radio/checkbox elements - bind click instead
// jQuery("form#survey_form input[type=radio], form#survey_form [type=checkbox]").bind("click", function(){
// jQuery... |
(function() {
angular
.module( 'beryllium', [ 'angular-sortable-view', 'laspChart', 'LZString', 'moment-strict', 'ngMaterial', 'ngMessages', 'ngSanitize', 'ui.bootstrap' ])
.config([
'$mdDateLocaleProvider',
function( $mdDateLocaleProvider ) {
$mdDateLocaleProvider.formatDate = function( date ) {
... |
import { config } from '../../../../src';
const Footer = () => (
<footer className="container">
<center>
All copyrights reserved © <b>{ config.author || '<package.json:author>' }</b> { (new Date()).getFullYear() }
</center>
<p> </p>
</footer>
);
export default Footer;
|
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import reducer from '../reducers/index'
const configureStore = (props) => (
createStore(reducer, props,
applyMiddleware(thunk)
)
)
export default configureStore
|
export default /* css */`
:host(:not([hidden])) {
display: inline-block;
}
.circle {
fill: none;
stroke: #ddd;
}
.value {
fill: none;
stroke: #00E699;
}
.text {
font: 16px Arial, sans-serif;
text-anchor: middle;
fill: #999;
}
:host([text-format="valueOnCircle"]) .text-value {
font-size: 1... |
/*
* Copyright (C) 2009-2017 SAP SE or an SAP affiliate company. All rights reserved.
*/
sap.ui.define([
"fin/re/conmgmts1/controller/BaseController"
], function(BaseController) {
'use strict';
return BaseController.extend('fin.re.conmgmts1.controller.contractstermblocks.Renewal', {
onInit: function() ... |
import {AlternativeDialog} from "../dialog/alternative_dialog";
import {Manager} from "./manager";
import {WordCardItem} from "../item/word_card_item";
let UITypes = {
Item: "item",
page: "page",
Dialog: "dialog",
};
let UIManager = cc.Class({
name : "UIManager",
extends: cc.Class,
ctor() {... |
import React from "react";
import { Link, NavLink, useLocation } from "react-router-dom";
import { useSelector, useDispatch } from "react-redux";
import { logOut } from "./action/authAction";
import Icon from "./components/Icon";
import stadeLogo from "./video/stadeLogo.png";
const NavTest = () => {
const location =... |
var Sequelize = require('sequelize');
var sequelize = require('./../../../config').sequelize;
var Categoria = sequelize.define('categoria', {
titulo: {
type: Sequelize.STRING(140),
},
descripcion: {
type: Sequelize.STRING,
},
clave:{
type: Sequelize.STRING(25), // la ruta con la que la cargaremo... |
module.exports = (knex, Recipe) => {
return params => {
let category;
if (params) {
category = params.category;
}
if (category) {
return (
knex("recipes")
.select()
.then(recipes => {
recipes = recipes.map(recipe => new Recipe(recipe));
... |
import React, { useState } from 'react';
import axios from 'axios';
import { cloneDeep } from 'lodash';
import { makeStyles } from '@material-ui/core/styles';
import Lottie from 'react-lottie';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import Button from '@materia... |
import { StyleSheet } from 'react-native';
import * as colors from 'kitsu/constants/colors';
export const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.darkPurple,
},
contentWrapper: {
flex: 1,
},
buttonMedia: {
marginVertical: 4,
marginHorizontal: 16,
bac... |
/*
node setup/Insert/other.js
*/
var LineByLineReader = require('line-by-line')
var mysql = require('mysql');
var connection = mysql.createConnection({
host: 'localhost',
database: 'rhyme2',
user: 'ylhyra_dev',
password: 'ylhyra_dev',
multipleStatements: true,
});
connection.connect();
// TODO
// connection.... |
import { handleActions } from 'redux-actions';
import { Map } from 'immutable';
import { ipcRenderer } from 'electron';
const COMMON_PENDING = 'account/COMMON_PENDING';
const COMMON_FAILURE = 'account/COMMON_FAILURE';
const CHG_ACCOUNTPARAM_DATA = 'account/CHG_ACCOUNTPARAM_DATA';
const REQ_LOGIN_PROCESS = 'account/RE... |
import prettyBytes from 'pretty-bytes';
import { DateTime } from 'luxon';
import { get } from 'lodash';
import { InfoIcon } from '@primer/octicons-react';
import FileItem from './FileItem';
import DirectoryItem from './DirectoryItem';
import BackItem from './BackItem';
import MetaItem from './MetaItem';
import { SizeDa... |
const TEACHER = {
FORM: {
TITLE: 'Become a Tutor',
STEPS: ['Personal ', 'Qualification ', 'Tutoring ', 'Time Slot'],
STEPS_TITLE: ['Personal Information', 'Qualification and Experience', 'Tutoring Information', 'Favorable Time Slot']
}
}
export { TEACHER }; |
function Particle() {
this.m_Position = new THREE.Vector3(0.0, 0.0, 0.0);
this.m_Velocity = new THREE.Vector3(0.0, 0.0, 0.0);
this.m_Acceleration = new THREE.Vector3(0.0, 0.0, 0.0);
this.m_Color = new THREE.Color("#00ff7f");
this.m_fRotate = 0.0;
this.m_fsize = 1.0;
this.m_fAge = 0.0;
t... |
import styled from 'styled-components';
const Wrapper = styled.div`
width: 100%;
position: fixed;
bottom: 0;
display: flex;
height: 74px;
${({ theme }) => theme.media.smDown`
height: 120px;
`};
`;
const Container = styled.div`
margin: auto;
width: 100%;
padding: 0 2.5rem;
max-width: calc(12... |
/*
* Bounds //TODO add description
*/
'use strict';
/**
* Creates bounds
*
* @class Bounds
* @namespace C
* @constructor
* @param {C.Vector2} [bottomLeft] BottomLeft coordinates.
* @param {C.Vector2} [topRight] TopRight coordinates.
* @param {Proj4} [crs] Coordinates Reference System.
*/
C.Geometry.Bound... |
(function (global) {
var DetailController = function (options) {
return new Controller({
id: "detail",
eventBus: options.eventBus,
elements: {
name: ".name",
image: ".badge",
country: ".country"
},
actions: {
hide: function () {
this.eventBus.emit("hide-detail");
}
},
... |
import generateProducts from "../utils/products.utils.js";
let products = [];
let lastId = 0;
export async function createProductsTest(cant = 5) {
let cantidad = cant;
try {
if (cant) cantidad = Number(cant);
for (let i = 0; i < cantidad; i++) {
let product = {
id: i+1,
...generatePr... |
import React, { Component } from 'react'
import { Formik, Form, Field, ErrorMessage } from 'formik';
import CourseDataService from '../service/CourseDataService';
const INSTRUCTOR = 'in28minutes'
class SearchComponent extends Component {
constructor(props) {
super(props)
this.state = {
... |
import React from "react";
import PropTypes from "prop-types";
import Image from "gatsby-image";
import { Link } from "gatsby";
const ShowcasePostPreview = data => {
let langClass = "";
let frontmatter = data.post.frontmatter;
if (data.correctLanguage !== true) langClass = "grayscale";
return (
<div classN... |
// @ts-nocheck
import sanityClient from '@sanity/client'
const client = sanityClient({
projectId: import.meta.env?.VITE_PROJECT_ID,
dataset: import.meta.env?.VITE_DATASET,
token: import.meta.env?.VITE_SANITY_API_KEY,
useCdn: true,
})
export default client
|
import TableColumns from "../models/TableColumns";
export default class TableRow {
constructor({
id,
name,
surname,
email,
submitDate,
onEdit = function () {},
onDelete = function () {},
}) {
this.id = id;
this.name = name;
this.surname = surname;
this.email = email;
... |
import React from "react";
const Footer = () => (
<div className="footer">
<p>Credits <a href="https://api.nasa.gov/">NASA APIs</a></p>
</div>
);
export default Footer; |
export const STRINGS = {
registerPageStr: {
formTitle: 'Register',
submitBtnTitle: 'Register',
alreadyRegistered: 'Already registered? ',
loginLinkTitle: 'Login now!',
},
loginPageStr: {
fromTitle: 'Login',
submitBtnTitle: 'Login',
or: 'or ',
registerLinkTitle: 'Register now!',
}... |
/**
* Draw products into the table
* @param {Array} data - Array of products
* @param {Node} list - Target node
*/
const drawItems = (data, list) => {
const table = list;
table.innerHTML = `<tr class="column__title">
<td>Название</td>
<td>Стоимость</td>
... |
import {
createStore,
applyMiddleware
} from 'redux'
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import { persistStore } from 'redux-persist'
import Reducers from './reducers'
const middleware = applyMiddleware(thunk, logger)
const store = createStore(Reducers , middleware)
const persist... |
/**
* 数据绑定的入口,整合Observer、Compile和Watcher三者
* 1. 通过Observer来监听自己的model数据变化
* 2. 通过Compile来解析编译模板指令
* 3. 最终利用Watcher搭起Observer和Compile之间的通信桥梁
* 达到数据变化 -> 视图更新;视图交互变化(input) -> 数据model变更的双向绑定效果
*/
var Compile = window.Compile;
var observe = window.observe;
var Watcher = window.Watcher;
function Vue(options) {
... |
const courses = [
{
id: 1,
title: "Some title",
slug: "some-title",
authorId: 1,
category: "C#"
}
];
const authors = [{ id: 1, name: "Author Nr1" }];
const newCourse = {
id: null,
title: "",
authorId: null,
category: ""
};
module.exports = {
courses,
authors,
newCourse
};
|
const { JwtRsaVerifier } = require("aws-jwt-verify");
const awsJwtModule = require("aws-jwt-verify");
const https = require("aws-jwt-verify/https");
const { assertStringEquals } = require("aws-jwt-verify/assert");
require("aws-jwt-verify/asn1");
require("aws-jwt-verify/cognito-verifier");
require("aws-jwt-verify/jwk");... |
'use strict'
require('module-alias/register')
const Path = require('path')
const Hapi = require('hapi')
const Inert = require('inert')
const Pino = require('hapi-pino')
const Routes = require('./routes')
const { NODE_ENV, PORT = 3000, HOST = 'localhost' } = process.env
const isProduction = NODE_ENV === 'production'
... |
//Dependencies
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
var contract = new Schema({
partyA: {
name: {
first: String,
last: String
},
email: String,
phoneNumber: String,
address: String,
signature: String,
d... |
'use strict';
let ereignis = {},
counter_elements = 0;
HTMLElement.prototype.addEreignisListener = function (evt, handler) {
sieve( [evt,handler] );
this.addEventListener(evt, handler);
if ( !ereignis[evt] ) {
ereignis[evt] = {};
ereignis[evt]['el_'+counter_ele... |
var casper = require('casper').create({
// verbose = true for more debug info
verbose: false,
logLevel : 'debug'
});
var utils = require('utils');
var toFile = require('../plugins/to-file.js');
var config = require('../config/primary.json');
var navigation = config.navigation;
var viewports = require('..... |
// The colors supported by object views.
const multiSeriesColors = [{
low: "rgba(75, 192, 192,0.6)",
high: "rgba(75, 192, 192,0.1)",
background: "rgba(75, 192, 192,0.1)",
border: "rgba(75, 192, 192,0.4)",
},
{
low: "rgba(255, 99, 132,0.6)",
high: "rgba(255, 99, 13... |
import Box from '../Box'
import { forwardProps } from '../utils'
import { baseProps } from '../config/props'
import useBadgeStyles from './badge.styles'
export default {
name: 'Badge',
inject: ['$theme', '$colorMode'],
props: {
variant: {
type: String,
default: 'subtle'
},
variantColor: {... |
// Scroll to contact section
$(document).on('click','#contact-button', function(event) {
if (location.pathname == "/") {
event.preventDefault();
var target = "#section-contact-us"
$('html, body').animate({
scrollTop: $(target).offset().top
}, 1600);
}
});
$(document)... |
// /** @jsxRuntime classic */
/** @jsx jsx */
import { css, jsx } from '@emotion/react';
import React from 'react';
const useStyles = ({ width, height, color, radius, opacity, cursorType }) => ({
rectangle: css({
width: `${width}px`,
height: `${height}px`,
backgroundColor: `${color}`,
radius: `${radi... |
import OrientationLoadingOverlay from 'react-native-orientation-loading-overlay';
import Orientation from 'react-native-orientation';
var API_URL = require('../config/config.js');
import React, { Component } from 'react';
import { Image,ListView,Alert,WebView } from 'react-native';
import {Item,Input, View,Separator,... |
import React from 'react';
import {createStackNavigator} from '@react-navigation/stack';
import BottomNaviagtion from '../../BottomNavigation/BottomNavigation';
import Home from '../../Pages/Home';
import Scanner from '../../Components/ComplexComponents/Scanner/Scanner';
export default function MainStack() {
const S... |
var idcategoriaglobal=0;
$(document).ready(function () {
cargarOrigen();
cargarMarca();
debugger
cargarbombo();
cargarSucursalVerdadero();
// cargarsubcategoria();
});
/*
* No se utiliza en el POS
* @returns {undefined}
*/
function cargarbombo() {
debugger
var route = "/TipoP... |
// create variable list of words
// create variable of random word
// display win tracker
// display current word
// display letters guessed
// display progress or number of chances left
//list of words and phrases
var wordBank = ["cybersecure", "superimpose", "beachcomb", "counterrevolve", "cubbyhole", "leap... |
'use strict';
angular.module('Destinator')
.constant("baseURL", "https://protected-retreat-21113.herokuapp.com/")
/*.factory('favoriteFactory', ['$resource', 'baseURL', function ($resource, baseURL) {
return $resource(baseURL + "favorites/:id", null, {
'update': {
method: 'PUT'
... |
// © Yuri Leikind 2014
parseMoney = function(moneyString){
if (moneyString === null || moneyString === null){
return null;
}
var cleanedUp = moneyString.
replace(/\s+/g,'').
replace(/(\d)o/ig, function(match, p1, offset, string){
return p1 + '0';
}).
replace(/o(\d)/ig, function(match,... |
$(document).ready(function(){
$('.mo_menu .close').click(function(){
$('.mo_menu nav').stop().slideDown(500);
})
$('.mo_menu .close2').click(function(){
$('.mo_menu nav').stop().slideUp(500);
})
$(function(){
//위로 올라가기 버튼
$( window ).scroll( function(){
... |
// pages/myCoupon/myCoupon.js
var app = getApp();
var url = require('../../utils/url.js');
var constant = require('../../utils/constant.js');
Page({
/**
* 页面的初始数据
*/
data: {
couponPro: [],
Isdescview:true,
isHiddenImageStatus:true,
shopId: '',
typeNum: '',
address: '',
jump: '',
... |
var time = ["","15","30","10",'4',"40","30"];
var events = ["","Pre Service","Worship","MC Bridge","Meet and Greet","Message","Message"];
var notes = ["","Atmosphere","","Notices Offering","","","Alter Call"];
function fillpreset(){
y = document.getElementById("preset");
document.getElementById("time").val... |
var module = angular.module('ucms.app.user.list', ['bw.paging']);
module.controller('userListCtrl', function ($scope, $xhttp, $modal, alertSvc, $uibModal) {
$scope.objectType = 'User';
$scope.users = [];
$scope.pageSizes = [10, 20, 30];
$scope.isFilter = false;
$scope.Statuses = [{ value: "Active" ... |
import React, { useState } from "react"
import PropTypes from "prop-types"
import { Link } from "gatsby"
import { useTranslation } from "react-i18next"
import Logo from "src/assets/logo.svg"
import LogoType from "src/assets/logo-type"
import { LANGUAGES } from "src/locales/i18n"
import { HeaderWrapper, TopWrapper, Dr... |
const getValue = require('get-value')
module.exports = themeOptions => {
const services = {
algolia: getValue(themeOptions, 'services.algolia', false),
mailchimp: getValue(themeOptions, 'services.mailchimp', false),
disqus: getValue(themeOptions, 'services.disqus', false)
}
const sources = {
mdx... |
function change(text) {
var words = text.split(" ");
var newText = "";
words.forEach(function (word) {
if (word.match(/'\w+'/)) {
newText += word.replace(/'/g, "\"") + " ";
}
else {
newText += word + " ";
}
})
return newText;
}
... |
import * as actionTypes from '../../actions';
const userReducer= (
state={
name:"",
role:""
}
,action)=>{
switch(action.type){
case actionTypes.setName :
state={
...state,
name :action.... |
import Link from "next/link";
import MainHeader from "./../sections/headers/MainHeader";
import LandingPageFooter from '../../components/sections/footers/LandingPageFooter'
import React from "react";
function Layout(props) {
return (
<div className="b2c">
<section className=" ad-banner">
... |
import { Router } from 'express';
import passport from 'passport';
import isBusinessOwner from '../middleware/businessOwner';
import upload from '../../services/multerService';
import catalogueController from '../../controllers/catalogue';
const route = Router();
export default (app) => {
app.use('/catalogue', rout... |
angular
.module('altairApp')
.controller("orgNewCtrl", [
'$scope',
'$rootScope',
'$state',
'lptypes',
'role_data',
'$ti... |
// Model for cloning exercise descriptions.
P.models.exercises.Clone = P.Model.extend({
url: function() {
var id = this.get('desc').id;
return '/api/exercise-description/' + id + '/clone';
},
toJSON: function() {
return {
'user_id': this.get('user_id')
};
}
}); |
"use strict";
// Keeps track of recipes with missing ingredients to be added.
function hideCard(results) {
// show confirmation message
$('#another-saved-msg').toggleClass('hidden');
$('#confirm-add').html('Recipe has been saved.');
var newSelectorString = '[data-card-recipe-id=' + results['recipe_id']... |
export function camelCaseObjectProperties(obj) {
if (obj === null) return;
const newObj = {};
for (let param of Object.keys(obj)) {
if (typeof obj[param] === 'object' && !Array.isArray(obj[param])) {
newObj[convertToCamelCase(param)] = camelCaseObjectProperties(obj[param]);
} else if (Array.isArray... |
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { DDP } from 'meteor/ddp';
import { Random } from 'meteor/random';
import { PackageVersion } from 'meteor/package-version-parser';
import { HTTP } from 'meteor/http';
import Fiber from 'fibers';
import { PackageServer } from './packa... |
$(()=> {
let clicked = 0;
let countMax = $(".item").length - 4;
$(".arrowLeft").on("click", () => {
clicked--;
setTransform ();
})
$(".arrowRight").on("click", () => {
clicked++;
setTransform ();
})
function setTransform () {
if (clicked == -1) clicked = countMax;
if (clicked ==... |
Vue.component('header-component', {
template: `
<div class="">
<h4 id="heading" class="card-panel green white-text center-align">Number System Converter</h4>
</div>
`
}); |
import React, { useEffect, useState } from 'react';
import { hardcodedClientApi } from '../../services/data-client';
export const Categories = ({ filterProducts, currentCategory }) => {
const [loading, setLoading] = useState(false);
const [categories, setCategories] = useState([
{ id: 0, description: 'string' ... |
const express = require('express');
const path = require('path');
const favicon = require('serve-favicon');
const logger = require('morgan');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const urlSettings = require("./my_modules/urlSettings");
const app = express();
// ... |
import React, { Component, useCallback, useContext } from "react";
import Button from "@material-ui/core/Button";
import TextField from "@material-ui/core/TextField";
import { CssBaseline } from "@material-ui/core";
import Container from "@material-ui/core/Container";
import Typography from "@material-ui/core/Typograph... |
import fetch from 'node-fetch'
import { propOr } from 'ramda'
import dotenv from 'dotenv'
if (process.env.NODE_ENV !== 'production') {
dotenv.config()
}
const WORKSHOP_API = process.env['WORKSHOP_API']
const moviesURL = `${WORKSHOP_API}/movies`
export async function get(req) {
const {params} = req
//const bea... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import { LinearProgress } from 'material-ui/Progress';
const styleSheet = createStyleSheet('LoadingInfinite', {
root: {
width: '100%',
},
});
function LoadingInfinite(props... |
class Student{
setStudent(name,rollno,course,total){
this.name=name;
this.rollno=rollno;
this.course=course;
this.total=total;
}
printStudent(){
console.log(this.name)
console.log(this.rollno)
console.log(this.course)
console.log(this.total)
}
}
var obj=new Student()
obj.setStudent("samvi",25,"e... |
import React from "react";
import SigninPage from "../components/Siginpage/Signinpage";
const Signinpage = () => {
return (
<div>
<SigninPage />
</div>
);
};
export default Signinpage;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.