text
stringlengths
7
3.69M
import React, { Component } from 'react'; import { connect } from "react-redux"; import { Redirect } from 'react-router-dom'; import { addAuthentication, removeAuthentication } from "../actions/index"; import axios from 'axios'; function mapDispatchToProps(dispatch) { return { addAuthentication: () => dispatch...
// function Calc() { //mvc모델 // // --- model ---- // let x = 0; // let y = 0; // let result = 0; // //--- controller ------------- // function btnClick() { // let inputs = document.querySelectorAll("inputs"); // let xInput = inputs[0]; // let yInput = inputs[1]; // ...
/** * Created by kimmy on 2017/3/11. */ const common = require('../../until') const fs = require('fs') const path = require('path') const getMsg = async(ctx, next) => { const today = common.formatDate(new Date(), 'yyyy/MM/dd') let result = `今天是${today}` let readFile = new Promise((resolve) => { fs.readFil...
import React, { Component } from 'react'; import Validator from 'validator'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Field from './Field/Field'; import addValidationError from '../actions/validationActions'; import { updateRecipientInfo, updateSelectedCountry } from '.....
import React, { useEffect, useState } from "react"; import "./AddProduct.css"; import axios from "axios"; import { saveProduct, getProduct, deleteProduct } from "../../../api/productApi"; import ImageUpload from "./imageUpload"; export default function AddProduct(props) { //one state for everything const [pr...
export default { props: { // 表单数据对象 parentData: { type: [Array, Object], default: () => ({}) }, parentKey: { type: String, default: '' } }, data() { return { propKey: `${this.parentKey || ''}${this.parentKey ? '.' : ''}${this.item.key}` } }, methods: ...
/* * Copyright 2018 Uber Technologies, 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 l...
var x = document.domain; function checkAll(ele) { var checkboxes = document.getElementsByTagName('input'); if (ele.checked) { for (var i = 0; i < checkboxes.length; i++) { if (checkboxes[i].type == 'checkbox') { checkboxes[i].checked = true; } ...
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import _ from 'lodash'; class Authenticate extends React.Component { constructor() { super(); ...
import React, { useState, useEffect } from 'react' import { View, Text, Image, TouchableOpacity, FlatList } from 'react-native' import { Styles } from "./Style/AddNewReminderStyle" import { theme, images } from "../../constants" import { widthPercentageToDP as wp, heightPercentageToDP as hp } from "react-native-respons...
/////////////////////////////////////////////////////////////////////////////////////////// /////////////变量定义!//////////////////////////////////////////////////////////////// let xxCon; //供方带值 let Dup_Item; let VB_cNum; let VB_cPrice; let VB_cSumprice; let addGang = [] let ziGang = [] let addLei = [] let yongtu = [...
import noteTxt from './note-txt.js' import noteImg from './note-img.js' import noteVideo from './note-video.js' import noteTodos from './note-todos.js' import { eventBus } from '../../../services/event-bus.js' export default { components: { noteTxt, noteTodos, noteImg, noteVideo ...
import React from "react"; export default function Story1() { return ( <> <p > <b id="title">Ruby</b> is a spunky, spirited, bright and beautiful almost 5 year old girl. She loves fairies, princesses, and everything sparkly. She is a creative, talented artist, and has a love for dan...
import React from 'react'; import axios from 'axios'; import './styles.css'; export default class AdminUpdate extends React.Component { constructor(props) { super(props); this.state = { conference_detail: [], approved_details: [] } } componentDidMount() { ...
import { searchAlbums } from "../lib"; global.fetch = require("node-fetch"); const albums = searchAlbums("Incubus"); albums.then( data => data.albums && data.albums.items && data.albums.items.map(item => console.log(item.name)) );
import React, { Component } from 'react' export default class PersonCard extends Component { constructor(props){ super(props); this.state={ new_age: this.props.age } } incAge = () => { this.setState({new_age: this.state.new_age+1}) } render() { c...
//start angular module and inject userService angular.module('blogCtrl', ['blogService']) .controller('blogController',function(Blog,$scope){ var vm = this; vm.error = ''; vm.success = false; vm.inputChange = function(post){ post.metafields.value = post.metafields.value.r...
import React, { Component } from 'react'; class Chapter extends Component { render() { return( <p>boop</p> ) } } export default Chapter
/* eslint-disable */ import Vue from 'vue'; import { mapState } from 'vuex' import store from '@/store' const messenger = { namespaced: true, state() { return { messenger: 'messenger' } }, mutations: { UPDATESTATE(state, payload) { state[payload.TOPIC] = payload.value }, REGIST...
$(document).ready(() => { var arr = window.location.search.split('=') id = arr[arr.length-1]; createChoices() function createChoices() { $.get('https://time-synk.herokuapp.com/events/' + id, function(data) { $('#sentMain').append($('<div>', {class: 'greeting', id: 'greeting'}).text('Please outline...
'use strict'; /** * @workInProgress * @ngdoc service * @name angular.service.$exceptionHandler * @requires $log * * @description * Any uncaught exception in angular expressions is delegated to this service. * The default implementation simply delegates to `$log.error` which logs it into * the browser console....
import React from 'react'; import SignupBox from '../comps/Signup'; export default { title: 'Login Signup/Signup Comps', }; export const SignupSection = () => ( <SignupBox LoginPart="Login" SignupPart="Signup" UsernamePart="User Name" FullnamePart="Y...
module.exports = function(grunt) { var config = {}; // Put your JavaScript library dependencies here. e.g. jQuery, underscore, // etc. // You'll also have to install them using a command similar to: // npm install --save jquery var VENDOR_LIBRARIES = [ "@fortawesome/fontawesome-pro-solid", "@fo...
module.exports = function (moneo, mongoosedb) { // declaration for mongoose Schema var Schema = mongoosedb.Schema; // user schema var BlogpostSchema = new Schema({ id: { type: Number, //setting the nodeProperty to true; as this schema property needs to be exported to neo...
import React from 'react' import { View, Text, TouchableOpacity, ImageBackground, Image, Alert } from 'react-native' import BACKGROUNDCARD from '../../../../assets/background.png' import LOGO from '../../../../assets/Cópia-de-Tripplanner.png' import styles from './styles' const CardTrip = props => { const { trip,...
import React from 'react'; import './App.css'; import Post from './Post' const blogContent = { title: [ "Dinosaurs are awesome", ], author: [ "Stealthy Stegosaurus", ], content: [ "Check out this body property!", "I can even add more paragraphs and they show up.", "Look at me go.... I am ...
/* Localization */ module.exports = { SOCIAL_SIGN: 'Social sign' }
import Scene from './app.js'; import mouse from './mouse.js'; import Barba from './barba.js'; import mySwiper from './swiper.js'; const myScene = new Scene(document.querySelectorAll('.background__img')); myScene.setMySwiper(mySwiper); new Barba(mySwiper, myScene); const menuMobile = document.querySelector('.header')...
require('./Global.js') let Configuration = require('./Configuration.js') let Processes = require('./Processes')(Configuration.data) module.exports = new Processes()
import { Col, Divider, Row } from 'Components/UI-Library' import { ROUTER } from 'Constants/CommonConstants' import React from 'react' import { Link } from 'react-router-dom' import './ProductOrder.Style.less' const ProductOrder = ({ data }) => { return ( <div className="product-order-wrapper"> {data?.prod...
window.onload = function(){ var text = 'This text is only visible if JavaScript files load properly.'; document.getElementById('test-javascript').innerHTML = text; };
define([ 'common/collections/user-satisfaction' ], function (UserSatisfactionCollection) { describe('UserSatisfactionCollection', function () { var collection; describe('parse', function () { beforeEach(function () { collection = new UserSatisfactionCollection([], { valueAttr: 'ra...
import Route from '@ember/routing/route'; export default Route.extend({ model() { return [{ isList: true, x: 1, y: 0, width: 1, height: 1 }, { isMap: true, x: 2, y: 0, width: 2, height: 2 }, { isList: true, x: 0, y: 3, wi...
const _ = require('lodash') const moment = require('moment') const uuid = require('uuid') const vector = require('../vector') const Collider = require('../Components/Collider') const LifeSpan = require('../Components/LifeSpan') function Arrow({ game, player, input }) { this.id = uuid.v4() this.game = game ...
import React from 'react'; import About from './About'; import Footer from './Footer'; import NavLinks from './NavLinks'; import Planet from './Planet'; import Quiz from './Quiz'; import ScrollBar from './ScrollBar'; import SpaceImages from './SpaceImages'; import { useAuth } from '../contexts/AuthContext'; const Info...
async function getGames() { const requestGames = await fetch('/api/games'); const gamesData = await requestGames.json(); const data = []; data.push(gamesData); console.log(data[0]['data']); return gamesData; } async function NAChart90s() { const na90sData = await fetch('/api/NAnineties'); const na90...
var now = new Date(); var previews = now; //上一次的使用时间 var one_day = 24*60*60*1000; var tommorow = new Date(now.getTime() + one_day); var after_tommorrow = new Date(tommorow.getTime() + one_day); var time = { year: now.getFullYear(), month: now.getMonth()+1, date: now.getDate(), } var time_required = deepCl...
const { browser, page, openBrowser, closeBrowser, goto, dropDown,reload, $, link, listItem, waitFor, inputField, fileField, textField, image, button, comboBox, checkBox, radioButton, alert, prompt, confirm, beforeunload, text, click, doubleClick, rightClick, write, press, deleteCookies, attach, highligh...
$(function(){ if($.adblock){ $.confirm({ 'title' : 'Adblocker active!', 'message' : 'You are running an adblocker extension in your browser. You made a kitten cry. If you wish to continue to this website you might consider disabling it.', 'buttons' : { 'I will!' : { 'class' : 'blue', 'actio...
$(document).ready(function(){ $(".fa15").eq(0).addClass("lbjiacsschushi"); $(".fa15").eq(1).addClass("lbjiacss10"); $(".fa15").eq(2).addClass("lbjiacss20"); $(".fa15").eq(3).addClass("lbjiacss30"); }); function showLocation(province , city , town) { var loc = new Location(); var title = ['省份' , '地...
import React, { useEffect, useRef, useState } from 'react'; import * as d3 from 'd3'; import yearlyAggregateData from '../../../data/kth_innovation_yearly_data.json'; const RELEVANT_YEARS = ["2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019"]; const yearly_aggregate_data = ...
module.exports = options => { return { id: "backstop_default", viewports: [ { label: "phone", width: 320, height: 480 }, { label: "tablet", width: 768, height: 1024 }, { label: "desktop", width: 1920, height:...
/** * 提供一些常用工具 * @type {{getImageWH, getQueryStringByName}} */ window.Util = (function () { /** * 根据URL,获取图片的宽高 * @param src 图片地址 * @param callback 回调,返回 w h 属性 */ function getImageWH(src, callback) { var image = new Image(); image.src = src; image.onload = function () { var obj = { w: i...
import React from 'react' import TodolistFormTile from '../components/TodolistFormTile' class TodolistFormContainer extends React.Component { constructor(props){ super(props); this.state = { title: '', body: '' } this.handleChange = this.handleChange.bind(this) this.handleSubmit = thi...
async function getKidName() { return localStorage.getItem('name'); } window.onload = async () => { var kidName = await getKidName(); $("[data-name='kidName']").html(kidName); }
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, Dimensions } from 'react-native'; import Button from 'react-native-button' import MapView from 'react-native-maps'; import { fetchRestaurantAPI } from '../actions'; import { connect } from 'react-redux'; import Map...
import React from "react"; import PropTypes from "prop-types"; import "./Movie.css"; //하나의 변수를 받아올때는 {}이것을 무조건 붙여줘야 된다 //이게 없을경우 하나의 오브젝트를 통째로 받아오는데 id이외의 값들은 전부 //없는것으로 판단되어서 오류는 없고 화면에는 아무것도 표시가 안된다 function Movie({year, title, summary, poster, genres}) { return ( <div className="movies__movie">...
'use strict'; import * as _ from 'lodash'; /** * Class representing a detect component controller. */ class DetectController { /** * Initialize the controller. * @ngInject * @param {Object} $scope - Table component controller scope. * @param {Object} ApiProviderService - Api provider HTTP request serv...
const Router = require('koa-router') const router = new Router({prefix:'/user'}); const path = require('path'); const crypto =require('crypto'); let db = require(path.resolve('src', 'models/index')); let uuid4 = require('uuid/v4'); let validator = require('validator'); const mailgun = require(path.resolve(...
import React, { Component } from "react"; import QueryServices from "../../services/queryServices"; export default class AllQueries extends Component { constructor(props) { super(props); this.queryService = new QueryServices(); this.state = { queries: [], errors: {}, ElementStyle: { ...
/* @flow */ 'use strict' import { GraphQLObjectType, GraphQLSchema } from 'graphql' import * as userMutations from './user/mutations' import * as userQueries from './user/queries' import * as courseMutations from './course/mutations' import * as courseQueries from './course/queries' // import * as avatarMutations fro...
var mongoose = require('mongoose'); var quizzTabletteSchema = mongoose.Schema({ _id: mongoose.Schema.Types.ObjectId, title: mongoose.Schema.Types.String, type: mongoose.Schema.Types.String, questions: mongoose.Schema.Types.Mixed, description: mongoose.Schema.Types.String, theme: { type: mongoose.Schema.Types.O...
import React from 'react'; const imgStyles = { width: "100%" } export default class Overview extends React.Component { render() { return ( <section id="top_content" class="top_cont_outer"> <div class="top_cont_inner"> <div class="top_content"> <div class="row"> ...
/* eslint-disable */ export function processData(raw) { const data = { nodes: [], links: [] }; // Convert to JSON raw = raw.map(d => d.toJSON()); // Set numLinks to zero raw.forEach(caseObj => { caseObj._id = caseObj._id.toString(); caseObj.numLinks = 0; }); // Calculate numLinks raw.forEach(...
module.exports = (bh) => { bh.match('price__parts', (ctx) => { ctx.param('parts', []); }); };
export const WEATHERAPI = 'https://api.openweathermap.org/data/2.5/forecast?q='; export const WEATHERAPIKEY = '&appid=c8e65a4f40a9f86173cf5e60e03219c8'; export const dayfunc123 = (city) => { var url = WEATHERAPI + city + WEATHERAPIKEY; fetch(url) .then(response => { if ( response.status >= 20...
var mapimg; //center latitude and longtitude var clat = 0; var clon= 0; // 37.5665° N, 126.9780° E (Seoul) var lat = 37.5665; var lon = 126.9780; var zoom = 1; var earthquakes; function preload() { mapimg = loadImage ('https://api.mapbox.com/styles/v1/mapbox/streets-v10/static/0,0,1,0,0/1024x512?access_token=pk.e...
//var loaderUtils = require("loader-utils"); /** * [ 语法转换 ] * @Author freemenL * @DateTime 2018-10-25T09:59:02+0800 * @param {[type]} source [description] * @return {[type]} [description] */ function replace(source) { let template = "import React,{Component...
const express = require('express') const Product = require('../models/product') const router = express.Router() router.get('/:id', async (req, res) => { /** * /GET endpoint * Retrieve a particular Product data */ try { const product = await Product .find...
var React = require('react'); var connectToStores = require('alt/utils/connectToStores'); var ErrorDialog = require('./utils/ErrorDialog'); var Router = require('react-router'); var getErrorNotification = function(ErrorActions, ErrorStore) { var errorNotification = React.createClass({ propTypes: { errors: ...
var dealer = {}; dealer.add = function(args){ var endpoint = "services/dealer.php"; var method = "POST"; utility.data(endpoint,method,args,function(data){ var response = JSON.parse(data); console.debug(response); alert(response.result); control.pagetab('dealer-manager.html'); }); } dealer.edit ...
export default class PromiseQueue { constructor() { this.queue = []; this.add = this.add.bind(this); this.resolve = this.resolve.bind(this); } add(item) { this.queue.push(item); } resolve(initial) { return this.queue.reduce((prev, curr) => { retu...
const { Sequelize, DataTypes, Model } = require('sequelize'); const sequelize = new Sequelize('licentaDB', 'root', '', { dialect: 'mysql' }) class Child extends Model {} Child.init({ // Model attributes are defined here id: { type: DataTypes.NUMBER, primaryKey: true }, id_user: { type: DataTypes...
export const React = { createElement: function (tag, attrs, children) { var element = document.createElement(tag); for (let name in attrs) { if (name && attrs.hasOwnProperty(name)) { let value = attrs[name]; if (name === 'className') { name = 'class'; } ...
var mongoose = require('mongoose'); var fs = require('fs'); var FILE_ENCODING = 'utf-8'; var EOL = '\n'; var config = require('./config.js'); module.exports = function(models){ var PASSWORD_MAXAGE = 864000000; // ten days var COOKIE_NAME = 'clutter.loggedin'; stackables = {}; // login stackables.login = functi...
(function() { var item, _i, _len; var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.proto...
const express = require('express'); const Film = require('./Film.js'); const router = express.Router(); // Return a list of all films. (/api/films) router .route('/') .get((req, res) => { const { producer, released } = req.query; let query = Film.find() .sort({ episode: 1 }) .select('episode...
const db = require('../../utils/db') const app = getApp() Page({ /** * Page initial data */ data: { movie: {} }, /** * Lifecycle function--Called when page load */ onLoad: function (options) { if (options.id) { this.getMovie(options.id) } }, viewReviews () { wx.naviga...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
$(document).ready(function() { var n = [0]; var failSafe = true; // $(".display").text(); function display(str) { $(".display").text(str); } function blurDisplay(str) { $(".blur-display").text(str); } function lastTerm(arr) { return arr.length - 1; } f...
import React, { Component } from 'react'; import { Link, NavLink, Route, Switch, withRouter } from 'react-router-dom'; import '../../../node_modules/bootstrap/dist/js/bootstrap.js'; import { GameService } from '../../service'; import Games from '../Game/listgames'; class Home extends Component { constructor(props) {...
angular.module('myApp'); myApp.controller('courseController', function ($scope, $http, $route, courseFactory, $location, $routeParams, $log, uiGmapGoogleMapApi) { $scope.index = function () { $location.url('/'); } function titleCase(str) { str = str.toLowerCase().split(' '); ...
({ block: 'menu', mods: { section: 'learning' }, content: [ { elem: 'title', content: 'Обучение' }, { elem: 'list', content: [ { elem: 'item', url: '/learn_map', title: 'Карта обучения' }, { elem: 'item', url: '/courses', title: 'Онлайн...
/* * @lc app=leetcode id=152 lang=javascript * * [152] Maximum Product Subarray */ /** * @param {number[]} nums * @return {number} */ var maxProduct = function(nums) { if (nums.length < 2) { return nums[0]; } let result = nums[0]; let max = nums[0]; let min = nums[0]; for (let i =...
import Link from 'next/link'; const Navbar = () => { return ( <nav className="black"> <div className="nav-wrapper"> <div className="container"> <Link href='/'> <a className="brand-logo left"> GraphQL | <span...
import React, { Fragment } from 'react' import { NavLink, withRouter } from 'react-router-dom' import { signout, isAuthenticated } from '../auth/helper/index' import { useHistory } from 'react-router' const Navigation = () => { const history = useHistory() return ( <div> <ul className="nav ...
FV = new formValidator(); /** * Clase con distintos metodos de ayuda de validación de formularios * Solo aplica los patrones y funciones, no aplica el estilo. * El estilo se aplica en CSS3 (Ej: input:valid{}) * @returns {formValidator} */ function formValidator() { //privados /** * A...
this["JST"] = this["JST"] || {}; this["JST"]["app/scripts/templates/profile_info.ejs"] = function(obj) { obj || (obj = {}); var __t, __p = '', __e = _.escape, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } with (obj) { __p += ' <div class="right col-sm-8 right-top-block">\n ...
// A VERY IMPORTANT THING ABOUT RETURN,VARIABLE_FUNCTIONS,AND ANOYMOUS FUNCS(EEFI TOO) var John =(function(){ // A PRIVATE FUNCTION WHO'S ELEMENTS CAN'T BE ACCESSED OUTSIDE IT'S SCOPE CHAIN var number = 245 return{ // THE VARIABLE JOHN IS RETURNING :- return RETURNS the main value ans:fun...
import React from "react" export default class Intro extends React.Component { render() { return ( <div class="columns" style={{marginBottom:'3rem'}}> <div class="column is-narrow"></div> <div class="column is-6 content"> <p> Electronic mail is much older than ARPANET or the Internet. It was never in...
/* * Extends knockout by adding extra bindings for elements */ (function (knockout, $) { /* * Usage : <input type='text' data-bind='date: modelProperty' /> */ ko.bindingHandlers.date = { init: function (element, valueAccessor, allBindings, viewModel, bindingContext) { ...
const Client = require('./client'); const formatMoney = require('./currency').formatMoney; const GTM = require('./gtm'); const ChampionRouter = require('./router'); const ChampionSocket = require('./socket'); const State = require('./storage').State; const url_for = require('./url'...
import React from 'react'; import { ThemeContext } from '../../ThemeProvider'; export const withThemeSwitch = ComposedComponent => props => ( <ThemeContext.Consumer> {values => <ComposedComponent {...props} {...values} />} </ThemeContext.Consumer> ); export default withThemeSwitch;
import React, { Component } from 'react'; import { Form, Input, Button } from 'antd'; import { createForm } from 'rc-form'; import models from '../../models/index'; import Message from '../../utils/message/index'; import './index.less'; const { tableDataModel } = models; const formItemLayout = { labelCol: { xs: ...
/* * @Author: xr * @Date: 2021-04-09 23:10:07 * @LastEditors: xr * @LastEditTime: 2021-04-19 17:13:45 * @version: v1.0.0 * @Descripttion: 功能说明 * @FilePath: \api\services\admin.js */ const Sequelize = require('sequelize'); const connection = require('./connection') const adminTable = connection.define('admin', ...
var ObjectID = require('mongodb').ObjectID; function removeElement(db,req,res){ var idToRemove = req.query.id; var collection = db.collection('tasks'); collection.deleteOne({ _id:ObjectID(idToRemove) },function(){ res.end(); }); } module.exports = removeElement;
require("./global") console.log(saudacao.nome) saudacao.nome = " Bem vindo mane" console.log(saudacao.nome)
/** * Created by lipeiwei on 16/10/4. */ import React from 'react'; import { TouchableOpacity, Image, Animated, StyleSheet, Dimensions } from 'react-native'; import {getNavigator} from '../route'; const windowWidth = Dimensions.get('window').width; const windowHeight = Dimensions.get('window').height; co...
declare module 'react-redux' { declare function connect() : any }
function idValidation(oSrc, args) { var id = args.Value; var checkDigit = id % 10; id = parseInt(id /10); var sum = idSum(id); var isValid = checkId(sum, checkDigit); args.IsValid = isValid; } function idSum(id) { if (id > 99999999) return -1; var mulArr = [2, 1, 2, 1, 2, 1, 2,...
const actions = require('./actions') module.exports = { reduxMiddleware: () => ({ onConnect: ctx => { console.log('redux middleware connect') ctx.action = actions.connect() ctx.dispatch = (action) => { action = { ...action, meta: { ...action.meta, createdAt: Date.now() } } ctx.s...
Page({ /** * 页面的初始数据 */ data: { actionSheetHidden:true, modalHidden:true, toastHidden:true, loadingHidden:true, }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 ...
import React from "react"; import { Block, Card, CardHeader, Link, CardContent, List, ListItem, CardFooter, ListInput, Col } from 'framework7-react'; import crypto from 'crypto-js'; import { dict } from "../../Dict"; import Moment from 'react-moment'; import JDate from 'jalali-date'; import 'moment-timezone'; import 'm...
import { Vec3 } from './vec3.js'; /** * A 3x3 matrix. * * @category Math */ class Mat3 { /** * Matrix elements in the form of a flat array. * * @type {Float32Array} */ data = new Float32Array(9); /** * Create a new Mat3 instance. It is initialized to the identity matrix. ...
import { FaBars, FaSearch, FaShoppingCart, FaUserPlus } from "react-icons/fa"; import { Link } from "react-router-dom"; import Logo from "../images/logo.png"; const Header = () => { return ( <header className="header flex items-center justify-between py-3 xl:mx-20"> <div className="menu-btn flex"> <...
import React, { Component } from 'react'; import {Redirect,Link} from "react-router-dom"; export class Bride extends Component { constructor(props) { super(props); let calage=""; const {value:{BrideDateofbirth}}=this.props; this.state={ calage:"" } if(BrideDateofbirth!==""&&BrideDateofbirt...
// Why Array var friend1 = 'Farhad Hossen' var friend2 = 'Siam' var friend3 = 'Fardeen Rahman' var friend4 = 'Jubaier Rahman' var friend5 = 'Sakib Al Islam' var friend6 = 'Shakif' // Array Declartion // var friends = [ // 'Farhad Hossen', // 'Siam', // 'Fardeen', // 'Jubaier', // 'Sakib', // 'Sh...
import $ from '../../core/renderer'; import { noop } from '../../core/utils/common'; import { getWindow, hasWindow } from '../../core/utils/window'; import domAdapter from '../../core/dom_adapter'; import { isNumeric, isFunction, isDefined, isObject as _isObject, type } from '../../core/utils/type'; import { each } fro...
import firebase from 'firebase' import axios from 'axios' const ENDPOINT = process.env.REACT_APP_BACKEND_URL; class API { static getVideoURL(code) { return "https://media.w3.org/2010/05/sintel/trailer_hd.mp4" } static async getCharityProjects() { let charityProjects = await fetch(`${ENDP...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { carsShowAll, carsUpdate } from '../actions'; import Car from './Car' import EditedCar from './EditedCar' const carsAPI = 'http://rawlovel.test/api/cars' class CarList extends Component { c...