text stringlengths 7 3.69M |
|---|
import fromFetch from 'main/signals/sources/fromFetch'
export const good = fromFetch(() => ({
url: '/good.json'
}))
export const bad = fromFetch(() => ({
url: '/bad.json'
}))
export const waaat = fromFetch(() => ({
url: '/waaat.json'
}))
|
$(document).ready(function() {
setupPage();
populateTheme();
populateType();
$('.modal-title').append("Meditation Details");
});
var originalList; // Array of meditations on page load
var searchList; // Array used to diplay search results
var finalList = []; // Final list of searched meditations to di... |
/**
Copyright 2021 fernando.reyes@du.edu
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,... |
(function() {
var templates = {
"name": "clike",
"context": "clike",
"templates": [{
"name": "struct",
"description": "A structure is an object of a sequence of named members of various types.",
"template": "struct ${structName} {\n\t${type} ${variableName... |
//var url = "http://www.hatebin.se";
var url = "http://localhost/hatebin";
chrome.runtime.onMessage.addListener(function(request, sender, callback) {
//console.log(request);
if(request.type === "hate") {
$.ajax({
type: "POST",
url: url + "/api/hate",
data... |
define([
'hammer',
'zoomer'
],function (Hammer, SmartZoom) {
var submodule = function(){
this.init = function(app){
app.zoomableArea = null;
app.addDropArea = function(dropAreaId){
var dropArea = document.getElementById(dropAreaId);
var self = app;
if (dropArea != null){
... |
;(function (window,document) {
var reSize = function () {
var dpr = Math.floor(window.devicePixelRatio) || 1;
var html = document.documentElement;
html.setAttribute('data-dpr',dpr);
var scael = 1 / dpr;
var metaEle = document.createElement('meta');
metaEle.setAttri... |
import React, { Component } from 'react';
import { Interactions } from 'aws-amplify';
import { Widget, addResponseMessage, toggleWidget } from 'react-chat-widget';
import 'react-chat-widget/lib/styles.css';
import logo from '../logo.png';
// ChatBot only works for devices with screen widths higher than 1000px.
class ... |
import React, { useEffect, useState } from "react";
import { connect } from "react-redux";
import { startLoading } from "../actions/breeds";
import { initiateGetImages } from "../actions/images";
import styled from "styled-components";
import { makeStyles } from "@material-ui/core/styles";
import Button from "@material... |
import * as firebase from 'firebase'
const firebaseConfig = {
apiKey: "AIzaSyCEpkIFQQn_vwtz4qoUgkycWW6HECGbWNs",
authDomain: "roommates-6040d.firebaseapp.com",
projectId: "roommates-6040d",
storageBucket: "roommates-6040d.appspot.com",
messagingSenderId: "601507315210",
appId: "1:601507315210:we... |
const { Router } = require('express');
const router = new Router();
const ExamController = require('./controller.js');
/**
* @api {get} /feedback/:questionId Get feedback from a question
* @apiName GetFeedbackByQuestion
* @apiGroup Feedbacks
* @apiDescription This URL display a JSON containing all the feedback of... |
const express = require('express');
const router = express.Router();
const mongoose = require('mongoose');
// Load Question Model
require('../models/Question');
const Question = mongoose.model('questions');
// Load User Model
require('../models/User');
const User = mongoose.model('users');
// Import auth (for requiri... |
const Koa = require('koa')
const app = new Koa()
const json = require('koa-json')
const parameter = require('koa-parameter')
const bodyparser = require('koa-body')
const path = require('path')
const onerror = require('koa-json-error')
const logger = require('koa-logger')
const mongoose = require('mongoose')
const re... |
export const GET_USERS = 'GET_USERS';
export const GET_POKEMON = 'GET_POKEMON';
export const GET_POKEMON_LIST = 'GET_POKEMON_LIST';
export const CLEAR_POKEMON = 'CLEAR_POKEMON'; |
import React, { Component } from 'react'
import { Link } from "react-router-dom"
import BlankSignUpModal from './BlankSignUpModal.jsx'
export default class SignUp extends Component {
state = {
blankSignUp: ''
}
blankSignUpFunction = () => {
this.setState({blankSignUp: <BlankSignUpModal bla... |
/* Body Controller */
myAppC.controller('BodyCtrl', [
'$scope',
function ($scope) {
$scope.Title = "This is the body";
}
]); |
var searchData=
[
['waitpid_5fcallback_5ft',['waitpid_callback_t',['../structwaitpid__callback__t.html',1,'']]],
['worker_5fstate_5fs',['worker_state_s',['../structworker__state__s.html',1,'']]],
['workerthread_5fs',['workerthread_s',['../structworkerthread__s.html',1,'']]],
['workqueue_5fentry_5fs',['workqueue... |
var cooper = {
len: $('.co-oper-list').find('.co-oper-item').length,
zW: $('.co-operating-list').width(),
idx: 0,
basics: function () {
cooper.btnStatus();
var sTop = cooper.zW;
$(".co-oper-list").animate({
left: '-' + cooper.idx * sTop + 'px'
}, 500);
},
prev: function () {
cooper.idx--;
if (coope... |
$(function() {
var obj=$(".clear").last(),
cont=$(".cont").last(),
cards=0,
fName,
lName,
deals,
likes,
disLikes,
pictureURL,
rankURL,
rowsNum,
rank,
userId;
cont.before( "<div class='topLine'></div>" +
"<div... |
/**
* Author: Vitalii P.
* Site: https://get-web.site
* Version: 0.1.1
* https://github.com/get-web/insertmedia
*/
function insertmedia(config) {
// Pass in the objects to merge as arguments.
// For a deep extend, set the first argument to `true`.
const extend = function () {
// Variables
... |
import React from 'react'
import HomePage from './components/HomePage'
import './components/index.css'
import 'bulma/css/bulma.css'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
function App() {
return (
<div className="App">
{/* New - use BrowserRouter to provide access to /prof... |
const canvas = document.querySelector("#canvas");
const float = document.querySelector("#float");
const context = canvas.getContext("2d");
const context2 = float.getContext("2d");
const size = 50;
const count = 14;
const beginX = 50;
const beginY = 50;
let black = true;
const history = [];
const radius = 20;
initCanvas... |
import fs from "fs";
import antlr4 from "antlr4";
import PropertyFileLexer from "./PropertyFileLexer.js";
import PropertyFileParser from "./PropertyFileParser.js";
import PropertyFileListener from "./PropertyFileListener.js";
class PropertyFileLoader extends PropertyFileListener {
constructor() {
super();
... |
import { Dimensions } from 'react-native';
const { width, height } = Dimensions.get('window');
export default {
'5h': height * 0.05,
'10h': height * 0.1,
'20h': height * 0.2,
'25h': height * 0.25,
'30h': height * 0.3,
'35h': height * 0.35,
'40h': height * 0.4,
'50h': height * 0.5,
... |
// set the focus to the input box
document.getElementById("wisdom").focus();
// Initialize the Amazon Cognito credentials provider
AWS.config.region = 'us-west-2'; // Region
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
// Provide your Pool Id here
IdentityPoolId: 'us-west-2:3f9a57d4-8... |
const express = require("express"),
mongoose = require("mongoose"),
bodyParser = require("body-parser");
const indexRoutes = require("./routes/index"),
cardRoutes = require("./routes/cards");
const Card = require("./models/card");
const config = require("./config.js");
mongoose.c... |
/*
You are given two strings (st1, st2) as inputs.
Your task is to return a string containing the numbers in st2 which are not in str1.
Make sure the numbers are returned in ascending order.
All inputs will be a string of numbers.
Here are some examples:
findAdded('4455446', '447555446666'); // '56667'
findAdded('44... |
import React from 'react';
import * as Svg from 'react-native-svg';
const { Path } = Svg;
const SVG = ({
defaultColors = {},
color = '#b8b8b8',
width = 20,
height = 20
}) => {
// Use default colors if none hex color is set
color = color.startsWith('#') ? color : defaultColors[color];
return... |
$(document).ready(function() {
// Alert sliding.
$('div.alert').not('.alert-important').delay(3000).slideUp(300);
// Hapus Select dengan empty value dari URL.
$("#form-pencarian").submit(function() {
$("#id_kelas option[value='']").attr("disabled","disabled");
$("#jenis_kelamin option[v... |
Ext.define('Gvsu.modules.distinations.view.DistinationsForm', {
extend: 'Core.form.DetailForm',
titleIndex: 'name',
width: 550,
height: 400,
region: 'center',
layout: 'border',
defaults: {
margin: '0'
}
,buildItems: function() {
var me = this;
... |
(function () {
'use_strict';
angular.module('app')
.controller('navigation', navigation);
function navigation($scope, NavSection) {
$scope.adminNav = NavSection.find({
filter: {
include: 'NavList'
}
});
$scope.userNav = NavSection.find({
filter: {
where: {
SECTION_PK: 5
},
... |
///<reference types = "cypress"/>
import * as CadastrarViagem from "../request/postCadastrarViagem.request"
import { obj } from "../request/postCadastrarViagem.request"
describe("Teste API - Gerenciador Viagens..", () => {
let tokenAdmin
before(() => {
cy.getTokenAdmin().then(getTokenAdmin => {
... |
function FakeUser() {
this.name = 'júlia';
this.lastname = 'Stella';
}
const user = new FakeUser(); // Não é Factory
function FakeUser() {
this.name = 'júlia';
this.lastname = 'Stella';
}
const user = FakeUser(); // É Factory
|
function addControl() {
var name, key;
for (var i = 0; i < 7; i++) {
switch (i) {
case 0:
name = "left";
key = document.getElementById("id-left").value;
break;
case 1:
name = "right";
key = document... |
var express = require('express');
var serverConfig = require('./configs/configs.json');
var io = require('socket.io-client');
var sp = require('serialport');
var SerialPort = sp.SerialPort;
var com_port = 'COM5';
var serialport = new SerialPort(com_port, {
parser: sp.parsers.readline('\n')
});
var _portopen = false... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "d644af7325101e1166dafe54970bf554",
"url": "/monsters/index.html"
},
{
"revision": "839bca23748cf5e9daf5",
"url": "/monsters/static/css/main.a73e2e8a.chunk.css"
},
{
"revision": "c03d3f64331e577d1529",
"ur... |
import client from "../../client";
import { protectedResolver } from "../users.utils";
export default {
Mutation: {
deleteAccount: protectedResolver(
async (
_,
{ },
{ loggedInUser }
) => {
const deletedUser = await cli... |
import SimpleParser from './index.js'
function parser (opt) {
const parser = new SimpleParser({
token: [
['num', /[+-]?\d+/],
['sym', /[A-Z]{3}/],
['ge', />=/],
['le', /<=/],
['gt', />/],
['lt', /</],
['eq', /==/... |
/**
* Created by Dominic Fitzgerald on 10/7/15.
*/
$(document).ready(function(){
$topfivegenes = $('[data-name="topfivegenes"]').first();
$.get();
}); |
'use strict'
const sentiment = require('sentiment')
/**
* Construct a new SentmentBank object. A SentimentBank is used to keep track
* of sentiment for incoming text on a particular topic.
*
*/
function SentimentBank (trendName = '') {
let analyzed = 0
let totalSentiment = 0
// Ignore words occuring in the ... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { Lines } from '.';
storiesOf('Lines', module)
.add('Image number 1', () => (
<Lines imageNumber={1}/>
))
.add('Image number 2', () => (
<Lines imageNumber={2}/>
))
.add('Image number 3', () => (
<Lines imageNumber={... |
var pageSize = 20;
/**********************************************************************群組管理主頁面**************************************************************************************/
//群組管理Model
Ext.define('gigade.TicketDetailAllCode', {
extend: 'Ext.data.Model',
fields: [
{ name: "ticket_master_id",... |
var header = `<header class="w3-container w3-teal w3-padding" id="myHeader">
<i onclick="w3_open()" class="fa fa-bars w3-xlarge w3-button w3-teal"></i>
<div class="w3-center">
<h4>PROJECT BY VARUN SAINI</h4>
<h1 class="w3-xxxlarge w3-animate-bottom">RAILWAY MANAGEMENT SYSTEM</h1>
<!-- <div class="w3-padding-32">
... |
export function friendsOfFriends(state = [], action) {
switch (action.type) {
case "FRIENDS_OF_FRIENDS":
return action.friends;
}
return state;
}
|
const express = require ('express');
//from this express() function can make use of many utilities
const app=express();
//need it install it first. Use for error handling
const morgan=require('morgan');
const bodyPorser=require('body-parser');//first wee need to install body=parser
const mongoose = require('mongoose');... |
const dayjs = require('dayjs')
const { STATUS_CODE } = require('../utils/enums/response')
// 格式化时间
exports.formatTime = time => dayjs(time).format('YYYY-MM-DD HH:mm:ss')
// 处理成功响应
exports.success = ({ ctx, res = null, errmsg = '请求成功', pager = undefined })=> {
ctx.body = {
errcode: STATUS_CODE.OK,
object: re... |
require('dotenv').config()
module.exports = {
async bindLDAP(user, password, ldapClient) {
const result = await new Promise((resolve, reject) => {
ldapClient.bind(user, password, function (err) {
if (err) {
console.log({ message: `bind FAILED!`});
... |
'use strict';
var express = require('express'),
bodyParser = require('body-parser'),
swig = require('swig'),
config = require('./config'),
path = require('path');
module.exports = function(app) {
// configure app to use bodyParser()
// this will let us get the data from a POST
app.use(bodyParser... |
import { get } from 'lodash'
import { createSchema } from 'reforma'
describe('Schema', () => {
function createProfile(data) {
const id = get(data, 'id')
const firstName = get(data, 'firstName')
const lastName = get(data, 'lastName')
return {
id,
firstName,
lastName,
get fullN... |
import React, { useMemo } from 'react';
import PropTypes from 'prop-types';
import Grid from '@material-ui/core/Grid';
import { LinearProgress } from '@material-ui/core';
import CityInfo from './../components/CityInfo';
import Weather from './../components/Weather';
import WeatherDetail from './../components/WeatherDet... |
//可返回跳转
export const jump_nav = (url = '') => {
return new Promise((resolve, reject)=>{
wx.navigateTo({
url,
success(){
resolve()
}
})
})
}
//关闭当前页面,跳转到某一页面
export const jump_red = (url = '') => {
return new Promise((resolve, reject)=>{
... |
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faDesktop,
faPaintBrush,
faPenNib
} from "@fortawesome/free-solid-svg-icons";
const Services = () => {
return (
<div className="services-container">
<h2 className="service-header">Services... |
requirejs.config({
paths: {
//libs
'jquery': 'libs/jquery/dist/jquery.min',
'underscore': 'libs/underscore/underscore-min',
'backbone': 'libs/backbone/backbone-min',
'text': 'libs/requirejs/plugin/text',
//app
'app': 'app/main',
'router': 'app/router',
//tools
'tools.templateMana... |
import React from 'react';
import logo from '../svg/airbnblogo.png';
import './topbar.css';
function Topbar() {
return (
<div >
<header>
<div className="Topbar">
<a href="/" rel="noopener noreferrer"> <img src={logo} className="TopBar-logo"/></a>
<h4 className="T... |
import React, { Component } from "react";
import { InfoCircleOutlined, DeleteOutlined } from "@ant-design/icons";
import axios from "axios";
import { Table, Button, Input } from "antd";
import { Popconfirm, message } from "antd";
const { TextArea } = Input;
const columns = [
{ title: "ID", dataIndex: "id" },
{
... |
import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import common from './common/index'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
email: 'llgtfoo@163.com',
},
mutations: {},
actions: {},
modules: {
common,
},
plugins: [createPersistedS... |
/* eslint-disable jsx-a11y/anchor-is-valid */
/* eslint-disable jsx-a11y/anchor-has-content */
import React from 'react'
export default function HeaderTopLine(){
return(
<div className="topline">
<a href="#" className="topline__link">Магазини</a>
<a href="#" className="top... |
import React from 'react';
import { Modal } from 'antd';
import { connect } from 'react-redux';
import AppContentUserPersonChangeForm from './app-content-user-person-change-form/index';
import { doChangeUserPersonModalVisible } from '../../../../../redux/action/user';
import './index.css';
export class AppContentUserP... |
var mongoose = require('mongoose');
// Project Schema
var AwardSchema = mongoose.Schema({
username: {
type: String,
index:true
},
awardtitle: {
type: String
},
awarddetails: {
type: String
}
});
var Awards = module.exports = mongoose.model('Awards', AwardSchema,'awards');
//pr... |
/**
* Auth - Controller
*/
'use strict';
var _ = require('lodash');
var passport = require('passport');
var authHelper = require('../utils/authhelper');
/**
* Callback po udanym uwierzytelnieniu, w którym:
* - generowany jest token uwierzytelniający z domyślnym t... |
import React from "react";
import cx from "classnames";
import "./Input.scss";
const Input = props => {
const { type, name, value, label, onChange, error, onBlur } = props;
return (
<div className="Input__field">
<div className="Input__wrapper">
<input
id={`${name}-field`}
typ... |
"use strict";
var dbConn = require("../../config/db.config");
//insurances object create
var insurances = function (insurances) {
this.name = insurances.name;
this.active = insurances.active ? insurances.active : 1;
this.created_at = new Date();
this.updated_at = new Date();
};
insurances.create = function (ne... |
const solution = require('./index');
test('count number of distinct absolute values in a', () => {
const a = [-5,-3,-1, 0, 3, 6];
expect(solution(a)).toEqual(5);
});
|
$(function() {
// ハンバーガーメニューが押された時
$('#toggle').on('click',function(){
$(this).toggleClass('on');
$('.js-drower').toggleClass('on');
let isActive = $(this).hasClass('on');
toggleDrower(isActive);
});
}); |
/*#################################################
For: SSW 322
By: Bruno, Hayden, Madeline, Miriam, and Scott
#################################################*/
module.exports.get = require('./get');
module.exports.doesExist = require('./doesExist');
module.exports.create = require('./create');
module.exports.searc... |
const commands = require('../../../schema').commands;
module.exports = {
config: {
transaction: true
},
async up(options) {
function addSettingsColumn(column) {
return {
table: 'settings',
column,
dbIsInCorrectState(columnExists) ... |
console.log(module.exports); // {}
module.exports = {
a: 1,
b: 2
};
module.exports.c = 3; |
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import BaseView from '../../components/BaseView';
class SettingScreen extends Component {
render() {
return (
<BaseView>
<View style={styles.container}>
<Text> This is settings screen! </Text... |
import Vue from 'vue'
import Vuex from 'vuex'
import { axios } from '@/app.js';
Vue.use(Vuex)
export default new Vuex.Store({
state: {
user: null
// using Vuex to locally persist the user data, as opposed to directly using Cookies / LocalStorage.
// Gosh this is an extremely light usage o... |
const { GogoAnime, Hi10Anime } = require("./providers");
const lib = require("./lib");
const { cli, util, file, http } = lib;
util.interval._init(error);
/**
* @type {Object}
* @property {import('./structures').AnimeProvider} *
*/
const providers = {
gogoanime: new GogoAnime(lib),
};
/**
* @typedef {Object} Co... |
import Author from '../Models/Author'
const AuthorService = () => {
return fetch('https://jsonplaceholder.typicode.com/users')
.then(result => {
return result.json()
}).then((authors) => {
const authorResult = authors.map((author) => {
return new Author(autho... |
import React from "react";
import PropTypes from "prop-types";
export default class Question extends React.Component {
static propTypes = {
question: PropTypes.object
};
render() {
const question = this.props.question;
return (
<>
<div className="box">
<div className="columns... |
const WORKING_DAY = [
{ description: "finishing mobile version of check in activities", hours: 0.5 },
{ description: "Adressing QA feedback", hours: 1.5 },
];
const workingDayNormalized = WORKING_DAY.reduce((accum, current) => {
const { description, hours } = current;
if (hours <= 1) {
accum.push({ descrip... |
define(window.requireModuleWidgetList,
function (
) {
var widgets = [
];
for (var i=0; i < arguments.length; i++) {
var obj = arguments[i];
widgets.push(
{
id: window.requireModuleWidgets[window.requi... |
'use strict';
var app = angular.module('nibbleuser',
['ui.router','ui.bootstrap', 'xtForm', 'snap', 'chart.js',
'angular-svg-round-progress', 'ngTable', 'ngCookies']);
app.config(['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwis... |
import React from 'react'
const DropDown = (props) => {
return (
<div className = 'dropDown'>
<select className = 'dropDownOptions' onChange = {props.handleChangeDropDown}>
<option >Select Genre</option>
<option name = 'genre' value="Alternative Rock">Alternative Rock</option>
... |
var should = require('should');
var config = require('../config');
describe('Github Config',function() {
it('should define github passport config',function() {
config.passport.should.have.property('github');
});
it('should expose github secret',function() {
should(config.passpor... |
import React from 'react'
import { createAppContainer } from 'react-navigation';
import {createBottomTabNavigator} from 'react-navigation-tabs';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'
import LoginScreen from './login/LoginScreen'
import AdvocateScreen from './advocate/AdvocateScreen'
c... |
import React from "react";
import { mount, shallow } from "enzyme";
import GoogleLogoutButton from "../../google_auth/GoogleLogoutButton";
describe("GoogleLogoutButton", () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<GoogleLogoutButton />);
});
it("should render correctly", () => {
expec... |
const port = 'http://101.200.45.85:8006';
export default api = {
register:`${port}/user/register`,
login:`${port}/user/login`,
update:`${port}/user/update`,
getMenuLimit:`${port}/getMenuLimit`,
setCollection:`${port}/user/setCollection`,
getCollection:`${port}/user/getCollection`,
deleteCollection:`${por... |
window.onload = setAllColors();
window.onbeforeunload = function () {
return 'Save changes before quitting session (ctrl + s)';
};
$(function () {
$("td").click(function (event){
var tdObj = $(this);
if(tdObj.attr("id") != "dropdownTableData"){
var originalText = tdObj.text();
var inp... |
const path = require("path");
const HtmlWebPackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
// style files regexes
const cssRegex = /\.css$/;
const cssModuleRegex = /\.module\.css$/;
const sassR... |
import React from 'react';
import {ReUnderwritingApp} from './components/organisms/reUnderwritingApp/ReUnderwritingApp.js'
function App() {
return (
<ReUnderwritingApp/>
);
}
export default App;
|
(function () {
'use strict';
angular.module('NarrowItDownApp', [])
.controller('NarrowItDownController', NarrowItDownController)
.service('MenuSearchService', MenuSearchService)
.constant('ApiBasePath', "https://davids-restaurant.herokuapp.com")
.directive('foundItems', FoundItemsDirective);
function FoundItemsDir... |
(function() {
'use strict';
angular.module('tabsDemoDynamicHeight', ['ngMaterial']);
angular.module('app.citas.controller', ['ngMaterial', 'ngMessages',
'ui.calendar', 'ngMaterialDatePicker'
])
.controller('CitasCreateCtrl', CitasCreateCtrl)
.controller('CalendarCtrl', CalendarCtrl)
.control... |
/*
*description:用户中心
*author:fanwei
*date:2014/04/25
*/
define(function(require, exports, module){
var param = require('../../../../global/js/global/getParam');
var until = require('../../../../global/js/global/until');
require('../../../../global/js/global/loading');
var loadingTimer;
$(docume... |
import React, { Component } from 'react'
import { Dimensions,TextInput,ScrollView ,CheckBox,View,Text ,TouchableOpacity} from 'react-native';
import AutoHeightImage from 'react-native-auto-height-image' ;
import StyleSheet from './HeaderStyle';
import { thisExpression } from '@babel/types';
export default class Heade... |
import request from '../config'
export const getNeedOrderList = params => request(`/postDemand/getOrderNeedsList`, {params})
export const getServiceOrderList = params => request(`/tenderDemand/getQuotes`, {params})
|
import React, { useState } from "react";
import Counter from "./Counter";
export const ThemeContext = React.createContext();
function App() {
const [theme, setTheme] = useState("green");
function handleToggleTheme() {
if (theme === "green") setTheme("blue");
else setTheme("green");
}
return (
<Them... |
import React from 'react';
import * as firebase from "firebase";
import 'firebase/firestore';
import { GoogleSignin, GoogleSigninButton, statusCodes } from 'react-native-google-signin';
import { myFirebase } from './firebaseConfig';
import axios from 'axios'
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,... |
import React, { useState, useEffect } from "react";
import Welcome from "./Components/Welcome";
import SellerLogin from "./Components/SellerLogin";
import BuyerLogin from "./Components/BuyerLogin";
import SellerSignup from "./Components/SellerSignup";
import BuyerSignup from "./Components/BuyerSignup";
import Seller fr... |
import React from 'react';
import Card from 'react-bootstrap/Card';
import Col from 'react-bootstrap/Col';
import Badge from 'react-bootstrap/Badge';
import Link from 'react-router-dom/Link';
import "./EventCard.css";
const EventCard = (props) => (
<Col xs={12} md={4}>
<Link to={`/event/${props.event.id}`}... |
var link = document.querySelector(".button-write");
var popup = document.querySelector(".modal-feedback");
var close = popup.querySelector(".modal-close");
var form = popup.querySelector(".feedback-form");
var user = form.querySelector(".msg-user");
var mail = form.querySelector(".msg-mail");
var text = form.que... |
import axios from 'axios'
const ajax = axios.create({
}) |
$(document).ready(function() {
$('.btn-view').click(function(e) {
e.preventDefault()
var idnoticia = `idnoticia=${$(this).attr('id')}`
$('#content').load('src/noticia/visao/view-noticia.html', function() {
$.ajax({
type: 'POST',
dataType: 'jso... |
/**Given a non-empty 2D array grid of 0's and 1's,
* an island is a group of 1's (representing land)
* connected 4-directionally (horizontal or vertical.)
* You may assume all four edges of the grid are surrounded by water.
Find the maximum area of an island in the given 2D array.
(If there is no island, the ma... |
// Filename: views/pages/game-list
define([
'jquery',
'underscore',
'backbone',
'marionette',
'collections/game-collection',
'templates'
], function($, _, Backbone, Marionette, GameCollection, templates){
var SingleGameItem = Marionette.ItemView.extend({
tagName: "li",
template: _.temp... |
let IStore = require('./IStore.js');
let fs = require('../lib/html5-fs.js');
class CordovaStore extends IStore {
constructor(){
super();
if( navigator.webkitPersistentStorage )
navigator.webkitPersistentStorage.requestQuota = null;
if( window.webkitStorageInfo )
window.webkitStorageInf... |
//Starts when spreedsheet is opened in browser. This is what adds the scripts to the tool bar menu in google spreedsheet
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [
{name: "Export JSON for this sheet", functionName: "exportSheet2"},
{name: "Export JS for for this ... |
import React from "react";
import Avatar from "@material-ui/core/Avatar";
import Button from "@material-ui/core/Button";
import Swal from "sweetalert2";
import TextField from "@material-ui/core/TextField";
import { useState } from "react";
import { useHistory } from "react-router-dom";
import Grid from "@material-ui/co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.