diff --git a/INSTALL/macos.sh b/INSTALL/macos.sh
index a6163381..17dd81b8 100644
--- a/INSTALL/macos.sh
+++ b/INSTALL/macos.sh
@@ -34,11 +34,6 @@ if [ "$ffmpeginstall" = "y" ]; then
sudo chmod +x /usr/local/bin/ffserver
fi
echo "============="
-if [ ! -e "./shinobi.sqlite" ]; then
- sudo npm install jsonfile
- sudo cp sql/shinobi.sample.sqlite shinobi.sqlite
- sudo node tools/modifyConfiguration.js databaseType=sqlite3
-fi
echo "Shinobi - Install NPM Libraries"
sudo npm i npm -g
sudo npm install --unsafe-perm
diff --git a/definitions/en_CA.js b/definitions/en_CA.js
index 8007ec55..023ea197 100644
--- a/definitions/en_CA.js
+++ b/definitions/en_CA.js
@@ -7405,44 +7405,6 @@ module.exports = function(s,config,lang){
}
}
},
- "Camera Wizard": {
- "section": "Camera Wizard",
- "blocks": {
- "Search Settings": {
- "name": lang["FFprobe"],
- "color": "blue",
- "blockquote": `"${lang['FFmpegTip']}" - FFmpegTips`,
- "section-pre-class": "col-md-12",
- "info": [
- {
- "name": "url",
- "field": lang['Complete Stream URL'],
- "example": "http://192.168.88.126/videostream.cgi or /dev/video0",
- },
- {
- "fieldType": "btn-group",
- "btns": [
- {
- "fieldType": "btn",
- "forForm": true,
- "class": `btn-block btn-success`,
- "btnContent": `${lang['Check']}`,
- },
- {
- "fieldType": "btn",
- "class": `btn-default fill`,
- "btnContent": `${lang['Save']}`,
- },
- ],
- },
- {
- "fieldType": "div",
- "class": "output_data",
- }
- ]
- },
- }
- },
"Monitor Stream Window": {
"section": "Monitor Stream Window",
// gridBlockClass: "",
@@ -7757,9 +7719,11 @@ module.exports = function(s,config,lang){
{
"fieldType": "indicatorBar",
"percent": 0,
+ "color": 'warning',
+ "indicatorPercentClass": 'activeCameraCount',
"icon": "video-camera",
"name": "activeCameraCount",
- "label": ` ${lang['Active Monitors']}`,
+ "label": lang['Active Monitors'],
},
]
}
diff --git a/web/assets/js/bs5.videos.js b/web/assets/js/bs5.videos.js
index e6129de4..09f0baa7 100644
--- a/web/assets/js/bs5.videos.js
+++ b/web/assets/js/bs5.videos.js
@@ -89,7 +89,7 @@ function createVideoRow(row,classOverride){
diff --git a/web/pages/blocks/fieldBuilders.ejs b/web/pages/blocks/fieldBuilders.ejs
deleted file mode 100644
index a974a377..00000000
--- a/web/pages/blocks/fieldBuilders.ejs
+++ /dev/null
@@ -1,245 +0,0 @@
-<%
-buildOptions = function(field,possiblities){
- if(!field)console.error('field',field)
- var fieldElement = ''
- possiblities.forEach(function(option){
- if(option.optgroup){
- fieldElement += '
'
- }else{
- var selected = ''
- if(option.value === field.default){
- selected = 'selected'
- }
- fieldElement += '
'
- }
- })
- return fieldElement
-}
-drawBlock = function(monitorSettings){
- if(monitorSettings.evaluation && !eval(monitorSettings.evaluation)){
- return
- }
- var attributes = []
- var styles = []
- var sectionClass = []
- var headerTitle = monitorSettings.headerTitle || lang[monitorSettings.name] || monitorSettings.name
- if(monitorSettings.hidden === true){
- styles.push('display:none')
- }
- if(monitorSettings.style){
- styles.push(monitorSettings.style)
- }
- if(monitorSettings.isSection === true){
- attributes.push('section')
- }
- if(monitorSettings.attribute){
- attributes.push(monitorSettings.attribute)
- }
- if(!monitorSettings.id){
- var userSettingsId = monitorSettings.name.replace(/[^a-zA-Z ]/g, '').replace(/[^a-zA-Z ]/g, '').replace(/ /g, '')
- monitorSettings.id = userSettingsId
- }
- attributes.push(`id="${monitorSettings.id}"`)
- if(monitorSettings.color){
- sectionClass.push(monitorSettings.color)
- }
- if(monitorSettings['section-class']){
- sectionClass.push(monitorSettings['section-class'])
- }
- if(monitorSettings.isAdvanced){ %>
-
-<% }
-}
-%>
diff --git a/web/pages/blocks/home.ejs b/web/pages/blocks/home.ejs
index 60cec9b7..c114e9db 100644
--- a/web/pages/blocks/home.ejs
+++ b/web/pages/blocks/home.ejs
@@ -24,6 +24,9 @@
<% include home/eventListWithPics.ejs %>
<% include confirm.ejs %>
<% include help.ejs %>
+ <% customAutoLoad.PageBlocks.forEach(function(block){ %>
+ <%- include(block) %>
+ <% }) %>
diff --git a/web/pages/blocks/home/fieldBuilders.ejs b/web/pages/blocks/home/fieldBuilders.ejs
index 0670efc9..0e51b4a3 100644
--- a/web/pages/blocks/home/fieldBuilders.ejs
+++ b/web/pages/blocks/home/fieldBuilders.ejs
@@ -203,7 +203,7 @@ drawBlock = function(monitorSettings){
${field.label}
-
+