Skip to content

Commit

Permalink
update database
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Oct 22, 2018
1 parent 97df7ac commit 2052cd6
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package/src/synoedit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
212 changes: 209 additions & 3 deletions package/ui/database.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand All @@ -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"
# ]
19 changes: 14 additions & 5 deletions package/ui/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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'
});
}
Expand Down

0 comments on commit 2052cd6

Please sign in to comment.