diff --git a/package/src/synoedit/main.go b/package/src/synoedit/main.go index 7d753d5..fe0e306 100644 --- a/package/src/synoedit/main.go +++ b/package/src/synoedit/main.go @@ -30,7 +30,7 @@ const ( AppVersion = "0.0.1" // DefaultConfigFileName = "synoedit.toml" DefaultDatabaseFileName = "database.toml" - DefaultDatabaseSHA256Checksum = "0bd394da525f1d2395b9a3d285f099fad492bf196b60d49451d65438be553d78" + DefaultDatabaseSHA256Checksum = "718169860c57b123b0169eae4638a9c4f5c1657bc0d871cf31646c4c6e44bd29" ) // Page contains the data that is passed to the template (layout.html) diff --git a/package/ui/database.toml b/package/ui/database.toml index a047a6c..3be6486 100644 --- a/package/ui/database.toml +++ b/package/ui/database.toml @@ -39,10 +39,39 @@ files = [ # exec = "/var/packages/dnscrypt-proxy/target/bin/dnscrypt-proxy" # args = ["-check", "-config", "/var/packages/dnscrypt-proxy/target/var/dnscrypt-proxy.toml"] +############################### +# SynoCommunity # +############################### -#################################### -# Examples # -#################################### +[app."git"] +directory = "git/target/var/" +files = [ + "gitconfig" +] + +[app."monit"] +directory = 'monit/target/var/' +files = [ + 'monitrc', + 'monit.d/monit' +] + +[app."sslh"] +directory = "sslh/target/var/" +files = [ + "sslh.cfg" +] + +[app."syncthing"] +directory = "syncthing/target/var/" +files = [ + "options.conf", + "config.xml" +] + +########################## +# Examples # +########################## # [app."example"] # directory = 'example/target/' @@ -59,3 +88,180 @@ files = [ # dir = "/" # exec = "ls" # args = ["-l", "-a"] + +################################################################################# +# NOT TESTED! - Config files that I got from grepping synocommunity # +################################################################################# + +# [app."haproxy"] +# directory = "haproxy/target/var/" +# files = [ +# "haproxy.cfg" +# ] + +# [app."bitlbee"] +# directory = "bitlbee/target/var/" +# files = [ +# "bitlbee.conf" +# ] + +# [app."couchpotatoserver"] +# directory = "couchpotatoserver/target/var/" +# files = [ +# "settings.conf" +# ] + +# [app."deluge"] +# directory = "deluge/target/var/" +# files = [ +# "core.conf" +# ] + +# [app."gateone"] +# directory = "gateone/target/var/" +# files = [ +# "90custom.conf", +# "95users.conf" +# ] + +# [app."lirc"] +# directory = "lirc/target/var/" +# files = [ +# "lircd.conf" +# ] + +# [app."mosquitto"] +# directory = "mosquitto/target/var/" +# files = [ +# "mosquitto.conf" +# ] + +# [app."oscam"] +# directory = "oscam/target/var/" +# files = [ +# "oscam.conf" +# ] + +# [app."redis"] +# directory = "redis/target/var/" +# files = [ +# "redis.conf" +# ] + +# [app."shairport-sync"] +# directory = "shairport-sync/target/var/" +# files = [ +# "alsa.conf" +# ] + +# [app."squidguard"] +# directory = "squidguard/target/var/" +# files = [ +# "c-icap.conf", +# "mime.conf", +# "squid.conf", +# "squidclamav.conf", +# "squidguardmgr.conf", +# ] + +# [app."umurmur"] +# directory = "umurmur/target/var/" +# files = [ +# "umurmur.conf" +# ] + +# [app."znc"] +# directory = "znc/target/var/" +# files = [ +# "znc.conf" +# ] + +# [app."flexget"] +# directory = "flexget/target/var/" +# files = [ +# "config.yml" +# ] + +# [app."wallabag"] +# directory = "wallabag/target/var/" +# files = [ +# "parameters.yml" +# ] + +# [app."icecast"] +# directory = "icecast/target/var/" +# files = [ +# "icecast.xml" +# ] + +# [app."museek-plus"] +# directory = "museek-plus/target/var/" +# files = [ +# "config.xml" +# ] + +# [app."radarr"] +# directory = "radarr/target/var/" +# files = [ +# "config.xml" +# ] + +# [app."sonarr"] +# directory = "sonarr/target/var/" +# files = [ +# "config.xml" +# ] + +# [app."plexpy"] +# directory = "plexpy/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."headphones"] +# directory = "headphones/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."sickrage"] +# directory = "sickrage/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."lazylibrarian"] +# directory = "lazylibrarian/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."sabnzbd"] +# directory = "sabnzbd/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."comskip"] +# directory = "comskip/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."mylar"] +# directory = "mylar/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."plexivity"] +# directory = "plexivity/target/var/" +# files = [ +# "config.ini" +# ] + +# [app."ffsync"] +# directory = "ffsync/target/var/" +# files = [ +# "ffsync.ini" +# ] diff --git a/package/ui/js/main.js b/package/ui/js/main.js index cb598a5..084656b 100644 --- a/package/ui/js/main.js +++ b/package/ui/js/main.js @@ -2,19 +2,23 @@ require('codemirror/mode/toml/toml') require('codemirror/mode/xml/xml') require('codemirror/mode/yaml/yaml') require('codemirror/mode/nginx/nginx') +require('codemirror/mode/shell/shell') +require('codemirror/mode/properties/properties') require('codemirror/addon/search/search') require('codemirror/addon/search/searchcursor') +require('codemirror/addon/search/jump-to-line.js') require('codemirror/addon/dialog/dialog') require('codemirror/addon/edit/closebrackets') -require('codemirror/addon/edit/closetag') -require('codemirror/addon/edit/continuelist') require('codemirror/addon/edit/matchtags') -require('codemirror/addon/edit/trailingspace') +require('codemirror/addon/fold/xml-fold') +require('codemirror/addon/edit/matchbrackets') +// require('codemirror/addon/edit/trailingspace') require('codemirror/addon/comment/comment') -require('codemirror/addon/comment/continuecomment') +// require('codemirror/addon/comment/continuecomment') +require('codemirror/keymap/sublime') var CodeMirror = require('codemirror/lib/codemirror') var textArea = document.querySelector('.synoedit .fileContent textarea') @@ -38,7 +42,12 @@ if (typeof CodeMirror === "undefined") { } var editor = CodeMirror.fromTextArea(textArea, { - lineNumbers: true + lineNumbers: true, + keyMap: 'sublime', + autoCloseBrackets: true, + matchBrackets: true, + matchTags: true, + showCursorWhenSelecting: true, // theme: 'monokai' }); }