feat(core): add support settings into templates

This commit is contained in:
OldHawk
2018-04-03 14:33:08 +08:00
parent 6882c5bb0b
commit 8d27f9b758
6 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
vm.lang = getStorageLangService.getLang();
vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app;
vm.supportConfig = MeanTorrentConfig.meanTorrentConfig.support;
vm.scoreConfig = MeanTorrentConfig.meanTorrentConfig.score;
vm.announce = MeanTorrentConfig.meanTorrentConfig.announce;
vm.rssConfig = MeanTorrentConfig.meanTorrentConfig.rss;
@@ -75,6 +76,7 @@
vm.getTemplateMarkedContent = function () {
var tmp = $filter('fmt')(vm.templateFileContent, {
appConfig: vm.appConfig,
supportConfig: vm.supportConfig,
announceConfig: vm.announce,
scoreConfig: vm.scoreConfig,
rssConfig: vm.rssConfig,