Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 75e6110

Browse files
Merge pull request #393 from xiaodoudou/master
Bugfix: add missing baseURL inside templates and dashboard config
2 parents d939f99 + 4c58030 commit 75e6110

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Server/public/javascripts/dashboard-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $.get(VORLON.DashboardManager.CatalogUrl, function(data) {
1414
folder: data[plugin].foldername
1515
}
1616

17-
$('.plugins-list').append('<li class="plugin-'+tmp.id+'" data-id="'+tmp.id+'"><div class="calque"></div><h4><img src="'+VORLON.DashboardManager.vorlonBaseURL+'/getplugin/'+tmp.folder+'/icon" alt="icon"> <input data-id="'+tmp.id+'" type="text" value="'+tmp.name+'"> <span>'+tmp.name+' </span><i class="fa fa-pencil"></i></h4><img src="images/nodejs.png" title="'+tmp.nodeText+'" data-placement="top" alt="nodeCompliant" class="'+tmp.nodeClass+' nodeCompliant"><div class="panel_option"><label for="panel_select">Panel</label><select data-id="'+tmp.id+'" id="panel_select" class="panel_select"><option '+tmp.selectedTop+' value="top">Top</option><option value="bottom" '+tmp.selectedBottom+'>Bottom</option></select></div><div class="state_option"><label>State<input id="cb-'+tmp.id+'" '+tmp.checked+' type="checkbox" class="tgl tgl-skewed" data-id="'+tmp.id+'"><label data-tg-off="OFF" data-tg-on="ON" for="cb-'+tmp.id+'" class="tgl-btn"></label></label></div><i class="fa fa-arrows" aria-hidden="true"></i></li>');
17+
$('.plugins-list').append('<li class="plugin-'+tmp.id+'" data-id="'+tmp.id+'"><div class="calque"></div><h4><img src="'+VORLON.DashboardManager.vorlonBaseURL+'/getplugin/'+tmp.folder+'/icon" alt="icon"> <input data-id="'+tmp.id+'" type="text" value="'+tmp.name+'"> <span>'+tmp.name+' </span><i class="fa fa-pencil"></i></h4><img src="'+VORLON.DashboardManager.vorlonBaseURL+'/images/nodejs.png" title="'+tmp.nodeText+'" data-placement="top" alt="nodeCompliant" class="'+tmp.nodeClass+' nodeCompliant"><div class="panel_option"><label for="panel_select">Panel</label><select data-id="'+tmp.id+'" id="panel_select" class="panel_select"><option '+tmp.selectedTop+' value="top">Top</option><option value="bottom" '+tmp.selectedBottom+'>Bottom</option></select></div><div class="state_option"><label>State<input id="cb-'+tmp.id+'" '+tmp.checked+' type="checkbox" class="tgl tgl-skewed" data-id="'+tmp.id+'"><label data-tg-off="OFF" data-tg-on="ON" for="cb-'+tmp.id+'" class="tgl-btn"></label></label></div><i class="fa fa-arrows" aria-hidden="true"></i></li>');
1818

1919
$(document).tooltip({
2020
position: {
@@ -125,4 +125,4 @@ $(".search-config input").keydown(function (e) {
125125
if(e.which == 13 || e.which == 27) {
126126
$('.config-wrapper .fa-search').trigger('click');
127127
}
128-
});
128+
});

Server/views/httpproxy.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ html(lang='en')
1515

1616
div.home
1717
div.top
18-
img.logo(src="/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
18+
img.logo(src=baseURL + "/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
1919
div.form
2020
div.message Vorlon proxy allows you to use Vorlon on an existing website. Just enter the website url, and click on the button. Couldn't be easier !
2121
div.input

Server/views/httpproxyerror.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ html(lang='en')
1515

1616
div.home
1717
div.top
18-
img.logo(src="/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
18+
img.logo(src=baseURL + "/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
1919
div.form
20-
div.message error
20+
div.message error
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
section.dashboard-initial
22
section.config-wrapper
33
h2.plugin-title
4-
img.machine(src="images/machine.png")
4+
img.machine(src=baseURL + "/images/machine.png")
55
span Plugins available <em>(<span class="countPlugins">0</span>)</em> :
66
div.search-config
77
i.fa.fa-search
88
input(type="text")
99
div.plugins-list-wrapper
1010
ul.plugins-list
1111
div.clear
12-
div.clear
12+
div.clear

0 commit comments

Comments
 (0)