2016-10-18 20:33:55 +02:00
|
|
|
'use strict';
|
2016-09-03 13:24:54 +02:00
|
|
|
angular.module('warehost')
|
|
|
|
.config(['$stateProvider',function ($stateProvider) {
|
|
|
|
$stateProvider
|
|
|
|
.state('app.host', {
|
2017-10-04 10:18:09 +02:00
|
|
|
url:'/host'
|
2016-09-03 13:24:54 +02:00
|
|
|
})
|
|
|
|
.state('app.host.index', {
|
|
|
|
url:'/',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/home.html',
|
|
|
|
controller:function(alert){
|
|
|
|
alert.set({});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-10-17 12:50:31 +02:00
|
|
|
})
|
|
|
|
.state('app.host.signup', {
|
2016-12-07 21:33:51 +01:00
|
|
|
url:'/signup',
|
2016-10-17 12:50:31 +02:00
|
|
|
views:{
|
|
|
|
'@app':{
|
2016-12-07 21:33:51 +01:00
|
|
|
templateUrl: 'app/host/signup.html',
|
|
|
|
controller:'SignupHostCtrl'
|
2016-10-17 12:50:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.host.domain', {
|
|
|
|
url:'/domain',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/host/domain.html',
|
|
|
|
controller:'DomainHostCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2016-10-22 21:34:20 +02:00
|
|
|
.state('app.host.web', {
|
|
|
|
url:'/domain/:domainid/web',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/host/web.html',
|
|
|
|
controller:'WebDomainHostCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.host.mail', {
|
|
|
|
url:'/domain/:domainid/mail',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/host/mail.html',
|
|
|
|
controller:'MailDomainHostCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
2016-10-17 12:50:31 +02:00
|
|
|
.state('app.host.database', {
|
|
|
|
url:'/database',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/host/database.html',
|
|
|
|
controller:'DatabaseHostCtrl'
|
|
|
|
}
|
|
|
|
}
|
2016-10-18 20:33:55 +02:00
|
|
|
})
|
|
|
|
.state('app.host.A', {
|
|
|
|
url:'/admin',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/admin.html',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.host.A.profil', {
|
|
|
|
url:'/profil',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
2016-10-18 21:11:56 +02:00
|
|
|
templateUrl: 'app/host/admin/profil.html',
|
|
|
|
controller:'ProfilAdminHostCtrl'
|
2016-10-18 20:33:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.host.A.domain', {
|
|
|
|
url:'/domain',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/host/admin/domain.html',
|
|
|
|
controller:'DomainAdminHostCtrl'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.state('app.host.A.database', {
|
|
|
|
url:'/database',
|
|
|
|
views:{
|
|
|
|
'@app':{
|
|
|
|
templateUrl: 'app/host/admin/database.html',
|
|
|
|
controller:'DatabaseAdminHostCtrl'
|
|
|
|
}
|
|
|
|
}
|
2016-09-03 13:24:54 +02:00
|
|
|
});
|
|
|
|
}]);
|