text
stringlengths
7
3.69M
(function (factory) { if (typeof define === "function" && define.amd) { // AMD. Register as an anonymous module. define([], factory); } else if (typeof exports === "object") { // Node/CommonJS module.exports = factory(); } else { // Browser globals window.Vali...
import axios from 'axios'; // prepare initial state for a command (see /bot/commands.go for the back-end structure) const state = () => ({ commands: [], }) // getters const getters = { getCommands: (state) => { return state.commands; } } // mutations const mutations = { setCommands: (state, c...
import { REHYDRATE } from 'redux-persist'; import * as actionTypes from '../constants/actionTypes'; import * as statusTypes from '../constants/status'; export default function(state = {}, action) { const { key } = action; switch (action.type) { case actionTypes.UPLOAD_KEY_FAILURE: return { status...
import React, { Component } from 'react'; import Tips from '../../common/tips'; import ChatMessageItem from '../../message/chatMessageItem'; import { fetchAsync } from '../common/utils'; export default class ChatList extends Component { state = { dataSource: [] }; getDataSource = async (cid, csid...
import React from "react"; import {Component, Fragment} from 'react'; class ItemCard extends Component { constructor(props) { super(props); this.handleAddToBasket = this.handleAddToBasket.bind(this); this.handleDelCard = this.handleDelCard.bind(this); this.toCardPage = this.toCardP...
'use strict'; module.exports = (sequelize, DataTypes) => { const Activity = sequelize.define( 'Activity', { petId: { allowNull: false, type: DataTypes.INTEGER, }, userId: { allowNull: false, type: Dat...
'use strict'; { /*-------------------------------------------------------Code Options Section */ /* Handlebars */ const templates = { articleLink: Handlebars.compile(document.querySelector('#template-article-link').innerHTML), tagLink: Handlebars.compile(document.querySelector('#template-tag-link').innerH...
import React, { Component } from "react" import "./Auth.css" import { connect } from "react-redux"; import { bindActionCreators } from "redux"; import * as action from "./redux/action"; import login from "./data/Login.json"; import { Redirect } from "react-router-dom"; class Auth extends Component { constructor()...
/* Created by Dimov Daniel Mobidonia daniel@mobidonia.com */ import React, {Component} from "react"; import {Platform,Text,View,TouchableOpacity,StyleSheet,ScrollView,AsyncStorage,Share,Linking, UIManager, LayoutAnimation} from "react-native"; import Navbar from '@components/Navbar'; import firebase from '@datapo...
var searchData= [ ['debug',['debug',['../namespacedebug.html',1,'']]] ];
const assert = require('assert'); const controllers = require('../src/controllers') const HOME_API_EXPECTED_MSG = 'Hello, Singapore!'; describe('Controllers', function() { describe('hello', function() { it('should return Hello World!', function() { const helloFromSomeEnv = controllers.hello(); asser...
const express = require("express"); const User = require("../models/User.js") const router = express.Router(); // @desc Register user // @route POST /api/v1/auth/Register // @access public router.post("/register", async (req, res, next) => { try { const { name, email, password, role } = req.bod...
import React, { Component } from 'react'; import { FormControl, InputGroup, Container, Row, Col, Button, Alert } from 'react-bootstrap'; import { Link, Redirect } from 'react-router-dom'; import axios from 'axios'; import config from '../../config'; import QRCodeImg from "../Session/QRCodeImg"; import YouTube from "rea...
import React from 'react'; import TextareaAutosize from 'react-textarea-autosize'; export default class PostEditor extends React.Component { constructor(props, context) { super(props, context); this.state = { text: this.props.text || '' }; } onTextareaChange(e) { this.setState({ text: e.t...
import React from "react"; import PropTypes from "prop-types"; import styles from "./styles.module.scss"; import { Divider, Button, } from 'semantic-ui-react' import ReactSVG from 'react-svg'; import { NETWORK, NETWORK_TYPE } from "./../../config/constants" const MusicVerifier = (props, context) =...
//Clase Specie, para obtener las especies de Star Wars API class Specie{ constructor(){ this.path = "https://swapi.co/api/species/"; } async getSpecies(){ const response = await fetch (this.path); const result =await response.json(); return await result.results; } async getSpecieByID(id){ ...
function ready(){ console.log("Sono pronto a caricare tutti gli assistance services"); $.ajax({ method: "POST", crossDomain: true, //localhost purposes url: "includes/php/query.php", //percorso file.php data: {query : "SELECT * FROM categoriaservizioassistenza ORDER BY idser...
import {copyAttrs} from "../../utilities/tools"; import {createElement} from "../../utilities/travrs"; // ---- Helpers ---------------- // Find all Bridge-MathJax elements and extract MATHML markup. const cleanMath = (source) => { Array.from(source.querySelectorAll('span.glass')).forEach(element => { const pare...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * Will use call the requestAnimationFrame function. This is an alternative * to using a throttling function. * @param {Function} cb * @function * @returns {void} */ var withRaf = function withRaf(cb) { ...
// Controlador de estadísticas // Importamos el modelo var models = require('../models/models.js'); // GET /quizes/statistics <-- Estadísticas // Total de preguntas exports.totQzs = function(req, res, next) { models.Quiz.count({ where: "pregunta != ''" }).then(function(quizes) { console.log("OK - Total Pregu...
if (debug) { console.log("search.js"); } function search() { input = document.getElementById("searchBox"); filterValue = input.value.toLowerCase(); filterValue = filterValue.replace(/\s+/g, '') console.log(filterValue); for (var i = 0; i < projects.length; i++) { var hide = true; let key = projects...
/** * Created by joaovieg on 16/11/16. */ "use strict"; var request = require('supertest'); var assert = require('chai').assert; describe('endpoints tests', function() { var app = require(__dirname + '/index'); var sessionless = request(app); it('should return echo', function(done) { var msg =...
const tipCollection = [ { tipStr: "Create a Comfortable Enviornment" }, { tipStr: "Know Your Fish" }, { tipStr: "Do Not Overfeed Your Fish" }, ] export const useTips = () =>{ return tipCollection.slice() }
const path = require("path"); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { mode: 'development',//webpack4以降はモード指定しなければいけない entry: {bundle: './src/index.js'},//エントリーポイント。連想配列にすることでappというキーに対してはindex.jsがentryとセットできる output: { path: path.join(__dirname, "dist"), ...
/** * 店铺订单列表 */ import React, { Component, PureComponent } from 'react'; import { StyleSheet, Dimensions, View, Text, Image, ScrollView, TouchableOpacity, Platform, BackHandler, Modal, } from 'react-native'; import { connect } from 'rn-dva'; import CommonStyles from '../../../common/Styles'; impor...
$(document).ready(function(){ head_select(); }); function head_select(){ $(".navbar").find("ul li a").removeClass("select"); $(".navbar").find("ul li a[mark=dianjiazixun]").addClass("select"); }
function Ticker(ratio) { var self = this; this.active = true; this.ratio = ratio; this.nextSample = 0.0; this.period = 0; this.flt = audioLib.LP12Filter(dev.sampleRate, this.ratio * 440, 4); this.bpmUpdated = function() { self.period = Math.round(Ticker.prototype.measure_length / self...
angular.module('myApp') .controller('logOutCtrl', function($scope, $window) { $scope.login = function() { $window.location.href = 'templates/login.html'; } });
$(document ).ready(function(){ var Random=Math.floor(Math.random()*101+19) //Provides randoms number to display at beginning of game //Number should be between 19-120 // $('#randomNumber').text(Random); //appending random number to "randomNumber id" // var num1= Math.floor(Math.random()*11+1) var num2= Math.fl...
import React, { useEffect, useRef, useState } from 'react'; import styled from 'styled-components'; import gsap from 'gsap'; import PropTypes from 'prop-types'; import CloseButton from '../../atoms/CloseButton/CloseButton'; import { useOutsideClick } from '../../../utils/customHooks'; const StyledWrapper = styled.div`...
/** * Task.js * * @description :: a task model * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { attributes: { name: { type: 'string', maxLength: 30, required: true }, description: 'string', tags: 'array', timesheets: { model: 'timesheet' ...
//================================= // Class Coo //================================= var AstroMath = require("./AstroMath"); /** * Constructor * @param longitude longitude (decimal degrees) * @param latitude latitude (decimal degrees) * @param prec precision * (8: 1/1000th sec, 7: 1/100th sec, 6: 1/10th sec, 5: s...
/* startup.js * Create initial data for demo * The important thing is that the users object has at least one Classes object ID in it’s list :) */ Meteor.startup(function(){ if ( !Classes.find().count() ){ Classes.insert({ "data": [ { "name": "Catwoman", "course_number": 16, ...
import request from '@/utils/request' import axios from "axios"; // 登陆接口 export async function login(user, pwd) { const result = await axios.post("http://47.101.150.127:3030/user/login", { account: user, user_pwd: pwd }) return result } // 退出登陆 export function logout() { return request({ // url: '/vue-admin...
Alloy.Globals.fb.appid = Ti.App.Properties.getString('ti.facebook.appid'); Alloy.Globals.fb.permissions = ['publish_stream','email','user_birthday']; Alloy.Globals.fb.forceDialogAuth = false; Alloy.Globals.fb.addEventListener('login', function(e) { if (e.success) { Ti.App.Properties.setString('Cloud.sessionId',...
'use strict'; xdescribe('time Combined Demos',function(){ it('双时间控件和tab控件结合点击选择时间点(天)是否正确',function(){ //直接输入点击显示结果 browser.get('test/e2e/testee/time/web/combined.html'); var time=element(by.css(".demo1 p")); var timeOne = element(by.css(".demo1 input:first-child")); var time...
// public/js/services/ContatoService.js angular.module('ramalhoexpress').factory('AcessoRestrito', function($resource) { return $resource('/acessoRestrito'); });
import React from 'react'; import PropTypes from 'prop-types'; const JsonLd = ({data}) => { const verified_data = {}; for (let key in data) { if (data.hasOwnProperty(key) && typeof data[key] !== 'undefined' && !(typeof data[key] === 'string' && data[key].length === 0) )...
if (localStorage['tema']=='dia') { document.getElementById('href').href = "css/style.css"; }else if (localStorage['tema']=='noche') { document.getElementById('href').href = "css/modoNocturno.css"; } /*------------------------JS DEL DROPDOWNS--------------------------------*/ function myFunctionMenu() { documen...
/** * easy ui 扩展 * @author ying */ /** * 扩展验证类型 */ $.extend($.fn.validatebox.defaults.rules, { minLength : { // 判断最小长度 validator : function(value, param) { return value.length >= param[0]; }, message : '最少输入{0}个字符。' }, maxLength : { validator : function(value, param) { return value.length <= par...
import glamorous from 'glamorous' const Grid = glamorous.div({ display: 'flex', flexWrap: 'wrap', marginLeft: '-1%', marginRight: '-1%' }) export default Grid
module.exports.init = () => { const gulp = require('gulp'); gulp.task('watch', (finishedCallback) => { gulp.watch('src/css/**/*.css', gulp.series(['css'])); gulp.watch('src/ts/**/*.ts', gulp.series(['ts'])); gulp.watch('src/html/**/*.html', gulp.series(['html'])); finishedCallback(); ...
function solve(arr){ let output = []; for(let i of arr){ if(i<0){ output.unshift(i); }else { output.push(i); } } return output; } console.log(solve([7, -2, 8, 9]).join(' ')); console.log(solve([3, -2, 0, -1]).join(' '));
// import the api endpoints import { getAllShows, getShow, getShowImages } from '@/api/shows.api' /** * Shows state: * - shows (Array of Objects) * - genres (Array of Strings) * - showInfo (Object) * - showImages (Array of Objects) */ const state = { shows: [], genres: [], showInfo: [], showImages: [], }...
const _ = require('lodash'); exports.getMissingFields = (data, fields) => { const keys = _.keys(data); return _.difference(fields, keys); }
function compare(hand1, hand2){ var value_hand1 = hand1.value(); var value_hand2 = hand2.value(); if( 10000 * value_hand1[0] + 100 * value_hand1[1] + value_hand1[2] == 10000 * value_hand2[0] + 100 * value_hand2[1] + value_hand2[2] ) return 0; if( 10000 * value_hand1[0] + 100 * value_hand1[1] + value_han...
const withDefaults = require('./src/utils/default.options') module.exports = options => { options = withDefaults(options) return { plugins: [ options.sources.mdx && { resolve: 'gatsby-plugin-mdx', options: { extensions: ['.mdx', '.md'], gatsbyRemarkPlugins: [ ...
window.gdrive = (function(){ var imgIndex = 0; var computeHeading = google.maps.geometry.spherical.computeHeading; var interpolate = google.maps.geometry.spherical.interpolate; var SPEED = 300; var map, directionsService; var densityFactor = 1; var CURR_INDEX = 0; var STOP = false; v...
import React, { Component } from "react"; import { connect } from "react-redux"; import { View, KeyboardAvoidingView, Text, TextInput, TouchableOpacity, ImageBackground, StatusBar, ActivityIndicator, AsyncStorage, Platform, Alert, } from "react-native"; import styles from "./styles"; class Welc...
import React, {Component} from 'react' import { MDBCard, MDBCardBody, MDBBox, MDBChip } from 'mdbreact'; import * as moment from 'moment' import SurveyIcon from './SurveyIcon' import {connect} from "react-redux"; class SurveySubmission extends Component { constructor(props) { super(props...
import React,{Component} from 'react'; import Container from '../login/style'; import {Container, Logo, Input, Button, ButtonText} from './style'; import { StackActions, NavigationActions } from 'react-navigation-stack'; export default class Cadastro extends Component{ handleUserChange = (username) => { t...
/** * Created by Prateek Sharma on 02/01/17. */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var uuid = require('uuid/v4'); var DAO = require('../dao/DAO') var Async = require('async'); var paragraphSchema = new Schema({ text: {type: String}, eid: {type: String, unique: true}, postEi...
angular.module('ngApp.common').directive('accessLabel', function () { return { restrict: 'A', link: function (scope, elem, attrs) { $(elem).on('scroll', function (evt) { var elements = document.getElementsByClassName("width80"); angular.forEach(elements...
Ext.define('Admin.view.dashboard.Dashboard', { extend: 'Ext.container.Container', xtype: 'admindashboard', requires: [ 'Ext.ux.layout.ResponsiveColumn' ], controller: 'dashboard', viewModel: { type: 'dashboard' }, layout: 'responsivecolumn', listeners: { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class GroupReportUpdate { constructor(model) { if (!model) return; this.code = model.code; this.name = model.name; if (model.order) this.order = model.order; this.searchTerm =...
import AppDispatcher from '../dispatcher/AppDispatcher'; import AppConstants from '../constants/AppConstants'; import AuthService from '../services/AuthService'; import AuthActions from '../actions/AuthActions'; import cookie from 'react-cookie'; export default { start : () => { setTimeout(function(){ ...
function C_payment_A_pay( programName ){ let $containerTag = document.querySelector('#'+programName); $containerTag.setAttribute("onmousemove",""); const URL = '/PaySystem/A.payment/A.pay'; $select = document.querySelector("select"); $payMonth_jqxgrid = document.querySelector("#payMonth_jqxgrid"); $payDeta...
import axios from 'axios'; import { put, takeLatest } from 'redux-saga/effects'; function* getChart(action){ try{ const id = action.payload; const response = yield axios.get(`/api/chart/${id}`); yield put({type: `SET_CHART`, payload: response.data}); } catch(error){ console.log('Error getting chart...
import withFirebase from './context'; import Firebase from './Firebase'; export { withFirebase, Firebase };
var searchData= [ ['damping_12',['Damping',['../class_lean_1_1_touch_1_1_lean_drag_translate_x.html#a09a067797d13cf28921115f3db2abb75',1,'Lean.Touch.LeanDragTranslateX.Damping()'],['../class_lean_1_1_touch_1_1_lean_drag_translate_y.html#a7ce0cb7bcf248103c01be84648d37a76',1,'Lean.Touch.LeanDragTranslateY.Damping()']]]...
// Use this file along with the Persona include file: // <script src="https://login.persona.org/include.js"></script> // <script src="http://universefactory.net/auth/auth.js"></script> // Also create a container with id="signinbox" if you want buttons. // Let's keep everything in a nice namespace, shall we? var AUTH ...
module.exports = function(e) { if (e.ctrlKey || e.altKey || e.metaKey) { lab.vm.emu.saveScreenshot() } }
const list_model = require('../models/list-model'); const list_views = require('../views/list-views'); const get_lists = (req, res, next) => { const user = req.user; user.populate('lists') .execPopulate() .then(() => { console.log('user:', user); let data = { ...
var searchData= [ ['wall',['Wall',['../classWall.html',1,'']]], ['wallpoint',['WallPoint',['../structWall_1_1WallPoint.html',1,'Wall']]], ['wheelvelocities',['wheelvelocities',['../structMovement_1_1wheelvelocities.html',1,'Movement']]] ];
var Sequelize = require("sequelize"); var sequelize = new Sequelize("postgres:///do_something"); var List = sequelize.import("../app/models/list"); var Task = sequelize.import("../app/models/task"); Task.belongsTo(List); List.hasMany(Task); module.exports = { Sequelize: Sequelize, sequelize: sequelize, models: ...
import img1 from "./assets/img/1.png"; export const model = [ { type: "title", value: "Page constructor", options: { styles: "background: antiquewhite; color:black; text-align:center;padding:20px 0;font-size:30px;", tag: "h2", ...
var tenantID = "ringring.chat"; var defaultTimeZone = "EST"; // const firebaseConfig = { // apiKey: "AIzaSyBItfHELIR2-Go1uZhnm4q6w21PeN9o7H4", // authDomain: "jolomedia-live.firebaseapp.com", // databaseURL: "https://jolomedia-live.firebaseio.com", // projectId: "jolomedia-live", // storageBucket:...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
OpenLayers.Layer.SuperMapCloud = OpenLayers.Class(OpenLayers.Layer.ArcGISCache,{ initialize: function (name, url, options) { OpenLayers.Layer.ArcGISCache.prototype.initialize.apply(this, [name, url, options]); }, getURL: function (bounds) { OpenLayers.Layer.ArcGISCache.prototype.getURL.apply(th...
$(document).ready(function () { //Fetching API url var apirul = $('#hdApiUrl').val(); //Loading table RefreshTable(); //Initialises form validation if implemented any $.validate(); $('#listTable').DataTable({ dom: 'Blfrtip', buttons: ['copy', 'excel', 'csv', 'print'] }); //new entry ...
var Joi = require('joi') var Calibrate = require('calibrate') exports.register = function (plugin, options, next) { var user = plugin.plugins['user'] var db = plugin.plugins['hapi-level'].db.sublevel('country') var Country = require('./Country')(db, user) plugin.expose(Country) plugin.route([ ...
var Utils = { getParameterByName : function(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)",'i'), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/...
import React, {useState} from 'react'; import {StyleSheet, Text, View} from 'react-native'; import Button from '../../components/Button'; import {Formik} from 'formik'; import {useDispatch} from 'react-redux'; import {checkPhone, register} from '../../redux/auth/auth.actions'; import Styles from '../../constants/Styles...
$(document).ready(function () { $('button').click(function () { $('.pop').dialog(); }) $('#calendario').datepicker() $('#pestanas').tabs(); });
const container = document.getElementById('container'); function render() { chrome.storage.local.get(['features'], function (result) { let features; if (result.hasOwnProperty('features')) { features = result.features; } else { return; } for (const fe...
//demo purposes only const Web3 = require('web3'); const ethUtil = require('ethereumjs-util'); const BN = ethUtil.BN; const assert = require('assert'); const {PlasmaTransaction, TxTypeFund, TxTypeMerge, TxTypeSplit, TxTypeWithdraw, TxTypeTransfer, TxLengthForType, NumInputsForType, ...
define("alinw/pagination/2.0.3/pagination-debug", [ "$-debug", "alinw/select/2.0.0/select-debug", "arale/select/0.9.7/select-debug", "arale/overlay/1.1.1/overlay-debug", "arale/position/1.0.1/position-debug", "arale/iframe-shim/1.0.2/iframe-shim-debug", "arale/widget/1.1.1/widget-debug", "arale/base/1.1.1/base-debug", ...
import React from 'react'; import {Route} from 'react-router-dom'; // import './App.css'; import TopNavigation from './pages/TopNavigation'; import Home from './pages/Home'; import Footer from './pages/Footer' const App =({location}) => ( <div> <TopNavigation /> <Route location={location} path="/" exact com...
/** @file Functions used by multiple models */ 'use strict'; let mysql = require('mysql'); let dbConfig = require('../../config/db-config').getDbConfig(); let fs = require('fs'); const MAX_POSITION = 1000000; class ModelUtil { static get MAX_POSITION() { return MAX_POSITION; } /** * Create ...
$(document).ready(function() { var current_page = document.location.pathname.match(/[^\/]+$/)[0]; var specified_pos = window.location.href.split("#"); /* if(current_page == 'about') { $('#aboutTab').addClass('active'); } */ if(current_page == 'workAt') { $('#workAt_index_img').css('display', 'block'); ...
var cont = require('node-monad').continuation; var assert = require('assert'); var JsonRpcErrorCode = { PARSE_ERROR: -32700, INVALID_REQUEST: -32600, METHOD_NOT_FOUND: -32601, INVALID_PARAMS: -32602, INTERNAL_ERROR: -32603 }; function basicJsonRpcResultObject(id) { return { jsonrpc: '2.0', id: id }; } fun...
import { combineReducers } from 'redux'; import createDashboard from './dashboardReducer'; // Root reducer of the app const rootReducer = combineReducers({ dashboard: createDashboard(), }); export default rootReducer;
'use strict'; var express = require('express'); var router = express.Router(); var Room = require('../models/room'); var Item = require('../models/item'); router.get('/', function( req, res ) { Room.find({}).populate('items').exec(function(err,rooms){ res.status(err ? 400 : 200).send(err ? "room get failed" : ...
const graphql = require('graphql'); const { GraphQLSchema } = graphql; const mutation = require('./mutations'); const RootType = require('./types/root-type'); module.exports = new GraphQLSchema({ query: RootType, mutation })
"use strict" var baseURL = window.location.origin + '/'; var c; var ctx; var glHost; var depth = 0.03; var scale = 20; var colour = {r: 0.83, g: 0.83, b: 0.83}; var colourbg = {r: 0.83, g: 0.83, b: 0.83}; if (window.requestAnimationFrame == null) { window.requestAnimationFrame = window.mozRequestAnimationFra...
// import required dependencies const configs = require('../configs/configs'); const jwtSecret = configs.jwtSecret; const bcrypt = require('bcrypt'); const jwt = require('jsonwebtoken'); const {validationResult} = require('express-validator'); // const uuidv4 = require('uuid/v4'); // const { check, validationResult } ...
const Blog = require('../models/blog') const User = require('../models/user') const jwt = require('jsonwebtoken') const BlogController = {} BlogController.addPost = async ( req, res) => { try { let blog = new Blog(req.body) let result = await blog.save() res.status(201).send({message: 'Blo...
console.clear(); function makePizza(flavour){ // they call to this function after 1000 ml second setTimeout(function(){ console.log("Preparing pizza"); return "prepared" + flavour+ "pizza"; },1000); return "Order recived "+flavour + " Pizza"; } // makePizza return order recieved ins...
import React from 'react'; import ContactsStyles from './Contacts.module.css'; export const Contacts = (props) => { setTimeout(props.turnOffAnimateDisplay,5000) return ( <div className = {props.showContentStylesToggle ? ContactsStyles.main + " " + ContactsStyles.showContent : ContactsStyles.main}> <p> ...
const express = require('express'); const router = express.Router(); const initHelpers = require('../dbHelpers/helpers'); module.exports = (db) => { const helpers = initHelpers(db); router.post("/", (req, res) => { const { userName, password } = req.body; // once user logs in session cookie is set ...
/* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different ...
//"TaskId": "T_PRYCTYDNQOYSI_867"
import React from 'react'; import * as firebase from 'firebase'; import './rightbar.css'; class RightBar extends React.Component { constructor(props) { super(props); this.state = { postinfo: [], urls: [] }; } componentDidMount() { let newState = []; let db = firebase.database()...
// Variables to store the users choice var areaChosen var categoryChosen //Variables to keep track of clicked buttons var area = false var category = false //Click function for ctrecipebuttons $(".arrecipebttn").on("click", function () { //var to check the value of clicked var clicked = $(this).attr("cli...
// Auto generated list of analyzer stop words that must be ignored by search. stopWords = new Array(); stopWords[0]= "but"; stopWords[1]= "be"; stopWords[2]= "with"; stopWords[3]= "such"; stopWords[4]= "then"; stopWords[5]= "for"; stopWords[6]= "no"; stopWords[7]= "will"; stopWords[8]= "not"; stopWords[9]= "are"; stopW...
import React, { useEffect,useState } from "react"; import {db} from "../../firebase/config" import "./allmember.css" function AllMembers() { const [members, setMembers] = useState([]) const [member, setMember] = useState(false) const [loading,setLoading] = useState(true) useEffect( () => { const get ...
/* Simple HTTP Service for Vue.js * Rexon A. De los Reyes * 02262016 * MIT Licensed. */ var vHttp = (function () { // Global Vue Http Object; won't be available w/o vue-resource. var $http = Vue.http; // Property var var _sUrl = '', _sMethods = 'POST', _oData = {}, _fnSucce...
// Handles the feed function setFilter(filter, id){ currentFilter = filter; currentFilterId = id; getMessages(currentFilter, currentFilterId); $( "#menueDiv li[class~='active']" ).removeClass( "active" ); $( "#menueDiv li a[onclick~='setFilter('" + filter + "')']" ).parent().addClass( "active" ); } function...
import React, { useState, useEffect } from "react"; import { func } from "prop-types"; import { connect } from "react-redux"; import { getTweets } from "../Api"; import TweetCard from "../container/TweetCard"; import { WattingIcon } from "../BaseComponents/SVGIcons"; import PullDownRefresh from "../middleComponents/Pul...
// Our Twitter library var Twit = require('twit'); // We need to include our configuration file var T = new Twit(require('./config.js')); // Get last 50 tweets at me var secondMentionSearch = {count: 50, since_id: 606175411450605600}; var sinceID = 606175411450605600; function getMoreMentions() { T.get('statuses/me...