text stringlengths 7 3.69M |
|---|
Vue.component('star-rating', VueStarRating.default);
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
let app = new Vue({
el: '#app',
data: {
current: {
height: '',
id: '',
name: '',
order: '',
weight: '',
types... |
import React from 'react'
import renderer from 'react-test-renderer'
import SVGIcon from '../SVGIcon'
it('renders accessibility icon correctly', () => {
const tree = renderer.create(<SVGIcon name="accessibility" />).toJSON()
expect(tree).toMatchSnapshot()
})
it('renders accessibility icon with styles', () => {
... |
const Event = require('../../../models/event'),
User = require('../../../models/user'),
Booking = require('../../../models/booking'),
log = require('../../../helpers/logger/log')(module.filename),
HttpError = require('../../../error/HttpError');
const deleteEvent = async (args, { req, res }) => {
try {
if (!req... |
import React from 'react';
import {Switch, Route} from 'react-router-dom';
const loading = () => <div className="animated fadeIn pt-3 text-center">Loading...</div>;
const DefaultLayout = React.lazy(() => import('./containers/DefaultLayout/DefaultLayout'));
const Home = React.lazy(() => import('./Pages/Home/home.page... |
const express = require('express');
let router = express.Router();
const userController = require('../controllers/userController');
const authMiddleware = require('../middleware/auth');
// POST login to the platform
router.route('/login').post(userController.login);
// POST register on the platform
router.route('/re... |
import xhrMock from 'xhr-mock';
import {uploadThumbnail} from './thumbnail-upload.service';
describe('Upload Thumbnail Service', () => {
it('should upload thumbnail', done => {
xhrMock.setup();
xhrMock.post('/', {
status: 201
});
var blob = new Blob([''], {type: 'text/html'});
const progre... |
function coupeClick() {
$("#r8Coupe").ejDialog("open");
}
function spyderClick() {
$("#r8Spyder").ejDialog("open");
}
function onDialogClose(args) {
$("#LayoutSection_ControlsSection_btnOpen").show();
}
function btnclick() {
var dialogObj = $("#LayoutSection_ControlsSection_lognForm").data("ejDialog"... |
import React from 'react'
import { FaSyncAlt, FaListAlt } from 'react-icons/fa'
import { Button } from '../Button/Button'
import './ButtonsQuote.css'
export const ButtonsQuote = (props) => {
const { isList, size } = props
return (
<div
className={
'content' + isList
... |
/**
* @class
* @constructor
*
* @description
* UI instance class
*/
Interlock.UI = new function() {
/** @private */
var $errorForm = $(document.createElement('div')).attr('id', 'error-form');
var $modalForm = $(document.createElement('div')).attr('id', 'modal-form');
$.extend($modalForm, {form: $(documen... |
import React from 'react';
import { Link, useHistory } from 'react-router-dom';
const Friend = (props) => {
const {name , email ,id}= props.friend
const friendStyle = {
border : '1px solid green',
margin : '20px',
padding : '20px',
borderRadius : '25px',
textAlign : 'ce... |
import React, { useState } from "react"
import ReactPlayer from "react-player/youtube"
import { graphql, Link } from "gatsby"
import emailjs from "emailjs-com"
import { documentToReactComponents } from "@contentful/rich-text-react-renderer"
import Header from "../components/Header"
import AccordionGreen from "../compon... |
/*!
* Wpier
* Copyright(c) 2006-2011 Sencha Inc.
*
*
*/
Ext.define('Gvsu.modules.comments.controller.Comments', {
extend: 'Core.controller.Controller',
id:'comments-win',
launcher: {
text: D.t('Комментарии'),
iconCls:'user-publ'
}
});
|
import fs from "fs";
import Scanner from "./Scanner";
class Parser {
constructor(file, ext) {
this.file = file;
this.ext = ext;
}
parse() {
return new Promise((resolve, reject) => {
this.buffer().then((buf) => {
this.scanner = new Scanner(buf, this.ext);
// 1. get header length... |
// #ifdef H5
import config from '@/plugins/config.js';
const {
appid
} = config;
// #endif
export default {
// toast 提示
toast(text, duration) {
uni.showToast({
title: text,
icon: 'none',
position: 'bottom',
duration: duration || 2000,
});
}... |
//data
var label2= ['','Student','Individual Contributer','Contributes to Open Source', 'Open to Job Opportunities', 'Working Professional', 'Leadership Experience', 'Presented at Conferences','Publish Tech Blogs or Books'];
var people2 = [51,109,98,143,391,132,97,60];
///////////////////////
// Graph 2
////////... |
var canvas;
var ctx;
var hCanvas;
var hCtx;
const FPS = 60;
const FPSSample = 10;
const TIME_LIMIT = 60;
var state = {
angle:3.14159,
prev_v:0
};
function do_all(G){
prep_circle(G,500,300,250,state.angle);
draw_edge(G);
draw_graph(G);
update();
}
function update(){
ctx.clearRect(... |
var current_cpf;
window.onload = function getInfo(){
const current_cpf_onload = document.getElementById(`register`).value;
current_cpf = current_cpf_onload;
}
$("#validation").click(async function(){
const cpf_from_user = document.getElementById(`register`).value;
const email = document.getElementById(`email`... |
var thumb102="TkSWZ9/CYkrrc5VP0dIfEmWzpWcz3FP6jmPx9rlbjigAvDzIbgJzza2DuUGJO6ELfhjc1KFIUqlRn/gKsUwjzdDI+u7b9DM4XSUJjXksWz75BgmIezs7U8NrvrjAeZM3aoDLh2QaGueSvvnvKy60DtVP2IpMfLmGxy4QsspuS15GGUmskpI2nEIkTzKIrx5FfQLgvR05DCeSipF0IRMtlJhxv1Y23hRERL6tT8xld0ZQVa/d6rc/T05mNT/a1jEHPCBUwoeuVqk9bZh5UqOS1tY9fL/ItP3U//jKqt7/mh0II7ZUW... |
function stringify (obj) {
let res = '{'
for (let i in obj) {
if (obj[i] != null && obj[i].toString() != '[object Object]') {
res += '"' + i.toString() + '"' + ':' + obj[i].toString() + ','
} else if (obj[i] == null) {
res += '"' + i.toString() + '"' + ':' + '\"null\"' + ','
} else if (obj[i... |
"use strict";
let responseFactory = require('../libs/response-factory').init(),
helloControllerFactory = require('../controllers/hello');
module.exports.init = function (app, logger) {
logger.info("Initializing APIs.")
let controller = helloControllerFactory.init(logger);
let api = {
//
... |
export default function each(elements, cb) {
for (let i = 0; i < elements.length; i++) cb(elements[i], i);
}
|
let path = require('path')
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: './',
outputDir: 'www',
productionSourceMap:false,
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src')) // key,value自行定义,比如.set('@@', resolve('src/components'))
... |
$(document).ready(function(){
$('.slider').slider({full_width: true});
});
$("#href-about").click(function() {
$('html,body').animate({
scrollTop: $("#about").offset().top},
'slow');
});
$("#href-experience").click(function() {
$('html,body').animate({
scrollTop: $("#experience").off... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import Heading from 'components/Heading';
import Stars from 'components/Stars';
import Text from 'components/Text';
const RepositoryCardContainer = styled.div`
width: 140px;
background-color: ${({ theme }) => theme... |
const fs = require('fs')
const rimraf = require('rimraf')
const fsExtra = require('fs-extra')
const route = require('express').Router()
let dataToBeSent = ""
route.get('/', (req, res) => {
fs.readFile(__dirname + '/File.txt', (err, data) => {
if (data !== undefined) {
dataToBeSent = data.toStri... |
import axios from 'axios';
export function saveImg(filename,img){
const toSend= new FormData();
toSend.append("filename",filename);
toSend.append("file",img);
axios.post("/api/saveImg",
toSend,
{
headers: {
'content-type': 'multipart/form-data'
}
}
).then(res=>{
if(res.data && res.data.message =... |
var mongoose = require('mongoose'),
validate = require('mongoose-validator').validate;
var DailySchema = new mongoose.Schema({
day: Date,
rewards: [{
activity: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Activity'
},
points: [{
behavior: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Behavio... |
import React from 'react';
import styles from './Home.module.scss';
const Home = () => (
<div className={ styles.Home }>
<h1 className="display-4 animated fadeInUp delay-1s">Wine on the Rocks</h1>
<h4 className="animated fadeInUp delay-2s">The Best Worst Trivia Group Around<sup>TM</sup></h4>
</div>
)
expo... |
import React, { Component } from 'react';
import { Container, Row, Col } from 'reactstrap';
import Router from 'next/router';
import Layout from '../../../components/account/accountLayout';
import AccountCard from '../../../components/account/accountCard';
import AccountNav from '../../../components/account/accountNav... |
export default async function ({ app, route, ...context }) {
await app.$setLocaleData(route)
}
|
// pages/searchPartner/searchPartner.js
Page({
/**
* 页面的初始数据
*/
data: {
partnerTypeList:['请选择','业务经理','业务员','经销商'],
partnerTypeValueList: ['', 'role_type.serviceManager', 'role_type.salesman','role_type.general'],
partnerIndex:0,
arreasIndex:0,
arrearsList:['请选择','是','否'],
arrearsValu... |
'use strict';
describe("Report Unit Tests", function() {
beforeEach(module('myApp'));
var $httpBackend;
var Report;
beforeEach(inject(function($injector, _Report_) {
Report = _Report_;
$httpBackend = $injector.get('$httpBackend');
$httpBackend.when('GET', 'http://mywifi.dev:8080/api/v1/reports... |
const mongoose = require('mongoose');
const StudentSchema = new mongoose.Schema({
name: String,
email: String,
courseTitle: String,
studentId: String,
absence: String,
deliverables: String,
late: String,
Week1: String,
Week2: String,
Week3: String,
Week4: String,
Week5: String,
Week6: String... |
exports.URL = {
urls:{
RIOT_URL_CHAMPION: "https://na.api.pvp.net/api/lol/static-data/na/v1.2/champion?champData=info&api_key=",
RIOT_URL_CHAMPIONDETAIL: "https://na.api.pvp.net/api/lol/static-data/na/v1.2/champion?champData=all&api_key=",
RIOT_URL_ITEM: "https://na.api.pvp.net/api/lol/static-data/na/v1.2/item?&... |
'use strict'
const apiKeys = {
newsApiKey: process.env.NEWS_API_KEY,
twitterConsumerKey: process.env.TWITTER_CONSUMER_KEY,
twitterConsumerSecret: process.env.TWITTER_CONSUMER_SECRET,
twitterAccessTokenKey: process.env.TWITTER_ACCESS_TOKEN_KEY,
twitterAccessTokenSecret: process.env.TWITTER_ACCESS_TOKEN_SECRET... |
// -----------------------------------------------------------------------------
// モジュールのインポート
const server = require("express")();
const line = require("@line/bot-sdk"); // Messaging APIのSDKをインポート
const dotenv = require('dotenv').config(); // TODO: 使いたいけどうまく反映されない
// 使うファイルと繋げる
const KimiApi = require("./kimi_api")... |
/**
* Author: Hosam Shahin
* Last Modified: 2015-09-04
*/
(function () {
var exerciesPath = window.location.pathname,
query = Khan.queryString(),
scoringServerEnabled = false,
loggingServerEnabled = false,
MODULE_NAME = query.module,
MODULE_ORIGIN = parent.location.protocol + '//' + parent.loc... |
import AbstractView from "./AbstractView.js";
import { RegisterSuccess } from "./RegisterSuccess.js";
import axios from 'axios';
export default class extends AbstractView {
constructor(params) {
super(params);
this.setTitle("Register");
}
initRegisterForm = () => {
const registerForm = document.getE... |
import React from 'react'
import PropTypes from 'prop-types'
import WordsAPI from '../components/WordsAPI'
import Button from 'material-ui/Button'
import { withStyles } from 'material-ui/styles'
const styles = theme => ({
button: {
margin: theme.spacing.unit,
},
});
function WordsAPIContainer(props) {
cons... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import logo from '../../assets/imagens/Ativo 1.png';
import {MenuSecreto,Sair} from './styles';
import '../../assets/CSS/index.css';
import { FaCaretDown,FaSignOutAlt } from 'react-icons/fa';
import {parseJwt} from '../../services/auth'... |
// @ts-check
import { Map, Set, fromJS, is as equal } from "immutable";
import { createReducer, StoreObject, ActionObject } from "reshow-flux-base";
import { OBJ_SIZE, KEYS, STRING } from "reshow-constant";
import callfunc from "call-func";
import toJS from "./toJS";
/**
* @typedef {number|string} MapKeyType
*/
/*... |
import React from 'react'
import { Flex, Avatar, IconButton} from "@chakra-ui/react";
import { ColorModeSwitcher } from './ColorModeSwitcher';
import { FaBell } from 'react-icons/fa';
import profileImage from '../../../img/profileImage.svg';
function Profile({...props}) {
return (
<Flex {...props} align=... |
// Y-axis offset amount found while drawing on canvas
var yOffset = -28;
// X and Y lane dimensions that are the same as in the engine.js
var GRID_X = 101;
var GRID_Y = 83;
// Size of the collision box for the player and enemy
var hitBox = 55;
// Number of lives the player starts with in the game
var heartNum = 5;
... |
import React from 'react';
import {View, StyleSheet, Text, ScrollView, Image, TouchableOpacity} from 'react-native';
import {AppButton} from "../ui/AppButton";
export const LotList = ({navigation}) => {
return (
<View style={styles.mainWrap}>
<Text style={styles.heading}>
Ваши у... |
import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import styled from 'styled-components';
import Layout from '../Layout/Layout';
import { create } from '../client/api-user';
import { singin } from '../auth/api-auth';
import { authenticate } from '../auth/auth-helper';
const LoginHo... |
import React from 'react';
import Information from './Information';
function Contact(){
return (
<div>
<Information/>
</div>
);
}
export default Contact; |
'use strict';
app.controller('ActivateCtrl', function ActivateCtrl($scope, $state, userFactory) {
/**
* data init
*/
$scope.initData = function () {
$scope.activation = {};
$scope.activation.condition = "default";
$scope.user = {};
var code = NibbleUtils.getParameterBy... |
var playButton = document.getElementById('playButton')
var scoreText = document.getElementById('score')
var timer = document.getElementById('timer')
var cpsResult = document.getElementById('cps')
var resetButton = document.getElementById('resetButton')
var s5Button = document.getElementById('s5Button')
var s10Button =... |
var fs = require("fs");
var inquirer = require("inquirer");
function BasicCard (front, back) {
this.front = front;
this.back = back;
}
inquirer.prompt([
{
name: "title",
message: "Card Title"
}, {
name: "front",
message: "Front of Card"
},
{
... |
var aniongapFormula = require('../../app/js/formula_aniongap.js');
var expect = require('chai').expect;
//console.log(aniongapFormula);
describe('Aniongap', function() {
describe('calculateFormula', function() {
it('checks that inputting 5, 4, 3, 2 makes 4', function(done) {
//var a = 'string';
//ex... |
import React from 'react';
import {Dimensions, StyleSheet} from 'react-native';
export default StyleSheet.create({
picker: {
position: 'absolute',
bottom: 0,
left: 0,
height: 260,
backgroundColor: '#fff',
},
pickerView: {
height: 260,
backgroundColor:... |
// Create a combat function that takes the player's current health and the amount of damage recieved, and returns the player's new health. Health can't be less than 0.
// function combat(health, damage) {
// // Write your code here
// }
// health -damage = newhealth
// const combat = (health, damage) => he... |
/* Question 4
*
* Implement the 'stdev' function defined below
*
* STDEV - the square root of the average of the squared deviations of the values from their average value
* - The formula is:
*
* stdev = sqrt(sum((x - populationMean)^2)/numberOfValues)
*
* - you are allowed to look at W... |
/*global ODSA */
// Written by Jun Yang and Cliff Shaffer
$(document).ready(function() {
"use strict";
// Show the AQueue code.
var av_name = "aqueueVarCON";
var config = ODSA.UTILS.loadConfig({av_name: av_name}),
interpret = config.interpreter, // get the interpreter
code = config.code; ... |
function evenOdd(array) {
let even = 0;
let odd = 0;
for (let i = 0; i < array.length; i++) {
if (array[i] % 2 == 0) {
even++;
} else {
odd++;
}
}
console.log("Il y a " + even + " chiffre paire dans votre tableau.");
console.log("Il y a " + odd + "... |
var arr = [5,2,1,-10,8];
arr.sort();
arr.reverse();
console.log(arr); |
import React from 'react';
import Moment from 'moment';
import { Redirect } from 'react-router';
import Auth from '../modules/Auth';
import momentLocalizer from 'react-widgets-moment';
import moment from 'moment';
import { DateTimePicker } from 'react-widgets';
import { ToastContainer, toast } from 'react-toasti... |
export let None = 0;
export let Prepare = 1;
export let Gaming = 2;
export let Failed = 3;
export let Win = 4;
export class GameState
{
constructor(){
this.objs = [];
this.using = false;
this.willadd = [];
this.willrm = [];
this.state = None;
this.prestate = None;
this.stateback = [];
}
addObs... |
import EditWordDialog from './EditWordDialog'
import enhance from './EditWordDialog.enhancer'
export default enhance(EditWordDialog)
|
var app = new Vue({
el: '#app',
data: {
//sesion
sesion:JSON.parse(localStorage.getItem('dataoresa')),
//necesarios siempre
modal: 0,
tituloModal: '',
tipoAccion: 0,
error: 0,
buscar: '',
entradas: [],
id: 0,
pag:1,
... |
document.write("<table>");
for (var i=1;i<10;i++){
document.write('<tr>')
for (j=1;j<10;j++){
document.write('<td>'+j+'x'+i+'='+i*j+'</td>');
}
document.write('</tr>');
}
document.write("</table>"); |
var variables________________5________8js____8js__8js_8js =
[
[ "variables________5____8js__8js_8js", "variables________________5________8js____8js__8js_8js.html#a40fc64a59ddf7a43c43d7fd45d703657", null ]
]; |
// @flow
import pluginDisplayFlex from "@rosetta/plugin-display-flex"
export default [pluginDisplayFlex]
|
import _ from 'lodash'
class StateManagerAgent {
stateSetter = null;
currentLevel = 0;
maxLevel = 0;
isReinforcing = false;
isLeveling = false;
isClinic = false;
currentMsg = '';
next = () => null;
constructor(){
this.maxLevel = window.localStorage.getItem('maxLv') || 0;
... |
var path = require('path');
var _ = require('lodash');
var all = {
root:path.normalize(__dirname+'/../../..')
}
module.exports = all; |
import { getStory } from '../../api/index';
export const GET_NEW_STORIES = 'GET_NEW_STORIES';
export const getNewStories = storyId => dispatch => {
getStory(storyId).then(res =>
dispatch({ type: GET_NEW_STORIES, payload: res.data }).catch(err =>
console.log(err)
)
);
};
|
import React from 'react';
import Note from './note';
const generateId = () => +(new Date());
class EditDialogue extends React.Component {
constructor() {
super();
this.state = {
notes: []
};
this.setColor = this.setColor.bind(this);
this.handleAddNote = this.handleAddNote.bind(this);
... |
function ValidarCPF(Objcpf){
var cpf = Objcpf.value;
exp = /\.|\-/g
cpf = cpf.toString().replace( exp, "" );
var digitoDigitado = eval(cpf.charAt(9)+cpf.charAt(10));
var soma1=0, soma2=0;
var vlr =11;
for(i=0;i<9;i++){
soma1+=eval(cpf.charAt(i)*(vlr-1));
som... |
const fs = require('fs');
const route = process.argv[2];
fs.readFile(route, 'utf-8', (err, data) => {
if(err) throw err;
let jumps = data.split('\n').length-1;
console.log(jumps);
})
|
import React from 'react'
const WatchListContext = React.createContext()
export default WatchListContext |
import React from "react";
import "bootstrap/dist/css/bootstrap.css";
import "./assets/owfont-master/css/owfont-regular.css";
var moment = require("moment");
export default function DayCard({ reading }) {
//Destructure the data and populate
let newDate = new Date(); //get current time
const weekday = reading.dt * ... |
import * as mutations from "./mutations";
import * as mechanics from "./mechanics";
import Wall from "./Wall";
import Explosion from "./Explosion";
export default class Dynamite{
static pieceName = "Dynamite";
static sprite = "Dynamite_1.png";
static description = "A pack of dynamite that will explode a fe... |
(function() {
let co, cn, ta
let state = {
dragtarget: false,
oldpt: [
-1.03,
0.13
],
renderer: 'p2d',
w: 520,
h: 300,
origin: [
350,
140
],
ppm: 500,
background: [0, 61, 92],
items: [
{
type: 'thinlens',
id: 'l... |
import Vue from 'vue';
import store from './store.js';
import {mapState, mapGetters, mapActions} from 'vuex'
new Vue({
el:"#app",
store:store,
computed:{
// count:function(){
// return this.$store.state.count
// },
// evenOrOdd:function(){
// return this.$s... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
require('electron-connect').client.create();
const fs = require('fs');
const path = require('path');
const {dialog} = require('electron').remote;
va... |
'use strict'
var mongoose = require('mongoose');
var Animal = require('../models/animal');
// ==================== GUARDAR ANIMALES ======================= //
function guardarAnimales(req, res){
var animal = new Animal();
var params = req.body;
if(params.nombre && params.tipo && params.edad &... |
let nav_s_btn = document.querySelector(".nav_button");
let project_nav_s = document.getElementById("projects_s");
let screen_width = window.innerWidth;
let resume_s = document.getElementById("resume_s");
let resume_l = document.getElementById("resume_l");
nav_s_btn.addEventListener("click", navBarChangeState);
... |
/**Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.
The right subtree of a node contains only nodes with keys greater than the node's key.
Both the left and right subtrees mu... |
const txtTooltip = document.querySelector('#txtTooltip')
const tmplTooltip = document.querySelector('#tmplTooltip')
txtTooltip.addEventListener('focusout', e => {
const value = String(e.target.value).trim()
txtTooltip.value = value
tmplTooltip.innerHTML = value.replace('\n', '')
})
window.onload = () => t... |
const express = require('express'),
router = express.Router(),
middleware = require('../middleware');
const db = require("../db/index");
router.post('/rating', middleware.isLoggedIn, async (req, res) => {
try {
await db.query("BEGIN");
const exists = await db.query({
text: `SEL... |
const mongoose = require("mongoose");
const slugify = require("slugify");
const BookSchema = new mongoose.Schema(
{
title: {
type: String,
required: [true, "Please add a titile"],
unique: true,
trim: true,
maxlength: [50, "Book title can't be more... |
export { default as selectionFilter } from "../utils/selection-filter";
|
const version = 1
const cacheName = `workbox-dogs${1}`
// import workbox
importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js')
importScripts('./asset-manifest.js')
const { routing, strategies, precaching } = workbox
precaching.precacheAndRoute(
manifest.map((url) => ({
url,
... |
// let colors = ['red', 'green', 'blue']
// for (let color of colors) {
// console.log(color)
// }
// colors.forEach(function(color){
// console.log(color)
// })
// function(){} ==>> ()=>{}
// colors.forEach((color) => {
// console.log(color)
// })
// colors.forEach(color => {
// console.log(color)... |
function islogin()
{ var s=localStorage.getItem("sessionid")
console.log("s:"+s);
if(s==="null" || s==="undefined")
return false;
return true;
}
var Router = Backbone.Router.extend({
initialize:function ()
{
},
routes:{
"" :"login",
"login": "login",
... |
import React from 'react';
const Message = ({message}) => {
//console.log(message.from)
return(
<div style = {message.from === "me" ? styles.sent : styles.received}>
<div>{message.content}</div>
</div>
)
};
export default Message;
const container = {
background... |
TQ.activityRecordsMaintainDlg = function (dfop){
$(document).ready(function(){
function isAttachFileValue(){
if($("#attachFileNames").val()){
$("#isAttachment").val(true);
}else{
$("#isAttachment").val(false);
}
}
$("#addActivityRecordForm").formValidate({
promptPosition: "bottomLeft",
... |
import React from 'react';
import { BrowserRouter, Route, Switch, Redirect } from 'react-router-dom';
import { PAGE_URL } from 'CONSTANTS/default';
import Signin from 'CONTAINERS/Signin';
const { SIGNIN,
} = PAGE_URL;
export default () => ( // eslint-disable-line
<BrowserRouter>
<Switch>
<Route
... |
import React from 'react';
import titles from '../../constants/titles';
import PrivacyPolicy from './PrivacyPolicy';
import C from '../../constants/actions';
import routes from '../../constants/routes';
async function action(context) {
context.store.dispatch({
type: C.SET_CURRENT_ROUTE,
payload: routes.PRIVA... |
import React,{Component} from 'react';
import { Carousel, WingBlank,Button,WhiteSpace} from 'antd-mobile';
import axios from 'axios';
import {withRouter,Route,Switch} from 'react-router-dom';
import {connect} from 'react-redux';
import '../sass/home.scss';
class Home extends Component{
constructor(){
supe... |
//设置路由
export default function (router) {
router.map({
'/home':{
component: function (resolve) {
require(['./components/home.vue'],resolve)
},
subRoutes: {
'/realNameAuto':{
component:function (resolve) {
... |
Component({
properties: {
card: {
type: Object,
value: null
},
disabled: {
type: Boolean,
value: false
},
selected: {
type: Boolean,
value: false
}
},
methods: {
gotoRecordList () {
this.triggerEvent('gotoRecordList')
}
}
})
|
export const SET_ISSIGNIN = 'SET_ISSIGNIN'
export const SET_LOGINNAME = 'SET_LOGINNAME'
export const SET_AVATARURL = 'SET_AVATARURL'
export const SET_ID = 'SET_ID'
export const SET_SCORE = 'SET_SCORE'
export const SET_ACCESSTOKEN = 'SET_ACCESSTOKEN'
export const SET_THEME = 'SET_THEME'
export const SET_ISSAVEDRAFT = 'S... |
define(['jquery',
'../server/main',
'./modules/banner',
'./modules/goods',
'./modules/checklogin',
'./modules/lazyload',
'./modules/celan'
], function ($, { getBannerData, getBookData }, { bannerInit }, { goodsInit }, { checklogin },{lazyload},{hungBarMove}) {
// console.log($)
getBanner... |
module.exports = {
read_var_declarator_inline_init: read_var_declarator_inline_init,
read_var_declarator_initializer: read_var_declarator_initializer,
read_var_declarator_literal_type: read_var_declarator_literal_type,
read_var_declarator_literal: read_var_declarator_literal,
read_var_declarator_list: read_va... |
import React, { Fragment, useState } from 'react'
import TextareaAutosize from '@material-ui/core/TextareaAutosize'
import Radio from '@material-ui/core/Radio'
import RadioGroup from '@material-ui/core/RadioGroup'
import FormControlLabel from '@material-ui/core/FormControlLabel'
import FormControl from '@material-ui/co... |
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
import { requestWallet } from '../reducers/auth'
import App from '../components/App'
import FontAwesome from 'font-awesome/css/font-awesome.css'
const mapDispatchToProps = {
requestWallet
}
const mapStateToProps = (state) => ({
auth: ... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisa... |
const express = require('express');
const router = express.Router();
const models = require('../../../../../models');
const ResponseTemplate = require("../../../../ResponseTemplate");
const errors = require("../../../../errors");
const SimpleValidators = require("../../../../../util/SimpleValidators");
const JalaliDa... |
import React, { useContext } from "react";
import ResortContext from "../context/resortContext";
import Room from "../components/Room";
const RoomsList = () => {
const resortContext = useContext(ResortContext);
const { sortedRooms } = resortContext;
if (sortedRooms.length === 0) {
return (
<div classNam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.