Skip to content

Commit 9e9ab6e

Browse files
authored
Merge branch 'dev' into 105-register-page-render-issues
2 parents 3b52774 + 5d09d55 commit 9e9ab6e

9 files changed

Lines changed: 671 additions & 174 deletions

File tree

src/components/timeline/timeline.scss

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,40 @@ timeline {
113113
}
114114
}
115115
}
116-
.label-md{
117-
margin: 13px 8px -15px 0;
116+
117+
118+
.list-ios > .item-block:last-child, .list-ios > .item-wrapper:last-child .item-block{
119+
border-bottom: none;
120+
}
121+
122+
.list-ios > .item-block:first-child {
123+
border-top: none;
124+
}
125+
126+
.list-ios {
127+
margin: -1px 0 20px !important;
118128
}
119129

130+
131+
120132
&:before {
121133
left: 3% !important;
122134
}
123135
.list, .list-md{
124136
margin-left:3% !important;
125137
}
126138

139+
.item.item-md .checkbox-md {
140+
margin: -6px 14px 8px -35px !important;
141+
padding-left: 4%;
142+
padding-top: 2%;
143+
}
144+
127145
.checkbox-ios {
128146
// position: absolute !important;
129147
margin: -6px 14px 8px -35px !important;
148+
padding-left: 4%;
149+
padding-top: 2%;
130150
}
131151

132152

src/pages/dashboard/dashboard.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,12 @@ export class DashboardPage {
3232
{
3333
backgroundColor: ["rgba(0,0,255, .6)", "rgba(255,0,0, .6)", "rgba(128,0,128, .6)", "rgba(0,128,0, .6)", "rgba(255,165,0, .6)", "rgba(0,128,128, .6)", "rgba(255,0,255, .6)", "rgba(0,255,0, .6)"],
3434
borderColor: "black",
35-
data: [10, 0, 5, 2, 2, 5, 8, 1]
35+
data: [1, 1, 1, 1, 1, 1, 1, 2]
3636
}
3737
]
3838
},
3939

4040
options: {
41-
scales: {
42-
ticks: {
43-
beginAtZero: true,
44-
min: 0,
45-
max: 10
46-
},
47-
},
4841
layout: {
4942
padding: {
5043
top: 55,
@@ -87,12 +80,10 @@ export class DashboardPage {
8780
}
8881
}
8982
});
90-
//This code down below is to fix a bug where I could not modify the scale in the options
83+
//This code down below is to fix a bug where I could not modify the scale in the options
9184
//key in the above code (It threw a typescript error even though it worked)
92-
this.chart.config.options.scale.ticks.beginAtZero = true;
9385
this.chart.config.options.scale.ticks.min = 0;
9486
this.chart.config.options.scale.ticks.max = 10;
95-
this.chart.config.options.scale.ticks.stepSize = 1;
9687
this.chart.update();
9788
}
9889

src/pages/transition/transition.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
<ion-card-header>
2222
<div id="categoryAndRange">
2323
<h1 id="category">{{area.title}}</h1>
24-
<ion-range id="range" min="0" max="10" step="1" snaps="true" [(ngModel)]="area.number" (ionChange)="changeData(i, area.number)"></ion-range>
24+
<button (click)="toggleSection(area)">View</button>
2525
</div>
26-
<button (click)="toggleSection(area)">View</button>
2726
</ion-card-header>
28-
<ion-card-content id="areaDescription" *ngIf="area.expand">
29-
{{area.description}}
27+
<ion-card-content id="areaDescription">
28+
<span> {{area.intro}} </span>
29+
<span *ngIf="!area.expand; else content"> ... </span>
30+
<ng-template #content> {{ area.description }} </ng-template>
31+
<ion-range id="range" min="0" max="10" step="1" snaps="true" [(ngModel)]="area.number" (ionChange)="changeData(i, area.number)"></ion-range>
3032
</ion-card-content>
3133
</ion-card>
3234
</ion-list>

src/pages/transition/transition.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ page-transition {
1111
}
1212

1313
#range {
14-
width: 80%;
14+
margin: auto;
15+
width: 100%;
1516
}
1617

1718
button {

src/pages/transition/transition.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,49 +28,57 @@ export class TransitionPage {
2828
{
2929
title: 'Career',
3030
expand: false,
31-
description: 'How is your career going? We spend a lot of time working so how is it for you? Does it excite you? Have you a clear idea what it is you want to achieve? If you are not working are you happy you know what it is you want to do and are taking steps to achieve this? Are you a 1 – you feel physically sick before you go to work each morning (and not because you have been enjoying the festive season too much) or are you a 10 – would you do your job without being paid for it?',
31+
intro: 'How is your career going? We spend a lot of time working so how is it for you? Does it excite you? Have you a clear idea what it is you want to achieve?',
32+
description: 'If you are not working are you happy you know what it is you want to do and are taking steps to achieve this? Are you a 1 – you feel physically sick before you go to work each morning (and not because you have been enjoying the festive season too much) or are you a 10 – would you do your job without being paid for it?',
3233
number: 0
3334
},
3435
{
3536
title: 'Finances',
3637
expand: false,
37-
description: 'This is not about how much you have but rather how you relate to money. There are some millionaires who worry themselves sick about money so might score very low here and others who have just enough to get by and simply go with the flow. A 10 is someone totally at ease with money whereas a 1 is someone so worried about money that it is creating huge stress and limiting them in all their actions.',
38+
intro: 'This is not about how much you have but rather how you relate to money. There are some millionaires who worry themselves sick about money so might score very low here and others who have just enough to get by and simply go with the flow.',
39+
description: 'A 10 is someone totally at ease with money whereas a 1 is someone so worried about money that it is creating huge stress and limiting them in all their actions.',
3840
number: 0
3941
},
4042
{
4143
title: 'Personal Growth',
4244
expand: false,
43-
description: 'People who are truly successful commit themselves continually to learning and improving themselves. Are you a 10 – committed to learning as much as you can about life? Are you constantly experiencing new opportunities? Do you regularly read to learn and grow? Are you open to improving and stretching yourself? The fact that you are reading this demonstrates a certain level of commitment to develop yourself so you are not a 1 or even a 2.',
45+
intro: 'People who are truly successful commit themselves continually to learning and improving themselves. Are you a 10 – committed to learning as much as you can about life?',
46+
description: ' Are you constantly experiencing new opportunities? Do you regularly read to learn and grow? Are you open to improving and stretching yourself? The fact that you are reading this demonstrates a certain level of commitment to develop yourself so you are not a 1 or even a 2.',
4447
number: 0
4548
},
4649
{
4750
title: 'Health',
4851
expand: false,
49-
description: 'We all take our health for granted until it lets us down. How is yours? Do you look after yourself? Are you eating well? Do you get regular exercise? Having a long-term illness does not necessarily mean you need to give yourself a low score. The main thing is whether you are doing everything within your control to improve or regulate your condition.',
52+
intro: 'We all take our health for granted until it lets us down. How is yours? Do you look after yourself? Are you eating well? Do you get regular exercise?',
53+
description: 'Having a long-term illness does not necessarily mean you need to give yourself a low score. The main thing is whether you are doing everything within your control to improve or regulate your condition.',
5054
number: 0
5155
},
5256
{
5357
title: 'Family',
5458
expand: false,
55-
description: 'Family life is very important. Although family life should be loving, caring and supportive it often is not for a variety of reasons such as crying babies, wild teenage sons or daughters or constant arguments and tension. These all represent a huge challenge and will affect other areas of your life like your work / studies, relationships and so on. In this respect family life to you could mean a single unit or a more extended family. Whatever family life means to you give yourself a current score.',
59+
intro: 'Family life is very important. Although family life should be loving, caring and supportive it often is not for a variety of reasons such as crying babies, wild teenage sons or daughters or constant arguments and tension.',
60+
description: ' These all represent a huge challenge and will affect other areas of your life like your work / studies, relationships and so on. In this respect family life to you could mean a single unit or a more extended family. Whatever family life means to you give yourself a current score.',
5661
number: 0
5762
},
5863
{
5964
title: 'Relationships',
6065
expand: false,
61-
description: 'Consider the key relationship you have whether it is with your boyfriend/girlfriend husband/wife/friend or family member. Where do you feel it is at? Where would you like it to be?',
66+
intro: 'Consider the key relationship you have whether it is with your boyfriend/girlfriend husband/wife/friend or family member.',
67+
description: 'Where do you feel it is at? Where would you like it to be?',
6268
number: 0
6369
},
6470
{
6571
title: 'Social Life',
6672
expand: false,
67-
description: 'This can be about the quality of your social life which can score very low for people with busy careers. However you can also decide to score it based on how you interact with people as how often you get to socialise. A vital component of life is the need to get on and interact with people. How comfortable you are in social situations? Some people are the life and soul of every party, loved by all and fully confident yet sensitive whereas others will not want to speak up when there is a group of people around. Give yourself a score. Remember for this one that most 1s are locked up. so you can rule out that score.',
73+
intro: 'This can be about the quality of your social life which can score very low for people with busy careers. However you can also decide to score it based on how you interact with people as how often you get to socialise. A vital component of life is the need to get on and interact with people.',
74+
description: 'How comfortable you are in social situations? Some people are the life and soul of every party, loved by all and fully confident yet sensitive whereas others will not want to speak up when there is a group of people around. Give yourself a score. Remember for this one that most 1s are locked up. so you can rule out that score.',
6875
number: 0
6976
},
7077
{
7178
title: 'Attitude',
7279
expand: false,
73-
description: 'Attitude is vital and can influence every aspect of your life. Is your glass half full or half empty? Are you a positive person who notices all the good things that happen and comes up with solutions when things don’t go as planned or do you always expect the worse and the worse always seems to happen?',
80+
intro: 'Attitude is vital and can influence every aspect of your life. Is your glass half full or half empty?',
81+
description: 'Are you a positive person who notices all the good things that happen and comes up with solutions when things don’t go as planned or do you always expect the worse and the worse always seems to happen?',
7482
number: 0
7583
},
7684
{
@@ -144,12 +152,8 @@ export class TransitionPage {
144152

145153
//This code down below is to fix a bug where I could not modify the scale in the options
146154
//key in the above code (It threw a typescript error even though it worked)
147-
this.chart.config.options.scale.ticks.beginAtZero = true;
148155
this.chart.config.options.scale.ticks.min = 0;
149156
this.chart.config.options.scale.ticks.max = 10;
150-
this.chart.config.options.scale.ticks.stepSize = 1;
151-
this.chart.data.datasets.data = [0, 0, 0, 0, 0, 0, 0, 0];
152-
this.chart.data.datasets.data[0] = 0;
153157
this.chart.update();
154158
}
155159

0 commit comments

Comments
 (0)