final edit

This commit is contained in:
reaw55 2021-12-10 11:18:48 +07:00
parent bbb27ade6f
commit f6eab447d6
3 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,7 @@ export class DataProviderService {
// allData(){
// return this.http.get('https://bc50-104-199-132-26.ngrok.io/alldata');
// }
public url = 'http://4255-34-91-36-11.ngrok.io/'
public url = 'http://66c9-35-230-85-94.ngrok.io'
insert(dbname: String,colname: String,web: String,cat: String){
return this.http.get<providerData>(this.url+"/insert?dbname="+dbname+"&collectionname="+colname+"&web="+web+"&cat="+cat);
//return this.http.get<providerData>(this.url+"/insert?dbname=data&collectionname=testdata&web=com.burbn.instagram&cat=test");

View File

@ -9,14 +9,12 @@
<ion-searchbar [(ngModel)]="searchbar" (search)="search($event)"></ion-searchbar>
</ion-toolbar>
<ion-card *ngFor="let item of current">
<ion-card-header style="height: 10px">{{item.time}}</ion-card-header>
<ion-card-header style="height: 10px"><ion-icon name="time"></ion-icon> {{item.time}}</ion-card-header>
<ion-card-title>
<ion-item>
<ion-icon size="large" name="apps-outline"></ion-icon>
<ion-icon size="large" name="log-in"></ion-icon>
<span class="text">
<center>
<h1>&nbsp;&nbsp;&nbsp;{{item.web}}</h1>
</center>
<h1>&nbsp;&nbsp;{{item.web}}</h1>
</span>
</ion-item>
</ion-card-title>

View File

@ -18,7 +18,8 @@ export class Tab2Page implements OnInit {
}
submit() {
var dbname = "data"
var colname = "testdata"
//var colname = "testdata"
var colname = "data2"
this.data$=this.tempProvider.insert(dbname,colname,this.web,this.category)
}