mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Cleanup
This commit is contained in:
parent
77182ed4f9
commit
872e7574af
5 changed files with 53 additions and 51 deletions
|
@ -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__/ {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
body {
|
||||
padding-left: 50px;
|
||||
padding-left: 50px;
|
||||
}
|
||||
td {
|
||||
border: 1px solid #999;
|
||||
|
|
|
@ -1,36 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>StandardNotes Extensions</title>
|
||||
<script type="text/javascript" src="extensions/js.js"></script>
|
||||
<link rel="stylesheet" href="extensions/css.css">
|
||||
<title>StandardNotes Extensions</title>
|
||||
<script type="text/javascript" src="extensions/js.js"></script>
|
||||
<link rel="stylesheet" href="extensions/css.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="head">
|
||||
<h1>Standard Notes - Extensions</h1>
|
||||
<h2>These Extensions are open source. You can find them on Github.</br>
|
||||
<a href=https://github.com/standardnotes/>Standard Notes on Github</a></br>
|
||||
<a href=https://github.com/sn-extensions/>SN Extensions on Github</a></br></h2>
|
||||
<h3>To get all original extensions from Standard-Notes please consider to pay for <a href=https://standardnotes.org/extensions>Extended Extensions</a></h3>
|
||||
<h3>Install Instructions</h3>
|
||||
<ul>
|
||||
<li>Open StandardNotes Web or Desktop App</li>
|
||||
<li>Press "Extensions" in the button left corner</li>
|
||||
<li>Press on "Import Extensions" in the button right corner of the new window.</li>
|
||||
<li>Enter one of the Extension Links from below.</li>
|
||||
<li>Press "Enter" on your keyboard.</li>
|
||||
<li>Press on "Install"</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="themesData">
|
||||
<h3>Themes</h3>
|
||||
</div>
|
||||
<div id="editorsData">
|
||||
<h3>Editors</h3>
|
||||
</div>
|
||||
<div id="componentsData">
|
||||
<h3>Components</h3>
|
||||
</div>
|
||||
|
||||
<div id="head">
|
||||
<h1>Standard Notes - Extensions</h1>
|
||||
<h2>These Extensions are open source. You can find them on Github.</br>
|
||||
<a href=https://github.com/standardnotes/>Standard Notes on Github</a></br>
|
||||
<a href=https://github.com/sn-extensions/>SN Extensions on Github</a></br>
|
||||
</h2>
|
||||
<h3>To get all original extensions from Standard-Notes please consider to pay for
|
||||
<a href=https://standardnotes.org/extensions>Extended Extensions</a>
|
||||
</h3>
|
||||
<h3>Install Instructions</h3>
|
||||
<ul>
|
||||
<li>Open StandardNotes Web or Desktop App</li>
|
||||
<li>Press "Extensions" in the button left corner</li>
|
||||
<li>Press on "Import Extensions" in the button right corner of the new window.</li>
|
||||
<li>Enter one of the Extension Links from below.</li>
|
||||
<li>Press "Enter" on your keyboard.</li>
|
||||
<li>Press on "Install"</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="themesData">
|
||||
<h3>Themes</h3>
|
||||
</div>
|
||||
<div id="editorsData">
|
||||
<h3>Editors</h3>
|
||||
</div>
|
||||
<div id="componentsData">
|
||||
<h3>Components</h3>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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 =
|
||||
"<td id='name'>" + data[i].name + "</td>" +
|
||||
"<td id='url'><a href=" + data[i].url + ">" + data[i].url + "</a></td>"
|
||||
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 =
|
||||
"<td id='name'>" + data[i].name + "</td>" +
|
||||
"<td id='url'><a href=" + data[i].url + ">" + data[i].url + "</a></td>"
|
||||
mainContainer.appendChild(tr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue