-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
489 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,62 @@ | ||
<ion-header> | ||
<ion-navbar color="myapp1"> | ||
<ion-title> | ||
About | ||
Blogs | ||
</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content padding> | ||
<ion-refresher (ionRefresh)="doRefresh($event);"> | ||
<ion-refresher-content> | ||
|
||
|
||
</ion-refresher-content> | ||
</ion-refresher> | ||
<ion-card *ngFor="let i of bg"> | ||
|
||
<ion-item> | ||
|
||
|
||
<h2>{{i.fk_doc_email_id}}</h2> | ||
<p>{{i.fk_spec_id}}</p> | ||
</ion-item> | ||
|
||
|
||
|
||
<ion-card-content> | ||
<p>{{i.blog_title}}</p> | ||
<p>Your Answers:</p> | ||
<p>{{i.blog_desc}}</p> | ||
</ion-card-content> | ||
|
||
<ion-row> | ||
<ion-col> | ||
<button ion-button icon-left clear small (tap)="tapev($event)" style="cursor:pointer;" > | ||
<ion-icon name="thumbs-up" ></ion-icon> | ||
<div>{{like}} Likes</div> | ||
</button> | ||
</ion-col> | ||
<ion-col> | ||
<button ion-button icon-left clear small (tap)="tapv($event)" style="cursor:pointer;" > | ||
<ion-icon name="text"></ion-icon> | ||
<div>{{comment}} Share</div> | ||
</button> | ||
|
||
<button ion-button icon-left clear small (tap)="onRead(i.blog_id)" style="cursor:pointer;" > | ||
<ion-icon name="text"></ion-icon> | ||
<div>Read More</div> | ||
</button> | ||
|
||
</ion-col> | ||
<ion-col center text-center> | ||
<ion-note> | ||
{{i.blog_date}} | ||
</ion-note> | ||
</ion-col> | ||
</ion-row> | ||
|
||
</ion-card> | ||
|
||
|
||
</ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,59 @@ | ||
import { Component } from '@angular/core'; | ||
import { NavController } from 'ionic-angular'; | ||
|
||
import { NavController,ToastController } from 'ionic-angular'; | ||
import { BlogdbProvider } from "../../providers/blogdb/blogdb"; | ||
import { blog } from "./blog"; | ||
import { BlogdescriptionPage} from "../blogdescription/blogdescription"; | ||
@Component({ | ||
selector: 'page-about', | ||
templateUrl: 'about.html' | ||
}) | ||
export class AboutPage { | ||
bg:blog[]; | ||
like:number=0; | ||
comment:number=0; | ||
constructor(public navCtrl: NavController,public bgdata:BlogdbProvider,public toast:ToastController) { | ||
|
||
constructor(public navCtrl: NavController) { | ||
|
||
} | ||
doRefresh(refresher){ | ||
|
||
|
||
|
||
this.bgdata.getAllBlogs().subscribe( | ||
(data:blog[])=>{ | ||
this.bg=data; | ||
} | ||
); | ||
|
||
refresher.complete(); | ||
|
||
} | ||
ionViewDidLoad(){ | ||
let t1=this.toast.create({ | ||
message:"Pull Down to Refresh Content", | ||
duration:5000, | ||
position:"bottom" | ||
}); | ||
this.bgdata.getAllBlogs().subscribe( | ||
(data:blog[])=>{ | ||
this.bg=data; | ||
} | ||
); | ||
t1.present(); | ||
} | ||
tapev(e) | ||
{ | ||
this.like++; | ||
} | ||
tapv(k) | ||
{ | ||
this.comment++; | ||
} | ||
onRead(i:any) | ||
{ | ||
|
||
this.navCtrl.push(BlogdescriptionPage,{ | ||
param1:i | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class blog | ||
{ | ||
constructor(public blog_id:number,public blog_title:string,public blog_desc:string,public fk_doc_email_id:string,public blog_date:string,public fk_spec_id:string) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Generated template for the BlogdescriptionPage page. | ||
See http://ionicframework.com/docs/components/#navigation for more info on | ||
Ionic pages and navigation. | ||
--> | ||
<ion-header> | ||
|
||
<ion-navbar color="myapp1"> | ||
<ion-title>Blog Description</ion-title> | ||
</ion-navbar> | ||
|
||
</ion-header> | ||
|
||
|
||
<ion-content padding> | ||
{{blogid}} | ||
<ion-card *ngFor="let item of blogdata"> | ||
|
||
<ion-card-header> | ||
{{item.blog_title}} | ||
{{date | date: 'ddMMyyyy'}}{{item.blog_date}} | ||
<div align="right"> | ||
<div>{{item.fk_doc_email_id}}</div> | ||
<div>{{item.fk_spec_id}}</div> | ||
</div> | ||
</ion-card-header> | ||
|
||
<ion-card-content> | ||
{{item.blog_desc}} | ||
</ion-card-content> | ||
|
||
</ion-card> | ||
</ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { IonicPageModule } from 'ionic-angular'; | ||
import { BlogdescriptionPage } from './blogdescription'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
BlogdescriptionPage, | ||
], | ||
imports: [ | ||
IonicPageModule.forChild(BlogdescriptionPage), | ||
], | ||
}) | ||
export class BlogdescriptionPageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
page-blogdescription { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Component} from '@angular/core'; | ||
import { IonicPage, NavController, NavParams,LoadingController } from 'ionic-angular'; | ||
import { BlogdbProvider } from "../../providers/blogdb/blogdb"; | ||
import { blog } from "../about/blog"; | ||
/** | ||
* Generated class for the BlogdescriptionPage page. | ||
* | ||
* See https://ionicframework.com/docs/components/#navigation for more info on | ||
* Ionic pages and navigation. | ||
*/ | ||
|
||
@IonicPage() | ||
@Component({ | ||
selector: 'page-blogdescription', | ||
templateUrl: 'blogdescription.html', | ||
}) | ||
export class BlogdescriptionPage { | ||
blogid:Number; | ||
blogdata:blog[]; | ||
constructor(public navCtrl: NavController, public navParams: NavParams,public db:BlogdbProvider,public loadingcontroller:LoadingController) { | ||
} | ||
|
||
ionViewDidLoad() { | ||
this.blogid=this.navParams.get('param1'); | ||
|
||
console.log('ionViewDidLoad BlogdescriptionPage'); | ||
this.db.blogid=this.blogid; | ||
let loadingdata=this.loadingcontroller.create({ | ||
content:"Fetching your prescriptions" | ||
}); | ||
loadingdata.present(); | ||
this.db.getBlogById().subscribe( | ||
(data:blog[])=>{ | ||
this.blogdata=data; | ||
console.log(data); | ||
} | ||
, | ||
function(error){ | ||
console.log("error"+error) | ||
}, | ||
function(){ | ||
console.log("success"); | ||
loadingdata.dismiss(); | ||
} | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- | ||
Generated template for the ChatwithbotPage page. | ||
See http://ionicframework.com/docs/components/#navigation for more info on | ||
Ionic pages and navigation. | ||
--> | ||
<ion-header> | ||
|
||
<ion-navbar color="myapp1"> | ||
<ion-title>Chat with Bot</ion-title> | ||
</ion-navbar> | ||
|
||
</ion-header> | ||
|
||
|
||
<ion-content padding> | ||
|
||
</ion-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { IonicPageModule } from 'ionic-angular'; | ||
import { ChatwithbotPage } from './chatwithbot'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
ChatwithbotPage, | ||
], | ||
imports: [ | ||
IonicPageModule.forChild(ChatwithbotPage), | ||
], | ||
}) | ||
export class ChatwithbotPageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
page-chatwithbot { | ||
|
||
} |
Oops, something went wrong.