-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.coffee
executable file
·103 lines (96 loc) · 2.45 KB
/
app.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
'use strict'
app = angular.module 'angularParseBoilerplate', [
'ng'
'ngResource'
'ui.router'
'ui.bootstrap'
'app.templates'
'angulartics'
'angulartics.google.analytics'
'satellizer'
'mgcrea.ngStrap'
'mwl.calendar'
'ngTagsInput'
'ngMaterial'
'mdDateTime'
]
app.config (
$locationProvider
$stateProvider
$urlRouterProvider
$authProvider
) ->
Parse.initialize('H3mf7FlzKF0fZdNIvGntzqI1TWn0y3gWXjB2FIth','muAXvNfPtfay3imFx07NG0YT2ac2Z33qdrsy9fLV')
$locationProvider.hashPrefix '!'
$stateProvider
.state 'login',
url: '/login',
controller: 'LoginCtrl'
templateUrl: 'login.html'
.state 'logout',
url: '/logout'
controller: 'LogoutCtrl'
templateUrl: 'home.html'
.state 'home', {
url: '/'
views: {
'':
templateUrl: 'home.html'
controller: 'HomeCtrl',
'calendar@home':
templateUrl: 'calendar.html'
controller: 'CalendarCtrl',
'signup@home':
templateUrl: 'signup.html'
controller: 'SignupCtrl',
'about@home':
templateUrl: 'about.html'
controller: 'AboutCtrl'
}
}
.state 'profile',
url: '/profile'
controller: 'ProfileCtrl'
templateUrl: 'profile.html'
.state 'classes',
url: '/classes'
controller: 'ClassesCtrl'
templateUrl: 'classes.html'
.state 'signup',
url: '/signup'
controller: 'SignupCtrl'
templateUrl: 'signup.html'
.state 'invites',
url: '/invites'
controller: 'InvitesCtrl'
templateUrl: 'invites.html'
.state 'terms_and_conditions',
url: '/terms_and_conditions'
controller: 'TermsCondCtrl'
templateUrl: 'terms_and_conditions.html'
.state 'privacypolicy',
url: '/privacypolicy'
controller: 'PrivacyPolicyCtrl'
templateUrl: 'privacypolicy.html'
.state 'reset_password',
url: '/reset_password'
controller: 'ResetPasswordCtrl'
templateUrl: 'reset_password.html'
.state 'addclass',
url: '/addclass'
controller: 'AddClassCtrl'
templateUrl: 'addclass.html'
.state 'new_requirement',
url: '/new_requirement'
controller: 'NewReqCtrl'
templateUrl: 'new_requirement.html'
.state 'new_study_invite',
url: '/new_study_invite'
controller: 'StudyInvCtrl'
templateUrl: 'new_study_invite.html'
$urlRouterProvider.otherwise '/'
$authProvider.google(
clientId: '893059616848-cut5s8vmq30stksu1k96fssu20gtcoq8.apps.googleusercontent.com'
)
app.run ($rootScope, $state) ->
$rootScope.$state = $state