add many multilingual fields

add torrents and forum topbar menu
This commit is contained in:
OldHawk
2017-03-26 00:52:31 +08:00
parent ecad977de7
commit 111ab49b06
14 changed files with 112 additions and 11 deletions

View File

@@ -0,0 +1,18 @@
(function () {
'use strict';
angular
.module('forums')
.run(menuConfig);
menuConfig.$inject = ['menuService', '$translate'];
function menuConfig(menuService, $translate) {
// Set top bar menu items
menuService.addMenuItem('topbar', {
title: $translate.instant('MENU_FORUMS'),
state: 'forums',
position: 1
});
}
}());

View File

@@ -0,0 +1,23 @@
(function () {
'use strict';
angular
.module('forums.routes')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
function routeConfig($stateProvider) {
$stateProvider
.state('forums', {
url: '/forums',
templateUrl: '',
controller: '',
controllerAs: '',
data: {
//roles: ['user', 'admin'],
pageTitle: 'Forums'
}
});
}
}());

View File

@@ -0,0 +1,7 @@
(function (app) {
'use strict';
app.registerModule('forums', ['core']);// The core module is required for special route handling; see /core/client/config/core.client.routes
app.registerModule('forums.services');
app.registerModule('forums.routes', ['ui.router', 'core.routes', 'forums.services']);
}(ApplicationConfiguration));