From 8d27f9b758b7fe89b2fa4e4f448d734e38c1e86b Mon Sep 17 00:00:00 2001 From: OldHawk Date: Tue, 3 Apr 2018 14:33:08 +0800 Subject: [PATCH] feat(core): add support settings into templates --- modules/about/client/controllers/about.client.controller.js | 2 ++ .../torrents/client/controllers/uploads.client.controller.js | 2 ++ .../client/controllers/authentication.client.controller.js | 2 ++ .../users/client/controllers/score/score.client.controller.js | 2 ++ .../client/controllers/status/warning.client.controller.js | 2 ++ modules/vip/client/controllers/vip.client.controller.js | 2 ++ 6 files changed, 12 insertions(+) diff --git a/modules/about/client/controllers/about.client.controller.js b/modules/about/client/controllers/about.client.controller.js index 04b94a8b..b117d6a8 100644 --- a/modules/about/client/controllers/about.client.controller.js +++ b/modules/about/client/controllers/about.client.controller.js @@ -20,6 +20,7 @@ vm.lang = getStorageLangService.getLang(); vm.blackListConfig = MeanTorrentConfig.meanTorrentConfig.clientBlackList; vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app; + vm.supportConfig = MeanTorrentConfig.meanTorrentConfig.support; vm.scoreConfig = MeanTorrentConfig.meanTorrentConfig.score; vm.announce = MeanTorrentConfig.meanTorrentConfig.announce; vm.itemsPerPageConfig = MeanTorrentConfig.meanTorrentConfig.itemsPerPage; @@ -67,6 +68,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, diff --git a/modules/torrents/client/controllers/uploads.client.controller.js b/modules/torrents/client/controllers/uploads.client.controller.js index 62a90713..0e56ffad 100644 --- a/modules/torrents/client/controllers/uploads.client.controller.js +++ b/modules/torrents/client/controllers/uploads.client.controller.js @@ -17,6 +17,7 @@ vm.tmdbConfig = MeanTorrentConfig.meanTorrentConfig.tmdbConfig; vm.imdbConfig = MeanTorrentConfig.meanTorrentConfig.imdbConfig; vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app; + vm.supportConfig = MeanTorrentConfig.meanTorrentConfig.support; vm.scoreConfig = MeanTorrentConfig.meanTorrentConfig.score; vm.itemsPerPageConfig = MeanTorrentConfig.meanTorrentConfig.itemsPerPage; vm.torrentType = MeanTorrentConfig.meanTorrentConfig.torrentType; @@ -63,6 +64,7 @@ vm.getTemplateMarkedContent = function () { var tmp = $filter('fmt')(vm.templateFileContent, { appConfig: vm.appConfig, + supportConfig: vm.supportConfig, announceConfig: vm.announceConfig, scoreConfig: vm.scoreConfig, rssConfig: vm.rssConfig, diff --git a/modules/users/client/controllers/authentication.client.controller.js b/modules/users/client/controllers/authentication.client.controller.js index 7446477e..76e72006 100644 --- a/modules/users/client/controllers/authentication.client.controller.js +++ b/modules/users/client/controllers/authentication.client.controller.js @@ -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, diff --git a/modules/users/client/controllers/score/score.client.controller.js b/modules/users/client/controllers/score/score.client.controller.js index f1f9be22..66a7303f 100644 --- a/modules/users/client/controllers/score/score.client.controller.js +++ b/modules/users/client/controllers/score/score.client.controller.js @@ -15,6 +15,7 @@ vm.inviteConfig = MeanTorrentConfig.meanTorrentConfig.invite; vm.tmdbConfig = MeanTorrentConfig.meanTorrentConfig.tmdbConfig; vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app; + vm.supportConfig = MeanTorrentConfig.meanTorrentConfig.support; vm.itemsPerPageConfig = MeanTorrentConfig.meanTorrentConfig.itemsPerPage; vm.torrentType = MeanTorrentConfig.meanTorrentConfig.torrentType; vm.inputLengthConfig = MeanTorrentConfig.meanTorrentConfig.inputLength; @@ -68,6 +69,7 @@ vm.getTemplateMarkedContent = function (cnt) { var tmp = $filter('fmt')(cnt, { appConfig: vm.appConfig, + supportConfig: vm.supportConfig, announceConfig: vm.announceConfig, scoreConfig: vm.scoreConfig, rssConfig: vm.rssConfig, diff --git a/modules/users/client/controllers/status/warning.client.controller.js b/modules/users/client/controllers/status/warning.client.controller.js index 944f4863..215f5a6b 100644 --- a/modules/users/client/controllers/status/warning.client.controller.js +++ b/modules/users/client/controllers/status/warning.client.controller.js @@ -18,6 +18,7 @@ vm.user = Authentication.user; vm.RTS = ResourcesTagsServices; 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; @@ -55,6 +56,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, diff --git a/modules/vip/client/controllers/vip.client.controller.js b/modules/vip/client/controllers/vip.client.controller.js index 288a4f32..fe18e583 100644 --- a/modules/vip/client/controllers/vip.client.controller.js +++ b/modules/vip/client/controllers/vip.client.controller.js @@ -21,6 +21,7 @@ vm.itemsPerPageConfig = MeanTorrentConfig.meanTorrentConfig.itemsPerPage; vm.announceConfig = MeanTorrentConfig.meanTorrentConfig.announce; vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app; + vm.supportConfig = MeanTorrentConfig.meanTorrentConfig.support; vm.scoreConfig = MeanTorrentConfig.meanTorrentConfig.score; vm.rssConfig = MeanTorrentConfig.meanTorrentConfig.rss; vm.ircConfig = MeanTorrentConfig.meanTorrentConfig.ircAnnounce; @@ -65,6 +66,7 @@ vm.getTemplateMarkedContent = function () { var tmp = $filter('fmt')(vm.templateFileContent, { appConfig: vm.appConfig, + supportConfig: vm.supportConfig, announceConfig: vm.announceConfig, scoreConfig: vm.scoreConfig, rssConfig: vm.rssConfig,