text
stringlengths 7
3.69M
|
|---|
Ext.define('cfa.store.CFACustomStore', {
override: 'Ext.data.Store',
sync: function(config) {
config = config || {};
var defaults = {
callback: Ext.emptyFn
}
config = Ext.apply(defaults, config);
var me = this,
operations = {},
toCreate = me.getNewRecords(),
toUpdate = me.getUpdatedRecords(),
toDestroy = me.getRemovedRecords(),
needsSync = false;
if (toCreate.length > 0) {
operations.create = toCreate;
needsSync = true;
}
if (toUpdate.length > 0) {
operations.update = toUpdate;
needsSync = true;
}
if (toDestroy.length > 0) {
operations.destroy = toDestroy;
needsSync = true;
}
if (needsSync && me.fireEvent('beforesync', this, operations) !== false) {
var listeners = me.getBatchListeners(),
defaultCompleteFn = listeners.complete,
batch;
listeners.complete = function() {
Ext.callback(defaultCompleteFn, listeners.scope, [batch]);
Ext.callback(config.callback, config.scope, [this, operations]);
};
batch = me.getProxy().batch({
operations: operations,
listeners: listeners
});
}
return {
added: toCreate,
updated: toUpdate,
removed: toDestroy
};
},
onBatchComplete: function(batch) {
}
});
|
module.exports = {
plugins: [
'stylelint-scss'
],
'extends': 'stylelint-config-standard',
rules : {
'selector-list-comma-newline-after' : 'always-multi-line',
'value-list-comma-newline-after' : null,
'font-family-no-missing-generic-family-keyword': null,
'at-rule-no-unknown' : null,
'scss/at-rule-no-unknown' : true,
}
};
|
import { createStore, combineReducers, compose, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import { reducers } from "../reducers";
const reducer = combineReducers({
...reducers
});
const finalCreateStore = compose(
applyMiddleware(thunk),
window.devToolsExtension ? window.devToolsExtension() : f => f
)(createStore);
export const store = finalCreateStore(reducer);
|
// pages/zhuan/index.js
import util from '../../utils/util.js';
var address = require('../../utils/dormitory/newDorm.js');
var animation
const app = getApp()
//console.log(dormitory);
const date = new Date();
const years = [];
const months = [];
const days = [];
const hours = [];
const minutes = ['00','15','30','45'];
//获取年
for (let i = date.getFullYear(); i <= date.getFullYear(); i++) {
years.push("" + i);
}
//获取月份
for (let i = date.getMonth() + 1; i <= 12; i++) {
if (i < 10) {
i = "0" + i;
}
months.push("" + i);
}
//获取日期
for (let i = date.getDate()+1; i <= 31; i++) {
if (i < 10) {
i = "0" + i;
}
days.push("" + i);
}
//获取小时
for (let i = 0; i < 24; i++) {
if (i < 10) {
i = "0" + i;
}
hours.push("" + i);
}
Page({
/**
* 页面的初始数据
*/
data: {
time: '',
multiArray: [years, months, days,hours,minutes],
multiIndex: [1, 11, 17, 10, 17],
choose_year: '',
statusBarHeight: app.globalData.statusBarHeight,
switchContent:'贡献书籍',
rightMove:'',
switchHide:true, //一下都是选择地址的
isVisible: false,
animationData: {},
animationAddressMenu: {},
addressMenuIsShow: false,
value: [0, 0, 0],
provinces: [], //将address里的provicnces对应 区级
citys: [], //citys 对应 苑级
areas: [], //areas 对应 苑级里的 栋
province: '',
city: '',
area: '',
canSubmitFlag3:false,
borrowList:'', //借书清单
borrowBook_bookid:'',
borrowBook_urls:'',
bookValue:'',
contactValue:'',
dormNumValue:'',
imgUrls: [
'/assets/img/zhuan_guide0.jpg',
'/assets/img/zhuan_guide1.jpg',
'/assets/img/zhuan_guide2.jpg'
],
indicatorDots: true,
guidePageShow:false,
ltb_cur: 0,//改变当前索引
lbt_index: 0,//当前的索引
autoplay: false,
interval: 5000,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
//因为自己写了垃圾组件 切换转转 数据不能保存 导致在本地储存绑定事件 麻烦操作
wx.setStorageSync('form_contri_areaInfo', '')
this.whetherHaveLogin();
let _this = this;
_this.setData({
navH: app.globalData.navHeight
})
/**
* 判断是否来过
*/
// let ifcomeGuidePage=wx.getStorageSync('zhuan_guidePageForContribute');
// if (ifcomeGuidePage.length=='0'){
// //guidePageShow=true;
// this.setData({
// guidePageShow:true,
// })
// }else{
// this.setData({
// guidePageShow: false,
// })
// }
//console.log(this.data.multiArray);
let date=new Date();
let year=date.getFullYear();
let month=date.getMonth()+1;
let day=date.getDate()+1;
if (month >= 1 && month<=9){
month="0"+month;
}
if (day >= 0 && day<=9){
day = "0" + day;
}
let yearIndex;
let monthIndex;
let dayIndex;
//正则遍历 picker的当前时间
//console.log(_this.data.multiIndex);
for (let x = 0; x < _this.data.multiArray[0].length; x++) {
if (year === _this.data.multiArray[0][x]) {
// console.log(x);
yearIndex = x;
break;
}
}
for (let y = 0; y < _this.data.multiArray[1].length; y++) {
if (month === _this.data.multiArray[1][y]) {
//console.log(y);
monthIndex = y;
break;
}
}
for (let z = 0; z < _this.data.multiArray[2].length; z++) {
if (day === _this.data.multiArray[2][z]) {
//console.log(z);
dayIndex = z;
break;
}
}
let newmultiIndex = [yearIndex, monthIndex, dayIndex, 9, 0];
//console.log('x:'+x+' y:'+y+' z:'+z);
//设置默认的年份
_this.setData({
choose_year: _this.data.multiArray[0][0], //默认2019
time: `${year}-${month}-${day} 09:00`, //显示当前日期
multiIndex: newmultiIndex
})
/**
* 宿舍地址选择
*/
// 初始化动画变量
var animation = wx.createAnimation({
duration: 500,
transformOrigin: "50% 50%",
timingFunction: 'ease',
})
this.animation = animation;
// 默认联动显示北京
var id = address.provinces[0].id
this.setData({
provinces: address.provinces,
citys: address.citys[id],
areas: address.areas[address.citys[id][0].id],
})
//console.log(this.data)
this.getBorrowList();
},
switchKind(e) {
let _this = this;
let index = e.currentTarget.dataset.index
//console.log(index);
_this.setData({
currentTabsIndex: index
})
if(index==0){
_this.setData({
switchFormShow: true
})
}else if(index==1){
_this.setData({
switchFormShow: false
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
//获取时间日期
bindMultiPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
multiIndex: e.detail.value
})
const index = this.data.multiIndex;
const year = this.data.multiArray[0][index[0]];
const month = this.data.multiArray[1][index[1]];
const day = this.data.multiArray[2][index[2]];
const hours = this.data.multiArray[3][index[3]];
const minutes = this.data.multiArray[4][index[4]];
//console.log(`${year}-${month}-${day}-${hour}-${minute}`);
//console.log(`${year}-${month}-${day}`);
this.setData({
time: year + '-' + month + '-' + day + ' ' + hours + ':' + minutes
})
// console.log(this.data.time);
},
//监听picker的滚动事件
bindMultiPickerColumnChange: function (e) {
//console.log(app);
//获取年份
console.log(e);
let today = date.getMonth() + 1;
let hasday = date.getDate();
if (e.detail.column == 0) {
let choose_year = this.data.multiArray[e.detail.column][e.detail.value];
console.log(choose_year);
this.setData({
choose_year: choose_year
})
}
//console.log('修改的列为', e.detail.column, ',值为', e.detail.value);
if (e.detail.column == 1) {
let num = parseInt(this.data.multiArray[e.detail.column][e.detail.value]);
console.log(num);
let temp = [];
if (num == 1 || num == 3 || num == 5 || num == 7 || num == 8 || num == 10 || num == 12) { //判断31天的月份
if (num == today) {
for (let i = hasday+1; i <= 31; i++) {
if (i < 10) {
i = "0" + i;
}
temp.push("" + i);
}
} else {
for (let i = 1; i <= 31; i++) {
if (i < 10) {
i = "0" + i;
}
temp.push("" + i);
}
}
this.setData({
['multiArray[2]']: temp
});
} else if (num == 4 || num == 6 || num == 9 || num == 11) { //判断30天的月份
if (num == today) {
for (let i = hasday+1; i <= 30; i++) {
if (i < 10) {
i = "0" + i;
}
temp.push("" + i);
}
} else {
for (let i = 1; i <= 30; i++) {
if (i < 10) {
i = "0" + i;
}
temp.push("" + i);
}
}
this.setData({
['multiArray[2]']: temp
});
} else if (num == 2) { //判断2月份天数
let year = parseInt(this.data.choose_year);
console.log(year);
if (((year % 400 == 0) || (year % 100 != 0)) && (year % 4 == 0)) {
for (let i = 1; i <= 29; i++) {
if (i < 10) {
i = "0" + i;
}
temp.push("" + i);
}
this.setData({
['multiArray[2]']: temp
});
} else {
for (let i = 1; i <= 28; i++) {
if (i < 10) {
i = "0" + i;
}
temp.push("" + i);
}
this.setData({
['multiArray[2]']: temp
});
}
}
console.log(this.data.multiArray[2]);
}
let data = {
multiArray: this.data.multiArray,
multiIndex: this.data.multiIndex
};
data.multiIndex[e.detail.column] = e.detail.value;
this.setData(data);
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.whetherHaveLogin();
this.getBorrowList();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
/**
* 头部导航栏切换
* @bindContribute 贡献书籍
* @bindBorrow 我要借书
*/
bindContribute(){
this.setData({
rightMove: '',
switchContent:'贡献书籍',
switchHide: true
})
},
bindBorrow(){
this.setData({
rightMove:'right-move',
switchContent: '我要借书',
switchHide:false
})
},
/**
* 选择宿舍地址
*/
// 执行动画
startAnimation: function (isShow, offset) {
var that = this
var offsetTem
if (offset == 0) {
offsetTem = offset
} else {
offsetTem = offset + 'rpx'
}
this.animation.translateY(offset).step()
this.setData({
animationData: this.animation.export(),
isVisible: isShow
})
console.log(that.data)
},
// 点击所在地区弹出选择框
selectDistrict: function (e) {
var that = this
console.log('111111111')
if (that.data.addressMenuIsShow) {
return
}f
that.startAddressAnimation(true)
},
// 执行动画
startAddressAnimation: function (isShow) {
console.log(isShow)
var that = this
if (isShow) {
that.animation.translateY(0 + 'vh').step()
} else {
that.animation.translateY(40 + 'vh').step()
}
that.setData({
animationAddressMenu: that.animation.export(),
addressMenuIsShow: isShow,
})
},
// 点击地区选择取消按钮
cityCancel: function (e) {
this.startAddressAnimation(false)
},
// 点击地区选择确定按钮
citySure: function (e) {
var that = this
var city = that.data.city
var value = that.data.value
that.startAddressAnimation(false)
// 将选择的城市信息显示到输入框
var areaInfo = that.data.provinces[value[0]].name+that.data.citys[value[1]].name+that.data.areas[value[2]].name
that.setData({
areaInfo: areaInfo,
canSubmitFlag3:true
})
wx.setStorageSync('form_contri_areaInfo', areaInfo)
},
hideCitySelected: function (e) {
console.log(e)
this.startAddressAnimation(false)
},
// 处理省市县联动逻辑
cityChange: function (e) {
console.log(e)
var value = e.detail.value
var provinces = this.data.provinces
var citys = this.data.citys
var areas = this.data.areas
var provinceNum = value[0]
var cityNum = value[1]
var countyNum = value[2]
if (this.data.value[0] != provinceNum) {
var id = provinces[provinceNum].id
this.setData({
value: [provinceNum, 0, 0],
citys: address.citys[id],
areas: address.areas[address.citys[id][0].id],
})
} else if (this.data.value[1] != cityNum) {
var id = citys[cityNum].id
this.setData({
value: [provinceNum, cityNum, 0],
areas: address.areas[citys[cityNum].id],
})
} else {
this.setData({
value: [provinceNum, cityNum, countyNum]
})
}
console.log(this.data)
},
//贡献书籍组件 传事件给父组件
onMyEvent(e){
console.log(e);
//调用选择宿舍picker组件事件
this.selectDistrict();
},
// //我要借书组件 传事件给父组件
// borrowOnMyEvent(e) {
// console.log(e);
// //调用选择宿舍picker组件事件
// this.selectDistrict();
// },
//判断是否授权登录了
whetherHaveLogin(){
//判断是否登录了
console.log(app.globalData.userInfo);
if (app.globalData.userInfo) {
console.log('登录了');
this.zhuanzhuanTipsModal();
} else {
console.log('m没有登录 跳去我的页面');
wx.showModal({
title: '提示',
content: '请先授权登录',
success(res) {
if (res.confirm) {
wx.switchTab({
url: '../user/index',
})
} else if (res.cancel) {
wx.switchTab({
url: '../index/index',
})
}
}
})
}
},
zhuanzhuanTipsModal(){
//进来页面 出现 【贡献书籍】的提示
let contributeTipShow = wx.getStorageSync('contributeTip');
console.log(contributeTipShow);
if (contributeTipShow == 'noShow') {
console.log('不再提示了');
} else {
console.log('又来提示');
wx.showModal({
content: '谢谢你这个帅气/漂亮又慷慨的人儿,你终于找到我们啦(///▽///)~我们会按照你所填写的信息进行上门收书服务;\r\n同时,你也可以选择亲自将书送到我们的工作室(黎灿楼网园308),期待你的到来~',
showCancel: false,
success(res) {
if (res.confirm) {
console.log('用户点击确定');
wx.setStorageSync('contributeTip', 'noShow')
}
}
})
}
},
//获取借书清单
getBorrowList(){
let data = wx.getStorageSync('borrowBookArray');
let borrowBook_urls = [];
let borrowBook_bookid=[];
for (var i = 0; i < data.length; i++) {
borrowBook_urls.push(data[i].resource_url);
borrowBook_bookid.push(data[i].id);
}
this.setData({
borrowList:data,
borrowBook_urls: borrowBook_urls,
borrowBook_bookid: borrowBook_bookid
})
},
//刷新 我要借书的数组data
refreshBorrowData(e){
console.log(e);
this.getBorrowList();
},
// swiperChange(e){
// // this.setData({
// // swiperCurrent: e.detail.current
// // })
// let _this=this;
// console.log(e);
// let current=e.detail.current;
// if(current==2){
// wx.setStorageSync('zhuan_guidePageForContribute', 'yeeees')
// _this.setData({
// guidePageShow:false
// })
// }
// }
})
|
/* 2D VECTOR MATH
The vector class is easy to use, but it is NOT optimized!
(Each vector operation has computational overhead so that
the different coordinates are updated and easy to use.)
Examples of vectors:
v1 = xy(3, 4)
v2 = rth(6, Math.PI/2) // equivalent to xy(0, 6)
v3 = rth(6, radians(90)) // same as v2
The vectors will automatically compute the coordinates
in both rectangular and polar coordinate systems:
v1.r => 5
v2.y => 6
Display vectors:
v1.toString() => "xy(3,4)"
v2.toString() => "rth(6,1.5707963267948966)"
round(v2, 2).toString() => "rth(6,1.57)"
Create new vectors with sundry vector operations:
v4 = add(v1, v2); v4 => xy(3, 10)
v5 = scale(v1, 10); v5 => xy(30, 40)
v6 = rotate(v1, Math.PI); v6 => rth(3, -4)
(see code for full list of operations)
Perform an operation directly on a vector:
v1.subtract(xy(1, 1)); v1 => xy(2, 3)
v2.yreflect(); v2 => rth(-6, 1.57...)
Declare a vector to be constant; operations will not affect it:
v7 = xy(7, 70); v7.add(v1); v7 => xy(7, 70)
*/
// CONVENTIONS:
// Everything in this script is for two dimensions
// All angles are in radians, unless otherwise specified
// Modes (coordinate systems)
modes = {
xy: ["xy", "x", "y"],
rth: ["r\u03B8", "r", "th"]};
// 2D vectors
function vector(vec_params, mode) {
vec_params._set_rth = function(r, th, override_constant) {
if (this.constant && !override_constant) return;
this.r = r;
this.th = mod(th, 2*Math.PI);
this._update_xy(override_constant);
}
vec_params._set_xy = function(x, y, override_constant) {
if (this.constant && !override_constant) return;
this.x = x;
this.y = y;
this._update_rth(override_constant);
}
vec_params._update_rth = function(override_constant) {
if (this.constant && !override_constant) return;
this.r = Math.sqrt(this.x*this.x + this.y*this.y);
this.th = mod(Math.atan2(this.y, this.x), 2*Math.PI);
}
vec_params._update_xy = function(override_constant) {
if (this.constant && !override_constant) return;
this.x = this.r * Math.cos(this.th);
this.y = this.r * Math.sin(this.th);
}
vec_params.add = function(v) {
this._set_xy(this.x + v.x, this.y + v.y);
return this;
}
vec_params.subtract = function(v) {
this._set_xy(this.x - v.x, this.y - v.y);
return this;
}
vec_params.neg = function() {
this._set_rth(-this.r, this.th);
return this;
}
vec_params.xshift = function(dx) {
this._set_xy(this.x + dx, this.y);
return this;
}
vec_params.yshift = function(dy) {
this._set_xy(this.x, this.y + dy);
return this;
}
vec_params.normalize = function(r) {
if (r == null) r = 1;
this._set_rth(r, this.th);
}
vec_params.scale = function(c) {
this._set_rth(this.r * c, this.th);
return this;
}
vec_params.rotate = function(radians) {
this._set_rth(this.r, this.th + radians);
return this;
}
vec_params.xreflect = function() {
this._set_xy(this.x * -1, this.y);
return this;
}
vec_params.yreflect = function() {
this._set_xy(this.x, this.y * -1);
return this;
}
vec_params.vmod = function(n) {
this._set_xy(mod(this.x, n.x), mod(this.y, n.y));
return this;
}
vec_params.round = function(decimals) {
this._set_xy(round(this.x, decimals), round(this.y, decimals), true);
return this;
}
vec_params.toString = function() {
return this.mode[0] + "(" + vec_params[vec_params.mode[1]] + "," + vec_params[vec_params.mode[2]] + ")";
}
vec_params.marker = function(ctx) {
marker(ctx, this)
}
vec_params.arrowOn = function(ctx, center, color) {
if (!color) { color = 'white' };
ctx.fillStyle = color;
ctx.strokeStyle = color;
if (!center) { center = xy(0, 0); }
line(ctx, center, this);
arrowhead1 = rth(-5, this.th);
arrowhead1.rotate(radians(20));
arrowhead1.add(this);
arrowhead2 = rth(-5, this.th);
arrowhead2.rotate(radians(-20));
arrowhead2.add(this);
ctx.beginPath()
ctx.moveTo(arrowhead1.x, arrowhead1.y);
ctx.lineTo(this.x, this.y);
ctx.lineTo(arrowhead2.x, arrowhead2.y);
ctx.fill();
}
if (mode && !vec_params.mode) { vec_params.mode = mode; }
if (vec_params.x!=null && vec_params.y!=null) {
vec_params._set_xy(vec_params.x, vec_params.y, true);
if (!vec_params.mode) { vec_params.mode = modes.xy; }
}
else if (vec_params.r!=null && vec_params.th!=null) {
vec_params.th = mod(vec_params.th, 2*Math.PI);
vec_params._set_rth(vec_params.r, vec_params.th, true)
if (!vec_params.mode) { vec_params.mode = modes.rth; }
}
else {
throw "argument error: a vector must be constructed with a complete set of coordinates."
}
return vec_params;
}
function xy(x, y, constant) { return vector({x:x, y:y, constant:constant}); }
function rth(r, th, constant) { return vector({r:r, th:th, constant:constant}); }
// Comparative operators
function equals(v1, v2) { return (v1.x == v2.x && v1.y == v2.y); }
// Additive operators
function neg(v) { return xy(-v.x, -v.y); }
function add(v1, v2) { return xy(v1.x+v2.x, v1.y+v2.y); }
function subtract(v1, v2) { return xy(v1.x-v2.x, v1.y-v2.y); }
function xshift(v, x) { return xy(v.x+x, v.y); }
function yshift(v, y) { return xy(v.x, v.y+y); }
function xyshift(v, x, y) { return xy(v.x+x, v.y+y); }
// Multiplicative operators
function scale(v, c) { return xy(v.x*c, v.y*c); }
function xreflect(v) { return xy(-v.x, v.y); }
function yreflect(v) { return xy(v.x, -v.y); }
function xy_inv(v) { return xy(1/v.x, 1/v.y); }
function dot(vectors) {
// TODO: generalize this so that it will take a list OR multiple arguments.
// TODO: also, make it recursive.
x = 1; y = 1;
for (var i = 0; i < arguments.length; i++) {
x *= arguments[i].x;
y *= arguments[i].y;
}
return xy(x, y);
}
// Other operations
function rotate(v, radians) {
return rth(v.r, v.th + radians);
}
function distance(v1, v2) {
return Math.abs(v1.r - v2.r);
}
function midpoint(v1, v2) {
return scale(add(v1, v2), 0.5);
}
// Specific vectors (constants)
vzero = xy(0, 0, true);
vunit = { // Unit vectors
x: xy(1, 0, true), // x direction
y: xy(0, 1, true), // y direction
r: function(th) { // r direction (depends on angle)
return xy(Math.cos(th), Math.sin(th), true);
},
th: function(th) { // theta direction (depends on angle)
return xy(-Math.sin(th), Math.cos(th), true);
}
}
function randXY(v1, v2) {
if (v2 == null) {
return xy(Math.random()*v1.x, Math.random()*v1.y);
}
return xy(v1.x+Math.random()*(v2.x-v1.x), v1.y+Math.random()*(v2.y-v1.y));
}
function randAngle(r, th1, th2) {
if (th1 == null && th2 == null) {
th1 = 0;
th2 = Math.PI*2;
}
else if (th2 == null) {
th2 = th1;
th1 = 0;
}
return rth(r, th1+Math.random()*(th2-th1));
}
// Convert between degrees and radians
function radians(deg) {
return 2*Math.PI*deg/360;
}
function degrees(rad) {
return 360*rad/(2*Math.PI);
}
// This is a better mod function. (returns x mod n)
// Javascript mod: -1 % n ==> 1
// This function: mod(-1, n) ==> n-1
function mod(x, n) {
return n*(x/n - Math.floor(x/n))
}
function vmod(v, n) {
return xy(mod(v.x, n.x), mod(v.y, n.y))
}
// Wrapper for Math.round
function round(x, decimals) {
if (decimals == null) decimals = 0;
return Math.round(x*Math.pow(10, decimals))/Math.pow(10, decimals)
}
// This applies the round function to the X and Y coords of a vector
function vround(v, decimals) {
return xy(round(v.x, decimals), round(v.y, decimals));
}
normalize = function(v, r) {
if (r == null) r = 1;
return rth(r, v.th);s
}
|
import React from 'react';
class ResultView extends React.Component {
render() {
if (typeof this.props.formObj !== 'object') { //this.state.formObj
return <p> unable to generate form </p>;
}
let keys = Object.keys(this.props.formObj);
let returnVal = [];
let reactKey = 0;
for (let k in keys) {
let keyName = keys[k];
let value = this.props.formObj[keys[k]];
if (typeof value === 'string') {
returnVal.push(<Info className={keyName} message={value} key={reactKey}/>);
reactKey++;
} else if (keyName === 'consents') {
for (let j in value) {
returnVal.push(<Consent key={reactKey} consentTree={value[j]}/>);
reactKey++;
}
}
}
return (
returnVal
);
}
}
function Info(props) {
switch (props.className) {
case 'name':
return (
<h2>{props.message}</h2>
)
case 'preface':
return (
<p>{props.message}</p>
)
case 'postface':
return (
<p>{props.message}</p>
)
default:
return;
}
}
class Consent extends React.Component {
render() {
// put all of PII objects into a list of PII components for rendering
let listItems = [];
let piis = this.props.consentTree.piis; // todo: make sure this exists
for (let k in piis) {
listItems.push(
<PII key={k} name={piis[k].name} description={piis[k].description} />
);
}
let processorList = [];
let processors = this.props.consentTree.processors;
for (let j in processors) {
processorList.push(
<Processor key={j} value={processors[j]}/>
);
}
return (
<div className='consent'>
<div className='consent-header'>
{this.props.consentTree.name}
</div>
<div className='consent-description'>
Description: {this.props.consentTree.description}
</div>
<div>
<h3> Where will the data go? </h3>
<ul>
{processorList}
</ul>
</div>
<form className="form-style">
<ul>
{listItems}
<li>
<input type="checkbox" value="Consent" />
<input type="submit" value="Send This" />
</li>
</ul>
</form>
<div className='consent-optoutConsequence'>
{this.props.consentTree.optoutConsequence}
</div>
</div>
);
}
}
class PII extends React.Component {
render() {
return (
<li>
<label htmlFor="email">{this.props.name}</label>
{this.props.name === 'IP Address' ? '' :
<input type="email" name={this.props.name} maxLength="100"/> }
<span>{this.props.description}</span>
</li>
);
}
}
function Processor(props) {
return (
<li>
{props.value.name}
</li>
);
}
export default ResultView;
|
import React from 'react'
import '../../../../style/bms/reg.css'
export default class Reg extends React.Component{
// const ControlLabel = 'input';
render(){
return(
<div className="reg-bg">
<div className="reg-box">
<div className="reg-content-box">
<from>
<div className="form-group">
<label >注册邮箱</label>
<input type="email" placeholder="请输入密码"></input>
</div>
<div className="form-group">
<label >用户名</label>
<input type="text" placeholder="请输入用户名"></input>
</div>
<div className="form-group">
<label >密码</label>
<input type="password" placeholder="请输入密码"></input>
</div>
<div className="checkbox">
<label>记住密码</label>
<input type="checkbox"/>
</div>
<button type="submit" className="btn btn-default">提交注册 </button>
</from>
</div>
</div>
</div>
)
}
}
|
import React from 'react';
import { connect } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { getRuleFields } from './netaudit-actions';
import { AgGridReact } from 'ag-grid-react';
import { getQueryForAGGridSortAndFilter } from '../../utils/aggrid-to-jqdt-queries';
import axios from '../../api/config';
import { ProgressBar, Intent, ButtonGroup, Button } from "@blueprintjs/core";
class NetAuditRuleData extends React.Component{
static icon = "wrench";
static label = "";
constructor(props){
super(props);
this.columnDefs = []
this.state = {
columnDefs: [],
rowData: [
],
rowBuffer: 0,
rowSelection: "multiple",
rowModelType: "infinite",
paginationPageSize: 100,
cacheOverflowSize: 2,
maxConcurrentDatasourceRequests: 2,
infiniteInitialRowCount: 1,
maxBlocksInCache: 2
};
}
componentDidMount() {
if(this.props.fields.length === 0 ){
this.props.dispatch(getRuleFields(this.props.options.ruleId));
}
}
updateColumnDefs(){
this.columnDef = [];
if( typeof this.props.fields === 'undefined' ) return;
for(var key in this.props.fields){
let columnName = this.props.fields[key]
if( columnName === 'pk') continue;
this.columnDef.push(
{headerName: columnName.toUpperCase(), field: columnName,
filter: "agTextColumnFilter"},);
}
}
onGridReady(params) {
this.gridApi = params.api;
this.gridColumnApi = params.columnApi;
let _columnApi = params.columnApi;
let token = this.props.token;
let _fields = this.props.fields;
let _dispatch = this.props.dispatch;
let ruleId = this.props.options.ruleId;
let dataSource = {
rowCount: null,
getRows: function(params) {
let page = params.startRow;
let length= params.endRow - params.startRow;
let apiEndPoint = "/api/networkaudit/rule/dt/" + ruleId + "?start="+ page + "&length=" + length;
let query = getQueryForAGGridSortAndFilter( _fields,
params.sortModel, params.filterModel, _columnApi.getAllColumns());
apiEndPoint += "&" + query;
axios.get(apiEndPoint,{
headers: { "Authorization": token }
})
.then(response => {
var lastRow = response.data.recordsFiltered;
params.successCallback(response.data.data, lastRow);
})
.catch(function(error){
//_dispatch(notifyNodesRequestFailure(entity, "Failed to fetch data"));
});
}
};
this.gridApi.setDatasource(dataSource);
}
render(){
this.updateColumnDefs();
return (
<div>
<h3><FontAwesomeIcon icon={NetAuditRuleData.icon}/> {this.props.options.title}</h3>
<div className="card">
<div className="card-body p-2">
<div className="mb-1">
<ButtonGroup minimal={true}>
<Button icon="refresh" onClick={this.refreshData}></Button>
<Button icon="download" onClick={this.downloadData}></Button>
</ButtonGroup>
</div>
<div className="ag-theme-balham" style={{width: '100%', height: "100%", boxSizing: "border-box"}}>
<AgGridReact
pagination={true}
gridAutoHeight={true}
columnDefs={this.columnDef}
components={this.state.components}
enableColResize={true}
rowBuffer={this.state.rowBuffer}
debug={true}
rowSelection={this.state.rowSelection}
rowDeselection={true}
rowModelType={this.state.rowModelType}
paginationPageSize={this.state.paginationPageSize}
cacheOverflowSize={this.state.cacheOverflowSize}
maxConcurrentDatasourceRequests={this.state.maxConcurrentDatasourceRequests}
infiniteInitialRowCount={this.state.infiniteInitialRowCount}
maxBlocksInCache={this.state.maxBlocksInCache}
enableServerSideSorting={true}
enableServerSideFilter={true}
onGridReady={this.onGridReady.bind(this)}
>
</AgGridReact>
</div>
</div>
</div>
</div>
);
}
}
function mapStateToProps(state, ownProps){
if ( typeof state.netaudit.rulesdata[ownProps.options.ruleId] === 'undefined'){
return {
requesting: false,
requestError: null,
token: state.session.userDetails.token,
fields: []
};
}
return {
requesting: state.netaudit.rulesdata[ownProps.options.ruleId].requesting,
requestError: state.netaudit.rulesdata[ownProps.options.ruleId].requestError,
token: state.session.userDetails.token,
fields: state.netaudit.rulesdata[ownProps.options.ruleId].fields
};
}
export default connect(mapStateToProps)(NetAuditRuleData);
|
export const symbolPrefix = Symbol('prefix')
export const symbolContext = Symbol('context');
export function controller(path) {
return (target)=>{
target.prototype[symbolPrefix] =path;
target.prototype[symbolContext] =null;
}
}
function baseMethods(target, key, descriptor,name,path) {
let method = descriptor.value;
descriptor.value = async (arg)=>{
arg.url = target[symbolPrefix]?target[symbolPrefix]+path:path;
arg.method=name;
method.call(target[symbolContext],arg)
}
}
export function get(path) {
return function (target, key, descriptor) {
baseMethods(target, key, descriptor,'get',path)
}
}
export function post(path) {
return function (target, key, descriptor) {
baseMethods(target, key, descriptor,'post',path)
}
}
export function showNotice(target, key, descriptor) {
let method = descriptor.value;
descriptor.value = (arg)=>{
arg.successNotice=true;
method.call(target[symbolContext],arg)
}
}
|
var startingForms = {};
$(document).ready(function () {
$.ajax({
url: "/Info/StartingForms"
}).done(function (response) {
startingForms = shuffle(response);
$("#FormSourceId").val(startingForms[0].Id);
var selectionsBox = $('#selections');
// load form dropdown
for (var i = 0; i < startingForms.length; i++) {
var form = startingForms[i];
selectionsBox.append("<img src='https://images.transformaniatime.com/portraits/Thumbnails/100/" + form.PortraitUrl + "' class='selectable' onclick='setForm(\"" + form.Id + "\")'></img>");
}
if ($("#oldFirstName").val() !== "") {
$("#FirstName").val($("#oldFirstName").val());
$("#LastName").val($("#oldLastName").val());
$("#FormSourceId").val($("#oldFormSourceId").val());
} else {
randomize();
}
renderPortrait();
});
$('#itemBox').change(function () {
if ($(this).is(':checked')) {
$('#itemForm').prop('disabled', false);
$('#itemForm').prop('class', 'enable');
} else {
$('#itemForm').prop('disabled', 'disabled');
$('#itemForm').prop('class', 'disabled');
}
});
$("#randomize").click(function () {
randomize();
renderPortrait();
});
$("#FormSourceId").change(function () {
renderPortrait();
});
$("#MigrateLetters").prop('checked', true);
});
function setForm(formSourceId) {
$("#FormSourceId").val(formSourceId);
renderPortrait();
}
function renderPortrait() {
var x = $("#FormSourceId").val();
var form = startingForms.find(function (element) {
return element.Id == x;
});
$("#portrait").attr("src", "https://images.transformaniatime.com/portraits/" + form.PortraitUrl);
}
function shuffle(array) {
var newArray = [];
while (array.length > 0) {
var index = Math.floor(Math.random() * array.length);
newArray.push(array[index]);
array.splice(index, 1);
}
return newArray;
}
function randomize() {
var gender;
setForm(startingForms[Math.floor(Math.random() * startingForms.length)].Id);
var form = startingForms.find(function (element) {
return element.Id == $("#FormSourceId").val();
});
if (form.FriendlyName == "Regular Girl") {
gender = "female";
} else {
gender = "male";
}
if (gender === "male") {
var randMale = Math.floor(Math.random() * namesBox.maleNames.length);
$("#FirstName").val(namesBox.maleNames[randMale]);
} else {
var randFemale = Math.floor(Math.random() * namesBox.femaleNames.length);
$("#FirstName").val(namesBox.femaleNames[randFemale]);
}
var randLast = Math.floor(Math.random() * namesBox.lastNames.length);
$("#LastName").val(namesBox.lastNames[randLast]);
}
|
import React,{Component} from 'react';
import {createStudent,updateStudent} from './ApiCalls.jsx';
class CreateStudentForm extends Component{
constructor(props) {
super(props);
this.state = {
studentId : '',
studentName : '',
studentContact : '',
studentAddress : ''
}
};
onChange =(stu) => {
const name = stu.target.name;
const value = stu.target.value;
this.setState({
[name] : value
});
}
onCreateStudent = async() => {
var studentData = {
"student_name" : this.state.studentName,
"student_id" : this.state.studentId,
"student_contact" : parseInt(this.state.studentContact),
"student_address" : this.state.studentAddress
};
if(this.props.isEditPage){
const updateStudentData = {
studentId : this.props.student.student_id,
updateInformation : studentData,
}
await updateStudent(updateStudentData);
} else {
await createStudent(studentData);
}
this.props.onCreateStudent();
}
componentDidMount(){
if(this.props.isEditPage){
this.setState({
studentId : this.props.student.student_id,
studentName : this.props.student.student_name,
studentContact : this.props.student.student_contact,
studentAddress : this.props.student.student_address
});
}
}
render() {
const isEditPage = this.props.isEditPage;
let stuId = this.state.studentId;
let stuName = this.state.studentName;
let stuContact = this.state.studentContact;
let stuAddress = this.state.studentAddress;
return(
<div className='create-student-form'>
<div className="create-container">
<form action="#">
<label htmlFor="Stuid">Student Id</label>
<input type="text" onChange={this.onChange} id="stuId" name="studentId" placeholder="Student ID" defaultValue={stuId} />
<label htmlFor="fname">Student Name</label>
<input type="text" onChange={this.onChange} id="fname" name="studentName" placeholder="Student Name" defaultValue={stuName} />
<label htmlFor="address">Address</label>
<input type="text" onChange={this.onChange} id="address" name="studentAddress" placeholder="Student Address" defaultValue={stuAddress} />
<label htmlFor="contact">Contact Number</label>
<input type="tel" onChange={this.onChange} id="contact" name="studentContact" placeholder="Student Contact" defaultValue={stuContact} />
<button type="button" onClick={this.onCreateStudent} id="button" name="create">
{isEditPage ? 'Update' : 'Create'}
</button>
</form>
</div>
</div>
);
}
}
export default CreateStudentForm;
|
const router = require('express').Router();
const User = require('../models/userModel');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
//register
router.post('/', async (req, res) => {
try {
const { fullName, email, password, passwordVerify } = req.body;
//validation
if (!fullName || !email || !password || !passwordVerify) {
return res
.status(400)
.json({ errorMessage: 'Please enter all required fields' });
}
if (password.length < 6) {
return res.status(400).json({
errorMessage: 'Password should be longer than 6 characters',
});
}
if (password !== passwordVerify) {
return res.status(400).json({
errorMessage: 'Both passwords do not match',
});
}
const existingUser = await User.findOne({ email });
if (existingUser) {
return res.status(400).json({
errorMessage: 'An account already exists with this email',
});
}
//haashing the password
const salt = await bcrypt.genSalt();
const passwordHash = await bcrypt.hash(password, salt);
// creating new user in database
const newUser = new User({
fullName,
email,
passwordHash,
});
//saving the user
const savedUser = await newUser.save();
// log the user in
//making a jwt token
const token = jwt.sign(
{
user: savedUser.fullName,
},
process.env.JWT_SECRET
);
// saving the JWT token in HTTP only cookie
res.cookie('token', token, { httpOnly: true }).send();
} catch (err) {
console.error(err);
res.status(500).send();
}
});
//login
router.post('/login', async (req, res) => {
try {
const { email, password } = req.body;
//validate
if (!email || !password) {
return res
.status(400)
.json({ errorMessage: 'Please enter all required fields' });
}
//checking if user exists in database
const existingUser = await User.findOne({ email });
if (!existingUser) {
return res.status(401).json({
errorMessage: 'There is no account with this email address',
});
}
const passwordCorrect = await bcrypt.compare(
password,
existingUser.passwordHash
);
if (!passwordCorrect) {
return res.status(401).json({
errorMessage: 'Password is incorrect',
});
}
// log the user in
//making a jwt token
const token = jwt.sign(
{
user: existingUser._id,
},
process.env.JWT_SECRET
);
// saving the JWT token in HTTP only cookie
res.cookie('token', token, { httpOnly: true }).send();
} catch (err) {
console.error(err);
res.status(500).send();
}
});
//logging the user out
router.get('/logout', (req, res) => {
res.cookie('token', '', { httpOnly: true, expires: new Date(0) }).send();
});
module.exports = router;
|
self.__precacheManifest = [
{
"revision": "fa3b3379364551d9100a544850f1bf70",
"url": "/lol-builds/static/media/jesusGirando.fa3b3379.gif"
},
{
"revision": "ea683c0c38e54716a743",
"url": "/lol-builds/static/js/runtime~main.84e1de9c.js"
},
{
"revision": "55c87719f44b5e9f1ce4",
"url": "/lol-builds/static/js/main.ae5e6d8b.chunk.js"
},
{
"revision": "cad64e2c761d37acc0c9",
"url": "/lol-builds/static/js/2.c81b4708.chunk.js"
},
{
"revision": "55c87719f44b5e9f1ce4",
"url": "/lol-builds/static/css/main.64f1bcc7.chunk.css"
},
{
"revision": "df90e09cd6ab3d3759394e4c7d4072fe",
"url": "/lol-builds/index.html"
}
];
|
var selectedRow = null;
var change = false;
$(document).ready(function () {
$("#dialog_subform").dialog("destroy");
$("#dialog_subform").dialog({
modal: true,
autoOpen: false,
width: screen.width * 0.5,
height: screen.height * 0.4,
buttons: { Thoát: function () {
$(this).dialog("close");
}
}
});
$("#dialog_subform").dialog("option", "draggable", true);
$("#dialog_subform").dialog("close");
$("#dialog_loading").dialog("destroy");
$("#dialog_loading").dialog({
modal: true,
autoOpen: false,
width: 300,
height: 120
});
});
function showDialog(file, paraname, title) {
$(document).ready(function () {
//showLoading();
//var d = new Date();
//var s = d.getMilliseconds();
var url = file + '?' + paraname;
$("#framesubform").attr("src", url);
$("#dialog_subform").dialog("open");
});
}
function openDialog() {
$("#dialog_loading").dialog("close");
$("#dialog_subform").dialog("open");
}
function showDetail(key, session_id, row) {
selectedRow = row;
change = false;
showDialog('Capnhat.aspx', 'key=' + key + '&session_id=' + session_id);
}
function disableRow() {
if (selectedRow == null) return;
selectedRow.className = 'disabledrow';
}
function enableRow() {
//nếu không được thì dùng onunload của form update để gọi hàm này
//bằng cách kiểm tra trong from xem chkByPass... có chọn hay không thì mới gọi.
if (selectedRow == null) return;
selectedRow.className = 'default';
}
function selectRow(row) {
if (row.className == 'disabledrow') return;
row.className = 'selectedrow';
}
function unSelectRow(row) {
if (row.className == 'disabledrow') return;
row.className = 'default';
}
function showLoading() {
$("#dialog_loading").dialog("open");
}
function showError(error) {
document.getElementById('dialog_loading').innerHTML = error;
}
|
let date = new Date();
let c_month = date.getMonth() + 1;
let c_month_day = date.getDate();
let c_year = date.getFullYear();
let user_events_obj = {};
let months = ["January","February","March","April","May","June","July",
"August","September","October","November","December"];
let focused_event_id=0;
//put hour tags
for(let i=0;i<24;i++){
let time = i.toString().padStart(2,'0')+":"+"00";
$("#day-gantt").append("<div class=\"time-slot\" id="+time+"><h>"+time+"</h></div>");
}
eel.get_stats(c_year, c_month)(ret => populate_calendar_data("#week-rows",ret));
//-=-=+__++__+=-_++__++__++__++_-==-_++_-==-_++_
function populate_calendar_data(dom_id, calendar_data){
let days_list = calendar_data.days;
let user_events = calendar_data.user_events;
let idx = 0;
let weeks = $(dom_id).children().toArray();
for(week of weeks){
let days = week.children;
for(day of days){
day.firstElementChild.textContent = days_list[idx][2];
day.addEventListener("click", display_day_panel);
day.setAttribute("id",days_list[idx] + "");
day.addEventListener("click", function(){this_day = this.id.split(",")[2];eel.package_events_array_for_js(c_year,c_month,parseInt(this_day))(ret => draw_gannt(ret,this_day))})
if(days_list[idx][1] < c_month){
day.classList.add("prev_month");
}
if(days_list[idx][1] > c_month){
day.classList.add("next_month");
}
if(days_list[idx][0] == c_year && days_list[idx][1] == c_month && days_list[idx][2]==c_month_day){
day.classList.add("today");
}
let l = user_events[days_list[idx]+""]
if( l > 0){
$(day.children[1]).html("<div style=\"display:flex\"><img src=\"../resc/PngItem_314246.png\" height=\"16\" width=\"16\" style=\"margin-top: 6px; margin-left: 3px \"> <h4 style=\"color:#0d0d63\">"+l+"</h4></div>");
}
idx = idx+1;
}
}
user_events_obj = user_events;
}
function display_day_panel(){
$("#day-side-panel").css("width","500px");
$("#big-trans-back-button").css("visibility","visible")
$("#main").css("filter","blur(0.5em)");
update_date_info(this.id);
}
function hide_day_panel(){
$("#day-side-panel").css("width","0px");
$("#big-trans-back-button").css("visibility","hidden");
$("#main").css("filter","none");
}
function update_date_info(date){
x = date.split(",");
$("#day-date-info").children()[0].textContent = x[2];
$("#day-date-info").children()[1].firstElementChild.textContent = months[x[1]-1];
$("#day-date-info").children()[1].lastElementChild.textContent = x[0];
}
function draw_gannt(array, day_iq){
x_offset = 80;
slot_offset = 40;
svg = $("#day-svg");
svg.html("");
for(slot of array){
for(evnt of slot){
x = x_offset;
y1 = evnt[4][2] < day_iq ?0 :evnt[4][3] * 60 + evnt[4][4];
y2 = evnt[5][2] > day_iq ?60*24:evnt[5][3] * 60 + evnt[5][4];
importance = evnt[2];
svg.append("<line onclick=\"display_event_panel(this)\" onmouseleave=\"mouseOUT_event(this)\" onmouseenter=\"mouseIN_event(this)\" class=\"event_id_"+ evnt[0] + "\" x1="+x+" y1="+y1+" x2="+x+" y2="+y2+" stroke-linecap=\"round\" style=\"stroke:#b50b05;stroke-width:7;\"/>");
svg.append("<circle onclick=\"display_event_panel(this)\" onmouseleave=\"mouseOUT_event(this)\" onmouseenter=\"mouseIN_event(this)\" class=\"event_id_"+ evnt[0] +"\" cx="+x+" cy="+y1+" r=\"8\"fill=\"#b50b05\" on/>");
}
x_offset = x_offset + slot_offset;
}
svg.html(svg.html());
}
function mouseIN_event(svg){
//find all elements of this class
let evnt_class = svg.className.baseVal;
let elems = document.getElementsByClassName(evnt_class);
for(elem of elems){
elem.style.stroke = "white";
}
}
function mouseOUT_event(svg){
//find all elements of this class
let evnt_class = svg.className.baseVal;
let elems = document.getElementsByClassName(evnt_class);
for(elem of elems){
elem.style.stroke = "#b50b05";
}
}
function display_event_panel(svg){
$("#event-side-panel").css("width","500px");
event_id = parseInt(svg.className.baseVal.split('_')[2]);
focused_event_id =event_id;
eel.get_event_info_from_id(event_id)(ret => show_event_info(ret));
}
function display_edit_event(){
$("#edit-event-panel").css("width","500px");
eel.get_event_info_from_id(focused_event_id)(evnt =>{
console.log(evnt);
$("#edit-start-date").attr("value",evnt[3][0].toString().padStart(2,'0')+"-"+evnt[3][1].toString().padStart(2,'0')+"-"+evnt[3][2].toString().padStart(2,'0'));
$("#edit-start-time").attr("value",evnt[3][3].toString().padStart(2,'0')+":"+evnt[3][4].toString().padStart(2,'0')+":"+evnt[3][5].toString().padStart(2,'0'));
$("#edit-end-date").attr("value",evnt[4][0].toString().padStart(2,'0')+"-"+evnt[4][1].toString().padStart(2,'0')+"-"+evnt[4][2].toString().padStart(2,'0'));
$("#edit-end-time").attr("value",evnt[4][3].toString().padStart(2,'0')+":"+evnt[4][4].toString().padStart(2,'0')+":"+evnt[4][5].toString().padStart(2,'0'));
$("#edit-text").html(evnt[0]);
});
}
function update_event_info(){
let new_start_date = document.getElementById("edit-start-date").value;
new_start_date = new_start_date.split('-').map(x => parseInt(x));
let new_start_time = document.getElementById("edit-start-time").value;
new_start_time = new_start_time.split(':').map(x => parseInt(x));
let new_end_date = document.getElementById("edit-end-date").value;
new_end_date = new_end_date.split('-').map(x => parseInt(x));
let new_end_time = document.getElementById("edit-end-time").value;
new_end_time = new_end_time.split(':').map(x => parseInt(x));
let new_descr = document.getElementById("edit-text").value;
eel.update_event(focused_event_id,new_start_date.concat(new_start_time),new_end_date.concat(new_end_time),new_descr);
eel.get_stats(c_year, c_month)(ret => populate_calendar_data("#week-rows",ret));
}
function show_event_info(event_info){
console.log(event_info);
let starts = new Date(...(event_info[3]));
let ends = new Date(...(event_info[4]));
$("#event-start").html(starts.toLocaleString());
$("#event-end").html(ends.toLocaleString());
$("#event-info").html(event_info[0]);
$("#event-categories").html('');
for(catgr of event_info[1]){
$("#event-categories").append("<li>"+catgr+"</li>")
}
}
function hide_event_panel(){
$("#event-side-panel").css("width","0px");
$("#big-trans-back-button").css("visibility","hidden");
$("#main").css("filter","none");
}
function hide_edit_event(){
$("#edit-event-panel").css("width","0px");
}
function delete_event(){
hide_edit_event();
eel.delete_event(focused_event_id);
}
|
import { Op } from 'sequelize';
import Delivery from '../models/Delivery';
import Mail from '../../lib/Mail';
class DeliveryController {
async index(req, res) {
return res.json({ ok: true });
}
async indexByDeliveryMan(req, res) {
const { id } = req.params;
const deliveries = await Delivery.findAll({
where: {
deliveryman_id: id,
start_date: {
[Op.not]: null
}
}
});
if (!deliveries.length) {
return res.status(400).json({ error: 'No deliveries found' });
}
return res.json(deliveries);
}
async store(req, res) {
// const { recipient_id, deliveryman_id, product, start_date } = req.body;
const delivery = await Delivery.create(req.body);
await Mail.sendMail({
to: 'Guerlak | Fastfeet <fastfeet@fastfeet.com.br>',
subject: 'An order was created!',
text: 'order created text text'
});
return res.json(delivery);
}
async update(req, res) { }
async delete(req, res) { }
}
export default new DeliveryController();
|
export { default } from "./NewWorkout";
|
/*
* @Author: your name
* @Date: 2021-04-30 13:52:48
* @LastEditTime: 2021-04-30 14:08:59
* @LastEditors: Please set LastEditors
* @Description: difference
* @FilePath: \JSUtils\src\modules\Array\difference.js
*/
import { isArray } from "../../utils/utils";
/**
* 创建一个具有唯一array值的数组,每个值不包含在其他给定的数组中。
* @param {Array} array1
* @param {Array|null} array2
*/
function difference(array1, array2) {
if (!isArray(array1)) return;
if (!array2) return array1;
let newArr1 = JSON.parse(JSON.stringify(array1));
let newArr2 = JSON.parse(JSON.stringify(array2));
let res = newArr2.reduce((pre, current) => {
return pre.filter((item) => item !== current);
}, newArr1);
return res;
}
export default difference;
|
(function (threadId, event) {
if ($.state.collapsedThreads().indexOf(threadId) < 0) {
$.state.collapsedThreads.push(threadId);
}
$.util.storageSet("collapsedThreads", $.state.collapsedThreads());
})
|
// variables can contain digits,underscore,letters,$
//cannot start with number
//variables seperation would be camelcase or underscore
const my_bike = 'mt-15';
console.log(my_bike);
const random123 = 0;
console.log(random123);
const $fav_series = "breaking bad";
console.log($fav_series);
//keywords for Assigning variables
//var,let,const
//var and let can re-assign
//const (constant ) can't re-assign
var company;
console.log(typeof company);
let $company = "zoho";
$company = "Google";
console.log($company);
const _company = "facebook";
console.log(_company);
//"" or ''
const fav_dish = 'biriyani\'s is my favorite dish' ;
console.log(fav_dish);
const fav_cusine = 'chinese';
console.log(`my favorite cusine is ${fav_cusine}`);
//string concatenation
//you can do string concatenation in two ways either using + or ``(backticks)
//using backticks is called template string.
const greeting = 'Good morning';
console.log(greeting + ' prabhu prasath!');
console.log(`${greeting} prabhuprasath!`);
|
import React, { useState } from "react";
import ChatList from "./ChatList";
import Room from "./Room";
const ChatPage = ({
userId,
profiles,
rooms,
room,
categoryId,
setCategoryId,
}) => {
const [activeRoom, setActiveRoom] = useState(room);
const handleSetRoom = (val) => setActiveRoom(val);
return (
<div className={"chats-page"}>
<ChatList
userId={userId}
profiles={profiles}
data={rooms}
handleSetRoom={handleSetRoom}
categoryId={categoryId}
setCategoryId={setCategoryId}
/>
<Room
categoryId={categoryId}
userId={profiles[0].id}
sender={
activeRoom
? activeRoom.users.filter((item) => item.id !== userId)[0]
: false
}
room={activeRoom}
/>
</div>
);
};
export default ChatPage;
|
export const getUserState = (state) => state.user;
export const getIsLogin = (state) => state.user.isLogin;
export const getUserId = (state) => state.user.id;
|
({
doInit: function(component, event, helper) {
helper.showSpinner(component);
//var recordId = component.get("v.recordId");
//var applicationId = component.get("v.applicationId");
if (!component.get("v.applicationId")) {
component.set(
"v.applicationId",
component.get("v.recordId")
);
}
helper.prepareAllInformation(component);
},
// The default action when save and continue button is clicked
saveAndContinue: function(component, event, helper) {
helper.showSpinner(component);
var sectionNumber = event.target.dataset.section;
var errorMessageTemplate = component.get('v.documentUploadErrorMessage');
var hasValidNumberOfFiles = false;
if (sectionNumber === '6') {
var numberOfInsurances = component.get('v.allInfoWrapper.listOfInsurancesFields').length;
var numberOfFiles = component.get('v.insuranceFileIds').length;
if (numberOfInsurances === numberOfFiles) {
hasValidNumberOfFiles = true;
} else {
var objectName = 'insurance';
var ObjectName = 'Insurance';
var numberOfRecords = numberOfInsurances;
var message = errorMessageTemplate.replace(/{objectName}/g, objectName).replace(/{ObjectName}/g, ObjectName).replace(/{numberOfRecords}/g, numberOfRecords);
helper.showToast(component, 'error', message, 'Error');
}
} else if (sectionNumber === '7') {
var numberOfLicenses = component.get('v.allInfoWrapper.listOfLicensesFields').length;
var numberOfFiles = component.get('v.licenseFileIds').length;
if (numberOfLicenses === numberOfFiles) {
hasValidNumberOfFiles = true;
} else {
var objectName = 'license';
var ObjectName = 'License';
var numberOfRecords = numberOfLicenses;
var message = errorMessageTemplate.replace(/{objectName}/g, objectName).replace(/{ObjectName}/g, ObjectName).replace(/{numberOfRecords}/g, numberOfRecords);
helper.showToast(component, 'error', message, 'Error');
}
} else if (sectionNumber === '8') {
/*if (component.get('v.certificationFileIds').length === component.get('v.allInfoWrapper.listOfCertificationsFields').length) {
hasValidNumberOfFiles = true;
} else {
helper.showToast(component, 'error', $A.get("$Label.c.Minimum_Certifications"), 'Error');
}*/
hasValidNumberOfFiles = true; // Certification does not require files to be attached.
} else if (sectionNumber === '9') {
var numberOfTaxes = component.get('v.allInfoWrapper.listOfTaxFields').length;
var numberOfFiles = component.get('v.taxFileIds').length;
if (numberOfTaxes === numberOfFiles) {
hasValidNumberOfFiles = true;
} else {
var objectName = 'tax';
var ObjectName = 'Tax';
var numberOfRecords = numberOfTaxes;
var message = errorMessageTemplate.replace(/{objectName}/g, objectName).replace(/{ObjectName}/g, ObjectName).replace(/{numberOfRecords}/g, numberOfRecords);
helper.showToast(component, 'error', message, 'Error');
}
} else if (sectionNumber === '10') {
var numberOfOtherDocs = component.get('v.allInfoWrapper.listOfOtherFields').length;
var numberOfFiles = component.get('v.otherFileIds').length;
if (numberOfOtherDocs === numberOfFiles) {
hasValidNumberOfFiles = true;
} else {
var objectName = 'other document';
var ObjectName = 'Other Document';
var numberOfRecords = numberOfOtherDocs;
var otherDocUploadErrMsg = component.get('v.otherDocumentUploadErrorMessage');
var message = otherDocUploadErrMsg.replace(/{objectName}/g, objectName).replace(/{ObjectName}/g, ObjectName).replace(/{numberOfRecords}/g, numberOfRecords);
helper.showToast(component, 'error', message, 'Error');
}
} else {
hasValidNumberOfFiles = true;
}
if (hasValidNumberOfFiles) {
helper.savePartOfChanges(component, event, sectionNumber);
}
},
/**
* Save this function for Phase 2 implementation
*/
addNewLicense: function(component, event, helper) {
$A.createComponent(
'c:LicenseFileUpload',
{
"ApplicationID": component.get('v.allInfoWrapper.applicationId')
},
function(newComp, status, errorMessage) {
if (status === 'SUCCESS') {
var body = component.get('v.body');
body.push(newComp);
component.set('v.body', body);
}
}
);
},
/**
* When file is uploaded, add the returned ID to the corresponding arrays.
* Functions below should be refactored in the future
*/
handleLicenseFileUpload: function (component, event, helper) {
helper.cleanupFileUpload(component, event, 'license');
},
handleInsuranceFileUpload: function (component, event, helper) {
helper.cleanupFileUpload(component, event, 'insurance');
},
handleCertificationFileUpload: function (component, event, helper) {
helper.cleanupFileUpload(component, event, 'certification');
},
handleTaxFileUpload: function (component, event, helper) {
helper.cleanupFileUpload(component, event, 'tax');
},
handleOtherFileUpload: function (component, event, helper) {
helper.cleanupFileUpload(component, event, 'other');
},
uploadNewAttachment: function(component, event, helper) {
helper.showSpinner(component);
var elementPosition = event.target.dataset.position;
var sectionNumber = event.target.dataset.section;
var allInfo = component.get("v.allInfoWrapper");
var elementId;
var attachmentName;
var parentId;
/*if (sectionNumber === '2') {
elementId = helper.constants.PRIMARY_CONTACT_IMAGE_ID;
attachmentName = helper.constants.PRIMARY_CONTACT_IMAGE;
parentId = allInfo.primaryContactId;
} else*/ if (sectionNumber === '6') {
elementId = helper.constants.INSURANCE_ID;
parentId = allInfo.listOfInsurancesFields[elementPosition][0].recordId;
} else if (sectionNumber === '7') {
elementId = helper.constants.LICENSE_ID;
parentId = allInfo.listOfLicensesFields[elementPosition][0].recordId;
} else if (sectionNumber === '8') {
elementId = helper.constants.CERTIFICATION_ID;
parentId = allInfo.listOfCertificationsFields[elementPosition][0].recordId;
} else if (sectionNumber === '9') {
elementId = helper.constants.TAX_ID;
parentId = allInfo.listOfTaxFields[elementPosition][0].recordId;
} else if (sectionNumber === '10') {
elementId = helper.constants.OTHER_ID;
parentId = allInfo.listOfOtherFields[elementPosition][0].recordId;
}
var fileInputElement = component.find(elementId);
var fileInput;
if (fileInputElement.length) {
fileInput = component.find(elementId)[elementPosition].getElement(); //'uploaded_file'
} else {
fileInput = component.find(elementId).getElement();
}
if (!fileInput || !fileInput.files.length) {
// alert("File should be uploaded.");
helper.showToast(component, 'error', 'File should be uploaded', '');
return;
}
if (parentId === undefined || parentId.trim() === '') {
// alert("Record should be created beforce files uploading.");
helper.showToast(component, 'error', 'Record should be created before files uploading', '');
return;
}
if (attachmentName === undefined || attachmentName.trim() === '') {
attachmentName = fileInput.files[0].name;
}
helper.uploadAttachment(
component,
attachmentName,
parentId,
elementId,
sectionNumber,
elementPosition
);
},
/**
* YHOU: do not touch this code as it creates object records for License, insurnace, certifications, tax, other document and returns the IDs, which is essential to document upload
*/
addNewReference: function(component, event, helper) {
helper.showSpinner(component);
var allInfoWrapper = component.get("v.allInfoWrapper");
var sectionNumber = event.target.dataset.section;
if (sectionNumber === '4') {
allInfoWrapper.listOfTradeAllyReferencesFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultTradeAllyReference))
);
} else if (sectionNumber === '5') {
allInfoWrapper.listOfTradeAllyTradeReferencesFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultTradeAllyReference))
);
} else if (sectionNumber === '6') {
allInfoWrapper.listOfInsurancesFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultInsurance))
);
} else if (sectionNumber === '7') {
allInfoWrapper.listOfLicensesFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultLicense))
);
} else if (sectionNumber === '8') {
allInfoWrapper.listOfCertificationsFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultCertification))
);
} else if (sectionNumber === '9') {
allInfoWrapper.listOfTaxFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultTax))
);
} else if (sectionNumber === '10') {
allInfoWrapper.listOfOtherFields.push(
JSON.parse(JSON.stringify(allInfoWrapper.defaultOther))
);
}
component.set("v.allInfoWrapper", allInfoWrapper);
helper.hideSpinner(component);
},
/**
* Delete a dynamically created object record, such as insurance, license, certification, tax, and other doc.
*/
removeReference: function(component, event, helper) {
helper.showSpinner(component);
var allInfoWrapper = component.get("v.allInfoWrapper");
var elementPosition = event.target.dataset.position;
var sectionNumber = event.target.dataset.section;
var tempListFields;
if (sectionNumber === '4') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfTradeAllyReferencesFields));
} else if (sectionNumber === '5') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfTradeAllyTradeReferencesFields));
} else if (sectionNumber === '6') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfInsurancesFields));
} else if (sectionNumber === '7') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfLicensesFields));
} else if (sectionNumber === '8') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfCertificationsFields));
} else if (sectionNumber === '9') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfTaxFields));
} else if (sectionNumber === '10') {
tempListFields = JSON.parse(JSON.stringify(allInfoWrapper.listOfOtherFields));
}
// TODO: what's the purpose of this IF check?
if (
(
tempListFields.length > allInfoWrapper.numberOfCR && // CR: customer reference
sectionNumber === '4'
) ||
(
tempListFields.length > allInfoWrapper.numberOfTR && // TR: trade reference
sectionNumber === '5'
) ||
(
tempListFields.length > allInfoWrapper.numberOfInsurances &&
sectionNumber === '6'
) ||
(
tempListFields.length > allInfoWrapper.numberOfLicenses &&
sectionNumber === '7'
) ||
(
tempListFields.length > allInfoWrapper.numberOfCertifications &&
sectionNumber === '8'
) ||
(
tempListFields.length > allInfoWrapper.numberOfTaxDocs &&
sectionNumber === '9'
) ||
(
tempListFields.length > allInfoWrapper.numberOfOtherDocs &&
sectionNumber === '10'
) ||
(
sectionNumber !== '4' &&
sectionNumber !== '5' &&
sectionNumber !== '6' &&
sectionNumber !== '7' &&
sectionNumber !== '8' &&
sectionNumber !== '9' &&
sectionNumber !== '10'
)
) {
var newListOfFields = [];
var recordIdToDelete;
for (var i = 0; i < tempListFields.length; i++) {
if (i.toString() !== elementPosition) {
newListOfFields.push(
JSON.parse(JSON.stringify(tempListFields[i]))
);
} else if (tempListFields[i][0].recordId !== undefined) {
recordIdToDelete = JSON.parse(JSON.stringify(tempListFields[i][0])).recordId;
//console.log('recordIdToDelete ',recordIdToDelete);
//console.log('sectionNumber ',sectionNumber);
if (sectionNumber === '4') {
allInfoWrapper.listOfTradeAllyReferencesIdsToDelete.push(
recordIdToDelete
);
} else if (sectionNumber === '5') {
allInfoWrapper.listOfTradeAllyCustomReferencesIdsToDelete.push(
recordIdToDelete
);
} else if (sectionNumber === '6') {
allInfoWrapper.listOfInsurancesIdsToDelete.push(
recordIdToDelete
);
} else if (sectionNumber === '7') {
allInfoWrapper.listOfLicensesIdsToDelete.push(
recordIdToDelete
);
} else if (sectionNumber === '8') {
allInfoWrapper.listOfCertificationsIdsToDelete.push(
recordIdToDelete
);
} else if (sectionNumber === '9') {
allInfoWrapper.listOfTaxIdsToDelete.push(
recordIdToDelete
);
} else if (sectionNumber === '10') {
allInfoWrapper.listOfOtherIdsToDelete.push(
recordIdToDelete
);
}
}
}
if (sectionNumber === '4') {
allInfoWrapper.listOfTradeAllyReferencesFields = newListOfFields;
} else if (sectionNumber === '5') {
allInfoWrapper.listOfTradeAllyTradeReferencesFields = newListOfFields;
} else if (sectionNumber === '6') {
allInfoWrapper.listOfInsurancesFields = newListOfFields;
} else if (sectionNumber === '7') {
allInfoWrapper.listOfLicensesFields = newListOfFields;
} else if (sectionNumber === '8') {
allInfoWrapper.listOfCertificationsFields = newListOfFields;
} else if (sectionNumber === '9') {
allInfoWrapper.listOfTaxFields = newListOfFields;
} else if (sectionNumber === '10') {
allInfoWrapper.listOfOtherFields = newListOfFields;
}
//console.log(allInfoWrapper.listOfTradeAllyReferencesIdsToDelete);
component.set("v.allInfoWrapper", allInfoWrapper);
}
helper.hideSpinner(component);
},
changeTab: function(component, event, helper) {
helper.showSpinner(component);
var isTab = component.get('v.isTab');
if(!isTab){
component.set('v.isTab', true);
var index = component.get('v.activeTab');
var str = 'tab-' + index;
var subStr = 'tab-scoped-' + index;
var tab = component.find(str);
var subTab = component.find(subStr);
var activeTab = event.target.parentNode;
var newIndex = activeTab.getAttribute('data-index');
var newSubStr = 'tab-scoped-' + newIndex;
var newSubTab = component.find(newSubStr);
$A.util.addClass(tab, 'selected');
$A.util.removeClass(tab, 'slds-is-active');
$A.util.removeClass(tab, 'selected');
$A.util.removeClass(subTab, 'slds-show');
$A.util.addClass(subTab, 'slds-hide');
component.set('v.activeTab', newIndex);
$A.util.addClass(activeTab, 'slds-is-active');
$A.util.removeClass(newSubTab, 'slds-hide');
$A.util.addClass(newSubTab, 'slds-show');
component.set('v.isTab', false);
}
helper.hideSpinner(component);
},
testPrint: function(component,event,helper){
//window.print();
var appId = component.get("v.applicationId");
var accId = component.get("v.tradeAllyId");
var urlString = window.location.href;
var baseURL = '';
if(urlString.indexOf("/s/")>=0) {
baseURL = urlString.substring(0, urlString.indexOf("/s/")) + "/apex/TradeAllyApplicationsPDFPage";
}
else
{
baseURL= "/apex/TradeAllyApplicationsPDFPage";
}
if (appId!=undefined)
{
baseURL += '?applicationId=' + appId
if (accId !=undefined)
{
baseURL += '&accountId=' + accId
}
}
window.open(baseURL);
},
downloadDocument : function(component, event, helper){
var sendDataProc = component.get("v.sendData");
var dataToSend = document.getElementById('startContainer').innerHTML; //this is data you want to send for PDF generation
//console.log(document.getElementById('startContainer').innerHTML);
//invoke vf page js method
sendDataProc(dataToSend, function(){
//handle callback
});
}
})
|
var page164="TkSWZ9/CYkrrc5VP0dIfEmWzpWcz3FP6jnH7+7ZWhToPsDPYfRBi14Gao1WdIZUsXwbw6JdzaJZnoclM/hlli5OWuN/lrFVhA3Bh4BtBY3uDc3LmD25UPqprrajQY4QtQJnSrQ1fJKL715CGQkfdZ7wmseMlFdDvrkd526MHIjcvcCDF+/tf9StNJlvhxncsFGuJ1HRQZU7745F0IRMtkchzvFY23hRERL6tT8xld0ZQVa/d6rc/T05mNT/a1jEHPCBUwoeuVqk9bZh5UqOS1tY9fL/ItP3U//jKqt7/mh0II7ZUWpMAY1AGw6AijRYxhnNN4L0QN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UbR4nmERpLou7xqTG5+BcX1ZVW0cjH5X7K+G6W6kWpc8Rtjhw25Czp79lKOiQQkxPiuN0LonSSDIt9algflhKdgwMrgzqKH3++Za00J5x0OAZFP63kibDKdNqoxidfYHv4F5RFa2TMau2ATWZ7nm1ZKgsfQGZGxpKl/JMy/5EqMKrfRXw7GCO+hKA4ZhLfduQVBXl+K2MPKw+lJfnB0WCT2r3MPvBGysY5W4Y63FCtQDN9rVE6GOjHlUCCJv+S+HBLhXlqdWJvXDAEhTvT2byeQmj8dxnp4daUqr3tteR9jGms81tq2Vo11lGA1r6Iy6RRC8JrUvuMcfRKxc/DkyNycZzB2jmRoU0N2oljVQVL6srBJQU/9pZRZRAZkw+8QeAD+noBURT/wKY2uSOZvfqVlP1VeGvbAgVIlo5hbIodUUdcDF2c2Tl/w";
|
"use strict";
var assert = require('assert');
var models = require('../mock/models');
var Customer = require('../../../server/database/customerSession');
describe('database', function () {
describe('#customer', function () {
var cid;
describe('create', function () {
it('should return new object', function (done) {
var customer = {url: 'uuchat.com'};
Customer.insert(customer, function (err, data) {
assert.ifError(err);
assert(data);
cid = data.uuid;
done();
});
});
});
describe('update', function () {
it('should return a number list of update records', function (done) {
Customer.update({name: 'customer', ip: '127.0.0.1'}, {cid: cid}, function (err, data) {
assert.ifError(err);
assert(Array.isArray(data));
done();
});
});
});
describe('findById', function () {
it('should return object', function (done) {
Customer.findById(cid, function (err, data) {
assert.ifError(err);
assert(data);
done();
});
});
});
describe('findOne', function () {
it('should return object', function (done) {
Customer.findOne({cid: cid}, function (err, data) {
assert.ifError(err);
assert(data);
done();
});
});
});
describe('list', function () {
it('should return a list of customer object', function (done) {
Customer.list({uuid: cid}, null, null, null, function (err, data) {
assert.ifError(err);
assert(Array.isArray(data));
done();
});
});
});
describe('listAndCount', function () {
it('should return a object with count and list of customer object', function (done) {
Customer.listAndCount({uuid: cid}, null, null, null, function (err, data) {
assert.ifError(err);
assert.strictEqual(data.count, 1);
assert(Array.isArray(data.rows));
done();
});
});
});
describe('delete', function () {
it('should return number of delete', function (done) {
Customer.delete({uuid: cid}, function (err, data) {
assert.ifError(err);
assert.strictEqual(arguments.length, 2);
assert.strictEqual(data, 1);
done();
});
});
});
});
});
|
'use strict';
const Controller = require('egg').Controller;
class NewsController extends Controller {
async list() {
const dataList = [
{ id: '1', title: 'this is news 1', url: '/news/1' },
{ id: '2', title: 'this is news 2', url: '/news/2' },
];
await this.ctx.render('news/list.tpl', { list: dataList });
}
async item() {
const { id = 1 } = this.ctx.params;
await this.ctx.render('news/item.tpl', { id });
}
}
module.exports = NewsController;
|
/*
Slideshow maker.
Markup:
<span class='slideshow-container' id='a'>
<img src='a.jpg'/>
<img src='b.jpg'/>
<img src='c.jpg'/>
</span>
<button class='slideshow-remote' data-slideshow-id='a' data-slideshow-direction='reverse'>Reverse</button>
Code:
slideshow()
- This runs through all elements with class 'slideshow-container' and enables a slideshow on their
children.
- It also runs through all elements with class 'slideshow-remote' and enables a click on them to advance or reverse the slideshow. To decide which slideshow & direction, supply
data-slideshow-id (which is the id of the slideshow to control) and data-slideshow-direction (which is 'reverse' or can be left out)
*/
function slideshow() {
let S = document.getElementsByClassName('slideshow-container'), // all the container elems
R = document.getElementsByClassName('slideshow-remote') // all the remote-control elems
function moveSlide(container, step) {
let vis = +container.dataset.slideNumber
slides = container.children
slides[vis].style.display = 'none'
vis += step
if (vis<0) vis = 0
if (vis>=slides.length) vis=slides.length-1
slides[vis].style.display = 'block'
container.dataset.slideNumber = vis
}
function wrapImage(elem, prev, next) {
if (elem.tagName=='IMG') {
let p = elem.parentNode,
d = document.createElement('div')
d.style.position = 'relative'
p.replaceChild(d, elem)
d.appendChild(elem)
if (prev) {
let arrow = document.createElement('div')
arrow.style.position='absolute'
arrow.style.left='-20px' //'5px'
arrow.style.bottom='12px'
arrow.style.color = 'rgb(100,100,100)' //'white'
arrow.style.fontSize = '25px'
arrow.innerHTML = '❮'
arrow.style.cursor = 'pointer'
arrow.onclick = prev
d.appendChild(arrow)
}
if (next) {
arrow = document.createElement('div')
arrow.style.position='absolute'
arrow.style.right='-20px' //'5px'
arrow.style.bottom='12px'
arrow.style.color = 'rgb(100,100,100)' //'white'
arrow.style.fontSize = '25px'
arrow.innerHTML = '❯'
arrow.style.cursor = 'pointer'
arrow.onclick = next
d.appendChild(arrow)
}
} else {
// look for the img tag
for (let j=0; j<elem.children.length; j++) {
wrapImage(elem.children[j], prev, next)
}
}
}
for (let i=0; i<S.length; i++) {
// enable slideshow on all children of the containers
let container = S.item(i),
slides = container.children
nextSlide = () => moveSlide(container, 1),
prevSlide = () => moveSlide(container, -1)
// adjust the children so the images are wrapped in their own div
// and receive the onclick handlers
for (let j=0; j<slides.length; j++) {
wrapImage(slides[j], j!=0 && prevSlide, j<(slides.length-1) && nextSlide)
}
slides = container.children // because this might have changed from wrapping
// initialize each slideshow
for (let j=0; j<slides.length; j++) {
slides[j].style.display = 'none'
}
container.dataset.slideNumber = 0
slides[0].style.display = 'block'
//container.addEventListener('click', nextSlide)
// add the event handler to any remote controllers
for (let j=0; j<R.length; j++) if (R.item(j).dataset.slideshowId == container.id) {
R.item(j).addEventListener('click',
R.item(j).dataset.slideshowDirection=='reverse'?prevSlide:nextSlide
)
}
}
}
|
export const
ORIENTATION_MASK = '%ORIENTATION%',
PAGE_CODE_MASK = '%PAGE_CODE%',
CHILD_MASK = '%CHILD%',
SUBCHILD_MASK = '%SUBCHILD%',
ORDERING_MASK = '%ORDERING%',
// PAGINATION_MASK = '%PAGINATION%',
ARCHIVE_MASK = '%ARCHIVE%',
// SEARCH_QUERY_MASK = '%SEARCH_QUERY%',
QUERY_STRING_MASK = '%QUERY_STRING%'
// SOURCE_MASK = '%SOURCE%',
// DURATION_MASK = '%DURATION%'
|
import React from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import {
Login,
Orders,
Profile,
Register,
Products,
Checkout,
DetailsOrder,
DetailsOrderAdm,
ProfileAdm,
OrdersAdm,
} from './pages/index';
import Provider from './hooks/Provider';
import './App.css';
function App() {
return (
<div className="App">
<Provider>
<Switch>
<Route path="/login" component={ Login } />
<Route path="/register" component={ Register } />
<Route path="/orders/:orderId" component={ DetailsOrder } />
<Route exact path="/orders" component={ Orders } />
<Route path="/products" component={ Products } />
<Route path="/profile" component={ Profile } />
<Route path="/checkout" component={ Checkout } />
<Route path="/admin/orders/:id" component={ DetailsOrderAdm } />
<Route exact path="/admin/orders" component={ OrdersAdm } />
<Route path="/admin/profile" component={ ProfileAdm } />
<Redirect from="/" to="/login" />
</Switch>
</Provider>
</div>
);
}
export default App;
|
'use strict'
/** @typedef {import('@adonisjs/framework/src/Request')} Request */
/** @typedef {import('@adonisjs/framework/src/Response')} Response */
/** @typedef {import('@adonisjs/framework/src/View')} View */
const TimeCamp = use('App/Models/TimeCamp')
/**
* Resourceful controller for interacting with timecamps
*/
class TimeCampController {
/**
* Show a list of all timecamps.
* GET timecamps
*
* @param {object} ctx
* @param {Request} ctx.request
* @param {Response} ctx.response
* @param {View} ctx.view
*/
async index ({ request, response, view }) {
const timeCamp = await TimeCamp.all();
return timeCamp
}
/**
* Create/save a new timecamp.
* POST timecamps
*
* @param {object} ctx
* @param {Request} ctx.request
* @param {Response} ctx.response
*/
async store ({ request, response }) {
try{
const data = request.only(['Time','Campeonato'])
const timecamp = await TimeCamp.create({...data})
return timecamp
}catch(e){
response.status(400).send({content: 'Valor inválido passado para o relacionamento'})
}
}
/**
* Display a single timecamp.
* GET timecamps/:id
*
* @param {object} ctx
* @param {Request} ctx.request
* @param {Response} ctx.response
* @param {View} ctx.view
*/
async show ({ params, request, response, view }) {
const { id } = params
const timecamp = await TimeCamp.find(id)
return timecamp
}
/**
* Update timecamp details.
* PUT or PATCH timecamps/:id
*
* @param {object} ctx
* @param {Request} ctx.request
* @param {Response} ctx.response
*/
async update ({ params, request, response }) {
const { id } = params
const data = request.only(['Time','Campeonato'])
try{
const timecamp = TimeCamp.query().where('id',id).update(data)
return timecamp
}catch(e){
response.status(400).send({content: 'Valor inválido passado para o relacionamento'})
}
}
/**
* Delete a timecamp with id.
* DELETE timecamps/:id
*
* @param {object} ctx
* @param {Request} ctx.request
* @param {Response} ctx.response
*/
async destroy ({ params, request, response }) {
const { id } = params
const timecamp = TimeCamp.query().where('id',id).delete()
return timecamp
}
}
module.exports = TimeCampController
|
import React from "react";
import "../index.css";
import FullArticleCard from "../components/FullArticleCard";
import LogInSubTitle from "../components/LogInSubTitle";
import CommentCards from "../components/CommentCards";
import ErrorMsg from "../components/ErrorMsg";
class Article extends React.Component {
state = {
sortBy: undefined,
orderBy: undefined,
error: null,
commentError: null,
isLoading: true
};
setIsLoading = () => {
this.setState({ isLoading: false });
};
updateSortBy = param => {
this.setState({ sortBy: param });
};
updateOrder = order => {
this.setState({ orderBy: order });
};
triggerError = err => {
this.setState({ error: err });
};
commentError = err => {
this.setState({ commentError: err });
};
render() {
if (this.state.error !== null) return <ErrorMsg error={this.state.error} />;
if (this.state.commentError !== null) {
return <ErrorMsg error={this.state.commentError} />;
}
return (
<div className="ArticleAndCommentsContainer">
<FullArticleCard
urlInfo={this.props}
triggerError={this.triggerError}
setIsLoading={this.setIsLoading}
/>
{!this.props.user && <LogInSubTitle />}
<CommentCards
urlInfo={this.props}
user={this.props.user}
sortByParam={this.state.sortBy}
orderParam={this.state.orderBy}
updateSortBy={this.updateSortBy}
updateOrder={this.updateOrder}
commentError={this.commentError}
/>
</div>
);
}
}
export default Article;
|
import types from './mutation-types'
const mutations = {
[types.SET_ISLOGIN](state,bool){
state.isLogin = bool;
},
[types.SET_AUTHORIZATION](state,token){
state.Authorization = token;
}
}
export default mutations
|
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import * as RCSlider from 'rc-slider/lib/Slider';
import Handle from 'rc-slider/lib/Handle'
import cn25 from '../assets/cn25.png';
import cn50 from '../assets/cn50.png';
import cn75 from '../assets/cn75.png';
import cn100 from '../assets/cn100.png';
import cn125 from '../assets/cn125.png';
import cn150 from '../assets/cn150.png';
import cn175 from '../assets/cn175.png';
import cn200 from '../assets/cn200.png';
import './slider.css';
import 'rc-slider/assets/index.css';
const Slider = ({ sliderOnAfterChange, updateData, currentMonth }) => {
const [offsetPercentage, setOffsetPercentage] = useState(currentMonth.carbon_emissions === 0 ? 0 : Math.ceil(currentMonth.offset_amount / currentMonth.carbon_emissions * 100));
const badges = [null, cn25, cn50, cn75, cn100, cn125, cn150, cn175, cn200];
const badge = badges[Math.ceil(offsetPercentage / 25)];
const mark = <p className='Slider__mark'>{offsetPercentage}%</p>
const handleOffsetPercentage = amount => {
const offset_amount = Math.ceil((amount / 100) * currentMonth.carbon_emissions);
const offset = Math.ceil((offset_amount / currentMonth.carbon_emissions) * 100);
setOffsetPercentage(offset);
updateData(offset_amount);
}
return (
<div className={`Slider ${offsetPercentage}`}>
<RCSlider
defaultValue={offsetPercentage}
min={0}
max={200}
marks={{ [offsetPercentage]: mark }}
step={5}
onAfterChange={sliderOnAfterChange}
onChange={handleOffsetPercentage}
handleStyle={{
borderColor: 'black',
backgroundColor: 'red',
}}
handle={(handleProps) => {
return (
<Handle {...handleProps}>
<img className='Slider__img' src={badge} alt='' />
</Handle>
)
}}
/>
</div>
);
};
Slider.propTypes = {
sliderOnAfterChange: PropTypes.func.isRequired,
currentMonth: PropTypes.number.isRequired,
updateData: PropTypes.func.isRequired
};
export default Slider;
|
export const COLOR_MAP = {
BEIGE_SHADE_0: "#efece7",
BEIGE_SHADE_1: "#e9e4dd",
BEIGE: "#DFD8CE",
BEIGE_TINT_0: "#9c9790",
BEIGE_TINT_1: "#706c67",
BEIGE_TINT_2: "#595652",
BEIGE_TINT_3: "#43413e",
BEIGE_TINT_4: "#2d2b29",
BEIGE_TINT_5: "#161615",
DARK_GRAY_SHADE_0: "#bcc2c6",
DARK_GRAY_SHADE_1: "#8f9aa1",
DARK_GRAY_SHADE_2: "#78858e",
DARK_GRAY_SHADE_3: "#62717b",
DARK_GRAY_SHADE_4: "#4b5d68",
DARK_GRAY_SHADE_5: "#354855",
DARK_GRAY: "#1E3442",
DARK_GRAY_TINT_1: "#182a35",
DARK_GRAY_TINT_2: "#121f28",
DARK_GRAY_TINT_3: "#0c151a"
};
|
import React from 'react';
import { Redirect } from 'react-router-dom';
import {setUser} from '../actions/index'
import { useOktaAuth } from '@okta/okta-react';
import Protected from './Protected';
import {connect } from 'react-redux'
const SignIn = (props) => {
const { oktaAuth } = useOktaAuth();
const { authState } = useOktaAuth();
if (authState.isPending) {
return <div>Loading...</div>;
}
if(authState.isAuthenticated) {
oktaAuth.getUser().then(info => {
console.log(info);
props.setUser(info);
sessionStorage.setItem('email',info.email)
sessionStorage.setItem('name',info.name)
});
}
return authState.isAuthenticated ?
<Redirect to={Protected}/> :
oktaAuth.signInWithRedirect()
};
const mapStatetoProps = (state) => {
return {
}
}
const mapDispatchToProps = {
setUser
}
export default connect(mapStatetoProps,mapDispatchToProps)(SignIn)
|
var searchData=
[
['main_2ec_23',['Main.c',['../_main_8c.html',1,'']]],
['main_5ffont_24',['main_font',['../_main_8c.html#afb5176bc19b0772b4567bdf06b8987aa',1,'main_font(): Main.c'],['../values_8h.html#afb5176bc19b0772b4567bdf06b8987aa',1,'main_font(): Main.c']]],
['main_5floop_25',['main_loop',['../_main_8c.html#a2d143c640565d21bc2773b4605928091',1,'Main.c']]],
['measurevalues_26',['MeasureValues',['../struct_measure_values.html',1,'MeasureValues'],['../values_8h.html#a09f4bb1fcf88887ea6a969b265649105',1,'MeasureValues(): values.h']]]
];
|
(function() {
"use strict";
var app = angular.module('controllerTest', []);
app.controller('CartController', function() {
this.items = [];
this.newItem = {
quantity: 1
};
this.addItem = function(){
this.items.push(this.newItem);
this.newItem = {
quantity: 1
};
};
this.getSubTotal = function(){
var subTotal = 0;
for(var i = 0; i < this.items.length; i++){
subTotal += this.items[i].quantity * this.items[i].price;
}
return subTotal;
}
this.getShipping = function(){
var shipping = 0;
for(var i = 0; i < this.items.length; i++){
shipping += this.items[i].quantity * 1.25;
}
return shipping;
}
this.removeItem = function($index){
this.items.splice($index, 1);
}
});
})();
|
require.config({
paths: {
"rd.styles.animate": "../rdk/css/theme/zte-blue/rdk-animate-style",
"rd.styles.Accordion": "../rdk/css/theme/zte-blue/rdk-accordion-style",
"rd.styles.Alert": "../rdk/css/theme/zte-blue/rdk-Alert-style",
"rd.styles.Area": "../rdk/css/theme/zte-blue/rdk-area-style",
"rd.styles.BasicSelector": "../rdk/css/theme/zte-blue/rdk-basicselector-style",
"rd.styles.ListSelector": "../rdk/css/theme/zte-blue/rdk-listselector-style",
"rd.styles.Bullet": "../rdk/css/theme/zte-blue/rdk-bullet-style",
"rd.styles.Button": "../rdk/css/theme/zte-blue/rdk-button-style",
"rd.styles.ButtonGroup": "../rdk/css/theme/zte-blue/rdk-buttongroup-separator-style",
"rd.styles.ComboSelect": "../rdk/css/theme/zte-blue/rdk-comboselect-style",
"rd.styles.Graph": "../rdk/css/theme/zte-blue/rdk-graph-style",
"rd.styles.Input":"../rdk/css/theme/zte-blue/rdk-input-style",
"rd.styles.Panel": "../rdk/css/theme/zte-blue/rdk-panel-style",
"rd.styles.PopupService": "../rdk/css/theme/zte-blue/rdk-PopupService-style",
"rd.styles.ProgressBar": "../rdk/css/theme/zte-blue/rdk-progressbar-style",
"rd.styles.ScoreIndicator": "../rdk/css/theme/zte-blue/rdk-scoreindicator-style",
"rd.styles.Scroll": "../rdk/css/theme/zte-blue/perfect-scrollbar-style",
"rd.styles.Scroller": "../rdk/css/theme/zte-blue/rdk-scroller-style",
"rd.styles.SingleIndicator": "../rdk/css/theme/zte-blue/rdk-singleindicator-style",
"rd.styles.Steps": "../rdk/css/theme/zte-blue/rdk-steps-style",
"rd.styles.Tab": "../rdk/css/theme/zte-blue/rdk-tab-style",
"rd.styles.Table": "../rdk/css/theme/zte-blue/rdk-table-style",
"rd.styles.TabSelect": "../rdk/css/theme/zte-blue/rdk-tabselect-style",
"rd.styles.TabSelector": "../rdk/css/theme/zte-blue/rdk-tabselector-style",
"rd.styles.Theme": "../rdk/css/theme/zte-blue/rdk-theme-style",
"rd.styles.Time": "../rdk/css/theme/zte-blue/rdk-time-style",
"rd.styles.TimeBasic": "../rdk/css/theme/zte-blue/rdk-time-basic-style",
"rd.styles.TimeSelect": "../rdk/css/theme/zte-blue/rdk-time-select-style",
"rd.styles.TimePane": "../rdk/css/theme/zte-blue/rdk-time-pane-style",
"rd.styles.Tree": "../rdk/css/theme/zte-blue/rdk-tree-style",
"rd.styles.Switch": "../rdk/css/theme/zte-blue/rdk-switch-style",
"rd.styles.NumericInput": "../rdk/css/theme/zte-blue/rdk-numericinput-style",
"rd.styles.NotifyService": "../rdk/css/theme/zte-blue/rd-NotifyService-style",
"rd.styles.MenuService": "../rdk/css/theme/zte-blue/rd-MenuService-style",
"rd.styles.tableResize": "../rdk/css/theme/zte-blue/rdk-table-resize-style",
}
});
|
var searchData=
[
['verifyclassname',['verifyClassName',['../class_manager_8c.html#aa7bd696acaf0b5fe22511e8c60721f82',1,'verifyClassName(char *argv, ClassFile *class_file): classManager.c'],['../class_manager_8h.html#ab267acbc8a74fa74e834b9517292d259',1,'verifyClassName(char *argv, ClassFile *class_file): classManager.c']]]
];
|
import path from 'path';
import express from 'express';
import morgan from 'morgan';
import cors from 'cors';
import bodyParser from 'body-parser';
import methodOverride from 'method-override';
import nodemailer from 'nodemailer';
import swaggerDoc from 'swagger-jsdoc';
import swaggerTools from 'swagger-tools';
import errorMessages from '../services/middlewares/error_messages';
import errorResponse from '../services/middlewares/error_response';
import config from './env';
import routes from '../routes';
const { appConfig } = config;
const app = express();
const spec = swaggerDoc({
swaggerDefinition: {
info: {
title: 'API',
version: '1.0.0',
},
basePath: config.appConfig.basePath,
},
apis: [
`${path.resolve()}/src/models/**/*.js`,
`${path.resolve()}/src/controllers/**/*.js`,
`${path.resolve()}/src/routes/**/*.js`,
],
});
app.disable('x-powered-by');
app.use(methodOverride('X-HTTP-Method-Override'));
if (appConfig.env === 'development' || appConfig.env === 'testing') {
app.use(morgan('dev'));
app.use(bodyParser.urlencoded({
extended: true,
}));
}
app.use(bodyParser.json());
app.use(cors());
app.use(appConfig.path, routes);
swaggerTools.initializeMiddleware(spec, (middleware) => {
app.use(middleware.swaggerUi({
apiDocs: `${appConfig.path}docs.json`,
swaggerUi: `${appConfig.path}docs`,
apiDocsPrefix: appConfig.basePath,
swaggerUiPrefix: appConfig.basePath,
}));
});
app.use(errorMessages);
app.use(errorResponse);
app.locals.config = appConfig;
app.locals.transport = nodemailer.createTransport(config.mailer);
export default app;
|
import styled from "styled-components";
import stylers from "@paprika/stylers";
import tokens from "@paprika/tokens";
const svgString = color =>
`<svg color='${color}' width='18' height='32' xmlns='http://www.w3.org/2000/svg'><path fill='currentColor' d='M18.286 12.571q0 0.464-0.339 0.804l-8 8q-0.339 0.339-0.804 0.339t-0.804-0.339l-8-8q-0.339-0.339-0.339-0.804t0.339-0.804 0.804-0.339h16q0.464 0 0.804 0.339t0.339 0.804z'></path></svg>`;
const selectArrow = (color = tokens.color.black) => `
background-image: url("data:image/svg+xml;base64,${btoa(svgString(color))}");
`;
export const Select = styled.div`
position: relative;
.form-select__select {
${selectArrow()}
appearance: none;
background-color: ${tokens.color.white};
background-position: right 11px center;
background-repeat: no-repeat;
background-size: 9px auto;
border: 1px solid ${tokens.border.color};
border-radius: ${tokens.border.radius};
box-shadow: none;
box-sizing: border-box;
color: ${tokens.color.black};
display: block;
line-height: 1;
margin: 0;
outline: none;
padding: 0 ${stylers.spacer(3)} 0 ${stylers.spacer(1)};
width: 100%;
&:hover:not(.is-disabled):not(.is-readonly):not([disabled]) {
border-color: ${tokens.color.blackLighten30};
}
&:focus {
background-color: ${tokens.color.white};
border-color: ${tokens.highlight.active.noBorder.borderColor};
box-shadow: ${tokens.highlight.active.noBorder.boxShadow};
}
}
&.form-select--small .form-select__select {
${stylers.fontSize(-2)}
height: ${stylers.spacer(3)};
}
&.form-select--medium .form-select__select {
${stylers.fontSize(-1)}
height: ${stylers.spacer(4)};
}
&.form-select--large .form-select__select {
${stylers.fontSize()}
height: ${stylers.spacer(5)};
}
&.form-select--placeholder .form-select__select {
${stylers.placeholder}
option {
color: ${tokens.color.black};
font-style: normal;
&:first-child {
color: inherit;
font-style: inherit;
}
}
}
&.form-select--is-disabled .form-select__select {
${stylers.disabledFormStyles}
${selectArrow(tokens.color.blackLighten60)}
}
&.form-select--is-readonly .form-select__select {
${stylers.readOnlyFormStyles}
}
&.form-select--has-error .form-select__select {
${stylers.errorFormStyles}
}
`;
|
app.controller('bannerCtrl', function ($scope) {
$scope.dataArray = [
{
src: 'img/banner.jpg'
},
{
src: 'img/banner1.jpg'
},
{
src: 'img/banner2.jpg'
}
];
});
|
var cols = 100;
var rows = 100;
var grid = new Array(cols);
var w, h;
var openSet = [];
var closedSet = [];
var start;
var end;
var path = [];
////////////////////////////////////////////////////////////////////////////
function Spot(i, j) {
this.i = i;
this.j = j;
this.f = 0;
this.g = 0;
this.h = 0;
this.neighbors = [];
this.previous = undefined;
this.wall = false
if (random(1) < 0.3) {
this.wall = true;
}
this.show = function(col) {
//fill(col);
if (this.wall) {
fill(0);
noStroke();
ellipse(this.i * w + w / 2, this.j * h + h / 2, w / 2, h / 2);
//rect(this.i * h, this.j * h, w - 1, h - 1);
}
//rect(this.i * h, this.j * h, w - 1, h - 1);
}
////////////////////////////////////////////////////////////////////////////
this.addNeighbors = function(grid) {
var i = this.i;
var j = this.j;
if (i < cols - 1) {
this.neighbors.push(grid[i + 1][j]);
}
if (i > 0) {
this.neighbors.push(grid[i - 1][j]);
}
if (j < rows - 1) {
this.neighbors.push(grid[i][j + 1]);
}
if (j > 0) {
this.neighbors.push(grid[i][j - 1]);
}
}
this.connectDiagonalNeighbors = function(grid) {
if (i > 0 && j > 0 && !(grid[i - 1][j].wall && grid[i][j - 1].wall)) {
this.neighbors.push(grid[i - 1][j - 1]);
}
if (i < cols - 1 && j > 0 && !(grid[i][j - 1].wall && grid[i + 1][j].wall)) {
this.neighbors.push(grid[i + 1][j - 1]);
}
if (i > 0 && j < rows - 1 && !(grid[i - 1][j].wall && grid[i][j + 1].wall)) {
this.neighbors.push(grid[i - 1][j + 1]);
}
if (i < cols - 1 && j < rows - 1 && !(grid[i + 1][j].wall && grid[i][j + 1].wall)) {
this.neighbors.push(grid[i + 1][j + 1]);
}
}
}
////////////////////////////////////////////////////////////////////////////
function removeFromArray(arr, elt) {
for (var i = arr.length - 1; i >= 0; i--) {
if (arr[i] == elt) {
arr.splice(i, 1); //To remove the element
}
}
}
////////////////////////////////////////////////////////////////////////////
function heuristic(a, b) {
var d = dist(a.i, a.j, b.i, b.j) //dist is a p5 function. But it's not hard to code really... It's a euclidian distance
//var d = abs(a.i - b.i) + abs(a.j - b.j) //distance de manhattan
return d;
}
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
function setup() {
createCanvas(400, 400);
w = width / cols; //width and height are global variables of p5, inside of createCanvas
h = height / rows;
for (var i = 0; i < cols; i++) {
grid[i] = new Array(rows);
}
for (var i = 0; i < cols; i++) {
for (var j = 0; j < rows; j++) {
grid[i][j] = new Spot(i, j);
}
}
for (var i = 0; i < cols; i++) {
for (var j = 0; j < rows; j++) {
grid[i][j].addNeighbors(grid);
}
}
for (var i = 0; i < cols; i++) {
for (var j = 0; j < rows; j++) {
grid[i][j].connectDiagonalNeighbors(grid);
}
}
start = grid[0][0];
end = grid[cols - 1][rows - 1];
start.wall = false;
end.wall = false;
openSet.push(start);
console.log(grid);
}
////////////////////////////////////////////////////////////////////////////
function draw() { // This is like a while loop
///////////////////////////BEGINNING OF THE SEARCH/////////////////////////////////
// Idée : on se trouve en un noeud n. Pour bouger de ce noeud n, on regarde les voisins directs de n.
// On attribue à ces voisins une valeur f calculée ainsi : f est le cout pour ce déplacer jusqu'au voisin en question (la valeur g) PLUS une heuristique h
// Cette heuristique est une estimation de combien on est distant de l'arrivée si on prend comme prochain noeud le voisin qu'on regarde là maintenant.
// Puis, on cherche la valeur minimale de f parmi tous les voisins directs du noeud. On bouge vers le voisin qui a le f le plus petit.
// DONC tout l'algorithme repose sur le choix de l'heuristique.
// Si l'heuristique est bonne, on se rapprochera de la solution optimale du problème. Sinon, on aura une solution toute moisie.
// Une manière de construire cette heuristique peut d'ailleurs être avec du machine learning.
if (openSet.length > 0) {
var winner = 0;
for (var i = 0; i < openSet.length; i++) {
if (openSet[i].f < openSet[winner].f) {
winner = i;
}
}
var current = openSet[winner];
if (current === end) {
console.log("DONE!");
noLoop();
}
removeFromArray(openSet, current);
closedSet.push(current);
var neighbors = current.neighbors;
for (var i = 0; i < neighbors.length; i++) {
var neighbor = neighbors[i];
if (!closedSet.includes(neighbor) && !neighbor.wall) {
var tempG = current.g + 1;
var newPath = false;
if (openSet.includes(neighbor)) {
if (tempG < neighbor.g) {
neighbor.g = tempG;
newPath = true;
}
} else {
neighbor.g = tempG;
newPath = true;
openSet.push(neighbor);
}
if (newPath) {
neighbor.h = heuristic(neighbor, end); // Educated guess : je regarde la distance à vol d'oiseau de Quimper à Lyon et je choisis mon chemin pour se rapprocher le plus possible de cette distance à vol d'oiseau
neighbor.f = neighbor.g + neighbor.h;
neighbor.previous = current;
}
}
}
} else {
console.log("No solution");
noLoop();
return;
}
///////////////////////////END OF THE SEARCH/////////////////////////////////
//background(0)
background(255);
for (var i = 0; i < cols; i++) { //To draw each Spot
for (var j = 0; j < rows; j++) {
grid[i][j].show(color(255));
}
}
// for (var i = 0; i < closedSet.length; i++) { //To color each spot wether it is in the closedSet/openSet
// closedSet[i].show(color(255, 0, 0));
// }
//
// for (var i = 0; i < openSet.length; i++) {
// openSet[i].show(color(0, 255, 0));
// }
path = [];
var temp = current;
path.push(temp);
while (temp.previous) {
path.push(temp.previous);
temp = temp.previous;
}
// for (var i = 0; i < path.length; i++) {
// path[i].show(color(0, 0, 255));
// }
noFill();
stroke(255, 0, 200);
strokeWeight(w / 2);
beginShape();
for (var i = 0; i < path.length; i++) {
vertex(path[i].i * w + w / 2, path[i].j * h + h / 2)
}
endShape();
}
|
"use strict";
app.controller('HomeController',
['$scope', '$http', '$interval', 'MockData','Tooltip','ISO2Code',
function($scope, $http, $interval, MockData,Tooltip, ISO2Code) {
$scope.benchmark1 = true;
$scope.benchmark2 = false;
$scope.dasboard = {
'sites_installed': 1069,
'servers_installed': 6,
'existing_users': 9,
'monetization': ':(',
'historys': '',
'graph_first': {},
'report': {
'top_keywords': new Array(),
'top_rankings': MockData.rankings,
'top_sites': new Array(),
'traffic_per_countries':new Array(),
'trending_sites':new Array(),
'worst_sites':new Array(),
'top_google_searches': MockData.top_google_searches,
'traffic_per_server': new Array(),
'top_returning_visitors': MockData.top_returning_visitors,
'lineChartData': new Array(),
}
};
// temporary method
$scope.dataNotFound = function() {
var w = 815, h = 350;
var svg = d3.select("#entity-chart")
.append("svg:svg")
.attr("width", w)
.attr("height", h);
svg.selectAll("text")
.data(['Data not found'])
.enter()
.append("text")
.text('No data')
.style("font-size", "40px")
.attr("transform", "translate("+(w/2-30)+","+h/2+")");
};
$scope.get_report = function(begin,end) {
var params = !begin || !end ? {} : {'begin': begin, 'end': end};
$http({url: '/api/get_report/', params: params, method: 'GET'})
.success(function(data, status, headers, config) {
$scope.data = data.data;
$scope.removeAllData();
if (!data.data.visitors_info.current) {
$scope.dataNotFound();
return;
}
$http({url:'/api/get_report/online_users', method:'GET'})
.success(function(data){
$scope.total_online = data.total_online
$scope.diff = data.diff
})
var historys = {
'VISITS':{
'signification':data.data.visitors_info.current.total_visitors,
'format': function(arg) {
return arg.toFixed(0)
},
'all':data.data.visitors_info.reverse ?
data.data.visitors_info.reverse.total_visitors:
null,
},
'PAGES':{
'signification':data.data.visitors_info.current.pageviews,
'format': function(arg) {
return arg.toFixed(0)
},
'all':data.data.visitors_info.reverse ?
data.data.visitors_info.reverse.pageviews :
null,
},
'PAGE/VISIT':{
'signification':(data.data.visitors_info.current.pageviews/data.data.visitors_info.current.total_visitors).toFixed(2),
'format': function(arg) {
return arg.toFixed(2)
},
'all':data.data.visitors_info.reverse ?
(data.data.visitors_info.reverse.pageviews/data.data.visitors_info.reverse.total_visitors).toFixed(2) :
null,
},
'BOUNCE RATE':{
'signification':data.data.visitors_info.current.bounce_rate || data.data.visitors_info.current.average_bounce_rate,
'format': function(arg) {
return arg.toFixed(2)
},
'all':data.data.visitors_info.reverse ?
(data.data.visitors_info.reverse.bounce_rate || data.data.visitors_info.reverse.average_bounce_rate) :
null,
}
};
$scope.dasboard.historys=historys;
var top_sites = new Array();
for (var key in data.data.top_sites) {
top_sites[key] = {
'direction':data.data.top_sites[key].growth >= 0 ? 'growth2' : 'decline2',
'change':data.data.top_sites[key].growth*100,
'flag':'fr',
'site':data.data.top_sites[key]._id,
'quantity':data.data.top_sites[key].traffic_current,
'past_week':data.data.top_sites[key].past_week
};
}
$scope.dasboard.report.top_sites=top_sites;
var top_keywords = new Array();
for (var key in data.data.top_keywords) {
if(key>9) break;
top_keywords[key] = {
'direction':data.data.top_keywords[key].diff >= 0 ? 'growth2' : 'decline2',
'change':data.data.top_keywords[key].diff,
'keyword':data.data.top_keywords[key]._id,
'quantity':data.data.top_keywords[key].current,
'top3_countries': new Array(),
'past_week':data.data.top_keywords[key].past_week
};
for (var country in data.data.top_keywords[key].countries) {
if (data.data.top_keywords[key].countries[country].country == 'null') continue;
if (country>2) break;
top_keywords[key].top3_countries.push({
'flag': ISO2Code.getCode(data.data.top_keywords[key].countries[country].country),
'value':(data.data.top_keywords[key].countries[country].total/
data.data.top_keywords[key].current)*100
});
}
}
$scope.dasboard.report.top_keywords=top_keywords;
var traffic_per_countries = new Array();
for (var key in data.data.traffic_per_countries) {
traffic_per_countries[key] = {
'direction':data.data.traffic_per_countries[key].growth >= 0 ? 'growth2' : 'decline2',
'change':data.data.traffic_per_countries[key].growth*100,
'flag': ISO2Code.getCode(data.data.traffic_per_countries[key]._id),
'site':data.data.traffic_per_countries[key]._id,
'quantity':data.data.traffic_per_countries[key].traffic_current,
'past_week':data.data.traffic_per_countries[key].past_week
};
}
$scope.dasboard.report.traffic_per_countries=traffic_per_countries;
var traffic_per_server = new Array();
for (var key in data.data.traffic_per_server) {
traffic_per_server[key] = {
'direction': data.data.traffic_per_server[key].growth >= 0 ? 'growth2' : 'decline2',
'change':data.data.traffic_per_server[key].growth*100,
'flag':'fr',
'site':data.data.traffic_per_server[key]._id,
'quantity':data.data.traffic_per_server[key].traffic_current,
'past_week':data.data.traffic_per_server[key].past_week
};
}
$scope.dasboard.report.traffic_per_server=traffic_per_server;
var worst_sites = new Array();
for (var key in data.data.worst_sites) {
worst_sites[key] = {
'direction':data.data.worst_sites[key].growth >= 0 ? 'growth2' : 'decline2',
'change':data.data.worst_sites[key].growth*100,
'flag':'fr',
'site':data.data.worst_sites[key]._id,
'quantity':data.data.worst_sites[key].traffic_current,
'past_week':data.data.worst_sites[key].past_week
};
}
$scope.dasboard.report.worst_sites=worst_sites;
var lineChartData = {
benchmark_one: {
label: new Array(),
dataset: new Array()
},
benchmark_two: {
label: new Array(),
dataset: new Array()
}
};
function compareDate(itemA, itemB) {
return moment(itemA.axis).diff(moment(itemB.axis),'hours');
}
function compareValue(itemA, itemB) {
return itemA.axis - itemB.axis;
}
if (data.data.visitors_traffic.benchmark_one) {
var temp = data.data.visitors_traffic.benchmark_one
temp.sort(compareValue);
for (var i = 0; i < temp.length; i++) {
lineChartData.benchmark_one.dataset.push(temp[i].value);
lineChartData.benchmark_one.label.push(temp[i].axis);
}
}
if (data.data.visitors_traffic.benchmark_two) {
var temp = data.data.visitors_traffic.benchmark_two;
temp.sort(compareDate);
for (var i = 0; i < temp.length; i++) {
lineChartData.benchmark_two.dataset.push(temp[i].value);
lineChartData.benchmark_two.label.push(temp[i].axis);
}
}
$scope.dasboard.graph_first = lineChartData;
console.log($scope.dasboard.graph_first);
$scope.pageInit($scope.dasboard.graph_first);
function compareValue(itemA, itemB) {
return itemB.growth - itemA.growth;
}
var trending_sites = new Array();
var temp = data.data.trending_sites
temp.sort(compareValue);
for (var key in temp){
if(key>9) break;
trending_sites[key] = {
'direction':temp[key].growth >= 0 ? 'growth2' : 'decline2',
'math_direction':'+',
'change':temp[key].growth * 100,
'flag':'fr',
'site':temp[key]._id,
'quantity':temp[key].visitors_current,
}
}
$scope.dasboard.report.trending_sites = trending_sites
});
};
$scope.generateData = function generateData() {
// generate random data
var date = new Date();
date.setDate(date.getDate() - 1);
var value_max = d3.max($scope.benchmark_concat, function(d) {return d.value});
var data = [];
for (var i = 0, l = 24; i < l; i++) {
date.setHours(i,0,0);
data.push({
'value': Math.floor(Math.random() * (value_max + 1)),
'axis': d3.time.format("%Y-%m-%d %H:%M:%S")(date)
})
}
return data;
}
var w = 730, h = 350, vis = null, g, current, duration = 700, ease = "cubic-out";
$scope.draw = function draw(id,lineChartData) {
if (!$scope.data.visitors_traffic.benchmark_one) return;
if (id == 'benchmark1') {
var data = $scope.data.visitors_traffic.benchmark_one;
} else {
var data = $scope.data.visitors_traffic.benchmark_two ? $scope.data.visitors_traffic.benchmark_two : $scope.generateData();
}
// interval
var parseDate = d3.time.format("%Y-%m-%d").parse, data_type = 'interval'
if (!parseDate(data[0].axis)) {
// one day
parseDate = d3.time.format("%Y-%m-%d %H:%M:%S").parse, data_type = 'one_day';
var curDate = parseDate(data[0].axis)
var maxDate = curDate;
maxDate.setHours(23)
}
// sort by date
data = data.sort(function(a, b) {
return parseDate(a.axis) - parseDate(b.axis);
});
var margin = {top:30, left: 30, right: 30};
var y = d3.scale.linear().range([0 + margin.top, h - margin.top]);
y.domain([0, d3.max($scope.benchmark_concat, function(d) {return d.value})]);
var x_line = d3.time.scale()
.range([0 + margin.left, w - margin.right])
if (data_type!='one_day')
x_line
.domain(d3.extent(data, function(d) {return parseDate(d.axis)}));
else
x_line.domain([parseDate(data[0].axis), maxDate])
var line = d3.svg.line()
.x(function(d) { return x_line(parseDate(d.axis)); })
.y(function(d) { return -1 * y(d.value); });
var xAxis = d3.svg.axis()
.scale(x_line)
.orient("bottom");
var vis = d3.select("#entity-chart").select("svg").select("g");
if (vis.empty()) {
// add x axis only first time
vis = d3.select("#entity-chart")
.append("svg:svg")
.attr("viewBox", "0 0 " + w + " " + h)
.attr("preserveAspectRatio", "xMidYMid");
g = vis.append("svg:g")
.attr("transform", "translate(0, 350)");
vis.append("g")
.attr("transform", "translate(0," + (h - 20) + ")")
.call(xAxis);
}
g.append("svg:path")
.attr("class", id)
.transition().duration(duration).ease(ease)
.attr("d", line(data));
g.selectAll("dot")
.data(data)
.enter().append("circle")
.attr("class", id)
.attr("r", 4)
.style("fill", function(d) {
if (id == 'benchmark2') return '#FFF';
return '#F01850';
})
.style("stroke", function(d) {
if (id == 'benchmark2') return '#FFF';
return '#F01850';
})
.on("mouseout", Tooltip.mouseout)
.on("mouseover", Tooltip.mouseover)
.attr("cx", function(d) {
return x_line(parseDate(d.axis));
})
.attr("cy", 0)
.transition().duration(duration).ease(ease)
.attr("cy", function(d) { return -1 * y(d.value); });
current = id;
};
$scope.removeData = function removeData(id) {
d3.selectAll("circle."+id)
.transition().duration(duration).ease(ease)
.attr("cy", 0)
.attr("r", 0)
.remove();
d3.selectAll("path."+id).remove();
};
$scope.removeAllData = function removeData() {
d3.select("#entity-chart").select("svg").remove();
};
$scope.benchmarksCheckbox = function(id) {
if (jQuery('#'+id).is(":checked")) {
jQuery('#'+id).parent().addClass("active");
$scope.draw(id);
} else {
$scope.removeData(id);
jQuery('#'+id).parent().removeClass("active");
}
};
$scope.pageInit = function pageInit(lineChartData) {
jQuery('#Scoring-Metric-1').addClass("first").attr("checked", "checked").parent().addClass("active");
var id = jQuery('.sub-metric-checkbox.first').attr("id");
// max y axis
if (!$scope.data.visitors_traffic.benchmark_two) {
$scope.benchmark_concat = $scope.data.visitors_traffic.benchmark_one;
} else {
$scope.benchmark_concat = $scope.data.visitors_traffic.benchmark_two
.concat($scope.data.visitors_traffic.benchmark_one);
}
// set benchmark1 by default
$scope.benchmarksCheckbox('benchmark1');
$scope.benchmarksCheckbox('benchmark2');
};
$scope.masonry = function(){
jQuery('.grid').masonry({
// options
itemSelector: '.grid-item',
});
};
$scope.get_report();
$scope.checkBenchmark = function(id) {
if ($scope[id]) {
$scope.draw(id);
} else {
$scope.removeData(id);
}
};
$scope.pageInit = function(lineChartData) {
jQuery('#Scoring-Metric-1').addClass("first").attr("checked", "checked").parent().addClass("active");
var id = jQuery('.sub-metric-checkbox.first').attr("id");
// max y axis
if (!$scope.data.visitors_traffic.benchmark_two) {
$scope.benchmark_concat = $scope.data.visitors_traffic.benchmark_one;
} else {
$scope.benchmark_concat = $scope.data.visitors_traffic.benchmark_two
.concat($scope.data.visitors_traffic.benchmark_one);
}
// set benchmark1 by default
$scope.checkBenchmark('benchmark1');
$scope.checkBenchmark('benchmark2');
};
$('#reportrange').on('apply.daterangepicker', function(ev, picker) {
var start = picker.startDate.format('YYYY-MM-DD');
var end = picker.endDate.format('YYYY-MM-DD');
$scope.get_report(start,end);
});
}]);
|
$( document ).ready(function() {
checkRespond();
});
$(window).resize(function() {
checkRespond();
});
function checkRespond(){
var $windowSize = $(window).width();
if ($windowSize < 768 ){
$(".browse-save-button").removeClass("col-xs-offset-10");
$(".browse-save-button").addClass("col-xs-offset-8");
$(".browse-save-button").removeClass("col-xs-2");
$(".browse-save-button").addClass("col-xs-4");
$(".cancel-button").removeClass("col-xs-offset-8");
$(".cancel-button").addClass("col-xs-offset-4");
$(".cancel-button").removeClass("col-xs-2");
$(".cancel-button").addClass("col-xs-4");
$(".save-button").removeClass("col-xs-2");
$(".save-button").addClass("col-xs-4");
$(".tab-button-trash").removeClass("col-xs-offset-10");
$(".tab-button-trash").addClass("col-xs-offset-8");
$(".tab-button-edit").removeClass("col-xs-offset-10");
$(".tab-button-edit").addClass("col-xs-offset-8");
$(".tab-button-trash").removeClass("col-xs-1");
$(".tab-button-trash").addClass("col-xs-2");
$(".tab-button-edit").removeClass("col-xs-2");
$(".tab-button-edit").addClass("col-xs-4");
$(".tab-button-home").removeClass("col-xs-1");
$(".tab-button-home").addClass("col-xs-2");
}
else{
$(".browse-save-button").removeClass("col-xs-offset-8");
$(".browse-save-button").addClass("col-xs-offset-10");
$(".browse-save-button").removeClass("col-xs-4");
$(".browse-save-button").addClass("col-xs-2");
$(".cancel-button").removeClass("col-xs-offset-4");
$(".cancel-button").addClass("col-xs-offset-8");
$(".cancel-button").removeClass("col-xs-4");
$(".cancel-button").addClass("col-xs-2");
$(".save-button").removeClass("col-xs-4");
$(".save-button").addClass("col-xs-2");
$(".tab-button-trash").removeClass("col-xs-offset-8");
$(".tab-button-trash").addClass("col-xs-offset-10");
$(".tab-button-edit").removeClass("col-xs-offset-8");
$(".tab-button-edit").addClass("col-xs-offset-10");
$(".tab-button-trash").removeClass("col-xs-2");
$(".tab-button-trash").addClass("col-xs-1");
$(".tab-button-edit").removeClass("col-xs-4");
$(".tab-button-edit").addClass("col-xs-2");
$(".tab-button-home").removeClass("col-xs-2");
$(".tab-button-home").addClass("col-xs-1");
}
if($windowSize < 512){
$(".browse-save-button").removeClass("col-xs-offset-8");
//$(".browse-save-button").addClass("col-xs-offset-8");
$(".browse-save-button").removeClass("col-xs-4");
$(".browse-save-button").addClass("col-xs-12");
$(".cancel-button").removeClass("col-xs-offset-4");
//$(".cancel-button").addClass("col-xs-offset-4");
$(".cancel-button").removeClass("col-xs-4");
$(".cancel-button").addClass("col-xs-6");
$(".save-button").removeClass("col-xs-4");
$(".save-button").addClass("col-xs-6");
$(".tab-button-trash").removeClass("col-xs-offset-8");
$(".tab-button-trash").addClass("col-xs-offset-6");
$(".tab-button-edit").removeClass("col-xs-offset-8");
$(".tab-button-edit").addClass("col-xs-offset-6");
$(".tab-button-trash").removeClass("col-xs-2");
$(".tab-button-trash").addClass("col-xs-3");
$(".tab-button-edit").removeClass("col-xs-4");
$(".tab-button-edit").addClass("col-xs-6");
$(".tab-button-home").removeClass("col-xs-2");
$(".tab-button-home").addClass("col-xs-3");
}else if ($windowSize < 768 ){
//$(".browse-save-button").removeClass("col-xs-offset-8");
$(".browse-save-button").addClass("col-xs-offset-8");
$(".browse-save-button").removeClass("col-xs-12");
$(".browse-save-button").addClass("col-xs-4");
//$(".cancel-button").removeClass("col-xs-offset-4");
$(".cancel-button").addClass("col-xs-offset-4");
$(".cancel-button").removeClass("col-xs-6");
$(".cancel-button").addClass("col-xs-4");
$(".save-button").removeClass("col-xs-6");
$(".save-button").addClass("col-xs-4");
$(".tab-button-trash").removeClass("col-xs-offset-6");
$(".tab-button-trash").addClass("col-xs-offset-8");
$(".tab-button-edit").removeClass("col-xs-offset-6");
$(".tab-button-edit").addClass("col-xs-offset-8");
$(".tab-button-trash").removeClass("col-xs-3");
$(".tab-button-trash").addClass("col-xs-2");
$(".tab-button-edit").removeClass("col-xs-6");
$(".tab-button-edit").addClass("col-xs-4");
$(".tab-button-home").removeClass("col-xs-3");
$(".tab-button-home").addClass("col-xs-2");
}
}
|
$("#submit").click(function(){
submitbutton();
});
function submitbutton(){
$.post("php/adminController.php",$("#adminform").serialize(),function(data){
data=eval("(" + data +")");
if(data.success){
window.location.href="admin-view.html";
}else{
alert(data.notice);
}
});
}
function keyLogin() {
if (event.keyCode == 13)
submitbutton();
}
|
// ------------------------------
var IREADY = false;
var GEONAVE = null;
var GEOTOWER = null;
var GEOSTATION = null
$(function() {
new THREE.ObjectLoader().load('model/ship.json', function(geo) {
GEONAVE = geo;
new THREE.ObjectLoader().load('model/tower.json', function(geo) {
GEOTOWER = geo;
GEOTOWER.scale.set(25, 25, 25);
GEOTOWER.rotation.x += Math.PI / 2;
GEOTOWER.position.z = -20;
new THREE.ObjectLoader().load('model/station.json', function(geo) {
GEOSTATION = geo;
GEOSTATION.scale.set(3, 3, 3);
GEOSTATION.position.z = 60;
// --
GEONAVE.scale.set(140, 140, 140);
// GEONAVE.scale.set(1,1,1);
GEONAVE.rotation.x += Math.PI / 2;
GEONAVE.rotation.y -= Math.PI / 2;
$.getScript("game_load.js?v1");
});
});
});
});
|
import React, {Component} from 'react'
import {Platform, StyleSheet,Text,ScrollView,TouchableHighlight,Alert, View} from 'react-native';
import { Card, ListItem, Button, Icon,Input } from 'react-native-elements'
import t from 'tcomb-form-native'
const Form = t.form.Form
//define ur domain model..
const Customer = t.struct({
firstName: t.String,
lastName: t.String,
email: t.maybe(t.String),
phone : t.Number
})
const options = {
fields:{
firstName: {
label: 'First Name',
placeholder: 'Enter the first Name',
error: 'First Name is empty!!'
},
lastName: {
label: 'Last Name',
placeholder: 'Enter last name',
error: 'Last Name is empty'
}
}
}
class NewCustomer extends Component{
constructor(props){
super(props)
this.state = {
}
this.submitNewCustomer = this.submitNewCustomer.bind(this)
}
submitNewCustomer(){
const value = this.refs.myForm.getValue();
if (value) {
//console.log('submit customer to form', value)
this.props.addNewCustomer(value)
this.props.hideForm() // //later hide the customer form
}
}
/////////////////////
render(){
return(
<View>
<Card title = "NEW CUSTOMER">
<Form ref = "myForm"
type = {Customer}
options = {options}
/>
<Button
backgroundColor='#03A9F4'
buttonStyle={{borderRadius: 0, marginLeft: 0, marginRight: 0, marginBottom: 0}}
title='ADD CUSTOMER '
onPress = {this.submitNewCustomer}/>
</Card>
</View>
)
}
}
export default NewCustomer
|
/**
* This module is for QAing the completion
* status for the objectives of this course
* which are based on the user's selected states
*
*/
var QA = (function() {
var app;
var Module = function() {
app = this;
app.$el = $('.qa-status-box');
app.$content = app.$el.find('.content');
};
Module.prototype = {
constructor: Module,
init: function() {
// console.log('QA initializing...');
app.$content.html('<h3>LMS Testing</h3>');
app.$content.append(app.getObjectives());
var btn = $('<button class="moc-btn" />');
btn.on('click', function(e) {
app.markObjectivesComplete();
}).html('Mark Complete');
app.$content.append(btn);
app.$el.on('click', '.toggle', function(e) {
if (app.$el.hasClass('open')) {
app.$el.removeClass('open');
$(this).html('Expand (+)');
} else {
app.$el.addClass('open');
$(this).html('Collapse (-)');
}
});
},
markObjectivesComplete: function() {
var objectiveCount = app.get('cmi.objectives._count');
for (var i = 0; i < objectiveCount; i++) {
app.set('cmi.objectives.'+ i +'.status', 'completed')
}
},
get: function(str) {
return _shell.tracking.LMS.getValue(str);
},
set: function(key, val) {
_shell.tracking.LMS.setValue(key, val);
// console.log('Error:');
// console.log(' Code: '+ _shell.tracking.LMS.getLastError().errorCode);
if (_shell.tracking.LMS.getLastError().errorCode == '0') {
return true;
}
return false;
},
getObjectives: function() {
var count = this.get('cmi.objectives._count');
var returnMarkup = '<p>There are '+ count +' objectives recorded.</p>';
for (var i = 0; i < count; i++) {
var objectiveId = this.get('cmi.objectives.'+ i +'.id'),
objectiveStatus = this.get('cmi.objectives.'+ i +'.status');
returnMarkup += '<h4>Objective '+ i +'</h4>';
returnMarkup += '<ul>';
returnMarkup += '<li><b>ID</b>: '+ objectiveId +'</li>';
returnMarkup += '<li><b>Status</b>: '+ objectiveStatus +'</li>';
returnMarkup += '</ul><br>';
}
return returnMarkup;
}
};
return Module;
})();
|
setTimeout(function(){
alert("hi time completed !")
},10000)
|
sh = require("shorthash");
console.log(sh.unique('foobar@example.com',3));
|
import { renderString } from '../../src/index';
describe(`Pretty print a variable. Useful for debugging.`, () => {
it(`unnamed case 0`, () => {
const html = renderString(`{% set this_var ="Variable that I want to debug" %}
{{ this_var|pprint }}`);
});
});
|
const $ = jQuery = jquery = require ("jquery")
const switchElement = require ("cloudflare/generic/switch")
$(document).on ( "cloudflare.speed.automatic_platform_optimization.initialize", switchElement.initializeCustom ( [ "value", "enabled" ], true ) )
$(document).on ( "cloudflare.speed.automatic_platform_optimization.toggle", switchElement.toggle )
|
left boton_menu=document.getElementById("boton_menu");
left menu=document.getElementById("menu");
boton_menu.addEventListener("click",function(){ //cuando hanga click en el boton con id "boton_menu"
//Ejecutar las sgts instrucciones
menu.classList.toggle("mostrar")
});
const navToggle= document.querySelector(".nav-toggle");
const navMenu = document.querySelector(".nav-menu");
navToggle.addEventListener("click",() => {
navMenu.classList.toggle("nav-menu-visible");
if (navMenu.classList.contains("nav-menu-visible")){
navToggle.setAttribute("aria-label", "cerrar menú");
} else{
navToggle.setAttribute("aria-label", "abrir menú")
}
});
|
const nodemailer = require('nodemailer');
require('dotenv').config();
const { MAIL_ADMIN, MAIL_HOST, MAIL_PORT, MAIL_USER, MAIL_SECURE, MAIL_PASS } = process.env;
const transporter = nodemailer.createTransport({
host: MAIL_HOST,
port: MAIL_PORT,
secure: MAIL_SECURE, // use TLS
auth: {
user: MAIL_USER,
pass: MAIL_PASS
}
});
const EmailDetails = (title, message) => {
const body = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>${title}</title>
</head>
<body style="max-width: 600px;margin: 10px auto;padding: 70px;border: 1px solid #ccc;background: #ffffff;color: #4e4e4e;">
<div>
${message}
<p style="margin-bottom: 2em;line-height: 26px;font-size: 14px;">
Glade Contact, <br>
</p>
</div>
</body>
</html>
`;
return body
};
const sendMail = async (to, subject, body) => {
const message = {
from: MAIL_ADMIN,
to,
subject,
html: EmailDetails(subject, body)
};
transporter.sendMail(message, function (err, info) {
if (err) {
console.log(err);
} else {
console.log(info);
}
});
};
export default sendMail;
|
import * as actions from './../../actions';
import * as c from './../../actions/ActionTypes';
import { v4 } from 'uuid';
const testId = v4();
const testState = {
id: testId,
name: "Ti Kwan Yin",
category: "Oolong Tea",
origin: "China",
flavor: "Delicate, green, floral, sweet with mineral note",
price: 8,
amount: 54,
image: "https://cdn.shopify.com/s/files/1/0888/8900/products/Standard_Shot_Ti_Kwan_Yin.jpg?v=1548603635"
}
describe('tea distributor actions', () => {
it('toggleAddForm should create TOGGLE_ADD_FORM action', () => {
expect(actions.toggleAddForm()).toEqual({
type: c.TOGGLE_ADD_FORM
});
});
it('addOrUpdateTea should create ADD_OR_UPDATE_TEA action', () => {
expect(actions.addOrUpdateTea(testState)).toEqual({
... testState,
type: c.ADD_OR_UPDATE_TEA,
})
});
it('decreaseQuantity should create ADD_OR_UPDATE_TEA action that decrease amount by 1', () => {
expect(actions.decreaseQuantity(testState)).toEqual({
...testState,
type: c.ADD_OR_UPDATE_TEA,
amount: 53,
});
});
});
|
// Primitive Data Types
// 1.String
// 2.Number
// 3.Boolean
// 4.null
// 5.undefined
// 6.Symbol
// If a value declaration same as type then this statement call it's literal
//--------------String--------------
let nam="Zakir Hossain" //String literal
let number='100'
let number2=String(200)
console.log(nam)
console.log(number)
console.log(number2)
//---------------Number--------------
let integerNumber=234 // Number literal
let floatNumber=3.1416 // Number literal
let num=Number('678')
console.log(integerNumber+num) //912
//--------------Boolean---------------
let isSunBlue=false //Boolean literal
let isPeopleWillDie=true // Boolean literal
let numBoolean=Boolean(0) //False
let numBoolean2=Boolean(1) //True
let numBoolean3=Boolean(12) //True
console.log(isSunBlue)
console.log(isPeopleWillDie)
console.log(numBoolean)
console.log(numBoolean2)
console.log(numBoolean2)
//----------------Null and Undefined---------------
//Null- null one kind of value it means nothing
//Undefined- if we declare a variable but not initiate it then it will undefined
let nullVariable= null
let initiateLessVariable
console.log(nullVariable)
console.log(initiateLessVariable)
//----------------- Symbol -------------------
//Symbol make a variable unique
let num1=Symbol();
let num2=Symbol();
console.log(num1===num2); //False
const age1=Symbol(25);
const age2=Symbol(25);
console.log(age1)
console.log(age2)
console.log(age1===age2);//False
|
import {
LOGIN_SUCCESS,
LOGIN_REQUEST,
LOGIN_FAILURE, LOGOUT_REQUEST, LOGOUT_SUCCESS
} from '../constants/ActionTypes';
export const auth = (state = {
isFetching: false,
isAuthenticated: localStorage.getItem('token') ? true : false,
token: '',
}, action) => {
switch (action.type) {
case LOGIN_REQUEST:
return Object.assign({}, state, {
isFetching: true,
isAuthenticated: false
});
case LOGIN_SUCCESS:
return Object.assign({}, state, {
isFetching: false,
isAuthenticated: true,
token: action.token,
lastUpdated: action.receivedAt
});
case LOGIN_FAILURE:
return Object.assign({}, state, {
isFetching: false,
isAuthenticated: false
});
case LOGOUT_REQUEST:
return Object.assign({}, state, {
isFetching: true,
isAuthenticated: false
});
case LOGOUT_SUCCESS:
return Object.assign({}, state, {
isFetching: false,
isAuthenticated: false
});
default:
return state;
}
};
|
import React from 'react';
import { connect } from 'react-redux';
import SlackChatUI from '../components/containers/SlackChatUI';
import LoginUI from '../components/containers/LoginUI';
const mapStateToProps = (state) => ({
authorized: state.user.authorized
});
class CenterScreen extends React.Component {
render() {
if (this.props.authorized) {
this.props.navigator.setDrawerEnabled({
side: 'left',
enabled: true
});
this.props.navigator.setDrawerEnabled({
side: 'right',
enabled: true
});
this.props.navigator.toggleNavBar({
to: 'shown',
animated: false
});
return (<SlackChatUI />);
} else{
this.props.navigator.setDrawerEnabled({
side: 'left',
enabled: false
});
this.props.navigator.setDrawerEnabled({
side: 'right',
enabled: false
});
this.props.navigator.toggleNavBar({
to: 'hidden',
animated: false
});
return (<LoginUI />);
}
}
}
export default connect(mapStateToProps)(CenterScreen);
|
// JavaScript Document
var comment = {
data: function () {
isHere = false;
isAllChosen = false;
blue = "全选";
return {
isHere: isHere,
isAllChosen: isAllChosen,
blue: blue
}
},
props: ['post'],
methods: {
enableBtn: function () {
this.isHere = true;
},
disabledBtn: function () {
this.isHere = false;
this.isAllChosen = false;
},
selectAll: function () {
this.isAllChosen = !this.isAllChosen;
},
drop: function () {
let posts = app_content.posts;
if (this.isAllChosen) {
posts.splice(0, posts.length);
}
else {
let index = 0;
for (var i = 0; i < posts.length; i = i + 1) {
if (posts[i].id == this.post.id) {
index = i;
break;
}
}
posts.splice(index,1);
}
app_content.setPostsCookie();
}
},
template: `
<div class="comment" @mouseenter="enableBtn" @mouseleave="disabledBtn">
<div class="bubble" v-bind:title="post.msg">{{post.text}}<em></em><span></span></div>
<div>
<div class="btn-box">
<transition name="btn-active">
<button class="btn blue-btn" v-if="isHere" @click="selectAll">{{isAllChosen ? '取消全选' : '全选'}}</button>
</transition>
<transition name="btn-active">
<button class="btn red-btn" v-if="isHere" @click="drop">{{isAllChosen ? '删除全部' : '删除'}}</button>
</transition>
</div></div>
</div>
`
}
var figure_img = {
props: ['figure'],
template: `
<div class="figure">
<div class="figure-border">
<div class="figure-img-box">
<transition appear appear-class="figure-img-appear" appear-active-class="figure-img-appear-active">
<img class="figure-img" v-bind:src="figure.img" alt="图片施工中……"/>
</transition>
</div>
<transition appear appear-class="figure-text-box-appear" appear-active-class="figure-text-box-appear-active">
<div class="figure-text-box">
<div class="figure-text-name">{{figure.name}}</div>
<div class="figure-text-status">{{figure.status}}</div>
<div class="figure-text-word">
<div class="figure-text-word-msg">{{figure.wordMsg}}</div>
<div class="figure-text-word-from">{{figure.wordFrom}}</div>
</div>
<div class="figure-text-intro">{{figure.intro}}</div>
</div>
</transition>
</div>
</div>
`
}
var food = {
props: ['food'],
template: `
<div class="food">
<div class="food-border">
<div class="food-box">
<div v-bind:class="[{'food-leftbox': food.pos1}, {'food-rightbox': !food.pos1}]">
<div class="food-text-head">{{food.name}}</div>
<div class="food-text-content">{{food.text1}}</div>
</div>
<transition appear appear-class="food-img-appear" appear-active-class="food-img-appear-active">
<img v-bind:class="['food-img', 'food-img-up', {'food-leftbox': !food.pos1}, {'food-rightbox': food.pos1}]" v-bind:src="food.img1" alt="图片施工中……"/>
</transition>
</div>
<div class="food-box">
<div v-bind:class="[{'food-leftbox': !food.pos2}, {'food-rightbox': food.pos2}]">
<div class="food-text-subhead">{{food.text2}}</div>
<div class="food-text-content">{{food.text3}}</div>
</div>
<transition appear appear-class="food-img-appear" appear-active-class="food-img-appear-active">
<img v-bind:class="['food-img', 'food-img-bottom', {'food-leftbox': food.pos2}, {'food-rightbox': !food.pos2}]" v-bind:src="food.img2" alt="图片施工中……"/>
</transition>
</div>
<div class="food-btn-box">
<a v-bind:href="food.url" target="_blank"><button class="food-btn">了解做法</button></a>
<hr class="food-hr"/>
</div>
</div>
</div>
`
}
var poi = {
props: ['poi'],
template: `
<div class="poi">
<div class="poi-border">
<div class="poi-img-box">
<transition appear appear-class="poi-img-appear" appear-active-class="poi-img-appear-active">
<img class="poi-img" v-bind:src="poi.url" alt="图片施工中……"/>
</transition>
</div>
<transition appear appear-class="poi-text-box-appear" appear-active-class="poi-text-box-appear-active">
<div class="poi-text-box">
<div class="poi-text-name">{{poi.name}}</div>
<div class="poi-text-intro">{{poi.intro}}</div>
</div>
</transition>
</div>
</div>
`
}
var intro = {
props: ['intro'],
template: `
<transition appear appear-class="intro-appear" appear-active-class="intro-appear-active">
<div class="intro">
<div class="intro-border">
<div v-bind:class="['intro-background', intro.img]"></div>
<div class="intro-content">
<div v-bind:class="['intro-firstLetter', intro.en]">{{intro.texten[0]}}</div>
<div class="intro-CH-letters-box">
<div v-bind:class="['intro-CH', intro.cn]">{{intro.textcn}}</div>
<div v-bind:class="['intro-letters', intro.en]">{{intro.texten.slice(1)}}</div>
</div>
</div>
<div class="intro-btn-box">
<a v-bind:href="intro.url"><button class="intro-btn">了解{{intro.btntext}}</button></a>
</div>
</div>
</div>
</transition>
`
}
|
import React, {PropTypes} from 'react';
import {SuperForm, ModalWithDrag} from '../../../components';
import showPopup from '../../../standard-business/showPopup';
class PromptDialog extends React.Component {
static propTypes = {
title: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
afterClose: PropTypes.func.isRequired
};
state = {value: '', valid: false, visible: true, ok: false};
onOk = () => {
if (!this.state.value) {
this.setState({valid: true});
} else {
this.setState({visible: false, ok: true});
}
};
modalProps = () => {
return {
title: this.props.title,
visible: this.state.visible,
maskClosable: false,
width: 360,
onOk: this.onOk,
onCancel: () => this.setState({visible: false}),
afterClose: () => this.props.afterClose(this.state.ok ? this.state.value : '')
};
};
formProps = () => {
return {
controls: [{key: 'label', title: this.props.label, type: this.props.type, required: true, props:this.props.controlProps}],
value: {label: this.state.value},
valid: this.state.valid,
colNum: 1,
container: true,
onChange: (key, value) => this.setState({value}),
onExitValid: () => this.setState({valid: false})
};
};
render() {
return (
<ModalWithDrag {...this.modalProps()}>
{this.props.description && (<label>{this.props.description}</label>)}
<SuperForm {...this.formProps()} />
</ModalWithDrag>
);
}
}
export default (title, label, description=undefined, type='textArea', controlProps={}) => {
return showPopup(PromptDialog, {title, label, description, type, controlProps}, true);
}
|
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const userSchema = new Schema(
{
firstname: {
type: String,
required: false
},
lastname: {
type: String,
required: false
},
username: {
type: String,
minlength: 1
},
password: {
type: String
},
profileimage: {
type: String,
required: false
},
email: {
type: String,
required: true,
unique: true,
match: [
/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,
"Please enter a valid email address"
]
},
university: {
type: String,
required: false
},
institute: {
type: String,
required: false
},
country: {
type: String,
required: false
},
state: {
type: String,
required: false
},
city: {
type: String,
required: false
},
specialization: {
type: String,
required: false
},
status: {
type: String,
enum: ["alumni", "student", "employer", "Student", "Alumni"]
},
age: {
type: Number,
required: false
},
gender: {
type: String,
enum: ["male", "female", "Male", "Female"]
},
social: {
type: String,
default: []
}
},
{
timestamps: {
createdAt: "created_at",
updatedAt: "updated_at"
}
}
);
const User = mongoose.model("User", userSchema);
module.exports = User;
|
const User = require("../models/userModel");
const admin = async (req, res, next) => {
const user = await User.findById(req.user.id);
if (user && user.isAdmin) {
next();
} else {
console.log(req.user);
return res.status(401).json({ msg: "Not authorized as an admin" });
}
};
module.exports = admin;
|
import React, { useEffect, useState } from "react";
import styled from "styled-components";
import PropTypes from "prop-types";
import { PrevIcon, NextIcon } from "../BaseComponents/SVGIcons";
import SearchTypeList from "./SearchTypeList";
const NavContainer = styled.div`
display: flex;
`;
const NavArrow = styled.div`
flex: 0 0 0;
display: flex;
align-items: center;
padding: 0 9px;
@media (min-width: 400px) {
display: none;
}
`;
const NavigationBarWrapper = styled.div`
flex: 1 1 0;
overflow-y: hidden;
`;
function SearchTypesHead({ query }) {
const [moveLeftCount, setMoveLeftCount] = useState(0);
const [moveRightCount, setMoveRightCount] = useState(0);
let headMiddle = null;
let linkEl = null;
let linksContainer = null;
function moveLeft() {
if (moveLeftCount < 1) {
return;
}
const width =
Math.floor(headMiddle.clientWidth / linkEl.clientWidth) *
linkEl.clientWidth;
linksContainer.style.transform = `translateX(-${width *
(moveLeftCount - 1)}px)`;
setMoveLeftCount(moveLeftCount - 1);
setMoveRightCount(moveRightCount + 1);
}
function moveRight() {
if (moveRightCount < 1) {
return;
}
const width =
Math.floor(headMiddle.clientWidth / linkEl.clientWidth) *
linkEl.clientWidth;
linksContainer.style.transform = `translateX(-${width *
(moveLeftCount + 1)}px)`;
setMoveLeftCount(moveLeftCount + 1);
setMoveRightCount(moveRightCount - 1);
}
function calculateCountMoveRight() {
if (window.innerWidth >= 400) {
setMoveRightCount(0);
setMoveLeftCount(0);
if (linksContainer) {
linksContainer.style.transform = "none";
}
}
if (linksContainer && headMiddle) {
// const x = getComputedStyle(linksContainer);
let count = Math.floor(
linksContainer.clientWidth / headMiddle.clientWidth
);
if (linksContainer.clientWidth % headMiddle.clientWidth === 0) {
count -= 1;
}
setMoveRightCount(count);
}
}
useEffect(() => {
window.addEventListener("resize", calculateCountMoveRight);
return () => {
window.removeEventListener("resize", calculateCountMoveRight);
};
});
return (
<NavContainer>
<NavArrow onClick={moveLeft}>
<PrevIcon
xsmall
primary={moveLeftCount > 0}
secondary={moveLeftCount <= 0}
/>
</NavArrow>
<NavigationBarWrapper
ref={el => {
headMiddle = el;
}}
>
<SearchTypeList
query={query}
linkContainer={el => {
linksContainer = el;
}}
linkRef={el => {
linkEl = el;
}}
/>
</NavigationBarWrapper>
<NavArrow onClick={moveRight}>
<NextIcon
xsmall
primary={moveRightCount > 0}
secondary={moveRightCount <= 0}
/>
</NavArrow>
</NavContainer>
);
}
SearchTypesHead.propTypes = {
query: PropTypes.string.isRequired
};
export default SearchTypesHead;
|
/**
* @param {string} IP
* @return {string}
*/
var validIPAddress = function(IP) {
if(!IP || IP.length ===0) return "Neither";
if (IP.includes('.')) {
// possible IPv4
var arr = IP.split('.');
if (arr.length !== 4) return "Neither";
for (let i = 0; i < arr.length; i++) {
let val = arr[i];
if(val.length ===0) return "Neither";
if (val.match(/\D/g)) {
return "Neither";
}
if(val[0] === '0' && val.length !==1) return "Neither";
val = parseInt(val);
if (val>255) {
return "Neither";
}
}
return "IPv4";
} else if (IP.includes(':')) {
//possible IPv6
var arr = IP.split(':');
if (arr.length !== 8) return "Neither";
for (let i = 0; i < arr.length; i++) {
let val = arr[i];
val = val.toLowerCase();
if(val.match(/[g-z,/-]/g)) {
return "Neither";
}
if(val.length ===0 || val.length >4) return "Neither";
if (val.length >4 && val[0] ==='0'){
// leading 0s
return "Neither";
}
}
return "IPv6";
} else {
return "Neither";
}
};
console.log(validIPAddress("172.16.254.1"));
console.log(validIPAddress("2001:0db8:85a3:0:0:8A2E:0370:7334"));
console.log(validIPAddress("256.256.256.256"));
console.log(validIPAddress("2001:db8:85a3:0:0:8A2E:0370:7334"));
console.log(validIPAddress("2001:0db8:85a3::8A2E:0370:7334"));
console.log(validIPAddress("02001:0db8:85a3:0000:0000:8a2e:0370:7334"));
console.log(validIPAddress("2001:0db8:85a3:0:0:8A2E:0370:73341"));
console.log(validIPAddress("20EE:FGb8:85a3:0:0:8A2E:0370:7334"));
|
/** @jsx jsx */
import { jsx } from 'theme-ui'
import Head from 'next/head'
import PageContainer from '../components/PageContainer'
import Heading from '../components/Heading'
const Page = props => {
return (<>
<main>
<Head>
<title>Team Health Checker</title>
<meta name="description" content="Health checks help you find out how your team is doing, and work together to improve" />
</Head>
<PageContainer>
<Heading><a sx={{textDecoration: 'none'}} href="/">Team Health Checker</a></Heading>
{props.children}
</PageContainer>
</main>
<footer sx={{minHeight:'10vh',textAlign:'center',fontSize:0,bg:'#f4f4f4',pt:4,fontWeight:500}}>
</footer>
</>)
}
export default Page
|
import mongoose from "mongoose";
const ChatSchema = new mongoose.Schema({
chatGroup: {
type: mongoose.Schema.Types.ObjectId,
ref: "ChatGroup",
required: true,
},
sender: {
type: mongoose.Schema.Types.ObjectId,
ref: "User",
required: true,
},
message: {
type: mongoose.Schema.Types.String,
},
file: {
type: mongoose.Schema.Types.String,
},
timestamp: {
type: mongoose.Schema.Types.Date,
default: Date.now,
},
});
export default mongoose.model("Chat", ChatSchema);
|
// { "framework": "Vue"}
if(typeof app=="undefined"){app=weex}
if(typeof eeuiLog=="undefined"){var eeuiLog={_:function(t,e){var s=e.map(function(e){return e="[object object]"===Object.prototype.toString.call(e).toLowerCase()?JSON.stringify(e):e});if(typeof this.__m==='undefined'){this.__m=app.requireModule('debug')}this.__m.addLog(t,s)},debug:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("debug",e)},log:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("log",e)},info:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("info",e)},warn:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("warn",e)},error:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];this._("error",e)}}}
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "./src/pages/loginPage/changeuser.vue?entry=true");
/******/ })
/************************************************************************/
/******/ ({
/***/ "./node_modules/_querystringify@2.1.1@querystringify/index.js":
/*!********************************************************************!*\
!*** ./node_modules/_querystringify@2.1.1@querystringify/index.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var has = Object.prototype.hasOwnProperty,
undef;
/**
* Decode a URI encoded string.
*
* @param {String} input The URI encoded string.
* @returns {String|Null} The decoded string.
* @api private
*/
function decode(input) {
try {
return decodeURIComponent(input.replace(/\+/g, ' '));
} catch (e) {
return null;
}
}
/**
* Attempts to encode a given input.
*
* @param {String} input The string that needs to be encoded.
* @returns {String|Null} The encoded string.
* @api private
*/
function encode(input) {
try {
return encodeURIComponent(input);
} catch (e) {
return null;
}
}
/**
* Simple query string parser.
*
* @param {String} query The query string that needs to be parsed.
* @returns {Object}
* @api public
*/
function querystring(query) {
var parser = /([^=?&]+)=?([^&]*)/g,
result = {},
part;
while (part = parser.exec(query)) {
var key = decode(part[1]),
value = decode(part[2]); //
// Prevent overriding of existing properties. This ensures that build-in
// methods like `toString` or __proto__ are not overriden by malicious
// querystrings.
//
// In the case if failed decoding, we want to omit the key/value pairs
// from the result.
//
if (key === null || value === null || key in result) continue;
result[key] = value;
}
return result;
}
/**
* Transform a query string to an object.
*
* @param {Object} obj Object that should be transformed.
* @param {String} prefix Optional prefix.
* @returns {String}
* @api public
*/
function querystringify(obj, prefix) {
prefix = prefix || '';
var pairs = [],
value,
key; //
// Optionally prefix with a '?' if needed
//
if ('string' !== typeof prefix) prefix = '?';
for (key in obj) {
if (has.call(obj, key)) {
value = obj[key]; //
// Edge cases where we actually want to encode the value to an empty
// string instead of the stringified value.
//
if (!value && (value === null || value === undef || isNaN(value))) {
value = '';
}
key = encodeURIComponent(key);
value = encodeURIComponent(value); //
// If we failed to encode the strings, we should bail out as we don't
// want to add invalid strings to the query.
//
if (key === null || value === null) continue;
pairs.push(key + '=' + value);
}
}
return pairs.length ? prefix + pairs.join('&') : '';
} //
// Expose the module.
//
exports.stringify = querystringify;
exports.parse = querystring;
/***/ }),
/***/ "./node_modules/_requires-port@1.0.0@requires-port/index.js":
/*!******************************************************************!*\
!*** ./node_modules/_requires-port@1.0.0@requires-port/index.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Check if we're required to add a port number.
*
* @see https://url.spec.whatwg.org/#default-port
* @param {Number|String} port Port number we need to check
* @param {String} protocol Protocol we need to check against.
* @returns {Boolean} Is it a default port for the given protocol
* @api private
*/
module.exports = function required(port, protocol) {
protocol = protocol.split(':')[0];
port = +port;
if (!port) return false;
switch (protocol) {
case 'http':
case 'ws':
return port !== 80;
case 'https':
case 'wss':
return port !== 443;
case 'ftp':
return port !== 21;
case 'gopher':
return port !== 70;
case 'file':
return false;
}
return port !== 0;
};
/***/ }),
/***/ "./node_modules/_url-parse@1.4.7@url-parse/index.js":
/*!**********************************************************!*\
!*** ./node_modules/_url-parse@1.4.7@url-parse/index.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var required = __webpack_require__(/*! requires-port */ "./node_modules/_requires-port@1.0.0@requires-port/index.js"),
qs = __webpack_require__(/*! querystringify */ "./node_modules/_querystringify@2.1.1@querystringify/index.js"),
slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//,
protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,
whitespace = "[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]",
left = new RegExp('^' + whitespace + '+');
/**
* Trim a given string.
*
* @param {String} str String to trim.
* @public
*/
function trimLeft(str) {
return (str ? str : '').toString().replace(left, '');
}
/**
* These are the parse rules for the URL parser, it informs the parser
* about:
*
* 0. The char it Needs to parse, if it's a string it should be done using
* indexOf, RegExp using exec and NaN means set as current value.
* 1. The property we should set when parsing this value.
* 2. Indication if it's backwards or forward parsing, when set as number it's
* the value of extra chars that should be split off.
* 3. Inherit from location if non existing in the parser.
* 4. `toLowerCase` the resulting value.
*/
var rules = [['#', 'hash'], // Extract from the back.
['?', 'query'], // Extract from the back.
function sanitize(address) {
// Sanitize what is left of the address
return address.replace('\\', '/');
}, ['/', 'pathname'], // Extract from the back.
['@', 'auth', 1], // Extract from the front.
[NaN, 'host', undefined, 1, 1], // Set left over value.
[/:(\d+)$/, 'port', undefined, 1], // RegExp the back.
[NaN, 'hostname', undefined, 1, 1] // Set left over.
];
/**
* These properties should not be copied or inherited from. This is only needed
* for all non blob URL's as a blob URL does not include a hash, only the
* origin.
*
* @type {Object}
* @private
*/
var ignore = {
hash: 1,
query: 1
};
/**
* The location object differs when your code is loaded through a normal page,
* Worker or through a worker using a blob. And with the blobble begins the
* trouble as the location object will contain the URL of the blob, not the
* location of the page where our code is loaded in. The actual origin is
* encoded in the `pathname` so we can thankfully generate a good "default"
* location from it so we can generate proper relative URL's again.
*
* @param {Object|String} loc Optional default location object.
* @returns {Object} lolcation object.
* @public
*/
function lolcation(loc) {
var globalVar;
if (typeof window !== 'undefined') globalVar = window;else if (typeof global !== 'undefined') globalVar = global;else if (typeof self !== 'undefined') globalVar = self;else globalVar = {};
var location = globalVar.location || {};
loc = loc || location;
var finaldestination = {},
type = _typeof(loc),
key;
if ('blob:' === loc.protocol) {
finaldestination = new Url(unescape(loc.pathname), {});
} else if ('string' === type) {
finaldestination = new Url(loc, {});
for (key in ignore) {
delete finaldestination[key];
}
} else if ('object' === type) {
for (key in loc) {
if (key in ignore) continue;
finaldestination[key] = loc[key];
}
if (finaldestination.slashes === undefined) {
finaldestination.slashes = slashes.test(loc.href);
}
}
return finaldestination;
}
/**
* @typedef ProtocolExtract
* @type Object
* @property {String} protocol Protocol matched in the URL, in lowercase.
* @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.
* @property {String} rest Rest of the URL that is not part of the protocol.
*/
/**
* Extract protocol information from a URL with/without double slash ("//").
*
* @param {String} address URL we want to extract from.
* @return {ProtocolExtract} Extracted information.
* @private
*/
function extractProtocol(address) {
address = trimLeft(address);
var match = protocolre.exec(address);
return {
protocol: match[1] ? match[1].toLowerCase() : '',
slashes: !!match[2],
rest: match[3]
};
}
/**
* Resolve a relative URL pathname against a base URL pathname.
*
* @param {String} relative Pathname of the relative URL.
* @param {String} base Pathname of the base URL.
* @return {String} Resolved pathname.
* @private
*/
function resolve(relative, base) {
if (relative === '') return base;
var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/')),
i = path.length,
last = path[i - 1],
unshift = false,
up = 0;
while (i--) {
if (path[i] === '.') {
path.splice(i, 1);
} else if (path[i] === '..') {
path.splice(i, 1);
up++;
} else if (up) {
if (i === 0) unshift = true;
path.splice(i, 1);
up--;
}
}
if (unshift) path.unshift('');
if (last === '.' || last === '..') path.push('');
return path.join('/');
}
/**
* The actual URL instance. Instead of returning an object we've opted-in to
* create an actual constructor as it's much more memory efficient and
* faster and it pleases my OCD.
*
* It is worth noting that we should not use `URL` as class name to prevent
* clashes with the global URL instance that got introduced in browsers.
*
* @constructor
* @param {String} address URL we want to parse.
* @param {Object|String} [location] Location defaults for relative paths.
* @param {Boolean|Function} [parser] Parser for the query string.
* @private
*/
function Url(address, location, parser) {
address = trimLeft(address);
if (!(this instanceof Url)) {
return new Url(address, location, parser);
}
var relative,
extracted,
parse,
instruction,
index,
key,
instructions = rules.slice(),
type = _typeof(location),
url = this,
i = 0; //
// The following if statements allows this module two have compatibility with
// 2 different API:
//
// 1. Node.js's `url.parse` api which accepts a URL, boolean as arguments
// where the boolean indicates that the query string should also be parsed.
//
// 2. The `URL` interface of the browser which accepts a URL, object as
// arguments. The supplied object will be used as default values / fall-back
// for relative paths.
//
if ('object' !== type && 'string' !== type) {
parser = location;
location = null;
}
if (parser && 'function' !== typeof parser) parser = qs.parse;
location = lolcation(location); //
// Extract protocol information before running the instructions.
//
extracted = extractProtocol(address || '');
relative = !extracted.protocol && !extracted.slashes;
url.slashes = extracted.slashes || relative && location.slashes;
url.protocol = extracted.protocol || location.protocol || '';
address = extracted.rest; //
// When the authority component is absent the URL starts with a path
// component.
//
if (!extracted.slashes) instructions[3] = [/(.*)/, 'pathname'];
for (; i < instructions.length; i++) {
instruction = instructions[i];
if (typeof instruction === 'function') {
address = instruction(address);
continue;
}
parse = instruction[0];
key = instruction[1];
if (parse !== parse) {
url[key] = address;
} else if ('string' === typeof parse) {
if (~(index = address.indexOf(parse))) {
if ('number' === typeof instruction[2]) {
url[key] = address.slice(0, index);
address = address.slice(index + instruction[2]);
} else {
url[key] = address.slice(index);
address = address.slice(0, index);
}
}
} else if (index = parse.exec(address)) {
url[key] = index[1];
address = address.slice(0, index.index);
}
url[key] = url[key] || (relative && instruction[3] ? location[key] || '' : ''); //
// Hostname, host and protocol should be lowercased so they can be used to
// create a proper `origin`.
//
if (instruction[4]) url[key] = url[key].toLowerCase();
} //
// Also parse the supplied query string in to an object. If we're supplied
// with a custom parser as function use that instead of the default build-in
// parser.
//
if (parser) url.query = parser(url.query); //
// If the URL is relative, resolve the pathname against the base URL.
//
if (relative && location.slashes && url.pathname.charAt(0) !== '/' && (url.pathname !== '' || location.pathname !== '')) {
url.pathname = resolve(url.pathname, location.pathname);
} //
// We should not add port numbers if they are already the default port number
// for a given protocol. As the host also contains the port number we're going
// override it with the hostname which contains no port number.
//
if (!required(url.port, url.protocol)) {
url.host = url.hostname;
url.port = '';
} //
// Parse down the `auth` for the username and password.
//
url.username = url.password = '';
if (url.auth) {
instruction = url.auth.split(':');
url.username = instruction[0] || '';
url.password = instruction[1] || '';
}
url.origin = url.protocol && url.host && url.protocol !== 'file:' ? url.protocol + '//' + url.host : 'null'; //
// The href is just the compiled result.
//
url.href = url.toString();
}
/**
* This is convenience method for changing properties in the URL instance to
* insure that they all propagate correctly.
*
* @param {String} part Property we need to adjust.
* @param {Mixed} value The newly assigned value.
* @param {Boolean|Function} fn When setting the query, it will be the function
* used to parse the query.
* When setting the protocol, double slash will be
* removed from the final url if it is true.
* @returns {URL} URL instance for chaining.
* @public
*/
function set(part, value, fn) {
var url = this;
switch (part) {
case 'query':
if ('string' === typeof value && value.length) {
value = (fn || qs.parse)(value);
}
url[part] = value;
break;
case 'port':
url[part] = value;
if (!required(value, url.protocol)) {
url.host = url.hostname;
url[part] = '';
} else if (value) {
url.host = url.hostname + ':' + value;
}
break;
case 'hostname':
url[part] = value;
if (url.port) value += ':' + url.port;
url.host = value;
break;
case 'host':
url[part] = value;
if (/:\d+$/.test(value)) {
value = value.split(':');
url.port = value.pop();
url.hostname = value.join(':');
} else {
url.hostname = value;
url.port = '';
}
break;
case 'protocol':
url.protocol = value.toLowerCase();
url.slashes = !fn;
break;
case 'pathname':
case 'hash':
if (value) {
var _char = part === 'pathname' ? '/' : '#';
url[part] = value.charAt(0) !== _char ? _char + value : value;
} else {
url[part] = value;
}
break;
default:
url[part] = value;
}
for (var i = 0; i < rules.length; i++) {
var ins = rules[i];
if (ins[4]) url[ins[1]] = url[ins[1]].toLowerCase();
}
url.origin = url.protocol && url.host && url.protocol !== 'file:' ? url.protocol + '//' + url.host : 'null';
url.href = url.toString();
return url;
}
/**
* Transform the properties back in to a valid and full URL string.
*
* @param {Function} stringify Optional query stringify function.
* @returns {String} Compiled version of the URL.
* @public
*/
function toString(stringify) {
if (!stringify || 'function' !== typeof stringify) stringify = qs.stringify;
var query,
url = this,
protocol = url.protocol;
if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';
var result = protocol + (url.slashes ? '//' : '');
if (url.username) {
result += url.username;
if (url.password) result += ':' + url.password;
result += '@';
}
result += url.host + url.pathname;
query = 'object' === _typeof(url.query) ? stringify(url.query) : url.query;
if (query) result += '?' !== query.charAt(0) ? '?' + query : query;
if (url.hash) result += url.hash;
return result;
}
Url.prototype = {
set: set,
toString: toString
}; //
// Expose the URL parser and some additional properties that might be useful for
// others or testing.
//
Url.extractProtocol = extractProtocol;
Url.location = lolcation;
Url.trimLeft = trimLeft;
Url.qs = qs;
module.exports = Url;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! (webpack)/buildin/global.js */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_webpack@4.42.1@webpack\\buildin\\global.js")))
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/utils/index.js":
/*!*********************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/utils/index.js ***!
\*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var url_parse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! url-parse */ "./node_modules/_url-parse@1.4.7@url-parse/index.js");
/* harmony import */ var url_parse__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(url_parse__WEBPACK_IMPORTED_MODULE_0__);
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
var Utils = {
UrlParser: url_parse__WEBPACK_IMPORTED_MODULE_0___default.a,
_typeof: function _typeof(obj) {
return Object.prototype.toString.call(obj).slice(8, -1).toLowerCase();
},
isPlainObject: function isPlainObject(obj) {
return Utils._typeof(obj) === 'object';
},
isString: function isString(obj) {
return typeof obj === 'string';
},
isNonEmptyArray: function isNonEmptyArray() {
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
return obj && obj.length > 0 && Array.isArray(obj) && typeof obj !== 'undefined';
},
isObject: function isObject(item) {
return item && _typeof2(item) === 'object' && !Array.isArray(item);
},
isEmptyObject: function isEmptyObject(obj) {
return Object.keys(obj).length === 0 && obj.constructor === Object;
},
decodeIconFont: function decodeIconFont(text) {
// 正则匹配 图标和文字混排 eg: 我去上学校,天天不迟到
var regExp = /&#x[a-z|0-9]{4,5};?/g;
if (regExp.test(text)) {
return text.replace(new RegExp(regExp, 'g'), function (iconText) {
var replace = iconText.replace(/&#x/, '0x').replace(/;$/, '');
return String.fromCharCode(replace);
});
} else {
return text;
}
},
mergeDeep: function mergeDeep(target) {
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
sources[_key - 1] = arguments[_key];
}
if (!sources.length) return target;
var source = sources.shift();
if (Utils.isObject(target) && Utils.isObject(source)) {
for (var key in source) {
if (Utils.isObject(source[key])) {
if (!target[key]) {
Object.assign(target, _defineProperty({}, key, {}));
}
Utils.mergeDeep(target[key], source[key]);
} else {
Object.assign(target, _defineProperty({}, key, source[key]));
}
}
}
return Utils.mergeDeep.apply(Utils, [target].concat(sources));
},
appendProtocol: function appendProtocol(url) {
if (/^\/\//.test(url)) {
var bundleUrl = weex.config.bundleUrl;
return "http".concat(/^https:/.test(bundleUrl) ? 's' : '', ":").concat(url);
}
return url;
},
encodeURLParams: function encodeURLParams(url) {
var parsedUrl = new url_parse__WEBPACK_IMPORTED_MODULE_0___default.a(url, true);
return parsedUrl.toString();
},
goToH5Page: function goToH5Page(jumpUrl) {
var animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
var Navigator = weex.requireModule('navigator');
var jumpUrlObj = new Utils.UrlParser(jumpUrl, true);
var url = Utils.appendProtocol(jumpUrlObj.toString());
Navigator.push({
url: Utils.encodeURLParams(url),
animated: animated.toString()
}, callback);
},
env: {
isTaobao: function isTaobao() {
var appName = weex.config.env.appName;
return /(tb|taobao|淘宝)/i.test(appName);
},
isTrip: function isTrip() {
var appName = weex.config.env.appName;
return appName === 'LX';
},
isBoat: function isBoat() {
var appName = weex.config.env.appName;
return appName === 'Boat' || appName === 'BoatPlayground';
},
isWeb: function isWeb() {
var platform = weex.config.env.platform;
return (typeof window === "undefined" ? "undefined" : _typeof2(window)) === 'object' && platform.toLowerCase() === 'web';
},
isIOS: function isIOS() {
var platform = weex.config.env.platform;
return platform.toLowerCase() === 'ios';
},
/**
* 是否为 iPhone X or iPhoneXS or iPhoneXR or iPhoneXS Max
* @returns {boolean}
*/
isIPhoneX: function isIPhoneX() {
var deviceHeight = weex.config.env.deviceHeight;
if (Utils.env.isWeb()) {
return (typeof window === "undefined" ? "undefined" : _typeof2(window)) !== undefined && window.screen && window.screen.width && window.screen.height && (parseInt(window.screen.width, 10) === 375 && parseInt(window.screen.height, 10) === 812 || parseInt(window.screen.width, 10) === 414 && parseInt(window.screen.height, 10) === 896);
}
return Utils.env.isIOS() && (deviceHeight === 2436 || deviceHeight === 2688 || deviceHeight === 1792 || deviceHeight === 1624);
},
isAndroid: function isAndroid() {
var platform = weex.config.env.platform;
return platform.toLowerCase() === 'android';
},
isTmall: function isTmall() {
var appName = weex.config.env.appName;
return /(tm|tmall|天猫)/i.test(appName);
},
isAliWeex: function isAliWeex() {
return Utils.env.isTmall() || Utils.env.isTrip() || Utils.env.isTaobao();
},
/**
* 获取weex屏幕真实的设置高度,需要减去导航栏高度
* @returns {Number}
*/
getPageHeight: function getPageHeight() {
var env = weex.config.env;
var navHeight = Utils.env.isWeb() ? 0 : Utils.env.isIPhoneX() ? 176 : 132;
return env.deviceHeight / env.deviceWidth * 750 - navHeight;
},
/**
* 获取weex屏幕真实的设置高度
* @returns {Number}
*/
getScreenHeight: function getScreenHeight() {
var env = weex.config.env;
return env.deviceHeight / env.deviceWidth * 750;
}
},
/**
* 版本号比较
* @memberOf Utils
* @param currVer {string}
* @param promoteVer {string}
* @returns {boolean}
* @example
*
* const { Utils } = require('@ali/wx-bridge');
* const { compareVersion } = Utils;
* eeuiLog.log(compareVersion('0.1.100', '0.1.11')); // 'true'
*/
compareVersion: function compareVersion() {
var currVer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '0.0.0';
var promoteVer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0.0.0';
if (currVer === promoteVer) return true;
var currVerArr = currVer.split('.');
var promoteVerArr = promoteVer.split('.');
var len = Math.max(currVerArr.length, promoteVerArr.length);
for (var i = 0; i < len; i++) {
var proVal = ~~promoteVerArr[i];
var curVal = ~~currVerArr[i];
if (proVal < curVal) {
return true;
} else if (proVal > curVal) {
return false;
}
}
return false;
},
/**
* 分割数组
* @param arr 被分割数组
* @param size 分割数组的长度
* @returns {Array}
*/
arrayChunk: function arrayChunk() {
var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 4;
var groups = [];
if (arr && arr.length > 0) {
groups = arr.map(function (e, i) {
return i % size === 0 ? arr.slice(i, i + size) : null;
}).filter(function (e) {
return e;
});
}
return groups;
},
/*
* 截断字符串
* @param str 传入字符串
* @param len 截断长度
* @param hasDot 末尾是否...
* @returns {String}
*/
truncateString: function truncateString(str, len) {
var hasDot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
var newLength = 0;
var newStr = '';
var singleChar = '';
var chineseRegex = /[^\x00-\xff]/g;
var strLength = str.replace(chineseRegex, '**').length;
for (var i = 0; i < strLength; i++) {
singleChar = str.charAt(i).toString();
if (singleChar.match(chineseRegex) !== null) {
newLength += 2;
} else {
newLength++;
}
if (newLength > len) {
break;
}
newStr += singleChar;
}
if (hasDot && strLength > len) {
newStr += '...';
}
return newStr;
},
/*
* 转换 obj 为 url params参数
* @param obj 传入字符串
* @returns {String}
*/
objToParams: function objToParams(obj) {
var str = '';
for (var key in obj) {
if (str !== '') {
str += '&';
}
str += key + '=' + encodeURIComponent(obj[key]);
}
return str;
},
/*
* 转换 url params参数为obj
* @param str 传入url参数字符串
* @returns {Object}
*/
paramsToObj: function paramsToObj(str) {
var obj = {};
try {
obj = JSON.parse('{"' + decodeURI(str).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}');
} catch (e) {
eeuiLog.log(e);
}
return obj;
},
animation: {
/**
* 返回定义页面转场动画起初的位置
* @param ref
* @param transform 运动类型
* @param status
* @param callback 回调函数
*/
pageTransitionAnimation: function pageTransitionAnimation(ref, transform, status, callback) {
var animation = weex.requireModule('animation');
animation.transition(ref, {
styles: {
transform: transform
},
duration: status ? 250 : 300,
// ms
timingFunction: status ? 'ease-in' : 'ease-out',
delay: 0 // ms
}, function () {
callback && callback();
});
}
},
uiStyle: {
/**
* 返回定义页面转场动画起初的位置
* @param animationType 页面转场动画的类型 push,model
* @param size 分割数组的长度
* @returns {}
*/
pageTransitionAnimationStyle: function pageTransitionAnimationStyle(animationType) {
if (animationType === 'push') {
return {
left: '750px',
top: '0px',
height: weex.config.env.deviceHeight / weex.config.env.deviceWidth * 750 + 'px'
};
} else if (animationType === 'model') {
return {
top: weex.config.env.deviceHeight / weex.config.env.deviceWidth * 750 + 'px',
left: '0px',
height: weex.config.env.deviceHeight / weex.config.env.deviceWidth * 750 + 'px'
};
}
return {};
}
}
};
/* harmony default export */ __webpack_exports__["default"] = (Utils);
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.js":
/*!************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.js ***!
\************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue");
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _index_vue__WEBPACK_IMPORTED_MODULE_0___default.a; });
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue":
/*!*************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __vue_exports__, __vue_options__
var __vue_styles__ = []
/* styles */
__vue_styles__.push(__webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-149d58ea!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-149d58ea!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue")
)
/* script */
__vue_exports__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue")
/* template */
var __vue_template__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-149d58ea!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-149d58ea!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
typeof __vue_exports__.default === "object" ||
typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
__vue_options__ = __vue_options__.options
}
__vue_options__.__file = "F:\\workspace\\weexZruup\\zruupApp\\node_modules\\_weex-ui@0.8.4@weex-ui\\packages\\wxc-cell\\index.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-149d58ea"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
for (var name in module) {
__vue_options__.style[name] = module[name]
}
})
if (typeof __register_static_styles__ === "function") {
__register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}
module.exports = __vue_exports__
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.js":
/*!***************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.js ***!
\***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue");
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _index_vue__WEBPACK_IMPORTED_MODULE_0___default.a; });
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue":
/*!****************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __vue_exports__, __vue_options__
var __vue_styles__ = []
/* styles */
__vue_styles__.push(__webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-48d7063a!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-48d7063a!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue")
)
/* script */
__vue_exports__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue")
/* template */
var __vue_template__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-48d7063a!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-48d7063a!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
typeof __vue_exports__.default === "object" ||
typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
__vue_options__ = __vue_options__.options
}
__vue_options__.__file = "F:\\workspace\\weexZruup\\zruupApp\\node_modules\\_weex-ui@0.8.4@weex-ui\\packages\\wxc-overlay\\index.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-48d7063a"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
for (var name in module) {
__vue_options__.style[name] = module[name]
}
})
if (typeof __register_static_styles__ === "function") {
__register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}
module.exports = __vue_exports__
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.js":
/*!*************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.js ***!
\*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue");
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _index_vue__WEBPACK_IMPORTED_MODULE_0___default.a; });
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue":
/*!**************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __vue_exports__, __vue_options__
var __vue_styles__ = []
/* styles */
__vue_styles__.push(__webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-34cae37f!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-34cae37f!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue")
)
/* script */
__vue_exports__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue")
/* template */
var __vue_template__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-34cae37f!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-34cae37f!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
typeof __vue_exports__.default === "object" ||
typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
__vue_options__ = __vue_options__.options
}
__vue_options__.__file = "F:\\workspace\\weexZruup\\zruupApp\\node_modules\\_weex-ui@0.8.4@weex-ui\\packages\\wxc-popup\\index.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-34cae37f"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
for (var name in module) {
__vue_options__.style[name] = module[name]
}
})
if (typeof __register_static_styles__ === "function") {
__register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}
module.exports = __vue_exports__
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.js":
/*!*****************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.js ***!
\*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue");
/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _index_vue__WEBPACK_IMPORTED_MODULE_0___default.a; });
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue":
/*!******************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __vue_exports__, __vue_options__
var __vue_styles__ = []
/* styles */
__vue_styles__.push(__webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-7a7b0a04!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-7a7b0a04!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue")
)
/* script */
__vue_exports__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue")
/* template */
var __vue_template__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-7a7b0a04!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./index.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-7a7b0a04!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
typeof __vue_exports__.default === "object" ||
typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
__vue_options__ = __vue_options__.options
}
__vue_options__.__file = "F:\\workspace\\weexZruup\\zruupApp\\node_modules\\_weex-ui@0.8.4@weex-ui\\packages\\wxc-searchbar\\index.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-7a7b0a04"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
for (var name in module) {
__vue_options__.style[name] = module[name]
}
})
if (typeof __register_static_styles__ === "function") {
__register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}
module.exports = __vue_exports__
/***/ }),
/***/ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/type.js":
/*!****************************************************************************!*\
!*** ./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/type.js ***!
\****************************************************************************/
/*! exports provided: INPUT_ICON, CLOSE_ICON, ARROW_ICON */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INPUT_ICON", function() { return INPUT_ICON; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSE_ICON", function() { return CLOSE_ICON; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ARROW_ICON", function() { return ARROW_ICON; });
var INPUT_ICON = 'https://gw.alicdn.com/tfs/TB1FZB.pwMPMeJjy1XdXXasrXXa-30-30.png';
var CLOSE_ICON = 'https://gw.alicdn.com/tfs/TB1sZB.pwMPMeJjy1XdXXasrXXa-24-24.png';
var ARROW_ICON = 'https://gw.alicdn.com/tfs/TB1vZB.pwMPMeJjy1XdXXasrXXa-24-24.png';
/***/ }),
/***/ "./src/components/radioList.vue":
/*!**************************************!*\
!*** ./src/components/radioList.vue ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __vue_exports__, __vue_options__
var __vue_styles__ = []
/* styles */
__vue_styles__.push(__webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-a2217e0e!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./radioList.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-a2217e0e!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./src/components/radioList.vue")
)
/* script */
__vue_exports__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./radioList.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./src/components/radioList.vue")
/* template */
var __vue_template__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-a2217e0e!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./radioList.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-a2217e0e!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./src/components/radioList.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
typeof __vue_exports__.default === "object" ||
typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
__vue_options__ = __vue_options__.options
}
__vue_options__.__file = "F:\\workspace\\weexZruup\\zruupApp\\src\\components\\radioList.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-a2217e0e"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
for (var name in module) {
__vue_options__.style[name] = module[name]
}
})
if (typeof __register_static_styles__ === "function") {
__register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}
module.exports = __vue_exports__
/***/ }),
/***/ "./src/fetch/api/apis.js":
/*!*******************************!*\
!*** ./src/fetch/api/apis.js ***!
\*******************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
// 统一请求接口
/* harmony default export */ __webpack_exports__["default"] = ({
//baseUrl
baseUrl: 'http://app.asyke.com',
//ossUrl
ossUrl: 'http://ueditor-upload.oss-cn-beijing.aliyuncs.com',
// 用户登录
getUserLogin: '/api/v1/auth/login',
//用户注册
postUserRegister: '/api/v1/auth/register',
//用户退出
userLogout: '/api/v1/auth/logout',
//图片上传
imgUpload: '/api/v1/asyke/upload',
//老师获取班级列表
getClassList: '/api/v1/asyke/course/tealists',
//学生获取班级列表
getStuClassList: '/api/v1/asyke/course/stulists',
//用户信息
getUserInfo: '/api/v1/me/information',
//上传图片
upload: '/api/v1/upload',
//个信息编辑
editinfo: '/api/v1/me/editinfo',
//获取班级信息接口
classInfo: '/api/v1/asyke/class/classlist',
// //获取班级的人员列表接口
// getclassUser:'/api/v1/asyke/class/userlist',
//获取书本
getbookList: '/api/v1/asyke/course/book',
//加入班级
addenterClass: '/api/v1/asyke/class/join',
//创建课程接口
createcourse: '/api/v1/asyke/course/store',
//更新课程信息
courseUpdate: '/api/v1/asyke/course/courseupdate',
//新增班级
addclass: '/api/v1/asyke/class/store',
//获取班级成员
getClassUserList: '/api/v1/asyke/class/userlist',
//更改课程归档接口
courseFileOver: '/api/v1/asyke/course/coursefile',
//课程班级修改
classUpdate: '/api/v1/asyke/class/update',
//班级归档设置
classSetFile: '/api/v1/asyke/class/setfile',
//获取班级下面的跑步主题列表
runList: '/api/v1/run/index',
//跑步主题创建
createRun: '/api/v1/run/store',
//跑步主题跟新删除
runOperation: '/api/v1/run/operation',
//创建主题下面的操作
runProject: '/api/v1/run/project/store',
//获取跑步项目操作列表
getrunActionList: '/api/v1/run/project/index',
//跑步发布跟新
runSendUpdate: '/api/v1/run/project/update',
//获取班级跑步人员列表接口
runUserList: '/api/v1/asyke/class/run/user',
runUserList2: '/api/v1/asyke/class/run/usernew',
//获取用户跑步项目
getrunUserPro: '/api/v1/asyke/class/user/runlist',
//用户设置体重身高
setUserHeight: '/api/v1/run/set/store',
//跑步设置
setRunSave: '/api/v1/run/set/save',
//发送短信验证码
getCode: '/api/v1/auth/pwdcode',
//忘记密码
forgetPassword: '/api/v1/auth/forget',
//重置密码
reSetPass: '/api/v1/auth/reset',
//获取学校下面校区列表
getRunCampus: '/api/v1/run/campus',
//用户开始跑步接口
getRunStart: '/api/v1/run/user/index',
//班级成员退出接口
courseClassOut: "/api/v1/asyke/class/out",
//微信登陆
weixinLogin: '/api/v1/auth/wxlogin',
//获取校区列表和跑步列表
getUserRunSList: '/api/v1/asyke/class/user/run/set',
//获取用户跑步设置
getUserRunSet: '/api/v1/run/set/user',
//获取跑步详情接口
getUserRunInfo: '/api/v1/run/user/info',
//用户跑步记录接口
userRunList: '/api/v1/run/user/list',
//周记录接口
userWeekRunList: '/api/v1/run/user/week',
//用户跑步月记录接口
userMonthRunList: '/api/v1/run/user/month',
//用户跑步年记录接口
userYearRunList: '/api/v1/run/user/year',
//用户成绩跑
userRunRank: '/api/v1/run/rank/user',
//获取指定用户跑步记录
userOpenRunList: '/api/v1/asyke/class/run/user/list',
//审核免跑接口
setNorun: '/api/v1/run/setnorun',
//申请免跑
getNoRun: '/api/v1/run/no_run',
//初始化接口
setInit: '/api/v1/init',
//权限说明
setExplain: '/api/v1/questions',
//院系
partRank: '/api/v1/run/rank/part',
//作弊
cheatRank: '/api/v1/run/rank/cheat',
//用户点赞接口
praise: '/api/v1/run/rank/praise'
});
/***/ }),
/***/ "./src/fetch/index.js":
/*!****************************!*\
!*** ./src/fetch/index.js ***!
\****************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _api_apis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api/apis.js */ "./src/fetch/api/apis.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var eeui = app.requireModule('eeui');
var stream = app.requireModule('stream'); // import MD5 from 'blueimp-md5' // 可以引入npm包,当你需要时
// root-api
var API_BaseUrl = 'http://app.asyke.com'; //const API_BaseUrl = 'http://app.zruup.com.cn'
var API_OssUrl = 'http://ueditor-upload.oss-cn-beijing.aliyuncs.com';
Vue.mixin({
data: function data() {
return {};
},
created: function created() {},
methods: {
// 全局请求函数
$fetch: function $fetch(options) {
// 缓存获取登录token
// let user_token = eeui.getCachesString('user_token')
var apiUrl = "".concat(API_BaseUrl).concat(_api_apis_js__WEBPACK_IMPORTED_MODULE_0__["default"][options.name]); // 支持name和url
apiUrl = options.url || apiUrl; // 支持methods和method
options.method = options.method || options.methods;
options.headers = options.headers || {};
options.data = options.data || {}; // 添加自定义全局参数,比如APP版本号
var versioncode = weex.config.env.appVersion;
options.data.versioncode = versioncode; // 处理get请求
// if (options.method.toLowerCase() === 'get' && options.data) {
// apiUrl += '?';
// for (let key in options.data) {
// apiUrl += `&${key}=${options.data[key]}`
// }
// }
return new Promise(function (resolve, reject) {
stream.fetch({
method: options.method,
url: apiUrl,
type: options.type || 'json',
headers: _objectSpread({
'Content-Type': 'application/json'
}, options.headers),
body: JSON.stringify(options.data)
}, function (res) {
if (res.ok && res.status === 200) {
var data = res.data || {};
resolve(data);
} else {
reject(res);
}
});
});
}
}
});
/***/ }),
/***/ "./src/pages/loginPage/changeuser.vue?entry=true":
/*!*******************************************************!*\
!*** ./src/pages/loginPage/changeuser.vue?entry=true ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __vue_exports__, __vue_options__
var __vue_styles__ = []
/* styles */
__vue_styles__.push(__webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter?id=data-v-14745846!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=styles&index=0!./changeuser.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-14745846!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./src/pages/loginPage/changeuser.vue")
)
/* script */
__vue_exports__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader!babel-loader!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=script&index=0!./changeuser.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./src/pages/loginPage/changeuser.vue")
/* template */
var __vue_template__ = __webpack_require__(/*! !C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler?id=data-v-14745846!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector?type=template&index=0!./changeuser.vue */ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-14745846!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./src/pages/loginPage/changeuser.vue")
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
typeof __vue_exports__.default === "object" ||
typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {eeuiLog.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
__vue_options__ = __vue_options__.options
}
__vue_options__.__file = "F:\\workspace\\weexZruup\\zruupApp\\src\\pages\\loginPage\\changeuser.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-14745846"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
for (var name in module) {
__vue_options__.style[name] = module[name]
}
})
if (typeof __register_static_styles__ === "function") {
__register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}
module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/node_modules/_babel-loader@8.1.0@babel-loader/lib!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/utils/index.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
label: {
type: String,
default: ''
},
title: {
type: String,
default: ''
},
extraContent: {
type: String,
default: ''
},
desc: {
type: String,
default: ''
},
link: {
type: String,
default: ''
},
hasTopBorder: {
type: Boolean,
default: false
},
hasMargin: {
type: Boolean,
default: false
},
hasBottomBorder: {
type: Boolean,
default: true
},
hasArrow: {
type: Boolean,
default: false
},
arrowIcon: {
type: String,
default: 'https://gw.alicdn.com/tfs/TB11zBUpwMPMeJjy1XbXXcwxVXa-22-22.png'
},
hasVerticalIndent: {
type: Boolean,
default: true
},
cellStyle: {
type: Object,
default: () => ({})
},
autoAccessible: {
type: Boolean,
default: true
}
},
methods: {
cellClicked(e) {
const link = this.link;
this.$emit('wxcCellClicked', {
e
});
link && _utils__WEBPACK_IMPORTED_MODULE_0__["default"].goToH5Page(link, true);
}
}
});
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/node_modules/_babel-loader@8.1.0@babel-loader/lib!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/utils/index.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
const animation = weex.requireModule('animation');
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
show: {
type: Boolean,
default: true
},
top: {
type: Number,
default: 0
},
left: {
type: Number,
default: 0
},
hasAnimation: {
type: Boolean,
default: true
},
duration: {
type: [Number, String],
default: 300
},
timingFunction: {
type: Array,
default: () => ['ease-in', 'ease-out']
},
opacity: {
type: [Number, String],
default: 0.6
},
canAutoClose: {
type: Boolean,
default: true
}
},
computed: {
overlayStyle() {
return {
opacity: this.hasAnimation ? 0 : 1,
backgroundColor: `rgba(0, 0, 0,${this.opacity})`,
left: _utils__WEBPACK_IMPORTED_MODULE_0__["default"].env.isWeb() ? this.left + 'px' : 0,
top: this.top + 'px'
};
},
shouldShow() {
const {
show,
hasAnimation
} = this;
hasAnimation && setTimeout(() => {
this.appearOverlay(show);
}, 50);
return show;
}
},
methods: {
overlayClicked(e) {
this.canAutoClose ? this.appearOverlay(false) : this.$emit('wxcOverlayBodyClicked', {});
},
appearOverlay(bool, duration = this.duration) {
const {
hasAnimation,
timingFunction,
canAutoClose
} = this;
const needEmit = !bool && canAutoClose;
needEmit && this.$emit('wxcOverlayBodyClicking', {});
const overlayEl = this.$refs['wxc-overlay'];
if (hasAnimation && overlayEl) {
animation.transition(overlayEl, {
styles: {
opacity: bool ? 1 : 0
},
duration,
timingFunction: timingFunction[bool ? 0 : 1],
delay: 0
}, () => {
needEmit && this.$emit('wxcOverlayBodyClicked', {});
});
} else {
needEmit && this.$emit('wxcOverlayBodyClicked', {});
}
}
}
});
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/node_modules/_babel-loader@8.1.0@babel-loader/lib!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _wxc_overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wxc-overlay */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
const animation = weex.requireModule('animation');
/* harmony default export */ __webpack_exports__["default"] = ({
components: {
WxcOverlay: _wxc_overlay__WEBPACK_IMPORTED_MODULE_0__["default"]
},
props: {
show: {
type: Boolean,
default: false
},
pos: {
type: String,
default: 'bottom'
},
popupColor: {
type: String,
default: '#FFFFFF'
},
overlayCfg: {
type: Object,
default: () => ({
hasAnimation: true,
timingFunction: ['ease-in', 'ease-out'],
duration: 300,
opacity: 0.6
})
},
height: {
type: [Number, String],
default: 840
},
standOut: {
type: [Number, String],
default: 0
},
width: {
type: [Number, String],
default: 750
},
animation: {
type: Object,
default: () => ({
timingFunction: 'ease-in'
})
}
},
data: () => ({
haveOverlay: true,
isOverShow: true
}),
computed: {
isNeedShow() {
setTimeout(() => {
this.appearPopup(this.show);
}, 50);
return this.show;
},
_height() {
this.appearPopup(this.show, 150);
return this.height;
},
padStyle() {
const {
pos,
width,
height,
popupColor,
standOut
} = this;
const stand = parseInt(standOut, 10);
let style = {
width: `${width}px`,
backgroundColor: popupColor
};
pos === 'top' && (style = { ...style,
top: `${-height + stand}px`,
height: `${height}px`
});
pos === 'bottom' && (style = { ...style,
bottom: `${-height + stand}px`,
height: `${height}px`
});
pos === 'left' && (style = { ...style,
left: `${-width + stand}px`
});
pos === 'right' && (style = { ...style,
right: `${-width + stand}px`
});
return style;
}
},
methods: {
handleTouchEnd(e) {
// 在支付宝上面有点击穿透问题
const {
platform
} = weex.config.env;
platform === 'Web' && e.preventDefault && e.preventDefault();
},
hide() {
this.appearPopup(false);
this.$refs.overlay.appearOverlay(false);
},
wxcOverlayBodyClicking() {
this.isShow && this.appearPopup(false);
},
appearPopup(bool, duration = 300) {
this.isShow = bool;
const popupEl = this.$refs['wxc-popup'];
if (!popupEl) {
return;
}
animation.transition(popupEl, {
styles: {
transform: this.getTransform(this.pos, this.width, this.height, !bool)
},
duration,
delay: 0,
...this.animation
}, () => {
if (!bool) {
this.$emit('wxcPopupOverlayClicked', {
pos: this.pos
});
}
});
},
getTransform(pos, width, height, bool) {
let _size = pos === 'top' || pos === 'bottom' ? height : width;
bool && (_size = 0);
let _transform;
switch (pos) {
case 'top':
_transform = `translateY(${_size}px)`;
break;
case 'bottom':
_transform = `translateY(-${_size}px)`;
break;
case 'left':
_transform = `translateX(${_size}px)`;
break;
case 'right':
_transform = `translateX(-${_size}px)`;
break;
}
return _transform;
}
}
});
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/node_modules/_babel-loader@8.1.0@babel-loader/lib!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/type.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
disabled: {
type: Boolean,
default: false
},
alwaysShowCancel: {
type: Boolean,
default: false
},
inputType: {
type: String,
default: 'text'
},
returnKeyType: {
type: String,
default: 'default'
},
mod: {
type: String,
default: 'default'
},
autofocus: {
type: Boolean,
default: false
},
theme: {
type: String,
default: 'gray'
},
barStyle: {
type: Object,
default: () => ({})
},
defaultValue: {
type: String,
default: ''
},
placeholder: {
type: String,
default: '搜索'
},
cancelLabel: {
type: String,
default: '取消 '
},
depName: {
type: String,
default: '杭州'
}
},
computed: {
needShowCancel() {
return this.alwaysShowCancel || this.showCancel;
},
buttonStyle() {
const {
barStyle
} = this;
if (barStyle.backgroundColor) {
return {
backgroundColor: barStyle.backgroundColor
};
}
return {};
}
},
data: () => ({
inputIcon: _type__WEBPACK_IMPORTED_MODULE_0__["INPUT_ICON"],
closeIcon: _type__WEBPACK_IMPORTED_MODULE_0__["CLOSE_ICON"],
arrowIcon: _type__WEBPACK_IMPORTED_MODULE_0__["ARROW_ICON"],
showCancel: false,
showClose: false,
value: ''
}),
created() {
this.defaultValue && (this.value = this.defaultValue);
if (this.disabled) {
this.showCancel = false;
this.showClose = false;
}
},
methods: {
onBlur() {
const self = this;
setTimeout(() => {
self.showCancel = false;
self.detectShowClose();
self.$emit('wxcSearchbarInputOnBlur', {
value: self.value
});
}, 10);
},
autoBlur() {
this.$refs['search-input'].blur();
},
onFocus() {
if (this.isDisabled) {
return;
}
this.showCancel = true;
this.detectShowClose();
this.$emit('wxcSearchbarInputOnFocus', {
value: this.value
});
},
closeClicked() {
this.value = '';
this.showCancel && (this.showCancel = false);
this.showClose && (this.showClose = false);
this.$emit('wxcSearchbarCloseClicked', {
value: this.value
});
this.$emit('wxcSearchbarInputOnInput', {
value: this.value
});
},
onInput(e) {
this.value = e.value;
this.showCancel = true;
this.detectShowClose();
this.$emit('wxcSearchbarInputOnInput', {
value: this.value
});
},
onSubmit(e) {
this.onBlur();
this.value = e.value;
this.showCancel = true;
this.detectShowClose();
this.$emit('wxcSearchbarInputReturned', {
value: this.value
});
},
cancelClicked() {
this.showCancel && (this.showCancel = false);
this.showClose && (this.showClose = false);
this.$emit('wxcSearchbarCancelClicked', {
value: this.value
});
},
detectShowClose() {
this.showClose = this.value.length > 0 && this.showCancel;
},
depClicked() {
this.$emit('wxcSearchbarDepChooseClicked', {});
},
inputDisabledClicked() {
this.$emit('wxcSearchbarInputDisabledClicked', {});
},
setValue(value) {
this.value = value;
}
}
});
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./src/components/radioList.vue":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/node_modules/_babel-loader@8.1.0@babel-loader/lib!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/components/radioList.vue ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
danselectShow: {
type: Boolean,
"default": false
},
itemList: {
type: Object,
"default": []
},
top: {
type: Number,
"default": 300
},
height: {
type: Number,
"default": 300
},
curVal: {
type: String,
"default": ''
},
itemInfo: {
type: Object,
"default": []
}
},
data: function data() {
return {
value: '',
overlayCanClose: true,
isFalse: false,
hasAnimation: true,
selindex: -1,
heightBox: ''
};
},
watch: {
itemList: function itemList() {}
},
methods: {
wxcRadioListChecked: function wxcRadioListChecked(e) {},
openOverlay: function openOverlay() {
this.show = true;
},
selItem: function selItem(index) {
this.danselectShow = false;
this.itemList.map(function (val) {
val.checked = false;
});
this.itemList[index].checked = true; //console.log(this.itemList,'33333');
this.$emit('hideDan', index, this.itemList[index].status);
},
wxcMaskSetHidden: function wxcMaskSetHidden() {
this.danselectShow = false;
this.$emit('hideDan');
}
},
created: function created() {
this.heightBox = this.$getConfig().env.deviceHeight;
},
mounted: function mounted() {}
});
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\script-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_babel-loader@8.1.0@babel-loader\\lib\\index.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=script&index=0!./src/pages/loginPage/changeuser.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/script-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/node_modules/_babel-loader@8.1.0@babel-loader/lib!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=script&index=0!./src/pages/loginPage/changeuser.vue ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var weex_ui_packages_wxc_searchbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! weex-ui/packages/wxc-searchbar */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.js");
/* harmony import */ var weex_ui_packages_wxc_popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! weex-ui/packages/wxc-popup */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.js");
/* harmony import */ var weex_ui_packages_wxc_cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! weex-ui/packages/wxc-cell */ "./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.js");
/* harmony import */ var _components_radioList_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/radioList.vue */ "./src/components/radioList.vue");
/* harmony import */ var _components_radioList_vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_components_radioList_vue__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../fetch/api/apis */ "./src/fetch/api/apis.js");
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var picture = app.requireModule("eeuiPicture");
var eeui = app.requireModule('eeui');
var stream = weex.requireModule('stream');
var network = app.requireModule("eeuiNetwork");
__webpack_require__(/*! ../../fetch */ "./src/fetch/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
components: {
WxcCell: weex_ui_packages_wxc_cell__WEBPACK_IMPORTED_MODULE_2__["default"],
danSel: _components_radioList_vue__WEBPACK_IMPORTED_MODULE_3___default.a,
WxcPopup: weex_ui_packages_wxc_popup__WEBPACK_IMPORTED_MODULE_1__["default"],
WxcSearchbar: weex_ui_packages_wxc_searchbar__WEBPACK_IMPORTED_MODULE_0__["default"]
},
data: function data() {
return {
zhiwu: [],
zwValue: [],
zhiwu_val: '请选择职务',
zwShow: false,
heightH: '',
danwei: '',
newSchoolList: [],
schoolList: eeui.getCaches('schoollist', []),
searchShow: false,
enterYearList: [],
fromShowList: {
//表格编辑显示
userShow: false,
//用户
name: false,
iphone: false,
email: false,
studentId: false,
ident: false,
address: false,
teacherId: false
},
value: '',
selindex: 0,
userInfo: app.config.params.userinfo,
sexValue: '男',
sexIndex: 0,
sexList: [{
text: '男',
type: 1,
checked: false,
status: 'sex'
}, {
text: '女',
type: 2,
checked: false,
status: 'sex'
}],
identityVal: '学生',
identity: [{
text: '学生',
type: 1,
checked: false,
status: 'ident'
}, {
text: '教师',
type: 2,
checked: false,
status: 'ident'
}],
stu_type: [{
text: '体测学生',
type: 1,
checked: true,
status: 'stuType'
}, {
text: '普通学生',
type: 2,
checked: false,
status: 'stuType'
}],
stu_val: '体测学生',
defaultAvator: '',
//默认头像
danDiaogVal: {
show: false,
itemList: [],
heightval: 400,
top: 400,
curVal: ''
},
editUserInfo: {
username: '',
name: '',
email: '',
password: '',
mobile: '',
sex: '',
type: '',
stu_type: 1,
year: '',
school_id: '',
class_position: '',
school_label_one: '',
school_label_two: '',
school_label_three: '',
school_label_four: '',
school_hunban_label_one: '',
school_hunban_label_two: '',
school_hunban_label_three: '',
student_id: '',
mingzu: '',
card_id: '',
address: '',
avatar_file: ''
},
mingzu: [{
text: '汉族',
checked: true,
status: 'mingzu'
}, {
text: '蒙古族',
checked: false,
status: 'mingzu'
}, {
text: '回族',
checked: false,
status: 'mingzu'
}, {
text: '藏族',
checked: false,
status: 'mingzu'
}, {
text: '维吾尔族',
checked: false,
status: 'mingzu'
}, {
text: '苗族',
checked: false,
status: 'mingzu'
}, {
text: '彝族',
checked: false,
status: 'mingzu'
}, {
text: '壮族',
checked: false,
status: 'mingzu'
}, {
text: '布依族',
checked: false,
status: 'mingzu'
}, {
text: '朝鲜族',
checked: false,
status: 'mingzu'
}, {
text: '满族',
checked: false,
status: 'mingzu'
}, {
text: '侗族',
checked: false,
status: 'mingzu'
}, {
text: '瑶族',
checked: false,
status: 'mingzu'
}, {
text: '白族',
checked: false,
status: 'mingzu'
}, {
text: '土家族',
checked: false,
status: 'mingzu'
}, {
text: '哈萨克族',
checked: false,
status: 'mingzu'
}, {
text: '傣族',
checked: false,
status: 'mingzu'
}, {
text: '黎族',
checked: false,
status: 'mingzu'
}, {
text: '傈僳族',
checked: false,
status: 'mingzu'
}, {
text: '高山族',
checked: false,
status: 'mingzu'
}, {
text: '畲族',
checked: false,
status: 'mingzu'
}, {
text: '拉祜族',
checked: false,
status: 'mingzu'
}, {
text: '水族',
checked: false,
status: 'mingzu'
}, {
text: '纳西族',
checked: false,
status: 'mingzu'
}, {
text: '景颇族',
checked: false,
status: 'mingzu'
}, {
text: '柯尔克孜族',
checked: false,
status: 'mingzu'
}, {
text: '土族',
checked: false,
status: 'mingzu'
}, {
text: '达斡尔族',
checked: false,
status: 'mingzu'
}, {
text: '仫佬族',
checked: false,
status: 'mingzu'
}, {
text: '羌族',
checked: false,
status: 'mingzu'
}, {
text: '布朗族',
checked: false,
status: 'mingzu'
}, {
text: '撒拉族',
checked: false,
status: 'mingzu'
}, {
text: '毛南族',
checked: false,
status: 'mingzu'
}, {
text: '仡佬族',
checked: false,
status: 'mingzu'
}, {
text: '锡伯族',
checked: false,
status: 'mingzu'
}, {
text: '阿昌族',
checked: false,
status: 'mingzu'
}, {
text: '普米族',
checked: false,
status: 'mingzu'
}, {
text: '塔吉克族',
checked: false,
status: 'mingzu'
}, {
text: '怒族',
checked: false,
status: 'mingzu'
}, {
text: '乌孜别克族',
checked: false,
status: 'mingzu'
}, {
text: '鄂温克族',
checked: false,
status: 'mingzu'
}, {
text: '德昂族',
checked: false,
status: 'mingzu'
}, {
text: '保安族',
checked: false,
status: 'mingzu'
}, {
text: '裕固族',
checked: false,
status: 'mingzu'
}, {
text: '京族',
checked: false,
status: 'mingzu'
}, {
text: '塔塔尔族',
checked: false,
status: 'mingzu'
}, {
text: '独龙族',
checked: false,
status: 'mingzu'
}, {
text: '鄂伦春族',
checked: false,
status: 'mingzu'
}, {
text: '赫哲族',
checked: false,
status: 'mingzu'
}, {
text: '门巴族',
checked: false,
status: 'mingzu'
}, {
text: '珞巴族',
checked: false,
status: 'mingzu'
}, {
text: '基诺族',
checked: false,
status: 'mingzu'
}, {
text: '穿青人',
checked: false,
status: 'mingzu'
}, {
text: '外国血统',
checked: false,
status: 'mingzu'
}],
is_hunban: false,
hunban_one_name: "",
//混班标题1
hunban_two_name: "",
//混班标题2
hunban_three_name: "",
//混班标题3
hunban_one_val: '请选择',
hunban_two_val: '请选择',
hunban_three_val: '请选择',
hunban_label_one: [],
hunban_label_two: [],
hunban_label_three: [],
labeList: [],
//下级学院
labeListTwo: [],
//第二段下级
labeOne: [],
labeOneIndex: 0,
labeOneVal: '请选择',
labeTwo: [],
labeTwoIndex: 0,
labeTwoVal: '请选择',
labeThree: [],
labeThreeIndex: 0,
labeThreeVal: '请选择',
labeFour: [],
labeFourIndex: 0,
labeFourVal: '请选择',
label_one: '',
//等级名称
label_two: '',
label_three: '',
label_four: ''
};
},
watch: {
userInfo: function userInfo(val) {
this.fuValue();
this.schoolName();
if (val.avatar_file == '') {
this.defaultAvator = eeui.getCaches('headimgurl', null);
} else {
this.defaultAvator = val.avatar_file;
}
;
if (val.type == 1) {
this.identityVal = '学生';
this.identity[0].checked = true;
this.identity[1].checked = false;
} else {
this.identityVal = '教师';
this.identity[1].checked = true;
this.identity[0].checked = false;
}
if (val.sex == 1) {
this.sexValue = '男';
this.sexIndex = 0;
} else {
this.sexValue = '女';
this.sexIndex = 1;
} //从缓存中获取学校列表
var self = this;
var enterYNew = eeui.getCaches('enterYear', null);
enterYNew.map(function (val) {
var obj = {
text: val
};
self.$set(obj, 'checked', false);
self.$set(obj, 'status', 'enterY');
self.enterYearList.push(obj);
});
for (var i = 0; i < self.enterYearList.length; i++) {
if (val.year == self.enterYearList[i].text) {
self.enterYearList[i].checked = true;
return false;
}
}
},
value: function value(val) {
if (val == '') {
this.newSchoolList = [];
} else {
this.search(this.schoolList);
}
},
//职务
zhiwu: function zhiwu(val) {
var _this = this;
this.zwValue = [];
if (val.show_position == 1) {
this.zwShow = true;
this.zhiwu.positions.map(function (el) {
_this.zwValue.push({
text: el.position_name,
id: el.id,
checked: false,
status: "zhiwu"
});
});
this.zwValue.push({
text: "无",
checked: false,
status: "zhiwu"
});
}
this.zwValue.map(function (el2) {
if (_this.editUserInfo.class_position == el2.id) {
el2.checked = true;
}
});
}
},
methods: {
enterVale: function enterVale(index) {
this.searchShow = false;
this.zwShow = false;
this.zwValue = [];
this.zhiwu_val = '请选择职务';
this.editUserInfo.class_position = 0;
this.danwei = this.newSchoolList[index].school_name;
this.editUserInfo.school_id = this.newSchoolList[index].school_id;
this.editUserInfo.school_label_one = 0;
this.editUserInfo.school_label_two = 0;
this.editUserInfo.school_label_three = 0;
this.editUserInfo.school_label_four = 0;
this.editUserInfo.school_hunban_label_one = 0;
this.editUserInfo.school_hunban_label_two = 0;
this.editUserInfo.school_hunban_label_three = 0;
this.label_one = this.newSchoolList[index].label_one;
this.label_two = this.newSchoolList[index].label_two;
this.label_three = this.newSchoolList[index].label_three;
this.label_four = this.newSchoolList[index].label_four;
this.hunban_one_name = this.newSchoolList[index].hunban_label_three;
this.hunban_two_name = this.newSchoolList[index].hunban_label_four;
this.hunban_three_name = this.newSchoolList[index].hunban_label_five;
this.labeOne = [];
this.labeOneVal = '请选择';
this.labeTwo = [];
this.labeThree = [];
this.labeFour = [];
this.labeTwoVal = '请选择';
this.school_hunban_label_one = [];
this.hunban_label_twoVal = '请选择';
this.hunban_label_threeVal = '请选择';
this.hunban_label_one = [];
this.hunban_label_two = [];
this.hunban_label_three = [];
this.getOrganization(this.editUserInfo.school_id);
},
search: function search(obj) {
var self = this;
this.newSchoolList = []; //console.log(obj[0]);
for (var key in obj) {
if (obj[key].school_name.indexOf(self.value) > -1) {
self.newSchoolList.push(obj[key]);
}
}
},
wxcSearchbarInputOnInput: function wxcSearchbarInputOnInput(e) {
this.value = e.value;
},
backIconFUn: function backIconFUn() {
this.searchShow = false;
},
popupOverlayBottomClick: function popupOverlayBottomClick() {
this.searchShow = false;
},
openBottomPopup: function openBottomPopup() {
this.searchShow = true;
},
//选择性别
selSel: function selSel(index) {
this.sexIndex = index;
this.editUserInfo.sex = this.sexList[index].type;
},
//选择值
selRadioDialog: function selRadioDialog(index, status) {
this.danDiaogVal.show = false;
if (index != null) {
//学生
if (status == 'ident') {
this.identityVal = this.identity[index].text;
this.editUserInfo.type = this.identity[index].type;
if (this.editUserInfo.type == 2) {
this.editUserInfo.stu_type = 0;
} else {
this.editUserInfo.stu_type = 1;
}
} //学生类型
if (status == 'stuType') {
this.stu_val = this.stu_type[index].text;
this.editUserInfo.stu_type = this.stu_type[index].type;
} //入学年
if (status == 'enterY') {
this.enterYearVal = this.enterYearList[index].text;
this.editUserInfo.year = this.enterYearList[index].text;
} //labelone
if (status == 'labeOne') {
this.labeOneVal = this.labeOne[index].text;
this.editUserInfo.school_label_one = this.labeOne[index].id;
this.editUserInfo.school_label_two = 0;
this.editUserInfo.school_label_three = 0;
this.editUserInfo.school_label_four = 0;
if (this.labeOne[index].text == '无') {
this.getOrganization(this.editUserInfo.school_id, this.labeOne[index].id, '无');
this.editUserInfo.school_label_one = 0;
this.labeOneVal = '请选择';
this.labeTwoVal = '请选择';
this.labeThreeVal = '请选择';
} else {
this.getOrganization(this.editUserInfo.school_id, this.labeOne[index].id);
}
} //label_two
if (status == 'labeTwo') {
this.labeTwoVal = this.labeTwo[index].text;
this.editUserInfo.school_label_two = this.labeTwo[index].id;
this.editUserInfo.school_label_three = 0;
this.editUserInfo.school_label_four = 0;
this.getOrganization2(this.editUserInfo.school_label_two);
if (this.labeTwo[index].text == '无') {
this.editUserInfo.school_label_two = 0;
this.labeTwoVal = '请选择';
this.labeThree = [];
} //this.userInfoT.school_label_two = this.labeTwo[index].id;
} //label_three
if (status == 'labeThree') {
this.labeThreeVal = this.labeThree[index].text;
this.editUserInfo.school_label_three = this.labeThree[index].id;
this.editUserInfo.school_label_four = 0;
if (this.labeThree[index].text == '无') {
this.getOrganization2(this.editUserInfo.school_label_two, this.labeThree[index].id, 1, '无');
this.editUserInfo.school_label_three = 0;
this.labeThreeVal = '请选择';
this.labeFourVal = '请选择';
} else {
this.getOrganization2(this.editUserInfo.school_label_two, this.labeThree[index].id, 1);
}
} //label_four
if (status == 'labeFour') {
this.labeFourVal = this.labeFour[index].text;
this.editUserInfo.school_label_four = this.labeFour[index].id;
if (this.labeFour[index].text == '无') {
this.editUserInfo.school_label_four = 0;
this.labeFourVal = '请选择';
} //this.userInfoT.school_label_four = this.labeFour[index].id;
} //名族
if (status == 'mingzu') {
this.mingzuValue = this.mingzu[index].text;
this.editUserInfo.mingzu = this.mingzu[index].text;
} //混班1
if (status == 'hunbanTwo') {
this.hunban_two_val = this.hunban_label_two[index].text;
this.editUserInfo.school_hunban_label_two = this.hunban_label_two[index].id;
this.editUserInfo.school_hunban_label_one = this.hunban_label_one[0].id;
this.editUserInfo.school_hunban_label_three = 0;
this.hunban_label_three = [];
this.hunban_three_val = '请选择';
if (this.hunban_label_two[index].text == '无') {
this.editUserInfo.school_hunban_label_two = 0;
this.hunban_two_val = '请选择';
}
this.hunban_three_val = '请选择';
this.getOrganization2(this.hunban_label_two[index].id, 'label', 2);
} //混班2
if (status == 'hunbanThree') {
this.hunban_three_val = this.hunban_label_three[index].text;
this.editUserInfo.school_hunban_label_three = this.hunban_label_three[index].id;
if (this.hunban_label_three[index].text == '无') {
this.editUserInfo.school_hunban_label_three = 0;
this.hunban_three_val = '请选择';
}
} //职务
if (status == 'zhiwu') {
this.zhiwu_val = this.zwValue[index].text;
this.editUserInfo.class_position = this.zwValue[index].id;
if (this.zwValue[index].text == '无') {
this.editUserInfo.class_position = 0;
this.zhiwu_val = '请选择职务';
}
}
}
},
//单选框选择值
selRadioShow: function selRadioShow(val) {
//判断框的值和顶部距离
if (val.length * 80 >= 900) {
this.danDiaogVal.top = 100;
this.danDiaogVal.heightval = 900;
} else {
this.danDiaogVal.heightval = val.length * 80;
this.danDiaogVal.top = 300;
}
this.danDiaogVal.show = true;
this.danDiaogVal.itemList = val;
},
//更改用户名
setuserName: function setuserName() {
this.fromShowList.userShow = true;
},
blurInputUserName: function blurInputUserName() {
this.fromShowList.userShow = false;
},
//更改姓名
setName: function setName() {
this.fromShowList.name = true;
},
blurInputName: function blurInputName() {
this.fromShowList.name = false;
},
//更改号码
setIphone: function setIphone() {
this.fromShowList.iphone = true;
},
blurInputIphone: function blurInputIphone() {
this.fromShowList.iphone = false;
},
//更改邮箱
setIEamil: function setIEamil() {
this.fromShowList.email = true;
},
blurInputEamil: function blurInputEamil() {
this.fromShowList.email = false;
},
//更改学号
setStudentId: function setStudentId() {
this.fromShowList.studentId = true;
},
//更改工号
setTecherId: function setTecherId() {
this.fromShowList.teacherId = true;
},
blurInputsetStudentId: function blurInputsetStudentId() {
this.fromShowList.studentId = false;
},
//更改身份证
setcard: function setcard() {
this.fromShowList.ident = true;
},
blurInputcard: function blurInputcard() {
this.fromShowList.ident = false;
},
//更改地址
setaddress: function setaddress() {
this.fromShowList.address = true;
},
blurInputaddress: function blurInputaddress() {
this.fromShowList.address = false;
},
wxcCellClickedpiture: function wxcCellClickedpiture(e) {
var self = this;
picture.create({
gallery: 1,
mode: 1,
maxNum: 1,
crop: true,
compress: true,
circle: true,
freeCrop: true,
quality: 50
}, function (result) {
//......
if (result.status == 'success') {
if (result.lists[0].compressed) {
//console.log(weex.config.env.platform);
if (weex.config.env.platform == 'iOS') {
self.upLoadImg(result.lists[0].compressPath);
} else {
self.uploadImg2(result.lists[0].compressPath);
} //self.upLoadImg(result.lists[0].compressPath)
//self.uploadImg2(result.lists[0].compressPath)
//console.log(result.lists[0].compressPath);
}
}
});
},
upLoadImg: function upLoadImg(file) {
network.upload({
url: _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].baseUrl + _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].upload,
path: file,
method: 'POST',
formData: {
framework: 'weex/nat'
},
headers: {
//'x-app': 'nat/0.0.8',
'Content-Type': 'multipart/form-data'
}
}, function (ret) {
eeuiLog.log(ret);
});
},
uploadImg2: function uploadImg2(file) {
var self = this;
eeui.ajax({
url: _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].baseUrl + _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].upload,
method: 'POST',
files: {
userimg: file
}
}, function (res) {
//......
//console.log(res);
if (res.status == 'success') {
self.defaultAvator = res.result.url;
self.editUserInfo.avatar_file = res.result.url;
}
});
},
wxcCellClicked: function wxcCellClicked(e) {},
onrefresh: function onrefresh(event) {
var _this2 = this;
this.refreshing = true;
setTimeout(function () {
_this2.refreshing = false;
}, 0);
},
loginpage: function loginpage() {
eeui.openPage({
url: '../loginPage/loginpage.js',
statusBarColor: '#1eb76e',
animated: false
}, function (result) {//......
});
},
back: function back() {
eeui.openPage({
url: 'userInfoPage.js',
animated: false,
params: {
curindex: 2
}
}, function (result) {//......
});
},
setOrganization: function setOrganization(schoolId, labeOne) {
this.labeTwo = [];
this.labeThree = [];
this.labeFour = [];
this.labeFourVal = '请选择';
this.labeTwoVal = '请选择';
this.labeThreeVal = '请选择';
this.is_hunban = false;
var self = this;
stream.fetch({
method: 'GET',
url: 'http://ueditor-upload.oss-cn-beijing.aliyuncs.com/data/school/organizations/' + schoolId + '.json',
type: 'json'
}, function (res) {
if (res.status == 200) {
if (res.data.organizations instanceof Array && res.data.organizations.length > 0) {
var _iterator = _createForOfIteratorHelper(res.data.organizations),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var val = _step.value;
if (val.p_id == 0 && val.is_hunban == 0) {
if (labeOne == val.id) {
var _iterator2 = _createForOfIteratorHelper(val.children),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var val2 = _step2.value;
self.labeTwo.push({
text: val2.label_name,
id: val2.id,
checked: false,
status: 'labeTwo'
});
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
} else {
self.labeOne.push({
text: val.label_name,
id: val.id,
checked: false,
status: 'labeOne'
});
} // if(labeTwo){
// if(labeTwo == val.id){
// for (let val2 of val.children) {
// self.labeTwo.push({text:val2.label_name,id:val2.id,checked:false,status:'labeTwo'});
// }
// }
// }else{
//
// }
} else {
//对混班的处理
self.hunban_label_two = [];
self.hunban_label_one = [];
self.hunban_two_val = '请选择';
self.editUserInfo.hunban_label_one = 0;
self.editUserInfo.hunban_label_two = 0;
self.is_hunban = true;
self.hunban_label_one.push({
text: val.label_name,
id: val.id,
checked: false,
status: "hunbanOne"
});
if (val.children) {
val.children.map(function (hunbanVal) {
self.hunban_label_two.push({
text: hunbanVal.label_name,
id: hunbanVal.id,
checked: false,
status: "hunbanTwo"
});
});
self.hunban_label_two.push({
text: "无",
checked: false,
status: "hunbanTwo"
});
} // return;
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
}
}
});
},
setOrganization2: function setOrganization2(schoolId, labeThree) {
this.labeFour = [];
this.labeFourVal = '请选择';
var self = this;
stream.fetch({
method: 'GET',
url: 'http://ueditor-upload.oss-cn-beijing.aliyuncs.com/data/school/organizations_class/' + schoolId + '.json',
type: 'json'
}, function (res) {
if (res.status == 200) {
if (res.data instanceof Array) {
var _iterator3 = _createForOfIteratorHelper(res.data),
_step3;
try {
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
var val = _step3.value;
if (labeThree) {
if (labeThree == val.id) {
var _iterator4 = _createForOfIteratorHelper(val.children),
_step4;
try {
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
var val2 = _step4.value;
self.labeFour.push({
text: val2.label_name,
id: val2.id,
checked: false,
status: 'labeFour'
});
}
} catch (err) {
_iterator4.e(err);
} finally {
_iterator4.f();
}
}
} else {
self.labeThree = [];
self.labeThreeVal = '请选择';
self.labeThree.push({
text: val.label_name,
id: val.id,
checked: false,
status: 'labeThree'
});
}
}
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
}
}
});
},
//获取组织架构1
getOrganization: function getOrganization(schoolId, label, wu) {
var self = this;
stream.fetch({
method: 'GET',
url: 'http://ueditor-upload.oss-cn-beijing.aliyuncs.com/data/school/organizations/' + schoolId + '.json',
type: 'json'
}, function (res) {
if (res.status == 200) {
//职务的获取
if (res.data.positions) {
self.zhiwu = res.data.positions;
res.data.positions.positions.map(function (val) {
if (self.editUserInfo.class_position == val.id) {
self.zhiwu_val = val.position_name;
}
});
}
self.labeOne = [];
self.labeTwo = [];
self.labeThree = [];
self.labeFour = [];
if (res.data.organizations instanceof Array && res.data.organizations.length > 0) {
for (var i = 0; i < res.data.organizations.length; i++) {
var val = res.data.organizations[i];
if (val.p_id == 0 && val.is_hunban == 0) {
self.labeOne.push({
text: val.label_name,
id: val.id,
checked: false,
status: 'labeOne'
});
if (self.editUserInfo.school_label_one == val.id) {
var _iterator5 = _createForOfIteratorHelper(self.labeOne),
_step5;
try {
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
var oneval = _step5.value;
if (self.editUserInfo.school_label_one == oneval.id) {
oneval.checked = true;
}
}
} catch (err) {
_iterator5.e(err);
} finally {
_iterator5.f();
}
}
if (label == '' || label == undefined) {
if (self.editUserInfo.school_label_one == val.id) {
self.labeOneVal = val.label_name;
var _iterator6 = _createForOfIteratorHelper(self.labeOne),
_step6;
try {
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
var _oneval = _step6.value;
if (self.editUserInfo.school_label_one == _oneval.id) {
_oneval.checked = true;
}
}
} catch (err) {
_iterator6.e(err);
} finally {
_iterator6.f();
}
var _iterator7 = _createForOfIteratorHelper(val.children),
_step7;
try {
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
var val2 = _step7.value;
self.labeTwo.push({
text: val2.label_name,
id: val2.id,
checked: false,
status: 'labeTwo'
});
if (self.editUserInfo.school_label_two == val2.id) {
var _iterator8 = _createForOfIteratorHelper(self.labeTwo),
_step8;
try {
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
var twoval = _step8.value;
if (self.editUserInfo.school_label_two == twoval.id) {
twoval.checked = true;
}
}
} catch (err) {
_iterator8.e(err);
} finally {
_iterator8.f();
}
self.labeTwoVal = val2.label_name;
self.getOrganization2(val2.id);
}
}
} catch (err) {
_iterator7.e(err);
} finally {
_iterator7.f();
}
self.labeTwo.push({
text: "无",
checked: false,
status: "labeTwo"
});
}
} else {
if (label == val.id) {
self.labeTwo = [];
self.labeTwoVal = '请选择';
var _iterator9 = _createForOfIteratorHelper(val.children),
_step9;
try {
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
var _val = _step9.value;
self.labeTwo.push({
text: _val.label_name,
id: _val.id,
checked: false,
status: 'labeTwo'
});
if (self.editUserInfo.school_label_two == _val.id) {
var _iterator10 = _createForOfIteratorHelper(self.labeTwo),
_step10;
try {
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
var _twoval = _step10.value;
if (self.editUserInfo.school_label_two == _twoval.id) {
_twoval.checked = true;
}
}
} catch (err) {
_iterator10.e(err);
} finally {
_iterator10.f();
}
}
}
} catch (err) {
_iterator9.e(err);
} finally {
_iterator9.f();
}
self.labeTwo.push({
text: "无",
checked: false,
status: "labeTwo"
});
}
}
} else {
//对混班的处理
self.is_hunban = true;
self.hunban_label_one = [];
self.hunban_label_two = [];
self.hunban_two_val = '请选择';
self.hunban_three_val = '请选择';
self.hunban_label_one.push({
text: val.label_name,
id: val.id,
checked: false,
status: "hunbanOne"
});
if (val.children) {
val.children.map(function (hunbanVal) {
if (self.editUserInfo.school_hunban_label_two == hunbanVal.id) {
self.hunban_two_val = hunbanVal.label_name;
self.getOrganization2(self.editUserInfo.school_hunban_label_two, '', 2);
}
self.hunban_label_two.push({
text: hunbanVal.label_name,
id: hunbanVal.id,
checked: false,
status: "hunbanTwo"
});
var _iterator11 = _createForOfIteratorHelper(self.hunban_label_two),
_step11;
try {
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
var hunban_label_twoVal = _step11.value;
if (self.editUserInfo.school_hunban_label_two == hunban_label_twoVal.id) {
hunban_label_twoVal.checked = true;
}
}
} catch (err) {
_iterator11.e(err);
} finally {
_iterator11.f();
}
});
self.hunban_label_two.push({
text: "无",
checked: false,
status: "hunbanTwo"
});
}
}
}
}
if (wu == '无') {
self.labeOne.push({
text: "无",
checked: true,
status: "labeOne"
});
} else {
self.labeOne.push({
text: "无",
checked: false,
status: "labeOne"
});
}
}
});
},
//获取组织架构2
getOrganization2: function getOrganization2(schoolId, label, type, wu) {
var self = this;
stream.fetch({
method: 'GET',
url: 'http://ueditor-upload.oss-cn-beijing.aliyuncs.com/data/school/organizations_class/' + schoolId + '.json',
type: 'json'
}, function (res) {
if (res.status == 200) {
self.hunban_label_three = [];
if (type == 2) {
//console.log(res.data);
res.data.map(function (val) {
if (self.editUserInfo.school_hunban_label_three == val.id) {
self.hunban_three_val = val.label_name;
}
self.hunban_label_three.push({
text: val.label_name,
id: val.id,
hunban_name: val.hunban_name,
hunban_teacher: val.hunban_teacher,
checked: false,
status: "hunbanThree"
});
var _iterator12 = _createForOfIteratorHelper(self.hunban_label_three),
_step12;
try {
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
var hunban_label_threeVal = _step12.value;
if (self.editUserInfo.school_hunban_label_three == hunban_label_threeVal.id) {
hunban_label_threeVal.checked = true;
}
}
} catch (err) {
_iterator12.e(err);
} finally {
_iterator12.f();
}
});
self.hunban_label_three.push({
text: "无",
checked: false,
status: "hunbanThree"
});
} else {
self.labeFourVal = '请选择';
if (res.data instanceof Array) {
self.labeThree = [];
self.labeFour = [];
if (label == '' || label == undefined) {
self.labeThreeVal = '请选择';
var _iterator13 = _createForOfIteratorHelper(res.data),
_step13;
try {
for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
var val = _step13.value;
self.labeThree.push({
text: val.label_name,
id: val.id,
checked: false,
status: 'labeThree'
});
if (self.editUserInfo.school_label_three == val.id) {
var _iterator14 = _createForOfIteratorHelper(self.labeThree),
_step14;
try {
for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
var threeval = _step14.value;
if (self.editUserInfo.school_label_three == threeval.id) {
threeval.checked = true;
}
} //console.log(val.label_name);
} catch (err) {
_iterator14.e(err);
} finally {
_iterator14.f();
}
self.labeThreeVal = val.label_name;
var _iterator15 = _createForOfIteratorHelper(val.children),
_step15;
try {
for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
var val2 = _step15.value;
self.labeFour.push({
text: val2.label_name,
id: val2.id,
checked: false,
status: 'labeFour'
});
if (self.editUserInfo.school_label_four == val2.id) {
var _iterator16 = _createForOfIteratorHelper(self.labeFour),
_step16;
try {
for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
var fourval = _step16.value;
if (self.editUserInfo.school_label_four == fourval.id) {
fourval.checked = true;
}
}
} catch (err) {
_iterator16.e(err);
} finally {
_iterator16.f();
}
self.labeFourVal = val2.label_name;
}
}
} catch (err) {
_iterator15.e(err);
} finally {
_iterator15.f();
}
self.labeFour.push({
text: "无",
checked: false,
status: "labeFour"
});
}
}
} catch (err) {
_iterator13.e(err);
} finally {
_iterator13.f();
}
if (wu == '无') {
self.labeThree.push({
text: "无",
checked: true,
status: "labeThree"
});
} else {
self.labeThree.push({
text: "无",
checked: false,
status: "labeThree"
});
}
} else {
var _iterator17 = _createForOfIteratorHelper(res.data),
_step17;
try {
for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
var _val2 = _step17.value;
self.labeThree.push({
text: _val2.label_name,
id: _val2.id,
checked: false,
status: 'labeThree'
});
if (label == _val2.id) {
var _iterator18 = _createForOfIteratorHelper(self.labeThree),
_step18;
try {
for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
var _threeval = _step18.value;
if (self.editUserInfo.school_label_three == _threeval.id) {
_threeval.checked = true;
}
}
} catch (err) {
_iterator18.e(err);
} finally {
_iterator18.f();
}
var _iterator19 = _createForOfIteratorHelper(_val2.children),
_step19;
try {
for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
var _val3 = _step19.value;
self.labeFour.push({
text: _val3.label_name,
id: _val3.id,
checked: false,
status: 'labeFour'
});
}
} catch (err) {
_iterator19.e(err);
} finally {
_iterator19.f();
}
self.labeFour.push({
text: "无",
checked: false,
status: "labeFour"
});
}
}
} catch (err) {
_iterator17.e(err);
} finally {
_iterator17.f();
}
self.labeThree.push({
text: "无",
checked: false,
status: "labeThree"
});
}
}
}
}
});
},
schoolName: function schoolName() {
//付值学校id
if (this.schoolList.length > 0) {
for (var v = 0; v < this.schoolList.length; v++) {
if (this.userInfo.school_id == this.schoolList[v].school_id) {
this.danwei = this.schoolList[v].school_name;
this.label_one = this.schoolList[v].label_one;
this.label_two = this.schoolList[v].label_two;
this.label_three = this.schoolList[v].label_three;
this.label_four = this.schoolList[v].label_four;
this.hunban_one_name = this.schoolList[v].hunban_label_three;
this.hunban_two_name = this.schoolList[v].hunban_label_four;
this.hunban_three_name = this.schoolList[v].hunban_label_five; //console.log(this.schoolList[v]);
// for(let i = 0;i<this.schoolList[v].children.length;i++){
// if(this.username){}
// }
return;
}
}
}
},
fuValue: function fuValue() {
//赋值
this.editUserInfo.username = this.userInfo.user_name;
this.editUserInfo.mobile = this.userInfo.mobile;
this.editUserInfo.name = this.userInfo.name;
this.editUserInfo.email = this.userInfo.email;
this.editUserInfo.sex = this.userInfo.sex;
this.editUserInfo.type = this.userInfo.type;
this.editUserInfo.class_position = this.userInfo.class_position;
this.editUserInfo.year = this.userInfo.year;
this.editUserInfo.school_id = this.userInfo.school_id;
this.editUserInfo.student_id = this.userInfo.student_id;
this.editUserInfo.school_label_one = this.userInfo.school_label_one;
this.editUserInfo.school_label_two = this.userInfo.school_label_two;
this.editUserInfo.school_label_three = this.userInfo.school_label_three;
this.editUserInfo.school_label_four = this.userInfo.school_label_four;
this.editUserInfo.school_hunban_label_one = this.userInfo.school_hunban_label_one;
this.editUserInfo.school_hunban_label_two = this.userInfo.school_hunban_label_two;
this.editUserInfo.school_hunban_label_three = this.userInfo.school_hunban_label_three;
this.editUserInfo.mingzu = this.userInfo.mingzu;
this.editUserInfo.card_id = this.userInfo.card_id;
this.editUserInfo.address = this.userInfo.address;
this.editUserInfo.avatar_file = this.userInfo.avatar_file;
},
//请求用户信息
getUserInfo: function getUserInfo() {
var _this3 = this;
stream.fetch({
url: _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].baseUrl + _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].getUserInfo,
method: 'GET',
type: 'json',
headers: {
Authorization: eeui.getCaches('token', null).token
}
}, function (res) {
if (res.status == 200) {
_this3.userInfo = res.data; //console.log(res);
} else {} //console.log(res);
});
},
rechargeSubmit: function rechargeSubmit() {
// this.$refs.blur1.blur();
// if(this.identityVal == '学生'){
// this.$refs.blur3.blur();
// this.$refs.blur4.blur();
// this.$refs.blur5.blur();
// }else{
// this.$refs.blur2.blur();
// }
if (this.editUserInfo.type == 2) {
this.editUserInfo.stu_type = 0;
} //console.log(this.editUserInfo);
if (this.editUserInfo.name == "") {
eeui.toast({
message: "姓名不能为空",
gravity: "top"
});
return;
}
var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(17[0-9]{1})|(15[0-3]{1})|(15[4-9]{1})|(18[0-9]{1})|(199))+\d{8})$/;
if (this.editUserInfo.mobile == "") {
eeui.toast({
message: "手机号不能为空",
gravity: "top"
});
return;
} else if (this.editUserInfo.mobile.length != 11) {
eeui.toast({
message: "请输入11位手机号码!",
gravity: "top"
});
return;
} else if (!myreg.test(this.editUserInfo.mobile)) {
eeui.toast({
message: "请输入有效的手机号码!",
gravity: "top"
});
return;
}
if (this.editUserInfo.year == "" && this.editUserInfo.type == 1) {
eeui.toast({
message: "入学年不能为空",
gravity: "top"
});
return;
}
if (this.editUserInfo.school_id == "") {
eeui.toast({
message: "单位不能为空",
gravity: "top"
});
return;
} // if (this.editUserInfo.card_id == "" && this.editUserInfo.type == 1) {
// eeui.toast({
// message: "身份证不能为空",
// gravity: "top"
// });
// return;
// }
// if (this.editUserInfo.address == "" && this.editUserInfo.type == 1) {
// eeui.toast({
// message: "地址不能为空",
// gravity: "top"
// });
// return;
// }
var self = this;
stream.fetch({
method: 'POST',
url: _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].baseUrl + _fetch_api_apis__WEBPACK_IMPORTED_MODULE_4__["default"].editinfo,
type: 'json',
body: JSON.stringify(self.editUserInfo),
headers: {
'Content-Type': 'application/json',
Authorization: eeui.getCaches('token', null).token
}
}, function (res) {
if (res.status == 200) {
// eeui.toast({
// message:'修改成功',
// gravity:'top'
// });
eeui.openPage({
pageName: 'home',
pageType: 'app',
url: '../homePages/home.js',
params: {
position: 0
}
}, function (result) {//......
});
} else {
//console.log(res,'333333');
eeui.toast({
message: decodeURIComponent(res.headers['x-mzq-message']),
gravity: 'top'
});
}
});
}
},
created: function created() {
//console.log(eeui.getCaches('token', null).token);
//this.defaultAvator = app.config.params.avatar;
this.getUserInfo(); //this.getOrganization(this.userInfo.school_id);
this.heightH = weex.config.env.deviceHeight - 250; // if(this.userInfo.avatar_file == ''){
// this.defaultAvator = '../../assets/images/defaultAvator.jpg'
// }else{
// this.defaultAvator = this.userInfo.avatar_file;
// };
// if(this.userInfo.type == 1){
// this.identityVal = '学生'
// this.identity[0].checked = true;
// this.identity[1].checked = false;
// }else{
// this.identityVal = '教师'
// this.identity[1].checked = true;
// this.identity[0].checked = false;
// }
// if(this.userInfo.sex == 1){
// this.sexValue = '男';
// this.sexIndex = 0;
// }else{
// this.sexValue = '女';
// this.sexIndex = 1;
// }
//从缓存中获取学校列表
// var self = this;
// var enterYNew = eeui.getCaches('enterYear', null);
// enterYNew.map(val => {
// var obj = {text:val};
// self.$set(obj, 'checked', false);
// self.$set(obj, 'status', 'enterY');
// self.enterYearList.push(obj);
// })
// for(var i = 0;i<self.enterYearList.length;i++){
// if(self.userInfo.year == self.enterYearList[i].text){
// self.enterYearList[i].checked = true;
// return false;
// }
// }
},
mounted: function mounted() {//this.fuValue();
//第二级
//this.schoolName();
//console.log(this.userInfo);
// eeuiLog.log(eeui.getCaches('token', null).token);
}
});
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-14745846!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./src/pages/loginPage/changeuser.vue":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-14745846!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/pages/loginPage/changeuser.vue ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {
"leftText": {
"paddingLeft": "0",
"fontSize": "30",
"color": "#333333"
},
"itemS": {
"height": "80",
"borderBottomColor": "#e5e5e5",
"borderBottomWidth": "1",
"borderBottomStyle": "solid",
"lineHeight": "80",
"fontSize": "26",
"paddingLeft": "30"
},
"container": {
"backgroundColor": "#ebebeb"
},
"popurBackBtn": {
"marginLeft": "30",
"color": "#ffffff",
"fontSize": "30",
"width": "80",
"height": "100",
"lineHeight": "100"
},
"mastTip": {
"position": "absolute",
"left": "200",
"top": "38",
"color": "#FF0000",
"fontSize": "24"
},
"sexSelBox": {
"flexDirection": "row",
"marginRight": "30"
},
"nan": {
"flexDirection": "row",
"alignItems": "center",
"marginLeft": "30"
},
"point": {
"width": "30",
"height": "30",
"borderRadius": "30",
"backgroundColor": "#1eb76e"
},
"selBtn": {
"width": "40",
"height": "40",
"borderStyle": "solid",
"borderWidth": "1",
"borderColor": "#999999",
"borderRadius": "50",
"justifyContent": "center",
"alignItems": "center",
"marginRight": "10"
},
"sextext": {
"fontSize": "30"
},
"cellItem": {
"flexDirection": "row",
"justifyContent": "space-between",
"backgroundColor": "#ffffff",
"height": "100",
"alignItems": "center",
"borderBottomColor": "#e3e3e3",
"borderBottomWidth": "1",
"borderBottomStyle": "solid",
"paddingLeft": "25"
},
"rightInput": {
"width": 500,
"height": 90,
"fontSize": "30",
"textAlign": "right",
"paddingRight": "55"
},
"cellMargin": {
"marginBottom": "25"
},
"cell_list_box": {
"marginBottom": "50"
},
"navbarb": {
"width": "750",
"height": "100",
"backgroundColor": "#1eb76e"
},
"headtext": {
"fontSize": "30",
"color": "#ffffff"
},
"righttext": {
"fontSize": "30",
"color": "#333333",
"marginRight": "55"
},
"righttext2": {
"fontSize": "30",
"color": "#333333",
"marginRight": "10"
},
"grey": {
"color": "#999999"
},
"avator": {
"borderRadius": 100,
"marginRight": 10
},
"backIcon": {
"width": "100",
"height": "100",
"color": "#ffffff"
},
"button": {
"width": "690",
"height": "80",
"marginLeft": 30,
"marginBottom": "50"
}
}
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-149d58ea!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-149d58ea!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {
"wxc-cell": {
"flexDirection": "row",
"alignItems": "center",
"paddingLeft": "24",
"paddingRight": "24",
"backgroundColor": "#ffffff"
},
"cell-margin": {
"marginBottom": "24"
},
"cell-title": {
"flex": 1
},
"cell-indent": {
"paddingBottom": "30",
"paddingTop": "30"
},
"has-desc": {
"paddingBottom": "18",
"paddingTop": "18"
},
"cell-top-border": {
"borderTopColor": "#e2e2e2",
"borderTopWidth": "1"
},
"cell-bottom-border": {
"borderBottomColor": "#e2e2e2",
"borderBottomWidth": "1"
},
"cell-label-text": {
"fontSize": "30",
"color": "#666666",
"width": "188",
"marginRight": "10"
},
"cell-arrow-icon": {
"width": "22",
"height": "22"
},
"cell-content": {
"color": "#333333",
"fontSize": "30",
"lineHeight": "40"
},
"cell-desc-text": {
"color": "#999999",
"fontSize": "24",
"lineHeight": "30",
"marginTop": "4",
"marginRight": "30"
},
"extra-content-text": {
"fontSize": "28",
"color": "#999999",
"marginRight": "4"
}
}
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-34cae37f!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-34cae37f!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {
"wxc-popup": {
"position": "fixed",
"width": "750"
},
"top": {
"left": 0,
"right": 0
},
"bottom": {
"left": 0,
"right": 0
},
"left": {
"bottom": 0,
"top": 0
},
"right": {
"bottom": 0,
"top": 0
}
}
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-48d7063a!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-48d7063a!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {
"wxc-overlay": {
"width": "750",
"position": "fixed",
"bottom": 0,
"right": 0
}
}
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-7a7b0a04!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-7a7b0a04!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {
"wxc-search-bar": {
"paddingLeft": "20",
"paddingRight": "20",
"backgroundColor": "#ffffff",
"width": "750",
"height": "84",
"flexDirection": "row"
},
"wxc-search-bar-yellow": {
"backgroundColor": "#ffc900"
},
"search-bar-input": {
"position": "absolute",
"top": "10",
"paddingTop": 0,
"paddingBottom": 0,
"paddingRight": "40",
"paddingLeft": "60",
"fontSize": "26",
"width": "624",
"height": "64",
"lineHeight": "64",
"backgroundColor": "#E5E5E5",
"borderRadius": "6"
},
"search-bar-input-yellow": {
"backgroundColor": "#fff6d6"
},
"search-bar-icon": {
"position": "absolute",
"width": "30",
"height": "30",
"left": "34",
"top": "28"
},
"search-bar-close": {
"position": "absolute",
"width": "30",
"height": "30",
"right": "120",
"top": "28"
},
"search-bar-button": {
"width": "94",
"height": "36",
"fontSize": "30",
"textAlign": "center",
"backgroundColor": "#ffffff",
"marginTop": "16",
"marginRight": 0,
"color": "#333333",
"position": "absolute",
"right": "8",
"top": "9"
},
"search-bar-button-yellow": {
"backgroundColor": "#FFC900"
},
"input-has-dep": {
"paddingLeft": "240",
"width": "710"
},
"bar-dep": {
"width": "170",
"paddingRight": "12",
"paddingLeft": "12",
"height": "42",
"alignItems": "center",
"flexDirection": "row",
"position": "absolute",
"left": "24",
"top": "22",
"borderRightStyle": "solid",
"borderRightWidth": "1",
"borderRightColor": "#C7C7C7"
},
"bar-dep-yellow": {
"borderRightColor": "#C7C7C7"
},
"dep-text": {
"flex": 1,
"textAlign": "center",
"fontSize": "26",
"color": "#666666",
"marginRight": "6",
"lines": 1,
"textOverflow": "ellipsis"
},
"dep-arrow": {
"width": "24",
"height": "24"
},
"icon-has-dep": {
"left": "214"
},
"disabled-input": {
"width": "750",
"height": "64",
"position": "absolute",
"left": 0,
"backgroundColor": "rgba(0,0,0,0)"
},
"has-dep-disabled": {
"width": "550",
"left": "200"
}
}
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-loader.js!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\style-rewriter.js?id=data-v-a2217e0e!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=styles&index=0!./src/components/radioList.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-loader.js!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/style-rewriter.js?id=data-v-a2217e0e!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=styles&index=0!./src/components/radioList.vue ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {
"radioList": {
"width": "650",
"height": "80",
"borderBottomStyle": "solid",
"borderBottomColor": "#dddddd",
"borderBottomWidth": "1",
"flexDirection": "row",
"justifyContent": "space-between",
"alignItems": "center",
"paddingLeft": "10",
"paddingRight": "10"
},
"left": {
"color": "#333333",
"marginLeft": "20",
"fontSize": "28"
},
"left2": {
"color": "#333333",
"marginLeft": "10",
"fontSize": "28",
"width": "140"
},
"left3": {
"color": "#333333",
"marginLeft": "10",
"fontSize": "28",
"width": "100"
},
"right": {
"width": "40",
"height": "40",
"borderWidth": "1",
"borderStyle": "solid",
"borderColor": "#999999",
"borderRadius": "50",
"marginRight": "20",
"justifyContent": "center",
"alignItems": "center"
},
"radioDian": {
"width": "30",
"height": "30",
"backgroundColor": "#1eb76e",
"borderRadius": "30"
},
"danSelRadioBox": {
"position": "fixed",
"top": 0,
"left": 0,
"width": "750",
"backgroundColor": "rgba(0,0,0,0.6)"
},
"content": {
"backgroundColor": "#ffffff",
"width": "650",
"marginLeft": "50"
}
}
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-14745846!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./src/pages/loginPage/changeuser.vue":
/*!************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-14745846!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/pages/loginPage/changeuser.vue ***!
\************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', {
staticClass: ["container"]
}, [_c('navbar', {
staticClass: ["navbarb"]
}, [_c('navbar-item', {
attrs: {
"type": "back"
}
}), _c('navbar-item', {
attrs: {
"type": "title"
}
}, [_c('text', {
staticClass: ["headtext"]
}, [_vm._v("完善个人信息")])])], 1), _c('scroller', {
staticClass: ["tablelist"],
attrs: {
"showScrollbar": false
}
}, [_c('div', {
staticClass: ["cell_list_box"]
}, [_c('wxc-cell', {
attrs: {
"title": "头像",
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": _vm.wxcCellClickedpiture
}
}, [_c('image', {
staticClass: ["avator"],
staticStyle: {
width: "142px",
height: "142px"
},
attrs: {
"src": _vm.defaultAvator
}
})]), _c('div', {
staticClass: ["cellItem", "cellMargin"],
on: {
"click": _vm.setIphone
}
}, [_c('text', {
staticClass: ["leftText"]
}, [_vm._v("手机号")]), _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), (!_vm.fromShowList.iphone) ? _c('text', {
staticClass: ["righttext", "grey"]
}, [_vm._v(_vm._s(_vm.editUserInfo.mobile))]) : _vm._e(), (_vm.fromShowList.iphone) ? _c('input', {
staticClass: ["rightInput"],
attrs: {
"type": "tpl",
"autofocus": "true",
"placeholder": "请输入手机号",
"maxLength": "11",
"value": (_vm.editUserInfo.mobile)
},
on: {
"blur": _vm.blurInputName,
"input": function($event) {
_vm.$set(_vm.editUserInfo, "mobile", $event.target.attr.value)
}
}
}) : _vm._e()]), _c('div', {
staticClass: ["cellItem"],
on: {
"click": _vm.setName
}
}, [_c('text', {
staticClass: ["leftText"]
}, [_vm._v("姓名")]), _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), (!_vm.fromShowList.name) ? _c('text', {
staticClass: ["righttext"]
}, [_vm._v(_vm._s(_vm.editUserInfo.name))]) : _vm._e(), (_vm.fromShowList.name) ? _c('input', {
ref: "blur1",
staticClass: ["rightInput"],
attrs: {
"type": "text",
"autofocus": "true",
"placeholder": "请输入姓名",
"maxLength": "20",
"value": (_vm.editUserInfo.name)
},
on: {
"blur": _vm.blurInputName,
"input": function($event) {
_vm.$set(_vm.editUserInfo, "name", $event.target.attr.value)
}
}
}) : _vm._e()]), _c('wxc-cell', {
attrs: {
"title": "性别",
"hasArrow": false,
"hasMargin": false,
"hasTopBorder": false
}
}, [_c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), _c('div', {
staticClass: ["sexSelBox"]
}, _vm._l((_vm.sexList), function(item, index) {
return _c('div', {
key: index,
staticClass: ["nan"],
on: {
"click": function($event) {
_vm.selSel(index)
}
}
}, [_c('div', {
staticClass: ["selBtn"]
}, [(index == _vm.sexIndex) ? _c('div', {
staticClass: ["point"]
}) : _vm._e()]), _c('text', {
staticClass: ["sextext"]
}, [_vm._v(_vm._s(item.text))])])
}))]), _c('wxc-cell', {
attrs: {
"title": "身份",
"hasArrow": true,
"hasMargin": _vm.identityVal == '学生' ? false : true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.identity, _vm.selindex)
}
}
}, [_c('text', {
staticClass: ["righttext2"]
}, [_vm._v(_vm._s(_vm.identityVal))])]), (_vm.identityVal == '学生') ? _c('wxc-cell', {
attrs: {
"title": "学生类型",
"hasArrow": true,
"hasMargin": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.stu_type, _vm.selindex)
}
}
}, [_c('text', {
staticClass: ["righttext2"]
}, [_vm._v(_vm._s(_vm.stu_val))])]) : _vm._e(), (_vm.identityVal == '学生') ? _c('wxc-cell', {
attrs: {
"title": "入学年",
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.enterYearList, _vm.selindex)
}
}
}, [_c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), _c('text', {
staticClass: ["righttext2"]
}, [_vm._v(_vm._s(_vm.editUserInfo.year))])]) : _vm._e(), _c('wxc-cell', {
attrs: {
"title": "单位",
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": _vm.openBottomPopup
}
}, [_c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), _c('text', {
staticClass: ["righttext2"]
}, [_vm._v(_vm._s(_vm.danwei))])]), (_vm.labeOne.length > 1) ? _c('wxc-cell', {
attrs: {
"title": _vm.label_one ? _vm.label_one : '第二级',
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.labeOne)
}
}
}, [(_vm.identityVal == '学生') ? _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]) : _vm._e(), _c('text', {
staticClass: ["righttext2"],
class: [_vm.labeOneVal == '请选择' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.labeOneVal))])]) : _vm._e(), (_vm.labeTwo.length > 1) ? _c('wxc-cell', {
attrs: {
"title": _vm.label_two ? _vm.label_two : '第三级',
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.labeTwo)
}
}
}, [(_vm.identityVal == '学生') ? _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]) : _vm._e(), _c('text', {
staticClass: ["righttext2"],
class: [_vm.labeTwoVal == '请选择' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.labeTwoVal))])]) : _vm._e(), (_vm.labeThree.length > 1) ? _c('wxc-cell', {
attrs: {
"title": _vm.label_three ? _vm.label_three : '第四级',
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.labeThree)
}
}
}, [(_vm.identityVal == '学生') ? _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]) : _vm._e(), _c('text', {
staticClass: ["righttext2"],
class: [_vm.labeThreeVal == '请选择' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.labeThreeVal))])]) : _vm._e(), (_vm.labeFour.length > 1) ? _c('wxc-cell', {
attrs: {
"title": _vm.label_four ? _vm.label_four : '第五级',
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.labeFour)
}
}
}, [(_vm.identityVal == '学生') ? _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]) : _vm._e(), _c('text', {
staticClass: ["righttext2"],
class: [_vm.labeFourVal == '请选择' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.labeFourVal))])]) : _vm._e(), (_vm.identityVal == '教师') ? _c('div', {
staticClass: ["cellItem"],
on: {
"click": _vm.setTecherId
}
}, [_c('text', {
staticClass: ["leftText"]
}, [_vm._v("工号")]), (!_vm.fromShowList.teacherId) ? _c('text', {
staticClass: ["righttext"]
}, [_vm._v(_vm._s(_vm.editUserInfo.student_id))]) : _vm._e(), (_vm.fromShowList.teacherId) ? _c('input', {
ref: "blur2",
staticClass: ["rightInput"],
attrs: {
"type": "tel",
"autofocus": "false",
"placeholder": "请输入工号",
"maxLength": "20",
"value": (_vm.editUserInfo.student_id)
},
on: {
"input": function($event) {
_vm.$set(_vm.editUserInfo, "student_id", $event.target.attr.value.trim())
}
}
}) : _vm._e()]) : _vm._e(), (_vm.identityVal == '学生') ? _c('div', {
staticClass: ["cellItem"],
class: [_vm.zwShow ? '' : 'cellMargin'],
on: {
"click": _vm.setStudentId
}
}, [_c('text', {
staticClass: ["leftText"]
}, [_vm._v("学号")]), _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), (!_vm.fromShowList.studentId) ? _c('text', {
staticClass: ["righttext"]
}, [_vm._v(_vm._s(_vm.editUserInfo.student_id))]) : _vm._e(), (_vm.fromShowList.studentId) ? _c('input', {
ref: "blur3",
staticClass: ["rightInput"],
attrs: {
"type": "text",
"autofocus": "true",
"placeholder": "请输入学号",
"value": (_vm.editUserInfo.student_id)
},
on: {
"blur": _vm.blurInputsetStudentId,
"input": function($event) {
_vm.$set(_vm.editUserInfo, "student_id", $event.target.attr.value)
}
}
}) : _vm._e()]) : _vm._e(), (_vm.identityVal == '学生' && _vm.zwShow) ? _c('wxc-cell', {
attrs: {
"title": "职务",
"hasArrow": true,
"hasMargin": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.zwValue)
}
}
}, [_c('text', {
staticClass: ["righttext2"],
class: [_vm.zhiwu_val == '请选择职务' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.zhiwu_val))])]) : _vm._e(), (_vm.identityVal == '学生' && _vm.is_hunban == 1) ? _c('wxc-cell', {
attrs: {
"title": _vm.hunban_one_name ? _vm.hunban_one_name : '混班三级',
"hasArrow": true,
"hasMargin": false,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.hunban_label_two)
}
}
}, [_c('text', {
staticClass: ["righttext2"],
class: [_vm.hunban_two_val == '请选择' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.hunban_two_val))])]) : _vm._e(), (_vm.identityVal == '学生' && _vm.hunban_two_val != '请选择') ? _c('wxc-cell', {
attrs: {
"title": _vm.hunban_two_name ? _vm.hunban_two_name : '混班四级',
"hasArrow": true,
"hasMargin": false,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.hunban_label_three)
}
}
}, [_c('text', {
staticClass: ["righttext2"],
class: [_vm.hunban_three_val == '请选择' ? 'grey' : '']
}, [_vm._v(_vm._s(_vm.hunban_three_val))])]) : _vm._e(), (_vm.identityVal == '学生') ? _c('wxc-cell', {
attrs: {
"title": "民族",
"hasArrow": true,
"hasTopBorder": false
},
on: {
"wxcCellClicked": function($event) {
_vm.selRadioShow(_vm.mingzu)
}
}
}, [_c('text', {
staticClass: ["righttext2"]
}, [_vm._v(_vm._s(_vm.editUserInfo.mingzu))])]) : _vm._e(), (_vm.identityVal == '学生') ? _c('div', {
staticClass: ["cellItem"],
on: {
"click": _vm.setcard
}
}, [_c('text', {
staticClass: ["leftText"]
}, [_vm._v("身份证")]), _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), (!_vm.fromShowList.ident) ? _c('text', {
staticClass: ["righttext"]
}, [_vm._v(_vm._s(_vm.editUserInfo.card_id))]) : _vm._e(), (_vm.fromShowList.ident) ? _c('input', {
ref: "blur4",
staticClass: ["rightInput"],
attrs: {
"type": "text",
"autofocus": "true",
"placeholder": "请输入地址",
"value": (_vm.editUserInfo.card_id)
},
on: {
"blur": _vm.blurInputcard,
"input": function($event) {
_vm.$set(_vm.editUserInfo, "card_id", $event.target.attr.value)
}
}
}) : _vm._e()]) : _vm._e(), (_vm.identityVal == '学生') ? _c('div', {
staticClass: ["cellItem"],
on: {
"click": _vm.setaddress
}
}, [_c('text', {
staticClass: ["leftText"]
}, [_vm._v("家庭住址")]), _c('text', {
staticClass: ["mastTip"]
}, [_vm._v("*")]), (!_vm.fromShowList.address) ? _c('text', {
staticClass: ["righttext"]
}, [_vm._v(_vm._s(_vm.editUserInfo.address))]) : _vm._e(), (_vm.fromShowList.address) ? _c('input', {
ref: "blur5",
staticClass: ["rightInput"],
attrs: {
"type": "text",
"autofocus": "true",
"placeholder": "请输入地址",
"value": (_vm.editUserInfo.address)
},
on: {
"blur": _vm.blurInputaddress,
"input": function($event) {
_vm.$set(_vm.editUserInfo, "address", $event.target.attr.value)
}
}
}) : _vm._e()]) : _vm._e()], 1), _c('button', {
staticClass: ["button"],
attrs: {
"eeui": {
text: '提交',
backgroundColor: '#1eb76e',
fontSize: 30
}
},
on: {
"click": _vm.rechargeSubmit
}
})], 1), _c('wxc-popup', {
attrs: {
"popupColor": "#ffffff",
"show": _vm.searchShow,
"pos": "right",
"width": "750"
},
on: {
"wxcPopupOverlayClicked": _vm.popupOverlayBottomClick
}
}, [_c('div', {
staticClass: ["demo-content"]
}, [_c('navbar', {
staticClass: ["navbarb"]
}, [_c('navbar-item', {
attrs: {
"type": "left"
}
}, [_c('text', {
staticClass: ["popurBackBtn"],
on: {
"click": _vm.backIconFUn
}
}, [_vm._v("返回")])]), _c('navbar-item', {
attrs: {
"type": "title"
}
}, [_c('text', {
staticClass: ["headtext"]
}, [_vm._v("单位选择")])])], 1), _c('wxc-searchbar', {
ref: "wxc-searchbar",
on: {
"wxcSearchbarInputOnInput": _vm.wxcSearchbarInputOnInput
}
}), _c('list', {
style: {
height: _vm.heightH
}
}, _vm._l((_vm.newSchoolList), function(item, index) {
return _c('cell', {
key: index,
appendAsTree: true,
attrs: {
"append": "tree"
}
}, [_c('text', {
staticClass: ["itemS"],
on: {
"click": function($event) {
_vm.enterVale(index)
}
}
}, [_vm._v(_vm._s(item.school_name))])])
}))], 1)]), _c('danSel', {
attrs: {
"danselectShow": _vm.danDiaogVal.show,
"itemList": _vm.danDiaogVal.itemList,
"height": _vm.danDiaogVal.heightval,
"top": _vm.danDiaogVal.top,
"curVal": _vm.danDiaogVal.curVal
},
on: {
"hideDan": _vm.selRadioDialog
}
})], 1)
},staticRenderFns: []}
module.exports.render._withStripped = true
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-149d58ea!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-149d58ea!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-cell/index.vue ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', {
class: ['wxc-cell', _vm.hasTopBorder && 'cell-top-border', _vm.hasBottomBorder && 'cell-bottom-border', _vm.hasMargin && 'cell-margin', _vm.hasVerticalIndent && 'cell-indent', _vm.desc && 'has-desc'],
style: _vm.cellStyle,
attrs: {
"accessible": _vm.autoAccessible,
"ariaLabel": (_vm.label + "," + _vm.title + "," + _vm.desc)
},
on: {
"click": _vm.cellClicked
}
}, [_vm._t("label", [(_vm.label) ? _c('div', [_c('text', {
staticClass: ["cell-label-text"]
}, [_vm._v(_vm._s(_vm.label))])]) : _vm._e()]), _c('div', {
staticClass: ["cell-title"]
}, [_vm._t("title", [_c('text', {
staticClass: ["cell-content"]
}, [_vm._v(_vm._s(_vm.title))]), (_vm.desc) ? _c('text', {
staticClass: ["cell-desc-text"]
}, [_vm._v(_vm._s(_vm.desc))]) : _vm._e()])], 2), _vm._t("value"), _vm._t("default"), (_vm.extraContent) ? _c('text', {
staticClass: ["extra-content-text"]
}, [_vm._v(_vm._s(_vm.extraContent))]) : _vm._e(), (_vm.hasArrow) ? _c('image', {
staticClass: ["cell-arrow-icon"],
attrs: {
"src": _vm.arrowIcon,
"ariaHidden": true
}
}) : _vm._e()], 2)
},staticRenderFns: []}
module.exports.render._withStripped = true
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-34cae37f!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-34cae37f!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-popup/index.vue ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', [_c('div', {
on: {
"touchend": _vm.handleTouchEnd
}
}, [(_vm.show) ? _c('wxc-overlay', _vm._b({
ref: "overlay",
attrs: {
"show": _vm.haveOverlay && _vm.isOverShow
},
on: {
"wxcOverlayBodyClicking": _vm.wxcOverlayBodyClicking
}
}, 'wxc-overlay', _vm.overlayCfg, false)) : _vm._e()], 1), (_vm.show) ? _c('div', {
ref: "wxc-popup",
class: ['wxc-popup', _vm.pos],
style: _vm.padStyle,
attrs: {
"height": _vm._height,
"hack": _vm.isNeedShow
},
on: {
"click": function () {}
}
}, [_vm._t("default")], 2) : _vm._e()])
},staticRenderFns: []}
module.exports.render._withStripped = true
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-48d7063a!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-48d7063a!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-overlay/index.vue ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', [(_vm.show) ? _c('div', {
ref: "wxc-overlay",
staticClass: ["wxc-overlay"],
style: _vm.overlayStyle,
attrs: {
"hack": _vm.shouldShow
},
on: {
"click": _vm.overlayClicked
}
}) : _vm._e()])
},staticRenderFns: []}
module.exports.render._withStripped = true
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-7a7b0a04!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-7a7b0a04!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./node_modules/_weex-ui@0.8.4@weex-ui/packages/wxc-searchbar/index.vue ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', [(_vm.mod === 'default') ? _c('div', {
class: ['wxc-search-bar', 'wxc-search-bar-' + _vm.theme],
style: _vm.barStyle
}, [_c('input', {
ref: "search-input",
class: ['search-bar-input', 'search-bar-input-' + _vm.theme],
style: {
width: _vm.needShowCancel ? '624px' : '710px'
},
attrs: {
"returnKeyType": _vm.returnKeyType,
"autofocus": _vm.autofocus,
"disabled": _vm.disabled,
"value": _vm.value,
"type": _vm.inputType,
"placeholder": _vm.placeholder
},
on: {
"blur": _vm.onBlur,
"focus": _vm.onFocus,
"input": _vm.onInput,
"return": _vm.onSubmit
}
}), (_vm.disabled) ? _c('div', {
staticClass: ["disabled-input"],
on: {
"click": _vm.inputDisabledClicked
}
}) : _vm._e(), _c('image', {
staticClass: ["search-bar-icon"],
attrs: {
"ariaHidden": true,
"src": _vm.inputIcon
}
}), (_vm.showClose) ? _c('image', {
staticClass: ["search-bar-close"],
attrs: {
"ariaHidden": true,
"src": _vm.closeIcon
},
on: {
"click": _vm.closeClicked
}
}) : _vm._e(), (_vm.needShowCancel) ? _c('text', {
class: ['search-bar-button', 'search-bar-button-' + _vm.theme],
style: _vm.buttonStyle,
on: {
"click": _vm.cancelClicked
}
}, [_vm._v(_vm._s(_vm.cancelLabel))]) : _vm._e()]) : _vm._e(), (_vm.mod === 'hasDep') ? _c('div', {
class: ['wxc-search-bar', 'wxc-search-bar-' + _vm.theme],
style: _vm.barStyle
}, [_c('input', {
class: ['search-bar-input', 'input-has-dep', 'search-bar-input-' + _vm.theme],
attrs: {
"disabled": _vm.disabled,
"autofocus": _vm.autofocus,
"returnKeyType": _vm.returnKeyType,
"value": _vm.value,
"type": _vm.inputType,
"placeholder": _vm.placeholder
},
on: {
"blur": _vm.onBlur,
"focus": _vm.onFocus,
"input": _vm.onInput,
"return": _vm.onSubmit
}
}), (_vm.disabled) ? _c('div', {
staticClass: ["disabled-input", "has-dep-disabled"],
on: {
"click": _vm.inputDisabledClicked
}
}) : _vm._e(), _c('div', {
class: ['bar-dep', '.bar-dep-' + _vm.theme],
on: {
"click": _vm.depClicked
}
}, [_c('text', {
staticClass: ["dep-text"]
}, [_vm._v(_vm._s(_vm.depName))]), _c('image', {
staticClass: ["dep-arrow"],
attrs: {
"src": _vm.arrowIcon,
"ariaHidden": true
}
})]), _c('image', {
staticClass: ["search-bar-icon", "icon-has-dep"],
attrs: {
"ariaHidden": true,
"src": _vm.inputIcon
}
})]) : _vm._e()])
},staticRenderFns: []}
module.exports.render._withStripped = true
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\template-compiler.js?id=data-v-a2217e0e!C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\lib\\loaders\\eeui-loader\\lib\\selector.js?type=template&index=0!./src/components/radioList.vue":
/*!******************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/template-compiler.js?id=data-v-a2217e0e!C:/Users/10844/AppData/Roaming/npm/node_modules/eeui-cli/lib/loaders/eeui-loader/lib/selector.js?type=template&index=0!./src/components/radioList.vue ***!
\******************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return (_vm.danselectShow) ? _c('div', {
staticClass: ["danSelRadioBox"],
style: {
height: _vm.heightBox
},
on: {
"click": _vm.wxcMaskSetHidden
}
}, [_c('div', {
staticClass: ["content"],
style: {
'height': _vm.height,
'margin-top': _vm.top
}
}, [_c('scroller', {
staticClass: ["scroller"]
}, _vm._l((_vm.itemList), function(item, index) {
return _c('div', {
key: index,
staticClass: ["radioList"],
on: {
"click": function($event) {
_vm.selItem(index)
}
}
}, [_c('text', {
staticClass: ["left"]
}, [_vm._v(_vm._s(item.text))]), (item.hunban_name) ? _c('text', {
staticClass: ["left2"]
}, [_vm._v(_vm._s(item.hunban_name))]) : _vm._e(), (item.hunban_teacher) ? _c('text', {
staticClass: ["left3"]
}, [_vm._v(_vm._s(item.hunban_teacher))]) : _vm._e(), _c('div', {
staticClass: ["right"]
}, [(item.checked) ? _c('div', {
staticClass: ["radioDian"]
}) : _vm._e()])])
}))])]) : _vm._e()
},staticRenderFns: []}
module.exports.render._withStripped = true
/***/ }),
/***/ "C:\\Users\\10844\\AppData\\Roaming\\npm\\node_modules\\eeui-cli\\node_modules\\_webpack@4.42.1@webpack\\buildin\\global.js":
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
var g; // This works in non-strict mode
g = function () {
return this;
}();
try {
// This works if eval is allowed (see CSP)
g = g || new Function("return this")();
} catch (e) {
// This works if the window reference is available
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window;
} // g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
/***/ })
/******/ });
|
var RomoSelectedOptionsList = RomoComponent(function(focusElem) {
this.elem = undefined;
this.focusElem = focusElem; // picker/select dropdown elem
this.items = [];
this.doInit();
this._bindElem();
});
/*
Options are specified as a list of items. Each 'option' item object
has display text and a value. They are compatible with the option list
dropdown option items.
Example:
[ { 'type': 'option', 'value': 'a', 'displayText': 'A' },
{ 'type': 'option', 'value': 'b', 'displayText': 'B' },
{ 'type': 'option', 'value': 'c', 'displayText': 'C' }
]
*/
RomoSelectedOptionsList.prototype.doSetItems = function(itemsList) {
this.items = itemsList;
}
RomoSelectedOptionsList.prototype.doClearItems = function() {
this.items = [];
}
RomoSelectedOptionsList.prototype.doAddItem = function(item) {
if (!this._getItemValues().includes(item.value)) {
this.items.push(item);
}
}
RomoSelectedOptionsList.prototype.doRemoveItem = function(itemValue) {
var index = this._getItemValues().indexOf(itemValue);
if (index > -1) {
this.items.splice(index, 1);
}
}
RomoSelectedOptionsList.prototype.doRefreshUI = function() {
var itemValues = this._getItemValues();
var uiListElem = Romo.find(this.elem, '.romo-selected-options-list-items')[0];
var uiItemElems = Romo.find(uiListElem, '.romo-selected-options-list-item');
var uiValues = uiItemElems.map(Romo.proxy(function(uiItemElem) {
return Romo.data(uiItemElem, 'romo-selected-options-list-value');
}, this), []);
var rmElems = uiItemElems.filter(function(uiItemElem) {
return itemValues.indexOf(Romo.data(uiItemElem, 'romo-selected-options-list-value')) === -1;
});
var addItems = this.items.filter(function(item) {
return uiValues.indexOf(item.value) === -1;
});
Romo.remove(rmElems);
addItems.forEach(Romo.proxy(function(addItem) {
var addElem = this._buildItemElem(addItem);
Romo.append(uiListElem, addElem);
var listWidth = Romo.width(uiListElem);
var listLeftPad = parseInt(Romo.css(uiListElem, "padding-left"), 10);
var listRightPad = parseInt(Romo.css(uiListElem, "padding-right"), 10);
var itemBorderWidth = 1;
var itemLeftPad = parseInt(Romo.css(addElem, "padding-left"), 10);
var itemRightPad = parseInt(Romo.css(addElem, "padding-right"), 10);
Romo.setStyle(
Romo.find(addElem, 'DIV')[0],
'max-width',
String(listWidth-listLeftPad-listRightPad-(2*itemBorderWidth)-itemLeftPad-itemRightPad)+'px'
);
}, this));
var focusElemWidth = Romo.width(this.focusElem);
Romo.setStyle(this.elem, 'width', String(focusElemWidth)+'px');
var maxRows = undefined;
var uiListElemHeight = Romo.height(uiListElem);
var firstItemElem = Romo.find(uiListElem, '.romo-selected-options-list-item')[0];
if (firstItemElem !== undefined) {
var itemHeight = Romo.height(firstItemElem);
var itemMarginBottom = parseInt(Romo.css(firstItemElem, "margin-bottom"), 10);
var itemBorderWidth = 1;
var listTopPad = parseInt(Romo.css(uiListElem, "padding-top"), 10);
var listBottomPad = parseInt(Romo.css(uiListElem, "padding-bottom"), 10);
var maxRows = Romo.data(this.focusElem, 'romo-selected-options-list-max-rows') || 0;
var maxHeight = (
listTopPad+
(itemHeight*maxRows)+
(itemMarginBottom*(maxRows-1))+
(2*itemBorderWidth*maxRows)+
listBottomPad+
(itemHeight/2)
);
}
if (maxRows !== 0 && (uiListElemHeight > maxHeight)) {
Romo.setStyle(this.elem, 'height', String(maxHeight)+'px');
Romo.setStyle(this.elem, 'overflow-y', 'auto');
var itemElems = Romo.find(uiListElem, '.romo-selected-options-list-item');
var lastItemElem = itemElems[itemElems.length-1];
this._scrollListTopToItem(lastItemElem);
} else {
Romo.setStyle(this.elem, 'height', String(uiListElemHeight)+'px');
Romo.rmStyle(this.elem, 'overflow-y');
}
}
// private
RomoSelectedOptionsList.prototype._bindElem = function() {
this.elem = Romo.elems(
'<div class="romo-selected-options-list">'+
'<div class="romo-selected-options-list-items"></div>'+
'</div>'
)[0];
Romo.on(this.elem, 'click', Romo.proxy(function(e) {
Romo.trigger(this.elem, 'romoSelectedOptionsList:listClick', [this]);
return false;
}, this));
this.doSetItems([]);
}
RomoSelectedOptionsList.prototype._buildItemElem = function(item) {
var itemClass = Romo.data(this.focusElem, 'romo-selected-options-list-item-class') || '';
var itemElem = Romo.elems(
'<div class="romo-selected-options-list-item romo-pointer '+
'romo-pad0-left romo-pad0-right romo-push0-right romo-push0-bottom '+
itemClass+'">'+
'</div>'
)[0];
Romo.append(
itemElem,
Romo.elems(
'<div class="romo-crop-ellipsis romo-text-strikethrough-hover">'+
(item.displayText || '')+
'</div>'
)[0]
);
Romo.setData(itemElem, 'romo-selected-options-list-value', (item.value || ''));
Romo.on(itemElem, 'click', Romo.proxy(this._onItemClick, this));
return itemElem;
}
RomoSelectedOptionsList.prototype._getItemValues = function() {
return this.items.map(function(item) { return item.value; });
}
RomoSelectedOptionsList.prototype._scrollListTopToItem = function(itemElem) {
if (itemElem !== undefined) {
var scrollElem = this.elem;
scrollElem.scrollTop = 0;
var scrollOffsetTop = Romo.offset(scrollElem).top;
var selOffsetTop = Romo.offset(itemElem).top;
var selOffset = Romo.height(itemElem) / 2;
scrollElem.scrollTop = selOffsetTop - scrollOffsetTop - selOffset;
}
}
// event functions
RomoSelectedOptionsList.prototype.romoEvFn._onItemClick = function(e) {
var itemElem = e.target;
if (!Romo.hasClass(itemElem, 'romo-selected-options-list-item')) {
var itemElem = Romo.closest(itemElem, '.romo-selected-options-list-item');
}
if (itemElem !== undefined) {
var value = Romo.data(itemElem, 'romo-selected-options-list-value').toString();
Romo.trigger(this.elem, 'romoSelectedOptionsList:itemClick', [value, this]);
}
}
|
// Imports
const morgan = require('morgan');
const path = require('path');
const nocache = require('nocache');
const helmet = require('helmet');
const express = require('express');
const cors = require('cors');
const dotenv = require('dotenv');
const uuid = require('node-uuid');
const fs = require('fs');
//App Routes
const userRoutes = require("./routes/user.routes");
const postRoutes = require("./routes/post.routes");
morgan.token('id', function (req,res) {
return (
req.headers.id, req.id)
});
// Initialize express App
const app = express();
function assignId (req, res, next) {
req.id = uuid.v4()
next()
}
app.use(assignId);
app.use(morgan(':id :method :url :response-time :remote-user'));
//CORS Control Headers
app.use(cors());
app.use((req, res, next) => {
res.setHeader("Access-Control-Allow-Origin", process.env.ORIGIN);
res.setHeader(
"Access-Control-Allow-Headers",
"Origin, X-Requested-With, Content, Accept, Content-Type, Authorization"
);
res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE");
next();
});
//Express Parser Middleware
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
// log only 4xx and 5xx responses to console
app.use(morgan('dev', {
skip: function (req, res) { return res.statusCode < 400 }
}))
// log all requests to access.log
app.use(morgan('common', {
stream: fs.createWriteStream(path.join(__dirname, 'access.log'), { flags: 'a' })
}))
//auth.initialization(app);
app.use(helmet());
app.use(nocache());
//Access Routes
// app.use("/profile", profileRoutes);
app.use("/auth", userRoutes);
app.use("/posts", postRoutes);
app.use("/img", express.static(path.join(__dirname, "img")));
module.exports = app;
|
const seeder = require('mongoose-seed');
const path = require('path');
const config = require('config');
const data = [
{
model: 'Category',
documents: [
{
name : "Muslim Boys Names",
key : "muslim-boys-names",
status : "active"
},
{
name : "Muslim Girls Names",
key : "muslim-girls-names",
status : "active"
},
{
name : "Names of Prophet Mohammad saw",
key : "names-of-prophet-mohammad-saw",
status : "active"
},
{
name : "Female Sahabi Names",
key : "female-sahabi-names",
status : "active"
},
{
name : "Male Sahabi Names",
key : "male-sahabi-names",
status : "active"
},
{
name : "Prophets of Islam",
key : "prophets-of-islam",
status : "active"
}
],
},
];
seeder.connect(config.DATABASE_URL, () => {
seeder.loadModels([
path.join(__dirname, '../models/CategoryModel'),
]);
seeder.clearModels(['Category'], async () => {
seeder.populateModels(data, () => {
seeder.disconnect();
});
});
});
|
const db = require("../config/db.config");
module.exports = (sequelize, Sequelize) => {
const Customer = sequelize.define("customer", {
cont_id: {
type: Sequelize.STRING,
},
transaction_id: {
type: Sequelize.STRING,
},
transaction_date: {
type: Sequelize.STRING,
},
prod_price_net: {
type: Sequelize.STRING,
},
prod_id: {
type: Sequelize.STRING,
},
});
return Customer;
};
|
// JavaScript Document
//���ȫѡ��ť
//var basePath = $("#basePath").val();
function AllSelect() {
var basePath = $("#basePath").val();
//var aLi = getByClass($("allItem"), "my_item"); //�������Ƕ�λ�ĺ����һ������
var aLi = $("#allItem .my_item");
//��һ�������е�ͼ��仯
if (document.getElementById("all_select").getAttribute("src") == basePath+"wechat/images/circle.png") {
document.getElementById("all_select").setAttribute("src", basePath+"wechat/images/choose.png");
for (var i = 0; i < aLi.length; i++) {
$("#item_img"+i).attr("src",basePath+"wechat/images/choose.png");
}
//�ڶ���������ı仯
var sumPrice=0;
for (var i = 0; i < aLi.length; i++) {
sumPrice += parseFloat(document.getElementById("price" + i).innerHTML) *parseInt(document.getElementById("amount" + i).innerHTML);
}
document.getElementById("sumMoney").innerHTML = sumPrice.toFixed(2).toString();
//�������ͼ���������ֱ仯
document.getElementById("jiesuan_num").innerHTML = aLi.length.toString();
}
else {
document.getElementById("all_select").setAttribute("src", basePath+"wechat/images/circle.png");
for (var i = 0; i < aLi.length; i++) {
$("#item_img"+i).attr("src",basePath+"wechat/images/circle.png");
}
document.getElementById("sumMoney").innerHTML = "0";
document.getElementById("jiesuan_num").innerHTML ="0";
}
}
//function $(id) {
// return document.getElementById(id);//ͨ��ID����һ��Ԫ��
//}
function getByClass(oParent, sClass) {
var aResult = []; //����һ��������
var aEle = oParent.getElementsByTagName("*");//��oParent������Ԫ�ؽ��в��γ�һ����������aEle������
for (var i = 0; i < aEle.length; i++) {
if (aEle[i].className == sClass) {
aResult.push(aEle[i]);//���forѭ����oParent������Ԫ�ر������������sClass��ͬ������֮ǰ����������С�
}
}
return aResult;//������
}
//�����ѡ��ť
function signalSelect(str) {
var basePath = $("#basePath").val();
var sumMoney = 0;
var jiesuan_num=0;
//var aLi = getByClass($("allItem"), "my_item"); //�������Ƕ�λ�ĺ����һ������
var aLi = $("#allItem .my_item");
if (document.getElementById(str).getAttribute("src") == basePath+"wechat/images/circle.png") {
document.getElementById(str).setAttribute("src", basePath+"wechat/images/choose.png");
for (var i = 0; i < aLi.length; i++) {
if (document.getElementById("item_img" + i).getAttribute("src") == basePath+"wechat/images/choose.png") {
jiesuan_num++;
sumMoney += parseFloat(document.getElementById("price" + i).innerHTML) * parseInt(document.getElementById("amount" + i).innerHTML);
}
}
if (jiesuan_num == aLi.length) {
document.getElementById("all_select").setAttribute("src", basePath+"wechat/images/choose.png");
document.getElementById("all_select_word").style.color="#fc5959";
}
else {
document.getElementById("all_select").setAttribute("src", basePath+"wechat/images/circle.png");
document.getElementById("all_select_word").style.color="#CFCFCF";
}
document.getElementById("sumMoney").innerHTML = parseFloat(sumMoney).toFixed(2).toString();
document.getElementById("jiesuan_num").innerHTML = jiesuan_num.toString();
}
else {
document.getElementById(str).setAttribute("src", basePath+"wechat/images/circle.png");
for (var i = 0; i < aLi.length; i++) {
if (document.getElementById("item_img" + i).getAttribute("src") == basePath+"wechat/images/choose.png") {
jiesuan_num++;
sumMoney += parseFloat(document.getElementById("price" + i).innerHTML) * parseInt(document.getElementById("amount" + i).innerHTML);
}
}
if (jiesuan_num == aLi.length) {
document.getElementById("all_select").setAttribute("src", basePath+"wechat/images/choose.png");
document.getElementById("all_select_word").style.color="#fc5959";
}
else {
document.getElementById("all_select").setAttribute("src", basePath+"wechat/images/circle.png");
document.getElementById("all_select_word").style.color="#CFCFCF";
}
document.getElementById("sumMoney").innerHTML = parseFloat(sumMoney).toFixed(2).toString();
document.getElementById("jiesuan_num").innerHTML = jiesuan_num.toString();
}
}
//����༭��ǩ
function showNum(str) {
document.getElementById('content' + str).style.display = 'none'; //����
document.getElementById("selectNum"+str).style.display = 'block'; //��ʾ
}
//����Ӻ��¼�
function addNum(str) {
var goodNum = document.getElementById('GoogNum' + str).value;
if (parseInt(goodNum) >=1 && parseInt(goodNum) < 99) {
goodNum = parseInt(goodNum) + 1;
document.getElementById('GoogNum' + str).value = goodNum.toString();
}
}
//��������¼�
function subduce(str) {
var goodNum = document.getElementById('GoogNum' + str).value;
if (parseInt(goodNum) > 1 && parseInt(goodNum) <= 99) {
goodNum = parseInt(goodNum) - 1;
document.getElementById('GoogNum' + str).value = goodNum.toString();
}
}
//�����ɰ�ť
function completeNum(str) {
var goodNum = document.getElementById('GoogNum' + str).value;
document.getElementById("amount" + str).innerHTML = goodNum;
document.getElementById('content' +str).style.display = 'block'; //��ʾ
document.getElementById("selectNum" + str).style.display = 'none'; //����
//ÿ�ε���ɰ�ťҪ�����ܽ��
countSumMoney();
}
function countSumMoney() {
var basePath = $("#basePath").val();
//var aLi = getByClass($("allItem"), "my_item"); //�������Ƕ�λ�ĺ����һ������
var aLi = $("#allItem .my_item");
var sumMoney = 0;
var jiesuan_num = 0;
for (var i = 0; i < aLi.length; i++) {
if (document.getElementById("item_img" + i).getAttribute("src") == basePath+"wechat/images/choose.png") {
jiesuan_num++;
sumMoney += parseFloat(document.getElementById("price" + i).innerHTML) * parseInt(document.getElementById("amount" + i).innerHTML);
}
}
document.getElementById("sumMoney").innerHTML = parseFloat(sumMoney).toFixed(2).toString();
document.getElementById("jiesuan_num").innerHTML = jiesuan_num.toString();
}
|
import * as React from 'react';
import Page from '../../components/Page/Page';
import PageHeader from '../../components/PageHeader/PageHeader';
import {Section} from '../../components/Section/Section';
import {CenterBlock, ImageBlock, LeftBlock} from '../../components/Block/Block';
import {Header} from '../../components/Header/Header';
import partners from '../../data/partners';
import speakers from '../../data/speakers';
import {Col, Grid, Row} from 'react-flexbox-grid';
import {Link} from "../../components/link";
import pirsenteret from "../../assets/pirsenteret-fasade.png";
import SOSLogo from "../../assets/logo/sos-logo-flat-invert-white-1860x142.png";
function shuffle(o) {
for (let j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x) ;
return o;
}
const imagesContext = require.context('../../assets/partners-20', false, /\.svg$/);
const images = imagesContext.keys().map(image => (
{context: imagesContext(image), filename: image}
));
function getimage(images, image) {
return images.find(img => img.filename.indexOf(image) >= 0);
}
type PartnerListProps = {
partners: []
}
function PartnerList(props: PartnerListProps) {
const shuffled = shuffle(props.partners);
return (
<Grid fluid>
<Row className="partners-list-container">
{shuffled.map((partner) => {
return (
<Col key={partner.name}>
<Link href={partner.url} className="partners-list-item">
<img className="partner-logo" src={getimage(images, partner.logo).context}
alt={partner.name}/>
</Link>
</Col>
);
})}
</Row>
</Grid>
);
}
const speakerImagesContext = require.context('../../assets/2020/speakers', false, /\.jpg$/);
const speakerImages = speakerImagesContext.keys().map(image => (
{context: speakerImagesContext(image), filename: image}
));
type SpeakerListProps = {
speakers: []
}
function SpeakerList(props: SpeakerListProps) {
const shuffled = shuffle(props.speakers);
return (
<Grid fluid>
<Row className="partners-list-container">
{shuffled.map((speaker) => {
return (
<Col key={speaker.name}>
<Link href={speaker.url} className="speakers-list-item">
<div className="block-image-wrapper">
<div className="block-image-speaker">
<img className="partner-logo"
src={getimage(speakerImages, speaker.image).context} title={speaker.name}
alt={speaker.name}/>
</div>
</div>
</Link>
</Col>
);
})}
</Row>
</Grid>
);
}
function AboutSection() {
return (
<Section>
<LeftBlock header="Avlyst">
<p>
I lys av hendelsene rundt Koronaviruset så har programkomiteen valgt å avlyse Sikkerhet og Sårbarhet 2020. Dette betyr at det ikke blir noe konferanse 28.-29. April i Trondheim.
</p>
</LeftBlock>
<LeftBlock header="Hva er Sikkerhet og Sårbarhet">
<p>
Sikkerhet og Sårbarhet er et møtestedet for deg som er opptatt av informasjonssikkerhet og IT. Vil
du lære, forstå sammenhenger, bli oppdatert og knytte kontakter – da er Sikkerhet og Sårbarhet
stedet for deg!
</p>
</LeftBlock>
</Section>
);
}
function TicketSection() {
return (
<Section>
<LeftBlock header="Første steg: kjøp billett!">
<p>
For å delta trenger du en billet. Billetten gir deg tilgang til hele konferansen. Billettene er nå
lagt ut for salg. Bestiller du tidlig får du Early-Bird rabatt, bestill nå!
</p>
</LeftBlock>
<CenterBlock>
<p>
<br/>
<a className='button button--transparent' href="/tickets">Kjøpt billett til Sikkerhet og Sårbarhet
2020 nå!</a>
</p>
</CenterBlock>
</Section>
);
}
function BetterExplorerSection() {
return (
<Section>
<LeftBlock header="To dager konferanse">
<p>
To dager med foredrag. Ikke gå glipp av alle de fantastiske <a href="/program">foredragene</a>.
</p>
</LeftBlock>
<LeftBlock header="Middag og god drikke">
<p>
Etter en dag med gode foredrag og mye diskusjon, så vil det smake med en god middag på <a href="https://www.ecdahls.no/">E.C. Dahls Pub og Kjøkken</a>.
</p>
</LeftBlock>
<LeftBlock header="Nettverking">
<p>
Vi lover at du vil møte mange interessante folk på Sikkerhet og Sårbarhet. Ta en kaffe og diskuter!
</p>
</LeftBlock>
{/*<LeftBlock header="Studenkveld på DIGS ">*/}
{/* <p>*/}
{/* Dagen før konferansen avholdes det en egen studentkveld på DIGS.*/}
{/* </p>*/}
{/*</LeftBlock>*/}
</Section>
);
}
function ProgramSection() {
return (
<Section>
<LeftBlock header="Programmet">
<p>
Hele programmet er nå <a href="/program">tilgjengelig</a>.
</p>
</LeftBlock>
<LeftBlock header="Presentations">
<p>
Foredrag på Sikkerhet og Sårbarhet er 30 eller 45 minutter.
</p>
</LeftBlock>
</Section>
);
}
function PartnerSection() {
return (
<Section alternate pixel>
<Header align='center'>Partnere</Header>
<PartnerList partners={partners}/>
</Section>
);
}
function SpeakerSection() {
return (
<Section alternate pixel>
<Header align='center'>Foredragsholdere</Header>
<SpeakerList speakers={speakers}/>
</Section>
);
}
function LocationSection() {
return (
<Section alternate pixel fluid>
<Header align='center'>Holdes på Pirsentert!</Header>
<LeftBlock>
<Section>
<ImageBlock image={pirsenteret} alt="Pirsenteret"/>
</Section>
</LeftBlock>
</Section>
);
}
function QuestionSection() {
return (
<Section>
<LeftBlock header="Lokasjon">
<ImageBlock image={pirsenteret} alt="Pirsenteret"/>
<p>
Konferansen vil bli avholdt på Pirsenteret i Trondheim.
</p>
</LeftBlock>
<LeftBlock header="Spørsmål?">
<p>
Ta kontakt på <a href='mailto:program@soskonf.no'>program@soskonf.no</a> hvis du har noen spørsmål.
</p>
<p>
Vi håper å kunne se deg på Sikkerhet og Sårbarhet 2020!
</p>
</LeftBlock>
</Section>
);
}
function Info() {
return (
<Page name='info'>
<PageHeader subHeader="28.-29. April" subSubHeader="Pirsenteret, Trondheim">
<ImageBlock image={SOSLogo} alt="Sikkerhet og Sårbarhet 2020"/>
</PageHeader>
<AboutSection/>
{/*<TicketSection />*/}
<PartnerSection/>
{/*<ImageBlock />*/}
<BetterExplorerSection/>
<SpeakerSection/>
{/*<ImageBlock />*/}
{/*<LocationSection />*/}
{/*<ProgramSection />*/}
{/*<ImageBlock />*/}
{/*<AweZoneSection />*/}
<QuestionSection/>
</Page>
);
}
export default Info;
|
const el = document.querySelectorAll('[data-background-img]')
if (el.length) {
const io = new IntersectionObserver((entries) => {
entries.forEach(({ target, isIntersecting }) => {
if (isIntersecting) {
io.unobserve(target)
const backgroundImg = target.getAttribute('data-background-img')
target.removeAttribute('data-background-img')
target.style.background = `url(${backgroundImg})`
}
})
}, { rootMargin: '75px' })
;[...el].forEach(e => io.observe(e))
}
|
import React, { useEffect, useState } from 'react'
import axios from 'axios'
import Button from '@material-ui/core/Button'
import Box from '@material-ui/core/Box'
import Confirmation from './Confirmation'
import Container from '@material-ui/core/Container'
import Grid from '@material-ui/core/Grid'
import { Redirect } from 'react-router-dom'
import TextField from '@material-ui/core/TextField'
import Typography from '@material-ui/core/Typography'
const Registration = () => {
/* Form field state */
const [ address1, setAddress1 ] = useState('')
const [ address2, setAddress2 ] = useState('')
const [ city, setCity ] = useState('')
const [ country, setCountry ] = useState('')
const [ firstName, setFirstName ] = useState('')
const [ lastName, setLastName ] = useState('')
const [ usState, setUsState ] = useState('')
const [ zip, setZip ] = useState('')
/* Handle data returned from MongoDB Database */
const [ dbError, setDbError ] = useState('')
const [ userFromDB, setUserFromDB ] = useState({})
/* Logic to handle page routing since there are only 3 pages */
const [ showAdminReport, setShowAdminReport ] = useState(false)
const [ showConfirmation, setShowConfirmation ] = useState(false)
const [ showRegistration, setShowRegistration ] = useState(true)
/* State for display of Submit button */
const [ showSubmitButton, setShowSubmitButton ] = useState(false)
/* Form onChange Hanlders */
const handleAddress1Change = (e) => {
setAddress1(e.target.value)
}
const handleAddress2Change = (e) => {
setAddress2(e.target.value)
}
const handleCityChange = (e) => {
setCity(e.target.value)
}
const handleCountryChange = (e) => {
setCountry(e.target.value)
}
const handleFirstNameChange = (e) => {
setFirstName(e.target.value)
}
const handleLastNameChange = (e) => {
setLastName(e.target.value)
}
const handleUsStateChange = (e) => {
setUsState(e.target.value)
}
const handleZipChange = (e) => {
setZip(e.target.value)
}
/* Routing handler functions */
const handleConfirmationRouting = () => {
setShowConfirmation(false)
setShowRegistration(true)
}
const handleShowAdminReport = () => {
setShowAdminReport(true)
}
/* Submit Form on Button click */
const handleSubmit = () => {
const userData = {
address1,
address2,
city,
country,
firstName,
lastName,
usState,
zip
}
axios.post('https://rainbow-river-4709.herokuapp.com/register', userData)
// axios.post('http://localhost:3001/register', userData)
.then( res => {
if (res.data.msg === 'Success') {
setAddress1('')
setAddress2('')
setCity('')
setCountry('')
setFirstName('')
setLastName('')
setUsState('')
setZip('')
setUserFromDB(res.data.newUser)
} else {
if (res.data.msg === 'Error') {
setDbError(res.data.msg)
} else {
setDbError('Server validation error')
}
}
setShowRegistration(false)
setShowConfirmation(true)
})
}
/* Control display of Submit button via Form validation logic */
useEffect( () => {
if (
isAlphaNum(address1) &&
isString(city) &&
isString(country) &&
(country === 'US') &&
isString(firstName) &&
isString(lastName) &&
isState(usState) &&
isZip(zip)
) {
setShowSubmitButton(true)
} else {
setShowSubmitButton(false)
}
}, [address1, address2, firstName, lastName, city, usState, zip, country] )
/* Helper function to determine if all chars in a string are A - Z or a - z */
const isString = (str) => {
if (str.length === 0) return false
for (let i = 0; i < str.length; i++) {
if (!((str.charCodeAt(i) > 64 &&str.charCodeAt(i) < 91) || (str.charCodeAt(i) > 96 && str.charCodeAt(i) < 123) || (str.charCodeAt(i) === 32))) {
return false
}
}
return true
}
/* Helper function to determine if all chars in a string are A - Z or a - z or 0 - 9 */
const isAlphaNum = (str) => {
if (str.length === 0) return false
for (let i = 0; i < str.length; i++) {
if (!((str.charCodeAt(i) > 64 &&str.charCodeAt(i) < 91) || (str.charCodeAt(i) > 96 && str.charCodeAt(i) < 123) || (str.charCodeAt(i) > 47 && str.charCodeAt(i) < 58) || (str.charCodeAt(i) === 32))) {
return false
}
}
return true
}
/* Helper function to determine if all charsin a string are 0 - 9 or the symbol - */
const isZip = (str) => {
if (str.length === 0) return false
if (str.length === 5) {
for (let i = 0; i < str.length; i++) {
if (!((str.charCodeAt(i) > 47 && str.charCodeAt(i) < 58))) {
return false
}
}
return true
}
if (str.length === 10) {
for (let i = 0; i < str.length; i++) {
if (!((str.charCodeAt(i) > 47 && str.charCodeAt(i) < 58) || (str.charCodeAt(i) === 45))) {
return false
}
}
return true
}
return false
}
/* Helper function to determine if state entered is a valid 2-digit state abbreviation */
const isState = (str) => {
const states = ['AL','AK','AZ','AR','CA','CO','CT','DE','FL','GA','HI','ID','IL','IN','IA','KS','KY','LA','ME','MD','MA','MI','MN','MS','MO','MT','NE','NV','NH','NJ','NM','NY','NC','ND','OH','OK','OR','PA','RI','SC','SD','TN','TX','UT','VT','VA','WA','WV','WI','WY']
if (states.includes(str)) return true
return false
}
return (
<Box>
<Container>
{showAdminReport ? <Redirect to='/AdminReport' /> : null}
{showRegistration ?
<Grid container>
<Grid container style={{marginTop: '2rem'}}>
<Grid container>
<Typography variant='h4'>
Registration Form
</Typography>
</Grid>
<Grid container>
<Typography variant='body1'>
(* required)
</Typography>
</Grid>
</Grid>
<Grid container style={{marginTop: '1rem'}}>
<Grid item xs={3}>
<TextField label='* First Name' value={firstName} variant='outlined' onChange={handleFirstNameChange} style={{width: '100%'}} />
</Grid>
<Grid item xs={3}>
<TextField label='* Last Name' value={lastName} variant='outlined' onChange={handleLastNameChange} style={{width: '100%', marginLeft: '0.5rem'}} />
</Grid>
</Grid>
<Grid container style={{marginTop: '1rem'}}>
<Grid item xs={4}>
<TextField label='* Address 1' value={address1} variant='outlined' onChange={handleAddress1Change} style={{width: '100%'}} />
</Grid>
<Grid item xs={4}>
<TextField label='Address 2' value={address2} variant='outlined' onChange={handleAddress2Change} style={{width: '100%', marginLeft: '0.5rem'}} />
</Grid>
</Grid>
<Grid container style={{marginTop: '1rem'}}>
<Grid container item xs={3}>
<TextField label='* City' value={city} variant='outlined' onChange={handleCityChange} style={{width: '100%'}} />
</Grid>
<Grid container item xs={2}>
<TextField label='* State (2-digits)' value={usState} variant='outlined' onChange={handleUsStateChange} style={{width: '100%', marginLeft: '0.5rem'}} />
</Grid>
<Grid container item xs={3}>
<TextField label='* Zip Code (12345 or 12345-1234)' value={zip} variant='outlined' onChange={handleZipChange} style={{width: '100%', marginLeft: '0.5rem'}} />
</Grid>
<Grid container item xs={2}>
<TextField label='* Country (US Only)' value={country} variant='outlined' onChange={handleCountryChange} style={{width: '100%', marginLeft: '0.5rem'}} />
</Grid>
</Grid>
<Grid container style={{marginTop: '1rem'}}>
{showSubmitButton ?
<Grid item xs={1}>
<Button color='primary' variant='contained' onClick={handleSubmit} >Submit</Button>
</Grid>
:
<Grid item xs={1}>
<Button disabled color='primary' variant='contained' >Submit</Button>
</Grid>
}
<Grid item xs={2}>
<Button color='primary' variant='contained' onClick={handleShowAdminReport} >Admin Report</Button>
</Grid>
</Grid>
</Grid>
: null
}
{showConfirmation ?
<Confirmation dbError={dbError} userFromDB={userFromDB} handleConfirmationRouting={handleConfirmationRouting} />
: null
}
</Container>
</Box>
)
}
export default Registration
|
/*
* Base window class for Ext JS
* Created by Bherly 10032010
*/
SampleGrid = function(limitColumns){
function italic(value){
return '<i>' + value + '</i>';
}
function change(val){
if(val > 0){
return '<span style="color:green;">' + val + '</span>';
}else if(val < 0){
return '<span style="color:red;">' + val + '</span>';
}
return val;
}
function pctChange(val){
if(val > 0){
return '<span style="color:green;">' + val + '%</span>';
}else if(val < 0){
return '<span style="color:red;">' + val + '%</span>';
}
return val;
}
var columns = [
{id:'trano',header: "Trano", width: 200, sortable: true, dataIndex: 'trano'},
{header: "Tgl", width: 100, sortable: true, dataIndex: 'tgl',renderer: Ext.util.Format.dateRenderer('d/m/Y')},
{header: "PR no", width: 100, sortable: true, dataIndex: 'pr_no'},
{header: "Tgl PR", width: 100, sortable: true, dataIndex: 'tglpr',renderer: Ext.util.Format.dateRenderer('d/m/Y')},
{header: "PrjKode", width: 100, sortable: true, dataIndex: 'prj_kode'}
];
// allow samples to limit columns
if(limitColumns){
var cs = [];
for(var i = 0, len = limitColumns.length; i < len; i++){
cs.push(columns[limitColumns[i]]);
}
columns = cs;
}
var store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: CFG_CLIENT_SERVER_NAME + '/procurement/list/type/poh'
}),
reader: new Ext.data.JsonReader({
root: 'posts',
totalProperty: 'count',
id: 'trano'
}, [
{name: 'trano', mapping: 'trano'},
{name: 'pr_no', mapping: 'pr_no'},
{name: 'tgl', mapping: 'tgl', type: 'date', dateFormat: 'Y-m-d'},
{name: 'tglpr', mapping: 'tglpr', type: 'date', dateFormat: 'Y-m-d'},
{name: 'prj_kode', mapping: 'prj_kode'}
])
});
var gridForm = new Ext.FormPanel({
id: 'company-form',
frame: true,
labelAlign: 'left',
title: 'Company data',
bodyStyle:'padding:5px',
width: 750,
layout: 'column', // Specifies that the items will now be arranged in columns
items: [{
columnWidth: 0.60,
layout: 'fit',
items: {
xtype: 'grid',
ds: store,
cm: columns,
sm: new Ext.grid.RowSelectionModel({
singleSelect: true,
listeners: {
rowselect: function(sm, row, rec) {
Ext.getCmp("company-form").getForm().loadRecord(rec);
}
}
}),
autoExpandColumn: 'company',
height: 350,
title:'Company Data',
border: true,
listeners: {
viewready: function(g) {
g.getSelectionModel().selectRow(0);
} // Allow rows to be rendered.
}
}
},{
columnWidth: 0.4,
xtype: 'fieldset',
labelWidth: 90,
title:'Company details',
defaults: {width: 140, border:false}, // Default config options for child items
defaultType: 'textfield',
autoHeight: true,
bodyStyle: Ext.isIE ? 'padding:0 0 5px 15px;' : 'padding:10px 15px;',
border: false,
style: {
"margin-left": "10px", // when you add custom margin in IE 6...
"margin-right": Ext.isIE6 ? (Ext.isStrict ? "-10px" : "-13px") : "0" // you have to adjust for it somewhere else
},
items: [{
fieldLabel: 'Name',
name: 'company'
},{
fieldLabel: 'Price',
name: 'price'
},{
fieldLabel: '% Change',
name: 'pctChange'
},{
xtype: 'datefield',
fieldLabel: 'Last Updated',
name: 'lastChange'
}, {
xtype: 'radiogroup',
columns: 'auto',
fieldLabel: 'Rating',
name: 'rating',
// A radio group: A setValue on any of the following 'radio' inputs using the numeric
// 'rating' field checks the radio instance which has the matching inputValue.
items: [{
inputValue: '0',
boxLabel: 'A'
}, {
inputValue: '1',
boxLabel: 'B'
}, {
inputValue: '2',
boxLabel: 'C'
}]
}]
}]
});
SampleGrid.superclass.constructor.call(this, {
store: store,
columns: columns,
x:0,
y:100,
loadMask: true,
bbar: new Ext.PagingToolbar({
pageSize: 100,
store: store,
displayInfo: true,
displayMsg: 'Displaying data {0} - {1} of {2}',
emptyMsg: "No data to display"
}),
autoExpandColumn: 'trano',
height:250,
width:800
});
store.load();
}
Ext.extend(SampleGrid, Ext.grid.GridPanel);
var buttonHandler2 = function(button,event) {
alert(button.id.toString());
var aForm = new Ext.Window({
id: 'a-form-panel',
layout: 'fit',
bodyStyle: 'padding:15px;',
minWidth: 300,
minHeight: 200
});
aForm.title = 'Pop Up Window';
aForm.show();
};
var procurementPOForm = new Ext.form.FormPanel({
baseCls: 'x-plain2',
layout:'absolute',
url: CFG_CLIENT_SERVER_NAME + '/procurement/save',
border: true,
items: [
{
x: 0,
y: 0,
xtype: 'label',
text: 'Project Code:'
},
new Ext.form.TextField({
id:"project_code",
x:80,
y:0,
width:150,
allowBlank:false,
blankText:"Please enter the project code"
}),{
// The button is not a Field subclass, so it must be
// wrapped in a panel for proper positioning to work
xtype: 'panel',
x: 232,
y: 0,
items: {
xtype: 'button',
id: 'pjr_kode_button',
text: '>',
handler:buttonHandler2
}
},
{
x: 0,
y: 40,
xtype: 'label',
text: 'Site Code:'
},
new Ext.form.TextField({
id:"site_code",
x:80,
y:40,
width:150,
allowBlank:false,
blankText:"Please enter the site code"
}),
{
// The button is not a Field subclass, so it must be
// wrapped in a panel for proper positioning to work
xtype: 'panel',
x: 232,
y: 40,
items: {
xtype: 'button',
id: 'site_kode_button',
text: '>',
handler:buttonHandler2
}
},new SampleGrid()
],
buttons: [
{text:"Cancel"},
{text:"Save"}
]
// defaultType: 'textfield',
//
// items: [{
// x: 0,
// y: 5,
// xtype: 'label',
// text: 'Project Code:'
// },{
// x: 80,
// y: 0,
// name: 'pjr_kode',
// anchor:'100%'// anchor width by %
// },{
// x: 0,
// y: 32,
// xtype: 'label',
// text: 'Site Code:'
// },{
// // The button is not a Field subclass, so it must be
// // wrapped in a panel for proper positioning to work
// xtype: 'panel',
// x: 55,
// y: 27,
// items: {
// xtype: 'button',
// text: '>',
// handler:buttonHandler2
// }
// },{
// x: 80,
// y: 27,
// name: 'to',
// anchor: '100%' // anchor width by %
// }]
});
var procurementForm = ({
title: 'Procurement Form',
id: 'abs-form-po-panel',
layout: 'fit',
bodyStyle: 'padding:15px;',
minWidth: 300,
minHeight: 200,
loadMask: true,
items: {
title: 'Purchase Order',
cls: 'email-form2',
layout: 'fit',
frame: true,
bodyStyle: 'padding:10px 5px 5px;',
items:procurementPOForm
}
});
|
import React, { Component } from 'react';
import {Switch, Route} from 'react-router-dom';
import Wheel from './Wheel';
import Navbar from './Navbar';
import Challenges from './Challenges';
import {ReactSpinner} from 'react-spinning-wheel';
import 'react-spinning-wheel/dist/style.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
class App extends Component {
constructor(){
super();
this.state = {
loading: true,
}
}
componentWillMount (){
this.setState({loading:false});
}
render() {
let {loading} = this.state;
return (
loading ?
<div>
<ReactSpinner />
</div>
:
<MuiThemeProvider>
<div className="App">
<Navbar />
<Switch>
<Route exact path='/' component={Wheel}></Route>
<Route path='/create' component={Challenges}></Route>
</Switch>
</div>
</ MuiThemeProvider>
);
}
}
export default App;
|
var modalUserName =function (){
var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
var nodes = treeObj.getCheckedNodes(true);
var selectNode ={};
debugger;
if (nodes.length > 0) {
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].checked == true) {
selectNode.id= nodes[i].id;
selectNode.name=nodes[i].name;
}
}
}
return selectNode;
}
function getZtree(){
var treeHref=window.location.href;
var treeIdNumber=treeHref.split("=")[1];
/*treeIdNumbner 的值为0 默认显示的是根节点*/
var setting = {
view: {
selectedMulti: false
},
check: {
enable: true,
chkStyle: "radio",
chkboxType: {
"Y": "ps",
"N": "ps"
},
radioType:"all"
},
data: {
simpleData: {
enable: true,
pIdKey: "superId"
}
}
};
$.getJSON(basecontextPath+"/cp/subjectTree.do", function(data) {
console.log(data);
if (data.code == 1) {
var newTreeNode = [];
for (var i = 0; i < data.data.length; i++) {
var treeNodeData = {};
if (data.data[i].superId == "0") {
treeNodeData.open = true;
}
for (var key in data.data[i]) {
treeNodeData[key] = data.data[i][key];
}
newTreeNode[i] = treeNodeData;
}
for (var f = 0; f < newTreeNode.length; f++) {
if (newTreeNode[f].id == treeIdNumber) {
$("#modalOrgName").val(newTreeNode[f].name);
newTreeNode[f].checked = true;
newTreeNode[f].open = true;
}
}
console.log(newTreeNode);
$.fn.zTree.init($("#treeDemo"), setting, newTreeNode);
}
});
}
getZtree();
//考试对象确定按钮事件
$("#treeSubmit").on("click", function() {
$("#modalOrgName").val( modalUserName().name);
$(".zTreeDemoBackground").css("display", "none");
$("#subjectId").val(modalUserName().id);
console.log(modalUserName())
});
//附件
$("#fileupload1").on("click",function(){
$("#attachments1").click();
getUploadFile("#attachments1","#filetips1")
});
$("#fileupload2").on("click",function(){
$("#attachments2").click();
getUploadFile("#attachments2","#filetips2")
});
$("#fileupload3").on("click",function(){
$("#attachments3").click();
getUploadFile("#attachments3","#filetips3")
});
//文档资料附件上传
$("#fileupload4").on("click",function(){
$("#attachments4").click();
getUploadFile("#attachments4","#filetips4")
});
//上传图片=========这个模块不要了
//$("#imgfileupload").on("click",function(){
// $("#imgFile").click();
// getUploadFile("#imgFile","#imgfiletips")
//});
function getUploadFile(obj,obj2){
$(obj).on("change",function(){
var fileList = this.files[0];
if (fileList==undefined){
$(obj2).text("");
}else {
$(obj2).text(fileList.name);
}
});
}
//保存按钮事件
$("#personn_submit").on("click", function() {
var oEditor = CKEDITOR.instances.editor01.getData();
$("#content").val(oEditor);
$("#subjectId").val(modalUserName().id);
var crTypeName= $("input[name='crTypeId']:checked").next("a").html(); //课程类别
$("#crTypeName").val(crTypeName);
$("#formId").ajaxSubmit({
success : showResponse
//提交后的回调函数
});
});
//上传文件
function doUpload() {
var formData = new FormData($( "#uploadForm" )[0]);
$.ajax({
url: 'http://localhost:7090/eoc/' ,
type: 'POST',
data: formData,
async: false,
cache: false,
contentType: false,
processData: false,
success: function (returndata) {
console.log(returndata);
},
error: function (returndata) {
console.log(returndata);
}
});
}
function showResponse(data) {
debugger;
if (data.code ==1) {
window.location.href = contextPath+"/course/toList.action";
} else {
alert("未保存成功!");
}
}
//取消
$("#personn_reset").on("click", function() {
window.location.href = contextPath+"/course/toList.action";
});
$(".downs").on("click", function() {
if ($(".zTreeDemoBackground").css("display") == "none") {
$(".zTreeDemoBackground").css("display", "block")
} else {
$(".zTreeDemoBackground").css("display", "none")
}
});
//选择视频上传、
$(function () {
$("#course_manger_menu").addClass('leftmenu-title-down');
var videoHtml = '<div class="managepage_group">' +
'<label>上传视频:</label>' +
'<input type="file" name="videoFile" id="videoFile" value=""/>' +
'<span class="fileupload" id="videofileupload">浏览</span>' +
'<a class="filetips" id="videofiletips"></a>' +
'</div>';
$("input[name='crTypeId']").on("click", function () {
var checkFlag = $(this).prop("checked");
if (checkFlag) {
var value = $(this).val();
if (value == 1) {
$("#video_div").html(videoHtml);
$("#mode-switch-data-content").hide();
$("#mode-switch-doc-content").hide();
$("#video-show-introduction").show();
$("#img_file").hide();
//上传视频
$("#videofileupload").on("click", function () {
$("#videoFile").click();
getUploadFileFun("#videoFile", "#videofiletips")
});
function getUploadFileFun(obj, obj2) {
$(obj).on("change", function () {
var fileList = this.files[0];
if (fileList == undefined) {
$(obj2).text("");
} else {
$(obj2).text(fileList.name);
}
});
}
} else {
$("#video_div").empty();
$("#video-show-introduction").hide();
$("#mode-switch-doc-content").hide();
$("#mode-switch-data-content").show();
}
}
});
$("#mode_switch_doc_modal").on("click",function(){
$("#mode-switch-data-content").show()
$("#mode-switch-doc-content").hide()
})
$("#mode_switch_data_modal").on("click",function(){
$("#mode-switch-data-content").hide()
$("#mode-switch-doc-content").show()
})
});
|
// Written by Ziyou Shang from an image by Susan Rodger
$(document).ready(function() {
"use strict";
var av_name = "PDA2";
var av = new JSAV(av_name, {animationMode: "none"});
var radiusS = 15;
var radiusF = 20;
// machine and states that are not final states
var rect = av.g.rect(260, 30, 200, 280);
var state1 = av.g.circle(170, 100, radiusS);
var state2 = av.g.circle(310, 100, radiusS);
var state3 = av.g.circle(600, 100, radiusS);
// final states
var state4 = av.g.circle(400, 80, radiusS);
var state4F = av.g.circle(400, 80, radiusF);
var state5 = av.g.circle(400, 150, radiusS);
var state5F = av.g.circle(400, 150, radiusF);
var state6 = av.g.circle(400, 220, radiusS);
var state6F = av.g.circle(400, 220, radiusF);
// arrows
var arrow1 = av.g.line(110,100,145,100,{"arrow-end": "classic-wide-long"});
var arrow2 = av.g.line(192,100,285,100,{"arrow-end": "classic-wide-long"});
var line1 = av.g.polyline([[425, 80], [550, 80], [575, 90]], {"arrow-end": "classic-wide-long"});
var line2 = av.g.polyline([[425, 150], [550, 150], [575, 110]], {"arrow-end": "classic-wide-long"});
var line3 = av.g.polyline([[425, 220], [550, 220], [585, 125]], {"arrow-end": "classic-wide-long"});
var line4 = av.g.polyline([[618, 90], [650, 80], [645, 110],[630, 120], [620, 113]], {"arrow-end": "classic-wide-long"});
// labels
av.label("q", {left: 160, top: 75});
av.label("s", {left: 168, top: 83});
av.label("M", {left: 310, top: 25});
av.label("q", {left: 300, top: 75});
av.label("0", {left: 308, top: 83});
av.label("q", {left: 593, top: 75});
av.label("f", {left: 601, top: 83});
av.label("λ , z'; zz'", {left: 200, top: 65});
av.label("λ , x; λ", {left: 480, top: 45});
av.label("λ , x; λ", {left: 480, top: 115});
av.label("λ , x; λ", {left: 480, top: 185});
av.label("λ , x; λ", {left: 660, top: 70});
av.displayInit();
av.recorded();
});
|
var express = require('express'),
http = require('http');
var app = express();
app.use(function(req,res,next){
console.log('첫번째 미들웨어, 요청 처리함');
res.redirect('http://google.co.kr');//다른페이지로이동가능, 또한 URL주소뿐만 아니라 폴더 안의 다른 페이지를 보여줄 수 있음
});
app.use(function(req,res,next){
console.log('두번째 미들웨어, 요청 처리');
res.writeHead('200', {'Content-Type':'text/html;charset=utf8'});
res.end('<h1>Express 서버에서 응답한 결과</h1>');
});
http.createServer(app).listen(3000,function(){
console.log('Express서버가 3000번 포트에서 시작');
});
|
'use strict';
const APIkey = 'p3w5LMRVyOTNse8hHdyCCCCbKKoZ7NkFRd0M9XVM';
function formWatch () {
$('#parkSearch').submit( (event) => {
event.preventDefault();
const state = $('#state').val().split(' ').join(); //join+split removes spaces
const maxResults = $('#maxResults').val();
parksQuery(state, maxResults);
});
}
//Send a fetch request to parks API at properly-formatted URL
function parksQuery (state, maxResults=10) {
fetch (`https://developer.nps.gov/api/v1/parks?stateCode=${state}&limit=${maxResults}&api_key=${APIkey}`)
.then(response => {
if (response.ok) {
return response.json();
}
throw new Error(response.statusText);
})
.then(json => {
let data = json.data;
let resultsHtml = dataToHtml(data);
displayResults(resultsHtml);
});
}
//converts an array of objects representing park data to a single large block of HTML
function dataToHtml (data) {
let resultsList = data.map(park => {
let name = park.fullName;
let description = park.description;
let url = park.url;
return parkHtml (name, description, url);
});
return resultsList;
}
//given a park's Full name, Description, and URL, returns a <li> item with formatted results
function parkHtml (name, description, url) {
return `
<li>
<h3>${name}</h3>
<p>${description}</p>
<p>For more information, visit: <a href="${url}">${url}</a></p>
</li>
`;
}
//given a block of HTML, adds content to <ul#resultList>
function displayResults (html) {
$('#resultList').html(html);
}
/*
Assignment
Your team is working on an app that will help folks plan a vacation.
You've been assigned to work on one feature for the app - to display a list of national parks in an area.
Review The National Parks Services API documentation and create an API key.
Review the API Guide on Authentication for ways to pass your API key as part of the request.
Review the /parks endpoint and data model to understand how it works.
Create a new app and push it to GitHub.
When you're done, submit the link to your GitHub repo at the bottom of the page.
Requirements:
-The user must be able to search for parks in one or more states.
-The user must be able to set the max number of results, with a default of 10.
-The search must trigger a call to NPS's API.
The parks in the given state must be displayed on the page. Include at least:
-Full name
-Description
-Website URL
The user must be able to make multiple searches and see only the results for the current search.
As a stretch goal, try adding the park's address to the results.
This exercise should take about an hour to complete. If you're having trouble,
attend a Q&A session or reach out on Slack for help.
*/
$(formWatch());
|
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip()
$('.price_gain_box').click(function(event){
event.stopPropagation();
console.log('test');
});
$('#dashMenu').on('click', function(){
$('.sidebar').toggleClass('active');
$('.overlay').toggleClass('active');
});
$('.overlay').on('click', function(){
$('.sidebar').toggleClass('active');
$('.overlay').toggleClass('active');
})
$('#graph_timelines').on('click', function(){
$('#time_btns').show()
})
})
|
// ==UserScript==
// @name ShowP
// @namespace null
// @description Show big preview pictures for carib
// @version 1.0.0
// @updateURL https://raw.github.com/perhapz/userscript/master/ShowP.user.js
// @include http://www.caribbeancom.com/moviepages/*
// ==/UserScript==
var id = location.pathname.replace('index.html', 'images/');
var photo = document.getElementsByClassName('photo')[0];
if (photo) {
photo.lastChild.innerHTML = '<img width=575 src="' + id + 'l_l.jpg">';
for (var i = 1; i < 13; i++) {
var img = document.createElement('img');
img.height = 100;
img.src = id + 'g_big00' + i + '.jpg';
if (i > 9) {
img.src = id + 'g_big0' + i + '.jpg';
}
photo.lastChild.appendChild(img);
}
}
|
'use strict';
const asyncKit = require('async-kit');
exports.register = function register(world) {
// process.on('exit', exitHandler.bind(null, {cleanup: true}));
process.on('SIGINT', exitAsync);
process.on('uncaughtException', exitAsync);
process.on('asyncExit', function f(code , timeout , callback) {
asyncExitHandler(world, code, timeout, callback);
});
};
function exitAsync() {
asyncKit.exit(0, 5000);
}
function asyncExitHandler(world, code, timeout, callback) {
world.stop(function f(error) {
if(error) {
require('logger').error('World engine stop error', error);
}
callback();
});
}
|
import React, {Component} from 'react';
import withRedux from 'next-redux-wrapper';
import initStore from '../../utils/store';
import Layout from '../../components/Layout';
import Pokemon from '../../components/PokemonDetail';
import { Divider } from 'material-ui';
class Index extends React.Component {
render() {
return (
<div>
<Layout>
<Pokemon/>
</Layout>
</div>
);
}
}
const mapStateToProps = ({ pokemons }) => ({
pokemons
});
export default withRedux(initStore, mapStateToProps)(Index);
|
import React from "react";
import SpotifyWebApi from "spotify-web-api-js";
import "./scss/components/modal.scss";
const spotifyApi = new SpotifyWebApi();
class PlaylistModal extends React.Component {
constructor(props) {
super(props);
this.state = {
playlistName: "My New Playlist",
playlistDescription: "My new playlist description",
playlistPrivate: false,
playlistID: "",
playlistLink: "",
playlistTracks: [],
formSuccess: false,
errors: {},
modal: false
};
this.handleSubmit = this.handleSubmit.bind(this);
this.handleInputChange = this.handleInputChange.bind(this);
this.closeModal = this.closeModal.bind(this);
}
handleInputChange(e) {
const target = e.target;
const value = target.type === 'checkbox' ? target.checked : target.value;
const name = target.name;
this.setState({
[name]: value
});
}
handleSubmit(e) {
e.preventDefault();
if (this.handleValidation()) {
this.setState({ formSuccess: true })
this.createPlaylist();
} else {
console.log("There was an error");
}
}
closeModal(e) {
e.stopPropagation();
this.props.closeModal();
this.setState({ formSuccess: false })
}
handleValidation() {
let errors = {};
let formIsValid = true;
// Name
if (!this.state.playlistName) {
formIsValid = false;
errors["playlistName"] = "Playlist Name cannot be blank.";
}
this.setState({ errors: errors });
return formIsValid;
}
splitArr(arr, length) {
let tempArr = [];
for (let i = 0; i < arr.length; i += length) {
tempArr.push(arr.slice(i, i + length));
}
return tempArr;
}
createPlaylist() {
spotifyApi.createPlaylist(this.props.userID, {
name: this.state.playlistName,
description: this.state.playlistDescription,
public: true
})
.then((response) => {
// console.log(response.id)
this.setState({ playlistID: response.id })
this.setState({ playlistLink: response.external_urls.spotify })
})
.then(() => {
this.addItemsToPlaylist(this.state.playlistID, this.props.albumTracks);
})
}
getValues(obj) {
let str = "";
for (const value of Object.values(obj)) {
str += value;
}
return str.split(",");
}
addItemsToPlaylist(playlistID, tracksObj) {
let tracksArr = [];
for (var key of Object.keys(tracksObj)) {
tracksArr.push(...tracksObj[key]);
}
if (tracksArr.length > 100) {
const trackChunks = this.splitArr(tracksArr, 100);
trackChunks.forEach(tracks => {
this.postItemsToPlaylist(playlistID, this.props.accessToken.access_token, tracks);
})
} else {
this.postItemsToPlaylist(playlistID, this.props.accessToken.access_token, tracksArr);
}
}
postItemsToPlaylist(id, token, items) {
fetch(`https://api.spotify.com/v1/playlists/${id}/tracks`, {
method: 'post',
headers: {
'Content-Type': 'application/json',
"Authorization": "Bearer " + token,
"Accept": "application/json"
},
body: JSON.stringify(items),
})
.then((response) => {
// console.log(response);
})
.catch((error) => {
console.log(error)
});
}
render() {
let content;
if (this.state.formSuccess) {
content = (
<div style={{ textAlign: "center" }}>
<h4 className="pbot-2">Your playlist is ready!</h4>
<a className="btn btn-primary" href={this.state.playlistLink} target="_blank" rel="noopener noreferrer">See Playlist</a>
</div>
)
} else {
content = (
<form className="Form" onSubmit={this.handleSubmit}>
<div className="form-group">
<label htmlFor="playlistName">Playlist Name*</label>
<input type="text" className="form-control" name="playlistName" id="playlistName" aria-describedby="playlistName" onChange={this.handleInputChange} value={this.state.playlistName} />
<span className="error">{this.state.errors["playlistName"]}</span>
</div>
<div className="form-group">
<label htmlFor="playlistDescription">Description</label>
<textarea className="form-control" name="playlistDescription" id="playlistDescription" onChange={this.handleInputChange} value={this.state.playlistDescription} />
</div>
<div className="form-group form-check">
<input type="checkbox" className="form-check-input" name="playlistPrivate" id="playlistPrivate" checked={this.state.playlistPrivate} onChange={this.handleInputChange} />
<label className="form-check-label" htmlFor="playlistPrivate">Private</label>
<br />
<small>Check this box if you'd like your playlist to be private.</small>
</div>
<button type="submit" className="btn btn-primary">Submit</button>
</form>
)
}
return (
<div
className="PlaylistModal modal"
onClick={this.closeModal}
style={{ display: (this.props.displayModal) ? "block" : "none" }} >
<div
className="modal-content"
onClick={e => e.stopPropagation()} >
<span
className="close"
onClick={this.closeModal}>×
</span>
<h2 className="modal-content__header">Fill out the following fields</h2>
{content}
</div>
</div>
);
}
}
export default PlaylistModal;
|
import React, {useContext} from 'react';
import {Portal, Modal} from 'react-native-paper';
import {View, StyleSheet, Dimensions, Image, ScrollView} from 'react-native';
import ThemeContext from '../Context/ThemeContext';
const MessageModal = ({visible, onDismiss, children}) => {
const {theme} = useContext(ThemeContext);
return (
<Portal>
<Modal onDismiss={onDismiss} visible={visible}>
<View
style={[styles.container, {backgroundColor: theme.background}]}>
<View style={styles.root}>
<ScrollView showsVerticalScrollIndicator={false} style={{flex: 1}}>
<View style={{alignItems: 'center'}}>
<Image
style={styles.image}
source={require('../assets/credit-card.png')}
/>
</View>
{children}
</ScrollView>
</View>
</View>
</Modal>
</Portal>
);
};
const styles = StyleSheet.create({
container: {
minHeight: Dimensions.get('screen').height / 1.5,
marginHorizontal: 20,
borderRadius: 10,
backgroundColor: '#fff',
justifyContent: 'center',
},
root: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding: 10,
},
image: {
width: 100,
height: 100,
marginVertical: 5,
},
});
export default MessageModal;
|
import showArticles from './showArticles';
// Tous les films plus récent au plus ancien (ou inversement)
/* const articlesSorted = (urlAPI, apiKey) => (sorted = null, callBack) => {
const request = axios.get(`${urlAPI}/discover/movie?api_key=${apiKey}&language=en-EN&sort_by=release_date.ascc&include_adult=false&include_video=false&page=1`);
request.then(({ data }) => callBack(data));
}; */
/* // Tous les films plus récent au plus ancien (ou inversement)
const articlesSorted = (urlAPI, apiKey) => (order, callBack) => {
const request = axios.get(${urlAPI}/discover/movie?api_key=${apiKey}&language=${localLanguage}&sort_by=release_date.${sorted}&include_adult=false&include_video=false&page=1`);
request.then(({data}) => callBack(data));
}; */
const articlesSorted = (articlesList, firstFilterParameter, secondFilterParameter) => {
let orderBy;
// On récupère le <span> en lien avec le bouton 'Order'
const ascOrDesc = document.getElementById('ascOrDesc');
// A chaque clique de l'utilisateur on ajoute ou retire à ce <span> une classe
ascOrDesc.classList.toggle('asc');
// Si la classe css 'asc' existe
// notre variable 'orderBy' prend la valeur 'asc' sinon elle prend la valeur 'desc'
ascOrDesc.classList.contains('asc') ? orderBy = 'asc' : orderBy = 'desc';
if (secondFilterParameter) {
articlesList(orderBy, firstFilterParameter, secondFilterParameter, (results) => {
document.getElementById('left-side').innerHTML = showArticles(results);
});
} else if (firstFilterParameter) {
articlesList(orderBy, firstFilterParameter, (results) => {
document.getElementById('left-side').innerHTML = showArticles(results);
});
} else {
articlesList(orderBy, (results) => {
document.getElementById('left-side').innerHTML = showArticles(results);
});
}
};
export default articlesSorted;
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { observer } from 'mobx-react';
import http from 'common/http';
import { Select } from 'antd';
import utils from 'common/utils';
import { Table, Form, Modal, Button, Popover, Icon, message, Tree, Card} from 'antd';
import moment from 'moment';
import DynamicSearchForm from 'components/DynamicSearchForm';
/**
* 添加流程时限
*/
@observer
class EditFlowLimit extends Component {
}
EditFlowLimit.propTypes = {
flowLimitInstance: PropTypes.object.isRequired,
onCancel: PropTypes.func.isRequired
};
export default EditFlowLimit;
|
import React from "react";
import Button from "../components/Button";
const Main = () => {
return (
<div>
<h1>Dark Theme Switcher</h1>
<Button text="auto" />
<Button text="dark" />
<Button text="light" />
</div>
);
};
export default Main;
|
/*!
* ${copyright}
*/
/*global Promise */
sap.ui.define([ "jquery.sap.global", "sap/ui/thirdparty/URI", "sap/ui/fl/Utils" ], function(jQuery, URI, FlexUtils) {
"use strict";
/**
* @constructor
* @class Provides the connectivity to the ABAP based LRep REST-service
* @param {object} [mParameters] - map of parameters, see below
* @param {String} [mParameters.XsrfToken] - XSRF Token which can be reused for the backend connectivity. If no XSRF token is passed, a new one will be fetched from teh backend.
*
* @author SAP SE
* @version ${version}
*
* @name sap.ui.fl.LrepConnector
* @experimental Since 1.25.0
*/
var Connector = function(mParameters) {
this._initClientParam();
this._initLanguageParam();
if(mParameters) {
this._sXsrfToken = mParameters.XsrfToken;
}
};
Connector.prototype.DEFAULT_CONTENT_TYPE = "application/json";
Connector.prototype._sClient = undefined;
Connector.prototype._sLanguage = undefined;
/**
* Extract client from current running instance
* @private
*/
Connector.prototype._initClientParam = function() {
var client = FlexUtils.getClient();
if (client) {
this._sClient = client;
}
};
/**
* Extract the sap-language url parameter from current url
* @private
*/
Connector.prototype._initLanguageParam = function() {
var sLanguage = this._getUrlParameter('sap-language');
if(sLanguage){
this._sLanguage = sLanguage;
}
};
/**
* Returns the a string containing all url parameters of the current window.location
*
* @returns {string}
* @private
*/
Connector.prototype._getAllUrlParameters = function(){
return window.location.search.substring(1);
};
/**
* Returns the value of the specified url parameter of the current url
*
* @param {String} sParameterName - Name of the url parameter
* @returns {string} url parameter
* @private
*/
Connector.prototype._getUrlParameter = function(sParameterName) {
var aURLVariables, sUrlParams, i, aCurrentParameter;
sUrlParams = this._getAllUrlParameters();
aURLVariables = sUrlParams.split('&');
for (i = 0; i < aURLVariables.length; i++) {
aCurrentParameter = aURLVariables[i].split('=');
if (aCurrentParameter[0] === sParameterName) {
return aCurrentParameter[1];
}
}
};
/**
* Resolve the complete url of a request by taking the backendUrl and the relative url from the request
*
* @param {String} sRelativeUrl - relative url of the current request
* @returns {sap.ui.core.URI} returns the complete URI for this request
*
* @private
*/
Connector.prototype._resolveUrl = function(sRelativeUrl) {
if (!jQuery.sap.startsWith(sRelativeUrl, "/")) {
sRelativeUrl = "/" + sRelativeUrl;
}
var oUri = URI(sRelativeUrl).absoluteTo("");
return oUri.toString();
};
/**
* Get the default header for a request
*
* @returns {Object} Returns an object containing all headers for each request
* @private
*/
Connector.prototype._getDefaultHeader = function() {
var mHeaders = {
headers: {
"X-CSRF-Token": this._sXsrfToken || "fetch"
}
};
return mHeaders;
};
/**
* Get the default options, required for the jQuery.ajax request
*
* @param {String} sMethod - HTTP-method (PUT, POST, GET (default)...) used for this request
* @param {String} sContentType - Set the content-type manually and overwrite the default (application/json)
* @param {Object} oData - Payload of the request
* @returns {Object} Returns an object containing the options and the default header for a jQuery.ajax request
*
* @private
*
*/
Connector.prototype._getDefaultOptions = function(sMethod, sContentType, oData) {
var mOptions;
if (!sContentType) {
sContentType = this.DEFAULT_CONTENT_TYPE;
}
mOptions = jQuery.extend(true, this._getDefaultHeader(), {
type: sMethod,
async: true,
contentType: sContentType,
data: JSON.stringify(oData),
dataType: 'json',
processData: false,
xhrFields: {
withCredentials: true
},
headers: {
"Content-Type": sContentType
}
});
if (sMethod === 'DELETE') {
delete mOptions.data;
delete mOptions.contentType;
}
return mOptions;
};
/**
* Send a request to the backend
*
* @param {String} sUri
* Relative url for this request
* @param {String} sMethod
* HTTP-method to be used by this request (default GET)
* @param {Object} oData
* Payload of the request
* @param {Object} mOptions
* Additional options which should be used in the request
* @returns {Promise}
* Returns a promise to the result of the request
*
* @function
* @name sap.ui.fl.LrepConnector#send
* @public
*/
Connector.prototype.send = function(sUri, sMethod, oData, mOptions) {
sMethod = sMethod || "GET";
sMethod = sMethod.toUpperCase();
mOptions = mOptions || {};
sUri = this._resolveUrl(sUri);
if (mOptions.success || mOptions.error) {
var sErrorMessage = "Success and error handler are not allowed in mOptions";
throw new Error(sErrorMessage);
}
mOptions = jQuery.extend(true, this._getDefaultOptions(sMethod, this.DEFAULT_CONTENT_TYPE, oData), mOptions);
return this._sendAjaxRequest(sUri, mOptions);
};
/**
* @param {String} sUri - Complete request url
* @param {Object} mOptions - Options to be used by the request
* @returns {Promise} Returns a Promise with the status and response
*
* @private
*/
Connector.prototype._sendAjaxRequest = function(sUri, mOptions) {
var that = this;
var sFetchXsrfTokenUrl = "/sap/bc/lrep/actions/getcsrftoken/";
var mFetchXsrfTokenOptions = {
headers: {
'X-CSRF-Token': 'fetch'
},
type: "HEAD"
};
if (this._sClient) {
mFetchXsrfTokenOptions.headers['sap-client'] = this._sClient;
}
return new Promise(function(resolve, reject) {
function handleValidRequest(oResponse, sStatus, oXhr) {
var sNewCsrfToken = oXhr.getResponseHeader("X-CSRF-Token");
that._sXsrfToken = sNewCsrfToken || that._sXsrfToken;
var result = {
status: sStatus,
response: oResponse
};
resolve(result);
}
function fetchTokenAndHandleRequest(oResponse, sStatus, oXhr) {
that._sXsrfToken = oXhr.getResponseHeader("X-CSRF-Token");
mOptions.headers = mOptions.headers || {};
mOptions.headers["X-CSRF-Token"] = that._sXsrfToken;
//Resend request after fetching token
jQuery.ajax(sUri, mOptions).done(handleValidRequest).fail(function(oXhr, sStatus, sErrorThrown) {
reject({
status: "error"
});
});
}
if (!that._sXsrfToken || that._sXsrfToken === "fetch") {
//Fetch XSRF Token
jQuery.ajax(sFetchXsrfTokenUrl, mFetchXsrfTokenOptions).done(fetchTokenAndHandleRequest).fail(function(oXhr, sStatus, sErrorThrown) {
//Fetching XSRF Token failed
reject({
status: "error"
});
});
} else {
//Send normal request
jQuery.ajax(sUri, mOptions).done(handleValidRequest).fail(function(oXhr, sStatus, sErrorThrown) {
if (oXhr.status === 403) {
//Token seems to be invalid, refetch and then resend
jQuery.ajax(sFetchXsrfTokenUrl, mFetchXsrfTokenOptions).done(fetchTokenAndHandleRequest).fail(function(oXhr, sStatus, sErrorThrown) {
//Fetching XSRF Token failed
reject({
status: "error"
});
});
} else {
var result = {
status: sStatus
};
reject(result);
}
});
}
});
};
/**
* Loads the changes for the given component class name.
*
* @see sap.ui.core.Component
*
* @param {String} sComponentClassName - Component class name
* @returns {Promise} Returns a Promise with the changes and componentClassName
*
* @function
* @name sap.ui.fl.LrepConnector#loadResource
* @public
*/
Connector.prototype.loadChanges = function(sComponentClassName) {
//Example for sComponentClassName: "smartFilterBar.Component"
try {
var resourceName = jQuery.sap.getResourceName(sComponentClassName, "-changes.json");
} catch (e) {
return Promise.reject(e);
}
var params = {
async: true,
dataType: "json",
failOnError: true,
headers: {
"X-UI5-Component": sComponentClassName
}
};
if (this._sClient) {
params.headers["sap-client"] = this._sClient;
}
return jQuery.sap.loadResource(resourceName, params).then(function(aChanges) {
var result = {
changes: aChanges,
componentClassName: sComponentClassName
};
return result;
});
};
/**
* @param {Array} aParams
* Array of parameter objects in format {name:<name>, value:<value>}
* @returns {String}
* Returns a String with all parameters concatenated
*
* @private
*/
Connector.prototype._buildParams = function(aParams) {
if (!aParams) {
aParams = [];
}
if (this._sClient) {
//Add mandatory 'sap-client' parameter
aParams.push({
name: "sap-client",
value: this._sClient
});
}
if (this._sLanguage) {
//Add mandatory 'sap-language' url parameter.
//sap-language shall be used only if there is a sap-language parameter in the original url.
//If sap-language is not added, the browser language might be used as backend login language instead of sap-language.
aParams.push({
name: "sap-language",
value: this._sLanguage
});
}
var result = "";
var len = aParams.length;
for ( var i = 0; i < len; i++) {
if (i === 0) {
result += "?";
} else if (i > 0 && i < len) {
result += "&";
}
result += aParams[i].name + "=" + aParams[i].value;
}
return result;
};
/**
* The URL prefix of the REST API for example /sap/bc/lrep/changes/.
* @param {Boolean} bIsVariant - is variant?
* @returns {String} url prefix
*
* @private
*/
Connector.prototype._getUrlPrefix = function(bIsVariant) {
if (bIsVariant) {
return "/sap/bc/lrep/variants/";
}
return "/sap/bc/lrep/changes/";
};
/**
* Creates a change or variant via REST call.
*
* @param {Object} oPayload
* The content which is send to the server
* @param {String} sChangelist (optional)
* The transport ID.
* @param {Boolean} isVariant - is variant?
* @returns {Object}
* Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#create
* @public
*
*/
Connector.prototype.create = function(oPayload, sChangelist, bIsVariant) {
var sRequestPath = this._getUrlPrefix(bIsVariant);
var aParams = [];
if (sChangelist) {
aParams.push({
name: "changelist",
value: sChangelist
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "POST", oPayload, null);
};
/**
* Update a change or variant via REST call.
*
* @param {Object} oPayload
* The content which is send to the server
* @param {String} sChangeName
* Name of the change
* @param {String} sChangelist (optional)
* The transport ID.
* @param {Boolean} bIsVariant - is variant?
* @returns {Object} Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#update
* @public
*/
Connector.prototype.update = function(oPayload, sChangeName, sChangelist, bIsVariant) {
var sRequestPath = this._getUrlPrefix(bIsVariant);
sRequestPath += sChangeName;
var aParams = [];
if (sChangelist) {
aParams.push({
name: "changelist",
value: sChangelist
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "PUT", oPayload, null);
};
/**
* Delete a change or variant via REST call.
*
* @param {String} mParameters.sChangeName - name of the change
* @param {String} [mParameters.sLayer='USER'] - other possible layers: VENDOR,PARTNER,CUSTOMER
* @param {String} mParameters.sNamespace - the namespace of the change file
* @param {String} mParameters.sChangelist - The transport ID.
* @param {Boolean} bIsVariant - is it a variant?
* @returns {Object} Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#deleteChange
* @public
*
*/
Connector.prototype.deleteChange = function(mParameters, bIsVariant) {
var sRequestPath = this._getUrlPrefix(bIsVariant);
sRequestPath += mParameters.sChangeName;
var aParams = [];
if (mParameters.sLayer) {
aParams.push({
name: "layer",
value: mParameters.sLayer
});
}
if (mParameters.sNamespace) {
aParams.push({
name: "namespace",
value: mParameters.sNamespace
});
}
if (mParameters.sChangelist) {
aParams.push({
name: "changelist",
value: mParameters.sChangelist
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "DELETE", {}, null);
};
/**
* Authenticated access to a resource in the Lrep
*
* @param {String} sNamespace
* The abap package goes here. It is needed to identify the change. Default LREP namespace is "localchange".
* @param {String} sName
* Name of the change
* @param {String} sType
* File type extension
* @param {Boolean} bIsRuntime
* The stored file content is handed over to the lrep provider that can dynamically adjust the content to the runtime context
* (e.g. do text replacement to the users' logon language) before
* @returns {Object}
* Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#getStaticResource
* @public
*/
Connector.prototype.getStaticResource = function(sNamespace, sName, sType, bIsRuntime) {
var sApiPath = "/sap/bc/lrep/content/";
var sRequestPath = sApiPath;
sRequestPath += sNamespace + "/" + sName + "." + sType;
var aParams = [];
if (bIsRuntime === true) {
aParams.push({
name: "rt",
value: "true"
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "GET", {}, null);
};
/**
* Retrieves the file attributes for a given resource in the LREP.
*
* @param {String} sNamespace
* The abap package goes here. It is needed to identify the change. Default LREP namespace is "localchange".
* @param {String} sName
* Name of the change
* @param {String} sType
* File type extension
* @param {String} sLayer
* File layer
* @returns {Object}
* Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#getFileAttributes
* @public
*/
Connector.prototype.getFileAttributes = function(sNamespace, sName, sType, sLayer) {
var sApiPath = "/sap/bc/lrep/content/";
var sRequestPath = sApiPath;
sRequestPath += sNamespace + "/" + sName + "." + sType;
var aParams = [];
aParams.push({
name: "metadata",
value: "true"
});
if (sLayer) {
aParams.push({
name: "layer",
value: sLayer
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "GET", {}, null);
};
/**
* Upserts a given change or variant via REST call.
*
* @param {String} sNamespace
* The abap package goes here. It is needed to identify the change. Default LREP namespace is "localchange".
* @param {String} sName
* Name of the change
* @param {String} sType
* File type extension
* @param {String} sLayer
* File layer
* @param {String} sChangelist
* The transport ID
* @returns {Object}
* Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#upsert
* @public
*/
Connector.prototype.upsert = function(sNamespace, sName, sType, sLayer, sChangelist) {
var that = this;
return Promise.resolve(that._fileAction("PUT", sNamespace, sName, sType, sLayer, sChangelist));
};
/**
* Delete a file via REST call.
*
* @param {String} sNamespace
* The abap package goes here. It is needed to identify the change. Default LREP namespace is "localchange".
* @param {String} sName
* Name of the change
* @param {String} sType
* File type extension
* @param {String} sLayer
* File layer
* @param {String} sChangelist
* The transport ID
* @returns {Object}
* Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#deleteFile
* @public
*/
Connector.prototype.deleteFile = function(sNamespace, sName, sType, sLayer, sChangelist) {
return this._fileAction("DELETE", sNamespace, sName, sType, sLayer, sChangelist);
};
Connector.prototype._fileAction = function(sMethod, sNamespace, sName, sType, sLayer, sChangelist) {
var sApiPath = "/sap/bc/lrep/content/";
var sRequestPath = sApiPath;
sRequestPath += sNamespace + "/" + sName + "." + sType;
var aParams = [];
aParams.push({
name: "layer",
value: sLayer
});
if (sChangelist) {
aParams.push({
name: "changelist",
value: sChangelist
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, sMethod.toUpperCase(), {}, null);
};
/**
* @param {String} sOriginNamespace
* The abap package goes here. It is needed to identify the change. Default LREP namespace is "localchange".
* @param {String} sName
* Name of the change
* @param {String} sType
* File type extension
* @param {String} sOriginLayer
* File layer
* @param {String} sTargetLayer
* File where the new Target-Layer
* @param {String} sChangelist The changelist where the file will be written to
* @returns {Object}
* Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#publish
* @private Private for now, as is not in use.
*/
Connector.prototype.publish = function(sOriginNamespace, sName, sType, sOriginLayer, sTargetLayer, sTargetNamespace, sChangelist) {
var sApiPath = "/sap/bc/lrep/actions/publish/";
var sRequestPath = sApiPath;
sRequestPath += sOriginNamespace + "/" + sName + "." + sType;
var aParams = [];
if (sOriginLayer) {
aParams.push({
name: "layer",
value: sOriginLayer
});
}
if (sTargetLayer) {
aParams.push({
name: "target-layer",
value: sTargetLayer
});
}
if (sTargetNamespace) {
aParams.push({
name: "target-namespace",
value: sTargetNamespace
});
}
if (sChangelist) {
aParams.push({
name: "changelist",
value: sChangelist
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "POST", {}, null);
};
/**
* Retrieves the content for a given namespace and layer via REST call.
*
* @param {String} sNamespace - The file namespace goes here. It is needed to identify the change.
* @param {String} sLayer - File layer
* @returns {Object} Returns the result from the request
*
* @function
* @name sap.ui.fl.LrepConnector#listContent
* @public
*/
Connector.prototype.listContent = function(sNamespace, sLayer) {
var sRequestPath = "/sap/bc/lrep/content/";
sRequestPath += sNamespace;
var aParams = [];
if (sLayer) {
aParams.push({
name: "layer",
value: sLayer
});
}
sRequestPath += this._buildParams(aParams);
return this.send(sRequestPath, "GET", {}, null);
};
return Connector;
}, true);
|
'use strict';
angular.module('AdminApp')
.controller('ProfileController', function($scope,$http,$window,$location,StaffAccount,Staffs){
// function getAccountInfo(){
// return StaffAccount.query({});
// }
StaffAccount.query({}, function(result){
//console.log(result);
$scope.info = result.data;
});
$scope.changePasswordInfo = {
changePasswordSubmited: false,
currentPassword: '',
newPassword: '',
confirmPassword:''
};
$scope.updateInfo = function(){
Staffs.update($scope.info, function(result){
ShowGritterCenter('System Notification',result.messages);
})
}
$scope.isPasswordMatch = function(){
return $scope.changePasswordInfo.newPassword == $scope.changePasswordInfo.confirmPassword;
}
$scope.changePasswordClick = function(){
$scope.changePasswordInfo.changePasswordSubmited = true;
StaffAccount.changePassword({info:$scope.changePasswordInfo},function(result){
if(result.status == 'fail'){
ShowGritterCenter('System Notification','Password Change Fail ...');
}else{
ShowGritterCenter('System Notification','Password Changed.');
$scope.changePasswordInfo.changePasswordSubmited = false;
$scope.changePasswordInfo.currentPassword = '';
$scope.changePasswordInfo.newPassword = '';
$scope.changePasswordInfo.confirmPassword = '';
setInterval(function(){
delete sessionStorage.token;
$window.location='/admin/login';
}, 2000);
}
});
}
});
|
'use strict';
describe('locations list LOGGED IN USER', function () {
var $scope;
var element;
var locationFactory;
var reportFactory;
var settingsFactory;
var $timeout;
var $loc;
var q;
var deferred;
var $httpBackend;
beforeEach(module('components/locations/index/_index.html'));
beforeEach(module('components/stats/clients/_index_brief.html'));
beforeEach(module('myApp', function($provide) {
settingsFactory = {
get: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
update: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
};
locationFactory = {
query: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
get: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
update: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
};
reportFactory = {
get: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
clients: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
periscope: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
};
$provide.value("Location", locationFactory);
$provide.value("Report", reportFactory);
$provide.value("UserSettings", settingsFactory);
}));
describe("location index", function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector) {
$scope = $rootScope;
$scope.loggedIn = true;
q = $q;
$httpBackend = $injector.get('$httpBackend');
$httpBackend.whenGET('components/home/hello.html').respond("");
$httpBackend.whenGET('template/pagination/pagination.html').respond("");
$httpBackend.whenGET('components/locations/index/index.html').respond("");
$httpBackend.whenGET('template/modal/backdrop.html').respond("");
$httpBackend.whenGET('template/modal/window.html').respond("");
$httpBackend.whenGET('template/tooltip/tooltip-popup.html').respond("");
}));
describe('location periscope', function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector) {
element = angular.element('<periscope></periscope>');
$compile(element)($rootScope);
$scope.$apply();
}));
it("should get the periscope", function() {
spyOn(reportFactory, 'periscope').andCallThrough();
var stats = {_stats: {}, periscope: { devices: [1,2,3], throughput: [1,3,2] } } ;
deferred.resolve(stats);
$scope.$apply();
expect(element.isolateScope().loading).toBe(undefined);
expect(element.isolateScope()._stats).toBe(stats._stats);
expect(element.isolateScope().charts).toBe(2);
});
});
describe('periscope settings', function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector) {
element = angular.element('<periscope-settings></periscope-settings>');
$compile(element)($rootScope);
$scope.$apply();
}));
it("should get the periscope user settings", function() {
spyOn(settingsFactory, 'get').andCallThrough();
element.isolateScope().fetch();
expect(element.isolateScope().loading).toBe(true);
var settings = { a: 123 };
deferred.resolve(settings);
$scope.$apply();
expect(element.isolateScope().loading).toBe(undefined);
expect(element.isolateScope().settings).toBe(settings);
});
it("should update the periscope user settings", function() {
spyOn(settingsFactory, 'update').andCallThrough();
element.isolateScope().update();
// expect(element.isolateScope().loading).toBe(true);
var settings = { a: 123 };
deferred.resolve(settings);
$scope.$apply();
// expect(element.isolateScope().loading).toBe(undefined);
// expect(element.isolateScope().settings).toBe(settings);
});
});
describe('location listing', function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector) {
element = angular.element('<list-locations></list-locations>');
$compile(element)($rootScope);
$scope.$apply();
}));
// Arg too many resolves :( ///
xit("should list the locations", function() {
spyOn(locationFactory, 'query').andCallThrough();
expect(element.isolateScope().loading).toBe(true);
var locations = { locations: [ {location_name: 'simon morley'}], _links: {}, _stats: {} };
deferred.resolve(locations);
$scope.$apply();
// Resolve twice as we have a compile action in directive //
deferred.resolve(locations);
$scope.$apply();
expect(element.isolateScope().loading).toBe(undefined);
// expect(element.isolateScope()._links).toBe(locations._links);
// expect(element.isolateScope().locations).toBe(locations.locations);
});
it("should get the location info by clicking the table row", function() {
element.isolateScope().locations = [{ slug: 112312323}];
element.isolateScope().filtered = [{ slug: 112312323}];
spyOn(locationFactory, 'get').andCallThrough();
expect(element.isolateScope().getLocation(0));
expect(element.isolateScope().location.state).toBe('loading');
var location = { location_name: 'simon', _info: {}}
deferred.resolve(location);
$scope.$apply();
expect(element.isolateScope().location).toBe(location);
expect(element.isolateScope()._info).toBe(location._info);
});
it("should update the location", function() {
element.isolateScope().location = { } ;
element.isolateScope().editDesc = true;
spyOn(locationFactory, 'update').andCallThrough();
expect(element.isolateScope().update());
expect(element.isolateScope().location.state).toBe('updating');
var location = { description: 'simon'}
deferred.resolve(location);
$scope.$apply();
expect(element.isolateScope().location.description).toBe('simon');
expect(element.isolateScope().location.state).toBe('updated');
expect(element.isolateScope().editDesc).toBe(undefined);
});
it("should not update the location", function() {
element.isolateScope().location = { } ;
element.isolateScope().filtered = { } ;
spyOn(locationFactory, 'update').andCallThrough();
expect(element.isolateScope().update());
expect(element.isolateScope().location.state).toBe('updating');
var location = { description: 'simon'}
deferred.reject();
$scope.$apply();
expect(element.isolateScope().location.description).toBe(undefined);
expect(element.isolateScope().location.state).toBe('failed');
expect(element.isolateScope().location.errors).toBe('There was a problem updating your location.');
});
});
describe("location index - with the cookies for HG", function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector, _$routeParams_) {
var $routeParams;
$routeParams = _$routeParams_;
$routeParams.hg = true;
element = angular.element('<list-locations></list-locations>');
$compile(element)($rootScope);
$scope.$apply();
}));
it("should save the hg val in the cookies", function() {
// spyOn(locationFactory, 'query').andCallThrough();
// expect(element.isolateScope().loading).toBe(true);
// var locations = { locations: [ {location_name: 'simon'}], _links: {}, _stats: {} };
// expect(element.isolateScope().hg).toBe(true);
// element.isolateScope().toggleCharts();
// expect(cookies to be set isnt work! )
});
});
describe("Preview", function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector, _$timeout_, _$routeParams_, _$location_) {
var $routeParams;
$routeParams = _$routeParams_;
$routeParams.preview = true;
$loc = _$location_;
element = angular.element('<list-locations></list-locations>');
$compile(element)($rootScope);
$scope.$apply();
}));
// Removing since we use periscope now //
// it("should render the preview page etc and hide the charts", function() {
// spyOn(locationFactory, 'query').andCallThrough();
// expect(element.isolateScope().loading).toBe(true);
// var locations = { locations: [ {location_name: 'simon'}], _links: {}, _stats: {} };
// expect(element.isolateScope().preview).toBe(true);
// expect(element.isolateScope().hg).toBe(undefined);
// // expect($loc.search().hg).toBe(true);
// deferred.resolve(locations);
// $scope.$apply();
// expect(element.isolateScope().hg).toBe(true);
// // expect($loc.search().hg).toBe(undefined);
// // expect(cookies to be set isnt work! )
// });
});
});
describe("Dashing", function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector, _$timeout_) {
$scope = $rootScope;
$timeout = _$timeout_;
q = $q;
$httpBackend = $injector.get('$httpBackend');
$httpBackend.whenGET('template/tooltip/tooltip-popup.html').respond("");
element = angular.element('<dashing></dashing>');
$compile(element)($rootScope);
$scope.$apply();
}));
it("should list the locations", function() {
spyOn(locationFactory, 'query').andCallThrough();
$timeout.flush()
expect(element.isolateScope().loading).toBe(true);
var stats = { stats: { a: 123, boxes: { states: [] } } };
deferred.resolve(stats);
$scope.$apply();
expect(element.isolateScope().loading).toBe(undefined);
expect(element.isolateScope().stats).toBe(stats.stats);
});
});
describe("changes the location token", function() {
beforeEach(inject(function($compile, $rootScope, $q, $injector, _$timeout_) {
$scope = $rootScope;
$timeout = _$timeout_;
q = $q;
element = angular.element('<change-location-token></change-location-token>');
$compile(element)($rootScope);
$scope.$apply();
}));
it("should list the locations", function() {
spyOn(window, 'confirm').andReturn(true);
spyOn(locationFactory, 'update').andCallThrough();
element.isolateScope().changeToken();
expect(element.isolateScope().loading).toBe(true);
var loc = { api_token: 123 };
deferred.resolve(loc);
$scope.$apply();
expect(element.isolateScope().loading).toBe(undefined);
expect(element.isolateScope().token).toBe(123);
});
});
});
describe('locations form success', function () {
var $scope;
var element;
beforeEach(module('myApp'));
beforeEach(inject(function($compile, $rootScope) {
$scope = $rootScope;
element = angular.element("<form-success></form-success>");
$compile(element)($rootScope)
}));
it("should add success message to the page", function() {
expect(element.html()).toBe('<p class="text-success"><b>Settings Updated <i class="fa fa-check fa-fw"></i></b></p>');
});
});
describe('locations network icon', function () {
var $scope;
var element;
beforeEach(module('myApp'));
beforeEach(inject(function($compile, $rootScope) {
$scope = $rootScope;
element = angular.element("<locations-network-icon name='polkaspots'></locations-network-icon>");
$compile(element)($rootScope)
}))
it("should add a link to the advanced settings", function() {
expect(element.html()).toBe('<img src="https://d3e9l1phmgx8f2.cloudfront.net/images/icons/logo-mini-{{ network_name }}.svg" width="{{ icon_size }}">');
});
});
describe('reset dem logins homeboys!', function () {
var $scope;
var element;
var locationFactory;
var q;
var deferred;
beforeEach(module('myApp', function($provide) {
locationFactory = {
reset_layouts: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
beforeEach(inject(function($compile, $rootScope, $q) {
$scope = $rootScope;
q = $q;
$scope.location = {
}
element = angular.element('<div reset-layouts><p>RS</p></div>');
$compile(element)($rootScope)
}))
it("should reset the login pages", function() {
spyOn(locationFactory, 'reset_layouts').andCallThrough()
element.find("p").click()
expect($scope.location.state).toBe('processing')
deferred.resolve({slug: 123, is_monitored: true});
$scope.$apply()
expect(locationFactory.reset_layouts).toHaveBeenCalled();
expect($scope.location.state).toBe('resetting')
});
it("should not reset the login pages", function() {
spyOn(locationFactory, 'reset_layouts').andCallThrough()
element.find("p").click()
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect(locationFactory.reset_layouts).toHaveBeenCalled();
expect($scope.location.state).toBe('failed')
});
});
describe('create location tests', function () {
var $scope;
var element;
var locationFactory;
var q;
var $location;
var deferred;
var $httpBackend;
beforeEach(module('myApp', function($provide) {
locationFactory = {
save: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
// beforeEach(module('components/locations/new/form.html')); // The external template file referenced by templateUrl
beforeEach(inject(function($compile, $rootScope, $q, _$location_, $injector) {
$httpBackend = $injector.get('$httpBackend');
$httpBackend.whenGET('template/tooltip/tooltip-popup.html').respond("");
$scope = $rootScope;
$location = _$location_;
q = $q;
$scope.location = {}
$scope.box = {};
element = angular.element('<new-location-form></new-location-form>');
$compile(element)($rootScope)
element.scope().$apply();
}))
it("should put form on page and fill in correct fields with valid data", function() {
spyOn(locationFactory, 'save').andCallThrough()
var name = "Billys Location";
var address = "1 Long Road";
var cont;
$scope.loading = false;
cont = element.find('input[name*="location_name"]').controller('ngModel');
cont.$setViewValue(name);
// expect($scope.myForm.$pristine).toBe (false);
// expect($scope.myForm.$invalid).toBe (true);
expect(element.isolateScope().location.location_name).toBe(name);
cont = element.find('input[name*="location_address"]').controller('ngModel');
cont.$setViewValue(address);
expect(element.isolateScope().location.location_address).toBe(address)
// expect($scope.myForm.$invalid).toBe (false);
// // element.find(':button').click()
// // Chrome cant click //
element.isolateScope().locationSave(element.isolateScope().location);
expect(element.isolateScope().location.creating).toBe(true);
deferred.resolve({slug: 123, is_monitored: true});
$scope.$apply()
expect($location.path()).toBe('/locations/123')
});
it("should put form on page and fill in correct fields with valid data but get 422 from CT", function() {
spyOn(locationFactory, 'save').andCallThrough();
var name = "Billys Location";
var address = "1 Long Road";
$scope.loading = false;
var cont = element.find('input[name*="location_name"]').controller('ngModel');
cont.$setViewValue(name);
var cont = element.find('input[name*="location_address"]').controller('ngModel');
cont.$setViewValue(address);
// element.find(':button').click()
// Chrome cant click //
element.isolateScope().locationSave(element.isolateScope().location);
expect(element.isolateScope().location.creating).toBe(true);
expect(locationFactory.save).toHaveBeenCalled();
deferred.reject({data: { message: [{ name: 'failed, mother fucker'}]}});
$scope.$apply();
expect(element.isolateScope().errors.length).toBe(1)
expect(element.isolateScope().location.creating).toBe(undefined)
// expect(element.isolateScope().myForm.$pristine).toBe (true);
});
it("should put form on page and fill in correct fields with valid data and add the ap_mac to the params too", function() {
spyOn(locationFactory, 'save').andCallThrough()
var name = "Billys Location";
var address = "1 Long Road";
window.localStorage.setItem("ap_mac", "macaddy");
element.isolateScope().loading = false;
var cont = element.find('input[name*="location_name"]').controller('ngModel');
cont.$setViewValue(name);
var cont = element.find('input[name*="location_address"]').controller('ngModel');
cont.$setViewValue(address);
// element.find(':button').click()
// Chrome cant click //
element.isolateScope().locationSave(element.isolateScope().location);
expect(locationFactory.save).toHaveBeenCalled();
deferred.resolve({slug: 123, is_monitored: true});
$scope.$apply()
expect($location.path()).toBe('/locations/123')
expect(window.localStorage.ap_mac).toBe(undefined);
});
});
describe('location creation shit, redirect and display the loading page then go to ppopup after sockets', function () {
var $scope;
var element;
var locationFactory;
var q;
var $location;
var deferred;
var newLocationModal;
beforeEach(module('myApp', function($provide) {
locationFactory = {
query: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
beforeEach(module('components/locations/show/attr-generated.html'));
beforeEach(inject(function($compile, $rootScope, $q, _$location_) {
$scope = $rootScope;
q = $q;
$location = _$location_;
$scope.box = {}
$scope.location = {}
element = angular.element('<new-location-creating></new-location-creating>');
$compile(element)($rootScope)
element.scope().$apply();
$scope.newLocationModal = function() {
return true;
};
}))
it("should finalise the location and display home page", function() {
spyOn($scope, 'newLocationModal').andCallThrough();
$scope.location.attr_generated = false;
expect($scope.location.attr_generated).toBe(false)
expect(element.find('#finalising-location').hasClass('ng-show')).toBe(false);
$scope.locationFinalised()
$scope.$apply();
expect($scope.location.attr_generated).toBe(true)
expect(element.find('#finalising-location').hasClass('ng-hide')).toBe(true);
})
});
describe('goes and grabs the location stats', function () {
var $scope;
var element;
var locationFactory;
var boxFactory;
var q;
var $httpBackend;
var $location;
var deferred;
var $compile;
var $cookies;
beforeEach(module('myApp', function($provide) {
locationFactory = {
stats: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
boxFactory = {
update: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Box", boxFactory);
$provide.value("Location", locationFactory);
}));
beforeEach(module('components/locations/show/location-dash.html'));
beforeEach(module('components/locations/show/location-dash-table.html'));
beforeEach(inject(function($compile, $rootScope, $q, _$location_, $injector, _$cookies_) {
var eventMethods = [
'Ga',
'Ke',
'Nj',
'Og',
'T',
'addDomListener',
'addDomListenerOnce',
'addListener',
'addListenerOnce',
'bind',
'clearInstanceListeners',
'clearListeners',
'forward',
'removeListener',
'trigger'
]
var latLngMethods = [
'b',
'contains',
'equals',
'extend',
'getCenter',
'getNorthEast',
'getSouthWest',
'intersects',
'isEmpty',
'toSpan',
'toString',
'toUrlValue',
'union'
]
var mapClasses = [
'BicyclingLayer',
'Circle',
'DirectionsRenderer',
'DirectionsService',
'DistanceMatrixService',
'ElevationService',
'FusionTablesLayer',
'Geocoder',
'GroundOverlay',
'ImageMapType',
'InfoWindow',
'KmlLayer',
'LatLng',
'MVCArray',
'MVCObject',
'MapTypeRegistry',
'Marker',
'MarkerImage',
'MaxZoomService',
'OverlayView',
'Point',
'Polygon',
'Polyline',
'Rectangle',
'Size',
'StreetViewPanorama',
'StreetViewService',
'StyledMapType',
'TrafficLayer',
'TransitLayer',
'__gjsload__'
]
window.google = {
maps: {
event: jasmine.createSpyObj('google.maps.event', eventMethods),
LatLng: function() {
return jasmine.createSpyObj('google.maps.LatLng', latLngMethods);
},
LatLngBounds: function() {
return jasmine.createSpyObj('google.maps.LatLngBounds', latLngMethods);
},
InfoWindow: function() {
return jasmine.createSpyObj('google.maps.InfoWindow', mapClasses);
},
}
};
$httpBackend = $injector.get('$httpBackend');
$httpBackend.when('GET', 'template/tooltip/tooltip-html-unsafe-popup.html')
.respond(200, [{location_name: 'derby-council'}]);
$httpBackend.whenGET('template/tooltip/tooltip-popup.html').respond("");
$scope = $rootScope;
$compile = $compile;
q = $q;
$cookies = _$cookies_;
$location = _$location_;
$scope.location = {setup_fin: false, access_fin: false}
element = angular.element('<location-stats></location-stats>');
$compile(element)($rootScope)
element.scope().$apply();
}))
it("add the stats to the page", function() {
spyOn(locationFactory, 'stats').andCallThrough()
expect(element.isolateScope().loading_stats).toBe(true)
var results = {boxes: [{id: 123}], location: {name: 123}, summary: {a: 456}, timeline: {aa: 123}, _stats: {}}
deferred.resolve(results);
$scope.$apply()
expect(element.isolateScope().loading_stats).toBe(undefined)
expect(element.isolateScope()._stats).toBe(results._stats)
expect(element.isolateScope().boxes).toBe(results.boxes)
expect(element.isolateScope().location).toBe(results.location)
expect(element.isolateScope().timeline).toBe(results.timeline)
expect(element.isolateScope().quantity).toBe(5)
expect(element.isolateScope().predicate).toBe('-sessions')
})
it("should swap between the map and the stats and set a cookie", function() {
spyOn(locationFactory, 'stats').andCallThrough()
expect(element.isolateScope().loading_stats).toBe(true)
var results = {boxes: [{id: 123}], location: {name: 123}, summary: {a: 456}, timeline: {aa: 123}, _stats: {}}
deferred.resolve(results);
$scope.$apply()
expect(element.isolateScope().loading_stats).toBe(undefined)
expect(element.isolateScope().load_map).toEqual(true);
expect($cookies.get('ctLocView')).toEqual(undefined)
element.isolateScope().switchView();
var c = $cookies.get('ctLocView')
expect(JSON.parse(c).view).toEqual('stats')
element.isolateScope().switchView();
var c = $cookies.get('ctLocView')
expect(JSON.parse(c).view).toEqual('map')
});
it("should hide the panel and set a cookie", function() {
$cookies.remove('ctLocView')
expect($cookies.get('ctLocView')).toEqual(undefined)
element.isolateScope().togglePanel();
expect(element.isolateScope().hidePanel).toEqual(true)
var c = $cookies.get('ctLocView')
expect(JSON.parse(c).panel).toEqual('closed')
element.isolateScope().togglePanel();
expect(element.isolateScope().hidePanel).toEqual(false)
var c = $cookies.get('ctLocView')
expect(JSON.parse(c).panel).toEqual('open')
});
it("should update the nas lat lng", function() {
var vars = {
slug: 123,
lat: 50,
lng: 10,
zoom: 10
}
var opts = {}
spyOn(boxFactory, 'update').andCallThrough()
element.isolateScope().updateCT(opts)
expect(boxFactory.update).toHaveBeenCalled();
});
});
describe('should add the bottom nav banner to page', function () {
var $scope;
var element;
var locationFactory;
var q;
var $location;
var deferred;
beforeEach(module('myApp', function($provide) {
locationFactory = {
stats: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
beforeEach(module('components/locations/layouts/location-banner.html'));
beforeEach(inject(function($compile, $rootScope, $q, _$location_) {
$scope = $rootScope;
q = $q;
$location = _$location_;
$scope.location = {setup_fin: false, access_fin: false, archived: true}
element = angular.element('<location-banner></location-banner>');
$compile(element)($rootScope)
element.scope().$apply();
}))
it("add the banner to the page", function() {
var html = element.html()
expect(html == undefined).toBe(false)
})
it("add the alert css to the banner when archived", function() {
expect(element.find('#location-banner').hasClass('bottom-nav-archived')).toBe(true);
})
});
describe('display the number of boxes online and alerting', function () {
var $scope;
var element;
var locationFactory;
var q;
var $location;
var compile;
var deferred;
beforeEach(module('myApp', function($provide) {
locationFactory = {
stats: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
beforeEach(inject(function($compile, $rootScope, $q, _$location_) {
$scope = $rootScope;
compile = $compile;
q = $q;
$location = _$location_;
$scope.location = {setup_fin: false, access_fin: false, archived: true}
}))
it("add the boxes with probls to the page", function() {
element = angular.element('<location-boxes-online></location-boxes-online>');
compile(element)($scope)
element.scope().$apply();
expect(element.find('#location-box-states').hasClass('ng-show')).toBe(false)
$scope.location.stats = {
boxes: [{state: 'Online'}]
}
compile(element)($scope)
element.scope().$apply();
expect(element.find('#location-box-states').hasClass('ng-hide')).toBe(false)
expect($scope.location.boxes_online).toBe (1)
expect($scope.location.boxes_alerting).toBe (0)
})
});
describe('location admins', function () {
var $scope;
var element;
var locationFactory;
var inviteFactory;
var q;
var deferred;
beforeEach(module('components/locations/settings/admin-users.html'));
beforeEach(module('myApp', function($provide) {
inviteFactory = {
destroy: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
};
locationFactory = {
users: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
del_user: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
add_user: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
$provide.value("Invite", inviteFactory);
}));
beforeEach(inject(function($compile, $rootScope, $q) {
$scope = $rootScope;
q = $q;
$scope.location = {}
$scope.location.slug = 123
element = angular.element('<location-admins slug="{{location.slug}}"></location-admins>');
$compile(element)($rootScope)
element.scope().$apply();
}))
describe('location admin users', function () {
it("gets a list of all the admins users", function() {
var admin = { email: 's@ps.com' }
spyOn(locationFactory, 'users').andCallThrough()
expect(element.isolateScope().admins.loading).toBe(true)
deferred.resolve({admin_users: [admin]});
$scope.$apply()
expect(element.isolateScope().admins[0]).toBe(admin)
expect(element.isolateScope().admins.loading).toBe(undefined)
});
it("doesnt get a list of all the admins users", function() {
var admin = { admin_users: { email: 's@ps.com' } }
spyOn(locationFactory, 'users').andCallThrough()
expect(element.isolateScope().admins.loading).toBe(true)
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect(element.isolateScope().admins.loading).toBe(undefined)
expect(element.isolateScope().admins.errors[0]).toBe(123)
});
it("should successfully revoke an invite", function() {
spyOn(window, 'confirm').andReturn(true);
var invite = { password: 123, current_password: 456, slug: 123 };
element.isolateScope().admins = {};
element.isolateScope().admins.invitesV2 = [];
element.isolateScope().admins.invitesV2.push(invite)
element.isolateScope().revokeInvite(0)
expect(element.isolateScope().revoking).toBe(true);
expect(element.isolateScope().admins.invitesV2[0].state).toBe('revoking');
deferred.resolve(invite);
$scope.$apply();
expect(element.isolateScope().admins.invitesV2.length).toBe(0);
expect(element.isolateScope().revoking).toBe(undefined);
})
it("should not successfully revoke an invite", function() {
spyOn(window, 'confirm').andReturn(true);
var invite = { password: 123, current_password: 456, slug: 123, state: 'pending' };
element.isolateScope().admins = {};
element.isolateScope().admins.invitesV2 = [];
element.isolateScope().admins.invitesV2.push(invite)
element.isolateScope().revokeInvite(0)
expect(element.isolateScope().revoking).toBe(true);
expect(element.isolateScope().admins.invitesV2[0].state).toBe('revoking');
deferred.reject({data: { message: 123}});
$scope.$apply();
expect(element.isolateScope().admins.invitesV2[0].state).toBe('pending');
expect(element.isolateScope().revoking).toBe(undefined);
})
it("should successfully revoke an admin", function() {
spyOn(window, 'confirm').andReturn(true);
var invite = { password: 123, current_password: 456, slug: 123 };
element.isolateScope().admins = {};
element.isolateScope().admins.admins = [];
element.isolateScope().admins.admins.push(invite)
element.isolateScope().revokeAdmin(0)
expect(element.isolateScope().revoking).toBe(true);
expect(element.isolateScope().admins.admins[0].state).toBe('revoking');
deferred.resolve(invite);
$scope.$apply();
expect(element.isolateScope().admins.admins.length).toBe(0);
expect(element.isolateScope().revoking).toBe(undefined);
})
});
});
describe('location cloning', function () {
var $scope;
var element;
var locationFactory;
var q;
var deferred;
beforeEach(module('components/locations/settings/clone.html'));
beforeEach(module('myApp', function($provide) {
locationFactory = {
clone: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
beforeEach(inject(function($compile, $rootScope, $q) {
$scope = $rootScope;
q = $q;
$scope.location = {}
$scope.location.slug = 123
element = angular.element("<location-clone></location-clone>");
$compile(element)($rootScope)
element.scope().$apply();
}))
describe('cloning locations', function () {
it("Clones a location to another one", function() {
spyOn(locationFactory, 'clone').andCallThrough()
expect(element.find('#clone-form').hasClass('ng-hide')).toBe(true);
element.find('#clone-location').click();
$scope.$apply();
expect($scope.cloning).toBe(true);
expect(element.find('#clone-form').hasClass('ng-hide')).toBe(false);
// filling in form
var name = "Simons Hut"
var address = "1 Long Road"
var cont = element.find('input[name*="location_name"]').controller('ngModel');
cont.$setViewValue(name);
var cont = element.find('input[name*="address"]').controller('ngModel');
cont.$setViewValue(address);
$scope.myForm.$pristine = false;
$scope.$apply();
expect($scope.clone.location_name).toBe(name)
expect($scope.clone.address).toBe(address)
// Chrome cant click //
// element.find('#clone-process').click();
$scope.clone($scope.clone);
expect($scope.clone.processing).toBe(true)
expect(locationFactory.clone).toHaveBeenCalled();
deferred.resolve();
$scope.$apply()
expect($scope.clone.processing).toBe(undefined)
expect($scope.clone.completed).toBe(true)
});
it("WONT Clones a location to another one", function() {
spyOn(locationFactory, 'clone').andCallThrough()
expect(element.find('#clone-form').hasClass('ng-hide')).toBe(true);
element.find('#clone-location').click();
$scope.$apply();
// filling in form
var name = "Simons Hut"
var address = "1 Long Road"
var cont = element.find('input[name*="location_name"]').controller('ngModel');
cont.$setViewValue(name);
var cont = element.find('input[name*="address"]').controller('ngModel');
cont.$setViewValue(address);
$scope.$apply();
// Chrome cant click //
// element.find('#clone-process').click();
$scope.clone($scope.clone);
deferred.reject({data: [123]});
$scope.$apply()
expect($scope.clone.processing).toBe(undefined)
expect($scope.clone.errors[0]).toBe(123)
});
});
});
describe('location destroy & archive', function () {
var $scope;
var element;
var locationFactory;
var q;
var deferred;
beforeEach(module('components/locations/settings/danger.html'));
beforeEach(module('myApp', function($provide) {
locationFactory = {
destroy: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
archive: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
unarchive: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
var $location;
beforeEach(inject(function($compile, $rootScope, $q, _$location_) {
$scope = $rootScope;
$location = _$location_;
q = $q;
$scope.location = {}
$scope.location.slug = 123
$scope.location.archived = false;
$scope.location.location_name = "Simon"
element = angular.element("<location-danger></location-danger>");
$compile(element)($rootScope)
element.scope().$apply();
}))
describe('archiving locations', function () {
it("archives a location", function() {
spyOn(locationFactory, 'archive').andCallThrough()
expect($scope.location.archived).toBe(false)
element.find('#archive').click()
$scope.$apply
expect($scope.location.archiving).toBe(true)
expect(locationFactory.archive).toHaveBeenCalled();
deferred.resolve();
$scope.$apply()
expect($scope.location.archiving).toBe(undefined)
expect($scope.location.archived).toBe(true)
});
it("fails to archive a location", function() {
spyOn(locationFactory, 'archive').andCallThrough()
expect($scope.location.archived).toBe(false)
element.find('#archive').click()
$scope.$apply
expect($scope.location.archiving).toBe(true)
expect(locationFactory.archive).toHaveBeenCalled();
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect($scope.location.archiving).toBe(undefined)
expect($scope.location.errors[0]).toBe(123)
});
it("unarchives a location", function() {
$scope.location.archived = true
spyOn(locationFactory, 'unarchive').andCallThrough()
expect($scope.location.archived).toBe(true)
element.find('#unarchive').click()
$scope.$apply
expect($scope.location.archiving).toBe(true)
expect(locationFactory.unarchive).toHaveBeenCalled();
deferred.resolve();
$scope.$apply()
expect($scope.location.archiving).toBe(undefined)
expect($scope.location.archived).toBe(false)
});
it("fails to unarchive a location", function() {
spyOn(locationFactory, 'unarchive').andCallThrough()
expect($scope.location.archived).toBe(false)
element.find('#unarchive').click()
$scope.$apply
expect($scope.location.archiving).toBe(true)
expect(locationFactory.unarchive).toHaveBeenCalled();
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect($scope.location.archiving).toBe(undefined)
expect($scope.location.errors[0]).toBe(123)
});
it("should delete a location", function() {
spyOn(locationFactory, 'destroy').andCallThrough()
expect(element.find('#delete').hasClass('ng-hide')).toBe(true);
$scope.location.can_delete = true;
$scope.$apply()
expect(element.find('#delete').hasClass('ng-hide')).toBe(false);
element.find('#delete').click()
$scope.$apply()
expect($scope.deleting).toBe(true)
// Location name != delete name //
expect(element.find('#delete-process').hasClass('ng-hide')).toBe(true);
var cont = element.find('input[name*="delete_name"]').controller('ngModel');
$scope.delete_name = $scope.location.location_name
$scope.$apply()
expect(element.find('#delete-process').hasClass('ng-hide')).toBe(false);
element.find('#delete-process').click()
$scope.$apply()
expect($scope.location.destroying).toBe(true)
deferred.resolve();
$scope.$apply()
// It's done //
expect($location.path()).toBe('/locations')
expect($scope.notifications).toBe('Location Deleted Successfully.')
});
it("should NOT delete a location", function() {
$scope.deleting = true;
spyOn(locationFactory, 'destroy').andCallThrough()
$scope.destroy(location.slug)
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect($scope.location.destroyin).toBe(undefined)
expect($scope.deleting).toBe(undefined)
expect($scope.location.errors[0]).toBe(123)
});
});
});
describe('location events', function () {
var $scope;
var element;
var eventFactory;
var commandFactory;
var locationFactory;
var q;
var deferred;
beforeEach(module('components/locations/events/events.html'));
beforeEach(module('myApp', function($provide) {
commandFactory = {
query: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
eventFactory = {
save: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
destroy: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
},
locationFactory = {
events: function () {
deferred = q.defer();
return {$promise: deferred.promise};
},
}
$provide.value("Location", locationFactory);
$provide.value("LocationEvent", eventFactory);
$provide.value("Command", commandFactory);
}));
var $location;
beforeEach(inject(function($compile, $rootScope, $q, _$location_) {
$scope = $rootScope;
$location = _$location_;
q = $q;
$scope.location = {}
$scope.location.slug = 123
element = angular.element("<location-events></location-events>");
$compile(element)($rootScope)
element.scope().$apply();
}))
describe('creating location events', function () {
it("lists the events for a location", function() {
spyOn(locationFactory, 'events').andCallThrough()
var event = { event_name: 'reboot'}
deferred.resolve([event]);
$scope.$apply()
expect($scope.events[0]).toBe(event);
});
it("gets the payloads and creates an event", function() {
spyOn(eventFactory, 'save').andCallThrough()
spyOn(locationFactory, 'events').andCallThrough()
spyOn(commandFactory, 'query').andCallThrough()
var payload = {id: 123, payload_name: "reboot"}
var event = { event_name: 'reboot'}
deferred.resolve([event]);
$scope.$apply()
expect($scope.events[0]).toBe(event);
expect(element.find('#create-events').hasClass('ng-hide')).toBe(true);
element.find('#event-new').click()
$scope.$apply()
expect($scope.loading_payloads).toBe(true)
expect($scope.event_creating).toBe(true)
expect(element.find('#create-events').hasClass('ng-hide')).toBe(true);
deferred.resolve([payload]);
$scope.$apply()
expect($scope.payloads[0]).toBe(payload)
expect($scope.event).not.toBe(undefined)
expect($scope.loading_payloads).toBe(undefined)
$scope.event.payload_id = payload.id
$scope.$apply()
expect(element.find('#create-events').hasClass('ng-hide')).toBe(false);
// // create event //
// element.find('submit').click()
// element.find('#create-event').click();
$scope.createEvent()
$scope.$apply()
expect($scope.event.creating).toBe(true);
var event = {active: true, description: 'reboot', event_frequency: "Daily", event_hour: "14:00", unique_id: 999 }
deferred.resolve(event);
$scope.$apply()
expect(eventFactory.save).toHaveBeenCalled();
expect($scope.event_creating).toBe(undefined)
expect($scope.event).toBe(undefined)
});
it("WONT create an event - 422", function() {
spyOn(eventFactory, 'save').andCallThrough()
spyOn(locationFactory, 'events').andCallThrough()
spyOn(commandFactory, 'query').andCallThrough()
var payload = {id: 123, payload_name: "reboot"}
var event = { event_name: 'reboot'}
deferred.resolve([event]);
$scope.$apply()
element.find('#event-new').click()
$scope.$apply()
deferred.resolve([payload]);
$scope.$apply()
$scope.event.payload_id = payload.id
$scope.$apply()
// element.find('submit').click()
// element.find('#create-event').click();
$scope.createEvent()
$scope.$apply()
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect(eventFactory.save).toHaveBeenCalled();
expect($scope.event_creating).toBe(undefined)
expect($scope.events.errors[0]).toBe(123)
});
it("will delete an event from the events", function() {
spyOn(eventFactory, 'destroy').andCallThrough()
var event = {active: true, description: 'reboot', event_frequency: "Daily", event_hour: "14:00", unique_id: 999 }
$scope.events = []
$scope.events.push(event)
$scope.$apply()
$scope.deleteEvent(0)
$scope.$apply()
deferred.resolve();
$scope.$apply()
expect($scope.events.length).toBe(0);
expect(eventFactory.destroy).toHaveBeenCalled();
});
it("will fail to delete an event from the events", function() {
spyOn(eventFactory, 'destroy').andCallThrough()
var event = {active: true, description: 'reboot', event_frequency: "Daily", event_hour: "14:00", unique_id: 999 }
$scope.events = []
$scope.events.push(event)
$scope.$apply()
// element.find('#event_destroy_0').click();
$scope.deleteEvent(0)
$scope.$apply()
deferred.reject({data: {errors: { base: [123]}}});
$scope.$apply()
expect(eventFactory.destroy).toHaveBeenCalled();
expect($scope.events.errors[0]).toBe(123)
expect($scope.events[0].deleting).toBe(undefined);
});
});
});
describe('location transfer', function () {
var $scope;
var element;
var locationFactory;
var q;
var $location;
var deferred;
var newLocationModal;
beforeEach(module('myApp', function($provide) {
locationFactory = {
transfer: function () {
deferred = q.defer();
return {$promise: deferred.promise};
}
}
$provide.value("Location", locationFactory);
}));
// beforeEach(module('components/locations/show/attr-generated.html'));
beforeEach(inject(function($compile, $rootScope, $q, _$location_) {
$scope = $rootScope;
q = $q;
$location = _$location_;
$scope.box = {}
$scope.location = {slug: 123}
element = angular.element('<location-transfer state="location.state" slug="{{ location.slug }}"></location-transfer>');
$compile(element)($rootScope)
element.scope().$apply();
$scope.newLocationModal = function() {
return true;
};
}))
it("should transfer the location", function() {
spyOn(window, 'confirm').andReturn(true);
spyOn(locationFactory, 'transfer').andCallThrough()
element.isolateScope().transfer('abc')
$scope.$apply()
expect($scope.location.state).toBe('processing')
deferred.resolve()
$scope.$apply()
expect($scope.location.state).toBe('tfer')
})
it("should fail to transfer the location", function() {
spyOn(window, 'confirm').andReturn(true);
spyOn(locationFactory, 'transfer').andCallThrough()
element.isolateScope().transfer('abc')
$scope.$apply()
expect($scope.location.state).toBe('processing')
deferred.reject({data: { message: ['123'] }})
$scope.$apply()
expect($scope.location.state).toBe('failed')
expect(element.isolateScope().errors).toBe('123')
})
});
|
const artists = ['Picasso', 'Kahlo', 'Matisse', 'Utamaro'];
artists.forEach(artist => {
console.log(artist + ' is one of my favorite artists.');
});
/* this will print out
Picasso is one of my favorite artists.
Kahlo is one of my favorite artists.
Matisse is one of my favorite artists.
Utamaro is one of my favorite artists.
*/
// this is my attempt
const fruits = ['mango', 'papaya', 'pineapple', 'apple'];
// Iterate over fruits below
fruits.forEach(fruit => {
console.log('I want to eat a '+ fruit + '.')
});
/* this will print out
I want to eat a mango.
I want to eat a papaya.
I want to eat a pineapple.
I want to eat a apple.
*/
|
"use strict";
const { quotes } = require("./quotes");
const express = require("express");
const app = express();
const port = 3000;
app.use(express.json());
app.get("/", (req, res) => {
res.json(quotes[Math.floor(Math.random() * quotes.length)]);
});
app.post("/", (req, res) => {
console.log("req.body", req.body);
let newQuote = req.body[0];
quotes.push(newQuote);
res.json({
msg: "added new quote",
quotes: quotes,
quote: newQuote,
});
});
app.listen(port, () => {
console.log("Your server has started on port:", port);
});
|
const mocha = require('mocha');
const chai = require('chai');
const Queue = require('../src/queue.js');
const should = chai.should();
describe("queue", function() {
let queue;
beforeEach(function() {
queue = new Queue();
});
it("should enqueue to an empty queue", function() {
queue.enqueue(10);
queue.peek().should.equal(10);
});
it("should enqueue to an existing queue", function() {
queue.enqueue(10);
queue.enqueue(12);
queue.peek().should.equal(10); //should still be the first item queued
});
it("should dequeue from a list with just one item", function() {
queue.enqueue(10);
queue.dequeue().should.equal(10);
});
it("should get null when dequeueing from an empty queue", function() {
should.not.exist(queue.dequeue());
});
it("should enqueue then dequeue correctly", function() {
queue.enqueue(10);
queue.enqueue(12);
queue.dequeue().should.equal(10);
queue.dequeue().should.equal(12);
should.not.exist(queue.dequeue());
});
it("should enqueue then dequeue mixed times", function() {
queue.enqueue(10);
queue.enqueue(12);
queue.dequeue().should.equal(10);
queue.enqueue(40);
queue.enqueue(22);
queue.dequeue().should.equal(12);
queue.dequeue().should.equal(40);
queue.enqueue("abcd");
queue.dequeue().should.equal(22);
queue.dequeue().should.equal("abcd");
should.not.exist(queue.dequeue());
queue.enqueue(["a", "b", "c"]);
queue.enqueue(14.229);
queue.dequeue().should.eql(["a", "b", "c"]);
queue.enqueue(22);
queue.dequeue().should.equal(14.229);
queue.dequeue().should.equal(22);
});
it("should get correct length from an empty queue", function() {
queue.length().should.equal(0);
});
it("should get correct length after enqueuing once", function() {
queue.enqueue(10);
queue.length().should.equal(1);
});
it("should get correct length after enqueuing twice", function() {
queue.enqueue(10);
queue.enqueue(12);
queue.length().should.equal(2);
});
it("should get correct length after enqueuing and dequeuing once", function() {
queue.enqueue(10);
queue.dequeue();
queue.length().should.equal(0);
});
it("should get correct length after enqueuing twice and dequeuing once", function() {
queue.enqueue(10);
queue.enqueue(12);
queue.dequeue();
queue.length().should.equal(1);
});
});
|
/// <reference path="../include.d.ts" />
var rp = require('request-promise');
var Promise = require('bluebird');
var cheerio = require('cheerio');
var ew = require('node-xlsx');
var fs = require('fs');
var savePic = require('../imageProcessor').savePic;
var columns = ['Product Name', 'Product Category', 'Product image name', 'Product image link', 'Product description', 'Product specifications'];
var sheet = {name: 'result', data: []};
sheet.data.push(columns);
var rows = sheet.data;
var done = fs.readFileSync('done.txt').toString().split('\r\n');
var domain = 'http://www.apc.com';
var timeout = 1500;
var base = 'http://www.apc.com/shop/pk/en/search?Nrpp=50&Dy=1&No=';
// var proxy = 'http://test2.qypac.net:30243';
var proxy = '';
/** compose url by yourself */
var urls = [];
for (var i = 0; i < 5950; i += 50) {
(function (k) {
if (k == 0) {
urls.push(base);
} else {
urls.push(base + k);
}
}(i));
}
// console.log(Date.now());
// urls = urls.slice(0, 1);
/** function to print excel */
var printToExcel = function () {
var buffer = ew.build([sheet]);
fs.writeFileSync('apc' + Date.now() + '.xlsx', buffer);
console.log('Excel Printed');
}
process.on('exit', function () {
printToExcel();
});
process.on('error', function () {
printToExcel();
});
Promise.map(urls, singleRequest, {concurrency: 3}).then(printToExcel);
/** Single Req */
function singleRequest(url) {
console.log('Start working on ' + url);
var options = {
method: 'GET',
uri: url,
timeout: 30000,
proxy: proxy,
gzip: true,
headers: {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, sdch",
"Accept-Language": "en-US,en;q=0.8",
"Cache-Control": "max-age=0",
"Host": "www.apc.com",
"Proxy-Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
},
followRedirect: true
};
return rp(options)
.then(function (body) {
var $ = cheerio.load(body);
//process html via cheerio
// fs.writeFileSync('body.html', body);
var products = $('.list-view');
var productsJson = [];
products.each(function loopsItems(index, element) {
var productDetailPage = domain + $(this).find('.details-holder a').attr('href');
fs.appendFileSync('collected.txt', productDetailPage + '\r\n');
var productName = $(this).find('.details-holder a').text();
var description = $(this).find('.details-holder p').text().trim() + '\r\n';
var itemJson = {
link: productDetailPage,
name: productName,
description: description
}
productsJson.push(itemJson);
});
return new Promise(function (res, rej) {
setTimeout(function () {
res(productsJson);
}, timeout);
});
}).then(function (productsJson) {
// productsJson = productsJson.slice(0, 1);
console.log(productsJson.length + ' items were gathered');
return Promise.map(productsJson, function fetchCateAndImage(item) {
var link = item.link;
// link = 'http://www.apc.com/shop/pk/en/products/APC-Replacement-Battery-Cartridge-1/P-RBC1?isCurrentSite=true';
if (done.indexOf(link) !== -1) {
console.log(link + ' already done, passed');
return 0;
}
console.log('Start processing details page ' + item.link);
var options = {
method: 'GET',
uri: link,
timeout: 30000,
proxy: proxy,
gzip: true,
headers: {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, sdch",
"Accept-Language": "en-US,en;q=0.8",
"Cache-Control": "max-age=0",
"Host": "www.apc.com",
"Proxy-Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
}
};
return rp(options).then(function (body) {
var $ = cheerio.load(body);
// fs.writeFileSync('body.html', body);
// fs.writeFileSync('body.html', body);
var categoryString = '';
$('.breadcrumb li').each(function (index, element) {
if (index > 0) {
var cate = $(this).text().trim();
categoryString += cate + ' > ';
}
});
/** process decription */
var descriptionToAppend = '';
var descriptionPanel = $('#productoverview');
var tables = descriptionPanel.find('.table-odd');
tables.each(function(index, element) {
var title = descriptionPanel.find('h5').eq(index).text().trim();
descriptionToAppend+= title + '\r\n\r\n';
$(this).find('li').each(function(index, element){
var key = $(this).find('div').eq(0).text().trim();
var value = $(this).find('div').eq(1).text().trim();
descriptionToAppend += key + '\r\n';
descriptionToAppend += value + '\r\n\r\n';
});
});
item.description += descriptionToAppend;
/** process specs */
// var spec = $('#techspecs').text().trim();
var specs = [];
var kvPairs = $('#techspecs .col-md-12');
kvPairs.each(function(index, element) {
var key = $(this).find('.col-md-3').text();
var value = $(this).text().replace(key, '').trim();
specs.push(key + '= ' + value);
// if(index > 0) {
// columns.push('Product specifications');
// }
});
item.spec = specs;
item['category'] = categoryString;
var imageUrl = 'http:' + $('.contentLeft .product img').attr('src');
if ($('.contentLeft .product img').length == 0) {
imageUrl = 'http:' + $('.contentLeft #DataDisplay').attr('src');
}
var imageName = imageUrl.split('/')[imageUrl.split('/').length - 1];
item['image'] = imageName;
item['imageLink'] = imageUrl;
rows.push([item.name, item.category, item.image, item.imageLink, item.description].concat(item.spec));
fs.appendFileSync('done.txt', link + '\r\n');
if (rows.length % 1000 == 0) {
printToExcel();
}
console.log(item.name + ' was done');
if (fs.existsSync('images/' + imageName)) {
console.log('Image already fetched, pass');
return 0;
} else {
return savePic(imageUrl, 'images/' + imageName);
}
}).catch(function (err) {
fs.appendFileSync('Error.txt', item.link + ' - Inner error ' + err.message + '\r\n');
});
}, {concurrency: 10}).then(function () {
productsJson = null;
});
}).catch(function (err) {
//handle errors
console.log(err.message);
fs.appendFileSync('Error.txt', url + ' - ' + err.message + '\r\n');
});
}
|
import React from "react";
import Axios from "axios";
import Movie from "./Movie";
class Rank extends React.Component {
state = {
isLoading: true,
weeklyBoxOfficeList: [],
date: "",
totalAudi: "", //누적관객수 -> 예매율 계산 이거 Movie.js에서 불러내서 계산
};
handleChange = (e) => {
//input text창에 데이터를 입력 받도록
this.setState({
date: e.target.value,
});
};
handleKeyPress = (e) => {
// 엔터 누르면 값 입력 받도록하는 함수
this.state.date.slice(0, 7);
if (this.state.date.length === 8) {
this.inputSearchDate();
if (this.state.date) {
this.getmovie();
}
}
};
inputSearchDate = (e) => {
this.state.date.slice(0, 7); // 년도 숫자가 초과될 경우 8글자로 자른다.
if (this.state.date) {
this.getmovie();
}
};
getmovie = async () => {
const movieURL =
"https://www.kobis.or.kr/kobisopenapi/webservice/rest/boxoffice/searchWeeklyBoxOfficeList.json?key=26f8c1b0fd8afe36ceb0eff48b468b5b&targetDt=";
const finalURL = movieURL + this.state.date;
const {
data: {
boxOfficeResult: { weeklyBoxOfficeList },
},
} = await Axios.get(finalURL);
let totalAudi = 0;
for (let i = 0; i < weeklyBoxOfficeList.length; i++) {
totalAudi = totalAudi + parseInt(weeklyBoxOfficeList[i].audiCnt);
}
this.setState({ weeklyBoxOfficeList, isLoading: false, totalAudi });
/*const requestURL =
//http://www.kobis.or.kr/kobisopenapi/webservice/rest/movie/searchMovieList.json?key=26f8c1b0fd8afe36ceb0eff48b468b5b&targetDt=20120101"
const movieInfo = await fetch(requestURL);
*/
};
render() {
const { isLoading, weeklyBoxOfficeList, totalAudi } = this.state;
return (
<section className="container">
{isLoading ? (
<div className="homepage">
<div className="homepage__title">
<span>Display Weekly Boxoffice Ranking</span>
</div>
<div className="homepage__loader">
<h3>Input SearchDate </h3>
<input
className="loader__serchbar"
placeholder="Serch Date YYYYMMDD"
value={this.state.date}
onChange={this.handleChange}
onKeyPress={this.handleKeyPress}
/>
</div>
</div>
) : (
<div className="movies">
<div className="movie__title">
<div className="movie__title_font movie__rank">Rnaking</div>
<div className="movie__title_font movie__name">영화 제목</div>
<div className="movie__title_font movie__date">개봉 날짜</div>
<div className="movie__title_font movie__rate">예매율</div>
<div className="movie__title_font movie__cnt">누적 관객 수</div>
</div>
{weeklyBoxOfficeList.map((shit) => (
<Movie
key={shit.movieCd}
id={shit.movieCd}
rank={shit.rank}
movieNm={shit.movieNm}
openDt={shit.openDt}
audiCnt={((shit.audiCnt / totalAudi) * 100).toFixed(1)}
audiAcc={shit.audiAcc}
/>
))}
</div>
)}
</section>
);
}
}
export default Rank;
|
var searchData=
[
['entitycount',['EntityCount',['../class_otter_1_1_scene.html#a9a71fedc59538ee8278d92516855361e',1,'Otter::Scene']]]
];
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.