2016-07-20 12:25:51 +02:00
|
|
|
/**
|
|
|
|
* File: router.js
|
|
|
|
* Author: Markus Grigull <mgrigull@eonerc.rwth-aachen.de>
|
|
|
|
* Date: 26.06.2016
|
|
|
|
* Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
|
|
|
* This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential.
|
|
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
|
|
**********************************************************************************/
|
|
|
|
|
Initial Commit from Ember CLI v2.5.1
_...,
,:^;,...;
-+===;. ,,--++====++-,,, .: /.....,
:::::~+++++#:,+#++++++++++++++++++#*..: /,......
(,,,,,,::=+++##++++++++++++++++++++++#. :....../
...,,,,,::++++++++++++++++++++++++++++++*..,...:
*..+...,#@@@@@@@@@++++++++++++++++++++++#*....*
@#,;##############@@@+*+#@@@@@@@@@@#*++#..<
*@##@@+,-*^^^*-+@####@@@######@@@#####@@,,,+
@#@* @#@@@@#@@+--*^^*--#@@@@@@#
@#@. @# @##+++@#, .@@#@@
#@# @@ +@@++++#@@ @@ :@@
:@#* @#@++++++@#* #@ @@+
:*+@@#;,.__.+@#@+,-^^.++@# @@++
;* :*@@@##@@@@;++r._j^.+@##@+,.__,,@@++.
/* ........+++++++++++++#@@@@@###@@#++++,
,: ...,@@@#++===----==@@@####,,....+++++
.: ......@@##@\ ; :@####@,,...... +++.
; .........@###, ; ;xx#@;,,..... *;+,
| ........,*;xxxx--^--=xxx,........ :+#;
; ......,,;xxxxxxxxxxxxx;,..... *+#
; ......,::xxxx;. ...... +. .
*; ......... +### .... / ,. /:| ,.
.+: ... ;##++##, . ,#. (..v..;*./
** ## ###* .:*&&&+. \.,....<,
#&+**==-..,,__ ;## ### :,*+&&&&&&&v+#&,,.._/
#&&&&*...,::,,. ##; ,##* .*****;:&&&&&&&&&
,+*+;~*..*** *.* ### ###* ******* *+#&;*
##,;## **** :, **
##### ## ### ###, ######## .##### ;## ##
####### ;## #### ,###. ########## ######## ### ####
### ### ### ########## #### #### ,## ### #######*
### ,### ##############: ## ### #### ,## :#### ### ##;
########## ########### ## .## ,### ####### ##### :######
###### .###### #### ## ### ### ######* :##### ####
############# #### ################ ######## ###
#####* *#* #: :### *###* *#### #*
2016-06-26 11:08:09 +02:00
|
|
|
import Ember from 'ember';
|
|
|
|
import config from './config/environment';
|
|
|
|
|
|
|
|
const Router = Ember.Router.extend({
|
|
|
|
location: config.locationType
|
|
|
|
});
|
|
|
|
|
|
|
|
Router.map(function() {
|
2016-06-26 13:35:06 +02:00
|
|
|
this.route('login');
|
2016-07-11 22:03:47 +02:00
|
|
|
this.route('logout');
|
2016-06-26 13:35:06 +02:00
|
|
|
|
|
|
|
this.route('projects');
|
|
|
|
this.route('project', function() {
|
|
|
|
this.route('index', { path: '/:projectid' });
|
|
|
|
});
|
2016-06-28 10:00:38 +02:00
|
|
|
|
2016-07-11 22:03:47 +02:00
|
|
|
this.route('me');
|
2016-06-29 17:08:42 +02:00
|
|
|
|
2016-06-28 10:57:34 +02:00
|
|
|
this.route('visualization', function() {
|
|
|
|
this.route('index', { path: '/:visualizationid' });
|
|
|
|
this.route('edit', { path: '/edit/:visualizationid' });
|
|
|
|
});
|
2016-06-29 17:08:42 +02:00
|
|
|
|
2016-07-11 22:03:47 +02:00
|
|
|
this.route('user', function() {
|
|
|
|
this.route('edit', { path: '/edit/:userid' });
|
|
|
|
this.route('new');
|
|
|
|
this.route('delete', { path: '/delete/:userid' });
|
|
|
|
});
|
|
|
|
|
2016-06-29 17:08:42 +02:00
|
|
|
this.route('404', { path: '/*path' });
|
2016-07-20 16:54:20 +02:00
|
|
|
|
|
|
|
this.route('simulation-model', function() {
|
|
|
|
this.route('index', { path: '/:modelid' });
|
|
|
|
});
|
2016-07-26 19:26:15 +02:00
|
|
|
|
|
|
|
this.route('simulations');
|
|
|
|
this.route('simulation', function() {
|
|
|
|
this.route('index', { path: '/:simulationid' });
|
|
|
|
});
|
2016-09-30 18:57:19 +02:00
|
|
|
|
|
|
|
this.route('simulators');
|
|
|
|
this.route('simulator');
|
Initial Commit from Ember CLI v2.5.1
_...,
,:^;,...;
-+===;. ,,--++====++-,,, .: /.....,
:::::~+++++#:,+#++++++++++++++++++#*..: /,......
(,,,,,,::=+++##++++++++++++++++++++++#. :....../
...,,,,,::++++++++++++++++++++++++++++++*..,...:
*..+...,#@@@@@@@@@++++++++++++++++++++++#*....*
@#,;##############@@@+*+#@@@@@@@@@@#*++#..<
*@##@@+,-*^^^*-+@####@@@######@@@#####@@,,,+
@#@* @#@@@@#@@+--*^^*--#@@@@@@#
@#@. @# @##+++@#, .@@#@@
#@# @@ +@@++++#@@ @@ :@@
:@#* @#@++++++@#* #@ @@+
:*+@@#;,.__.+@#@+,-^^.++@# @@++
;* :*@@@##@@@@;++r._j^.+@##@+,.__,,@@++.
/* ........+++++++++++++#@@@@@###@@#++++,
,: ...,@@@#++===----==@@@####,,....+++++
.: ......@@##@\ ; :@####@,,...... +++.
; .........@###, ; ;xx#@;,,..... *;+,
| ........,*;xxxx--^--=xxx,........ :+#;
; ......,,;xxxxxxxxxxxxx;,..... *+#
; ......,::xxxx;. ...... +. .
*; ......... +### .... / ,. /:| ,.
.+: ... ;##++##, . ,#. (..v..;*./
** ## ###* .:*&&&+. \.,....<,
#&+**==-..,,__ ;## ### :,*+&&&&&&&v+#&,,.._/
#&&&&*...,::,,. ##; ,##* .*****;:&&&&&&&&&
,+*+;~*..*** *.* ### ###* ******* *+#&;*
##,;## **** :, **
##### ## ### ###, ######## .##### ;## ##
####### ;## #### ,###. ########## ######## ### ####
### ### ### ########## #### #### ,## ### #######*
### ,### ##############: ## ### #### ,## :#### ### ##;
########## ########### ## .## ,### ####### ##### :######
###### .###### #### ## ### ### ######* :##### ####
############# #### ################ ######## ###
#####* *#* #: :### *###* *#### #*
2016-06-26 11:08:09 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default Router;
|