Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
3f826ff
Translation to spanish
ridweng Sep 14, 2022
a9d6f52
console.log out
ridweng Sep 14, 2022
16942f4
added algo 70
ridweng Sep 15, 2022
ccf8a21
docker compose update
ridweng Sep 15, 2022
9b6bdcf
bread added
ridweng Sep 15, 2022
e5b018a
timezone adjustment
ridweng Sep 16, 2022
e38c12f
Range of availability and temp
ridweng Sep 21, 2022
3fd1b5a
LAtest commit
ridweng Dec 1, 2022
c0dc535
docker compose updated
ridweng Dec 5, 2022
5d4aa18
proxy added in gitignore
ridweng Dec 21, 2022
c83a23d
updated docker compose
ridweng Dec 21, 2022
f3f1899
spanish queue
ridweng Dec 21, 2022
2e7dfcd
trolley and receipt
ridweng Dec 21, 2022
857f822
update
ridweng Dec 29, 2022
e84ba78
Fixed sort function of faster and slower queue
ridweng Jan 2, 2023
e2eee5f
newer docker compose
ridweng Jan 2, 2023
2ae6eef
console.log out
ridweng Jan 11, 2023
30bebdc
test new excel
ridweng Jan 19, 2023
bff1f2b
new method of excel data
ridweng Jan 19, 2023
9ec9b39
no data situation
ridweng Jan 19, 2023
d584da7
added proxy to docker
ridweng Jan 30, 2023
50f53f4
console logs removed
ridweng Jan 30, 2023
26e3568
fixed issue with availability
ridweng Feb 6, 2023
6a653ea
changed queues from H&C to strings
ridweng Feb 6, 2023
b1db9b7
space remov
ridweng Feb 6, 2023
b5c23d8
queue changed to queue number
ridweng Feb 6, 2023
7e5522b
docker update
ridweng Feb 7, 2023
4a99103
proxy added in rep
ridweng Feb 7, 2023
7c0ce9a
docker updatrd
ridweng Feb 8, 2023
62103cf
augmented pool of proxy
ridweng Feb 9, 2023
83c2dd9
changed graphs
ridweng Feb 9, 2023
64ff1f2
console.log out
ridweng Feb 10, 2023
c89be07
report adapted
ridweng Feb 24, 2023
d9b238e
removed queue 1 from db
ridweng Mar 28, 2023
d89c841
report
ridweng Mar 29, 2023
531ff7d
console.log
ridweng May 18, 2023
bcea724
cam ham and cheese
ridweng May 18, 2023
e605520
picture retaken feature
ridweng May 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ dockerDeployment/resources/**
!dockerDeployment/resources/Microsoft_logo.svg.png
!dockerDeployment/resources/googleLogo.png
!dockerDeployment/resources/favicon1.png
!dockerDeployment/resources/favicon1.ico
!dockerDeployment/resources/favicon1.ico
proxy/resources/**
82 changes: 72 additions & 10 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"core-js": "^2.6.12",
"echarts": "^5.2.1",
"eva-icons": "^1.1.3",
"file-saver": "^2.0.5",
"glob-parent": "^5.1.2",
"intl": "1.2.5",
"ionicons": "2.0.1",
Expand Down Expand Up @@ -88,6 +89,8 @@
"tslib": "^2.0.0",
"typeface-exo": "0.0.22",
"typescript": "^4.5.5",
"uuid": "^9.0.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.1/xlsx-0.19.1.tgz",
"zone.js": "~0.11.4"
},
"devDependencies": {
Expand Down Expand Up @@ -118,4 +121,4 @@
"tslint": "~6.1.0",
"tslint-language-service": "^0.9.9"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="header-container">
<nb-actions size="small">
<nb-action class="control-item">
<button nbButton [status]="'primary'" outline [size]="'tiny'" (click)="signOff()">Log Out</button>
<button nbButton [status]="'primary'" outline [size]="'tiny'" (click)="signOff()">Salir</button>
</nb-action>
<!--
<nb-action class="control-item">
Expand Down
18 changes: 9 additions & 9 deletions client/src/app/pages/cameras_conf/add_camera/vid.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<nb-card>
<nb-card-header>
<h3 align='center' style='word-wrap: break-word;'>
{{camera.name == '' ? 'Name of Camera' : camera.name}}</h3>
{{camera.name == '' ? 'Nombre de la camara' : camera.name}}</h3>
</nb-card-header>
<nb-card-body>
<h6 align='center' style='word-wrap: break-word;'>{{camera.rtsp_in == '' ? 'Link' : camera.rtsp_in}}</h6>
<!-- <h6 align='center' style='word-wrap: break-word;'>Lon: {{camera.atributes.longitude == '' ? 'Longitude' : camera.atributes.longitude}}</h6>
<h6 align='center' style='word-wrap: break-word;'>Lat: {{camera.atributes.latitude == '' ? 'Latitude' : camera.atributes.latitude}}</h6> -->
<button [routerLink]="['/pages/camerasList']" class='btn-block' nbButton [status]="'primary'"><i class="fas fa-arrow-circle-left"></i> Back</button>
<button [routerLink]="['/pages/camerasList']" class='btn-block' nbButton [status]="'primary'"><i class="fas fa-arrow-circle-left"></i> Volver</button>
</nb-card-body>
</nb-card>
</div>
Expand All @@ -19,22 +19,22 @@ <h6 align='center' style='word-wrap: break-word;'>Lat: {{camera.atributes.latitu

<nb-card-body>
<form>
<h6>Name:</h6>
<h6>Nombre:</h6>
<div class="form-group">
<input type="text" name="name" [(ngModel)]="camera.name" placeholder="Name" class="form-control form-control-lg" fullWidth nbInput [status]='values.name' autofocus required>
<input type="text" name="name" [(ngModel)]="camera.name" placeholder="Nombre" class="form-control form-control-lg" fullWidth nbInput [status]='values.name' autofocus required>
<div *ngIf="submitted && values.name == 'danger'" class="text-danger">
<small> Fill the name to proceed.</small>
<small> Porfavor llenar nombre.</small>
</div>
</div>
<div *ngIf='!edit'>
<h6>Rtsp link:</h6>
<h6>Link Rtsp:</h6>
<div class="form-group">
<input type="text" name="rtsp" [(ngModel)]="camera.rtsp_in" placeholder="Link" class="form-control form-control" fullWidth nbInput [status]='values.rtsp' required>
<div *ngIf="submitted && values.rtsp == 'danger'" class="text-danger">
<small> Fill an Rtsp link to proceed.</small>
<small> Porfavor llenar link Rtsp.</small>
</div>
<div *ngIf="submitted && values.rtsp == 'warning'" class="text-warning">
<small> This Rtsp link has been used in this branch.</small>
<small> Este link esta en uso.</small>
</div>
</div>
</div>
Expand All @@ -46,7 +46,7 @@ <h6>Latitude:</h6>
<div class="form-group">
<input type="text" name="rtsp" [(ngModel)]="camera.atributes.latitude" placeholder="Link" class="form-control form-control" fullWidth nbInput [status]="'primary'" required>
</div> -->
<button class='btn-block' nbButton [status]="'success'" (click)="edit ? updateCamera() : saveCamera()" *ngIf="is_saving == false">Save</button>
<button class='btn-block' nbButton [status]="'success'" (click)="edit ? updateCamera() : saveCamera()" *ngIf="is_saving == false">Guardar</button>
<button class='btn-block' nbButton [status]="'success'" [nbSpinner]="true" nbSpinnerSize="giant" nbSpinnerStatus="primary" [disabled]="is_saving" *ngIf="is_saving == true">&nbsp;</button>
</form>
</nb-card-body>
Expand Down
11 changes: 8 additions & 3 deletions client/src/app/pages/cameras_conf/add_camera/vid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { FacesService } from '../../../services/faces.service';
import { ActivatedRoute, Router } from '@angular/router';
import { v4 as uuid } from 'uuid';
import { NbComponentStatus, NbGlobalPhysicalPosition, NbGlobalPosition, NbToastrService } from '@nebular/theme';
import { Account } from '../../../models/Account';

@Component({
selector: 'app-vid',
Expand All @@ -30,10 +31,12 @@ export class VidComponent implements OnInit {
edit : boolean = false;
submitted: boolean = false;
is_saving : boolean = false;
now_user: Account;

constructor(private facesService: FacesService, private router: Router, private activatedRoute: ActivatedRoute, private toastrService: NbToastrService) { }

ngOnInit() {
this.now_user = JSON.parse(localStorage.getItem('now_user'));
const params = this.activatedRoute.snapshot.params;
if(params.uuid){
this.facesService.getCamera(params.uuid)
Expand Down Expand Up @@ -61,16 +64,18 @@ export class VidComponent implements OnInit {
res=>{
// console.log(res);
let response = {
cam_id: res['id']
cameraId: res['id'],
id_account: this.now_user.id_account,
id_branch: this.now_user.id_branch
};
this.facesService.doOneImage(response).subscribe(
res => {
// console.log(res)
this.router.navigate(['/pages/cameras/algorithms/'+response['cam_id']]);
this.router.navigate(['/pages/cameras/algorithms/'+response['id']]);
},
err => {
// console.error(err)
this.router.navigate(['/pages/cameras/algorithms/'+response['cam_id']]);
this.router.navigate(['/pages/cameras/algorithms/'+response['id']]);
}
)
},
Expand Down
Loading