text
stringlengths 7
3.69M
|
|---|
$(document).ready(function() {
var funcion = "";
var tipo_usuario = $('#txtTipoUsuario').val();
buscar_avatar();
buscarSedes();
function buscar_avatar() {
var id = $('#id_usuario').val();
funcion = 'buscarAvatar';
$.post('../../Controlador/usuario_controler.php', { id, funcion }, (response) => {
const usuario = JSON.parse(response);
$('#avatar4').attr('src', usuario.avatar);
});
}
$('#form_crear_sede').submit(e => {
e.preventDefault();
let nombre = $('#txtNombreSede').val();
let ciudad = $('#txtCiudadSede').val();
let direccion = $('#txtDirSede').val();
let telefono = $('#txtTelSede').val();
let email = $('#txtEmailSede').val();
let wp = $('#txtWpSede').val();
let nit = $('#txtNitSede').val();
let fb = $('#txtFbSede').val();
let instagram = $('#txtInstagramSede').val();
let twitter = $('#txtTwitterSede').val();
let youtube = $('#txtYoutubeSede').val();
funcion = 'crear_sede';
$.post('../../Controlador/sede_controler.php', { funcion, nombre, ciudad, direccion, telefono, email, wp, nit, fb, instagram, twitter, youtube }, (response) => {
if (response == 'creada') {
$('#divCreate').hide('slow');
$('#divCreate').show(1000);
$('#divCreate').hide(2000);
$('#form_crear_region').trigger('reset');
buscarSedes();
} else {
$('#divNoCreate').hide('slow');
$('#divNoCreate').show(1000);
$('#divNoCreate').hide(2000);
$('#divNoCreate').html(response);
}
});
});
$(document).on('keyup', '#TxtBuscarSede', function() {
let consulta = $(this).val();
if (consulta != "") {
buscarSedes(consulta);
} else {
buscarSedes();
}
});
function buscarSedes(consulta) {
var funcion = "buscar_sedes";
$.post('../../Controlador/sede_controler.php', { consulta, funcion }, (response) => {
const objetos = JSON.parse(response);
let template = "";
objetos.forEach(obj => {
template += `<div sedeId="${obj.id}" class="col-12 col-sm-6 col-md-3 align-items-stretch">
<div class="card bg-light">
<div class="card-header border-bottom-0 notiHeader">
<h2 class="lead"><b>${obj.nombre_sede}</b></h2>
</div>
<div class="card-body pt-0">
<div class="row">
<div class="col-12">`;
if (obj.estado_sede == 'Activo') {
template += `<h1 class='badge badge-warning'>${obj.estado_sede}</h1>`;
} else {
template += `<h1 class='badge badge-danger'>${obj.estado_sede}</h1>`;
}
template += `<p class="text-muted text-sm"><b>Nit: </b> ${obj.nit} </p>
<ul class="ml-4 mb-0 fa-ul text-muted">
<li class="small"><span class="fa-li"><i class="fas fa-lg fa-city"></i></span> Ciudad: ${obj.ciudad_sede}</li>
<li class="small"><span class="fa-li"><i class="fas fa-lg fa-directions"></i></span> Dirección: ${obj.direccion_sede}</li>
<li class="small"><span class="fa-li"><i class="fas fa-lg fa-phone"></i></span> Teléfono: ${obj.tel_sede}</li>
<li class="small"><span class="fa-li"><i class="fas fa-lg fa-envelope"></i></span> Email: ${obj.email}</li>
</ul>`;
if (obj.wp_sede != null && obj.wp_sede != '') {
template += `<a href="https://api.whatsapp.com/send?phone=+57${obj.wp_sede}&text=Hola, me interesaría obtener información" target="_blank">
<img src="../../Recursos/img/whatsapp_icon.png" alt="" width="30px">
</a>`;
}
if (obj.facebook != null && obj.facebook != '') {
template += `<a href="${obj.facebook}" target="_blank">
<img src="../../Recursos/img/facebook_icon.png" alt="" width="30px">
</a>`;
}
if (obj.instagram != null && obj.instagram != '') {
template += `<a href="${obj.instagram}" target="_blank">
<img src="../../Recursos/img/instagram_icon.png" alt="" width="30px">
</a>`;
}
if (obj.twitter != null && obj.twitter != '') {
template += `<a href="${obj.twitter}" target="_blank">
<img src="../../Recursos/img/twitter_icon.png" alt="" width="30px">
</a>`;
}
if (obj.youtube != null && obj.youtube != '') {
template += `<a href="${obj.youtube}" target="_blank">
<img src="../../Recursos/img/youtube_icon.png" alt="" width="30px">
</a>`;
}
template += ` </div>
</div>
</div>
<div class="card-footer">
<div class="text-right">`;
if (tipo_usuario <= 2) {
if (obj.estado_sede == 'Activo') {
template += `<button class='actSede btn btn-sm btn-danger mr-1' type='button'>
<i class="fas fa-pencil mr-1"></i>Inactivar
</button>`;
} else {
template += `<button class='actSede btn btn-sm btn-warning mr-1' type='button'>
<i class="fas fa-pencil mr-1"></i>Activar
</button>`;
}
template += `<button class='editSede btn btn-sm btn-info mr-1' type='button' data-bs-toggle="modal" data-bs-target="#editar_region">
<i class="fas fa-pencil mr-1"></i>Editar
</button>`;
}
template += `</div>
</div>
</div>
</div>`;
});
$('#busquedaSede').html(template);
});
}
$(document).on('click', '.editSede', (e) => {
const elemento = $(this)[0].activeElement.parentElement.parentElement.parentElement.parentElement;
const id = $(elemento).attr('sedeId');
$('#txtId_sedeEd').val(id);
funcion = 'cargarSede';
$.post('../../Controlador/sede_controler.php', { id, funcion }, (response) => {
const obj = JSON.parse(response);
$('#txtNombreSede2').val(obj.nombre_sede);
$('#txtCiudadSede2').val(obj.ciudad_sede);
$('#txtDirSede2').val(obj.direccion_sede);
$('#txtTelSede2').val(obj.tel_sede);
$('#txtEmailSede2').val(obj.email);
$('#txtWpSede2').val(obj.wp_sede);
$('#txtNitSede2').val(obj.nit);
$('#txtFbSede2').val(obj.facebook);
$('#txtInstagramSede2').val(obj.instagram);
$('#txtTwitterSede2').val(obj.twitter);
$('#txtYoutubeSede2').val(obj.youtube);
});
});
$(document).on('click', '.actSede', (e) => {
const elemento = $(this)[0].activeElement.parentElement.parentElement.parentElement.parentElement;
const id = $(elemento).attr('sedeId');
funcion = 'changeEstadoSede';
$.post('../../Controlador/sede_controler.php', { id, funcion }, (response) => {
buscarSedes();
});
});
$('#form_editar_sede').submit(e => {
let id = $('#txtId_sedeEd').val();
let nombre = $('#txtNombreSede2').val();
let ciudad = $('#txtCiudadSede2').val();
let direccion = $('#txtDirSede2').val();
let telefono = $('#txtTelSede2').val();
let email = $('#txtEmailSede2').val();
let wp = $('#txtWpSede2').val();
let nit = $('#txtNitSede2').val();
let fb = $('#txtFbSede2').val();
let instagram = $('#txtInstagramSede2').val();
let twitter = $('#txtTwitterSede2').val();
let youtube = $('#txtYoutubeSede2').val();
funcion = 'editar_sede';
$.post('../../Controlador/sede_controler.php', { funcion, id, nombre, ciudad, direccion, telefono, email, wp, nit, fb, instagram, twitter, youtube }, (response) => {
if (response == 'update') {
$('#updateObj').hide('slow');
$('#updateObj').show(1000);
$('#updateObj').hide(2000);
buscarSedes();
} else {
$('#noUpdateObj').hide('slow');
$('#noUpdateObj').show(1000);
$('#noUpdateObj').hide(2000);
$('#noUpdateObj').html(response);
}
});
e.preventDefault();
});
});
|
import React from 'react';
// The actual filter component
export default function Footer(props) {
return (<div className="container w-1/1 mx-auto my-6 mb-12 text-center text-gray-600">
This site is in no way affiliated with Bob Ross Inc.<br/>
<a href="https://github.com/pgooch/find-your-ross" target="_blank" rel="noopener noreferrer" className="font-bold">Clone this happy little repo on Github</a>.
</div>);
}
|
Component({
properties: {
firstTypeRange: {
type: Array,
value: [],
},
secondTypeRange: {
type: Array,
value: [],
},
value: {
type: Array,
value: [0, 0],
},
},
attached() {
const { firstTypeRange, secondTypeRange, value } = this.data;
const [firstValue, secondValue] = value;
const firstTypePicker = {
range: firstTypeRange,
value: firstValue,
label: firstTypeRange[firstValue].label,
};
const secondTypePicker = {
range: secondTypeRange,
value: secondValue,
label: secondTypeRange[secondValue].label || '请选择',
};
this.setData({
firstTypePicker,
secondTypePicker,
});
},
data: {
firstTypePicker: {},
secondTypePicker: {},
picker: [],
crtPicker: '',
},
methods: {
/**
* 切换选择器
*/
togglePicker(e) {
const { info } = e.currentTarget.dataset;
const { crtPicker } = this.data;
let crt = '';
if (crtPicker !== info) {
crt = info;
}
this.setData({
crtPicker: crt,
});
},
/**
* 关闭选择器
*/
closePicker() {
this.setData({
crtPicker: '',
});
},
/* 阻止滚动穿透 */
preventTouchMove() {
},
/**
* 第一列类型选择
*/
onFirstColumnTypeChange(e) {
const that = this;
const { value, item } = e.detail;
this.setData({
'firstTypePicker.value': value,
'firstTypePicker.label': item.label,
}, () => {
that.change('firstTypePicker', item);
});
},
/**
* 第一列类型选择
*/
onSecondColumnTypeChange(e) {
const that = this;
const { value, item } = e.detail;
this.setData({
'secondTypePicker.value': value,
'secondTypePicker.label': item.label,
}, () => {
that.change('secondTypePicker', item);
});
},
/**
* 触发值变化
*/
change(type, res) {
const that = this;
const { firstTypePicker, secondTypePicker } = this.data;
setTimeout(() => {
that.triggerEvent('change', {
type,
value: [firstTypePicker.value, secondTypePicker.value],
item: res,
});
that.closePicker();
}, 0);
},
},
});
|
'use strict';
var demoControllers = angular.module('demoControllers', []);
demoControllers.controller('panelCtrl', ['$scope', function($scope) {
var vm = $scope.mv = {};
$scope.query = '';
$scope.orderProp = 'number';
$scope.listData = [{
name: "Node.JS",
number: 1,
url: "https://nodejs.org/",
content: "Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine."
}, {
name: "Express",
number: 2,
url: "http://expressjs.com/",
content: "Fast, unopinionated, minimalist web framework for Node.js"
}, {
name: "Angular.JS",
number: 3,
url: "https://angularjs.org/",
content: "HTML enhanced for web apps!"
}, {
name: "Bootstrap",
number: 4,
url: "http://getbootstrap.com/",
content: "Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web."
}, {
name: "JQuery",
number: 5,
url: "https://jquery.com/",
content: "jQuery is a fast, small, and feature-rich JavaScript library."
}, {
name: "MongoDB",
number: 6,
url: "https://www.mongodb.org/",
content: "MongoDB is an open-source, document database designed for ease of development and scaling. "
}];
}]);
demoControllers.controller('homeCtrl', ['$scope', '$http', '$sce',
function($scope, $http, $sce) {
$http.get("json/themeInfo.json").success(function(data) {
$scope.title = data.home.title;
$scope.content = $sce.trustAsHtml(data.home.content);
});
}
]);
demoControllers.controller('aboutCtrl', ['$scope', '$http', '$sce',
function($scope, $http, $sce) {
$http.get("json/themeInfo.json").success(function(data) {
$scope.title = data.about.title;
$scope.content = $sce.trustAsHtml(data.about.content);
});
}
]);
demoControllers.controller('editorCtrl', ['$scope', '$http', '$sce',
function($scope, $http, $sce) {
$http.get("json/themeInfo.json").success(function(data) {
$scope.title = data.editor.title;
$scope.content = $sce.trustAsHtml(data.editor.content);
});
$scope.editContent = 'Hello World!';
$scope.showTooltip = false;
$scope.hideTooltip = function() {
$scope.showTooltip = false;
};
$scope.toggleTooltip = function(evt) {
evt.stopPropagation();
$scope.showTooltip = !$scope.showTooltip;
};
}
]);
demoControllers.controller('orderCtrl', ['$scope', '$http', '$sce',
function($scope, $http, $sce) {
$http.get("json/themeInfo.json").success(function(data) {
$scope.title = data.order.title;
$scope.content = $sce.trustAsHtml(data.order.content);
});
$scope.services = [
{
name: 'Apple iPhone 6s',
url: '/images/iphone6s.jpg',
price: 5000,
active: true
}, {
name: 'Galaxy Note5',
url: '/images/galaxynote5.jpg',
price: 5288,
active: false
}, {
name: 'HTC One M9w',
url: '/images/onem10.jpg',
price: 3200,
active: false
}, {
name: 'SONY Xperia Z5',
url: '/images/xperiaz5.jpg',
price: 5699,
active: false
}
];
$scope.toggleActive = function(service) {
service.active = !service.active;
};
$scope.total = function() {
var total = 0;
angular.forEach($scope.services, function(service) {
if(service.active) {
total += service.price;
}
});
return total;
};
}
]);
demoControllers.controller('searchCtrl', ['$scope', '$http', '$sce',
function($scope, $http, $sce) {
$http.get("json/themeInfo.json").success(function(data) {
$scope.title = data.search.title;
$scope.content = $sce.trustAsHtml(data.search.content);
});
$scope.items = [
{
url: 'http://www.shejipi.com/81512.html',
title: '超级无敌大萌灯',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/11/%E8%90%8C%E9%B9%BF%E5%9C%A3%E8%AF%9E%E8%8A%823%E9%A6%96%E5%9B%BE.jpg'
},
{
url: 'http://www.shejipi.com/76925.html',
title: '一款简单的不简单的手表',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/10/paike12.jpg'
},
{
url: 'http://www.shejipi.com/84655.html',
title: '陪竹子走过漫长岁月',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/12/naturebamboo25.jpg'
},
{
url: 'http://www.shejipi.com/82365.html',
title: '让我们对回忆 say hi again',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/12/xiamong2.jpg'
},
{
url: 'http://www.shejipi.com/68412.html',
title: '「后街」的诞生',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/08/700bikehoujie3.jpg'
},
{
url: 'http://www.shejipi.com/72996.html',
title: '骑折叠电动车「云马」上北京地铁',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/09/yunmatiyan8.jpeg'
},
{
url: 'http://www.shejipi.com/86799.html',
title: '把洒满午后阳光的草坪放在书桌上',
image: 'http://cdn.shejipi.com/wp-content/uploads/2015/12/lvyeyangguang2.jpg'
}
];
}
]);
demoControllers.controller('networkCtrl', ['$scope', '$http', '$sce', 'instagram',
function($scope, $http, $sce, instagram) {
$http.get("json/themeInfo.json").success(function(data) {
$scope.title = data.network.title;
$scope.content = $sce.trustAsHtml(data.network.content);
});
// Default layout of the app. Clicking the buttons in the toolbar
// changes this value.
$scope.layout = 'grid';
$scope.pics = [];
// Use the instagram service and fetch a list of the popular pics
instagram.fetchPopular(function(data){
// Assigning the pics array will cause the view
// to be automatically redrawn by Angular.
$scope.pics = data;
});
}
]);
|
"use strict";
import Vue from "vue";
import App from "./App.vue";
import {library} from "@fortawesome/fontawesome-svg-core";
import {faUser, faUsers, faChevronRight} from "@fortawesome/free-solid-svg-icons";
library.add(faUser, faUsers, faChevronRight);
const vm = new Vue({
el: "#app",
render: h => h(App)
});
window.showCharacters = vm.$children[0].showCharacters;
window.hideCharacters = vm.$children[0].hideCharacters;
window.vm = vm;
|
({
changePage: function (component, page) {
let navigate = component.get("v.navigateFlow");
navigate(page);
}
});
|
function rand(min=0, max=3) {
min *= 1000;
max *= 1000;
return Math.floor(Math.random() * (max - min) + min);
}
function wait(message, time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
if(typeof message !== 'string') {
reject('ERRO!');
return;
}
resolve(message);
return;
}, time)
});
}
async function exec() {
try {
const phaseOne = await wait('Fase 1', rand());
console.log(phaseOne);
const phaseTwo = await wait('Fase 2', rand());
console.log(phaseTwo);
const phaseThree = await wait(3, rand());
console.log(phaseThree);
console.log('Terminamos na fase: ', phaseThree);
} catch(e) {
console.log(e);
}
}
exec();
// wait('Fase 1', rand())
// .then(value => {
// console.log(value);
// return wait('Fase 2', rand());
// })
// .then(value => {
// console.log(value);
// return wait('Fase 3', rand());
// })
// .then(value => {
// console.log(value);
// return value;
// })
// .then(value => {
// console.log('Terminamos na fase: ', value);
// })
// .catch(err => {
// console.log(err);
// })
|
import React, { useState } from 'react';
import {v4 as uuidv4} from 'uuid';
const Element = ( {element} ) => {
const [show, setShow] = useState('show more');
const showHandler = () => {
show === 'show more' ? setShow('show less') : setShow('show more');
}
return (
<div className="element-container">
<h3>{element.name}</h3>
<button onClick={showHandler}>{show}</button>
{
show === 'show less'
?
<div>
<p>{element.stadium}</p>
</div>
: null
}
</div>
);
}
export default Element;
|
let AWS = require('aws-sdk');
const rekognition = new AWS.Rekognition();
let base64Str = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wgARCAILA0cDASIAAhEBAxEB/8QAGwAAAgMBAQEAAAAAAAAAAAAAAgMAAQQFBgf/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQIDBAX/2gAMAwEAAhADEAAAAU6kbPkelZnFqXVKzPyazVAOj+vxOzl0mIdz0zl9Xg2eO42vH9bz3JfXNVIlVdSn1Of0JvQjTjzrX0+X1PHt1wuO6aDdZ6XW5fXTScLDNxezweO+Ehi97dtx75NblOxCZTOuT159PbN87o8nnrg4NOaa3b8G/FfozaZNurNr1GLYneOdx+nyd1IkPSC9Gmt2vNr6YO6KiKisbpz6t5cYnqVCoqXCpIDj1YjCowxTcpxp1Z9OowDClXRQyiClSihsuhA3BsuV4zTnP4/qbS73DA1dM5MevOKjWRfb53V53U4G40vyvf8ADds8AZPreaXJQyrKq6l09LB0Ju82nHm7ery+r5Nuat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NJc2e5fx4lFiuXP56LdV/h8w7Hvi5dQjOthvHMQnuPxKrwItG3IrbmB6licCr+o1UsFIkQrmvj1Mk4wi/EeR+ovXjrOQ7L1dYCNH1PcdN+4V2TSIdgsZRSWM14uj2XzaVn0nrn5fmeyrhFUQ2KDUWMWORSc9nzD/AOh8QltnuFF/pc/UkcVBF7Dksn1r1L6CWKlp/wCIR7YD/OJpJxHkWzqYjjtmLWaFysa2OEYGmM0wKuoQ9QHxLXIcJx5HcdUR3dHqHWEYd88wjyG9Q74Wzif1J/YnPyw5PZ5Mf8H9bOEOz3GdT+ZDfhUz9TeDAqKr9L9zHqAA+Ccx7DjHkdHh6/meoRh2CDpM4hyK0eBkVRN9ltCtPqJ1aNrwMYgirRq5HVDkVyXHr43cBWESl8T1nCaTpb4XD/eNoRB8cZw8vU78fadT/9k=';
let buf = Buffer.from(base64Str, 'Base64');
exports.handler = function (event, context, callback) {
rekognition.compareFaces({
SourceImage: {
S3Object: {
Bucket: "test.indunil1",
Name: "quiz400.jpg"
}
},
TargetImage: {
Bytes: buf
}
}).promise()
.then(data => {
console.log(data);
console.log("passs");
// your code goes here
})
.catch(err => {
console.log(err);
console.log("failllll");
// error handling goes here
});
callback(null, { "message": "Successfully executed" });
}
|
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import Contribution from 'kredits-web/models/contribution';
module('Unit | Helper | item-status', function (hooks) {
setupTest(hooks);
test('returns the appropriate status', function (assert) {
const contributionStatus = this.owner.factoryFor('helper:item-status').create();
const kredits = this.owner.lookup('service:kredits');
kredits.set('currentBlock', 23000);
const contributionUnconfirmed = Contribution.create({ confirmedAt: 23001, vetoed: false });
const contributionConfirmed = Contribution.create({ confirmedAt: 21000, vetoed: false });
const contributionVetoed = Contribution.create({ confirmedAt: 23001, vetoed: true });
assert.equal(contributionStatus.compute([contributionUnconfirmed]), 'unconfirmed');
assert.equal(contributionStatus.compute([contributionConfirmed]), 'confirmed');
assert.equal(contributionStatus.compute([contributionVetoed]), 'vetoed');
});
});
|
const events = require('./events'),
createEvent = require('./createEvent'),
editEvent = require('./editEvent'),
deleteEvent = require('./deleteEvent');
module.exports = {
events,
createEvent,
editEvent,
deleteEvent
};
|
import React, { useContext } from "react";
import { Modal, Button, Input, Tooltip, notification } from "antd";
import { InfoCircleOutlined, UserOutlined } from "@ant-design/icons";
import { subscribeToUserName, sendUserName } from "../socketHook";
import UserModalContext from "../contexts/UserModalContext";
const openNotificationWithIcon = (type, message) => {
notification[type]({
message,
});
};
function UserModal() {
const { userName, setUserName } = useContext(UserModalContext);
const { isModalVisible, setIsModalVisible } = useContext(UserModalContext);
const handleOk = () => {
setIsModalVisible(false);
sendUserName(userName);
subscribeToUserName((err, userName) => {
if (err) return;
openNotificationWithIcon("success", "new user login: " + userName);
setUserName(userName);
});
};
return (
<>
<Modal
visible={isModalVisible}
title="Hi, user!"
onOk={handleOk}
//onCancel={handleCancel}
closable="false"
maskClosable="false"
keyboard="false"
footer={[
<Button key="submit" type="primary" onClick={handleOk}>
Submit
</Button>,
]}
>
<Input
placeholder="Enter your username"
value={userName}
prefix={<UserOutlined className="site-form-item-icon" />}
suffix={
<Tooltip title="Enter a valid user name!">
<InfoCircleOutlined style={{ color: "rgba(0,0,0,.45)" }} />
</Tooltip>
}
onChange={(e) => setUserName(e.target.value)}
/>
</Modal>
</>
);
}
export default UserModal;
|
import { expect, assert, should } from 'chai';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
import { slugify } from '../js/utils/string-utils';
describe('slugify', () => {
it('returns lowercase, hyphenated string to use as a restful url slug', () => {
let name = "Five Leaves"
expect(slugify(name)).to.equal("five-leaves")
})
it('removes ampersands', () => {
let name = "Marlow & Sons"
expect(slugify(name)).to.equal("marlow-sons")
})
it('removes apostrophes', () => {
let name = "Foo's Bar"
expect(slugify(name)).to.equal("foos-bar")
})
});
|
import React from 'react';
const styling={
margin: '30px auto',
height: '20px',
textAlign:'center',
backgroundColor: 'coral'
}
const userInput=(props)=>{
return (<div><input type="text" onChange={props.change} value={props.name} style={styling}/><br/></div>);
}
export default userInput;
|
'use strict'
const
Faker = require('faker'),
Artist = require('../../models/Artist'),
Genre = require('../../models/Genre'),
User = require('../../models/User');
const makeFakeGenre = () => {
return {
name: Faker.company.companyName(),
}
}
const makeFakeGenreAndSave = () => {
return Genre.forge(makeFakeGenre()).save()
}
const makeFakeArtist = () => {
return {
fullName: Faker.name.findName(),
description: Faker.lorem.paragraph()
}
}
const artistAndSave = () => {
return new Artist(makeFakeArtist()).save()
}
const relationships = (artist) => {
artist.set('genre', []);
artist.set('mentors', []);
artist.set('proteges', []);
return artist;
}
const _User = () => {
return {
username: Faker.internet.userName(),
firstName: Faker.name.firstName(),
lastName: Faker.name.lastName(),
bio: Faker.lorem.paragraph(),
email: Faker.internet.email(),
password: Faker.internet.password()
}
};
const UserAndSave = () => {
let user = User.forge(_User());
let password = user.get('password');
return user.generateHash(password)
.then(hash => {
user.set('password', hash)
return user.save();
})
.then(user => {
return {
user: user,
password: password
};
})
}
module.exports = {
Artist: makeFakeArtist,
Genre: makeFakeGenre,
artistAndSave: artistAndSave,
relationships: relationships,
User: _User,
UserAndSave: UserAndSave,
genreAndSave: makeFakeGenreAndSave
};
|
var through = require('through')
, tJS = require('./js')
, tPO = require('./po')
var reJS = /\.js$/
, rePO = /\.po$/
module.exports = function (file, options) {
if (reJS.test(file)) return tJS(file, options)
if (rePO.test(file)) return tPO(file, options)
return through()
}
|
'use strict';
module.exports = function(app) {
var pController = require('../controllers/patientController');
var siteController = require('../controllers/siteController');
var wcController = require('../controllers/wcController');
app.route('/')
.get(siteController.load_index)
.post(siteController.send_data);
app.route('/saveData')
.post(siteController.save_data);
// todoList Routes
app.route('/api/messages')
.get(pController.hello_task);
app.route('/api/messages/:uname')
.get(pController.create_a_Hello);
//Routes for db api
app.route('/api/db/getDetail')
.post(pController.get_detail);
app.route('/api/db/deleteRecord')
.post(pController.del_record);
app.route('/api/db/saveRecord')
.post(pController.save_record);
app.route('/api/db/updateRecord')
.post(pController.update_record);
//Routes for WS API
app.route('/wcDemo')
.get(wcController.wc_demo)
.post(wcController.get_wc_response);
};
|
/**
* NPM import
*/
import { connect } from 'react-redux';
/**
* Local import
*/
import ProfileBloc from 'src/components/CvUser/ProfileBloc';
/**
* Code
*/
const mapStateToProps = state => ({
firstname: state.profile.firstname,
lastname: state.profile.lastname,
birthday: state.profile.birthday,
adress: state.profile.adress,
mail: state.profile.mail,
phone: state.profile.phone,
urlPicture: state.profile.urlPicture,
});
const ProfileBlocContainer = connect(
mapStateToProps, // Lecture depuis le state
null, // Écriture dans le state
)(ProfileBloc);
/**
* Export
*/
export default ProfileBlocContainer;
|
import React from "react";
import "./Button.css";
const Button = (props) => {
return (
<div className="button-box">
<button className={`button ${props.btnType}`} onClick={props.click}>
{props.children}
</button>
</div>
);
};
export default Button;
|
const User = require('../../../../../../src/domain/user/User');
const UserRepository = require('../../../../../../src/domain/user/UserRepository');
const mockUserRepository = new UserRepository();
const getUserById = require('../../../../../../src/application/use_cases/user/search/getUserById');
const expect = require('chai').expect;
test('should resolve with the corresponding persisted user entity', async () => {
// given
const correspondingUser = new User('5f18aa6310eba090863e76dc', 'admin', 'admin', 'john.doe@email.com', '1234567-k', '3024026718', 'M@st3r321.', 'ROLE_ADMIN');
mockUserRepository.get = jest.fn((userId) => correspondingUser);
// when
const user = await getUserById('5f18aa6310eba090863e76dc', { userRepository: mockUserRepository });
// then
expect(mockUserRepository.get).toHaveBeenCalledWith('5f18aa6310eba090863e76dc');
expect(user).toEqual(correspondingUser);
});
|
const fs = require('fs')
const storage = require('./storage.js')
const currentGuilds = storage.currentGuilds
const config = require('../config.json')
function getLength (obj) {
let len = 0
for (var x in obj) len++
return len
}
function updateContent (guildId, inFile, shardingManager) {
try {
fs.writeFileSync(`./sources/${guildId}.json`, config.advanced.minifyJSON === true ? JSON.stringify(inFile) : JSON.stringify(inFile, null, 2))
} catch (e) { console.log(`Guild Profile Warning: Unable to update file ${guildId}.json (${e})`) }
if (shardingManager) shardingManager.broadcast({type: 'updateGuild', guildRss: inFile})
else if (process.send) process.send({type: 'updateGuild', guildRss: inFile}) // If this is a child process
}
exports.updateFile = function (guildId, inFile, shardingManager) { // "inFile" is the new contents in memory
if (fs.existsSync(`./sources/${guildId}.json`)) {
fs.readFile(`./sources/${guildId}.json`, function (err, data) {
if (err) throw err
if (config.feedManagement.enableBackups === true) try { fs.writeFileSync(`./sources/backup/${guildId}.json`, data) } catch (e) { console.log(`Guild Profile Warning: Unable to backup file ${guildId}.json (${e})`) }
updateContent(guildId, inFile, shardingManager)
})
} else updateContent(guildId, inFile, shardingManager)
}
exports.deleteGuild = function (guildId, shardingManager, callback) {
try {
if (config.botSettings.persistGuildProfiles !== true) {
fs.unlinkSync(`./sources/${guildId}.json`)
fs.unlinkSync(`./sources/backup/${guildId}.json`)
}
if (typeof callback === 'function') callback()
} catch (e) {}
currentGuilds.delete(guildId)
if (shardingManager) shardingManager.broadcast({type: 'deleteGuild', guildId: guildId})
else if (process.send) process.send({type: 'deleteGuild', guildId: guildId}) // If this is a child process
}
exports.isEmptySources = function (guildRss, shardingManager) { // Used on the beginning of each cycle to check for empty sources per guild
if (!guildRss.sources || getLength(guildRss.sources) === 0) {
if (!guildRss.timezone && !guildRss.dateFormat && !guildRss.dateLanguage) { // Delete only if server-specific special settings are not found
exports.deleteGuild(guildRss.id, shardingManager, function () {
console.log(`RSS Info: (${guildRss.id}) => 0 sources found with no custom settings, deleting.`)
})
} else console.log(`RSS Info: (${guildRss.id}) => 0 sources found, skipping.`)
return true
} else return false
}
exports.checkBackup = function (err, guildId) {
if (config.feedManagement.enableRestores !== true) return console.log(`Guild Profile Warning: Cannot load guild profile ${guildId} (${err}). Restores disabled, skipping profile..`)
console.log(`Guild Profile Warning: Cannot load guild profile ${guildId} (${err}). Restores enabled, attempting to restore backup.`)
fs.readFile(`./sources/backup/${guildId}`, function (err, backup) {
if (err) return console.log(`Guild Profile Warning: Unable to restore backup for ${guildId}. (${err})`)
updateContent(guildId, backup, `../sources/${guildId}.json`)
console.log(`Guild Profile Info: Successfully restored backup for ${guildId}`)
})
}
|
const express = require("express");
const router = express.Router();
const passport = require("passport");
const db = require("../db/MongoUtils");
const bcrypt = require("bcrypt");
const jwt = require("jsonwebtoken");
/* GET home page. */
router.get("/google", passport.authenticate("google", { scope: ["email", "profile"] }));
router.post("/", function(req, res) {
const { email, password } = req.body;
res.clearCookie("x-access-token");
console.log(email);
db.findOneObjectPromise("application", "users", {email: email})
.then(user => {
if(!user||!user[0])
{
return res
.status(400)
.json({ errors: [{ msg: "Invalid Credentials" }] });
}
else
{
const usr = user[0];
bcrypt.compare(password, usr.password)
.then(match => {
if(!match)
{
return res
.status(400)
.json({ errors: [{ msg: "Invalid Credentials" }] });
}
else
{
const payload = {
user: {
_id: usr._id,
email: usr.email,
name: usr.name
},
};
console.log("create", process.env.JWT_SECRET);
jwt.sign(
payload,
process.env.JWT_SECRET,
{ expiresIn: 36000 },
(error, token) => {
if (error) throw error;
let options = {
path:"/",
sameSite:true,
maxAge: 1000 * 60 * 60 * 24, // would expire after 24 hours
httpOnly: true, // The cookie only accessible by the web server
};
console.log("Token created", token);
res.cookie("x-access-token",token, options);
res.json(token);
});
}
});
}
});
});
router.get(
"/callback",
passport.authenticate("google", { failureRedirect: "/login" }),
function (req, res) {
res.redirect("/");
}
);
router.get("/login/success", (req, res) => {
if (req.user) {
res.json({
success: true,
message: "user has successfully authenticated",
user: req.user,
cookies: req.cookies
});
}
});
module.exports = router;
|
function NeuralNetLayer (verticeRef, params) {
// var me = this;
this.id = params.id;
this.activeColor = 'yellow'
this.verticeRef = verticeRef;
this.active = false;
this.finishedActive = true;
// todo: use _.extend !
this.threshold = params.threshold;
this.initScore = params.initScore;
this.currScore = params.initScore;
this.rootProbability = params.rootProbability;
this.activeEdgesLimit = params.activeEdgesLimit;
this.verticeProbability = params.verticeProbability;
this.meanActivityTime = params.meanActivityTime;
this.activityTimeDeviation = params.activityTimeDeviation;
this.probabilityToActivate = params.probabilityToActivate;
this.isRoot = _.contains(params.roots, this.verticeRef.id);
this.outgoingVertices = [];
};
NeuralNetLayer.prototype = {
constructor: NeuralNetLayer,
// Private Functions
isSignalOut: function(w) {
return (Math.random() < w);
},
wasActive: function() {
return (!this.active && !this.finishedActive);
},
// Layer Specific Methods
updateScore: function (theScoreToAdd) {
this.currScore += theScoreToAdd;
return false;
},
isActive: function() {
return (this.active && !this.finishedActive);
},
checkAndSetParams: function(conf) {
this.threshold = conf.threshold;
this.verticeProbability = conf.verticeProbability;
this.activeEdgesLimit = conf.activeEdgesLimit;
},
// Public Functions
getOutgoingVertices: function() {
return this.outgoingVertices;
},
resetRoot: function(val) {
this.isRoot = val;
},
// Public layer interface to implement
updateRoot: function(netState) {
if (this.isRoot && netState.numActiveEdges < this.activeEdgesLimit && this.rootProbability < Math.random()) {
this.updateScore(1);
}
},
determineCurrentState: function (theScoreToAdd) {
if (this.isActive()) {
this.active = false;
} else if (this.wasActive()) {
this.finishedActive = true;
} else {
if (this.threshold < this.currScore) {
this.currScore = this.initScore;
this.active = true;
this.finishedActive = false;
}
}
},
determineNetworkEffect:function (theScoreToAdd) {
_.each(this.verticeRef.outVertices, function(v) {
var currEdgeRef = this.verticeRef.getEdge(this.verticeRef.id, v.id).edgeRef;
if (this.wasActive() && this.isSignalOut(this.verticeProbability)) {
currEdgeRef.activate(getRandomTime(this.meanActivityTime, this.activityTimeDeviation));
}
if (currEdgeRef.wasActive()) {
currEdgeRef.setPristine();
this.outgoingVertices.push(v);
}
}.bind(this));
},
causeNetworkEffect:function (theScoreToAdd) {
_.each(this.outgoingVertices, function(v) {
var verticeNetworkLayer = v.layers.getLayer('NeuralNetLayer');
verticeNetworkLayer.updateScore.call(verticeNetworkLayer, 1)
}.bind(this));
},
prepareForNextState:function (theScoreToAdd) {
this.outgoingVertices.length = 0;
},
};
|
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/building/reg_predict/_num" ], {
"0ea4": function(e, n, t) {
Object.defineProperty(n, "__esModule", {
value: !0
}), n.default = void 0;
var a = {
props: {
is_selling: {
type: Boolean,
default: !1
},
current_house: {
type: Object
}
}
};
n.default = a;
},
4682: function(e, n, t) {
t.d(n, "b", function() {
return a;
}), t.d(n, "c", function() {
return o;
}), t.d(n, "a", function() {});
var a = function() {
var e = this;
e.$createElement;
e._self._c;
}, o = [];
},
"4fa1": function(e, n, t) {
var a = t("82e8");
t.n(a).a;
},
"502a": function(e, n, t) {
t.r(n);
var a = t("0ea4"), o = t.n(a);
for (var u in a) [ "default" ].indexOf(u) < 0 && function(e) {
t.d(n, e, function() {
return a[e];
});
}(u);
n.default = o.a;
},
5547: function(e, n, t) {
t.r(n);
var a = t("4682"), o = t("502a");
for (var u in o) [ "default" ].indexOf(u) < 0 && function(e) {
t.d(n, e, function() {
return o[e];
});
}(u);
t("4fa1");
var r = t("f0c5"), c = Object(r.a)(o.default, a.b, a.c, !1, null, "4011090a", null, !1, a.a, void 0);
n.default = c.exports;
},
"82e8": function(e, n, t) {}
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/building/reg_predict/_num-create-component", {
"pages/building/reg_predict/_num-create-component": function(e, n, t) {
t("543d").createComponent(t("5547"));
}
}, [ [ "pages/building/reg_predict/_num-create-component" ] ] ]);
|
var express = require('express');
var router = express.Router();
var models = require('../../models');
var Sequelize = require('Sequelize');
const Op = Sequelize.Op;
//商品首页接口
router.get('/', function (req, res, next) {
//分页
var currentPage = req.query.currentPage == undefined ? 1 : req.query.currentPage; //判断当前是第几页
var pageSize = 5;//每页显示几条
//按名称搜索
var keyword= req.query.keyword;
var data = {}; //定义一个空对象
if(keyword != undefined && keyword != ''){
data.name = {
[Op.like]: '%' + keyword + '%'
}
}
//按分类搜索
var category= req.query.category;
if(category != undefined && category != ''){
data.categoryId = {
[Op.like]: category
}
}
models.Product.findAndCountAll({
include:[models.Category],
where:data,
order: [['id', 'DESC']],
offset:(currentPage - 1) * pageSize,
limit: parseInt(pageSize)
}).then(resilt => {
res.json({
Products: resilt.rows,
pagination:{
current:parseInt(currentPage),
pageSize:parseInt(pageSize),
total:resilt.count
}
});
})
});
//商品单条
router.get('/:id', function (req, res, next) {
let id = req.params.id;
models.Product.findByPk(id).then(Product => {
res.json({Product: Product})
})
});
//商品新增
router.post('/', function (req, res, next) {
models.Product.create(req.body).then((Product) => {
res.json({Product: Product})
});
});
//商品编辑
router.put('/:id', function (req, res, next) {
models.Product.findByPk(req.params.id).then(Product => {
Product.update(req.body);
res.json({Product: Product})
})
});
//商品删除
router.delete('/:id', function (req, res, next) {
models.Product.findByPk(req.params.id).then(Product => {
Product.destroy();
res.json({msg:'删除成功'})
})
});
//商品批量删除
router.post('/delete_checked',function (req,res,next) {
let checked_ids = req.body.checked_id;
// res.json(checked_ids);
// checked_ids.split(',')
models.Product.destroy({
where:{
id:{
[Op.in]: checked_ids,
}
}
}).then(Product => {
res.json({msg:'删除成功'})
})
})
module.exports = router;
|
// learn 7 Үндсэн операторууд, утга олголт арифметик үйлдэл, typeof
// Үндсэн операторуудын жишээ
var year, yaerJohn, yaerMark;
year = 2019;
ageJhon = 17;
ageMark = 45;
console.log("Энэ жил бол :" + year);
yaerJohn = year - ageJhon;
yaerMark = year - ageMark;
console.log("Жоны төрсөн жил бол " + yaerJohn);
console.log("Таркын төрсөн жил бол " + yaerMark);
// 15 жилийн дараа хэдэн он байх вэ?
var future = year + 15;
console.log(" 15 жилийн дараа " + future + " он байна ");
// 18 жилийн дараа Марк хэдэн настай байх вэ?
var mark = year + 18;
var markagee = mark - yaerMark;
console.log("18 жилийн дараа Марк " + markagee + "настай байна ");
console.log(year * 2); //үржих
console.log(400 % 3); // хуваагаад гарах үлдэгдэлийг гаргах
console.log(2 ** 2); // кавдратаар үржүүлэх
console.log(2 ** 3); // куб үржүүлэх хойн байгаа нь зэрэг нь гэсэн үг
var johnOlder = ageJhon < ageMark; // их баг тэнцүүг олох frue false гэж шалгаж байна
console.log(johnOlder);
console.log(typeof johnOlder); // ямар төрлийг олдог жн joinOlder бол boolen төрөл true , false шалгсан
var name = "boldoo";
console.log(typeof name);
// жн name бол string төрөлтэй байна.
var address;
console.log(typeof address);
// undefined - хоосон
var address = null;
console.log(typeof address);
// object хоосон шүү гэж программистууд бичиж өгдөг
console.log(3 / 2);
console.log(3 / "2");
console.log(3 / "b");
//NAN - Not A Number тоог үсгээр хуваах гээд байна.
console.log(3 / 0);
// infinity - хязгааргүй
|
import React, { Component } from 'react'
import io from 'socket.io-client'
import EntryField from '../components/EntryField'
import ChatBox from '../components/ChatBox'
class App extends Component {
constructor(props){
super(props)
this.state = {
endpoint: 'http://localhost:4001/',
chat: [],
username: 'Anonymous',
usernameField: 'Anonymous',
message: ''
}
this.changeUsername = this.changeUsername.bind(this)
this.handleChange = this.handleChange.bind(this)
this.send = this.send.bind(this)
this.socket = io(this.state.endpoint)
}
changeUsername() {
const payload = {
newName: this.state.usernameField,
oldName: this.state.username,
id: `${Date.now()}${this.state.username}`
}
this.socket.emit('namechange', payload)
this.setState({ username: this.state.usernameField })
}
componentDidMount() {
this.socket.on('message', payload => {
this.setState({ chat: this.state.chat.concat(
<li key={payload.id}>{payload.username}: {payload.message}</li>
)})
})
this.socket.on('namechange', payload => {
this.setState({ chat: this.state.chat.concat(
<li key={payload.id}>{payload.oldName} has changed their name to {payload.newName}</li>
)})
})
}
handleChange(event) {
this.setState({ [event.target.name]: event.target.value })
}
send(event) {
event.preventDefault()
const payload = {
username: this.state.username,
message: this.state.message,
id: `${Date.now()}${this.state.username}`
}
this.socket.emit('message', payload)
this.setState({ message: '' })
}
render() {
return (
<React.Fragment>
<ChatBox chat={this.state.chat}/>
<EntryField
handleChange={this.handleChange}
send={this.send}
username={this.state.usernameField}
changeUsername={this.changeUsername}
message={this.state.message}
/>
</React.Fragment>
);
}
}
export default App;
|
$(document).ready(function(){
$('#logout-btn').click(function () {
$.ajax({
type: "POST",
url: "/logout",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
if (data.status === 'OK') {
window.location.href = "/";
} else {
alert(data.status);
}
}
});
});
});
|
var gTimerResetVegas = null;
var gBgImgs={
'1280x1600': [
{src: "{{ STATIC_URL|escapejs }}img/bg/1280x1600_plane1.jpg"},
{src: "{{ STATIC_URL|escapejs }}img/bg/1280x1600_plane3.jpg"}
],
'1600x1280': [
{src: "{{ STATIC_URL|escapejs }}img/bg/1600x1280_plane1.jpg"},
{src: "{{ STATIC_URL|escapejs }}img/bg/1600x1280_plane3.jpg"}
]
};
if (window.location.hostname.indexOf('dev')>=0) {
var s = (new Date()).getTime().toString();
for (var idx in gBgImgs) {
for (var img in gBgImgs[idx]) {
gBgImgs[idx][img].src = gBgImgs[idx][img].src+'?'+s
}
}
}
function resetVegas() {
if ($(window).width()<776) {
var imgs = gBgImgs['1280x1600'];
} else {
var imgs = gBgImgs['1600x1280'];
}
$('body').vegas({
delay: 5000,
timer: false,
transitionDuration: 1500
})
.vegas('options', 'slides', imgs)
.vegas('shuffle')
.vegas('play');
}
$(document).ready(function() {
gTimerResetVegas = window.setTimeout(resetVegas, 1);
});
$(window).resize(function(){
try { $('body').vegas('pause'); } catch (e) {}
if (gTimerResetVegas !== null) {
window.clearTimeout(gTimerResetVegas);
}
gTimerResetVegas = window.setTimeout(resetVegas, 500);
});
|
$(document).ready(function() {
$('#service-link').click(function(){
$('html, body').animate({scrollTop: $("#services").offset().top}, 'slow');
});
$('#area-link').click(function(){
$('html, body').animate({scrollTop: $("#service-areas").offset().top}, 'slow');
});
$('#portfolio-link').click(function(){
$('html, body').animate({scrollTop: $("#portfolio").offset().top}, 'slow');
});
$('#contact-link').click(function(){
$('html, body').animate({scrollTop: $("#contact").offset().top}, 'slow');
});
$('#first').hover(function() {
document.getElementById('forth').className="unselected";
document.getElementById('first').className='selected';
document.getElementById('second').className="unselected";
document.getElementById('third').className="unselected";
document.getElementById('fifth').className="unselected";
document.getElementById('sixth').className="unselected";
// document.getElementById('forth').style.fontSize='25px';
// document.getElementById('forth').style.fontWeight= "normal";
// document.getElementById('second').style.fontSize='25px';
// document.getElementById('second').style.fontWeight= "normal";
// document.getElementById('third').style.fontSize='25px';
// document.getElementById('third').style.fontWeight= "normal";
// document.getElementById('fifth').style.fontSize='25px';
// document.getElementById('fifth').style.fontWeight= "normal";
// document.getElementById('sixth').style.fontSize='25px';
// document.getElementById('sixth').style.fontWeight= "normal";
document.getElementById('timeline-header').textContent="First Generation";
document.getElementById('timeline-description').textContent="The first generation of the Hemmer family in the construction and real estate industries was started by John M. Hemmer. John M. Construction Company was founded in 1921 on values of old craftsmanship and master builder techniques. In the beginning, this company primarily focused on constructing residential single family homes and small apartment complexes, some of which they owned and rented out."
document.getElementById('timeline-header-two').style.display = "none";
document.getElementById('timeline-description-two').style.display = "none";
document.getElementById('photo-cont').style.backgroundImage = 'url("images/PH1 JMH Truck.jpg")';
});
$('#second').hover(function() {
document.getElementById('first').style.fontSize='25px';
document.getElementById('first').style.fontWeight= "normal";
document.getElementById('forth').style.fontSize='25px';
document.getElementById('forth').style.fontWeight= "normal";
document.getElementById('third').style.fontSize='25px';
document.getElementById('third').style.fontWeight= "normal";
document.getElementById('fifth').style.fontSize='25px';
document.getElementById('fifth').style.fontWeight= "normal";
document.getElementById('sixth').style.fontSize='25px';
document.getElementById('sixth').style.fontWeight= "normal";
document.getElementById('second').style.fontSize='30px';
document.getElementById('second').style.fontWeight= "bold";
document.getElementById('timeline-header').textContent="Second Generation";
document.getElementById('timeline-description').textContent="After World War II, in the late 1940’s the second generation of the Hemmer family began to work for the family company. As the “Baby Boom” started, the company began constructing hospitals, schools, churches and other community facilities."
document.getElementById('timeline-header-two').style.display = "none";
document.getElementById('timeline-description-two').style.display = "none";
document.getElementById('photo-cont').style.backgroundImage = 'url("images/1940_hospital.jpg")';
});
$('#third').hover(function() {
document.getElementById('first').style.fontSize='25px';
document.getElementById('first').style.fontWeight= "normal";
document.getElementById('second').style.fontSize='25px';
document.getElementById('second').style.fontWeight= "normal";
document.getElementById('forth').style.fontSize='25px';
document.getElementById('forth').style.fontWeight= "normal";
document.getElementById('fifth').style.fontSize='25px';
document.getElementById('fifth').style.fontWeight= "normal";
document.getElementById('sixth').style.fontSize='25px';
document.getElementById('sixth').style.fontWeight= "normal";
document.getElementById('third').style.fontSize='30px';
document.getElementById('third').style.fontWeight= "bold";
document.getElementById('timeline-header').textContent="Industrial Size Growth";
document.getElementById('timeline-description').textContent="In the late 1960’s, the Hemmer family purchased the remaining undeveloped industrial land consisting of approximately 1,000 acres in the Northern Kentucky Industrial Park (NKIP) in Florence, KY, which is the largest industrial park in Greater Cincinnati and the second largest industrial park in the State of Kentucky. NKIP comprises approximately 1,200 acres. At that time, they began to construct industrial facilities for various companies."
document.getElementById('timeline-header-two').style.display = "none";
document.getElementById('timeline-description-two').style.display = "none";
document.getElementById('photo-cont').style.backgroundImage = 'url("images/1960_industry.jpg")';
});
$('#forth').hover(function() {
document.getElementById('first').style.fontSize='25px';
document.getElementById('first').style.fontWeight= "normal";
document.getElementById('second').style.fontSize='25px';
document.getElementById('second').style.fontWeight= "normal";
document.getElementById('third').style.fontSize='25px';
document.getElementById('third').style.fontWeight= "normal";
document.getElementById('fifth').style.fontSize='25px';
document.getElementById('fifth').style.fontWeight= "normal";
document.getElementById('sixth').style.fontSize='25px';
document.getElementById('sixth').style.fontWeight= "normal";
document.getElementById('forth').style.fontSize='30px';
document.getElementById('forth').style.fontWeight= "bold";
document.getElementById('timeline-header').textContent="Third Generation";
document.getElementById('timeline-description').textContent="In the 1970’s, as the third generation of the Hemmer family began to work for the family company, they began to develop multi-tenant flexible office-warehouse buildings in NKIP. As the Greater Cincinnati airport began to grow in the 1980’s, the Hemmer family began to invest in industrial land closer to the airport in Northern Kentucky. Then the Hemmer family began to develop multi-tenant flexible office-warehouse buildings near the airport. That continued into 2000’s."
document.getElementById('timeline-header-two').style.display = "none";
document.getElementById('timeline-description-two').style.display = "none";
document.getElementById('photo-cont').style.backgroundImage = 'url("images/1970_florence.png")';
});
$('#fifth').hover(function() {
document.getElementById('first').style.fontSize='25px';
document.getElementById('first').style.fontWeight= "normal";
document.getElementById('second').style.fontSize='25px';
document.getElementById('second').style.fontWeight= "normal";
document.getElementById('third').style.fontSize='25px';
document.getElementById('third').style.fontWeight= "normal";
document.getElementById('forth').style.fontSize='25px';
document.getElementById('forth').style.fontWeight= "normal";
document.getElementById('sixth').style.fontSize='25px';
document.getElementById('sixth').style.fontWeight= "normal";
document.getElementById('fifth').style.fontSize='30px';
document.getElementById('fifth').style.fontWeight= "bold";
document.getElementById('timeline-header').textContent="Adding Medical & Office";
document.getElementById('timeline-description').textContent="Also in the mid-1980’s, the Hemmer family began to acquire land for medical and professional office and other commercial uses. At that time, the Hemmer family acquired the remaining undeveloped commercial land consisting of approximate 150 acres in Thomas More Centre in Crestview Hills, KY, which is adjacent to Thomas More College and Saint Elizabeth Hospital South Campus, in addition to other parcels of commercial land in the Fort Mitchell, KY area. At that time, they began to construct commercial facilities for various companies. Also, development of some of this commercial land for multi-tenant flexible office buildings quickly began to follow."
document.getElementById('timeline-header-two').style.display = "none";
document.getElementById('timeline-description-two').style.display = "none";
document.getElementById('photo-cont').style.backgroundImage = 'url("images/1980_medical.jpg")';
});
$('#sixth').hover(function() {
document.getElementById('first').style.fontSize='25px';
document.getElementById('first').style.fontWeight= "normal";
document.getElementById('second').style.fontSize='25px';
document.getElementById('second').style.fontWeight= "normal";
document.getElementById('third').style.fontSize='25px';
document.getElementById('third').style.fontWeight= "normal";
document.getElementById('fifth').style.fontSize='25px';
document.getElementById('fifth').style.fontWeight= "normal";
document.getElementById('forth').style.fontSize='25px';
document.getElementById('forth').style.fontWeight= "normal";
document.getElementById('sixth').style.fontSize='30px';
document.getElementById('sixth').style.fontWeight= "bold";
document.getElementById('timeline-header').textContent="Focus on Management";
document.getElementById('timeline-description').textContent="Hemmer Management Group (HMG) was formed at the end of 2011 with a primary focus to manage and oversee the Hemmer family commercial real estate portfolio and acquire additional properties. Currently, HMG manages 30 commercial buildings totaling more than 1.2 million square feet with a value in excess of $100 million primarily located in the Greater Cincinnati region."
document.getElementById('timeline-header-two').style.display="block";
document.getElementById('timeline-description-two').style.display="block";
document.getElementById('photo-cont').style.backgroundImage = 'url("images/2000_hemmerhq.jpg")';
});
});
|
exports.PositiveSearchList = [
"sibling",
"councilperson",
"anchorwoman",
"assemblywoman",
"bagwoman",
"bondswoman",
"brakewoman",
"sistren",
"bride's attendant",
"sisterhood",
"sisterly",
"businesswoman",
"camerawoman",
"camerawomen",
"cattlewomen",
"cavewomen",
"cavewoman",
"chairwoman",
"congresswoman",
"cowgirl",
"crewmember",
"doorperson",
"motherhood",
"firewoman",
"forebears",
"forewoman",
"frontwoman",
"goddess",
"grandmothered",
"she",
"her",
"hers",
"she's",
"homemaker",
"jill-of-all-trades",
"journeywoman",
"queen",
"layperson",
"lumberjill",
"honored attendant",
"mailwoman",
"crewed",
"maintenance hole",
"womankind",
"womanly",
"womanmade",
"womanpower",
"markswoman",
"skillful",
"mx",
"mx",
"paper carrier",
"newswoman",
"no-woman's-land",
"noblewoman",
"person not included",
"policewoman",
"repairwoman",
"saleswoman",
"snowperson",
"flight attendant",
"meteorologist"
];
exports.PositiveDatabase = {
"sibling": { "BonusPoints": 1 },
"councilperson": { "BonusPoints": 1 },
"anchorwoman": { "BonusPoints": 1 },
"assemblywoman": { "BonusPoints": 1 },
"bagwoman": { "BonusPoints": 1 },
"bondswoman": { "BonusPoints": 1 },
"brakewoman": { "BonusPoints": 1 },
"sistren": { "BonusPoints": 2 },
"bride's attendant": { "BonusPoints": 1 },
"sisterhood": { "BonusPoints": 1 },
"sisterly": { "BonusPoints": 1 },
"businesswoman": { "BonusPoints": 1 },
"camerawoman": { "BonusPoints": 1 },
"camerawomen": { "BonusPoints": 1 },
"cattlewomen": { "BonusPoints": 1 },
"cavewomen": { "BonusPoints": 1 },
"cavewoman": { "BonusPoints": 1 },
"chairwoman": { "BonusPoints": 1 },
"congresswoman": { "BonusPoints": 1 },
"cowgirl": { "BonusPoints": 1 },
"crewmember": { "BonusPoints": 1 },
"doorperson": { "BonusPoints": 1 },
"motherhood": { "BonusPoints": 1 },
"firewoman": { "BonusPoints": 1 },
"forebears": { "BonusPoints": 1 },
"forewoman": { "BonusPoints": 1 },
"frontwoman": { "BonusPoints": 1 },
"goddess": { "BonusPoints": 1 },
"grandmothered": { "BonusPoints": 2 },
"she": { "BonusPoints": 1 },
"her": { "BonusPoints": 1 },
"hers": { "BonusPoints": 1 },
"she's": { "BonusPoints": 1 },
"homemaker": { "BonusPoints": 1 },
"jill-of-all-trades": { "BonusPoints": 1 },
"journeywoman": { "BonusPoints": 1 },
"queen": { "BonusPoints": 1 },
"layperson": { "BonusPoints": 1 },
"lumberjill": { "BonusPoints": 1 },
"honored attendant": { "BonusPoints": 1 },
"mailwoman": { "BonusPoints": 1 },
"crewed": { "BonusPoints": 1 },
"maintenance hole": { "BonusPoints": 1 },
"womankind": { "BonusPoints": 1 },
"womanly": { "BonusPoints": 1 },
"womanmade": { "BonusPoints": 1 },
"womanpower": { "BonusPoints": 1 },
"markswoman": { "BonusPoints": 1 },
"skillful": { "BonusPoints": 1 },
"mx": { "BonusPoints": 2 },
"mx": { "BonusPoints": 2 },
"paper carrier": { "BonusPoints": 1 },
"newswoman": { "BonusPoints": 1 },
"no-woman's-land": { "BonusPoints": 1 },
"noblewoman": { "BonusPoints": 1 },
"person not included": { "BonusPoints": 1 },
"policewoman": { "BonusPoints": 1 },
"repairwoman": { "BonusPoints": 1 },
"saleswoman": { "BonusPoints": 1 },
"snowperson": { "BonusPoints": 1 },
"flight attendant": { "BonusPoints": 1 },
"meteorologist": { "BonusPoints": 1 }
};
exports.ProblematicSearchList = [
"brother",
"actor",
"stewardess",
"airman",
"alderman",
"alumnus",
"anchorman",
"assemblyman",
"bagboy",
"bondsman",
"boy",
"brakeman",
"brethren",
"bridesmaid",
"brotherhood",
"brotherly",
"busboy",
"businessman",
"cameraman",
"cameramen",
"cattlemen",
"cavemen",
"caveman",
"chairman",
"chambermaid",
"coed",
"comedienne",
"conductress",
"conman",
"congressmen",
"countryman",
"cowboy",
"craftsman",
"crewman",
"dairyman",
"deliveryman",
"doorman",
"fatherhood",
"father",
"fatherland",
"feisty",
"fireman",
"flagman",
"flyboy",
"forefathers",
"foreman",
"freshman",
"frontman",
"funnyman",
"gamesmanship",
"god",
"grandfathered",
"he",
"him",
"his",
"he's",
"handyman",
"headmaster",
"heiress",
"helmsman",
"henchman",
"heroine",
"hostess",
"housewife",
"infantryman",
"jack-of-all-trades",
"johnny-come-lately",
"johnny-on-the-spot",
"journeyman",
"juryman",
"king-size",
"king",
"lady",
"ladies",
"layman",
"legman",
"letterman",
"longshoreman",
"lumberjack",
"maid",
"maid-of-honor",
"maiden",
"mailman",
"majorette",
"man",
"male",
"manned",
"man-sized",
"man-to-man",
"manageress",
"man-eater",
"maneater",
"manhandle",
"manhole",
"man-hours",
"mankind",
"manly",
"manmade",
"manpower",
"marksman",
"masseuse",
"master",
"masterful",
"masterpiece",
"middleman",
"midshipman",
"miss",
"mistress",
"mr",
"murderess",
"newsboy",
"newsman",
"newspaperman",
"no-man's-land",
"nobleman",
"number-one-man",
"number-two-man",
"oarsman",
"odd-man-out",
"oilman",
"paperboy",
"policeman",
"penmanship",
"pitchman",
"playboy",
"postman",
"pressman",
"repairman",
"salesman",
"sculptress",
"seaman",
"seamstress",
"seductress",
"shipmaster",
"showman",
"showmanship",
"snowman",
"song-and-dance-man",
"songstress",
"sorceress",
"spaceman",
"sportsmanlike",
"starlet",
"statesman",
"stewardess",
"switchman",
"taskmaster",
"temptress",
"toastmaster",
"triggerman",
"usherette",
"waiter",
"waitress",
"watchman",
"weatherman",
"workman",
"workmanlike",
"yes-man",
"guy",
"Abrasive",
"Bombshell",
"Bubbly",
"Catty",
"Curvy",
"Dramatic",
"Emotional",
"Gossipy",
"High-maintenance",
"honey",
"Humorless",
"hunny",
"Man-hater",
"Nag",
"Prude",
"Pushy",
"Sassy",
"Shrew",
"Shrill",
"sweetheart",
"sweetie",
"ball-buster",
"Banshee",
"Bitchy",
"bitch",
"Bossy",
"Bridezilla",
"Cougar",
"Ditzy",
"Feminazi",
"Frigid",
"Frumpy",
"Hormonal",
"Hysterical",
"Lippy",
"Man-eater",
"Mannish",
"Slut",
"Slutty",
"Trollop"
];
exports.ProblematicDatabase = {
"brother": { GNReplacement: "sibling", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"actor": { GNReplacement: "actor", FemReplacement: "actress", WarningMessage: "", ProblemPoints: 1 },
"stewardess": { GNReplacement: "flight attendant", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"airman": { GNReplacement: "aviator", FemReplacement: "airwoman", WarningMessage: "", ProblemPoints: 1 },
"alderman": { GNReplacement: "councilperson", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"alumnus": { GNReplacement: "graduate", FemReplacement: "alumna", WarningMessage: "", ProblemPoints: 1 },
"anchorman": { GNReplacement: "anchor", FemReplacement: "anchorwoman", WarningMessage: "", ProblemPoints: 1 },
"assemblyman": { GNReplacement: "assemblyperson", FemReplacement: "assemblywoman", WarningMessage: "", ProblemPoints: 1 },
"bagboy": { GNReplacement: "bagger", FemReplacement: "bagwoman", WarningMessage: "", ProblemPoints: 1 },
"bondsman": { GNReplacement: "bondsperson", FemReplacement: "bondswoman", WarningMessage: "", ProblemPoints: 1 },
"boy": { GNReplacement: "child", FemReplacement: "girl", WarningMessage: "", ProblemPoints: 0 },
"brakeman": { GNReplacement: "brake operator", FemReplacement: "brakewoman", WarningMessage: "", ProblemPoints: 1 },
"brethren": { GNReplacement: "laity", FemReplacement: "sistren", WarningMessage: "", ProblemPoints: 1 },
"bridesmaid": { GNReplacement: "bride's attendant", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"brotherhood": { GNReplacement: "fellowship", FemReplacement: "sisterhood", WarningMessage: "", ProblemPoints: 1 },
"brotherly": { GNReplacement: "kind", FemReplacement: "sisterly", WarningMessage: "", ProblemPoints: 1 },
"busboy": { GNReplacement: "table attendant", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"businessman": { GNReplacement: "businessperson", FemReplacement: "businesswoman", WarningMessage: "", ProblemPoints: 1 },
"cameraman": { GNReplacement: "camera operator", FemReplacement: "camerawoman", WarningMessage: "", ProblemPoints: 1 },
"cameramen": { GNReplacement: "camera operator", FemReplacement: "camerawomen", WarningMessage: "", ProblemPoints: 1 },
"cattlemen": { GNReplacement: "cattle owners", FemReplacement: "cattlewomen", WarningMessage: "", ProblemPoints: 1 },
"cavemen": { GNReplacement: "cave dwellers", FemReplacement: "cavewomen", WarningMessage: "", ProblemPoints: 1 },
"caveman": { GNReplacement: "cave dweller", FemReplacement: "cavewoman", WarningMessage: "", ProblemPoints: 1 },
"chairman": { GNReplacement: "chair", FemReplacement: "chairwoman", WarningMessage: "", ProblemPoints: 1 },
"chambermaid": { GNReplacement: "housekeeper", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"coed": { GNReplacement: "student", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"comedienne": { GNReplacement: "comedian", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"conductress": { GNReplacement: "conductor", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"conman": { GNReplacement: "swindler", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"congressmen": { GNReplacement: "congressperson", FemReplacement: "congresswoman", WarningMessage: "", ProblemPoints: 1 },
"countryman": { GNReplacement: "compatriot", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"cowboy": { GNReplacement: "cowhand", FemReplacement: "cowgirl", WarningMessage: "", ProblemPoints: 1 },
"craftsman": { GNReplacement: "artisan", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"crewman": { GNReplacement: "crewmember", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"dairyman": { GNReplacement: "dairy farmer", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"deliveryman": { GNReplacement: "courier", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"doorman": { GNReplacement: "doorperson", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"fatherhood": { GNReplacement: "parenthood", FemReplacement: "motherhood", WarningMessage: "", ProblemPoints: 1 },
"father": { GNReplacement: "parent", FemReplacement: "mother", WarningMessage: "", ProblemPoints: 0 },
"fatherland": { GNReplacement: "homeland", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"feisty": { GNReplacement: "energetic", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"fireman": { GNReplacement: "firefighter", FemReplacement: "firewoman", WarningMessage: "", ProblemPoints: 1 },
"flagman": { GNReplacement: "flagger", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"flyboy": { GNReplacement: "pilot", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"forefathers": { GNReplacement: "forebears", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"foreman": { GNReplacement: "supervisor", FemReplacement: "forewoman", WarningMessage: "", ProblemPoints: 1 },
"freshman": { GNReplacement: "first-year student", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"frontman": { GNReplacement: "frontperson", FemReplacement: "frontwoman", WarningMessage: "", ProblemPoints: 1 },
"funnyman": { GNReplacement: "comedian", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"gamesmanship": { GNReplacement: "game playing", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"god": { GNReplacement: "deity", FemReplacement: "goddess", WarningMessage: "", ProblemPoints: 1 },
"grandfathered": { GNReplacement: "grandparented", FemReplacement: "grandmothered", WarningMessage: "", ProblemPoints: 1 },
"he": { GNReplacement: "they", FemReplacement: "she", WarningMessage: "", ProblemPoints: 0 },
"him": { GNReplacement: "them", FemReplacement: "her", WarningMessage: "", ProblemPoints: 0 },
"his": { GNReplacement: "theirs", FemReplacement: "hers", WarningMessage: "", ProblemPoints: 0 },
"he's": { GNReplacement: "they're", FemReplacement: "she's", WarningMessage: "", ProblemPoints: 0 },
"handyman": { GNReplacement: "fixer", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"headmaster": { GNReplacement: "principal", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"heiress": { GNReplacement: "heir", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"helmsman": { GNReplacement: "coxswain", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"henchman": { GNReplacement: "partner in crime", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"heroine": { GNReplacement: "hero", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"hostess": { GNReplacement: "host", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"housewife": { GNReplacement: "homemaker", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"infantryman": { GNReplacement: "infantry soldier", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"jack-of-all-trades": { GNReplacement: "handyperson", FemReplacement: "jill-of-all-trades", WarningMessage: "", ProblemPoints: 1 },
"johnny-come-lately": { GNReplacement: "newcomer", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"johnny-on-the-spot": { GNReplacement: "prompt person", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"journeyman": { GNReplacement: "experienced tradesperson", FemReplacement: "journeywoman", WarningMessage: "", ProblemPoints: 1 },
"juryman": { GNReplacement: "juror", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"king-size": { GNReplacement: "huge", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"king": { GNReplacement: "monarch", FemReplacement: "queen", WarningMessage: "", ProblemPoints: 0 },
"lady": { GNReplacement: "", FemReplacement: "woman", WarningMessage: "", ProblemPoints: 1 },
"ladies": { GNReplacement: "", FemReplacement: "women", WarningMessage: "", ProblemPoints: 1 },
"layman": { GNReplacement: "layperson", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"legman": { GNReplacement: "runner", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"letterman": { GNReplacement: "athlete", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"longshoreman": { GNReplacement: "stevedore", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"lumberjack": { GNReplacement: "logger", FemReplacement: "lumberjill", WarningMessage: "", ProblemPoints: 1 },
"maid": { GNReplacement: "house cleaner", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"maid-of-honor": { GNReplacement: "honored attendant", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"maiden": { GNReplacement: "initial", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"mailman": { GNReplacement: "mail carrier", FemReplacement: "mailwoman", WarningMessage: "", ProblemPoints: 1 },
"majorette": { GNReplacement: "drum major", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"man": { GNReplacement: "person", FemReplacement: "woman", WarningMessage: "", ProblemPoints: 0 },
"male": { GNReplacement: "human", FemReplacement: "female", WarningMessage: "", ProblemPoints: 0 },
"manned": { GNReplacement: "crewed", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"man-sized": { GNReplacement: "large", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"man-to-man": { GNReplacement: "face-to-face", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"manageress": { GNReplacement: "manager", FemReplacement: "", WarningMessage: "", ProblemPoints: 5 },
"man-eater": { GNReplacement: "flesh eater", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"maneater": { GNReplacement: "flesh eater", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"manhandle": { GNReplacement: "rough up", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"manhole": { GNReplacement: "maintenance hole", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"man-hours": { GNReplacement: "work hours", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"mankind": { GNReplacement: "humankind", FemReplacement: "womankind", WarningMessage: "", ProblemPoints: 1 },
"manly": { GNReplacement: "humanlike", FemReplacement: "womanly", WarningMessage: "", ProblemPoints: 2 },
"manmade": { GNReplacement: "handmade", FemReplacement: "womanmade", WarningMessage: "", ProblemPoints: 1 },
"manpower": { GNReplacement: "workforce", FemReplacement: "womanpower", WarningMessage: "", ProblemPoints: 1 },
"marksman": { GNReplacement: "sharpshooter", FemReplacement: "markswoman", WarningMessage: "", ProblemPoints: 1 },
"masseuse": { GNReplacement: "massage therapist", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"master": { GNReplacement: "expert", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"masterful": { GNReplacement: "skillful", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"masterpiece": { GNReplacement: "great work of art", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"middleman": { GNReplacement: "intermediary", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"midshipman": { GNReplacement: "sailor", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"miss": { GNReplacement: "mx", FemReplacement: "", WarningMessage: "", ProblemPoints: 3 },
"mistress": { GNReplacement: "companion", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"mr": { GNReplacement: "mx", FemReplacement: "", WarningMessage: "", ProblemPoints: 0 },
"murderess": { GNReplacement: "murderer", FemReplacement: "", WarningMessage: "", ProblemPoints: 5 },
"newsboy": { GNReplacement: "paper carrier", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"newsman": { GNReplacement: "reporter", FemReplacement: "newswoman", WarningMessage: "", ProblemPoints: 2 },
"newspaperman": { GNReplacement: "journalist", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"no-man's-land": { GNReplacement: "uninhabited land", FemReplacement: "no-woman's-land", WarningMessage: "", ProblemPoints: 1 },
"nobleman": { GNReplacement: "noble person", FemReplacement: "noblewoman", WarningMessage: "", ProblemPoints: 1 },
"number-one-man": { GNReplacement: "leader", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"number-two-man": { GNReplacement: "second in command", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"oarsman": { GNReplacement: "rower", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"odd-man-out": { GNReplacement: "person not included", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"oilman": { GNReplacement: "oil executive", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"paperboy": { GNReplacement: "paper carrier", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"policeman": { GNReplacement: "police officer", FemReplacement: "policewoman", WarningMessage: "", ProblemPoints: 1 },
"penmanship": { GNReplacement: "handwriting", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"pitchman": { GNReplacement: "promoter", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"playboy": { GNReplacement: "carouser", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"postman": { GNReplacement: "letter carrier", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"pressman": { GNReplacement: "press operator", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"repairman": { GNReplacement: "repairperson", FemReplacement: "repairwoman", WarningMessage: "", ProblemPoints: 1 },
"salesman": { GNReplacement: "salesperson", FemReplacement: "saleswoman", WarningMessage: "", ProblemPoints: 1 },
"sculptress": { GNReplacement: "sculptor", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"seaman": { GNReplacement: "sailor", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"seamstress": { GNReplacement: "tailor", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"seductress": { GNReplacement: "seducer", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"shipmaster": { GNReplacement: "captain", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"showman": { GNReplacement: "performer", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"showmanship": { GNReplacement: "stage presence", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"snowman": { GNReplacement: "snowperson", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"song-and-dance-man": { GNReplacement: "singer and dancer", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"songstress": { GNReplacement: "singer", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"sorceress": { GNReplacement: "sorcerer", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"spaceman": { GNReplacement: "astronaut", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"sportsmanlike": { GNReplacement: "sporting", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"starlet": { GNReplacement: "star", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"statesman": { GNReplacement: "politician", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"stewardess": { GNReplacement: "flight attendant", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"switchman": { GNReplacement: "switch operator", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"taskmaster": { GNReplacement: "supervisor", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"temptress": { GNReplacement: "enticer", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"toastmaster": { GNReplacement: "toast maker", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"triggerman": { GNReplacement: "shooter", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"usherette": { GNReplacement: "usher", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"waiter": { GNReplacement: "server", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"waitress": { GNReplacement: "server", FemReplacement: "", WarningMessage: "", ProblemPoints: 2 },
"watchman": { GNReplacement: "security guard", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"weatherman": { GNReplacement: "meteorologist", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"workman": { GNReplacement: "worker", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"workmanlike": { GNReplacement: "skillful", FemReplacement: "", WarningMessage: "", ProblemPoints: 1 },
"yes-man": { GNReplacement: "sycophant", FemReplacement: "yes-woman", WarningMessage: "", ProblemPoints: 1 },
"guy": { GNReplacement: "person", FemReplacement: "gal", WarningMessage: "", ProblemPoints: 2 },
"Abrasive": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Abrasive', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Bombshell": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Bombshell', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Bubbly": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Bubbly', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Catty": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Catty', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Curvy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Curvy', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Dramatic": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Dramatic', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Emotional": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Emotional', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Gossipy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Gossipy', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"High-maintenance": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'High-maintenance', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"honey": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'honey', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Humorless": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Humorless', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"hunny": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'hunny', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Man-hater": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Man-hater', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Nag": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Nag', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Prude": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Prude', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Pushy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Pushy', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Sassy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Sassy', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Shrew": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Shrew', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"Shrill": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Shrill', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"sweetheart": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'sweetheart', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"sweetie": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'sweetie', is generally considered offensive in a gendered context. You should re-word this before using this text.", ProblemPoints: 50 },
"ball-buster": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'ball-buster', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Banshee": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Banshee', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Bitchy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Bitchy', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"bitch": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'bitch', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Bossy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Bossy', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Bridezilla": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Bridezilla', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Cougar": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Cougar', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Ditzy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Ditzy', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Feminazi": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Feminazi', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Frigid": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Frigid', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Frumpy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Frumpy', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Hormonal": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Hormonal', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Hysterical": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Hysterical', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Lippy": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Lippy', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Man-eater": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Man-eater', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Mannish": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Mannish', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Slut": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Slut', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Slutty": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Slutty', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 },
"Trollop": { GNReplacement: "", FemReplacement: "", WarningMessage: "The term 'Trollop', is generally offensive, you should not send this text to anyone before removing it.", ProblemPoints: 999999999 }
};
|
/**
* Controller
*/
angular.module('ngApp.email').controller('EmailController', function ($scope, $state, $location, $translate, config, $filter, SessionService, Upload, $timeout, toaster) {
//Set Multilingual for Modal Popup
var setModalOptions = function () {
$translate(['FrayteSuccess', 'Frayte-Error', 'FrayteValidation', 'PleaseSelectValidFile', 'ErrorOccuredDuringUpload', 'UploadedSuccessfully', 'PleaseAttachDocument']).then(function (translations) {
$scope.TitleFrayteSuccess = translations.FrayteSuccess;
$scope.TitleFrayteError = translations.FrayteError;
$scope.TitleFrayteValidation = translations.FrayteValidation;
$scope.TextPleaseSelectValidFile = translations.PleaseSelectValidFile;
$scope.TextPleaseAttachDocument = translations.PleaseAttachDocument;
$scope.TextUploadedSuccessfully = translations.UploadedSuccessfully;
$scope.TextErrorOccuredDuringUpload = translations.ErrorOccuredDuringUpload;
});
};
$scope.uploadDocument = {
CommercialInvoiceFileName: '',
CommercialInvoice: '',
PackingListFileName: '',
PackingList: '',
CustomDocFileName: '',
CustomDoc: ''
};
$scope.whileAddingDoc = function ($files, $file, $event, type) {
if ($file.$error) {
toaster.pop({
type: 'warning',
title: $scope.TitleFrayteValidation,
body: $scope.TextPleaseSelectValidFile,
showCloseButton: true
});
return;
}
if (type === 1) {
$scope.uploadDocument.CommercialInvoiceFileName = $file.name;
$scope.uploadDocument.CommercialInvoice = $file.name;
}
else if (type === 2) {
$scope.uploadDocument.PackingListFileName = $file.name;
$scope.uploadDocument.PackingList = $file.name;
}
else if (type === 3) {
$scope.uploadDocument.CustomDocFileName = $file.name;
$scope.uploadDocument.CustomDoc = $file.name;
}
};
$scope.upload = function (isValid, commercialInvoiceFile, packingListFile, customDocFile) {
if ($scope.uploadDocument.CommercialInvoice === '' &&
$scope.uploadDocument.PackingList === '' &&
$scope.uploadDocument.CustomDoc === '') {
toaster.pop({
type: 'warning',
title: $scope.TitleFrayteValidation,
body: $scope.TextPleaseAttachDocument,
showCloseButton: true
});
return;
}
if (isValid) {
var files = [];
if (commercialInvoiceFile !== undefined && commercialInvoiceFile !== null) {
files.push(commercialInvoiceFile);
}
if (packingListFile !== undefined && packingListFile !== null) {
files.push(packingListFile);
}
if (customDocFile !== undefined && customDocFile !== null) {
files.push(customDocFile);
}
$scope.upload = Upload.upload({
url: config.SERVICE_URL + '/Shipment/UploadFile',
fields: {
CommercialInvoiceFileName: $scope.uploadDocument.CommercialInvoiceFileName,
CommercialInvoice: $scope.uploadDocument.CommercialInvoice,
PackingListFileName: $scope.uploadDocument.PackingListFileName,
PackingList: $scope.uploadDocument.PackingList,
CustomDocFileName: $scope.uploadDocument.CustomDocFileName,
CustomDoc: $scope.uploadDocument.CustomDoc
},
file: files
});
$scope.upload.progress($scope.progress);
$scope.upload.success($scope.success);
$scope.upload.error($scope.error);
}
else {
toaster.pop({
type: 'warning',
title: $scope.TitleFrayteValidation,
body: $scope.TitleFrayteValidation,
showCloseButton: true
});
}
};
$scope.progress = function (evt) {
//console.log('percent: ' + parseInt(100.0 * evt.loaded / evt.total));
//toaster.clear();
//toaster.pop({
// type: 'success',
// title: 'uploading',
// body: 'percent: ' + parseInt(100.0 * evt.loaded / evt.total, 10),
// showCloseButton: true
//});
};
$scope.success = function (data, status, headers, config) {
toaster.pop({
type: 'success',
title: $scope.TitleFrayteSuccess,
body: $scope.TextUploadedSuccessfully,
showCloseButton: true
});
$timeout(function () {
$state.go('home.welcome');
}, 4000);
};
$scope.error = function (err) {
toaster.pop({
type: 'error',
title: $scope.TitleFrayteError,
body: $scope.TextErrorOccuredDuringUpload,
showCloseButton: true
});
};
function init() {
// set Multilingual Modal Popup Options
setModalOptions();
}
init();
});
|
import Maybe from "crocks/Maybe"
import compose from "crocks/helpers/compose"
import curry from "crocks/helpers/curry"
import fanout from "crocks/helpers/fanout"
import merge from "crocks/pointfree/merge"
import propEq from "crocks/predicates/propEq"
import liftA2 from "crocks/helpers/liftA2"
import map from "crocks/pointfree/map"
import ifElse from "crocks/logic/ifElse"
import option from "crocks/pointfree/option"
import bimap from "crocks/pointfree/bimap"
import objOf from "crocks/helpers/objOf"
import assign from "crocks/helpers/assign"
import cycleLeftBy from "./helpers/cycleLeftBy"
import cycleRightBy from "./helpers/cycleRightBy"
import divBy from "./helpers/divBy"
import length from "./helpers/length"
import log from "./helpers/log"
import roundDown from "./helpers/roundDown"
import findIndexOf from "./helpers/findIndexOf"
import viewStateProp from "./helpers/viewStateProp"
import gt from "./helpers/gt"
const abs = x => Math.abs(x)
// slideJumpDirection :: id -> [a] -> Number
const slideJumpDirection = curry(id =>
compose(
option(0),
merge(liftA2(substract)),
map(Maybe.of),
fanout(findIndexOf(propEq("id", id)), findMiddleIndex)
)
)
// cycleSlides :: Number -> [a] -> [a] -> Pair [a]
const cycleSlides = curry(direction =>
ifElse(
gt(0),
compose(
cycleRightBy,
abs
),
compose(
cycleLeftBy,
abs
),
direction
)
)
const jumpToSlide = id =>
viewStateProp("slideshow")
.map(option([]))
.map(slideJumpDirection(id))
.map(cycleSlides)
.ap(viewStateProp("slides").map(option([])))
.ap(viewStateProp("slideshow").map(option([])))
.map(bimap(objOf("slides"), objOf("slideshow")))
.map(merge(assign))
// findMiddleIndex :: [a] -> Number
const findMiddleIndex = compose(
roundDown,
divBy(2),
length
)
// substract :: Number -> Number -> Number
const substract = curry((x, y) => x - y)
// [3,4,5] [2,3,4]
// [2,1,6] -> 6 -> [1,6,5]
//
// [6,5,4,3,2,1,11,10,9]
// ^
const slides = [
{ id: 10, color: "green" },
{ id: 20, color: "blue" },
{ id: 30, color: "red" },
{ id: 40, color: "grey" }
]
const slideshow = [
{ id: 50, color: "yellow" },
{ id: 60, color: "pink" },
{ id: 70, color: "magenta" },
{ id: 80, color: "orange" },
{ id: 90, color: "indigo" }
]
// Fix that when left value is empty doesnt break
log(jumpToSlide(50).evalWith({ slides, slideshow }))
|
import React, { useContext, useState } from 'react';
import {
View,
Image,
TouchableWithoutFeedback,
Keyboard,
KeyboardAvoidingView
} from 'react-native';
import {
TextInput,
Button,
Dialog,
Portal,
Paragraph,
Snackbar
} from 'react-native-paper';
import styles from './Styles';
import { AppContext } from './AppContext';
import firebase from './config';
const LogInScreen = ({ navigation }) => {
const [visible, setVisible] = useState(false);
const {
email,
setEmail,
password,
setPassword,
error,
setError,
visibleSnackbar,
setVisibleSnackbar,
loginData
} = useContext(AppContext);
const onToggleSnackBar = () => {
setVisibleSnackbar(!visibleSnackbar);
};
const hideDialog = () => setVisible(false);
const onLoginPress = () => {
firebase
.auth()
.signInWithEmailAndPassword(email, password)
.then(() => {
navigation.navigate('Home');
loginData(true);
})
.catch((e) => {
setError('Invalid login informations... Please try again.');
setVisible(true);
});
};
return (
<KeyboardAvoidingView
behavior={Platform.OS == 'ios' ? 'padding' : 'height'}
style={{ flex: 1 }}
>
<TouchableWithoutFeedback
onPress={() => {
Keyboard.dismiss();
}}
>
<View
style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}
>
<Image
style={styles.tinyLogo}
source={require('../images/logo.png')}
style={{ width: 220, height: 220 }}
/>
<TextInput
style={styles.input}
label='Email'
keyboardType='email-address'
value={email}
onChangeText={(email) => setEmail(email)}
/>
<TextInput
style={styles.input}
label='Hasło'
secureTextEntry={true}
value={password}
onChangeText={(password) => setPassword(password)}
/>
<Button
onPress={() =>
email === '' && password === ''
? onToggleSnackBar()
: (onLoginPress(), setEmail(''), setPassword(''))
}
style={styles.button}
color='#5b2a83'
labelStyle={{ fontSize: 16 }}
>
Log in
</Button>
<Button
onPress={() => {
navigation.navigate('Registration');
}}
style={styles.button}
color='#5b2a83'
labelStyle={{ fontSize: 16 }}
>
Sign up
</Button>
<Snackbar
visible={visibleSnackbar}
onDismiss={() => setVisibleSnackbar(!visibleSnackbar)}
action={{
label: 'OK',
onPress: () => {
setVisibleSnackbar(!visibleSnackbar);
}
}}
>
Enter informations
</Snackbar>
<Portal>
<Dialog visible={visible} onDismiss={hideDialog}>
<Dialog.Title style={{ color: 'black' }}>Error</Dialog.Title>
<Dialog.Content>
<Paragraph style={{ color: 'black' }}>{error}</Paragraph>
</Dialog.Content>
<Dialog.Actions>
<Button onPress={hideDialog}>Done</Button>
</Dialog.Actions>
</Dialog>
</Portal>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
);
};
export default LogInScreen;
|
var 'x' = 'Hello world';
console.log('x');
|
'use strict';
var slack = require('@slack/client')
var IncomingWebhook = slack.IncomingWebhook;
var WebClient = slack.WebClient;
var RtmClient = slack.RtmClient;
var RTM_EVENTS = slack.RTM_EVENTS;
var CLINET_EVENTS = slack.CLIENT_EVENTS;
const MemoryDataStore = slack.MemoryDataStore;
var token = "xoxb-114804840279-HN1gWgllefg7anVdecONEWdn";
var cli = new WebClient("xoxp-113286865425-113895899667-114575409525-cf8c34d3bb2d70554ce1a7e2444077f3");
var message = {
"text":"hi",
"attachments":[
{
"text":"hello",
"color":"danger1"
}
]
}
let rtm = new RtmClient(token,{
logLevel:"error",
dataStore: new MemoryDataStore(),
autoReconnect: true,
autoMark: true
})
rtm.on(CLINET_EVENTS.RTM.RTM_CONNECTION_OPENED,()=>{
let user = rtm.dataStore.getUserById(rtm.activeUserId);
let team = rtm.dataStore.getTeamById(rtm.activeTeamId);
console.log(rtm);
})
rtm.on(RTM_EVENTS.MESSAGE,(message)=>{
let user = rtm.dataStore.getUserById(message.user);
if(user && !user.is_bot){
rtm.sendMessage("hi there","D3C1G2Z35")
}
})
//rtm.start();
var UI = require('./UI');
function createMessage(){
return {
"response_type":"in_channel",
"attachments":[
{
"title":"The Pennsylvanian",
"title_link":"http://www.apartments.com/the-pennsylvanian-pittsburgh-pa/xtp479p/",
"image_url":"http://images1.apartments.com/i2/bVGCzMYmBCpZRHGpPAeE5RNgwrU894CTRCyOCD1htbM/110/the-pennsylvanian-pittsburgh-pa-primary-photo.jpg",
"actions":[
{
"type":"button",
"name":"previous",
"value":"previous",
"text":"pre",
"style":"default"
},
{
"type":"button",
"name":"like",
"value":"like",
"text":"Like",
"style":"primary"
},
{
"type":"button",
"name":"next",
"value":"next",
"text":"next",
"style":"default"
}
],
"callback_id":"apt.json.view"
}
]
}
}
cli.chat.postMessage("D3C1G2Z35","The following are the cadidate apts",createMessage())
|
const User = require('./userProxy');
exports = module.exports = {
User
}
|
import axios from "axios";
import { GET_DOGS, GET_DOG, GET_ERRORS, DELETE_VACCINATION } from "./types";
export const getDogs = () => dispatch => {
axios
.get(`/api/dogs`)
.then(res =>
dispatch({
type: GET_DOGS,
payload: res.data
})
)
.catch(err =>
dispatch({
type: GET_DOGS,
payload: {}
})
);
};
export const createDogList = (dogData, history) => dispatch => {
axios
.post("/api/dogs/new", dogData)
.then(res => history.push("/dogs"))
.catch(err =>
dispatch({
type: GET_ERRORS,
payload: err.response.data
})
);
};
export const getDog = id => dispatch => {
axios
.get(`/api/dogs/${id}`)
.then(res =>
dispatch({
type: GET_DOG,
payload: res.data
})
)
.catch(err =>
dispatch({
type: GET_DOG,
payload: {}
})
);
};
export const deleteDog = (id, history) => dispatch => {
axios
.delete(`/api/dogs/${id}`)
.then(res => history.push("/dogs"))
.catch(err => dispatch({ type: GET_ERRORS, payload: err.response.data }));
};
export const addVaccin = (id, vaccinData, history) => dispatch => {
axios
.post(`/api/dogs/${id}/vaccination`, vaccinData)
.then(
res =>
dispatch({
type: GET_DOG,
payload: res.data
}),
history.push(`/dog/${id}`)
)
.catch(err =>
dispatch({
type: GET_ERRORS,
payload: err.response.data
})
);
};
export const deleteVaccin = (id, vaccinId) => dispatch => {
axios
.delete(`/api/dogs/${id}/vaccination/${vaccinId}`)
.then(res =>
dispatch({
type: DELETE_VACCINATION,
payload: res.data
})
)
.catch(err => getDog());
};
|
(function() {
'use strict';
angular
.module('listIt')
.controller('registerController', registerController);
registerController.$inject = ['localStorageFactory', '$rootScope', '$state', 'registerFactory'];
/* @ngInject */
function registerController(localStorageFactory, $rootScope, $state, registerFactory) {
var r = this;
r.title = 'registerController';
////////////////
r.addUser = function(registerObject) {
var email = r.email;
var registerObject = {
'UserName': r.userName,
'Email': r.email,
'Password': r.password,
'image': "/images/defaultuser.png"
}
if (r.passwordConfirm !== r.password) {
console.log("wRONG-ooooo");
} else {
registerFactory.getUser(email).then(function(response) {
if (response.data !== null) {
console.log("already in use douche")
} else {
registerFactory.addUser(registerObject).then(function(response) {
console.log(response);
localStorageFactory.setLocalStorage('isSignedIn', true)
$state.go('home')
});
}
})
}
}
r.signout = function() {
socialLoginService.logout();
};
//facebook login function
$rootScope.$on('event:social-sign-in-success', (event, userDetails) => {
r.result = userDetails;
console.log(userDetails.name)
//r.$apply();
r.facebookRegister = function() {
var userName = userDetails.name.replace(/\s/g, '');
var email = userDetails.email;
var password = userDetails.uid;
var imageUrl = userDetails.imageUrl;
var facebookInfo = {
'UserName': userName,
'Email': email,
'FbPassword': password,
'Password': password,
'image': imageUrl
}
registerFactory.getUser(email).then(function(response) {
if (response.data !== null) {
console.log("already in use douche")
} else {
registerFactory.addUser(facebookInfo).then(function(response) {
console.log(response);
localStorageFactory.setLocalStorage('isSignedIn', true)
$state.go('home')
});
}
})
}
r.facebookRegister();
});
$rootScope.$on('event:social-sign-out-success', function(event, userDetails) {
r.result = userDetails;
});
}
})();
|
import React, { useState, useEffect } from 'react';
import { Link, useHistory, useLocation } from 'react-router-dom';
import classes from './WeeklyLeaderboard.module.css';
export const WeeklyLeaderboard = () => {
const history = useHistory();
const location = useLocation();
const queryParams = new URLSearchParams(location.search);
const weekNumberQueryParam = queryParams.get('weekNumber');
const [availableWeeks, setAvailableWeeks] = useState([]);
const [weeklyLeaderboardData, setWeeklyLeaderboardData] = useState([]);
useEffect(() => {
const getAvailableWeeks = async () => {
const response = await fetch(
'http://localhost:8080/getAllWeekNumbersSoFar'
);
const data = await response.json();
setAvailableWeeks(data);
};
getAvailableWeeks();
const getWeeklyLeaderboardData = async () => {
const response = await fetch(
`http://localhost:8080/getWeeklyLeaderboard/${weekNumberQueryParam}`
);
const data = await response.json();
setWeeklyLeaderboardData(data);
};
getWeeklyLeaderboardData();
}, [weekNumberQueryParam]);
const changeFilterHandler = (event) => {
history.push(`${location.pathname}?weekNumber=${event.target.value}`);
};
const selectOptions = availableWeeks.map((weekNumber) => (
<option key={weekNumber} value={weekNumber}>
{weekNumber}
</option>
));
const leaderboardElements = weeklyLeaderboardData.map((player) => (
<tr key={player.username} className={classes.leaderboardRow}>
<td className={classes.username}>
<Link
to={`/viewPicks/${player.username}?weekNumber=${weekNumberQueryParam}`}
>
{player.username}
</Link>
</td>
<td>{`${player.firstName} ${player.lastName}`}</td>
<td>
{player.allPicks[weekNumberQueryParam - 1].weeklyScore.toFixed(1)}
</td>
</tr>
));
return (
<React.Fragment>
<div className={classes.selectWeekDropdown}>
<p>Select week: </p>
<select value={weekNumberQueryParam} onChange={changeFilterHandler}>
{selectOptions}
</select>
</div>
<div className={classes.weekNumberTitle}>
Week {weekNumberQueryParam} Leaderboard
</div>
<table className={classes.leaderboard}>
<thead>
<tr className={classes.leaderboardHeader}>
<th>Username</th>
<th>Name</th>
<th>Weekly score</th>
</tr>
</thead>
<tbody>{leaderboardElements}</tbody>
</table>
</React.Fragment>
);
};
|
import React from "react";
import InventoryReportTable from "../../../components/staff-ui/ad_inventory/InventoryReportTable";
function InventoryReport(){
return(
<div>
<h1>Generation of Reports</h1><br/><br/>
<InventoryReportTable /><br/><br/>
</div>
);
}
export default InventoryReport
|
/**
* This function uses in the object
*/
function getPrice() {
return this.price;
}
/**
* Object with fields and methods
*/
const object = {
price: 45,
getPrice, // bad practice
outerFunction: function () { // анонимная функция
return this.price++;
},
execute: function doAction() {
console.log("hello");
},
method() {
return 2+2 + " This is a method";
},
innerObject: {
price: 56,
getPrice,
innerFunction: function () {
return this.price++;
}
}
};
/**
* psvm
*/
console.log(object.method());
console.log(object.execute());
console.log(object.execute); //
console.log(object.outerFunction); // Смотри разницу!
console.log(object.getPrice());
console.log(object.innerObject.getPrice());
console.log(object.outerFunction());
console.log(object.innerObject.innerFunction());
|
/*Handle requests from background.html*/
function handleRequest(
//The object data with the request params
request,
//These last two ones isn't important for this example, if you want know more about it visit: http://code.google.com/chrome/extensions/messaging.html
sender, sendResponse
) {
if (request.callFunction == "toggleSidebar")
toggleSidebar();
}
chrome.extension.onRequest.addListener(handleRequest);
var selection;
/*Small function wich create a sidebar(just to illustrate my point)*/
var sidebarOpen = false;
function toggleSidebar() {
if(sidebarOpen) {
var el = document.getElementById('resource-sidebar');
$('#resource-sidebar').slideToggle("slow");
el.parentNode.removeChild(el);
sidebarOpen = false;
}
else {
css = "<link rel='stylesheet' type='text/css' href=" + chrome.extension.getURL('base_dom/sidebar-style.css') + ">"
$("head").prepend(css);
image = chrome.extension.getURL('images/re_icon.png');
api_html = "<script type='text/javascript' src=" + chrome.extension.getURL('custom_scripts/first_draft.js') + "></script>"
$("head").prepend(api_html);
var sidebar = document.createElement('div');
sidebar.id = "resource-sidebar";
sidebar.class="drag-hover";
sidebar.innerHTML = "<img id='re-logo' src='" + image + "' />\
<h1>Drop what you found here</h1>";
//.ui-draggable-dragging
$("head").after(sidebar);
styleBar("#" + sidebar.id);
sidebarOpen = true;
//Clean all me up later
$(document).mouseup(function (event) {
// getSelection.toString
//make it so the target from user selection is the only thing that becomes draggable
$(event.target).attr("id", "selected-resource");
selection = document.getSelection().toString();
var dragger = $("#selected-resource").draggable({
helper: "clone",
appendTo: "#resource-sidebar",
zIndex: 100000
});
});
}
};
function styleBar (id) {
$(id).droppable({
activeClass: "drag-highlight",
hoverClass: "drag-hover",
drop: function (event, ui) {
// api(selection);
// alert("dropped")
// send message back to extension.js
$("#resource-sidebar").css("background-color", "#ad650d");
$("#re-logo").css("animation", "rotate-logo 1s linear");
$("#re-logo").css("animation-iteration-count", "infinite");
console.log("Object drop detected");
chrome.runtime.sendMessage({directive: "getUserToken"}, function(token_response) {
console.log("received response: ");
console.log(token_response);
console.log("calling next part of message ");
chrome.runtime.sendMessage({
directive: "saveAsSnippet",
user_token: token_response.user_token,
params: {body: selection, snippetUrl: document.URL, pageTitle: token_response.pageTitle}
}, function(response) {
console.log("received response: ");
console.log(response);
$("#resource-sidebar").css("background-color", "#23ff23");
// after dropping, close bin.
console.log(event.target);
$("#resource-sidebar").delay(1500).slideToggle("fast", function() {
console.log("finished hiding");
console.log(this);
// $(this).remove();
});
});
});
}
})
var bodyText = $(id).children();
$(id).toggle();
$(id).css({"height": "5em"});
$(id).slideToggle("slow");
};
// .id{
// animation: slideIn ease-in-out 1s;
// animation-iteration-count: 1;
// transform-origin: 50% 50%;
// animation-fill-mode:forwards; /*when the spec is finished*/
// -webkit-animation: slideIn ease-in-out 1s;
// -webkit-animation-iteration-count: 1;
// -webkit-transform-origin: 50% 50%;
// -webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
// }
// @keyframes slideIn{0% {transform:translate(-1px,0px);}52% {transform:translate(-194px,1px);}70% {transform:translate(-178px,0px);}100%{transform:translate(-183px,1px);}}
// @-webkit-keyframes slideIn {
// 0% {
// -webkit-transform: translate(-1px,0px) ;
// }
// 52% {
// -webkit-transform: translate(-194px,1px) ;
// }
// 70% {
// -webkit-transform: translate(-178px,0px) ;
// }
// 100% {
// -webkit-transform: translate(-183px,1px) ;
// }
// }
|
import React from "react";
import styled from "styled-components";
import { Link } from "@reach/router";
import { useDispatch, useSelector } from "react-redux";
import { actions, types } from "../../store/actions/inmobiliarias";
const HomeSectionInmobiliarias = styled.section`
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: orange;
.SectionTitle {
margin: 30px 0;
h1 {
font-weight: 300;
font-size: 30px;
}
}
.SectionContent {
ul {
list-style-type: none;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 0;
li {
height: 150px;
width: 150px;
margin: auto 40px;
display: flex;
justify-content: center;
align-items: center;
a {
height: auto;
width: auto;
img {
height: auto;
width: auto;
max-height: 100%;
max-width: 100%;
}
}
}
}
}
`;
const HomeInmobiliarias = () => {
const dispatch = useDispatch();
const { result } = useSelector(state => state.inmobiliarias);
console.log(result);
React.useEffect(() => {
dispatch(actions.getInmobiliarias());
}, []);
return (
<HomeSectionInmobiliarias>
<div className='SectionTitle'></div>
<div className='SectionContent'>
<ul>
{result.map(inmo => (
<li>
<Link to='/inmobiliaria'>
<img src={inmo.logo} alt='Logo Inmobilria Forte' />
</Link>
</li>
))}
</ul>
</div>
</HomeSectionInmobiliarias>
);
};
export default HomeInmobiliarias;
|
const mysql=require("mysql")
const db =mysql.createConnection({
host:"localhost",
user:"kepha",
password:"Password123@#",
database:"BlogPost",
})
module.exports=db;
|
var searchData=
[
['example_20programs_223',['Example Programs',['../example_programs.html',1,'']]]
];
|
import React from 'react';
export default class ListDetail extends React.Component {
constructor() {
super();
}
render() {
return <div>Detailed list view for list with ID {this.props.params.listId}</div>
}
}
|
import React from 'react';
import { ActivityIndicator, KeyboardAvoidingView, ScrollView, StyleSheet, Text, View } from 'react-native';
import { connect } from "react-redux";
import { buscarCep, onChangeField } from "../../actions/CadastroAction";
import EstilosComuns, { VERDE } from '../../assets/estilos/estilos';
import Botao from '../../components/botao/Botao';
import { InputTextComMascara, InputTexto } from '../../components/input/InputTexto';
import { MensagemErro, MensagemInformativa } from "../../components/mensagens/Mensagens";
import { TELA_ENDERECO, TELA_FINALIZA_CADASTRO } from '../../constants/AppScreenData';
import Validador from '../../utilitarios/Validador';
class Endereco extends React.Component {
static navigationOptions = {
title: TELA_ENDERECO.title,
};
constructor(props){
super(props);
}
buscarCep(){
if (new Validador().validaCEP(this.props.numCep)){
this.props.buscarCep(this.props.numCep);
} else {
MensagemInformativa('CEP inválido. CEP deve ter 8 dígitos!');
}
}
isPreencheLogradouro(){
return this.props.idLogradouro === null;
}
dadosValidos(){
if (this.props.idLogradouro > 0 && this.props.numCep != ''){
return true;
} else if (this.props.idLogradouro === null &&
this.props.estado.trim() != '' &&
this.props.cidade.trim() != '' &&
this.props.bairro.trim() != '' &&
this.props.logradouro.trim() != ''){
return true;
} else {
return false;
}
}
salvarEndereco(){
if (this.props.numero != null && this.props.numero.trim() != ''){
if (this.props.numero.replace(/[0-9]/g, '') != ''){
MensagemInformativa('O campo número deve conter somente números!');
return false;
}
}
let cepValido = new Validador().validaCEP(this.props.numCep);
if (this.dadosValidos() && cepValido){
this.props.navigation.navigate(TELA_FINALIZA_CADASTRO.name);
} else if (! cepValido){
MensagemInformativa('CEP inválido. CEP deve ter 8 dígitos!');
} else {
MensagemInformativa('Preencha corretamente os dados do seu endereço e também o complemento!');
}
}
renderIndicator(){
if (this.props.loading){
return <ActivityIndicator style={styles.loading} />
} else {
return <Botao tituloBotao="Buscar CEP" onClick={()=>this.buscarCep()}/>
}
}
render() {
return (
<KeyboardAvoidingView style={[EstilosComuns.container]} keyboardVerticalOffset={100} behavior="padding" enabled>
<ScrollView>
<Text style={EstilosComuns.tituloJanelas}>Endereço</Text>
<View style={styles.inputs}>
<View style={{flexDirection: 'row', justifyContent: 'space-between', padding: 5, alignItems: 'center'}}>
<View style={{flex: 8}}>
<InputTextComMascara placeholder="CEP"
type={InputTextComMascara.MASK_CEP}
value={this.props.numCep}
onChangeText={text =>this.props.onChangeField('numCep', text)}
/>
</View>
<View style={{flex: 2}}>
{this.renderIndicator()}
</View>
</View>
<InputTexto placeholder="Estado" maxLength={40}
onChangeInput={text =>this.props.onChangeField('estado', text)}
value={this.props.estado}
editable={this.isPreencheLogradouro()}
/>
<InputTexto placeholder="Cidade" maxLength={40}
onChangeInput={value => this.onChangeInput(value)}
onChangeInput={text =>this.props.onChangeField('cidade', text)}
editable={this.isPreencheLogradouro()}
value={this.props.cidade}
/>
<InputTexto placeholder="Bairro" maxLength={40}
onChangeInput={value => this.onChangeInput(value)}
onChangeInput={text =>this.props.onChangeField('bairro', text)}
editable={this.isPreencheLogradouro()}
value={this.props.bairro}
/>
<InputTexto placeholder="Logradouro" maxLength={40}
onChangeInput={value => this.onChangeInput(value)}
onChangeInput={text =>this.props.onChangeField('logradouro', text)}
editable={this.isPreencheLogradouro()}
value={this.props.logradouro}
/>
<InputTexto placeholder="Número" maxLength={60}
keyboardType={InputTexto.KEYBOARD_NUMBER}
onChangeInput={text =>this.props.onChangeField('numero', text)}
value={this.props.numero}
/>
<InputTexto placeholder="Complemento" maxLength={40}
onChangeInput={text =>this.props.onChangeField('complemento', text)}
value={this.props.complemento}
/>
</View>
<View style={styles.rodape}>
<Botao tituloBotao='Próximo' onClick={() => this.salvarEndereco()}/>
</View>
</ScrollView>
</KeyboardAvoidingView>
)
};
}
const mapStateToProps = state => ({
numCep: state.cadastroReducer.user.numCep,
estado: state.cadastroReducer.user.estado,
cidade: state.cadastroReducer.user.cidade,
bairro: state.cadastroReducer.user.bairro,
idLogradouro: state.cadastroReducer.user.idLogradouro,
logradouro: state.cadastroReducer.user.logradouro,
numero: state.cadastroReducer.user.numero,
complemento: state.cadastroReducer.user.complemento,
bolExecutado: state.cadastroReducer.bolExecutado,
loading: state.cadastroReducer.loading,
descMensagemFalha: state.cadastroReducer.descMensagemFalha
})
export default connect(mapStateToProps, {onChangeField, buscarCep})(Endereco);
const styles= StyleSheet.create({
inputs : {
flex: 9,
padding: 10
},
rodape: {
flex: 1
},
loading: {
color: VERDE,
}
})
|
$(document).ready(function () {
// This function is to get the data from youtube API and display it on the page
function getResults(query) {
$.getJSON("http://api.giphy.com/v1/gifs/search", {
"api_key": "dc6zaTOxFJmzC",
"rating": "r",
"q": query
},
function (data) {
console.log(data);
// If there are no results it will just empty the list
displaySearchResults(data.data);
}
);
}
function displaySearchResults(giphys) {
var html = "";
$.each(giphys, function (index, giph) {
// append columns to grid
console.log(giph.images.downsized_medium.url);
html = html + "<div class='uk-flex uk-flex-center uk-flex-middle uk-margin-bottom'><a href='" + giph.images.downsized_medium.url +"' target='_blank' class='uk-card uk-margin'><img src='" + giph.images.downsized_medium.url + "'/></a></div>";
});
$("#wrapper .list-wrapper").html(html);
}
$("#search-form").submit(function(event){
event.preventDefault();
getResults($("#query").val());
});
});
/*
html = html + "<li><p>" + giph.images.downsized_medium.url +
"</p><img src='" + giph.images.downsized_medium.url + "'/></li>";
*/
|
/* eslint-disable linebreak-style */
export const JrClub = ['選択', 'ジュニアFC'];
export const JrYouthClub = ['選択', 'ユースFC'];
export const Category = [
'選択',
'U-8',
'U-10',
'U-12',
'U-15',
'U-18',
'U-20',
'トップチーム'
];
export const Position = [
'選択',
'GK',
'LSB',
'RSB',
'LCB',
'RCB',
'CMF',
'LSH',
'RSH',
'FW',
'CFW'
];
export const BloodType = [
'選択',
'A+',
'B+',
'O+',
'AB+',
'A-',
'B-',
'O-',
'AB-'
];
export const Foot = ['選択', 'L', 'R', '両方', 'LR'];
export const JerseySizeUp = ['選択', 'L', 'S', 'LL', 'XL', 'M'];
export const JerseySize = ['選択', 'L', 'S', 'LL', 'XL', 'M'];
export const MainThemes = [
'防衛に対する攻撃',
'ブロック防衛',
'築き上げる',
'キャンターアタック',
'防衛',
'終了',
'押す',
'退却',
'サイドアタック'
];
export const Physical = [
'選択',
'加速度',
'好気性',
'有酸素能力',
'有酸素パワー',
'機敏',
'嫌気性持久力',
'ブロックトレーニング',
'調整',
'動的同心円強度',
'動的偏心強度',
'耐久',
'爆発的な動き',
'広範なインターバルトレーニング',
'ファルトレックトレーニング',
'柔軟性',
'インターバルトレーニング',
'反応速度/アジリティ',
'短距離スプリント容量の繰り返し',
'速度',
'スピード耐久性',
'反応の速度',
'スプリント',
'開始速度',
'静的強度',
'力'
];
export const Technical = [
'選択',
'1対1攻撃',
'1対1防御',
'基本的なボールコントロール',
'チェストコントロール',
'ドリブル',
'仕上げ',
'ゴールキーピングアングル',
'パスとコントロール',
'壁通過'
];
export const Tactical = [
'選択',
'防衛に対する攻撃',
'築き上げる',
'反撃',
'コンパクト防衛ライン',
'カウンタープレス',
'カウンターツーカウンター',
'効果的なブレークスルーの改善',
'押す',
'サイドアタック'
];
export const Grand = ['選択'];
export const CoachName = ['選択'];
export const PhCoachName = ['選択'];
export const Season = ['選択'];
export const Theme = [
'選択',
'防衛に対する攻撃',
'ブロック防衛',
'築き上げる',
'反撃',
'防衛',
'終了',
'押す',
'退却',
'サイドアタック',
'コンパクト防衛ライン',
'カウンタープレス',
'カウンターツーカウンター',
'効果を改善します。ブレークスルー'
];
export const TournamentLeague = [
'選択',
'トーナメント',
'リーグ',
'最後の',
'リーグウィーク1'
];
export const Field = ['選択', 'ウェンブリー'];
export const Weather = ['選択', '雪', '雨', '曇り'];
export const Opposition = ['選択', 'M.市', 'アーセナル'];
export const Seasons = [];
export const ConventionName = [
'選択',
'トーナメント',
'リーグ',
'フレンドリー',
'リーグウィーク1'
];
export const InjuredParts = [
'選択',
'頭',
'面',
'ネック',
'ショルダー',
'鎖骨',
'上腕',
'肘関節',
'前腕部',
'手首関節',
'ハンド',
'指',
'バック',
'脊髄',
'腹部',
'ウエスト',
'臀部',
'股関節',
'大腿',
'膝関節',
'下肢',
'足首関節',
'足',
'ヒール',
'つま先'
];
export const DiseaseName = ['選択', 'メニスカス'];
export const InjuryType = [
'選択',
'あざ',
'捻挫',
'摩耗',
'靭帯破裂',
'筋緊張',
'筋肉の破裂',
'腱断裂',
'破壊',
'転位',
'メニスカス'
];
export const HowInjury = [
'選択',
'相手プレーヤーとの連絡',
'チームメイトとの連絡',
'反則',
'再発',
'着陸に失敗しました',
'取り組む',
'未知の'
];
export const DestinationHospital = ['選択'];
export const DoctorName = ['選択'];
export const InjuredDegree = [
'選択',
'わずか(1〜2週間)',
'適度(2〜8週間)',
'重度(2か月以上)',
'生命のリスク'
];
export const InjuryStatus = ['選択', '腫れ', '内部出血'];
export const RehabilitationStaff = ['選択'];
export const Tournament = ['選択'];
export const GameNo = ['選択', '週目1', '週目2', '週目3'];
export const Venue = ['選択'];
export const ManagerName1 = ['Select'];
export const HCoachName1 = ['Select'];
export const ACoachName1 = ['Select'];
export const PhCoachName1 = ['Select'];
export const KittManagerName1 = ['Select'];
export const ManagerName2 = ['Select'];
export const HCoachName2 = ['Select'];
export const ACoachName2 = ['Select'];
export const PhCoachName2 = ['Select'];
export const KittManagerName2 = ['Select'];
export const Remarks1 = ['Select'];
export const Remarks2 = ['Select'];
export const Remarks3 = ['Select'];
export const Remarks4 = ['Select'];
export const Remarks5 = ['Select'];
export const TeamName = ['Select', 'Arsenal', 'M. City'];
export const Attendance = ['Select', '1 hr', '2 hr', '3 hr', '4 hr', '5 hr'];
export const Absent = ['Select', 'X'];
export const FieldCondition = ['選択', '滑りやすい'];
export const InjuredConvention = ['選択', 'カップトーナメント', 'リーグゲーム'];
export const MedicalStaff = ['選択'];
export const TrainingTheme = [
'選択',
'防衛に対する攻撃',
'ブロック防衛',
'築き上げる',
'反撃',
'防衛',
'終了',
'押す',
'退却',
'サイドアタック',
'1対1攻撃',
'1対1防衛',
'基本的なボールコントロール',
'チェストコントロール',
'ドリブル',
'仕上げ',
'角度を保つ目標',
'パスとコントロール',
'壁通過'
];
export const TrainingLoad = [
'選択',
'高い',
'低',
'MAX',
'100%',
'80-95%',
'60-80%',
'80-100%',
'40-60%',
'90-100%',
'中'
];
export const Intensity = [
'選択',
'高い',
'低',
'MAX',
'100%',
'80-95%',
'60-80%',
'80-100%',
'40-60%',
'90-100%',
'中'
];
export const WUP = [
'選択',
'リラクゼーション',
'ストレッチング',
'静的ストレッチング',
'ダイナミックストレッチング',
'契約緩和ストレッチング'
];
export const SSG = [
'選択',
'4 vs 4 DBL。ボックス',
'5 vs 5 DBL。ボックス',
'8対8ハーフコート',
'クロスゲーム',
'仕上げゲーム',
'シューティングゲーム',
'チャレンジとカバー'
];
export const Game = [
'選択',
'11 vs 11フルコート',
'8対8ボックスツーボックス',
'9対9ボックスツーボックス',
'ブロック防御',
'カウンター',
'押す',
'サイドアタック'
];
export const Months = [
'1月',
'2月',
'3月',
'4月',
'5月',
'6月',
'7月',
'8月',
'9月',
'10月',
'11月',
'12月'
];
export const TacticalTraining = [
'選択',
'押す',
'築き上げる',
'カウンター攻撃'
];
export const TechnicalTraining = [
'選択',
'最初の接触',
'ヘディング',
'撮影',
'通過'
];
export const PowerTraining = [
'選択',
'一括',
'パワーアップ',
'弾道の',
'登録済み'
];
export const StaminaTraining = ['選択', '好気性', '嫌気性'];
export const Period = ['選択', 'オフシーズン', 'プレシーズン', 'シーズン中'];
export const WeekDay = ['選択', '月', '火', '水', '木', '金', '土', '日'];
|
/*global alert: true, console: true, ODSA */
$(document).ready(function() {
"use strict";
// Load the interpreter created by odsaAV.js
var config = ODSA.UTILS.loadConfig();
var interpret = config.interpreter;
// Variables used by "setPosition()"
var canvasWidth = $("#container").width(); // The width of the display
var rowHeight = 70; // Space required for each row to be displayed
var blockWidth = 32; // The width of an array element
// Variables used to keep track of the index and array of
// currently selected element
var mergeValueIndex = -1;
var mergeValueArr = null;
// Settings for the AV
var settings = config.getSettings();
var arraySize = 10,
initialArray = [],
userAnswerValue = [],
userAnswerDepth = [],
av = new JSAV($(".avcontainer"), {settings: settings}),
exercise;
// Stores the various JSAV arrays created for the user to enter their solution
var arrays = {};
av.recorded(); // we are not recording an AV with an algorithm
// Process help button: Give a full help page for this activity
function help() {
window.open("iterationEXHelpPRO.html", "helpwindow");
}
// Process about button: Pop up a message with an Alert
function about() {
alert(ODSA.AV.aboutstring(interpret(".avTitle"), interpret("av_Authors")));
}
// Set click handlers
$("#help").click(help);
$("#about").click(about);
// Process the reset button
function initialize() {
return [userAnswerValue, userAnswerDepth];
}
// Create the model solution, which is used for grading the exercise
// - We must track the value at each horizontal position and vertical
// position (depth) to ensure each element is sorted in the correct order
function modelSolution(jsav) {
var depth = 1;
var modelDepthArr = [];
var modelArrays = {};
initArrays(0, initialArray.length - 1, depth, 1, modelDepthArr, modelArrays, jsav);
var modelArr = jsav.ds.array(initialArray, {
indexed: true,
visible: false
});
modelDepthArr = jsav.ds.array(modelDepthArr, {
indexed: true,
visible: false
});
jsav.displayInit();
var temp = [];
mergeSort(jsav, modelArr, temp, modelDepthArr, 0,
initialArray.length - 1, depth, 1, modelArrays);
return [modelArr, modelDepthArr];
}
// Dynamically and recursively create the necessary arrays
// Initialize all single element arrays to contain the appropriate
// numbers from the initialArray and all other arrays to be empty
function initArrays(left, right, level, column, depthArray, container, jsav) {
var numElements = right - left + 1;
var contents = new Array(numElements);
var isModelAnswer = jsav !== av;
// Set the contents for single element arrays
if (numElements === 1) {
contents = [initialArray[left]];
}
// Dynamically create and position arrays
var arr = jsav.ds.array(contents, {indexed: true, center: false,
layout: "array"});
var id = "array_" + level + "_" + column;
if (isModelAnswer) {
id = "model_" + id;
}
container[id] = arr;
// Set array attributes
arr.element.attr("id", id);
arr.element.attr("data-offset", left);
setPosition(arr, level, column);
// Attach the click handler to the array
if (!isModelAnswer) { // don't attach click handlers for model answer
arr.click(function(index) { clickHandler(this, index); });
}
if (left === right) {
depthArray[left] = level;
return;
}
var mid = Math.floor((left + right) / 2);
// Recurse, passing the appropriate arguments necessary for
// setPosition() to the next function call
initArrays(left, mid, level + 1, 2 * column - 1, depthArray, container, jsav);
initArrays(mid + 1, right, level + 1, 2 * column, depthArray, container, jsav);
}
// Calculate and set the appropriate "top" and "left" CSS values based
// on the specified array's level of recursion, column number and the
// number of elements in the array
// arr - the JSAV array to set the "top" and "left" values for
// level - the level of recursion, the full-size array is level 1
// column - the array's column number in the current row
function setPosition(arr, level, column) {
// Calculate the number of arrays in the current row
var numArrInRow = Math.pow(2, level - 1);
// Calculate the left value of the current array by dividing
// the width of the canvas by twice the number of arrays that should
// appear in that row: (canvasWidth / (2 * numArrInRow))
// Odd multiples of the resulting value define a line through the center
// of each array in the row, found using the formula (2 * column - 1)
// Note: while it is not used, even multiples define the center between
// two consecutive arrays. Since we want the left value rather than the
// center value of each array we calculate the length each array
// (blockWidth * arr.size()), divide this value in half and
// subtract it from the center line to find the left value
var elementLeft = (canvasWidth / (2 * numArrInRow)) * (2 * column - 1) -
(blockWidth * arr.size() / 2),
elementTop = rowHeight * (level - 1);
// Set the top and left values so that all arrays are spaced properly
arr.element.css({left: elementLeft, top: elementTop});
}
// Generate the model answer (called by modelSolution())
function mergeSort(jsav, modelArray, temp, depthArray, l, r, depth, column, container) {
// Record the depth and return when list has one element
if (l === r) {
depthArray.value(l, depth);
return;
}
// Select midpoint
var mid = Math.floor((l + r) / 2);
// Mergesort first half
mergeSort(jsav, modelArray, temp, depthArray, l, mid, depth + 1, column * 2 - 1, container);
// Mergesort second half
mergeSort(jsav, modelArray, temp, depthArray, mid + 1, r, depth + 1, column * 2, container);
// Copy subarray into temp
for (var i = l; i <= r; i++) {
temp[i] = modelArray.value(i);
}
// Do the merge operation back to the array
var i1 = l;
var i2 = mid + 1;
var currArray = container["model_array_" + depth + "_" + column];
var lArray = container["model_array_" + (depth + 1) + "_" + (column * 2 - 1)];
var rArray = container["model_array_" + (depth + 1) + "_" + (column * 2)];
for (var curr = l; curr <= r; curr++) {
if (i1 === mid + 1) { // Left sublist exhausted
jsav.effects.moveValue(rArray, i2 - mid - 1, currArray, curr - l);
modelArray.value(curr, temp[i2++]);
} else if (i2 > r) { // Right sublist exhausted
jsav.effects.moveValue(lArray, i1 - l, currArray, curr - l);
modelArray.value(curr, temp[i1++]);
} else if (temp[i1] < temp[i2]) { // Get smaller
jsav.effects.moveValue(lArray, i1 - l, currArray, curr - l);
modelArray.value(curr, temp[i1++]);
} else {
jsav.effects.moveValue(rArray, i2 - mid - 1, currArray, curr - l);
modelArray.value(curr, temp[i2++]);
}
if (i1 === mid + 1) {
lArray.hide();
}
if (i2 > r) {
rArray.hide();
}
// Update the depth of each number being merged
depthArray.value(curr, depth);
jsav.stepOption("grade", true);
jsav.step();
}
return;
}
// Fixstate method for continuous feedback/fix mode
// Uses the difference between the model and user depth array to determine
// the absolute index and row where a value should be placed.
// Determine the relative destination index and which column the destination array is in.
// Find the destination array's two sublists and the first remaining element in each.
// Compare these values to determine which should be moved to the destination array.
// Call 'clickHandler' with the appropriate calculated values to select the element to move
// and call it again to move it to the destination.
function fixState(modelState) {
// Pull the model array and state variables out of the modelState argument
var modelArr = modelState[0];
var modelDepthArr = modelState[1];
var i;
// Find the absolute index where the correct value
// will be placed and which level it belongs in
var destIndex = 0;
var destDepth = 0;
for (i = 0; i < modelDepthArr.size(); i++) {
if (modelDepthArr.value(i) !== userAnswerDepth.value(i)) {
destIndex = i;
destDepth = modelDepthArr.value(i);
break;
}
}
// Determine the correct column and the relative index where
// the correct answer will be placed
var destColumn = 1;
var left = 0;
var right = modelArr.size() - 1;
var mid = 0;
for (i = 0; i < destDepth - 1; i++) {
mid = Math.floor((left + right) / 2);
if (destIndex <= mid) {
//console.log("left: destIndex (" + destIndex + ") <= mid (" + mid + ")"); // FOR DEBUGGING
right = mid;
destColumn = 2 * destColumn - 1;
} else {
//console.log("right: destIndex (" + destIndex + ") > mid (" + mid + ")"); // FOR DEBUGGING
left = mid + 1;
destColumn = 2 * destColumn;
}
//console.log("destColumn: " + destColumn + ", left: " + left + ", right: " + right); // FOR DEBUGGING
}
destIndex -= left;
//console.log("destDepth: " + destDepth + ", destColumn: " + destColumn + ", destIndex: " + destIndex); // FOR TESTING
// Get the sub arrays from the hash of JSAV arrays
var subArr1 = arrays["array_" + (destDepth + 1) + "_" + (2 * destColumn - 1)];
var subArr2 = arrays["array_" + (destDepth + 1) + "_" + (2 * destColumn)];
// Get the index of the first non-empty element in each sublist
var subArr1Idx = -1;
var subArr2Idx = -1;
for (i = 0; i < subArr1.size(); i++) {
if (subArr1.value(i) !== "") {
subArr1Idx = i;
break;
}
}
for (i = 0; i < subArr2.size(); i++) {
if (subArr2.value(i) !== "") {
subArr2Idx = i;
break;
}
}
var srcArr;
var srcIndex;
if (subArr1Idx > -1 && subArr2Idx > -1) {
if (subArr2.value(subArr2Idx) < subArr1.value(subArr1Idx)) {
// First element of the second sublist is smallest
srcArr = subArr2;
srcIndex = subArr2Idx;
} else {
// First element of the first sublist is smallest
srcArr = subArr1;
srcIndex = subArr1Idx;
}
} else if (subArr1Idx > -1) {
// Right sublist if exhausted
srcArr = subArr1;
srcIndex = subArr1Idx;
} else if (subArr2Idx > -1) {
// Left sublist is exhausted
srcArr = subArr2;
srcIndex = subArr2Idx;
} else {
console.log("Weird stuff happened:\ndestDepth: " + destDepth + ", destColumn: " +
destColumn + ", destIndex: " + destIndex + "\nsubArr1 ID: " +
subArr1.element.attr("id") + ", subArr1: " + subArr1.toString() +
", subArr2 ID: " + subArr2.element.attr("id") + ", subArr2: " + subArr2.toString() +
" subArr1Idx = " + subArr1Idx + ", subArr2Idx = " + subArr2Idx);
return;
}
// Select the element to move
clickHandler(srcArr, srcIndex);
// Select the destination where the element should be moved
var destArr = arrays["array_" + destDepth + "_" + destColumn];
clickHandler(destArr, destIndex);
}
// Click handler for all array elements
function clickHandler(arr, index) {
if (mergeValueIndex === -1) { // No element is currently selected,
// select the current element
// Don't let the user select an empty element
if (arr.value(index) === "") { return; }
arr.highlight(index);
mergeValueArr = arr;
mergeValueIndex = index;
return;
} else if (arr === mergeValueArr && index === mergeValueIndex) {
// Deselect the currently selected element
resetMergeVars();
} else if (arr !== mergeValueArr) { // Decide how to handle selected element
// Don't let the user overwrite a merged element
if (arr.value(index) !== "") { return; }
var arrLevel = getLevel(arr);
var mvaLevel = getLevel(mergeValueArr);
// Ensure the user only merges one level up, not down or too far up
if (arrLevel === mvaLevel - 1 && mergeValueArr !== null &&
mergeValueIndex > -1) {
// Complete merge by setting the value of the current element
// to the stored value
arr.value(index, mergeValueArr.value(mergeValueIndex));
// Clear values the user has already merged
mergeValueArr.value(mergeValueIndex, "");
// Hide arrays once the user empties them
if (mergeValueArr.isEmpty()) {
mergeValueArr.hide();
}
// Update the value in the userAnswerValue array and the depth
// in the userAnswerDepth array
var usrAnsIndex = findUsrAnswerIndex(arr, index);
userAnswerValue.value(usrAnsIndex, arr.value(index));
userAnswerDepth.value(usrAnsIndex, arrLevel);
// Reset the merge variables so we have a clean state for an undo
resetMergeVars();
// Mark this as a step to be graded and a step that can be undone
// (continuous feedback)
exercise.gradeableStep();
} else {
// Deselect the current element, if the user is trying to merge down
// rather than up
resetMergeVars();
}
}
}
// Convenience function to reset the merge variables
function resetMergeVars() {
if (mergeValueArr !== null) {
// Deselect an element after it is merged or if it is clicked again
mergeValueArr.unhighlight(mergeValueIndex);
}
// Reset so the next element can be merged
mergeValueArr = null;
mergeValueIndex = -1;
}
//***************************************************************************
//************* Convenience Functions ***********
//***************************************************************************
// Given an array and an index in that array, calculates the
// corresponding position in the userAnswerValue array
// - The index (starting at 0) within a given row (level) of the
// currently selected element
// - Used to update the userAnswerValue array each time an element is moved
function findUsrAnswerIndex(arr, idx) {
return parseArrData(arr)[2] + idx;
}
// Return the recursion level of the given array
// Used to ensure a user only merges an element into an array
// directly above the current one, can't merge down or too far up
function getLevel(arr) {
return parseArrData(arr)[0];
}
// Parse the level, column and left offset from the specified array's attributes
// - Expects array IDs matching the following pattern: "array_\d+_\d+"
// where the first number is the level and the second number is the column
// [see setPosition()]
// - Expects array to have a "data-offset" attribute which is the offset
// between indices in given array and indices in userAnswerValue array
function parseArrData(arr) {
var id = arr.element.attr("id");
var args = id.split("_");
var level = parseInt(args[1], 10);
var column = parseInt(args[2], 10);
var arrOffset = 0;
if (typeof arr.element.attr("data-offset") !== "undefined") {
arrOffset = parseInt(arr.element.attr("data-offset"), 10);
}
return [level, column, arrOffset];
}
// Using continuous mode slows the exercise down considerably
// (probably because it has to check that all the arrays are correct)
exercise =
av.exercise(
modelSolution,
initialize,
{
compare: [{class: "jsavhighlight"}, {}],
controls: $(".jsavexercisecontrols"),
fix: fixState,
modelDialog: {width: 780}
}
);
exercise.reset();
});
|
import Aluno from '../models/Aluno';
import CursoAluno from '../models/CursoAluno';
class AlunoController {
async index(req, res) {
const alunos = await Aluno.findAll()
res.json(alunos);
}
async read(req, res) {
// TODO
}
async create(req, res) {
const novo = req.body;
try {
let aluno = await Aluno.create(novo);
res.json(aluno);
}catch(erro) {
console.log(erro);
return res.status(400).json({
error: erro
});
}
}
async update(req, res) {
const novo = req.body;
try {
let aluno = await Aluno.findByPk(novo.id);
aluno.update(novo);
res.json(aluno);
}catch(erro) {
console.log(erro);
return res.status(400).json({
error: erro
});
}
}
async delete(req, res) {
const novo = req.params;
try {
let aluno = await Aluno.findByPk(novo.id);
aluno.destroy();
//DELETA TODAS OS REGISTROS DA TABELA curso_pessoa PARA O ALUNO DELETADO
let cursos_aluno = await CursoAluno.findAll();
cursos_aluno.forEach(element => {
if(element.id_pessoa == aluno.id)
element.destroy();
});
res.json(aluno);
}catch(erro) {
console.log(erro);
return res.status(400).json({
error: erro
});
}
}
}
export default new AlunoController();
|
angular.module('mappler.controllers.map.mapController', [])
.controller('MapCtrl', [
'$scope',
'$rootScope',
'$state',
'$filter',
'$ionicLoading',
'$ionicModal',
'$timeout',
'$stateParams',
'$ionicHistory',
'$ionicScrollDelegate',
'Constants',
'RestHttpService',
function($scope, $rootScope, $state, $filter, $ionicLoading, $ionicModal, $timeout, $stateParams, $ionicHistory, $ionicScrollDelegate, Constants, RestHttpService) {
// 기본 지도 종류(google, open street, nave, daum 등)
$scope.blogDefaultMapType = $scope.blogDftSettingInfo.mapDftSettingInfo.blogDefaultMapType;
$scope.templateUrl = "";
/*$ionicLoading.show({
template: $filter('translate')('data_loading_msg')
});*/
// 지도설정에 대한 값을 서버에서 가지고 온 것에 대한 이벤트 핸들러
$scope.$on('event:getBlogDftSettingInfoFromServerSuccess', function(event, blogDftSettingInfo) {
$scope.blogDefaultMapType = blogDftSettingInfo.mapDftSettingInfo.blogDefaultMapType;
if($scope.blogDefaultMapType == 'google'){
$scope.templateUrl = "template/mappler/map/blogGoogleMap.tpl.html";
}else if($scope.blogDefaultMapType == 'daum'){
$scope.templateUrl = "template/mappler/map/blogDaumMap.tpl.html";
}
});
}
]);
|
import React from 'react';
import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import '@testing-library/jest-dom';
import ChosenMovie from '../components/ChosenMovie';
import { Router } from 'react-router-dom';
import { createMemoryHistory } from 'history';
import { _movieId, _movie, _video } from '../test/mockData/chosenMovieMockData';
import { apiCalls } from '../apiCalls';
jest.mock('../apiCalls');
describe('ChosenMovie Component', () => {
beforeEach(() => {
apiCalls.selectMovie.mockResolvedValueOnce(_movie);
apiCalls.selectVideo.mockResolvedValueOnce(_video);
})
it('should display loading', async () => {
const history = createMemoryHistory();
render(<Router history={history}><ChosenMovie match={_movieId} /></Router>)
const loadingScreen = screen.getByText('Loading...');
await waitFor(() => expect(loadingScreen).toBeInTheDocument());
})
it('should call selectMovie', async () => {
const history = createMemoryHistory();
render(<Router history={history}><ChosenMovie match={_movieId} /></Router>)
await waitFor(() => expect(apiCalls.selectMovie).toHaveBeenCalledTimes(1));
})
it('should call selectVideo', async () => {
const history = createMemoryHistory();
render(<Router history={history}><ChosenMovie match={_movieId} /></Router>)
await waitFor(() => expect(apiCalls.selectVideo).toHaveBeenCalledTimes(1));
})
it('should render correctly', async () => {
const history = createMemoryHistory();
render(<Router history={history}><ChosenMovie match={_movieId} /></Router>)
const title = await waitFor(() => screen.getByText('Mulan'));
const releaseDate = await waitFor(() => screen.getByText('Sep 03, 2020'));
const returnBtn = await waitFor(() => screen.getAllByRole('img')[0]);
const overView = await waitFor(() => screen.getByTestId('overview'));
const genre = await waitFor(() => screen.getByTestId('genre'));
const budget = await waitFor(() => screen.getByText('Budget: $200M'));
const revenue = await waitFor(() => screen.getByText('Revenue: $57M'));
const runTime = await waitFor(() => screen.getByText('115min.'));
const tagline = await waitFor(() => screen.getByText('Tagline: this is a tagline'));
const rating = await waitFor(() => screen.getByText('4.9'));
expect(title).toBeInTheDocument();
expect(releaseDate).toBeInTheDocument();
expect(returnBtn).toBeInTheDocument();
expect(overView).toBeInTheDocument();
expect(genre).toBeInTheDocument();
expect(budget).toBeInTheDocument();
expect(revenue).toBeInTheDocument();
expect(runTime).toBeInTheDocument();
expect(tagline).toBeInTheDocument();
expect(rating).toBeInTheDocument();
})
it('should return home page upon clicking back button', async () => {
const history = createMemoryHistory();
render(<Router history={history}><ChosenMovie match={_movieId} /></Router>);
const returnBtn = await waitFor(() => screen.getByTestId('return-btn'));
userEvent.click(returnBtn);
expect(history.location.pathname).toBe('/');
})
})
|
//Import the Express Library.
const express = require("express");
//Create an instance of router.
const app = express.Router();
//Import routes.
const users = require("./api/users");
app.get("/", (req, res) => {
res.json("Welcome to API Server");
});
app.use("/users", users);
//Export the app.
module.exports = app;
|
"use strict";
let studentGrades = [
{ name: 'Student A', grade: 90.1 },
{ name: 'Student B', grade: 92 },
{ name: 'Student C', grade: 91.8 },
{ name: 'Student D', grade: 95.23 },
{ name: 'Student E', grade: 91.81 },
];
function compareGrades(student1, student2) {
if (student1.grade < student2.grade) {
return 1;
} else if (student1.grade > student2.grade) {
return -1;
} else {
return 0;
}
}
console.log(studentGrades.sort(compareGrades));
// Or, inline style
// studentGrades.sort((student1, student2) => {
// if (student1.grade < student2.grade) {
// return 1;
// } else if (student1.grade > student2.grade) {
// return -1;
// } else {
// return 0;
// }
// });
|
/**
* Created by Wwei on 2016/9/1.
*/
Ext.define('Admin.view.photo.PhotoForm', {
extend: 'Ext.window.Window',
xtype: 'photoform',
title: '商品添加',
requires: [
'Admin.view.photo.PhotoFormController',
'Ext.form.Panel',
'Ext.form.field.ComboBox',
'Ext.form.field.Text',
'Ext.form.field.TextArea',
'Ext.layout.container.Fit',
'Ext.ux.TreePicker'
],
layout: 'fit',
modal: true,
height: 620,
width: 370,
controller: 'photoform',
viewModel: {
links: {
thePhoto: {
type: 'photo.Photo',
create: true
}
},
data: {
roleComboQueryMode: 'remote'
}
},
items: [{
flex: 1,
xtype: 'form',
reference: 'form',
modelValidation: true,
defaults: {
labelAlign: 'left',
margin: 10,
msgTarget: 'side'
},
items: [{
xtype: 'treepicker',
fieldLabel: '父目录',
useArrows: true,
emptyText: '父目录与类型对应',
width: 300,
labelWidth: 50,
scrollable:'y',
maxPickerHeight: 500,
margin: '0 0 0 0',
displayField: 'text',
name: 'text',//这里传的不是string类型的text,而是int类型的parentId
store: Ext.create('Ext.data.TreeStore', {
root: {
id: 0,
text: '百胜'
},
proxy: {
type: 'ajax',
api: {
read: Common.Config.requestPath('Photo', 'queryPhotoArborescence')
},
reader: {
type: 'json',
rootProperty: 'data'
}
}
}),
bind: '{thePhoto.type}'
},{
xtype: 'combo',
store: 'brand.UserBrand',
name: 'brandId',
fieldLabel: '品牌名称',
valueField: 'id',
displayField: 'name',
emptyText: '请选择品牌名称'
},{
xtype: 'textfield',
name: 'id',
fieldLabel: '商品id',
hidden: true,
bind: '{thePhoto.id}'
},{
xtype: 'textfield',
name: 'model',
fieldLabel: '模型',
bind: '{thePhoto.model}'
},{
xtype: 'textfield',
name: 'type',
fieldLabel: '类型',
bind: '{thePhoto.type}'
},{
xtype: 'filefield',
name: 'photoUrl',
fieldLabel: '图片Url',
labelWidth: 50,
msgTarget: 'side',
anchor: '100%',
accept: 'png',
buttonText: '选择PNG图片...',
bind: '{thePhoto.photoUrl}',
validator: function (value) {
if(value==''){
return true;
}
var arr = value.split('.');
if (arr[arr.length - 1] == 'png' || arr[arr.length - 1] == 'PNG') {
return true;
} else {
return '必须选择png格式的图片!';
}
}
},{
xtype: 'filefield',
name: 'dwgUrl',
fieldLabel: 'CADUrl',
labelWidth: 50,
msgTarget: 'side',
anchor: '100%',
accept: 'dwg',
buttonText: '选择dwg文件...',
bind: '{thePhoto.dwgUrl}',
validator: function (value) {
if(value==''){
return true;
}
var arr = value.split('.');
if (arr[arr.length - 1] == 'dwg' || arr[arr.length - 1] == 'DWG') {
return true;
} else {
return '必须选择dwg格式的文件!';
}
}
},{
xtype: 'textfield',
name: 'name',
fieldLabel: '商品名称',
bind: '{thePhoto.text}'
},{
xtype: 'textfield',
name: 'photoNumber',
fieldLabel: '编号',
bind: '{thePhoto.photoNumber}'
},{
xtype: 'textfield',
name: 'condition',
fieldLabel: '品相',
bind: '{thePhoto.condition}'
},{
xtype: 'textfield',
name: 'specification',
fieldLabel: '规格',
bind: '{thePhoto.specification}'
},{
xtype: 'textfield',
name: 'versionName',
fieldLabel: '版本名称',
bind: '{thePhoto.versionName}'
}]
}],
buttons: [{
text: '确定',
handler: 'editPhoto'
}, {
text: '取消',
handler: 'closeWindow'
}]
});
|
const separator = '/';
/**
* @param {string} navigator
* @param {string} scene
* @return {string}
*/
export const toId = (navigator, scene) =>
navigator + (scene ? separator + scene : '');
/**
* @param {string} id
*/
export const fromId = id => id.split(separator);
|
// ==UserScript==
// @name tarea3
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://htmlpreview.github.io/?https://github.com/Villa10n/tarea-3-criptografia/blob/main/index.html
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js
// ==/UserScript==
(function() {
'use strict';
const mensaje_cifrado = document.getElementsByClassName('AES-ECB')[0].id;
console.log(mensaje_cifrado);
})();
|
var songs;
var currentSong = 0;
function playNext() {
SC.stream('/tracks/' + 26606572 ).then(function(player){
console.log(player);
player.play();
player.on("finish", function(){
currentSong += 1;
playNext();
});
});
}
SC.initialize({
client_id: "febddc9c5bca2119f90c182ca27c026f"
})
SC.get('/tracks',{
q: "Childish Gambino"
}).then(function(player){
console.log(player);
player.play();
});
SC.stream('/tracks/' + 116933280 ).then(function(player){
console.log(player);
player.play();
player.on("finish", function(){
console.log("Done-zo");
});
});
|
import React from 'react';
import { Link } from 'react-router-dom';
/** @jsx jsx */
import { jsx, css } from '@emotion/core'
const navStyle = css`
padding: 0;
list-style-type: none;
li {
display: inline;
margin: 0.5em;
}
`;
class Navigation extends React.Component {
render() {
return (
<nav>
<ul css={navStyle}>
<li><Link to="/">Home</Link></li>
<li><Link to="/profile">MyProfile</Link></li>
</ul>
</nav>
)
}
}
export default Navigation
|
import React from 'react';
import UserRoutineHabitMain from './userRoutineHabitMain';
import UserRoutineHabitRequest from './userRoutineHabitRequest';
import UserRoutineHabitForm from './userRoutineHabitForm';
import UserRoutineHabitSent from './userRoutineHabitSent';
const UserRoutineHabit = props => {
const [view, setView] = React.useState('main');
const [routine, setRoutine] = React.useState({});
const createPage = () => {
let page = null;
switch (view) {
case 'main':
page = <UserRoutineHabitMain goBackView={props.setView} setView={setView} setRoutine={setRoutine}
userId={props.userId} routineId={props.routineId} openSideBar={props.openSideBar} subHeaderTitle={routine.routineName}
isOpen={props.isOpen}/>;
break;
case 'request':
page = <UserRoutineHabitRequest routineName={routine.routineName} setView={setView}/>;
break;
case 'form':
page = <UserRoutineHabitForm routineName={routine.routineName}
setView={setView} routineId={routine.routineId} userId={props.userId}/>;
break;
case 'sent':
page = <UserRoutineHabitSent setView={setView}/>;
}
return page;
};
return (
<>
{createPage()}
</>
);
};
export default UserRoutineHabit;
|
import Reforma from '@reforma/core'
export function createType() {
return Reforma.createType({
name: 'Profile',
fields: {
id: Reforma.integer.id,
firstName: Reforma.string,
lastName: Reforma.string
}
})
}
|
import React from 'react'
import { StyledStartButton } from './styles/StyledStartButton'
const BackgroundButton =({onClick, background}) => (
<StyledStartButton onClick={onClick}>{background}</StyledStartButton>
)
export default BackgroundButton
|
$(document).ready(function () {
$(".player1 .first-pokemon").submit(function (event) {
event.preventDefault();
$.ajax({
type: 'GET',
dataType: 'json',
data: { searchQuery: $(".first-chosen-pokemon").val() },
url: $(this).data('request-url'),
success: function (result) {
console.log(result);
$(".player1 .result").text("");
result.moves.forEach(function (thisMove) {
$(".player1 .result").append("<h5 class='col-sm-3'>" + thisMove.move.name + "</h5>");
});
$(".player1 .img-result").html("<img class='center-image' src='" + result.sprites.front_shiny + "' />");
$(".player1 .result-name").html("<h1 class='text-center'>" + result.name + "</h1>");
}
});
});
$(".second-pokemon").submit(function (event) {
event.preventDefault();
$.ajax({
type: 'GET',
dataType: 'json',
data: { searchQuery: $(".second-chosen-pokemon").val() },
url: $(this).data('request-url'),
success: function (result) {
console.log(result);
$(".player2 .result").text("");
result.moves.forEach(function (thisMove) {
$(".player2 .result").append("<h5 class='col-sm-3'>" + thisMove.move.name + "</h5>");
});
$(".player2 .img-result").html("<img class='center-image' src='" + result.sprites.front_shiny + "' />");
$(".player2 .result-name").html("<h1 class='text-center'>" + result.name + "</h1>");
}
});
});
});
|
import add from 'ramda/src/add'
import always from '../signals/processes/always'
import pipe from '../signals/pipe'
import fold from '../signals/processes/fold'
export default pipe(
always(1),
fold(add, 0)
)
|
window.onload = init;
function loadJSON(link, callback) {
var req = new XMLHttpRequest();
req.overrideMimeType("application/json");
req.open('GET', link, true);
req.onreadystatechange = function () {
if (req.readyState == 4 && req.status == "200") {
callback(JSON.parse(req.responseText));
}
};
req.send(null);
}
function td(text) {
let data = document.createElement("td");
data.appendChild(document.createTextNode(text));
return data;
}
function create_games(games, team) {
let row = document.createElement("td");
for (const game of games) {
let span = document.createElement("span");
span.appendChild(document.createTextNode(game_text(game)));
span.classList.add('game');
span.classList.add(game.status);
span.id = `game-${game.id}`;
span.team = team;
row.appendChild(span);
}
return row;
}
function game_text(game) {
let s;
if (game.location == 'away') {
s = 'at ';
} else {
s = 'vs ';
}
if (game.rank > 0) {
s = s.concat(game.rank, ' ');
}
s = s.concat(game.opponent);
if (game.status == 'win' || game.status == 'loss') {
s = s.concat(' ', game_score(game));
} else if (game.status == 'future') {
s = s.concat(', ', output_time(game.date));
} else {
loadJSON(`https://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard/${game.id}`, loadScore);
}
return s;
// return 'at 22 Miami L 64-66';
}
function game_score(game) {
const letter = game.status == 'win' ? 'W' : 'L';
return `${letter} ${game.team_score}-${game.opponent_score}`;
}
function output_time(s) {
const date = new Date(s);
const day = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][date.getDay()];
const hour = (date.getHours() - 1) % 12 + 1;
let time;
if (date.getMinutes() == 0) {
time = `${hour}`;
} else if (date.getMinutes() < 10) {
// const time = hour.concat(':0', date.minute);
time = `${hour}:0${date.getMinutes()}`;
} else {
// const time = hour.concat(':', date.minute);
time = `${hour}:${date.getMinutes()}`;
}
const noon = date.getHours() < 12 ? 'am' : 'pm';
return `${day} ${time}${noon}`;
}
function game_time(status, tied) {
const half = status.period;
if (status.clock == 0) {
if (half == 1) {
return 'halftime';
} else {
if (tied) {
return 'end of regulation'
} else {
return 'final';
}
}
} else {
const h = half == 1 ? '1st' : '2nd';
return `${status.displayClock} in ${h}`;
}
}
function loadScore(json) {
let span = document.getElementById(`game-${json.id}`);
let left = span.innerText.split('\u{200B}')[0];
const [a, b] = json.competitions[0].competitors;
console.log("LS", json);
let score;
if (a.id == span.team) {
score = `${a.score}-${b.score}`;
} else {
score = `${b.score}-${a.score}`;
}
const time = game_time(json.status, a.score == b.score);
span.innerText = `${left}\u{200B} ${score}, ${time}`;
if (time != 'final') {
setTimeout(() => {
loadJSON(`https://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard/${json.id}`, loadScore);
}, 15 * 1000);
console.log("LS ST", new Date());
}
}
const game1 = {
opponent: 'Miami',
rank: 22,
location: 'away',
status: 'loss',
team_score: 70,
opponent_score: 75,
};
const game2 = {
opponent: "Albany",
rank: 0,
location: 'home',
status: 'future',
date: '2022-12-30T22:00:00Z',
// day: 'Fri',
// time: '9pm',
}
function setRankings(json) {
let table = document.getElementById('table');
const games = json.games.data;
for (const team of json.ranking.data) {
console.log(team);
let row = document.createElement('tr');
row.appendChild(td(team.name));
if (team['votes-first'] > 0) {
row.appendChild(td(`${team.rank} (${team['votes-first']})`));
} else if (team.rank > 0) {
row.appendChild(td(team.rank));
} else {
row.appendChild(td('NR'));
}
row.appendChild(td(team.points));
row.appendChild(td(team.record));
row.appendChild(create_games(games[team.id], team.id));
table.appendChild(row);
}
}
function init() {
loadJSON('https://yvsxq1.deta.dev/ranking', setRankings)
}
|
// Inicialiando o arquivo JavaScript com a leitura dos elementos do documento HTML
$(document).ready(function() {
// Na linha abaixo selecionamos o elemnto do nosso HTML que tem a classe 'btn-save' e monitoramos o clique do mouse sobre ele
$('.btn-login').click(function(e) {
// A função preventDefault() trabalha atuando em cima de limpar as funcionalidades do elemento que está sendo monitorado o click
e.preventDefault()
// Nesta linha será criado uma variável local "let" para armazenar os dados que serão coletados do formulário do modal
// Vale resaltar que a função serialize() do JavaScript tem com objetivo rastear todo o formulário e criar um array de transição de dados
let dados = $('#form-login').serialize()
// Aqui será executado o AJAX que é o meio de transição de dados em segundo plano, sendo que é graças a ele que podemos
// transitar dados entre o HTML e PHP sem estar explícito em primeiro plano, para ser a transição dos dados será
// necessário abrir o DEBUG do navegar o acompanhar tudo na aba Network
$.ajax({
type: 'POST', // A primeira informação que dados ao Ajax é como o dados será transmitidos/recebidos [POST / GET]
dataType: 'json', // Depois demonstramos como desejamos que os dados transitem sendo que pode ser por Json ou XML, porém XML caiu em desuso
assync: true, // Demonstramos para o AJAX como queremos que tudo isso ocorra ==> Assincrono executado em paralelo com o front-end e outro serviços
data: dados, // Aqui informamos onde estão os dados que seráo transmitidos
url: 'src/usuario/modelo/login-usuario.php', //Aqui informamos para onde será transmitido os dados
success: function(dados) { // Aqui criamos a função que receberá o retorno dos dados e os tratamos
Swal.fire({ // Inicialização do SweetAlert
title: 'SysBlog', // Título da janela SweetAler
text: dados.mensagem, // Mensagem retornada do microserviço
type: dados.tipo, // Tipo de retorno [success, info ou error]
confirmButtonText: 'OK'
})
if (dados.tipo == "success") {
$('#identify').empty()
localStorage.setItem('idusuario', dados.dados.idusuario)
localStorage.setItem('nome', dados.dados.nome)
$('#identify').append(localStorage.getItem('nome'))
}
}
})
})
})
|
import Toggle from 'material-ui/Toggle'
import createComponent from './createComponent'
export default createComponent(
Toggle,
({ input: { onChange, value, ...props } }) => ({
...props,
toggled: value ? true : false,
onToggle: onChange
})
)
|
function UserService($http) {
this.getUser = function(name) {
return $http.get('http://0.0.0.0:8882/user/' + name);
};
}
|
const conInscDataMapper = require('../db/conInscDataMapper');
module.exports = {
connectionUser: async (request,response) => {
const body = request.body;
const user = await conInscDataMapper.findUser(body);
if (!user) {
response.status(404).json({isLogged:false, error:"User not found"});
return;
}
if (result.password !== user.password) {
response.status(401).json({isLogged:false, error:"Bad password"});
return;
}
response.json({isLogged: true , message:" OK User and Password"});
//creer une session
request.session.login = result.mail;
//pour rediriger vers la dernière page visitée
//response.redirect(request.session.history.filter(page => page !== '/login').pop());
},
insertUserPro: async (request, response) => {
const result = request.body;
console.log(result);
const newBillAddress = await conInscDataMapper.addBillAddress(result);
console.log("ID : " , newBillAddress);
await conInscDataMapper.addUserPro(result,newBillAddress)
response.status(201).json({isLogged: true });
//creer une session
request.session.login = result.mail;
response.redirect('/');
//pour rediriger vers la dernière page visitée
//response.redirect(request.session.history.filter(page => page !== '/login').pop());
},
insertUserPart: async (request, response,next) => {
const result = request.body;
console.log(result);
const newBillAddress = await conInscDataMapper.addBillAddress(result);
console.log("ID : " , newBillAddress);
await conInscDataMapper.addUserPart(result,newBillAddress)
response.status(201).json({isLogged: true });
//creer une session
request.session.login = result.mail;
if(!request.session.login){
response.status(404).json({error:"invalid session"});
}
next();
//pour rediriger vers la dernière page visitée
//response.redirect(request.session.history.filter(page => page !== '/log
},
checkLogin: (request, response, next) => {
// S"il n'y a pas de login alors on redirige vers la page de connection
if(!request.session.login){
response.redirect('/login');
}
next();
},
test: (_, response) => {
response.send('hello Cédric')
}
}
// Lucas_Moreau@hotmail.fr
// nHScj9_r_Halbb0
|
var app = angular.module('OrgHierarchyApp', ['BasicPrimitives','ngDialog','angularFileUpload'])/*.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'template/facility-dashboard.html',
controller:'FacilityDashboardController'
})
.otherwise({
redirectTo: '/'
});
});*/;
angular.module('BasicPrimitives', [], function ($compileProvider) {
$compileProvider.directive('bpOrgDiagram', function ($compile) {
function link(scope, element, attrs) {
var itemScopes = [];
var config = new primitives.orgdiagram.Config();
angular.extend(config, scope.options);
config.onItemRender = onTemplateRender;
config.onCursorChanged = onCursorChanged;
config.onHighlightChanged = onHighlightChanged;
var chart = jQuery(element).orgDiagram(config);
scope.$watch('options.highlightItem', function (newValue, oldValue) {
var highlightItem = chart.orgDiagram("option", "highlightItem");
if (highlightItem != newValue) {
chart.orgDiagram("option", { highlightItem: newValue });
chart.orgDiagram("update", primitives.orgdiagram.UpdateMode.PositonHighlight);
}
});
scope.$watch('options.cursorItem', function (newValue, oldValue) {
var cursorItem = chart.orgDiagram("option", "cursorItem");
if (cursorItem != newValue) {
chart.orgDiagram("option", { cursorItem: newValue });
chart.orgDiagram("update", primitives.orgdiagram.UpdateMode.Refresh);
}
});
scope.$watchCollection('options.items', function (items) {
chart.orgDiagram("option", { items: items });
chart.orgDiagram("update", primitives.orgdiagram.UpdateMode.Refresh);
});
function onTemplateRender(event, data) {
var itemConfig = data.context;
switch (data.renderingMode) {
case primitives.common.RenderingMode.Create:
/* Initialize widgets here */
var itemScope = scope.$new();
itemScope.itemConfig = itemConfig;
$compile(data.element.contents())(itemScope);
if (!scope.$parent.$$phase) {
itemScope.$apply();
}
itemScopes.push(itemScope);
break;
case primitives.common.RenderingMode.Update:
/* Update widgets here */
var itemScope = data.element.contents().scope();
itemScope.itemConfig = itemConfig;
break;
}
}
function onButtonClick(e, data) {
scope.onButtonClick();
scope.$apply();
}
function onCursorChanged(e, data) {
scope.options.cursorItem = data.context ? data.context.id : null;
scope.onCursorChanged();
scope.$apply();
}
function onHighlightChanged(e, data) {
scope.options.highlightItem = data.context ? data.context.id : null;
scope.onHighlightChanged();
scope.$apply();
}
element.on('$destroy', function () {
/* destroy items scopes */
for (var index = 0; index < scopes.length; index++) {
itemScopes[index].$destroy();
}
/* destory jQuery UI widget instance */
chart.remove();
});
};
return {
scope: {
options: '=options',
onCursorChanged: '&onCursorChanged',
onHighlightChanged: '&onHighlightChanged',
},
link: link
};
});
}).factory('MyHttpInterceptor', function ($q) {
return {
request: function (config) {
$('#loading').show();
return config || $q.when(config);
},
requestError: function (rejection) {
$('#loading').hide();
return $q.reject(rejection);
},
// On response success
response: function (response) {
$('#loading').hide();
return response || $q.when(response);
},
// On response failture
responseError: function (rejection) {
$('#loading').hide();
return $q.reject(rejection);
}
};
})
.config(function ($httpProvider) {
$httpProvider.interceptors.push('MyHttpInterceptor');
});
|
// В ES6 Классы не поднимаются!! Нельзя использовать Класс до его объявления.
// Классы не засоряют глобальное пространство имён
class Task {
constructor(title) {
this._title = title;
this.done = false;
Task.count += 1;
console.log('Создание задачи');
}
get title() {
return this._title;
}
set title(val) {
this._title = val;
}
static getDefaultTitle() {
return 'Задача';
}
complete() {
this.done = true;
console.log(`Задача "${this.title}" выполнена`);
}
}
Task.count = 0;
// наследуемый Класс, не имея своего конструктора, всегда использует конструктор родительского Класса
class SubTask extends Task {
constructor(title, parent) {
// super() должен идти первой строчкой в конструкторе подкласса
super(title);
this.parent = parent;
console.log('Создание подзадачи');
}
complete() {
// D.R.Y - Don't Repeat Yourself
super.complete();
// небольшое изменение родительского метода
console.log(`Подзадача "${this.title}" выполнена`);
}
}
let task = new Task('Изучить Javascript');
let subTask = new SubTask('Изучить ES6', task);
// вызов статического метода и статического свойства у подкласса
console.log(SubTask.getDefaultTitle());
console.log(SubTask.count);
// подклассы могут наследовать свойства, методы (в том числе статические), геттеры и сеттеры родителя
task.complete();
subTask.complete();
console.log(task);
console.log(subTask);
|
const router = require("express").Router({ mergeParams: true });
const Units = require("../models/units");
const Company = require("../models/company");
const Employee = require("../models/employee")
// GET /api/v1/units/[id]/company/employees
router.get('/', async (req, res, next) => {
const status = 200
const unit = await Units.findById(req.params.unitId)
const employees = unit.company.employees
res.json({ status, employees })
})
// POST /api/v1/units/[id]/company/employees
router.post('/', async (req, res, next) => {
const status = 201
const unit = await Units.findById(req.params.unitId)
unit.company.employees.push(req.body)
await unit.save()
const employee = unit.company.employees[unit.company.employees.length -1]
res.json({ status, employee })
})
// GET /api/v1/units/[id]/company/employees/[id]
router.get('/:id', async (req, res, next) => {
const status = 200
const unit = await Units.findById(req.params.unitId)
const employee = unit.company.employees.id(req.params.id)
res.status(status).json({ status, employee });
})
// PATCH /api/v1/units/[id]/company/employees/[id]
router.patch('/:id', async (req, res, next) => {
const status = 200
const unit = await Units.findById(req.params.unitId)
const employee = unit.company.employees.id(req.params.id)
Object.assign(employee, req.body)
await unit.save()
res.status(status).json({ status, employee });
})
// DELETE /api/v1/units/[id]/company/employees/[id]
router.delete('/:id', async (req, res, next) => {
const status = 200
const unit = await Units.findById(req.params.unitId)
const employee = unit.company.employees.id(req.params.id).remove()
await unit.save()
res.status(status).json({ status, employee });
})
module.exports = router
|
var express = require('express');
var router = express.Router();
var passport = require('passport')
let as = require('../src/aerospike');
router.get('/', function (req, res, next) {
res.render("admin.html", {settings: settings});
}
);
router.get('/newAccount', function (req, res, next) {
res.render('newAccount.html', {settings: settings})
});
router.post('/newAccount', function (req, res, next) {
as.newAccount(req.body.account_number, req.body.owner, req.body.bal, req.body.pin, (acct) => {
res.redirect("/account/num/" + acct)
});
});
router.get('/add', function (req, res, next) {
res.render('add.html', {settings: settings})
});
router.post('/add', function (req, res, next) {
as.addTransaction("add", req.body, function (err, result) {
if (err) {
throw err
} else {
res.redirect('/account/num/' + req.body.account_number)
}
})
});
router.get('/transfer', function (req, res, next) {
res.render('transfer.html', {settings: settings})
});
router.post('/transfer', function (req, res, next) {
req.body.destination = {account_number: req.body.dacct, branch: req.body.dbranch};
as.addTransaction("transfer", req.body, function (err, result) {
if (err) {
throw err
} else {
res.redirect('/account/num/' + req.body.account_number)
}
})
});
router.get('/picker', function (req, res, next) {
res.render('account_picker.html', {settings: settings})
})
module.exports = router;
|
const customMuiStyles = {
palette: {
primary: {
main: '#765ea8',
contrastText: '#ffffff',
},
secondary: {
main: '#f0a017',
},
},
typography: {
fontFamily: 'Lexend Deca, sans-serif',
},
};
export default customMuiStyles;
|
App = Ember.Application.create();
App.Router.map(function() {
this.route("phone", { path: "/phone/:phone_id" });
//this.route("edit", { path: "/edit/:phone_id" });
});
App.IndexRoute = Ember.Route.extend({
model: function() {
return phones;
}
});
var phones = [{
id: 0,
name: "W902",
display: 1,
model_name: "Sony Ericcson W902",
pic: "img/phone/W902.jpg",
} , {
id: 1,
name: "Xperia Ray",
display: 1,
model_name: "Sony Ericcson Xperia Ray",
pic: "img/phone/xperia Ray.jpg",
} , {
id: 2,
name: "Test",
display: 0,
model_name: "Test model",
pic: "",
}];
|
define('GameServerListener', [
'createjs'
], function(createjs) {
var Listener = function() {};
createjs.EventDispatcher.initialize(Listener.prototype);
Listener.prototype.initialize = function (socket, handler) {
socket.socket.on('message', function(event) {
event = JSON.parse(event);
if ('tick' === event['type']) {
if (handler['tick']) {
handler['tick'](event);
}
} else if ('sync' === event['type']) {
if (handler['sync']) {
handler['sync'](event);
}
} else if ('game' === event['type']) {
if (handler[event.event.action]) {
handler[event.event.action](event);
}
} else if ('action' === event['type']) {
if (handler[event.event.action]) {
handler[event.event.action](event);
}
}
});
};
return Listener;
});
|
import _Form from "./Form";
import useForm from "./UseForm";
import Field from "./Field";
import { forwardRef } from 'react'
const Form = forwardRef(_Form);
Form.useForm = useForm;
Form.Field = Field;
export { useForm, Field };
export default Form;
|
//index.js
//获取应用实例
const app = getApp()
Page({
data: {
motto: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
img_url_list: [],
vedio_url_list: [],
vedio_all: false,
images_all: false,
},
onLoad: function () {
var temp_img_url_arr = [];
var temp_vedio_url_arr = [];
var that = this;
if (app.globalData.userInfo) {
this.setData({
userInfo: app.globalData.userInfo,
hasUserInfo: true
})
} else if (this.data.canIUse) {
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况
app.userInfoReadyCallback = res => {
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
} else {
// 在没有 open-type=getUserInfo 版本的兼容处理
wx.getUserInfo({
success: res => {
app.globalData.userInfo = res.userInfo
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
})
}
wx.request({
url:'https://pet-store-1256628689.cos.ap-chengdu.myqcloud.com',
success: function (res) {
var arr = res.data.match(/<Key>[^]*?<\/Key>+/g);
for (let i = 0; i < arr.length; i++) {
let file_name = arr[i].slice(5, -6);
if (file_name.lastIndexOf('.jpeg') > -1 || file_name.lastIndexOf('.jpg') > -1 || file_name.lastIndexOf('.png') > -1 || file_name.lastIndexOf('.gif') > -1) {
temp_img_url_arr.push("https://pet-store-1256628689.cos.ap-chengdu.myqcloud.com/" + file_name);
} else if (file_name.lastIndexOf('.mp4') > -1 || file_name.lastIndexOf('.avi') > -1 || file_name.lastIndexOf('.rmvb') > -1 || file_name.lastIndexOf('.flash') > -1 || file_name.lastIndexOf('.mkv') > -1) {
temp_vedio_url_arr.push("https://pet-store-1256628689.cos.ap-chengdu.myqcloud.com/" + file_name)
}
}
that.setData({
img_url_list: temp_img_url_arr,
vedio_url_list: temp_vedio_url_arr
})
},
fail: function (error) {
}
})
},
getUserInfo: function (e) {
console.log(e)
app.globalData.userInfo = e.detail.userInfo
this.setData({
userInfo: e.detail.userInfo,
hasUserInfo: true
})
},
getMap: function (e) {
wx.openLocation({
latitude: 34.525887,
longitude: 108.816793,
scale: 18,
name: '咸亨畜禽康复中心',
address: '泾阳县蒙家桥十字东南角'
})
},
clickPhone: function () {
wx.makePhoneCall({
phoneNumber: '13335433542'
})
},
clickImage: function (event) {
var src = event.currentTarget.dataset.src;
console.log(src);
wx.previewImage({
current: src, // 当前显示图片的http链接
urls: this.data.img_url_list // 需要预览的图片http链接列表
})
},
showAllVedio: function () {
this.setData({
vedio_all: !this.data.vedio_all
})
},
showAllImages: function () {
this.setData({
images_all: !this.data.images_all
})
}
})
|
({
doInit: function(component, event, helper) {
/*Event fired to master comp to start the flow. Not required for New Quote Request design*/
// var cmpEvent = component.getEvent("navigationEvt"); by me
// cmpEvent.fire(); by me
/*End*/
if (component.get("v.group") == null) {
// component.set("v.showSpinner", true);
var action = component.get("c.getGroupInformation");
action.setParams({
"GroupId": component.get("v.GroupId")
});
// Add Asynch Callback For Class Action
action
.setCallback(
this,
function(response) {
var state = response.getState();
if (component.isValid() && state === "SUCCESS") {
/* alert('Group Information' + JSON.stringify(response
.getReturnValue()));*/
//by me helper.getSIC(component);
helper.getZipCode(component);
helper.getaddress(component);
// alert(JSON.stringify(response.getReturnValue()));
var effdate = JSON.parse(JSON.stringify(response.getReturnValue().ba_EffectiveDate__c));
// alert('Date'+ effdate);
component.set("v.group", response.getReturnValue());
//by me component.set("v.group.ba_EffectiveDate__c",effdate);
component.set("v.showSpinner", false);
} else {
// Replace With Error Handler f/w once available
console.log("Failed with state: " + state);
}
});
// Enqueue Class Action
$A.enqueueAction(action);
}
},
handlezipcode: function(component, event, helper) {
if (!$A.util.isEmpty(component.get("v.group.zipcode"))) {
var ziplst = component.get("v.ZipCodes");
for (var i = 0; i < ziplst.length; i = i + 1) {
if (component.get("v.group.zipcode") == ziplst[i].Id) {
component.set("v.group.ba_RatingCounty__r.Name", ziplst[i].Name);
}
}
}
}
})
|
var del = require('del');
var gulp = require('gulp');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var plumber = require('gulp-plumber');
var app = 'src/';
var dist = 'public/';
// https://github.com/ai/autoprefixer
var autoprefixerBrowsers = [
'ie >= 9',
'ie_mob >= 10',
'ff >= 30',
'chrome >= 34',
'safari >= 6',
'opera >= 23',
'ios >= 6',
'android >= 4.4',
'bb >= 10'
];
gulp.task('styles', function() {
gulp.src(app + 'assets/styles/_base/*.scss')
.pipe(plumber())
.pipe(sass().on('error', sass.logError))
.pipe(minifyCss({compatibility: autoprefixerBrowsers}))
.pipe(gulp.dest(dist + 'assets/css'))
});
// remove bundels
gulp.task('clean', function(cb) {
return del([dist], cb);
});
// watch style changes
gulp.task('watch', function() {
gulp.watch(app + 'assets/styles/**/*.scss', ['styles']);
});
// by default build project and then watch files
gulp.task('build', ['clean']);
gulp.task('default', ['styles', 'watch']);
|
let sketch = function(p) {
let WIDTH = 600;
let HEIGHT = 400;
p.setup = () => {
let canvas = p.createCanvas(WIDTH, HEIGHT);
p.background(220);
p.fill(255);
}
p.draw = () => {
if (p.mouseIsPressed) {
p.ellipse(p.mouseX, p.mouseY, 80, 80);
}
}
};
new p5(sketch, 'container');
|
import * as THREE from "three"
import {SPACE_SIZE} from "../Viewer3DConstants"
function Lights() {
const lightGroup = new THREE.Group()
lightGroup.name = "LightGroup"
const skyColor = "#bfe5f9"
const groundColor = "#ddbba0"
const hemisphereLight = new THREE.HemisphereLight(skyColor, groundColor, 1.5)
lightGroup.add(hemisphereLight)
const dirLight = new THREE.DirectionalLight(0xffffff, 1.5)
dirLight.position.set(SPACE_SIZE * 0.05, SPACE_SIZE, SPACE_SIZE * 0.1)
dirLight.target.position.set(0, 0, 0)
dirLight.castShadow = true
dirLight.shadow.mapSize.width = 1024
dirLight.shadow.mapSize.height = 1024
dirLight.shadow.camera.near = 0.01
dirLight.shadow.camera.far = SPACE_SIZE * 2
lightGroup.add(dirLight)
// const cameraHelper = new THREE.CameraHelper(dirLight.shadow.camera)
// lightGroup.add(cameraHelper)
// const lightHelper = new THREE.DirectionalLightHelper(dirLight)
// lightGroup.add(lightHelper)
const spotLight = new THREE.SpotLight(0xd2fcc0, 1)
spotLight.position.set(-SPACE_SIZE, SPACE_SIZE, -SPACE_SIZE)
spotLight.target.position.set(0, 0, 0)
spotLight.penumbra = 0.1
spotLight.decay = 2
spotLight.distance = SPACE_SIZE * 2
lightGroup.add(spotLight)
return lightGroup
}
export default Lights
|
import React from "react";
import styled from "styled-components";
import GlobalTrends from "../Explore/GlobalTrends";
import RelatedUsers from "./RelatedUsers";
const ListWrapper = styled.div`
margin-bottom: 10px;
`;
function BodyAside() {
return (
<>
<ListWrapper>
<RelatedUsers />
</ListWrapper>
<ListWrapper>
<GlobalTrends />
</ListWrapper>
</>
);
}
export default BodyAside;
|
import { createMuiTheme, createTypography, createPalette } from 'material-ui/styles';
import { teal, deepOrange } from 'material-ui/colors';
const vivalaColor = '#FF6D20';
const vivalaInstituteColor = '#10A5A3';
let theme = createMuiTheme({
vivala: {
color: vivalaColor
},
institute: {
color: vivalaInstituteColor,
lightColor: '#3fb7b5'
},
reverse: {
color: 'white',
},
default: {
color: '#f5f5f5',
},
defaultDarken: {
color: '#e1e1e1',
},
overrides: {
MuiTypography: {
colorAccent: {
color: vivalaInstituteColor,
},
},
MuiButton: {
flatPrimary: {
color: 'white',
'&:hover': {
backgroundColor: 'transparent',
},
},
raisedAccent: {
color: 'white',
backgroundColor: vivalaInstituteColor,
'&:hover': {
backgroundColor: vivalaInstituteColor,
},
},
raisedPrimary: {
color: 'white',
},
raisedContrast: {
color: '#333',
backgroundColor: 'white',
'&:hover': {
backgroundColor: 'white',
},
},
dense: {
minWidth: 20,
minHeight: 10,
height: 25,
width: 25,
padding: 0
},
},
MuiCircularProgress: {
primaryColor: {
color: vivalaColor,
},
accentColor: {
color: vivalaInstituteColor,
},
},
}
});
const customTypography = createTypography(theme.palette, {
fontFamily: 'Titillium Web',
});
const customPallete = createPalette({
primary: {
...deepOrange,
500: vivalaColor,
A700: vivalaColor,
A200: vivalaColor,
},
secondary: {
...teal,
500: vivalaInstituteColor,
}
});
theme = {
...theme,
palette: {
...customPallete,
input: {
...customPallete.input,
bottomLine: '#ccc',
inputText: vivalaColor,
},
text: {
...customPallete.text,
primary: '#777'
}
},
typography: {
...customTypography,
headline: {
...customTypography.display1,
color: vivalaColor,
textTransform: 'uppercase',
},
subheading: {
...customTypography.subheading,
color: vivalaColor,
},
title: {
...customTypography.title,
color: vivalaColor,
},
body1: {
...customTypography.body1,
fontSize: 16,
},
button: {
...customTypography.button,
textTransform: 'none',
fontSize: 17,
fontWeight: 600,
}
},
};
export default theme;
|
import React from "react";
import { View } from "react-native";
import Card from "./Card";
import CardData from "../classes/CardData";
export default function Hand({
cards,
onCardPress,
cardsDisabled,
cardStyle,
handStyle,
}) {
return (
<View style={handStyle}>
{cards.map((cardData, index) => (
<Card
key={cardData.getId()}
data={cardData}
onPress={onCardPress}
isDisabled={cardsDisabled}
style={cardStyle}
/>
))}
</View>
);
}
|
var searchData=
[
['uart_5fbuffer_5frx',['UART_BUFFER_RX',['../ssd1306__uart_8h.html#adff6f1691b8119f8c50293135a28e1b3',1,'ssd1306_uart.h']]]
];
|
var src = "";
$(document).ready(function() {
src = $("#presentation").prop('src');
setInterval(function() {
$("#presentation").prop('src', src);
}, $("#refresh").attr('value'));
});
|
export class Pacman {
constructor(ctx) {
this.ctx = ctx;
this.radius = 10;
this.speed = 1;
// "up", "down", "left", "right" Direction to move
this.direction = [false, false, false, false];//
this.go = [true, true, true, true];
this.position = [100,100];
};
/**
* Render the pacman in the screen depending on the position of the object
* @return {[type]} [description]
*/
render(){
//Change mouth position
let arc1Start = 0.25 * Math.PI,
arc1End = 1.25 * Math.PI,
arc2Start = 0.75 * Math.PI,
arc2End = 1.75 * Math.PI;
if (this.direction[0] === true){
arc2Start = 1.75 * Math.PI;
arc2End = 0.75 * Math.PI;
}
if (this.direction[1] === true){
arc1Start = 0.75 * Math.PI;
arc1End = 1.75 * Math.PI;
arc2Start = 1.25 * Math.PI;
arc2End = 0.25 * Math.PI;
}
if (this.direction[2] === true){
arc1Start = 1.25 * Math.PI;
arc1End = 0.25 * Math.PI;
arc2Start = 1.75 * Math.PI;
arc2End = 0.75 * Math.PI;
}
this.ctx.beginPath();
this.ctx.arc(this.position[0], this.position[1], this.radius, arc1Start, arc1End, false);
this.ctx.fillStyle = "rgb(255, 255, 0)";
this.ctx.fill();
this.ctx.beginPath();
this.ctx.arc(this.position[0], this.position[1], this.radius, arc2Start, arc2End, false);
this.ctx.fill();
};
/**
* Change the position of the Pacman depending on the direction
*/
move(level){
//prepare variables
let xPositionPlusRadius = this.position[0] + this.radius;
let xPositionMinusRadius = this.position[0] - this.radius;
let yPositionPlusRadius = this.position[1] + this.radius;
let yPositionMinusRadius = this.position[1] - this.radius;
this.go = [true, true, true, true];
//Check Collisions
this.boardCollision(xPositionPlusRadius, xPositionMinusRadius, yPositionPlusRadius, yPositionMinusRadius);
this.wallCollision(xPositionPlusRadius, xPositionMinusRadius, yPositionPlusRadius, yPositionMinusRadius, level);
//Modify direction
if (this.direction[0] && this.go[0]) this.position[1] -= this.speed;
if (this.direction[1] && this.go[1]) this.position[1] += this.speed;
if (this.direction[2] && this.go[2]) this.position[0] -= this.speed;
if (this.direction[3] && this.go[3]) this.position[0] += this.speed;
}
/**
* [boardCollision description]
* @param {[integer]} xPositionPlusRadius Radius plus x position
* @param {[integer]} xPositionMinusRadius Radius minus x position
* @param {[integer]} yPositionPlusRadius Radius plus y position
* @param {[integer]} yPositionMinusRadius Radius minus y position
*/
boardCollision(xPositionPlusRadius, xPositionMinusRadius, yPositionPlusRadius, yPositionMinusRadius){
if (yPositionMinusRadius === 0) this.go[0] = false;
if (yPositionPlusRadius === this.ctx.canvas.clientHeight) this.go[1] = false;
if (xPositionMinusRadius === 0) this.go[2] = false;
if (xPositionPlusRadius === this.ctx.canvas.clientWidth) this.go[3] = false;
}
wallCollision(xPositionPlusRadius, xPositionMinusRadius, yPositionPlusRadius, yPositionMinusRadius, level) {
for (let i = 0; i < level.walls.length; i++) {
let startX = level.walls[i].start[0],
startY = level.walls[i].start[1],
endX = level.walls[i].end[0],
endY = level.walls[i].end[1],
vWall = false;
if (yPositionMinusRadius === endY && xPositionMinusRadius < endX && xPositionPlusRadius > endX) this.go[0] = false;
if (yPositionPlusRadius === startY && xPositionMinusRadius < endX && xPositionPlusRadius > endX) this.go[1] = false;
if (startX === endX && xPositionMinusRadius === startX && yPositionPlusRadius > startY && yPositionMinusRadius < endY) this.go[2] = false;
if (yPositionMinusRadius === endY && xPositionMinusRadius < endX && xPositionPlusRadius > startX) this.go[0] = false;
if (startX != endX && yPositionPlusRadius === endY && xPositionMinusRadius < endX && xPositionPlusRadius >= startX) this.go[1] = false;
if (xPositionMinusRadius === endX && yPositionPlusRadius > startY && yPositionMinusRadius < endY) this.go[2] = false;
if (xPositionPlusRadius === startX && yPositionPlusRadius > startY && yPositionMinusRadius < endY) this.go[3] = false;
}
}
}
|
import React from 'react';
import {Button} from '../../components/button/button.jsx';
import {
CalendarIcon,
ClockIcon,
CommitIcon,
DoneIcon,
FailIcon,
RebuildIcon,
SettingsIcon,
StopwatchIcon,
UserIcon,
} from '../../components/icons';
export function BuildDetails() {
return (
<>
<header className="Header Container">
<h1 className="Text Text_type_h1">philip1967/my-awesome-repo-with-long-repo-name</h1>
<div className="Header-Menu">
<Button>
<RebuildIcon width="12" height="12" />
Rebuild
</Button>
<Button>
<SettingsIcon width="12" height="12" />
Settings
</Button>
</div>
</header>
<main className="App-Main" data-test="build-details-page">
<div className="Container BuildDetails">
<div className="Build Build_status_success Build_isOpen">
<div className="Build-Status">
<DoneIcon
width="16"
height="16"
className="Build-StatusIcon Build-StatusIcon_success"
/>
<FailIcon width="16" height="16" className="Build-StatusIcon Build-StatusIcon_fail" />
<ClockIcon
width="16"
height="16"
className="Build-StatusIcon Build-StatusIcon_running"
/>
</div>
<div className="Build-Info">
<div className="Build-Header">
<div className="Build-HeaderFirst">
<div className="Build-Number">#1368</div>
<div className="Build-CommitMessage">
add documentation for postgres scaler Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Dolore doloribus eaque id iure mollitia nesciunt nihil officia
quasi ratione, vel.
</div>
</div>
<div className="Build-HeaderSecond">
<div className="Build-Commit">
<div className="Build-CommitBranch">
<CommitIcon width="16" height="16" />
<span className="Build-CommitBranchName">master</span>
</div>
<div className="Build-CommitHash">9c9f0b9</div>
</div>
<div className="Build-Author">
<UserIcon width="16" height="16" />
<span className="Build-AuthorName">Philip Kirkorov</span>
</div>
</div>
</div>
<div className="Build-Times">
<div className="Build-DateTime">
<CalendarIcon width="16" height="16" />
<span className="Build-DateTimeText">21 янв, 03:06</span>
</div>
<div className="Build-Duration">
<StopwatchIcon width="16" height="16" />
<span className="Build-DurationText">1 ч 20 мин</span>
</div>
</div>
</div>
</div>
</div>
<pre className="LogMessage">
{`
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
Hash: d54ed20309f352b3bda76cbbb6d272ed6afde438bd7a265eb08db3624c32dfc883a8c379c67f4de6
Version: webpack 4.41.6
Child
Hash: d54ed20309f352b3bda7
Time: 40364ms
Built at: 2020-02-23 16:04:54
Asset Size Chunks Chunk Names
0.bundle.static.css 1.31 MiB 0 [emitted] vendors~main
0.bundle.static.js 10.3 MiB 0 [emitted] vendors~main
bundle.static.css 48.6 KiB 1 [emitted] main
bundle.static.js 613 KiB 1 [emitted] main
static/media/Cat.afa2191f.svg 9.83 KiB [emitted]
static/media/illustration.a17c1b18.svg 14.8 KiB [emitted]
static/media/picture.eef6f3b8.svg 16.2 KiB [emitted]
Entrypoint main = 0.bundle.static.css 0.bundle.static.js bundle.static.css bundle.static.js
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
[./src/account/actions/index.ts] 2.46 KiB {1} [built]
[./src/account/api/lib/models/index.ts] 2.17 KiB {1} [built]
[./src/account/api/lib/models/mappers.ts] 21 KiB {1} [built]
[./src/account/api/lib/schoolaccountAPI.ts] 4.97 KiB {1} [built]
[./src/account/api/lib/schoolaccountAPIContext.ts] 1.73 KiB {1} [built]
[./src/account/epics/index.ts] 328 bytes {1} [built]
[./src/account/epics/pageData.ts] 834 bytes {1} [built]
[./src/account/epics/personalPage.ts] 2.29 KiB {1} [built]
[./src/account/epics/registrationForm.ts] 910 bytes {1} [built]
[./src/account/index.tsx] 561 bytes {1} [built]
[./src/account/reducers/githubRepos.ts] 837 bytes {1} [built]
[./src/account/reducers/index.ts] 1.83 KiB {1} [built]
[./src/account/reducers/serverError.ts] 526 bytes {1} [built]
[./src/account/store.ts] 1.05 KiB {1} [built]
+ 1864 hidden modules
Child
Hash: 6cbbb6d272ed6afde438
Time: 32877ms
Built at: 2020-02-23 16:04:47
Asset Size Chunks Chunk Names
server.js 6.34 MiB main [emitted] main
Entrypoint main = server.js
[./src/account/actions/index.ts] 2.46 KiB {main} [built]
[./src/account/api/lib/models/index.ts] 2.17 KiB {main} [built]
[./src/account/api/lib/models/mappers.ts] 21 KiB {main} [built]
[./src/account/api/lib/schoolaccountAPI.ts] 4.97 KiB {main} [built]
[./src/account/api/lib/schoolaccountAPIContext.ts] 1.73 KiB {main} [built]
[./src/account/epics/index.ts] 328 bytes {main} [built]
[./src/account/epics/pageData.ts] 834 bytes {main} [built]
[./src/account/epics/personalPage.ts] 2.29 KiB {main} [built]
[./src/account/epics/registrationForm.ts] 910 bytes {main} [built]
[./src/account/mappers/index.ts] 2.18 KiB {main} [built]
[./src/account/reducers/githubRepos.ts] 837 bytes {main} [built]
[./src/account/reducers/index.ts] 1.83 KiB {main} [built]
[./src/account/reducers/serverError.ts] 526 bytes {main} [built]
[./src/account/server.tsx] 1.62 KiB {main} [built]
[./src/account/store.ts] 1.05 KiB {main} [built]
+ 1484 hidden modules
`}
</pre>
</main>
<footer className="Footer">
<div className="Footer-Container Container">
<ul className="Footer-Menu">
<li className="Footer-MenuItem">
<a href="#support" className="Link">
Support
</a>
</li>
<li className="Footer-MenuItem">
<a href="#learning" className="Link">
Learning
</a>
</li>
</ul>
<div className="Footer-Copyright">© 2020 Your Name</div>
</div>
</footer>
</>
);
}
|
import React from 'react';
import TuningOptions from './TuningOptions';
import { notes, scales } from '../constants'
export default function ScaleOptions(props) {
return (
<div id="scale-options">
<select onChange={props.handleSelectRoot} value={props.rootNote}>
{notes.map(note => <option value={note} key={note}>{note}</option>)}
</select>
<select onChange={props.handleScaleSelect} value={Object.keys(scales).find(scale => JSON.stringify(props.selectedScale) === JSON.stringify(scales[scale]))}>
{Object.keys(scales).map(scale => {
return <option value={scale} key={scale}>{scale}</option>
})}
</select>
<div id="sharps-or-flats-radio-buttons">
{["Sharps", "Flats", "Fret Numbers"].map(opt => <div key={opt.toLowerCase()}><p>{opt}</p><input type="radio" name={opt.toLowerCase()} value={opt.toLowerCase()} checked={props.sharpsOrFlats === opt.toLowerCase()} onChange={props.handleSharpsOrFlats} /></div>)}
</div>
<button onClick={props.handleClearFretboard}>Clear Fretboard</button>
<button onClick={props.handleFillOctaves}>Fill Octaves</button>
<br />
<br />
<br />
<TuningOptions
tuning={props.tuning}
handleTuneString={props.handleTuneString}
handleTuneUp={props.handleTuneUp}
handleTuneDown={props.handleTuneDown}
handleAddString={props.handleAddString}
handleRmvString={props.handleRmvString}
/>
</div>
)
}
|
const { Swal } = require('../helpers')
QUnit.test('HTMLElement as html', (assert) => {
const form = document.createElement('form')
const div = document.createElement('div')
div.appendChild(document.createElement('label'))
div.appendChild(document.createElement('input'))
form.appendChild(div)
Swal.fire({
html: form
})
assert.equal(Swal.getHtmlContainer().innerHTML, '<form><div><label></label><input></div></form>')
})
QUnit.test('Error as html', (assert) => {
const error = new Error()
error.message = 'something is broken'
Swal.fire({
html: error
})
assert.equal(Swal.getHtmlContainer().innerHTML, 'Error: something is broken')
})
|
var raster = new ol.layer.Tile({
source: new ol.source.MapQuest({layer: 'sat'})
});
var vector = new ol.layer.Vector({
source: new ol.source.GeoJSON({
projection: 'EPSG:3857',
url: 'data/geojson/countries.geojson'
})
});
var map = new ol.Map({
layers: [raster, vector],
target: 'map2d',
view: new ol.View({
center: [0, 0],
zoom: 2
})
});
var ol3d = new olcs.OLCesium(map, 'map3d');
var scene = ol3d.getCesiumScene();
ol3d.setEnabled(true);
var selectionStyle = new ol.style.Style({
fill: new ol.style.Fill({
color: [255, 255, 255, 0.6]
}),
stroke: new ol.style.Stroke({
color: [0, 153, 255, 1],
width: 3
})
});
var selectedFeature;
map.on('click', function(e) {
if (selectedFeature) {
selectedFeature.setStyle(null);
}
selectedFeature = map.forEachFeatureAtPixel(
e.pixel,
function(feature, layer) {
return feature;
});
if (selectedFeature) {
selectedFeature.setStyle(selectionStyle);
}
});
|
define([
'underscore',
'backbone',
'text!flavor/adminFlavor.template.html'
], function(
_,
Backbone,
FlavorTemplate
){
var FlavorView = Backbone.View.extend({
events: {
'click .tile': 'onTileClick'
},
onTileClick: function(event){
event.preventDefault();
var isActive = this.$('.tile').hasClass('active');
this.$('.tile').toggleClass('active').toggleClass('js-active');
if(isActive){
this.deactivate();
}
else {
this.activate();
}
},
activate: function(){
console.log('activate', this.model.get('currentStore'), this.model.id);
$.post('../api/add-flavor.php', {
store: this.model.get('currentStore'),
flavorId: this.model.id
}).done(function(data) {
console.log(JSON.parse(data).flavorIds);
}).fail(function() {
console.log(arguments);
});
},
deactivate: function(){
console.log('deactivate', this.model.get('currentStore'), this.model.id);
$.post('../api/remove-flavor.php', {
store: this.model.get('currentStore'),
flavorId: this.model.id
}).done(function(data) {
console.log(JSON.parse(data).flavorIds);
}).fail(function() {
console.log(arguments);
});
},
initialize: function() {
this.template = _.template(FlavorTemplate);
this.render();
},
render: function(){
this.setElement(this.template({ data: this.model.attributes }));
}
});
return FlavorView;
});
|
const _kViewHistoryKey = "com.haoshiqi.viewHistory";
const _kTimeout = Number.MAX_VALUE;
const _kThreshold = 30;
// 浏览记录管理
class _ViewHistoryManager {
constructor() {
this._viewHistory = [];
this._hasReadData = false;
};
// 获取浏览历史记录
viewHistory() {
this._readViewHistoryFormStorage();
// 处理过期数据
this._dealTimeoutData();
return this._viewHistory;
};
// 添加浏览历史
addViewHistory(obj) {
this._readViewHistoryFormStorage();
// 添加到缓存中
// 1. 查找缓存目标
let {target, index} = {};
for (var i = this._viewHistory.length - 1; i >= 0; i--) {
const item = this._viewHistory[i];
if (item.pinActivityId === obj.pinActivityId && item.productId === obj.productId) {
target = item;
index = i;
break;
}
}
if (!target) {
target = obj;
} else {
this._viewHistory.splice(index, 1);
}
target.timeout = new Date() + _kTimeout * 1000;
this._viewHistory.unshift(target);
// 2.储存本地
this._synchronize();
};
// 删除浏览历史
deleteViewHistory(obj) {
let index = null;
for (var i = this._viewHistory.length - 1; i >= 0; i--) {
const item = this._viewHistory[i];
if (item.pinActivityId === obj.pinActivityId && item.productId === obj.productId) {
index = i;
break;
}
}
this._viewHistory.splice(index, 1);
this._synchronize();
};
// 从本地读取数据
// 每次运行指挥执行一次
_readViewHistoryFormStorage() {
if (this._hasReadData) return;
this._hasReadData = true;
try {
var data = wx.getStorageSync(_kViewHistoryKey);
if (data) {
console.log(data);
// TODO
this._viewHistory = data;
}
} catch (e) {
console.error(e);
}
};
// 同步缓存数据到本地
_synchronize() {
wx.setStorage({
key: _kViewHistoryKey,
data: this._viewHistory,
success: function(res) {},
fail: function(res) {},
complete: function(res) {},
})
};
_dealTimeoutData() {
if (!this._viewHistory.length) return;
// 阈值处理
if (this._viewHistory.length > _kThreshold) {
this._viewHistory = this._viewHistory.slice(0, _kThreshold);
}
// 过期处理
for (var i = this._viewHistory.length - 1; i >= 0; i--) {
const obj = this._viewHistory[i];
const now = new Date();
if (obj.timeout && obj.timeout < now) {
this._viewHistory.pop();
continue;
}
break;
}
this._synchronize();
};
}
const _manager = new _ViewHistoryManager();
// const manager = {
// viewHistory: _manager.viewHistory,
// addHistory: _manager.addViewHistory,
// }
module.exports = _manager;
|
import {readFile as rf} from 'fs';
import {promisify} from 'util';
import {resolve as pathResolve, dirname, join} from 'path';
import {fileURLToPath} from 'url';
import {execFile as ef} from 'child_process';
import {assert} from 'chai';
const __dirname = dirname(fileURLToPath(import.meta.url));
const binaryPath = pathResolve(__dirname, '../', 'bin', 'mbg.js');
const execFile = promisify(ef);
const readFile = promisify(rf);
describe('Binary', function () {
this.timeout(10000);
it('Outputs version', async function () {
const {version} = JSON.parse(await readFile(join(__dirname, '../package.json')));
const {stdout, stderr} = await execFile(
binaryPath,
['--version']
);
assert.equal(stdout, version + '\n');
assert.equal(stderr, '');
});
it('Builds badge from CLI', async function () {
const {stdout, stderr} = await execFile(
binaryPath,
[
'--file',
pathResolve(__dirname, 'fixtures', 'test-report.json'),
'--badge_output',
'./test/results/badge-cli.svg'
]
);
assert.equal(stdout, 'Saved to ./test/results/badge-cli.svg\n');
assert.equal(stderr, '');
const expected = await readFile('test/fixtures/badge-cli.svg', 'utf8');
const result = await readFile('test/results/badge-cli.svg', 'utf8');
assert.equal(result, expected);
});
it('Builds badge from CLI with color and stroke color', async function () {
const {stdout, stderr} = await execFile(
binaryPath,
[
'--file',
pathResolve(__dirname, 'fixtures', 'test-report.json'),
'--badge_output',
'./test/results/badge-color.svg',
'--badge_ko_color',
'blue,s{red}'
]
);
assert.equal(stdout, 'Saved to ./test/results/badge-color.svg\n');
assert.equal(stderr, '');
const expected = await readFile('test/fixtures/badge-color.svg', 'utf8');
const result = await readFile('test/results/badge-color.svg', 'utf8');
assert.equal(result, expected);
});
it('Builds badge from CLI with template', async function () {
const {stdout, stderr} = await execFile(
binaryPath,
[
'--file',
pathResolve(__dirname, 'fixtures', 'test-report-mbg.json'),
'--badge_output',
'./test/results/badge-template.svg',
'--badge_template',
'Passes: ${passes}; failures: ${failures}; total: ${total}; ' +
'duration: ${duration}; fast tests: ${speeds.fast}; ' +
'medium tests: ${speeds.medium}; slow tests: ${speeds.slow}.'
]
);
assert.equal(stdout, 'Saved to ./test/results/badge-template.svg\n');
assert.equal(stderr, '');
const expected = await readFile('test/fixtures/badge-template.svg', 'utf8');
const result = await readFile('test/results/badge-template.svg', 'utf8');
assert.equal(result, expected);
});
it('Builds badge from CLI with template and `slow`', async function () {
const {stdout, stderr} = await execFile(
binaryPath,
[
'--slow', '2000',
'--file',
pathResolve(__dirname, 'fixtures', 'test-report-mbg.json'),
'--badge_output',
'./test/results/badge-template-slow.svg',
'--badge_template',
'Passes: ${passes}; failures: ${failures}; total: ${total}; ' +
'duration: ${duration}; fast tests: ${speeds.fast}; ' +
'medium tests: ${speeds.medium}; slow tests: ${speeds.slow}.'
]
);
assert.equal(stdout, 'Saved to ./test/results/badge-template-slow.svg\n');
assert.equal(stderr, '');
const expected = await readFile('test/fixtures/badge-template-slow.svg', 'utf8');
const result = await readFile('test/results/badge-template-slow.svg', 'utf8');
assert.equal(result, expected);
});
it(
'Builds badge from CLI with template and `slow` against mochawesome report',
async function () {
const {stdout, stderr} = await execFile(
binaryPath,
[
'--slow', '2000',
'--file',
pathResolve(__dirname, 'fixtures', 'mochawesome.json'),
'--badge_output',
'./test/results/badge-mochawesome.svg',
'--badge_template',
'Passes: ${passes}; failures: ${failures}; total: ${total}; ' +
'duration: ${duration}; fast tests: ${speeds.fast}; ' +
'medium tests: ${speeds.medium}; slow tests: ${speeds.slow}.'
]
);
assert.equal(stdout, 'Saved to ./test/results/badge-mochawesome.svg\n');
assert.equal(stderr, '');
const expected = await readFile('test/fixtures/badge-mochawesome.svg', 'utf8');
const result = await readFile('test/results/badge-mochawesome.svg', 'utf8');
assert.equal(result, expected);
}
);
it('Builds badge from CLI (glob)', async function () {
const {stdout, stderr} = await execFile(
binaryPath,
[
'--fileGlob',
'test/fixtures/test-report*.json',
'--badge_output',
'./test/results/badge-glob.svg'
]
);
assert.equal(stdout, 'Saved to ./test/results/badge-glob.svg\n');
assert.equal(stderr, '');
const expected = await readFile('test/fixtures/badge-glob.svg', 'utf8');
const result = await readFile('test/results/badge-glob.svg', 'utf8');
assert.equal(result, expected);
});
});
|
import './style'
import h from '@kuba/h'
import Icon from '@kuba/icon'
function component (props) {
return (
<button {...props} className={['close', props.className]}>
<Icon>close</Icon>
</button>
)
}
export default component
|
import { Mongo } from 'meteor/mongo'
export const Documents = new Mongo.Collection('documents')
|
module.exports = (io, socket, onlineUsers) => {
socket.on('New Image', image => {
io.emit('New Image', image);
})
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.