mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-01 12:10:33 +00:00
51 lines
1.2 KiB
JavaScript
51 lines
1.2 KiB
JavaScript
/**
|
|
* @ngdoc overview
|
|
* @name superProductivity.routes
|
|
* @description
|
|
* # superProductivity.routes
|
|
*
|
|
* Routes module. All app states are defined here.
|
|
*/
|
|
|
|
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('superProductivity')
|
|
.config(routerHelperProvider);
|
|
|
|
/* @ngInject */
|
|
function routerHelperProvider($stateProvider, $urlRouterProvider) {
|
|
|
|
$urlRouterProvider.otherwise('/');
|
|
|
|
$stateProvider
|
|
.state('daily-planner', {
|
|
url: '/',
|
|
template: '<daily-planner></daily-planner>'
|
|
})
|
|
.state('work-view', {
|
|
url: '/work-view',
|
|
template: '<work-view></work-view>'
|
|
})
|
|
.state('settings', {
|
|
url: '/settings',
|
|
controller: 'SettingsCtrl',
|
|
controllerAs: 'vm',
|
|
templateUrl: 'scripts/routes/settings/settings-c.html'
|
|
})
|
|
.state('daily-summary', {
|
|
url: '/daily-summary',
|
|
template: '<daily-summary></daily-summary>'
|
|
})
|
|
.state('done-tasks-backlog', {
|
|
url: '/done-tasks-backlog',
|
|
template: '<done-tasks-backlog></done-tasks-backlog>'
|
|
})
|
|
.state('daily-agenda', {
|
|
url: '/daily-agenda',
|
|
template: '<daily-agenda></daily-agenda>'
|
|
})
|
|
/* STATES-NEEDLE - DO NOT REMOVE THIS */;
|
|
}
|
|
})();
|