Skip to content

Commit 7a03822

Browse files
authored
Merge pull request #189 from SoftStackFactory/dev
Dev
2 parents e393a94 + da54144 commit 7a03822

37 files changed

Lines changed: 1523 additions & 941 deletions

config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,5 @@
8282
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
8383
<plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
8484
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
85+
<plugin name="cordova-sqlite-storage" spec="~2.5.0" />
8586
</widget>

package-lock.json

Lines changed: 35 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@
5656
"ts-jest": "^23.10.3",
5757
"typescript": "^2.6.2"
5858
},
59-
"description": "An Ionic project"
60-
}
59+
"description": "An Ionic project",
60+
"cordova": {
61+
"plugins": {
62+
"cordova-sqlite-storage": {}
63+
}
64+
}
65+
}

src/app/app.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { ProfilePage } from '../pages/profile/profile';
1212
import { TransitionPage } from '../pages/transition/transition';
1313
import { AssessmentPage } from '../pages/assessment/assessment';
1414
import { TimelinePage } from '../pages/timeline/timeline';
15+
import { HistoryPage } from '../pages/history/history';
1516

1617
@Component({
1718
templateUrl: 'app.html'
@@ -35,8 +36,8 @@ export class MyApp {
3536
{ title: 'Dashboard', component: DashboardPage },
3637
{ title: 'Profile', component: ProfilePage },
3738
{ title: 'Transition', component: TransitionPage },
38-
{ title: 'Assessment', component: AssessmentPage },
39-
{ title: 'Timeline', component: TimelinePage }
39+
{ title: 'Timeline', component: TimelinePage },
40+
{ title: 'History', component: HistoryPage }
4041
];
4142

4243
}

src/app/app.module.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ import { ProfilePage } from '../pages/profile/profile';
1515
import { TransitionPage } from '../pages/transition/transition';
1616
import { AssessmentPage } from '../pages/assessment/assessment';
1717
import { TimelinePage } from '../pages/timeline/timeline';
18+
import { HistoryPage } from '../pages/history/history';
1819
import { TimelineComponent } from '../components/timeline/timeline';
1920
import { TimelineItemComponent } from '../components/timeline/timeline';
2021
import { TimelineTimeComponent } from '../components/timeline/timeline';
21-
22-
import { ChartsModule } from 'ng2-charts';
22+
import { ChartComponent } from '../components/chart/chart';
23+
import { ChartProvider } from '../providers/chart/chart';
2324
import { UserProvider } from '../providers/user/user';
25+
import { IonicStorageModule } from '@ionic/storage';
26+
2427

2528
@NgModule({
2629
declarations: [
@@ -34,14 +37,17 @@ import { UserProvider } from '../providers/user/user';
3437
TransitionPage,
3538
AssessmentPage,
3639
TimelinePage,
40+
HistoryPage,
3741
TimelineComponent,
3842
TimelineItemComponent,
39-
TimelineTimeComponent
43+
TimelineTimeComponent,
44+
ChartComponent
4045
],
4146
imports: [
4247
BrowserModule,
4348
HttpClientModule,
44-
IonicModule.forRoot(MyApp)
49+
IonicModule.forRoot(MyApp),
50+
IonicStorageModule.forRoot()
4551
],
4652
bootstrap: [IonicApp],
4753
entryComponents: [
@@ -54,13 +60,15 @@ import { UserProvider } from '../providers/user/user';
5460
ProfilePage,
5561
TransitionPage,
5662
AssessmentPage,
57-
TimelinePage
63+
TimelinePage,
64+
HistoryPage
5865
],
5966
providers: [
6067
StatusBar,
6168
SplashScreen,
6269
{provide: ErrorHandler, useClass: IonicErrorHandler},
63-
UserProvider
70+
UserProvider,
71+
ChartProvider
6472
]
6573
})
6674
export class AppModule {}

src/app/app.scss

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,34 @@
55
width: 40vw;
66
max-width: 500px;
77
//height: 50vw;
8+
font-size: 20px;
9+
// //font-size: 50px;
10+
}
11+
12+
.alert-head{
13+
font-size: 25px;
14+
}
15+
.alert-message{
816
font-size: 20px;
9-
//font-size: 50px;
1017
}
1118

12-
@media screen and (min-width: 765) {
19+
@media screen and (min-width: 765px) {
1320
.branchRadio .alert-wrapper{
14-
font-size: 50px;
15-
}
21+
font-size: 30px;
22+
}
23+
.alert-title{
24+
font-size: 35px!important;
25+
}
26+
.alert-message{
27+
font-size: 30px!important;
28+
}
29+
.alert-button{
30+
font-size: 25px!important;
31+
}
1632
}
1733

1834

35+
1936
// App Global Sass
2037
// --------------------------------------------------
2138
// Put style rules here that you want to apply globally. These

src/components/chart/chart.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div><canvas #canvas></canvas></div>

src/components/chart/chart.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
chart {
2+
3+
}

0 commit comments

Comments
 (0)