From 7bb53c64da2dcf88894bfd31503accdd81498f3d Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Wed, 3 Jun 2020 10:06:52 +0200 Subject: Update to new version 5.4 Signed-off-by: Thomas Duval Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea --- moon_gui/static/app/common/404/404.tpl.html | 3 -- .../common/compatibility/compatibility.tpl.html | 26 ---------- .../static/app/common/footer/footer.controller.js | 54 --------------------- moon_gui/static/app/common/footer/footer.tpl.html | 7 --- .../static/app/common/header/header.controller.js | 56 ---------------------- moon_gui/static/app/common/header/header.tpl.html | 52 -------------------- moon_gui/static/app/common/loader/loader.dir.js | 19 -------- moon_gui/static/app/common/loader/loader.tpl.html | 1 - .../static/app/common/waiting/waiting.tpl.html | 15 ------ 9 files changed, 233 deletions(-) delete mode 100755 moon_gui/static/app/common/404/404.tpl.html delete mode 100755 moon_gui/static/app/common/compatibility/compatibility.tpl.html delete mode 100755 moon_gui/static/app/common/footer/footer.controller.js delete mode 100755 moon_gui/static/app/common/footer/footer.tpl.html delete mode 100755 moon_gui/static/app/common/header/header.controller.js delete mode 100755 moon_gui/static/app/common/header/header.tpl.html delete mode 100755 moon_gui/static/app/common/loader/loader.dir.js delete mode 100755 moon_gui/static/app/common/loader/loader.tpl.html delete mode 100755 moon_gui/static/app/common/waiting/waiting.tpl.html (limited to 'moon_gui/static/app/common') diff --git a/moon_gui/static/app/common/404/404.tpl.html b/moon_gui/static/app/common/404/404.tpl.html deleted file mode 100755 index 61e0420c..00000000 --- a/moon_gui/static/app/common/404/404.tpl.html +++ /dev/null @@ -1,3 +0,0 @@ -
Not found!
- -
Go Projects ?
\ No newline at end of file diff --git a/moon_gui/static/app/common/compatibility/compatibility.tpl.html b/moon_gui/static/app/common/compatibility/compatibility.tpl.html deleted file mode 100755 index 0e32dc4f..00000000 --- a/moon_gui/static/app/common/compatibility/compatibility.tpl.html +++ /dev/null @@ -1,26 +0,0 @@ - \ No newline at end of file diff --git a/moon_gui/static/app/common/footer/footer.controller.js b/moon_gui/static/app/common/footer/footer.controller.js deleted file mode 100755 index d7506840..00000000 --- a/moon_gui/static/app/common/footer/footer.controller.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @author arnaud marhin - */ - -(function() { - - 'use strict'; - - angular - .module('moon') - .controller('FooterController', FooterController); - - FooterController.$inject = ['$modal', 'versionService']; - - function FooterController($modal, versionService) { - - var footer = this; - - footer.version = null; - footer.browsersModal = null; - footer.showBrowsersCompliance = showBrowsersCompliance; - - newBrowsersModal(); - currentVersion(); - - function newBrowsersModal() { - - footer.browsersModal = $modal({ template: 'html/common/compatibility/compatibility.tpl.html', show: false }); - - return footer.browsersModal; - - } - - function showBrowsersCompliance() { - footer.browsersModal.$promise.then(footer.browsersModal.show); - } - - function currentVersion() { - - var _self = footer; - - versionService.version.get().$promise.then(function(data) { - - _self.version = (data.version) ? data.version : 'SNAPSHOT'; - - return _self.version; - - }); - - } - - } - -})(); \ No newline at end of file diff --git a/moon_gui/static/app/common/footer/footer.tpl.html b/moon_gui/static/app/common/footer/footer.tpl.html deleted file mode 100755 index aacb392d..00000000 --- a/moon_gui/static/app/common/footer/footer.tpl.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/moon_gui/static/app/common/header/header.controller.js b/moon_gui/static/app/common/header/header.controller.js deleted file mode 100755 index 13ef4d6f..00000000 --- a/moon_gui/static/app/common/header/header.controller.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @author arnaud marhin - */ - -(function() { - - 'use strict'; - - angular - .module('moon') - .controller('HeaderController', HeaderController); - - HeaderController.$inject = ['$translate', 'menuService', 'authenticationService', 'alertService']; - - function HeaderController($translate, menuService, authenticationService, alertService) { - - var header = this; - - /* - * - */ - - header.isProjectTabActive = menuService.isProjectTabActive; - header.isPDPTabActive = menuService.isPDPTabActive; - header.isLogsTabActive = menuService.isLogsTabActive; - header.isPolicyTabActive = menuService.isPolicyTabActive; - header.isModelTabActive = menuService.isModelTabActive; - header.changeLocale = changeLocale; - header.logout = logout; - header.currentLanguage = $translate.use(); - - header.getUser = authenticationService.GetUser; - - /* - * - */ - - function changeLocale(localeKey, event) { - - event.preventDefault(); - $translate.use(localeKey); - $translate.preferredLanguage(localeKey); - header.currentLanguage = localeKey; - - } - - function logout(){ - - authenticationService.Logout(); - $translate('moon.logout.success').then( function(translatedValue) { - alertService.alertSuccess(translatedValue); - }); - - } - } -})(); \ No newline at end of file diff --git a/moon_gui/static/app/common/header/header.tpl.html b/moon_gui/static/app/common/header/header.tpl.html deleted file mode 100755 index 7c7633d1..00000000 --- a/moon_gui/static/app/common/header/header.tpl.html +++ /dev/null @@ -1,52 +0,0 @@ - diff --git a/moon_gui/static/app/common/loader/loader.dir.js b/moon_gui/static/app/common/loader/loader.dir.js deleted file mode 100755 index ba40c121..00000000 --- a/moon_gui/static/app/common/loader/loader.dir.js +++ /dev/null @@ -1,19 +0,0 @@ -(function() { - - 'use strict'; - - angular - .module('moon') - .directive('moonLoader', moonLoader); - - moonLoader.$inject = []; - - function moonLoader() { - - return { - templateUrl : 'html/common/loader/loader.tpl.html', - restrict : 'E' - }; - } - -})(); diff --git a/moon_gui/static/app/common/loader/loader.tpl.html b/moon_gui/static/app/common/loader/loader.tpl.html deleted file mode 100755 index 51da439f..00000000 --- a/moon_gui/static/app/common/loader/loader.tpl.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/moon_gui/static/app/common/waiting/waiting.tpl.html b/moon_gui/static/app/common/waiting/waiting.tpl.html deleted file mode 100755 index 6c042635..00000000 --- a/moon_gui/static/app/common/waiting/waiting.tpl.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file -- cgit 1.2.3-korg