File tree Expand file tree Collapse file tree 9 files changed +206
-35
lines changed
Analytics/App_Plugins/Analytics/backOffice/AnalyticsTree/partials Expand file tree Collapse file tree 9 files changed +206
-35
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
- {
2
- "Id": "4113171",
3
- "Name": "www.nibble.be",
4
- "Created": "2008-04-13T14:26:12+02:00",
5
- "Updated": "2011-07-20T00:58:59.981+02:00"
6
- }
1
+
Original file line number Diff line number Diff line change 12
12
13
13
$scope . $watch ( 'dateFilter' , function ( ) {
14
14
15
-
15
+ settingsResource . setDateFilter ( $scope . dateFilter . startDate , $scope . dateFilter . endDate ) ;
16
16
//Get Profile
17
17
settingsResource . getprofile ( ) . then ( function ( response ) {
18
18
$scope . profile = response . data ;
Original file line number Diff line number Diff line change 1
1
< div ng-controller ="Analytics.SettingsController ">
2
- < div class ="umb-pane ">
2
+ < div class ="umb-pane form-horizontal ">
3
+
3
4
< umb-control-group ng-hide ="hasAuthd() " label ="Authorisation " description ="Login with Google via oAuth to verify ">
4
5
< button class ="btn btn-success " ng-click ="auth() "> < span class ="icon-lock "> </ span > Authorize</ button >
5
6
</ umb-control-group >
16
17
Account
17
18
< small > Select which account you wish to view settings from</ small >
18
19
</ label >
19
-
20
+
20
21
< div class ="controls controls-row ">
21
22
22
23
< select name ="account " ng-model ="selectedaccount " ng-change ="accountSelected(selectedaccount) " ng-options ="account.Name for account in accounts ">
@@ -46,10 +47,10 @@ <h5>Web Property Id: {{ selectedprofile.WebPropertyId }}</h5>
46
47
</ div >
47
48
48
49
49
- <!-- <h4>DEBUG</h4>
50
- <textarea>{{ settings | json }}</textarea><br />
51
- <textarea>{{ selectedaccount | json }}</textarea><br/>
52
- <textarea>{{ selectedprofile | json }}</textarea>-->
50
+ <!-- <h4>DEBUG</h4>
51
+ <textarea>{{ settings | json }}</textarea><br />
52
+ <textarea>{{ selectedaccount | json }}</textarea><br/>
53
+ <textarea>{{ selectedprofile | json }}</textarea>-->
53
54
54
55
55
56
< div class ="umb-tab-buttons ">
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ angular.module("umbraco.resources")
52
52
if ( dateFilter . startDate == null ) {
53
53
dateFilter . startDate = moment ( ) . subtract ( 'days' , 29 ) . format ( 'YYYY-MM-DD' ) ;
54
54
dateFilter . endDate = moment ( ) . format ( 'YYYY-MM-DD' ) ;
55
- setDateFilter ( dateFilter . startDate , dateFilter . endDate ) ;
55
+ $cookieStore . put ( "analyticsStartDate" , dateFilter . startDate ) ;
56
+ $cookieStore . put ( "analyticsEndDate" , dateFilter . endDate ) ;
56
57
}
57
58
58
59
return dateFilter ;
Original file line number Diff line number Diff line change 1
- {
2
- "Id": "8245037",
3
- "AccountId": "4113171",
4
- "WebPropertyId": "UA-4113171-1",
5
- "InternalWebPropertyId": "7923617",
6
- "Name": "www.nibble.be",
7
- "Currency": "USD",
8
- "Timezone": "Europe/Brussels",
9
- "WebsiteUrl": "www.nibble.be",
10
- "Type": "WEB",
11
- "Created": "2008-04-13T14:26:12+02:00",
12
- "Updated": "2011-09-20T09:34:04.996+02:00"
13
- }
1
+
Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" encoding =" utf-8" ?>
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Analytics >
3
3
<ClientId label =" Client ID" description =" This is the Client ID key from the Google API" >206456221167-1a6npdlit92260gfaekomgon8cm0ratg</ClientId >
4
4
<ClientSecret label =" Client Secret" description =" This is the Client Secret from the Google API" >_LklwvmJC0EIkEprcRB4keQ_</ClientSecret >
5
- <RefreshToken label =" Refresh Token" description =" The refresh token used to acquire new access tokens. This is sensitive information." >1/8T0O1zrI2lVG7exZzmvUMlhNQPbN7NL2Tp6ijimsCvo </RefreshToken >
5
+ <RefreshToken label =" Refresh Token" description =" The refresh token used to acquire new access tokens. This is sensitive information." ></RefreshToken >
6
6
</Analytics >
Original file line number Diff line number Diff line change 1
1
< div ng-controller ="Analytics.SettingsController ">
2
- < div class ="umb-pane ">
2
+ < div class ="umb-pane form-horizontal ">
3
+
3
4
< umb-control-group ng-hide ="hasAuthd() " label ="Authorisation " description ="Login with Google via oAuth to verify ">
4
5
< button class ="btn btn-success " ng-click ="auth() "> < span class ="icon-lock "> </ span > Authorize</ button >
5
6
</ umb-control-group >
16
17
Account
17
18
< small > Select which account you wish to view settings from</ small >
18
19
</ label >
19
-
20
+
20
21
< div class ="controls controls-row ">
21
22
22
23
< select name ="account " ng-model ="selectedaccount " ng-change ="accountSelected(selectedaccount) " ng-options ="account.Name for account in accounts ">
@@ -46,10 +47,10 @@ <h5>Web Property Id: {{ selectedprofile.WebPropertyId }}</h5>
46
47
</ div >
47
48
48
49
49
- <!-- <h4>DEBUG</h4>
50
- <textarea>{{ settings | json }}</textarea><br />
51
- <textarea>{{ selectedaccount | json }}</textarea><br/>
52
- <textarea>{{ selectedprofile | json }}</textarea>-->
50
+ <!-- <h4>DEBUG</h4>
51
+ <textarea>{{ settings | json }}</textarea><br />
52
+ <textarea>{{ selectedaccount | json }}</textarea><br/>
53
+ <textarea>{{ selectedprofile | json }}</textarea>-->
53
54
54
55
55
56
< div class ="umb-tab-buttons ">
You can’t perform that action at this time.
0 commit comments