dependabot/npm_and_yarn/minimist-1.2.6
iotcat 4 years ago
parent d7167453f1
commit 273d104c22
  1. 40
      dist/ushio-footer.js
  2. 2
      dist/ushio-footer.min.js
  3. 2
      dist/ushio-footer.min.js.map
  4. 40
      ushio-footer.js

@ -323,7 +323,7 @@ session.onload(function(){
session.onload(function(){ session.onload(function(){
if(typeof block_aplayer == "undefined" || session.get('aplayer/status') == 'play'){ if(typeof block_aplayer == "undefined" || session.get('aplayer/status') == 'play'){
if(typeof block_aplayer == "undefined" && session.get('aplayer/status') != 'play'){ if(typeof block_aplayer == "undefined" && session.get('aplayer/status') != 'play'){
setTimeout(function(){player_ini();}, 15000); setTimeout(function(){player_ini();}, 25000);
}else{ }else{
player_ini(); player_ini();
} }
@ -579,35 +579,55 @@ var tips = {
info: function(params){ info: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "info"; if(page.tran.getLang() == 'zh'){
params.title = "信息";
}else{
params.title = "info";
}
} }
tipsObj.info(params); tipsObj.info(params);
}, },
warning: function(params){ warning: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "warning"; if(page.tran.getLang() == 'zh'){
params.title = "警告";
}else{
params.title = "warning";
}
} }
tipsObj.warning(params); tipsObj.warning(params);
}, },
success: function(params){ success: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "success"; if(page.tran.getLang() == 'zh'){
params.title = "成功";
}else{
params.title = "success";
}
} }
tipsObj.success(params); tipsObj.success(params);
}, },
error: function(params){ error: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "error"; if(page.tran.getLang() == 'zh'){
params.title = "错误";
}else{
params.title = "error";
}
} }
tipsObj.error(params); tipsObj.error(params);
}, },
question: function(params){ question: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "question"; if(page.tran.getLang() == 'zh'){
params.title = "问题";
}else{
params.title = "question";
}
} }
tipsObj.question(params); tipsObj.question(params);
}, },
@ -618,6 +638,9 @@ var tips = {
if(params.message === undefined){ if(params.message === undefined){
params.message = "No Content!!"; params.message = "No Content!!";
} }
if(params.zindex === undefined){
params.zindex = 9999;
}
if(params.progressBarColor === undefined){ if(params.progressBarColor === undefined){
params.progressBarColor = '#'+('00000'+ (Math.random()*0x1000000<<0).toString(16)).substr(-6); params.progressBarColor = '#'+('00000'+ (Math.random()*0x1000000<<0).toString(16)).substr(-6);
} }
@ -627,6 +650,7 @@ var tips = {
if(params.progressBarEasing === undefined){ if(params.progressBarEasing === undefined){
params.progressBarEasing = 'ease'; params.progressBarEasing = 'ease';
} }
setTimeout(function(){$('.iziToast-wrapper').css('z-index', '9999');}, 300);
} }
} }
@ -710,7 +734,7 @@ page.showUshio = function(){
instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
}, true], }, true],
['<button>'+github+'</button>', function (instance, toast) { ['<button>'+github+'</button>', function (instance, toast) {
window.location.href='https://github.yimian.xyz/iotcat/'+page.proj; window.location.href='https://github.yimian.xyz/'+page.proj;
instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
}, true], }, true],
['<button>'+setting+'</button>', function (instance, toast) { ['<button>'+setting+'</button>', function (instance, toast) {
@ -822,5 +846,5 @@ function drawBrand(){
if(!session.status){ if(!session.status){
session_ajax_ini(); session_ajax_ini();
} }
console.log('\n' + ' %c Ushio v3.4.5 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;'); console.log('\n' + ' %c Ushio v3.4.7 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -323,7 +323,7 @@ session.onload(function(){
session.onload(function(){ session.onload(function(){
if(typeof block_aplayer == "undefined" || session.get('aplayer/status') == 'play'){ if(typeof block_aplayer == "undefined" || session.get('aplayer/status') == 'play'){
if(typeof block_aplayer == "undefined" && session.get('aplayer/status') != 'play'){ if(typeof block_aplayer == "undefined" && session.get('aplayer/status') != 'play'){
setTimeout(function(){player_ini();}, 15000); setTimeout(function(){player_ini();}, 25000);
}else{ }else{
player_ini(); player_ini();
} }
@ -579,35 +579,55 @@ var tips = {
info: function(params){ info: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "info"; if(page.tran.getLang() == 'zh'){
params.title = "信息";
}else{
params.title = "info";
}
} }
tipsObj.info(params); tipsObj.info(params);
}, },
warning: function(params){ warning: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "warning"; if(page.tran.getLang() == 'zh'){
params.title = "警告";
}else{
params.title = "warning";
}
} }
tipsObj.warning(params); tipsObj.warning(params);
}, },
success: function(params){ success: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "success"; if(page.tran.getLang() == 'zh'){
params.title = "成功";
}else{
params.title = "success";
}
} }
tipsObj.success(params); tipsObj.success(params);
}, },
error: function(params){ error: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "error"; if(page.tran.getLang() == 'zh'){
params.title = "错误";
}else{
params.title = "error";
}
} }
tipsObj.error(params); tipsObj.error(params);
}, },
question: function(params){ question: function(params){
tips.checkParams(params); tips.checkParams(params);
if(params.title === undefined){ if(params.title === undefined){
params.title = "question"; if(page.tran.getLang() == 'zh'){
params.title = "问题";
}else{
params.title = "question";
}
} }
tipsObj.question(params); tipsObj.question(params);
}, },
@ -618,6 +638,9 @@ var tips = {
if(params.message === undefined){ if(params.message === undefined){
params.message = "No Content!!"; params.message = "No Content!!";
} }
if(params.zindex === undefined){
params.zindex = 9999;
}
if(params.progressBarColor === undefined){ if(params.progressBarColor === undefined){
params.progressBarColor = '#'+('00000'+ (Math.random()*0x1000000<<0).toString(16)).substr(-6); params.progressBarColor = '#'+('00000'+ (Math.random()*0x1000000<<0).toString(16)).substr(-6);
} }
@ -627,6 +650,7 @@ var tips = {
if(params.progressBarEasing === undefined){ if(params.progressBarEasing === undefined){
params.progressBarEasing = 'ease'; params.progressBarEasing = 'ease';
} }
setTimeout(function(){$('.iziToast-wrapper').css('z-index', '9999');}, 300);
} }
} }
@ -710,7 +734,7 @@ page.showUshio = function(){
instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
}, true], }, true],
['<button>'+github+'</button>', function (instance, toast) { ['<button>'+github+'</button>', function (instance, toast) {
window.location.href='https://github.yimian.xyz/iotcat/'+page.proj; window.location.href='https://github.yimian.xyz/'+page.proj;
instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
}, true], }, true],
['<button>'+setting+'</button>', function (instance, toast) { ['<button>'+setting+'</button>', function (instance, toast) {
@ -822,5 +846,5 @@ function drawBrand(){
if(!session.status){ if(!session.status){
session_ajax_ini(); session_ajax_ini();
} }
console.log('\n' + ' %c Ushio v3.4.5 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;'); console.log('\n' + ' %c Ushio v3.4.7 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
} }
Loading…
Cancel
Save