1+ "use strict" ;
2+
3+ Object . defineProperty ( exports , "__esModule" , {
4+ value : true
5+ } ) ;
6+ exports [ "default" ] = void 0 ;
7+
8+ var _vue = _interopRequireDefault ( require ( "vue" ) ) ;
9+
10+ var _vueRouter = _interopRequireDefault ( require ( "vue-router" ) ) ;
11+
12+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { "default" : obj } ; }
13+
14+ function _typeof ( obj ) { if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof = function _typeof ( obj ) { return typeof obj ; } ; } else { _typeof = function _typeof ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof ( obj ) ; }
15+
16+ function _getRequireWildcardCache ( ) { if ( typeof WeakMap !== "function" ) return null ; var cache = new WeakMap ( ) ; _getRequireWildcardCache = function _getRequireWildcardCache ( ) { return cache ; } ; return cache ; }
17+
18+ function _interopRequireWildcard ( obj ) { if ( obj && obj . __esModule ) { return obj ; } if ( obj === null || _typeof ( obj ) !== "object" && typeof obj !== "function" ) { return { "default" : obj } ; } var cache = _getRequireWildcardCache ( ) ; if ( cache && cache . has ( obj ) ) { return cache . get ( obj ) ; } var newObj = { } ; var hasPropertyDescriptor = Object . defineProperty && Object . getOwnPropertyDescriptor ; for ( var key in obj ) { if ( Object . prototype . hasOwnProperty . call ( obj , key ) ) { var desc = hasPropertyDescriptor ? Object . getOwnPropertyDescriptor ( obj , key ) : null ; if ( desc && ( desc . get || desc . set ) ) { Object . defineProperty ( newObj , key , desc ) ; } else { newObj [ key ] = obj [ key ] ; } } } newObj [ "default" ] = obj ; if ( cache ) { cache . set ( obj , newObj ) ; } return newObj ; }
19+
20+ _vue [ "default" ] . use ( _vueRouter [ "default" ] ) ;
21+
22+ var router = new _vueRouter [ "default" ] ( {
23+ mode : 'history' ,
24+ routes : [ {
25+ path : '/' ,
26+ component : function component ( ) {
27+ return Promise . resolve ( ) . then ( function ( ) {
28+ return _interopRequireWildcard ( require ( './components/home/page.vue' ) ) ;
29+ } ) ;
30+ }
31+ } , {
32+ path : '/account/:id' ,
33+ component : function component ( ) {
34+ return Promise . resolve ( ) . then ( function ( ) {
35+ return _interopRequireWildcard ( require ( './components/user/content.vue' ) ) ;
36+ } ) ;
37+ }
38+ } , {
39+ path : '/account/:id/edit' ,
40+ component : function component ( ) {
41+ return Promise . resolve ( ) . then ( function ( ) {
42+ return _interopRequireWildcard ( require ( './components/user/edit.vue' ) ) ;
43+ } ) ;
44+ }
45+ } , {
46+ path : '/problem/list' ,
47+ component : function component ( ) {
48+ return Promise . resolve ( ) . then ( function ( ) {
49+ return _interopRequireWildcard ( require ( './components/problem/list.vue' ) ) ;
50+ } ) ;
51+ }
52+ } , {
53+ path : '/problem/:id' ,
54+ component : function component ( ) {
55+ return Promise . resolve ( ) . then ( function ( ) {
56+ return _interopRequireWildcard ( require ( './components/problem/content.vue' ) ) ;
57+ } ) ;
58+ }
59+ } , {
60+ path : '/problem/:id/edit' ,
61+ component : function component ( ) {
62+ return Promise . resolve ( ) . then ( function ( ) {
63+ return _interopRequireWildcard ( require ( './components/problem/edit.vue' ) ) ;
64+ } ) ;
65+ }
66+ } , {
67+ path : '/problem/:id/submit' ,
68+ component : function component ( ) {
69+ return Promise . resolve ( ) . then ( function ( ) {
70+ return _interopRequireWildcard ( require ( './components/problem/submit.vue' ) ) ;
71+ } ) ;
72+ }
73+ } , {
74+ path : '/status/list' ,
75+ component : function component ( ) {
76+ return Promise . resolve ( ) . then ( function ( ) {
77+ return _interopRequireWildcard ( require ( './components/status/list.vue' ) ) ;
78+ } ) ;
79+ }
80+ } , {
81+ path : '/status/:id' ,
82+ component : function component ( ) {
83+ return Promise . resolve ( ) . then ( function ( ) {
84+ return _interopRequireWildcard ( require ( './components/status/content.vue' ) ) ;
85+ } ) ;
86+ }
87+ } , {
88+ path : '/app/editor' ,
89+ component : function component ( ) {
90+ return Promise . resolve ( ) . then ( function ( ) {
91+ return _interopRequireWildcard ( require ( './components/app/editor.vue' ) ) ;
92+ } ) ;
93+ }
94+ } , {
95+ path : '*' ,
96+ component : function component ( ) {
97+ return Promise . resolve ( ) . then ( function ( ) {
98+ return _interopRequireWildcard ( require ( './components/404.vue' ) ) ;
99+ } ) ;
100+ }
101+ } ]
102+ } ) ;
103+ var _default = router ;
104+ exports [ "default" ] = _default ;
0 commit comments