mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
remove experimental changes
This commit is contained in:
parent
ef2fa4dc2d
commit
c7a4bb5cba
28 changed files with 355 additions and 1453 deletions
|
@ -46,6 +46,11 @@
|
|||
<div><input class="form-control" name="name"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label><div><span><%-lang['Retry Connection']%></span></div>
|
||||
<div><input class="form-control" detail="fatal_max" placeholder="10"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label><div><span><%-lang["Number of Days to keep"]%> <%-lang["Videos"]%></span></div>
|
||||
<div><input class="form-control" detail="max_keep_days" placeholder="Default is global value"></div>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<div>
|
||||
<!-- <a class="btn btn-success edit_all"><%-lang['Edit Selected']%></a>-->
|
||||
<a class="btn btn-danger delete"><%-lang['Delete']%></a>
|
||||
<a class="btn btn-primary save_config"><%-lang['Export']%></a>
|
||||
<a class="btn btn-default import_config"><%-lang['Import']%></a>
|
||||
|
@ -36,113 +35,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--Multi Monitor Manager-->
|
||||
<!--
|
||||
<div class="modal medium fade dark" mid ke id="multi_mon_edit" tabindex="-1" role="dialog" aria-labelledby="multi_mon_editLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="multi_mon_editLabel"><i class="fa fa-clone"></i> <%- lang['Monitors'] %></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table class="table table-striped tableData">
|
||||
<thead></thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
<div>
|
||||
<a class="btn btn-success save"><%-lang['Save']%></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
//multiple monitor editor, multimonitoredit
|
||||
$.multimonedit={
|
||||
e:$('#multi_mon_edit'),
|
||||
|
||||
}
|
||||
|
||||
$.multimonedit.findFieldInDefintion = function(){
|
||||
$define['Monitor Settings']
|
||||
}
|
||||
$.multimonedit.submit = function(){
|
||||
|
||||
}
|
||||
$.multimonedit.refreshMonitors = function(){
|
||||
// $.get('/'+$user.auth_token+'/monitor/'+$user.ke,function(monitors){
|
||||
// $.multimonedit.monitorsList = monitors;
|
||||
// var selectedMonitors = $.multimonedit.selectedList;
|
||||
// $.each(monitors,function(n,monitor){
|
||||
// if(selectedMonitors[monitor.ke+monitor.mid]){
|
||||
// monitor.details = JSON.parse(monitor.details)
|
||||
// }
|
||||
// })
|
||||
// console.log(monitors)
|
||||
// })
|
||||
var tmp = '';
|
||||
var tmpHeader = '<tr>';
|
||||
$.each($.multimonedit.selectedList,function(n,monitor){
|
||||
var details = '';
|
||||
var detailsHeader = '';
|
||||
tmp += '<tr>';
|
||||
monitor.details = JSON.parse(monitor.details)
|
||||
var drawField = function(e){
|
||||
if(!e.attr){
|
||||
e.attr='name'
|
||||
}
|
||||
if(!e.value){
|
||||
e.value=''
|
||||
}
|
||||
return '<td><input class="form-control" '+e.attr+'='+e.name+' value="'+e.value+'" style="width:100px"></td>'
|
||||
}
|
||||
$.each(monitor,function(m,field){
|
||||
console.log(n)
|
||||
var drawHeader = function(mm){
|
||||
if(n === 0){
|
||||
return '<th>'+mm+'</th>'
|
||||
}
|
||||
}
|
||||
if(m === 'ke'){
|
||||
return
|
||||
}
|
||||
if(m === 'details'){
|
||||
$.each(field,function(k,detailField){
|
||||
detailsHeader += drawHeader(k)
|
||||
details += drawField({
|
||||
attr:'detail',
|
||||
name:k,
|
||||
value:detailField
|
||||
})
|
||||
})
|
||||
}else{
|
||||
tmpHeader += drawHeader(m)
|
||||
tmp += drawField({
|
||||
attr:'name',
|
||||
name:m,
|
||||
value:field
|
||||
})
|
||||
}
|
||||
})
|
||||
tmpHeader += detailsHeader;
|
||||
tmp += details;
|
||||
tmp += '</tr>';
|
||||
})
|
||||
tmpHeader += '</tr>';
|
||||
$.multimonedit.e.find('tbody').html(tmp)
|
||||
$.multimonedit.e.find('thead').html(tmpHeader)
|
||||
}
|
||||
$.multimonedit.e.on('shown.bs.modal', function() {
|
||||
$.multimonedit.refreshMonitors()
|
||||
})
|
||||
})
|
||||
</script>-->
|
||||
</div>
|
|
@ -137,7 +137,6 @@
|
|||
<li class="mdl-menu__item" system="jpegToggle"><div><i class="fa fa-file-image-o"></i><div><%- lang['JPEG Mode'] %></div></div></li>
|
||||
<li class="mdl-menu__item" system="switch" switch="monitorOrder" type="text"><div><i class="fa fa-sort"></i><div><%- lang['Order Streams'] %></div></div></li>
|
||||
<li class="mdl-menu__item" system="switch" switch="notifyHide" type="text"><div><i class="fa fa-exclamation-circle"></i><div><%- lang['Hide Notes'] %></div></div></li>
|
||||
<li class="mdl-menu__item" data-toggle="modal" data-target="#migrator"><div><i class="fa fa-clone"></i><div><%- lang['Migrator'] %></div></div></li>
|
||||
<li class="mdl-menu__item logout"><div><i class="fa fa-sign-out"></i><div><%- lang.Logout %></div></div></li>
|
||||
</ul>
|
||||
<div class="mdl-layout-spacer"></div>
|
||||
|
@ -173,7 +172,6 @@
|
|||
<% include blocks/monitoredit.ejs %>
|
||||
<% include blocks/probe.ejs %>
|
||||
<% include blocks/region.ejs %>
|
||||
<% include blocks/migrator.ejs %>
|
||||
<% include blocks/confirm.ejs %>
|
||||
<% if(config.DropboxAppKey){ %>
|
||||
<!--Dropbox Library, Change data-app-key to your app key. -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue