Skip to content

Commit 0173108

Browse files
author
Tim Geyssens
committed
Fixes allignment on settings page
1 parent 6bd49cd commit 0173108

File tree

9 files changed

+206
-35
lines changed

9 files changed

+206
-35
lines changed

Analytics.Site/App_Data/Logs/UmbracoTraceLog.txt

Lines changed: 185 additions & 0 deletions
Large diffs are not rendered by default.

Analytics.Site/App_Data/Umbraco.sdf

0 Bytes
Binary file not shown.
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
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+


Analytics.Site/App_Plugins/Analytics/backOffice/AnalyticsTree/controllers/PageViews.Controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
$scope.$watch('dateFilter', function () {
1414

15-
15+
settingsResource.setDateFilter($scope.dateFilter.startDate, $scope.dateFilter.endDate);
1616
//Get Profile
1717
settingsResource.getprofile().then(function (response) {
1818
$scope.profile = response.data;

Analytics.Site/App_Plugins/Analytics/backOffice/AnalyticsTree/partials/settings.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div ng-controller="Analytics.SettingsController">
2-
<div class="umb-pane">
2+
<div class="umb-pane form-horizontal">
3+
34
<umb-control-group ng-hide="hasAuthd()" label="Authorisation" description="Login with Google via oAuth to verify">
45
<button class="btn btn-success" ng-click="auth()"><span class="icon-lock"></span> Authorize</button>
56
</umb-control-group>
@@ -16,7 +17,7 @@
1617
Account
1718
<small>Select which account you wish to view settings from</small>
1819
</label>
19-
20+
2021
<div class="controls controls-row">
2122

2223
<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>
4647
</div>
4748

4849

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>-->
5354

5455

5556
<div class="umb-tab-buttons">

Analytics.Site/App_Plugins/Analytics/backOffice/AnalyticsTree/resources/Settings.Resource.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ angular.module("umbraco.resources")
5252
if (dateFilter.startDate == null) {
5353
dateFilter.startDate = moment().subtract('days', 29).format('YYYY-MM-DD');
5454
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);
5657
}
5758

5859
return dateFilter;
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
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+

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<Analytics>
33
<ClientId label="Client ID" description="This is the Client ID key from the Google API">206456221167-1a6npdlit92260gfaekomgon8cm0ratg</ClientId>
44
<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>
66
</Analytics>

Analytics/App_Plugins/Analytics/backOffice/AnalyticsTree/partials/settings.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div ng-controller="Analytics.SettingsController">
2-
<div class="umb-pane">
2+
<div class="umb-pane form-horizontal">
3+
34
<umb-control-group ng-hide="hasAuthd()" label="Authorisation" description="Login with Google via oAuth to verify">
45
<button class="btn btn-success" ng-click="auth()"><span class="icon-lock"></span> Authorize</button>
56
</umb-control-group>
@@ -16,7 +17,7 @@
1617
Account
1718
<small>Select which account you wish to view settings from</small>
1819
</label>
19-
20+
2021
<div class="controls controls-row">
2122

2223
<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>
4647
</div>
4748

4849

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>-->
5354

5455

5556
<div class="umb-tab-buttons">

0 commit comments

Comments
 (0)