diff --git a/conf/nginx.conf b/conf/nginx.conf index 52ec158..6f55e7c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ location = /favicon.ico { - alias /opt/yunohost/snserver/live/public/favicon/favicon.ico; - expires 30d; + alias /opt/yunohost/snserver/live/public/favicon/favicon.ico; + expires 30d; } location __PATH__/ { diff --git a/scripts/install b/scripts/install index 04e204a..61cb3d3 100755 --- a/scripts/install +++ b/scripts/install @@ -180,7 +180,7 @@ then find "../conf/" -name "ext_*.src" -print0 | while read -d $'\0' file do - basename=$(basename -as .src $file) + basename=$(basename -as .src $file) ynh_setup_source --dest_dir="$final_path/live/public/extensions/src/${basename#'ext_'}" --source_id="$basename" done fi diff --git a/sources/extra_files/app/public/extensions/css.css b/sources/extra_files/app/public/extensions/css.css index 0fbb992..83fa02f 100644 --- a/sources/extra_files/app/public/extensions/css.css +++ b/sources/extra_files/app/public/extensions/css.css @@ -1,5 +1,5 @@ body { - padding-left: 50px; + padding-left: 50px; } td { border: 1px solid #999; diff --git a/sources/extra_files/app/public/extensions/index.html b/sources/extra_files/app/public/extensions/index.html index 867b07d..3347a3e 100644 --- a/sources/extra_files/app/public/extensions/index.html +++ b/sources/extra_files/app/public/extensions/index.html @@ -1,36 +1,38 @@ - StandardNotes Extensions - - + StandardNotes Extensions + + - -
-

Themes

-
-
-

Editors

-
-
-

Components

-
- + +
+

Themes

+
+
+

Editors

+
+
+

Components

+
diff --git a/sources/extra_files/app/public/extensions/js.js b/sources/extra_files/app/public/extensions/js.js index 1c0c15d..be68e46 100644 --- a/sources/extra_files/app/public/extensions/js.js +++ b/sources/extra_files/app/public/extensions/js.js @@ -1,23 +1,23 @@ loadJSON("extensions/index.json"); function loadJSON(file){ - fetch(file) - .then(function (response) { - return response.json(); - }) - .then(function (data) { - appendData(data); - }) - .catch(function (err) { - console.log('error: ' + err); - }); + fetch(file) + .then(function (response) { + return response.json(); + }) + .then(function (data) { + appendData(data); + }) + .catch(function (err) { + console.log('error: ' + err); + }); } function appendData(data) { - for (var i = 0; i < data.length; i++) { - var mainContainer = document.getElementById(data[i].extension + "sData"); - var tr = document.createElement("tr"); - tr.innerHTML = - "" + data[i].name + "" + - "" + data[i].url + "" - mainContainer.appendChild(tr); - } + for (var i = 0; i < data.length; i++) { + var mainContainer = document.getElementById(data[i].extension + "sData"); + var tr = document.createElement("tr"); + tr.innerHTML = + "" + data[i].name + "" + + "" + data[i].url + "" + mainContainer.appendChild(tr); + } }