mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Add install extensions
This commit is contained in:
parent
8c1e5d1e8f
commit
77182ed4f9
58 changed files with 695 additions and 4 deletions
|
@ -63,4 +63,4 @@ REVISIONS_FREQUENCY=300
|
|||
RAILS_RELATIVE_URL_ROOT=/
|
||||
|
||||
# Enable public file server
|
||||
RAILS_SERVE_STATIC_FILES=false
|
||||
RAILS_SERVE_STATIC_FILES=
|
||||
|
|
5
conf/ext_action-bar.src
Normal file
5
conf/ext_action-bar.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/action-bar/archive/1.3.1.zip
|
||||
SOURCE_SUM=413F74598DA5C5B401D95620B330E23A094BEEF9DD9C2EBC653199E7FDBB7F7F
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_autobiography-theme.src
Normal file
5
conf/ext_autobiography-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/autobiography-theme/archive/1.0.0.zip
|
||||
SOURCE_SUM=cbc8e07fa7703bdf8b7c9c3ef30a6d87d4ade7e5eb58ce7a983a34f1199a819d
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_bold-editor.src
Normal file
5
conf/ext_bold-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/bold-editor/archive/1.1.0.zip
|
||||
SOURCE_SUM=a842181f1e2e0cc93a29ff1c532c4650cbcc3327742267bb3471f1018406df0f
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_code-editor.src
Normal file
5
conf/ext_code-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/code-editor/archive/1.3.5.zip
|
||||
SOURCE_SUM=e928b1e474e5c391d5ac2654982177238081e3cd11a6e318d7805c36030bd879
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_dynamic-theme.src
Normal file
5
conf/ext_dynamic-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/dynamic-theme/archive/1.0.0.zip
|
||||
SOURCE_SUM=2be90456a6d8e90b4c6c666c797b96c72935b41fde8aa2b29a219368ce100c99
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_filesafe-bar.src
Normal file
5
conf/ext_filesafe-bar.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/filesafe-bar/archive/2.0.10.zip
|
||||
SOURCE_SUM=17764DF475CC7EAE160F6D85BE469872444FB986355F9B270667E6E876ACAC3A
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_focus-theme.src
Normal file
5
conf/ext_focus-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/focus-theme/archive/1.2.3.zip
|
||||
SOURCE_SUM=371a48128bc0e95f2298053dc39c333454a2c11962a28e9a7749435da0e85340
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_folders-component.src
Normal file
5
conf/ext_folders-component.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/folders-component/archive/1.3.5.zip
|
||||
SOURCE_SUM=190CE79BAD28C772955960A16D6027BE8B7B7A9B8850BD65D79F5FAB4FF64E90
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_futura-theme.src
Normal file
5
conf/ext_futura-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/futura-theme/archive/1.2.2.zip
|
||||
SOURCE_SUM=900cebb84e2a794ca5cd6d62d28705e18181ae6cac76c2d8fa6d109a24386e94
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_github-push.src
Normal file
5
conf/ext_github-push.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/github-push/archive/1.2.2.zip
|
||||
SOURCE_SUM=9b64cd9797254120b82b9e43bee7bb0d65b950d8cfeab1b16311a96eedd93527
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_markdown-basic.src
Normal file
5
conf/ext_markdown-basic.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/markdown-basic/archive/1.3.6.zip
|
||||
SOURCE_SUM=b0e77cc3713a2c7ddf330af37b164a1fee356c65d1ff5352d31f0d8a2bf5d8f9
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_markdown-pro.src
Normal file
5
conf/ext_markdown-pro.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/markdown-pro/archive/1.3.9.zip
|
||||
SOURCE_SUM=70a21fa13554d4a7a6d3ac5ae06acf4b97a88b6ea5af804e958774273aaf1c40
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_math-editor.src
Normal file
5
conf/ext_math-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/math-editor/archive/1.3.4.zip
|
||||
SOURCE_SUM=e8e69f082231f3052185c1f74c7bacdbc26b75fe1047045da2cf22f4459d97bf
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_mfa-link.src
Normal file
5
conf/ext_mfa-link.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/mfa-link/archive/1.2.2.zip
|
||||
SOURCE_SUM=6B41F549FCB8721D429FA216D261C8221C2FC8304EF5C2BF9F98A58C1D7D7388
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_midnight-theme.src
Normal file
5
conf/ext_midnight-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/midnight-theme/archive/1.2.1.zip
|
||||
SOURCE_SUM=f219de3cf26494a73d506139082463a06782a5fc1717290d96da9c8a54102342
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_minimal-markdown-editor.src
Normal file
5
conf/ext_minimal-markdown-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/minimal-markdown-editor/archive/1.3.5.zip
|
||||
SOURCE_SUM=c062db588a500e227524bc0e28335dcfebbd913badd19784e00ab607bec7abbf
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_no-distraction-theme.src
Normal file
5
conf/ext_no-distraction-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/no-distraction-theme/archive/1.2.2.zip
|
||||
SOURCE_SUM=c6b3116aab0e87bdba25632f6e0820c98a47c10248c4760853fb69facc860088
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_plus-editor.src
Normal file
5
conf/ext_plus-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/plus-editor/archive/1.4.3.zip
|
||||
SOURCE_SUM=c1e023b8b78304773a4b447ed5da601bcf799587c44e07f9f793488b933bbd0a
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_quick-tags.src
Normal file
5
conf/ext_quick-tags.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/quick-tags/archive/1.3.2.zip
|
||||
SOURCE_SUM=62B815B436F519412B16A58622D356219F391B11A6FBB88F5E018FF3520214CF
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_secure-spreadsheet.src
Normal file
5
conf/ext_secure-spreadsheet.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/standardnotes/secure-spreadsheets/archive/1.3.6.zip
|
||||
SOURCE_SUM=09176C65CA1635E37D15DE33FFB8B44195601E5D71E514EF9D8C4105DE8A2BF9
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_simple-task-editor.src
Normal file
5
conf/ext_simple-task-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/simple-task-editor/archive/1.3.5.zip
|
||||
SOURCE_SUM=2cb836e9932a8e39b41397fc6f9ef721c894e422a3f898db66cb340d9cbf931b
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_solarized-theme.src
Normal file
5
conf/ext_solarized-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/solarized-dark-theme/archive/1.2.1.zip
|
||||
SOURCE_SUM=4f05dfb4edc9ce81fd22c01d101cc453509791e24475cfefd235dab15b4abfc6
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_titanium-theme.src
Normal file
5
conf/ext_titanium-theme.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/titanium-theme/archive/1.2.2.zip
|
||||
SOURCE_SUM=aa42d8911a514d454af045dc65433aef6361ecfd67ad27f1d8093b9da01bf2b3
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_token-vault.src
Normal file
5
conf/ext_token-vault.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions/token-vault/archive/1.0.5.zip
|
||||
SOURCE_SUM=a9f4e1bafec6194499dd163fd53bdb9876689c99e7218b36a8e26dbe0c096f21
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
5
conf/ext_vim-editor.src
Normal file
5
conf/ext_vim-editor.src
Normal file
|
@ -0,0 +1,5 @@
|
|||
SOURCE_URL=https://github.com/sn-extensions//vim-editor/archive/1.3.2.zip
|
||||
SOURCE_SUM=a32fb89d63dea190302b966f0adb2e0ce3a1ef07248277b7d5abf52646585c74
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
|
@ -1,3 +1,8 @@
|
|||
location = /favicon.ico {
|
||||
alias /opt/yunohost/snserver/live/public/favicon/favicon.ico;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
location __PATH__/ {
|
||||
alias __FINALPATH__/live/public ;
|
||||
|
||||
|
@ -13,5 +18,5 @@ location __PATH__/ {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_buffering off;
|
||||
|
||||
more_set_headers "X-Frame-Options" : "allow-from __ACCESS_DOMAIN__"
|
||||
more_set_headers "X-Frame-Options" : "allow-from __ACCESS_DOMAIN__";
|
||||
}
|
||||
|
|
|
@ -55,6 +55,28 @@
|
|||
"de": "Ist die Application Öffendlich?"
|
||||
},
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"name": "install_extensions",
|
||||
"type": "boolean",
|
||||
"help": {
|
||||
"en": "Once you've installed the extensions, you cannot change the domain without the users having to reinstall the extensions"
|
||||
},
|
||||
"ask": {
|
||||
"en": "Do you want to install the Standard Notes Extensions?",
|
||||
"de": "Willst du die Standard Notes Extensions installieren?"
|
||||
},
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"name": "access_domain",
|
||||
"type": "string",
|
||||
"ask": {
|
||||
"en": "Choose a domain which has access to the extensions. E.g. the Standard-Notes web app."
|
||||
},
|
||||
"optional": true,
|
||||
"example": "example.tld",
|
||||
"default": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -154,7 +154,7 @@ pushd "$final_path/live"
|
|||
exec_as "$app" env PATH=$PATH /opt/rbenv/versions/$RUBY_VERSION/bin/bundle config set with 'development'
|
||||
exec_as "$app" env PATH=$PATH /opt/rbenv/versions/$RUBY_VERSION/bin/bundle install
|
||||
exec_as "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/$RUBY_VERSION/bin/bundle exec rails db:create db:migrate --quiet
|
||||
exec_as "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/$RUBY_VERSION/bin/bundle exec rails assets:precompile --quiet
|
||||
# exec_as "$app" env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/$RUBY_VERSION/bin/bundle exec rails assets:precompile --quiet
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
@ -164,7 +164,25 @@ if [ $install_extensions ]
|
|||
then
|
||||
ynh_script_progression --message="Installing Standard Notes - Extensions..." --weight=1
|
||||
|
||||
ynh_replace_string --match_string="RAILS_SERVE_STATIC_FILES=false" --replace_string="RAILS_SERVE_STATIC_FILES=$install_extensions" --target_file="$config_file"
|
||||
ynh_replace_string --match_string="RAILS_SERVE_STATIC_FILES=" --replace_string="RAILS_SERVE_STATIC_FILES=true" --target_file="$config_file"
|
||||
|
||||
if [ $path_url = "/" ]
|
||||
then
|
||||
path=""
|
||||
else
|
||||
path=$path_url
|
||||
fi
|
||||
|
||||
find "$final_path/live/public/extensions/src/" -name "*.json" -print0 | while read -d $'\0' file
|
||||
do
|
||||
ynh_replace_string --match_string="__DOMAIN__PATH__" --replace_string="$domain$path" --target_file="$file"
|
||||
done
|
||||
|
||||
find "../conf/" -name "ext_*.src" -print0 | while read -d $'\0' file
|
||||
do
|
||||
basename=$(basename -as .src $file)
|
||||
ynh_setup_source --dest_dir="$final_path/live/public/extensions/src/${basename#'ext_'}" --source_id="$basename"
|
||||
done
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
16
sources/extra_files/app/public/extensions/css.css
Normal file
16
sources/extra_files/app/public/extensions/css.css
Normal file
|
@ -0,0 +1,16 @@
|
|||
body {
|
||||
padding-left: 50px;
|
||||
}
|
||||
td {
|
||||
border: 1px solid #999;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
td#id {
|
||||
width: 20px;
|
||||
}
|
||||
td#name {
|
||||
width: 200px;
|
||||
}
|
||||
td#url {
|
||||
width: 300px;
|
||||
}
|
36
sources/extra_files/app/public/extensions/index.html
Normal file
36
sources/extra_files/app/public/extensions/index.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!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">
|
||||
</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>
|
||||
|
||||
</body>
|
||||
</html>
|
127
sources/extra_files/app/public/extensions/index.json
Normal file
127
sources/extra_files/app/public/extensions/index.json
Normal file
|
@ -0,0 +1,127 @@
|
|||
[
|
||||
{
|
||||
"name": "Autobiography Theme",
|
||||
"url": "extensions/src/autobiography-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Focus Theme",
|
||||
"url": "extensions/src/focus-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Futura Theme",
|
||||
"url": "extensions/src/futura-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Midnight Theme",
|
||||
"url": "extensions/src/midnight-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Solarized Dark Theme",
|
||||
"url": "extensions/src/solarized-dark-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Titanium Theme",
|
||||
"url": "extensions/src/titanium-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Dynamic Theme",
|
||||
"url": "extensions/src/dynamic-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "No Distraction Theme",
|
||||
"url": "extensions/src/no-distraction-theme.json",
|
||||
"extension": "theme"
|
||||
},
|
||||
{
|
||||
"name": "Bold Editor",
|
||||
"url": "extensions/src/bold-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Code Editor",
|
||||
"url": "extensions/src/code-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Markdown Basic",
|
||||
"url": "extensions/src/markdown-basic.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Markdown Pro",
|
||||
"url": "extensions/src/markdown-pro.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Math Editor",
|
||||
"url": "extensions/src/math-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Minimal Markdown Editor",
|
||||
"url": "extensions/src/minimal-markdown-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Plus Editor",
|
||||
"url": "extensions/src/plus-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Secure Spreadsheet",
|
||||
"url": "extensions/src/secure-spreadsheets.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Simple Task Editor",
|
||||
"url": "extensions/src/simple-task-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Token Vault",
|
||||
"url": "extensions/src/token-vault.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Vim Editor",
|
||||
"url": "extensions/src/vim-editor.json",
|
||||
"extension": "editor"
|
||||
},
|
||||
{
|
||||
"name": "Action Bar",
|
||||
"url": "extensions/src/action-bar.json",
|
||||
"extension": "component"
|
||||
},
|
||||
{
|
||||
"name": "FileSafe Bar",
|
||||
"url": "extensions/src/filesafe-bar.json",
|
||||
"extension": "component"
|
||||
},
|
||||
{
|
||||
"name": "Folders Component",
|
||||
"url": "extensions/src/folders-component.json",
|
||||
"extension": "component"
|
||||
},
|
||||
{
|
||||
"name": "Github Push",
|
||||
"url": "extensions/src/github-push.json",
|
||||
"extension": "component"
|
||||
},
|
||||
{
|
||||
"name": "MFA Link",
|
||||
"url": "extensions/src/mfa-link.json",
|
||||
"extension": "component"
|
||||
},
|
||||
{
|
||||
"name": "Quick Tags",
|
||||
"url": "extensions/src/quick-tags.json",
|
||||
"extension": "component"
|
||||
}
|
||||
]
|
23
sources/extra_files/app/public/extensions/js.js
Normal file
23
sources/extra_files/app/public/extensions/js.js
Normal file
|
@ -0,0 +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);
|
||||
});
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.action-bar",
|
||||
"name": "Action Bar",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-stack",
|
||||
"version": "1.3.1",
|
||||
"description": "Useful utility bar with information about the current note as well as actions like duplicate, copy, and save.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/action-bar/index.html",
|
||||
"download_url": "https://github.com/standardnotes/action-bar/archive/1.3.1.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/comonents/action-bar.json"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.autobiography-theme",
|
||||
"name": "Autobiography Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.0.0",
|
||||
"description": "Autobiography",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/autobiography-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/autobiography-theme/archive/1.0.0.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/autobiography-theme.json",
|
||||
"dock_icon":{
|
||||
"type":"circle",
|
||||
"background_color":"#9D7441",
|
||||
"foreground_color":"#ECE4DB",
|
||||
"border_color":"#9D7441"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.bold-editor",
|
||||
"name": "Bold Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.1.0",
|
||||
"description": "A simple and peaceful rich editor that helps you write and think clearly. Features FileSafe integration, so you can embed your images, videos, and audio recordings directly inline.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/bold-editor/dist/index.html",
|
||||
"download_url": "https://github.com/standardnotes/bold-editor/archive/1.1.0.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/bold-editor.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.code-editor",
|
||||
"name": "Code Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.5",
|
||||
"description": "Syntax highlighting and convenient keyboard shortcuts for over 120 programming languages. Ideal for code snippets and procedures.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/code-editor/index.html",
|
||||
"download_url": "https://github.com/standardnotes/code-editor/archive/1.3.5.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/code-editor.json"
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.dynamic-theme",
|
||||
"name": "Dynamic Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.0.0",
|
||||
"description": "A smart theme that minimizes the tags and notes panels when they are not in use..",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/dynamic-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/dynamic-theme/archive/1.0.0.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/dynamic-theme.json",
|
||||
"layerable":true,
|
||||
"no_mobile":true
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.filesafe-bar",
|
||||
"name": "FileSafe Bar",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-stack",
|
||||
"version": "2.0.10",
|
||||
"description": "FileSafe Bar",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/filesafe-bar/app/index.html",
|
||||
"download_url": "https://github.com/standardnotes/filesafe-bar/archive/2.0.10.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/comonents/filesafe-bar.json"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.focus-theme",
|
||||
"name": "Focus Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.2.3",
|
||||
"description": "Light on the eyes, heavy on the spirit.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/focus-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/focus-theme/archive/1.2.3.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/focus-theme.json",
|
||||
"dock_icon":{
|
||||
"type":"circle",
|
||||
"background_color":"#a464c2",
|
||||
"foreground_color":"#ffffff",
|
||||
"border_color":"#a464c2"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.folders-component",
|
||||
"name": "Folders",
|
||||
"content_type": "SN|Component",
|
||||
"area": "tags-list",
|
||||
"version": "1.3.5",
|
||||
"description": "Create nested folders from your tags with easy drag and drop. Folders also supports Smart Tags, which allow you to build custom filters for viewing your notes.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/folders-component/index.html",
|
||||
"download_url": "https://github.com/standardnotes/folders-component/archive/1.3.5.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/comonents/folders-component.json"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.futura-theme",
|
||||
"name": "Futura Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.2.2",
|
||||
"description": "Calm and relaxed. Take some time off.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/futura-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/futura-theme/archive/1.2.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/futura-theme.json",
|
||||
"dock_icon":{
|
||||
"type":"circle",
|
||||
"background_color":"#fca429",
|
||||
"foreground_color":"#ffffff",
|
||||
"border_color":"#fca429"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.github-push",
|
||||
"name": "Github Push",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-stack",
|
||||
"version": "1.2.2",
|
||||
"description": "Push note changes to a public or private GitHub repository, with options for file extension and commit message.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/github-push/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/github-push/archive/1.2.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/comonents/github-push.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.markdown-basic-editor",
|
||||
"name": "Markdown Basic",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.6",
|
||||
"description": "A Markdown editor with dynamic split-pane preview.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/markdown-basic/dist/index.html",
|
||||
"download_url": "https://github.com/standardnotes/markdown-basic/archive/1.3.6.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/markdown-basic.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.markdown-pro",
|
||||
"name": "Markdown Pro",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.9",
|
||||
"description": "A fully featured Markdown editor that supports live preview, a styling toolbar, and split pane support.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/markdown-pro/index.html",
|
||||
"download_url": "https://github.com/standardnotes/markdown-pro/archive/1.3.9.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/markdown-pro.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.math-editor",
|
||||
"name": "Math Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.4",
|
||||
"description": "A beautiful split-pane Markdown editor with synced-scroll, LaTeX support, and colorful syntax.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/math-editor/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/math-editor/archive/1.3.4.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/math-editor.json"
|
||||
}
|
11
sources/extra_files/app/public/extensions/src/mfa-link.json
Normal file
11
sources/extra_files/app/public/extensions/src/mfa-link.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.mfa-link",
|
||||
"name": "MFA-Link",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-stack",
|
||||
"version": "1.2.2",
|
||||
"description": "Set up 2FA to enable an extra layer of security on your private notes account.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/mfa-link/dist/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/mfa-link/archive/1.2.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/comonents/mfa-link.json"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.midnight-theme",
|
||||
"name": "Midnight Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.2.1",
|
||||
"description": "Elegant utilitarianism.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/midnight-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/midnight-theme/archive/1.2.1.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/midnight-theme.json",
|
||||
"dock_icon":{
|
||||
"type":"circle",
|
||||
"background_color":"#086DD6",
|
||||
"foreground_color":"#ffffff",
|
||||
"border_color":"#086DD6"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.minimal-markdown-editor",
|
||||
"name": "Minimal Markdown Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.5",
|
||||
"description": "A minimal Markdown editor with inline style support.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/minimal-markdown-editor/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/minimal-markdown-editor/archive/1.3.5.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/minimal-markdown-editor.json"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.no-distraction",
|
||||
"name": "No Distraction Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.2.2",
|
||||
"description": "A distraction-free writing environment for high levels of clarity and focus.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/no-distraction-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/no-distraction-theme/archive/1.2.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/no-distraction-theme.json",
|
||||
"layerable":true,
|
||||
"no_mobile":true,
|
||||
"dock_icon":{
|
||||
"type":"svg",
|
||||
"source":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M424 64H88c-26.6 0-48 21.6-48 48v288c0 26.4 21.4 48 48 48h336c26.4 0 48-21.6 48-48V112c0-26.4-21.4-48-48-48zm0 336H88V176h336v224z\"/></svg>"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.plus-editor",
|
||||
"name": "Plus Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.4.3",
|
||||
"description": "From highlighting to custom font sizes and colors, to tables and lists, this editor is perfect for crafting any document. (Converts your note to an HTML format.)",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/plus-editor/index.html",
|
||||
"download_url": "https://github.com/standardnotes/plus-editor/archive/1.4.3.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/plus-editor.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.quick-tags",
|
||||
"name": "Quick Tags",
|
||||
"content_type": "SN|Component",
|
||||
"area": "note-tags",
|
||||
"version": "1.3.2",
|
||||
"description": "Work more efficiently by quickly selecting from a live list of tags while you type. Supports keyboard shortcuts and folders.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/quick-tags/index.html",
|
||||
"download_url": "https://github.com/standardnotes/quick-tags/archive/1.3.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/comonents/quick-tags.json",
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.secure-spreadsheets",
|
||||
"name": "Secure Spreadsheets",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.6",
|
||||
"description": "A powerful spreadsheet editor with formatting and formula support. Ideal for personal budgeting and finance worksheets.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/secure-spreadsheets/dist/index.html",
|
||||
"download_url": "https://github.com/standardnotes/secure-spreadsheets/archive/1.3.6.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/secure-spreadsheets.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.standardnotes.simple-task-editor",
|
||||
"name": "Task Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.5",
|
||||
"description": "A great way to manage short-term and long-term to-do's. You can mark simple-tasks as completed, change their order, and edit the text naturally in place.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/simple-task-editor/dist/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/simple-task-editor/archive/1.3.5.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/simple-task-editor.json"
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.solarized-dark-theme",
|
||||
"name": "Solarized Dark Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.2.1",
|
||||
"description": "The perfect theme for any time.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/solarized-dark-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/solarized-dark-theme/archive/1.2.1.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/solarized-dark-theme.json",
|
||||
"dock_icon":{
|
||||
"type":"circle",
|
||||
"background_color":"#2AA198",
|
||||
"foreground_color":"#ffffff",
|
||||
"border_color":"#2AA198"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.titanium-theme",
|
||||
"name": "Titanium Theme",
|
||||
"content_type": "SN|Theme",
|
||||
"area": "theme",
|
||||
"version": "1.2.2",
|
||||
"description": "Light on the eyes, heavy on the spirit.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/titanium-theme/dist/dist.css",
|
||||
"download_url": "https://github.com/sn-extensions/titanium-theme/archive/1.2.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/titanium-theme.json",
|
||||
"dock_icon":{
|
||||
"type":"circle",
|
||||
"background_color":"#6e2b9e",
|
||||
"foreground_color":"#ffffff",
|
||||
"border_color":"#6e2b9e"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.token-vault",
|
||||
"name": "Token Vault",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.0.5",
|
||||
"description": "Use Standard Notes on both desktop and mobile as your authenticator app. TokenVault handles your 2FA secrets so that you never lose them again, or have to start over when you get a new device.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/token-vault/dist/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/token-vault/archive/1.0.5.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/token-vault.json"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "org.stndardnotes.vim-editor",
|
||||
"name": "Vim Editor",
|
||||
"content_type": "SN|Component",
|
||||
"area": "editor-editor",
|
||||
"version": "1.3.2",
|
||||
"description": "A code editor with Vim key bindings.",
|
||||
"url": "https://__DOMAIN__PATH__/extensions/src/vim-editor/index.html",
|
||||
"download_url": "https://github.com/sn-extensions/vim-editor/archive/1.3.2.zip",
|
||||
"latest_url": "https://__DOMAIN__PATH__/extensions/src/vim-editor.json"
|
||||
}
|
Loading…
Add table
Reference in a new issue