Commit 02871124 by kevin

Icon chanhged

parents
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
*~
*.sw[mnpcod]
*.log
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.vscode/
npm-debug.log*
.idea/
.ionic/
.sourcemaps/
.sass-cache/
.tmp/
.versions/
coverage/
www/
node_modules/
tmp/
temp/
platforms/
plugins/
plugins/android.json
plugins/ios.json
$RECYCLE.BIN/
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"version": 1,
"defaultProject": "app",
"newProjectRoot": "projects",
"projects": {
"app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "www",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "src/assets",
"output": "assets"
},
{
"glob": "**/*.svg",
"input": "node_modules/ionicons/dist/ionicons/svg",
"output": "./svg"
}
],
"styles": [
{
"input": "src/theme/variables.scss"
},
{
"input": "src/global.scss"
},
{
"input": "src/app/app.scss"
}
],
"scripts": [],
"es5BrowserSupport": true
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"ci": {
"progress": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
},
"ci": {
"progress": false
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [],
"scripts": [],
"assets": [
{
"glob": "favicon.ico",
"input": "src/",
"output": "/"
},
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
}
]
},
"configurations": {
"ci": {
"progress": false,
"watch": false
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
},
"ionic-cordova-build": {
"builder": "@ionic/angular-toolkit:cordova-build",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
}
}
},
"ionic-cordova-serve": {
"builder": "@ionic/angular-toolkit:cordova-serve",
"options": {
"cordovaBuildTarget": "app:ionic-cordova-build",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"cordovaBuildTarget": "app:ionic-cordova-build:production",
"devServerTarget": "app:serve:production"
}
}
}
}
},
"app-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"devServerTarget": "app:serve:production"
},
"ci": {
"devServerTarget": "app:serve:ci"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"cli": {
"defaultCollection": "@ionic/angular-toolkit"
},
"schematics": {
"@ionic/angular-toolkit:component": {
"styleext": "scss"
},
"@ionic/angular-toolkit:page": {
"styleext": "scss"
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Eduhealth</name>
<description />
<author email="[email protected]" href="http://ionicframework.com/">Techware Software Solutions</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="orientation" value="portrait" />
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
<allow-intent href="market:*" />
<icon density="ldpi" src="resources\android\icon\drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources\android\icon\drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources\android\icon\drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources\android\icon\drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources\android\icon\drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources\android\icon\drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources\android\splash\drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources\android\splash\drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources\android\splash\drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources\android\splash\drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources\android\splash\drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources\android\splash\drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources\android\splash\drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources\android\splash\drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources\android\splash\drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources\android\splash\drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources\android\splash\drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources\android\splash\drawable-port-xxxhdpi-screen.png" />
<preference name="Fullscreen" value="true" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<icon height="57" src="resources\ios\icon\icon.png" width="57" />
<icon height="114" src="resources\ios\icon\[email protected]" width="114" />
<icon height="40" src="resources\ios\icon\icon-40.png" width="40" />
<icon height="80" src="resources\ios\icon\[email protected]" width="80" />
<icon height="120" src="resources\ios\icon\[email protected]" width="120" />
<icon height="50" src="resources\ios\icon\icon-50.png" width="50" />
<icon height="100" src="resources\ios\icon\[email protected]" width="100" />
<icon height="60" src="resources\ios\icon\icon-60.png" width="60" />
<icon height="120" src="resources\ios\icon\[email protected]" width="120" />
<icon height="180" src="resources\ios\icon\[email protected]" width="180" />
<icon height="72" src="resources\ios\icon\icon-72.png" width="72" />
<icon height="144" src="resources\ios\icon\[email protected]" width="144" />
<icon height="76" src="resources\ios\icon\icon-76.png" width="76" />
<icon height="152" src="resources\ios\icon\[email protected]" width="152" />
<icon height="167" src="resources\ios\icon\[email protected]" width="167" />
<icon height="29" src="resources\ios\icon\icon-small.png" width="29" />
<icon height="58" src="resources\ios\icon\[email protected]" width="58" />
<icon height="87" src="resources\ios\icon\[email protected]" width="87" />
<icon height="1024" src="resources\ios\icon\icon-1024.png" width="1024" />
<splash height="1136" src="resources\ios\splash\Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources\ios\splash\Default-667h.png" width="750" />
<splash height="2208" src="resources\ios\splash\Default-736h.png" width="1242" />
<splash height="1242" src="resources\ios\splash\Default-Landscape-736h.png" width="2208" />
<splash height="1536" src="resources\ios\splash\Default-Landscape@2x~ipad.png" width="2048" />
<splash height="2048" src="resources\ios\splash\Default-Landscape@~ipadpro.png" width="2732" />
<splash height="768" src="resources\ios\splash\Default-Landscape~ipad.png" width="1024" />
<splash height="2048" src="resources\ios\splash\Default-Portrait@2x~ipad.png" width="1536" />
<splash height="2732" src="resources\ios\splash\Default-Portrait@~ipadpro.png" width="2048" />
<splash height="1024" src="resources\ios\splash\Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources\ios\splash\Default@2x~iphone.png" width="640" />
<splash height="480" src="resources\ios\splash\Default~iphone.png" width="320" />
<splash height="2732" src="resources\ios\splash\Default@2x~universal~anyany.png" width="2732" />
<preference name="StatusBarOverlaysWebView" value="false" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<engine name="android" spec="^7.1.4" />
</widget>
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
import { AppPage } from './app.po';
describe('new App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
describe('default screen', () => {
beforeEach(() => {
page.navigateTo('/home');
});
it('should have a title saying Home', () => {
page.getPageOneTitleText().then(title => {
expect(title).toEqual('Home');
});
});
});
});
import { browser, by, element } from 'protractor';
export class AppPage {
navigateTo(destination) {
return browser.get(destination);
}
getTitle() {
return browser.getTitle();
}
getPageOneTitleText() {
return element(by.tagName('app-home')).element(by.deepCss('ion-title')).getText();
}
}
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
{
"name": "eduhealth",
"integrations": {
"cordova": {}
},
"type": "angular"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "eduhealth",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^8.0.1",
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/forms": "^7.2.2",
"@angular/http": "^7.2.2",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@ionic-native/core": "^5.0.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic/angular": "^4.1.0",
"cordova": "^9.0.0",
"cordova-android": "^7.1.4",
"cordova-ios": "^5.0.1",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^4.1.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",
"cordova-plugin-whitelist": "^1.3.3",
"core-js": "^2.5.4",
"ionic": "^5.0.3",
"rxjs": "~6.5.1",
"tslib": "^1.9.0",
"zone.js": "~0.8.29"
},
"devDependencies": {
"@angular-devkit/architect": "~0.13.8",
"@angular-devkit/build-angular": "~0.13.8",
"@angular-devkit/core": "~7.3.8",
"@angular-devkit/schematics": "~7.3.8",
"@angular/cli": "~7.3.8",
"@angular/compiler": "~7.2.2",
"@angular/compiler-cli": "~7.2.2",
"@angular/language-service": "~7.2.2",
"@ionic/angular-toolkit": "~1.5.1",
"@types/node": "~12.0.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~8.3.0",
"tslint": "~5.17.0",
"typescript": "~3.1.6"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {}
},
"platforms": [
"android",
"ios"
]
}
}
\ No newline at end of file
These are Cordova resources. You can replace icon.png and splash.png and run
`ionic cordova resources` to generate custom icons and splash screens for your
app. See `ionic cordova resources --help` for details.
Cordova reference documentation:
- Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html
- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain>localhost</domain>
</domain-config>
</network-security-config>
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: 'home',
loadChildren: './home/home.module#HomePageModule'
},
{
path: 'list',
loadChildren: './list/list.module#ListPageModule'
},
{
path: 'login',
loadChildren: './login/login.module#LoginPageModule'
},
{
path: 'signup',
loadChildren: './signup/signup.module#SignupPageModule'
},
{
path: 'details/:id',
loadChildren: './details/details.module#DetailsPageModule'
},
{ path: 'medicalauthorization/:id',
loadChildren: './medicalauthorization/medicalauthorization.module#MedicalauthorizationPageModule'
},
{ path: 'studentsprofile/:id', loadChildren: './studentsprofile/studentsprofile.module#StudentsprofilePageModule' },
{ path: 'healthcareforum/:id', loadChildren: './healthcareforum/healthcareforum.module#HealthcareforumPageModule' },
{ path: 'treatmentauthorization/:id', loadChildren: './treatmentauthorization/treatmentauthorization.module#TreatmentauthorizationPageModule' },
{ path: 'medicationtracking/:id', loadChildren: './medicationtracking/medicationtracking.module#MedicationtrackingPageModule' },
{ path: 'treatmenttrackings/:id', loadChildren: './treatmenttrackings/treatmenttrackings.module#TreatmenttrackingsPageModule' },
{ path: 'screenings/:id', loadChildren: './screenings/screenings.module#ScreeningsPageModule' },
{ path: 'chartvisits/:id', loadChildren: './chartvisits/chartvisits.module#ChartvisitsPageModule' },
{ path: 'immunizations/:id', loadChildren: './immunizations/immunizations.module#ImmunizationsPageModule' },
{ path: 'medicalhistory/:id', loadChildren: './medicalhistory/medicalhistory.module#MedicalhistoryPageModule' },
{ path: 'healthhistory/:id', loadChildren: './healthhistory/healthhistory.module#HealthhistoryPageModule' }
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule {}
<ion-app>
<ion-split-pane>
<!-- <ion-menu type="overlay">
<ion-header>
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-menu-toggle auto-hide="false" *ngFor="let p of appPages">
<ion-item [routerDirection]="'root'" [routerLink]="[p.url]">
<ion-icon slot="start" [name]="p.icon"></ion-icon>
<ion-label>
{{p.title}}
</ion-label>
</ion-item>
</ion-menu-toggle>
</ion-list>
</ion-content>
</ion-menu> -->
<ion-router-outlet main></ion-router-outlet>
</ion-split-pane>
</ion-app>
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TestBed, async } from '@angular/core/testing';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy;
beforeEach(async(() => {
statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']);
splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']);
platformReadySpy = Promise.resolve();
platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy });
TestBed.configureTestingModule({
declarations: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: [
{ provide: StatusBar, useValue: statusBarSpy },
{ provide: SplashScreen, useValue: splashScreenSpy },
{ provide: Platform, useValue: platformSpy },
],
imports: [ RouterTestingModule.withRoutes([])],
}).compileComponents();
}));
it('should create the app', async () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
it('should initialize the app', async () => {
TestBed.createComponent(AppComponent);
expect(platformSpy.ready).toHaveBeenCalled();
await platformReadySpy;
expect(statusBarSpy.styleDefault).toHaveBeenCalled();
expect(splashScreenSpy.hide).toHaveBeenCalled();
});
it('should have menu labels', async () => {
const fixture = await TestBed.createComponent(AppComponent);
await fixture.detectChanges();
const app = fixture.nativeElement;
const menuItems = app.querySelectorAll('ion-label');
expect(menuItems.length).toEqual(2);
expect(menuItems[0].textContent).toContain('Home');
expect(menuItems[1].textContent).toContain('List');
});
it('should have urls', async () => {
const fixture = await TestBed.createComponent(AppComponent);
await fixture.detectChanges();
const app = fixture.nativeElement;
const menuItems = app.querySelectorAll('ion-item');
expect(menuItems.length).toEqual(2);
expect(menuItems[0].getAttribute('ng-reflect-router-link')).toEqual('/home');
expect(menuItems[1].getAttribute('ng-reflect-router-link')).toEqual('/list');
});
});
import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
public appPages = [
{
title: 'Home',
url: '/home',
icon: 'home'
},
{
title: 'List',
url: '/list',
icon: 'list'
}
];
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar
) {
this.initializeApp();
}
initializeApp() {
this.platform.ready().then(() => {
//this.statusBar.styleDefault();--Android
this.statusBar.hide();
this.splashScreen.hide();
});
}
}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';
import { ReactiveFormsModule,FormsModule } from '@angular/forms';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
HttpModule
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
/*
Site Name: TECHNOBEAT
URI: http:
Description: This is the theme scss for TECHNOBEAT
Version: 2.0
Author:
Author URI:
Tags:
---------------------------
THEME STYLES
---------------------------
TABLE OF CONTENTS
---------------------------
01. FONTS-N-SIZES
02. FONTS-COLOR
03. THEMES-N-BACKGROUNDS
04. SPACING-N-POSITIONS
05. ALIGMENTS
06. ALERTS-N-MESSAGES
*/
/*-------------------------------
01. FONTS-N-SIZES
--------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i');
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
* {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
}
*::-webkit-scrollbar {
display: none;
}
.no-scroll .scroll-content {
overflow: hidden;
}
a {
text-decoration: none !important;
}
button{
outline: none;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
margin: 0;
}
html,
body {
font-family: 'Lato', sans-serif !important;
margin:0px;
}
button{
cursor: pointer;
}
/*-------------------------------
02. FONTS-SETTINGS
--------------------------------*/
.text_color_white {
color: #fff !important;
}
.font_size_xs {
font-size: 12px !important;
}
.font_size_sm {
font-size: 14px !important;
}
.font_size_md {
font-size: 16px !important;
}
.font_size_lg {
font-size: 18px !important;
}
.font_size_xl {
font-size: 20px !important;
}
.font_size_vl {
font-size: 35px !important;
}
.font_weight300 {
font-weight: 300 !important;
}
.font_weight400 {
font-weight: 400 !important;
}
.font_weight500 {
font-weight: 500 !important;
}
.font_weight600 {
font-weight: 600 !important;
}
/*-------------------------------
03. THEMES-N-BACKGROUNDS
--------------------------------*/
.theme_background {
background-size: cover !important;
background-position: center !important;
}
.theme_transparent {
background: transparent !important;
}
.theme_white {
background-color: #f7f8fd !important;
}
.theme_off_white {
background-color: #f4f4f4 !important;
}
.theme_dark_transparent {
background-color: rgba(0, 0, 0, 0.6) !important;
}
.theme_white_transparent {
background-color: rgba(243, 243, 243, 0.6) !important;
}
/*-------------------------------
04. SPACING-N-POSITIONS
--------------------------------*/
.width25 {
width: 25% !important;
}
.width50 {
width: 50% !important;
}
.width75 {
width: 75% !important;
}
.widthFull {
width: 100% !important;
}
.widthAuto {
width: auto !important;
}
.height25 {
height: 25% !important;
}
.height50 {
height: 50% !important;
}
.height75 {
width: 75% !important;
}
.heightFull {
height: 100% !important;
}
.heightAuto {
height: auto !important;
}
.p0 {
padding: 0px !important;
}
.pl0 {
padding-left: 0px !important;
}
.pr0 {
padding-right: 0px !important;
}
.pt0 {
padding-top: 0px !important;
}
.pb0 {
padding-bottom: 0px !important;
}
.p10 {
padding: 10px !important;
}
.pt10 {
padding-top: 10px !important;
}
.m0 {
margin: 0px !important;
}
.ml0 {
margin-left: 0px !important;
}
.mr0 {
margin-right: 0px !important;
}
.mt0 {
margin-top: 0px !important;
}
.mb0 {
margin-bottom: 0px !important;
}
.mAuto {
margin: 0 auto !important;
}
.clear {
clear: both !important;
}
.absolute {
position: absolute !important;
}
.relative {
position: relative !important;
}
.fixed {
position: fixed !important;
}
.borderNone {
border: none !important;
}
/*-------------------------------
05. ALIGMENTS
--------------------------------*/
.floatLeft {
float: left !important;
}
.floatRight {
float: right !important;
}
.textLeft {
text-align: left !important;
}
.textRight {
text-align: right !important;
}
.textCenter {
text-align: center !important;
}
.app_header{
background:#004989;
}
.nav_btn{
width:50px;
height:50px;
background-color: transparent;
color: #fff;
font-size: 25px;
}
.nav_title{
width: calc(100% - 50px);
color: #292929;
padding: 15px;
font-weight: 400;
img{
width: 135px;
}
h4{
margin: 0px;
font-weight: 400;
padding:0px;
font-size: 28px;
}
}
.nav_btn{
width: 50px;
height: 60px;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: 20px !important;
}
.nav_back{
background: url("../assets/imgs/asset_back.png");
}
.nav_more{
background: url("../assets/imgs/asset_more.png");
}
.item-native{
padding-left: 0px !important;
}
.header-md:after{
background-image: none !important;
}
.header-ios:after{
background-image: none !important;
}
.button-native{
border-radius: 0px !important;
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { ChartvisitsPage } from './chartvisits.page';
const routes: Routes = [
{
path: '',
component: ChartvisitsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [ChartvisitsPage]
})
export class ChartvisitsPageModule {}
<ion-header>
<button class="nav_btn nav_back floatLeft">
<!-- <ion-back-button>
</ion-back-button> -->
</button>
<div class="nav_title floatLeft">
<h4>Chart Visits</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf="chart_details">
<li *ngFor="let chart_data of chart_details; let i= index">
<div class="list_main" (click)="toggleGroup(i)" [ngClass]="{active:isGroupShown(i)}">
<div class="col floatLeft">
<p>Office Visit Type</p>
<h3><strong>{{chart_data.office_vist_type}}</strong></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div> -->
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(i)">
<div class="list_bar">
<div class="col floatLeft">
<p>Issue Visit Reason</p>
<h3>{{chart_data.issue_visit_reason}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Provider Name</p>
<h3>{{chart_data.provider_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Time In</p>
<h3>{{chart_data.date_in}} {{chart_data.time_in}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Time Out</p>
<h3>{{chart_data.date_out}} {{chart_data.time_out}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Contact with Parent</p>
<h3>{{chart_data.contact_with_parent}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Visit Outcome</p>
<h3>{{chart_data.visit_outcome}}</h3>
</div>
<div class="clear"></div>
</div>
<!-- <div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="clear"></div>
</div> -->
</div>
<!-- </li>
<li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChartvisitsPage } from './chartvisits.page';
describe('ChartvisitsPage', () => {
let component: ChartvisitsPage;
let fixture: ComponentFixture<ChartvisitsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ChartvisitsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ChartvisitsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import {MyserviceService} from '../myservice.service'
import { LoadingController, AlertController, NavController } from '@ionic/angular';
@Component({
selector: 'app-chartvisits',
templateUrl: './chartvisits.page.html',
styleUrls: ['./chartvisits.page.scss'],
})
export class ChartvisitsPage implements OnInit {
shownGroup = null;
chart_details : any
constructor(private myservice : MyserviceService , public navctrl:NavController) {
this.shownGroup = 0;
this.chart_details= {
"message":"success",
"data" : [
{
"office_vist_type":"Random Checkup",
"issue_visit_reason":"Migrine",
"provider_name":"Admin Nuvento",
"time_in":"15:49:00",
"date_in":"12/6/2019",
"time_out":"16:30:00",
"date_out":"12/6/2019",
"contact_with_parent":"no",
"visit_outcome":"Relief",
},
{
"office_vist_type":"General Checkup",
"issue_visit_reason":"Fever",
"provider_name":"Admin Nuvento",
"time_in":"15:49:00",
"date_in":"12/7/2019 ",
"time_out":"11:00:00",
"date_out":"06/13/2019 ",
"contact_with_parent":"yes",
"visit_outcome":"test",
}
]
};
this.get_chartDetails();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_chartDetails() {
this.chart_details = this.myservice.ObjArray(this.chart_details.data);
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { DetailsPage } from './details.page';
const routes: Routes = [
{
path: '',
component: DetailsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [DetailsPage]
})
export class DetailsPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Student Profile</h4>
</div>
<!-- <button class="nav_btn nav_more floatLeft" (click)="popToggle()">
</button> -->
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="detail_wrapper">
<div *ngIf ="student_details">
<div class="detail_circle_img">
<img [src]="student_details.img_src">
</div>
<h4>{{student_details.first_name}} {{student_details.last_name}}</h4>
<div class="detail_grid">
<ion-row>
<ion-col col>
<p>Student Number</p>
<h3>{{student_details.student_number}}</h3>
</ion-col>
<ion-col col>
<p>Graduation Year</p>
<h3>{{student_details.graduation_year}}</h3>
</ion-col>
<ion-col col>
<p>Grade</p>
<h3>{{student_details.grade}}</h3>
</ion-col>
</ion-row>
<ion-row>
<ion-col col>
<p>DOB</p>
<h3>{{student_details.dob}}</h3>
</ion-col>
<ion-col col>
<p>School Name</p>
<h3>{{student_details.school_name}}</h3>
</ion-col>
<ion-col col>
<p>Gender</p>
<h3>{{student_details.gender}}</h3>
</ion-col>
</ion-row>
</div>
</div>
<div class="detail_listing">
<ul>
<li (click)="goToPage('studentsprofile')">
<img src="../../assets/imgs/m1.png" >
<p>Student<br> Health</p>
</li>
<li (click)="goToPage('healthcareforum')">
<img src="../../assets/imgs/m2.png">
<p>Health care<br> form</p>
</li>
<li (click)="goToPage('medicalauthorization')">
<img src="../../assets/imgs/m3.png">
<p>Medication <br>Authorization</p>
</li>
<li (click)="goToPage('treatmentauthorization')">
<img src="../../assets/imgs/m4.png">
<p>Treatment<br> Authorization</p>
</li>
<li (click)="goToPage('medicationtracking')">
<img src="../../assets/imgs/m5.png">
<p>Medication<br>Trackings</p>
</li>
<li (click)="goToPage('treatmenttrackings')">
<img src="../../assets/imgs/m6.png">
<p>Treatment<br>Trackings</p>
</li>
<li (click)="goToPage('screenings')">
<img src="../../assets/imgs/m7.png">
<p>Screenings</p>
</li>
<li (click)="goToPage('chartvisits')">
<img src="../../assets/imgs/m1.png">
<p>Chart Visits</p>
</li>
<li (click)="goToPage('immunizations')">
<img src="../../assets/imgs/m8.png">
<p>Immunizations</p>
</li>
<li (click)="goToPage('medicalhistory')">
<img src="../../assets/imgs/m9.png">
<p>Medical History</p>
</li>
<li (click)="goToPage('healthhistory')">
<img src="../../assets/imgs/m10.png">
<p>Health History</p>
</li>
</ul>
</div>
</div>
<!-- <div class="custom_popover" *ngIf="isToggle" [@slideInOut] (click)="popToggle()">
<div class="popover_inner">
<ul>
<li>
<img src="../../assets/imgs/asset_parent_request.png">
<p>Parent Requests</p>
<div class="clear"></div>
</li>
<li>
<img src="../../assets/imgs/asset_change_request.png">
<p>Change Requests</p>
<div class="clear"></div>
</li>
</ul>
</div>
</div> -->
</ion-content>
.nav_title{
width: calc(100% - 100px);
padding-left: 0px;
}
.detail_wrapper{
width:100%;
padding:10px;
.detail_circle_img{
width:100px;
height:100px;
margin: 0 auto;
border-radius: 50%;
border:2px solid #1b4077;
img{
width:100%;
height:100%;
object-position: center;
object-fit:cover;
border-radius: 50%;
}
}
h4{
text-align: center;
color: #0d0d0d;
font-weight: 600;
}
.detail_grid{
padding-top: 15px;
ion-col{
background: #e5edfa;
border: 1px solid #fff;
padding:10px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
}
}
}
.detail_listing{
padding-top:25px;
ul{
margin: 0px;
padding:0px;
li{
display: inline-block;
width: calc(100% - 67%);
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
img{
width:50px;
}
p{
margin:0px;
color: #0d0d0d;
text-align: center;
padding-top: 5px;
}
}
}
}
}
.custom_popover{
position: fixed;
background:rgba(0,0,0,0.6);
top:0px;
left:0px;
right:0px;
bottom: 0px;
z-index: 999;
.popover_inner{
background: #fff;
position: absolute;
right:20px;
top: 60px;
ul{
padding:0px;
margin:0px;
li{
list-style: none;
padding: 10px;
img{
width: 30px;
float: left;
}
p{
float: left;
margin: 0px;
padding: 6px;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DetailsPage } from './details.page';
describe('DetailsPage', () => {
let component: DetailsPage;
let fixture: ComponentFixture<DetailsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DetailsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DetailsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import { Router, ActivatedRoute } from '@angular/router';
import { MyserviceService} from '../myservice.service'
@Component({
selector: 'app-details',
templateUrl: './details.page.html',
styleUrls: ['./details.page.scss'],
animations: [
trigger('slideInOut', [
transition(':enter', [
style({transform: 'translateY(-100%)'}),
animate('100ms ease-in', style({transform: 'translateY(0%)'}))
]),
transition(':leave', [
animate('100ms ease-out', style({transform: 'translateY(-100%)'}))
])
])
]
})
export class DetailsPage implements OnInit {
stud1:boolean;
stud2:boolean;
stud3:boolean;
navCtrl: any;
isToggle = false;
id: any;
student_details:any;
constructor(private route: ActivatedRoute ,private myservice:MyserviceService,private router: Router) {
}
ngOnInit() {
this.id = this.route.snapshot.paramMap.get('id');
console.log(this.id);
this.get_StudentDetails();
}
get_StudentDetails() {
var This= this;
this.myservice.presentLoader();
console.log('Id',this.id)
this.myservice.load_get('student_details/id/'+this.id).subscribe(resp =>
{
console.log(resp);
This.myservice.dismissLoader();
this.student_details=resp;
})
}
goToPage(path,data=null){
this.router.navigateByUrl('/'+path+'/'+this.id);
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
popToggle(){
this.isToggle = !this.isToggle;
}
getimage() {
console.log('Student number',this.student_details.student_no)
if(this.student_details.student_no = 1)
{
console.log('check')
var img1 ="../../assets/imgs/asset_img1.png";
return img1;
}
if(this.student_details.student_id = 2) {
var img2 = "../../assets/imgs/asset_img2.png";
return img2;
}
if(this.student_details.student_id = 3) {
var img3 = "../../assets/imgs/asset_img3.png";
return img3;
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { HealthcareforumPage } from './healthcareforum.page';
const routes: Routes = [
{
path: '',
component: HealthcareforumPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [HealthcareforumPage]
})
export class HealthcareforumPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Health Form</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li *ngIf="health_formData">
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>{{health_formData.name}}</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_bar">
<div class="col floatLeft">
<p>Uploaded By</p>
<h3>{{health_formData.uploaded_by}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Uploaded</p>
<h3>{{health_formData.uploaded}} {{health_formData.uploaded_time}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>School Year</p>
<h3>{{health_formData.school_year}}</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HealthcareforumPage } from './healthcareforum.page';
describe('HealthcareforumPage', () => {
let component: HealthcareforumPage;
let fixture: ComponentFixture<HealthcareforumPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HealthcareforumPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HealthcareforumPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
@Component({
selector: 'app-healthcareforum',
templateUrl: './healthcareforum.page.html',
styleUrls: ['./healthcareforum.page.scss'],
})
export class HealthcareforumPage implements OnInit {
shownGroup = null;
health_formData:any
constructor() {
this.shownGroup = 0;
this.health_formData = {
"message":"success",
"name":"healthform201951012103181",
"school_year":"2016-2017",
"uploaded_by":"Admin Nuvento",
"uploaded":"10/6/19",
"uploaded_time":"12:10:00"
}
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_healthformData() {
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { HealthhistoryPage } from './healthhistory.page';
const routes: Routes = [
{
path: '',
component: HealthhistoryPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [HealthhistoryPage]
})
export class HealthhistoryPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Health History</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li>
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col floatLeft">
<p>File Name</p>
<h3><strong>3359_2019-03-27T11_08_40Z.pdf</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_bar">
<div class="col floatLeft">
<p>School Name</p>
<h3>Jabir Alil School </h3>
</div>
<div class="col floatLeft borderNone">
<p>First Name</p>
<h3>KelvinA</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Last Name</p>
<h3>Joseph</h3>
</div>
<div class="col floatLeft borderNone">
<p>Grade</p>
<h3>3</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HealthhistoryPage } from './healthhistory.page';
describe('HealthhistoryPage', () => {
let component: HealthhistoryPage;
let fixture: ComponentFixture<HealthhistoryPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HealthhistoryPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HealthhistoryPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-healthhistory',
templateUrl: './healthhistory.page.html',
styleUrls: ['./healthhistory.page.scss'],
})
export class HealthhistoryPage implements OnInit {
shownGroup = null;
constructor() {
this.shownGroup = 0;
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { RouterModule } from '@angular/router';
import { HomePage } from './home.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild([
{
path: '',
component: HomePage
}
])
],
declarations: [HomePage]
})
export class HomePageModule {}
<ion-header>
<div class="nav_title floatLeft">
<h4>Students Details</h4>
</div>
<button class="nav_btn floatRight" (click)="logout()">
<ion-icon name="log-out" ></ion-icon>
</button>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf="student_data">
<li (click)="goToPage('details','1')">
<div class="image_div">
<img src="../../assets/imgs/asset_img1.png">
</div>
<div class="other_details">
<div class="col_div">
<p>First Name</p>
<h3><strong>{{student_data[0].first_name}}</strong></h3>
<p>Last Name</p>
<h3>{{student_data[0].last_name}}</h3>
</div>
<div class="col_div borderNone">
<p>Student Number</p>
<h3>{{student_data[0].student_number}}</h3>
<p>School Name</p>
<h3>{{student_data[0].school_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
<li (click)="goToPage('details','2')">
<div class="image_div">
<img src="../../assets/imgs/asset_img2.png">
</div>
<div class="other_details">
<div class="col_div">
<p>First Name</p>
<h3><strong>{{student_data[1].first_name}}</strong></h3>
<p>Last Name</p>
<h3>{{student_data[1].last_name}}</h3>
</div>
<div class="col_div borderNone">
<p>Student Number</p>
<h3>{{student_data[1].student_number}}</h3>
<p>School Name</p>
<h3>{{student_data[1].school_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
<li (click)="goToPage('details','3')">
<div class="image_div">
<img src="../../assets/imgs/asset_img3.png">
</div>
<div class="other_details">
<div class="col_div">
<p>First Name</p>
<h3><strong>{{student_data[2].first_name}}</strong></h3>
<p>Last Name</p>
<h3>{{student_data[2].last_name}}</h3>
</div>
<div class="col_div borderNone">
<p>Student Number</p>
<h3>{{student_data[2].student_number}}</h3>
<p>School Name</p>
<h3>{{student_data[2].school_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
</ul>
</div>
</ion-content>
.nav_title{
width: calc(100% - 50px);
padding-left: 10px;
}
ion-icon{
color: #292929;
}
.list_wrapper{
padding: 15px;
padding-top: 0px;
ul
{
padding: 0px;
margin: 0px;
li{
list-style: none;
border-left:2px solid #1b4077;
background: #e8effa;
margin-bottom: 10px;
padding:10px;
.image_div{
width:70px;
height:70px;
border:2px solid #1b4077;
border-radius: 50%;
float: left;
img{
width:100%;
height: 100%;
object-fit: cover;
object-position: center;
border-radius: 50%;
}
}
.other_details{
width:calc(100% - 70px);
float: right;
.col_div{
width:50%;
float: left;
padding-left: 10px;
border-right:1px solid #cacfd8;
p{
margin:0px;
padding:0px;
color: #605f5f;
font-weight: 300;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
h3{
margin:0px;
padding:0px;
font-weight: 400;
font-size: 15px;
color: #0d0d0d;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 5px;
}
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HomePage } from './home.page';
describe('HomePage', () => {
let component: HomePage;
let fixture: ComponentFixture<HomePage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HomePage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HomePage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
import { Router,ActivatedRoute } from '@angular/router';
import {MyserviceService} from '../myservice.service'
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
student_data:any
constructor(
private router: Router,
private route: ActivatedRoute,
public myservice:MyserviceService
) {
this.get_students_data();
}
details
goToPage(path,data){
console.log(data)
//this.router.navigateByUrl(path);
this.router.navigateByUrl('/details/'+data);
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
get_students_data(){
var This= this
console.log('Homepage')
this.myservice.presentLoader()
this.myservice.load_get('student_data').subscribe (resp=> {
This.myservice.dismissLoader();
console.log(resp);
this.student_data = resp.data;
console.log(this.student_data);
});
}
logout() {
console.log('Logout')
this.router.navigateByUrl('/login',{replaceUrl: true});
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { ImmunizationsPage } from './immunizations.page';
const routes: Routes = [
{
path: '',
component: ImmunizationsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [ImmunizationsPage]
})
export class ImmunizationsPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Add Immunization</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf="immunization_data">
<li *ngFor="let immunization of immunization_data; let i=index ">
<div class="list_main" (click)="toggleGroup(i)" [ngClass]="{active:isGroupShown(i)}">
<div class="col floatLeft">
<p>Type</p>
<h3><strong>{{immunization.type}}</strong></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div> -->
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(i)">
<div class="list_bar">
<div class="col floatLeft">
<p>Last Administered Date</p>
<h3>{{immunization.last_adminstered_date}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Status</p>
<h3>{{immunization.status}}</h3>
</div>
<div class="clear"></div>
</div>
<!-- <div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div> -->
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ImmunizationsPage } from './immunizations.page';
describe('ImmunizationsPage', () => {
let component: ImmunizationsPage;
let fixture: ComponentFixture<ImmunizationsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ImmunizationsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ImmunizationsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import {MyserviceService} from '../myservice.service'
@Component({
selector: 'app-immunizations',
templateUrl: './immunizations.page.html',
styleUrls: ['./immunizations.page.scss'],
})
export class ImmunizationsPage implements OnInit {
shownGroup= null;
immunization_data:any;
constructor(private myservice:MyserviceService) {
this.shownGroup = 0;
this.immunization_data = {
"message":"success",
"data" : [
{
"type":"HIB",
"last_adminstered_date":"05/14/2019",
"status":"Deficient",
},
{
"type":"MMR",
"last_adminstered_date":"05/14/2019",
"status":"Deficient",
}
]
};
this.get_immunization();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_immunization() {
this.immunization_data = this.myservice.ObjArray(this.immunization_data.data);
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { RouterModule } from '@angular/router';
import { ListPage } from './list.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild([
{
path: '',
component: ListPage
}
])
],
declarations: [ListPage]
})
export class ListPageModule {}
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
List
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-item *ngFor="let item of items">
<ion-icon [name]="item.icon" slot="start"></ion-icon>
{{item.title}}
<div class="item-note" slot="end">
{{item.note}}
</div>
</ion-item>
</ion-list>
<!--
<div *ngIf="selectedItem" padding>
You navigated here from <b>{{selectedItem.title }}</b>
</div>
-->
</ion-content>
.nav_title{
width: calc(100% - 100px);
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { ListPage } from './list.page';
describe('ListPage', () => {
let component: ListPage;
let fixture: ComponentFixture<ListPage>;
let listPage: HTMLElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ListPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(async () => {
fixture = await TestBed.createComponent(ListPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should have a list of 10 elements', () => {
listPage = fixture.nativeElement;
const items = listPage.querySelectorAll('ion-item');
expect(items.length).toEqual(10);
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-list',
templateUrl: 'list.page.html',
styleUrls: ['list.page.scss']
})
export class ListPage implements OnInit {
private selectedItem: any;
private icons = [
'flask',
'wifi',
'beer',
'football',
'basketball',
'paper-plane',
'american-football',
'boat',
'bluetooth',
'build'
];
public items: Array<{ title: string; note: string; icon: string }> = [];
constructor() {
for (let i = 1; i < 11; i++) {
this.items.push({
title: 'Item ' + i,
note: 'This is item #' + i,
icon: this.icons[Math.floor(Math.random() * this.icons.length)]
});
}
}
ngOnInit() {
}
// add back when alpha.4 is out
// navigate(item) {
// this.router.navigate(['/list', JSON.stringify(item)]);
// }
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule,ReactiveFormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { LoginPage } from './login.page';
const routes: Routes = [
{
path: '',
component: LoginPage
}
];
@NgModule({
imports: [
CommonModule,
ReactiveFormsModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [LoginPage]
})
export class LoginPageModule {}
<ion-content>
<div class="login_wrapper">
<div class="login_top_div">
<img src="../../assets/imgs/asset_logo_theme.png">
<h3>Welcome Back</h3>
<p>Sign In to continue</p>
</div>
<div class="login_form">
<form [formGroup]="LoginForm" (ngSubmit)="OnLogin()">
<div class="row">
<ion-input placeholder="[email protected]" type="email" formControlName="email" autocomplete="off"></ion-input>
</div>
<div >
<p style="text-align: center" *ngIf="LoginForm.controls.email.hasError('required') && LoginForm.controls.email.touched">Enter Email</p>
</div>
<div class="row">
<ion-input placeholder="Password" type="password" formControlName="password" autocomplete="off"></ion-input>
</div>
<div>
<p style="text-align: center" *ngIf="LoginForm.controls.password.hasError('required') && LoginForm.controls.password.touched">Sorry, field password is required!</p>
<p style="text-align: center" *ngIf="LoginForm.controls.password.hasError('minlength') && LoginForm.controls.password.touched">Sorry, minimum password length is 6!</p>
</div>
<br>
<div class="row">
<ion-button [disabled]="!LoginForm.valid" expand="block" (click)="login()">Login</ion-button>
</div>
</form>
<div class="row">
<p>Forgot Password</p>
</div>
</div>
</div>
</ion-content>
<ion-footer class="textCenter">
<div class="log_btn_footer" (click)="istoggle()">
SIGN UP
</div>
</ion-footer>
<div class="signup_div" *ngIf="isShow" [@slideInOut]>
<ion-content>
<div class="login_wrapper">
<form [formGroup]="signupForm" (ngSubmit)="OnLogin()">
<div class="login_top_div">
<h3>Welcome Back</h3>
<p>Sign In to continue</p>
</div>
<div class="login_form">
<div class="row">
<ion-input placeholder="Name" formControlName="user_name" type="text"></ion-input>
</div>
<div>
<p style="text-align: center" *ngIf="signupForm.controls.user_name.hasError('required') && signupForm.controls.user_name.touched">Enter Name</p>
</div>
<div class="row">
<ion-input placeholder="Mail ID" formControlName="email" type="text"></ion-input>
</div>
<div>
<p style="text-align: center" *ngIf="signupForm.controls.email.hasError('required') && signupForm.controls.email.touched">Enter Email</p>
</div>
<div class="row">
<ion-input placeholder="Mobile Number" formControlName="mobile_no" type="number"></ion-input>
</div>
<div>
<p style="text-align: center" *ngIf="signupForm.controls.mobile_no.hasError('required') && signupForm.controls.mobile_no.touched">Enter Mobie Number</p>
<p style="text-align: center" *ngIf="signupForm.controls.mobile_no.hasError('minlength') && signupForm.controls.mobile_no.touched">Invalid Mobile Number</p>
</div>
<div class="row">
<ion-radio-group formControlName="gender">
<div class="radio_div textCenter">
<ion-radio value="Male" checked="true"></ion-radio><ion-label>Male</ion-label>
<ion-radio value="Female"></ion-radio><ion-label>Female</ion-label>
</div>
</ion-radio-group>
</div>
<div class="row">
<ion-input placeholder="Password" formControlName="password" type="password"></ion-input>
</div>
<div>
<p style="text-align: center" *ngIf="signupForm.controls.password.hasError('required') && signupForm.controls.password.touched">Enter Password</p>
<p style="text-align: center" *ngIf="signupForm.controls.password.hasError('minlength') && signupForm.controls.password.touched">Sorry, minimum password length is 6!</p>
</div>
<br>
<div class="row">
<ion-button expand="block" [disabled]="!signupForm.valid" (click)="user_signup()">SIGN UP</ion-button>
</div>
</div>
</form>
</div>
</ion-content>
<ion-footer class="textCenter">
<div class="log_btn_footer" (click)="istoggle()">
SIGN IN
</div>
</ion-footer>
</div>
.login_wrapper{
width: 100%;
.login_top_div{
background: url("../../assets/imgs/asset_background.png");
background-position: center;
background-size: 80%;
padding-top: 40px;
text-align: center;
padding-bottom:40px;
img{
width: 100px;
padding-bottom: 15px;
}
h3{
font-size: 35px;
font-weight: 600;
}
p{
color: #1b4077;
font-size: 18px;
margin-top: 0px;
font-weight: 500;
}
}
.login_form{
padding: 30px;
padding-left: 25px;
padding-right: 25px;
.row{
.radio_div{
padding-top: 10px;
padding-bottom: 10px;
ion-label{
font-size: 20px;
color: #c5c5c5;
margin-left:10px;
margin-right: 10px;
font-weight:300;
}
}
.button{
border-radius: 0px !important;
margin: 0px;
height: 45px;
font-size: 16px;
.button-native{
border-radius: 0px !important;
}
}
padding-bottom: 10px;
p{
text-align: center;
color: #727272;
font-size: 20px;
}
ion-input{
text-align: center;
font-size: 23px;
color: #c5c5c5;
font-weight:300;
border-bottom: 1px solid #cbcbcb;
}
.has-focus{
background-image: url("../../assets/imgs/asset_focus_border.png");
background-position: bottom center;
background-size: 100%;
background-repeat: no-repeat;
border:none !important;
}
}
}
}
ion-footer{
background: transparent;
border:none;
background-image: none !important;
.log_btn_footer{
background-image: url("../../assets/imgs/asset_halfcircle.png");
background-position: center bottom;
color: #fff;
margin: 0 auto;
width: 200px;
text-align: center;
font-size: 18px;
font-weight: 300;
padding: 15px;
background-size: 90%;
background-repeat: no-repeat;
padding-top: 25px;
}
}
.footer-md:before {
background-image: none !important;
}
.signup_div{
height:calc(100vh - 60px);
}
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LoginPage } from './login.page';
describe('LoginPage', () => {
let component: LoginPage;
let fixture: ComponentFixture<LoginPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LoginPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(LoginPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import { Router,ActivatedRoute } from '@angular/router';
import {Validators, FormBuilder, FormGroup, FormControl } from '@angular/forms';
import {MyserviceService} from '../myservice.service'
@Component({
selector: 'app-login',
templateUrl: './login.page.html',
styleUrls: ['./login.page.scss'],
animations: [
trigger('slideInOut', [
transition(':enter', [
style({transform: 'translateY(100%)'}),
animate('300ms ease-in', style({transform: 'translateY(0%)'}))
]),
transition(':leave', [
animate('300ms ease-out', style({transform: 'translateY(100%)'}))
])
])
]
})
export class LoginPage implements OnInit {
private LoginForm : FormGroup;
private signupForm : FormGroup;
isShow = false;
constructor(
public myservice:MyserviceService,
private router: Router,
private route: ActivatedRoute,
private formBuilder: FormBuilder,
) {
this.LoginForm = this.formBuilder.group({
email: ['', Validators.compose([Validators.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"), Validators.required])],
password: ['', Validators.compose([Validators.required, Validators.minLength(6)]) ]
});
this.signupForm = this.formBuilder.group({
user_name:['',Validators.required],
email: ['', Validators.compose([Validators.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"), Validators.required])],
password: ['', Validators.compose([Validators.required, Validators.minLength(6)]) ] ,
mobile_no:['',Validators.compose([Validators.required, Validators.minLength(10)])],
gender :['',Validators.required],
});
}
ngOnInit() {
}
istoggle(){
this.isShow = !this.isShow;
}
goToPage(path,data=null){
this.router.navigateByUrl(path,{queryParams:data});
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
login()
{
var This= this
var data = null
console.log(this.LoginForm.value);
this.myservice.presentLoader();
var obj = {'value': this.LoginForm.value }
this.myservice.load_post(obj,'login').subscribe(resp =>{
This.myservice.dismissLoader();
console.log(resp.username);
if(resp.username === this.LoginForm.value['email'] && resp.password === this.LoginForm.value['password']){
this.myservice.presentToast('Login Success');
this.gotoPage();
this.LoginForm.reset();
}
else {
this.myservice.presentToast('Invalid credentials');
this.LoginForm.reset();
}
});
}
user_signup()
{
if(this.signupForm.valid) {
var data =null;
this.myservice.presentToast('Your account has been created successfully');
this.isShow = !this.isShow;
}
}
gotoPage() {
var data = null;
var This= this;
setTimeout( () => {
This.router.navigateByUrl('home',{queryParams:data,replaceUrl: true});
document.body.scrollTop = document.documentElement.scrollTop = 0;
}, 500);
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { MedicalauthorizationPage } from './medicalauthorization.page';
const routes: Routes = [
{
path: '',
component: MedicalauthorizationPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [MedicalauthorizationPage]
})
export class MedicalauthorizationPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Medical Authorizations</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content *ngIf="medicalresp">
<div class="list_wrapper">
<ul >
<li *ngFor="let medical_data of medicalresp; let i = index" >
<div class="list_main" (click)="toggleGroup(i)" [ngClass]="{active:isGroupShown(i)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>{{medical_data.expiry_date}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(i)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>{{medical_data.name_medicine}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>{{medical_data.time_perday}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Time of first medication</p>
<h3>{{medical_data.date_first_medicine}}{{medical_data.time_first_medicine}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>{{medical_data.quantity_available}}</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MedicalauthorizationPage } from './medicalauthorization.page';
describe('MedicalauthorizationPage', () => {
let component: MedicalauthorizationPage;
let fixture: ComponentFixture<MedicalauthorizationPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MedicalauthorizationPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MedicalauthorizationPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import {MyserviceService} from '../myservice.service';
import { Router, ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-medicalauthorization',
templateUrl: './medicalauthorization.page.html',
styleUrls: ['./medicalauthorization.page.scss']
})
export class MedicalauthorizationPage implements OnInit {
id:any;
shownGroup = null;
medicalresp:any
constructor(public myservice:MyserviceService,private router: Router,private route: ActivatedRoute) {
this.shownGroup = 0;
}
ngOnInit() {
this.id = this.route.snapshot.paramMap.get('id');
console.log(this.id);
this.get_medical_data();
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_medical_data(){
this.myservice.presentLoader();
this.myservice.load_get('get_medicalauthorization/id/'+this.id).subscribe(resp =>{
this.myservice.dismissLoader();
this.medicalresp = this.myservice.ObjArray(resp.data);
console.log('Medical', this.medicalresp)
});
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { MedicalhistoryPage } from './medicalhistory.page';
const routes: Routes = [
{
path: '',
component: MedicalhistoryPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [MedicalhistoryPage]
})
export class MedicalhistoryPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Medical History</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li>
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col-10 floatLeft">
<h3><strong>Health Form</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_sub_inner">
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>Healthform201951012103181.txt</a></p>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</li>
<li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col-10 floatLeft">
<h3><strong>Treatment Authorization</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_sub_inner">
<div class="list_bar"> <!--Repeat-->
<div class="col-10 floatLeft">
<p class="p0"><a>TreatmentAuthorizations20195714285491.pdf</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>TreatmentAuthorizations20195713131612.pdf</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>TreatmentAuthorizations2019510121528700.txt</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>TreatmentAuthorizations201951014481192.pdf</a></p>
</div>
<div class="clear"></div>
</div>
</div>
<hr>
</div>
</li>
<li>
<div class="list_main" (click)="toggleGroup(2)" [ngClass]="{active:isGroupShown(2)}">
<div class="col-10 floatLeft">
<h3><strong>Medication Authorization</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(2)">
<div class="list_sub_inner">
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>MedicationAuthorizations201957142746208.pdf</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>MedicationAuthorizations201951192243994.pdf</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>MedicationAuthorizations201951192243994.pdf</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>MedicationAuthorizations201951110859761.pdf</a></p>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col-10 floatLeft">
<p class="p0"><a>MedicationAuthorizations2019511111252129.pdf</a></p>
</div>
<div class="clear"></div>
</div>
</div>
<hr>
</div>
</li>
<li>
<div class="list_main" (click)="toggleGroup(3)" [ngClass]="{active:isGroupShown(3)}">
<div class="col-10 floatLeft">
<h3><strong>Immunization</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(3)">
<div class="list_sub_inner">
<div class="list_bar">
<div class="col -10 floatLeft">
<p>No records</p>
</div>
<div class="clear"></div>
</div>
</div>
<hr>
</div>
</li>
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_sub_inner{
border-bottom: 1px solid #fff;
}
hr{
border-top:none;
height:0px;
}
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MedicalhistoryPage } from './medicalhistory.page';
describe('MedicalhistoryPage', () => {
let component: MedicalhistoryPage;
let fixture: ComponentFixture<MedicalhistoryPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MedicalhistoryPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MedicalhistoryPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
import{ Location} from '@angular/common'
@Component({
selector: 'app-medicalhistory',
templateUrl: './medicalhistory.page.html',
styleUrls: ['./medicalhistory.page.scss'],
})
export class MedicalhistoryPage implements OnInit {
shownGroup= null;
constructor(public location:Location) {
this.shownGroup = 0;
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { MedicationtrackingPage } from './medicationtracking.page';
const routes: Routes = [
{
path: '',
component: MedicationtrackingPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [MedicationtrackingPage]
})
export class MedicationtrackingPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Medication Tracking</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li>
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col-10 floatLeft">
<h3><strong>Medication schedule -Open</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_sub_inner" *ngFor = "let medical of medicalschedule_open ">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of Medicine</p>
<h3>{{medical.name_medicine}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Dosage Units</p>
<h3>{{medical.dosage_unit}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Times Per Day</p>
<h3>{{medical.time_per_day}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>Test</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3><a>Approve</a> / <a>Reject</a></h3>
</div>
<div class="clear"></div>
</div>
</div>
<hr>
<!-- <div class="list_sub_inner">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of Medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>TDosage Units</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Times Per Day</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="clear"></div>
</div>
</div> -->
</div>
</li>
<li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col-10 floatLeft">
<h3><strong>Medication Distribution Transaction-Log</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_sub_inner" *ngFor = "let medical_log of medicalschedule_log ">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>{{medical_log.name_medicine}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Dosage Units</p>
<h3>{{medical_log.dossage_units}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Units Provided</p>
<h3>{{medical_log.units_provided}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Date Medication Received</p>
<h3>{{medical_log.date_medication_received}} {{medical_log.time_medication}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Notes</p>
<h3>{{medical_log.notes}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Given By</p>
<h3>{{medical_log.given_by}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Missed Medication</p>
<h3>{{medical_log.missed_medication}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Action</p>
<h3><a>Approve</a> / <a>Reject</a></h3>
</div>
<div class="clear"></div>
</div>
</div>
<hr>
</div>
</li>
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_sub_inner{
border-bottom: 1px solid #fff;
}
hr{
border-top:none;
height:0px;
}
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MedicationtrackingPage } from './medicationtracking.page';
describe('MedicationtrackingPage', () => {
let component: MedicationtrackingPage;
let fixture: ComponentFixture<MedicationtrackingPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MedicationtrackingPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MedicationtrackingPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
@Component({
selector: 'app-medicationtracking',
templateUrl: './medicationtracking.page.html',
styleUrls: ['./medicationtracking.page.scss'],
})
export class MedicationtrackingPage implements OnInit {
medicalschedule_open:any
shownGroup = null;
medicalschedule_log:any;
constructor() {
this.shownGroup = 0;
this.get_medicalSchedule();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_medicalSchedule() {
var mediocalschedule = {
"data" :[
{
"name_medicine":"Hydrochlorothiazide",
"dosage_unit":"5",
"time_per_day":"3",
},
{
"name_medicine":"Hydrochlorothiazide",
"dosage_unit":"5",
"time_per_day":"3",
},
{
"name_medicine":"Hydrochlorothiazide",
"dosage_unit":"5",
"time_per_day":"3",
},
{
"name_medicine":"Potassium Chloride",
"dosage_unit":"5",
"time_per_day":"2",
},
]
};
this.medicalschedule_open = mediocalschedule.data;
console.log(this.medicalschedule_open);
var medication_transaction_log = {
data :[
{
"name_medicine":"Potassium Chloride",
"dossage_units":"5",
"units_provided":"22",
"date_medication_received":"06/14/2019",
"time_medication":"03:01 PM",
"notes":"test",
"given_by":"Admin Nuvento",
"missed_medication":"no"
},
{
"name_medicine":"Amoxicillin",
"dossage_units":"1",
"units_provided":"3",
"date_medication_received":"12/6/2019 ",
"time_medication":"13:04:00",
"notes":"test",
"given_by":"Admin Nuvento",
"missed_medication":"no"
},
{
"name_medicine":"Amlodipine",
"dossage_units":"10",
"units_provided":"15",
"date_medication_received":"12/6/2019 ",
"time_medication":"12:02:00",
"notes":"test",
"given_by":"Admin Nuvento",
"missed_medication":"no"
}
]
};
this.medicalschedule_log = medication_transaction_log.data;
}
}
import { TestBed } from '@angular/core/testing';
import { MyserviceService } from './myservice.service';
describe('MyserviceService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: MyserviceService = TestBed.get(MyserviceService);
expect(service).toBeTruthy();
});
});
import { Injectable } from '@angular/core';
import { Component } from '@angular/core';
import { Http, Headers, RequestOptions } from '@angular/http';
import { map } from 'rxjs/operators';
import { LoadingController ,ToastController } from '@ionic/angular';
import {Observable,of, from } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class MyserviceService {
webservice_url =' https://demo8587560.mockable.io/';
post_url : any;
loading:any;
currentLoading:any
constructor(
public http: Http,
public loadingController: LoadingController,
public toastController: ToastController
) { }
load_post(post_data, fn_name) {
var post_url = this.webservice_url + fn_name;
post_data = JSON.stringify(post_data);
// let headers = new Headers({
// 'Content-Type' : 'application/json'
// });
// let options = new RequestOptions({ headers: headers });
return this.http.post(post_url, post_data).pipe(map(res => res.json()));
}
load_get(fn_name) {
this.post_url = this.webservice_url + fn_name;
return this.http.get(`${this.post_url}`).pipe(map(res => res.json()));
}
async presentLoader() {
if (this.currentLoading != null) {
this.currentLoading.dismiss();
}
this.currentLoading = await this.loadingController.create({
message: 'Loading...'
});
return await this.currentLoading.present();
}
async dismissLoader() {
await this.loadingController.dismiss();
this.currentLoading = null;
console.log('Dismis loader')
// return;
}
async presentToast(message) {
const toast = await this.toastController.create({
message: message,
duration: 2000
});
toast.present();
}
ObjArray(data: any) {
if (data instanceof Array !== true) {
if (data !== undefined) {
return new Array(data);
} else {
return undefined;
}
} else {
return data;
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { ScreeningsPage } from './screenings.page';
const routes: Routes = [
{
path: '',
component: ScreeningsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [ScreeningsPage]
})
export class ScreeningsPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Screenings</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li>
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col-10 floatLeft">
<h3><strong>Scoliosis Screenings</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_sub_inner" *ngFor = "let medical of scoliosis_screenings_data ">
<div class="list_bar">
<div class="col floatLeft">
<p>Student Number</p>
<h3>{{medical.student_number}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Date Screening Provided</p>
<h3>{{medical.date}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Screening Outcome</p>
<h3>{{medical.outcome}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Note</p>
<h3>Test</h3>
</div>
<div class="clear"></div>
</div>
<!-- <div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3></h3>
</div>
<div class="clear"></div>
</div> -->
</div>
<hr>
<!-- <div class="list_sub_inner">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of Medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>TDosage Units</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Times Per Day</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="clear"></div>
</div>
</div> -->
</div>
</li>
<li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col-10 floatLeft">
<h3><strong>Vision Screenings</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_sub_inner" *ngFor = "let medical_log of vision_screenings_data ">
<div class="list_bar">
<div class="col floatLeft">
<p>Student Number</p>
<h3>{{medical_log.student_number}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Vision Aid</p>
<h3>{{medical_log.vison}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Left Eye Result</p>
<h3>{{medical_log.left_eye_result}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Right Eye Result</p>
<h3>{{medical_log.right_eye_result}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Screenig Outcome</p>
<h3>{{medical_log.outcome}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Note</p>
<h3>Test</h3>
</div>
<div class="clear"></div>
</div>
</div>
<hr>
</div>
</li>
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_sub_inner{
border-bottom: 1px solid #fff;
}
hr{
border-top:none;
height:0px;
}
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ScreeningsPage } from './screenings.page';
describe('ScreeningsPage', () => {
let component: ScreeningsPage;
let fixture: ComponentFixture<ScreeningsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ScreeningsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ScreeningsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
@Component({
selector: 'app-screenings',
templateUrl: './screenings.page.html',
styleUrls: ['./screenings.page.scss'],
})
export class ScreeningsPage implements OnInit {
shownGroup = null;
scoliosis_screenings_data:any
vision_screenings_data:any
constructor() {
this.shownGroup = 0;
this.get_screeningsData();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_screeningsData()
{
var scoliosis_screenings= {
data :[
{
"student_number":"33393",
"date":"12/06/2019",
"outcome":"Doctor Intervention Required"
},
{
"student_number":"33393",
"date":"05/21/2019",
"outcome":"Doctor Intervention Required"
}
]};
this.scoliosis_screenings_data= scoliosis_screenings.data;
var vision_screenings =
{
"data":[
{
"student_number":"33393",
"vison":"Yes",
"left_eye_result":"pass",
"right_eye_result":"No",
"outcome":"Spectacled Needed"
},
{
"student_number":"33393",
"vison":"No",
"left_eye_result":"pass",
"right_eye_result":"pass",
"outcome":"No Concerns"
},
]
};
this.vision_screenings_data = vision_screenings.data;
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { SignupPage } from './signup.page';
const routes: Routes = [
{
path: '',
component: SignupPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [SignupPage]
})
export class SignupPageModule {}
<ion-header>
<ion-toolbar>
<ion-title>signup</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
</ion-content>
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SignupPage } from './signup.page';
describe('SignupPage', () => {
let component: SignupPage;
let fixture: ComponentFixture<SignupPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SignupPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SignupPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-signup',
templateUrl: './signup.page.html',
styleUrls: ['./signup.page.scss'],
})
export class SignupPage implements OnInit {
constructor() { }
ngOnInit() {
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { StudentsprofilePage } from './studentsprofile.page';
const routes: Routes = [
{
path: '',
component: StudentsprofilePage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [StudentsprofilePage]
})
export class StudentsprofilePageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Student Health</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li *ngIf="student_data">
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Student Health</strong></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p>Condition</p>
<h3>Notes</h3>
</div> -->
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_bar">
<!-- <div class="col floatLeft">
<p>Condition</p>
<h3>{{student_data.condition}}</h3>
</div> -->
<div class="col floatLeft borderNone">
<p>Physician</p>
<h3>{{student_data.Physician}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Broken Bones</p>
<h3>{{student_data.broken_bones}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Mental Problems</p>
<h3>{{student_data.mental_problems}}</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<li>
<!-- <div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div> -->
<!-- <div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div> -->
</li>
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { StudentsprofilePage } from './studentsprofile.page';
describe('StudentsprofilePage', () => {
let component: StudentsprofilePage;
let fixture: ComponentFixture<StudentsprofilePage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ StudentsprofilePage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(StudentsprofilePage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
@Component({
selector: 'app-studentsprofile',
templateUrl: './studentsprofile.page.html',
styleUrls: ['./studentsprofile.page.scss'],
})
export class StudentsprofilePage implements OnInit {
shownGroup = null;
student_data :any
constructor() {
this.shownGroup = 0;
this.get_studentsData();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_studentsData() {
this.student_data= {
"condition":"notes",
"Physician":"Stewart Smith",
"broken_bones" :"no",
"mental_problems" :"no"
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { TreatmentauthorizationPage } from './treatmentauthorization.page';
const routes: Routes = [
{
path: '',
component: TreatmentauthorizationPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [TreatmentauthorizationPage]
})
export class TreatmentauthorizationPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Treatment Authorizations</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf = "treatment_authorization">
<li *ngFor= "let treatment_details of treatment_authorization ; let i=index">
<div class="list_main" (click)="toggleGroup(i)" [ngClass]="{active:isGroupShown(i)}">
<div class="col-10 floatLeft">
<p>Name</p>
<h3><strong>{{treatment_details.name}}</strong></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p></p>
<h3>06/12/2019</h3>
</div> -->
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(i)">
<div class="list_bar">
<div class="col floatLeft">
<p>Treatment Description</p>
<h3>Test</h3>
</div>
<div class="col floatLeft borderNone">
<p>Treatment Type</p>
<h3>{{treatment_details.treatment_type}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Times Per Day</p>
<h3>{{treatment_details.times_per_day}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Time of First Treatment</p>
<h3>{{treatment_details.dte_of_first_treat}} {{treatment_details.time_of_first_treat}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Expiry Date</p>
<h3>{{treatment_details.expiry_date}}</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TreatmentauthorizationPage } from './treatmentauthorization.page';
describe('TreatmentauthorizationPage', () => {
let component: TreatmentauthorizationPage;
let fixture: ComponentFixture<TreatmentauthorizationPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TreatmentauthorizationPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TreatmentauthorizationPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import {MyserviceService} from '../myservice.service'
@Component({
selector: 'app-treatmentauthorization',
templateUrl: './treatmentauthorization.page.html',
styleUrls: ['./treatmentauthorization.page.scss'],
})
export class TreatmentauthorizationPage implements OnInit {
shownGroup = null;
treatment_authorization:any;
constructor(public myservice : MyserviceService) {
this.shownGroup = 0;
this.treatment_authorization = {
"message":"success",
"data" :[
{
"name":"TreatmentAuthorizations2019511114723687",
"treatment_type":"Tube feeding",
"treatment_description":"test",
"expiry_date":"06/21/2019",
"times_per_day":"2",
"time_of_first_treat":"11:47:00",
"dte_of_first_treat":"11/6/2019"
},
{
"name":"TreatmentAuthorizations201951014481192",
"treatment_type":"Radiation therapy",
"treatment_description":"test",
"expiry_date":"06/21/2019",
"times_per_day":"2",
"time_of_first_treat":"14:48",
"dte_of_first_treat":"10/6/2019"
},
{
"name":"TreatmentAuthorizations2019510121528700",
"treatment_type":"Vaccine therapy",
"treatment_description":"test",
"expiry_date":"06/21/2019",
"times_per_day":"2",
"time_of_first_treat":"14:48:00",
"dte_of_first_treat":"10/6/2019"
},
{
"name":"TreatmentAuthorizations20195714285491",
"treatment_type":"Inhalation",
"treatment_description":"test",
"expiry_date":"06/21/2019",
"times_per_day":"2",
"time_of_first_treat":"14:29:00",
"dte_of_first_treat":"7/6/2019"
},
{
"name":"TreatmentAuthorizations20195713131612",
"treatment_type":"Chemotherapy",
"treatment_description":"test",
"expiry_date":"06/20/2019",
"times_per_day":"3",
"time_of_first_treat":"13:01:00",
"dte_of_first_treat":"7/6/2019 "
}
]
}
this.get_treatmentAuthorizationDetails();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_treatmentAuthorizationDetails() {
this.treatment_authorization = this.myservice.ObjArray(this.treatment_authorization.data);
console.log(this.treatment_authorization);
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { TreatmenttrackingsPage } from './treatmenttrackings.page';
const routes: Routes = [
{
path: '',
component: TreatmenttrackingsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [TreatmenttrackingsPage]
})
export class TreatmenttrackingsPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Treatment Tracking</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li>
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col-10 floatLeft">
<h3><strong>Treatment Schedule -Open</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_sub_inner" *ngIf="treatment_schedule_open">
<div class="list_bar">
<div class="col floatLeft">
<p>Treatment Type</p>
<h3>{{treatment_schedule_open.treatment_type}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>{{treatment_schedule_open.times_perday}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3><a>Approve</a> / <a>Reject</a></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>Test</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3></h3>
</div>
<div class="clear"></div>
</div> -->
</div>
<hr>
<!-- <div class="list_sub_inner">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of Medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>TDosage Units</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Times Per Day</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="clear"></div>
</div> -->
</div>
</div>
</li>
<li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col-10 floatLeft">
<h3><strong>Medication Distribution Transaction-Log</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_sub_inner" *ngFor = "let medical_log of treatment_distribution_log ">
<div class="list_bar">
<div class="col floatLeft">
<p>Treatment Type</p>
<h3>{{medical_log.treatment_type}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Treatment Description</p>
<h3>{{medical_log.treatment_description}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Date Treatment Received</p>
<h3>{{medical_log.date_treatment_received}} {{medical_log.time_treatment_received}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Notes</p>
<h3>{{medical_log.notes}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Given By</p>
<h3>Admin Nuvento</h3>
</div>
<div class="col floatLeft borderNone">
<p>Action</p>
<h3><a>Approve</a> / <a>Reject</a></h3>
</div>
<div class="clear"></div>
</div>
<!-- <div class="list_bar">
<div class="col floatLeft">
<p>Missed Medication</p>
<h3>{{medical_log.missed_medication}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Action</p>
<h3></h3>
</div>
<div class="clear"></div>
</div> -->
</div>
<hr>
</div>
</li>
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 45%;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_sub_inner{
border-bottom: 1px solid #fff;
}
hr{
border-top:none;
height:0px;
}
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TreatmenttrackingsPage } from './treatmenttrackings.page';
describe('TreatmenttrackingsPage', () => {
let component: TreatmenttrackingsPage;
let fixture: ComponentFixture<TreatmenttrackingsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TreatmenttrackingsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TreatmenttrackingsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
@Component({
selector: 'app-treatmenttrackings',
templateUrl: './treatmenttrackings.page.html',
styleUrls: ['./treatmenttrackings.page.scss'],
})
export class TreatmenttrackingsPage implements OnInit {
shownGroup = null;
treatment_schedule_open:any;
treatment_distribution_log:any
constructor() {
this.shownGroup = 0;
this.get_treattrackings();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_treattrackings()
{
this.treatment_schedule_open= {
"treatment_type":"Tube feeding",
"times_perday":"2",
"Action":"approve"
};
var log = {
data:[
{
"treatment_type":"Inhalation",
"treatment_description":"test",
"date_treatment_received":"6/7/2019",
"time_treatment_received":"6:30:00",
"notes":"test"
},
{
"treatment_type":"Tube feeding",
"treatment_description":"test",
"date_treatment_received":"06/14/2019",
"time_treatment_received":"03.10.00",
"notes":"test",
}]
}
this.treatment_distribution_log =log.data;
}
}
<svg width="350" height="140" xmlns="http://www.w3.org/2000/svg" style="background:#f6f7f9"><g fill="none" fill-rule="evenodd"><path fill="#F04141" style="mix-blend-mode:multiply" d="M61.905-34.23l96.194 54.51-66.982 54.512L22 34.887z"/><circle fill="#10DC60" style="mix-blend-mode:multiply" cx="155.5" cy="135.5" r="57.5"/><path fill="#3880FF" style="mix-blend-mode:multiply" d="M208.538 9.513l84.417 15.392L223.93 93.93z"/><path fill="#FFCE00" style="mix-blend-mode:multiply" d="M268.625 106.557l46.332-26.75 46.332 26.75v53.5l-46.332 26.75-46.332-26.75z"/><circle fill="#7044FF" style="mix-blend-mode:multiply" cx="299.5" cy="9.5" r="38.5"/><rect fill="#11D3EA" style="mix-blend-mode:multiply" transform="rotate(-60 148.47 37.886)" x="143.372" y="-7.056" width="10.196" height="89.884" rx="5.098"/><path d="M-25.389 74.253l84.86 8.107c5.498.525 9.53 5.407 9.004 10.905a10 10 0 0 1-.057.477l-12.36 85.671a10.002 10.002 0 0 1-11.634 8.42l-86.351-15.226c-5.44-.959-9.07-6.145-8.112-11.584l13.851-78.551a10 10 0 0 1 10.799-8.219z" fill="#7044FF" style="mix-blend-mode:multiply"/><circle fill="#0CD1E8" style="mix-blend-mode:multiply" cx="273.5" cy="106.5" r="20.5"/></g></svg>
export const environment = {
production: true
};
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
// http://ionicframework.com/docs/theming/
@import '~@ionic/angular/css/core.css';
@import '~@ionic/angular/css/normalize.css';
@import '~@ionic/angular/css/structure.css';
@import '~@ionic/angular/css/typography.css';
@import '~@ionic/angular/css/display.css';
@import '~@ionic/angular/css/padding.css';
@import '~@ionic/angular/css/float-elements.css';
@import '~@ionic/angular/css/text-alignment.css';
@import '~@ionic/angular/css/text-transformation.css';
@import '~@ionic/angular/css/flex-utils.css';
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Ionic App</title>
<base href="/" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover">
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<link rel="icon" type="image/png" href="assets/icon/favicon.png" />
<!-- add to homescreen for ios -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
</head>
<body>
<app-root></app-root>
</body>
</html>
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.log(err));
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
* Learn more in https://angular.io/guide/browser-support
*/
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
* because those flags need to be set before `zone.js` being loaded, and webpack
* will put import in the top of bundle, so user need to create a separate file
* in this directory (for example: zone-flags.ts), and put the following flags
* into that file, and then add the following code before importing zone.js.
* import './zone-flags.ts';
*
* The flags allowed in zone-flags.ts are listed here.
*
* The following flags will work for all browsers.
*
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
* (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
*
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
* with the following flag, it will bypass `zone.js` patch for IE/Edge
*
* (window as any).__Zone_enable_cross_context_check = true;
*
*/
import './zone-flags.ts';
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/theming/
/** Ionic CSS Variables **/
:root {
/** primary **/
--ion-color-primary: #1b4077;
--ion-color-primary-rgb: 56, 128, 255;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
--ion-color-primary-shade: #1b4077;
--ion-color-primary-tint: #1b4077;
/** secondary **/
--ion-color-secondary: #0cd1e8;
--ion-color-secondary-rgb: 12, 209, 232;
--ion-color-secondary-contrast: #ffffff;
--ion-color-secondary-contrast-rgb: 255, 255, 255;
--ion-color-secondary-shade: #0bb8cc;
--ion-color-secondary-tint: #24d6ea;
/** tertiary **/
--ion-color-tertiary: #7044ff;
--ion-color-tertiary-rgb: 112, 68, 255;
--ion-color-tertiary-contrast: #ffffff;
--ion-color-tertiary-contrast-rgb: 255, 255, 255;
--ion-color-tertiary-shade: #633ce0;
--ion-color-tertiary-tint: #7e57ff;
/** success **/
--ion-color-success: #10dc60;
--ion-color-success-rgb: 16, 220, 96;
--ion-color-success-contrast: #ffffff;
--ion-color-success-contrast-rgb: 255, 255, 255;
--ion-color-success-shade: #0ec254;
--ion-color-success-tint: #28e070;
/** warning **/
--ion-color-warning: #ffce00;
--ion-color-warning-rgb: 255, 206, 0;
--ion-color-warning-contrast: #ffffff;
--ion-color-warning-contrast-rgb: 255, 255, 255;
--ion-color-warning-shade: #e0b500;
--ion-color-warning-tint: #ffd31a;
/** danger **/
--ion-color-danger: #f04141;
--ion-color-danger-rgb: 245, 61, 61;
--ion-color-danger-contrast: #ffffff;
--ion-color-danger-contrast-rgb: 255, 255, 255;
--ion-color-danger-shade: #d33939;
--ion-color-danger-tint: #f25454;
/** dark **/
--ion-color-dark: #222428;
--ion-color-dark-rgb: 34, 34, 34;
--ion-color-dark-contrast: #ffffff;
--ion-color-dark-contrast-rgb: 255, 255, 255;
--ion-color-dark-shade: #1e2023;
--ion-color-dark-tint: #383a3e;
/** medium **/
--ion-color-medium: #989aa2;
--ion-color-medium-rgb: 152, 154, 162;
--ion-color-medium-contrast: #ffffff;
--ion-color-medium-contrast-rgb: 255, 255, 255;
--ion-color-medium-shade: #86888f;
--ion-color-medium-tint: #a2a4ab;
/** light **/
--ion-color-light: #f4f5f8;
--ion-color-light-rgb: 244, 244, 244;
--ion-color-light-contrast: #000000;
--ion-color-light-contrast-rgb: 0, 0, 0;
--ion-color-light-shade: #d7d8da;
--ion-color-light-tint: #f5f6f9;
}
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"test.ts",
"zone-flags.ts",
"polyfills.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
}
{
"extends": "../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"page",
"kebab-case"
]
}
}
/**
* Prevents Angular change detection from
* running with certain Web Component callbacks
*/
(window as any).__Zone_disable_customElements = true;
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}
{
"extends": "tslint:recommended",
"rulesDirectory": [
"codelyzer"
],
"rules": {
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warn"
},
"import-blacklist": [
true,
"rxjs/Rx"
],
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"no-consecutive-blank-lines": false,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-empty": false,
"no-inferrable-types": [
true,
"ignore-params"
],
"no-non-null-assertion": true,
"no-redundant-jsdoc": true,
"no-switch-case-fall-through": true,
"no-use-before-declare": true,
"no-var-requires": false,
"object-literal-key-quotes": [
true,
"as-needed"
],
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single"
],
"trailing-comma": false,
"no-output-on-prefix": true,
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"one-variable-per-declaration": false,
"component-class-suffix": [true, "Page", "Component"],
"directive-class-suffix": true
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment