profile.component.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { Component, OnInit, ViewChild, Input } from '@angular/core';
  2. import { ActivatedRoute, RouterOutlet, Router } from '@angular/router';
  3. import { CompTableListComponent } from '../../../../app/comp-table/comp-table-list/comp-table-list.component';
  4. import { Profile } from '../../../../schemas/Profile';
  5. import * as Parse from 'parse';
  6. import { CommonModule } from '@angular/common';
  7. @Component({
  8. selector: 'app-profile',
  9. templateUrl: './profile.component.html',
  10. styleUrls: ['./profile.component.scss'],
  11. imports: [CommonModule, RouterOutlet, CompTableListComponent],
  12. standalone: true,
  13. })
  14. export class ProfileComponent implements OnInit {
  15. @ViewChild(CompTableListComponent) list: CompTableListComponent | undefined;
  16. Profile = Profile;
  17. user: Parse.User | undefined;
  18. className: string | undefined;
  19. queryParams: any | undefined;
  20. fieldsArray: Array<any> | undefined;
  21. constructor() {
  22. this.user = Parse.User.current();
  23. this.className = this.Profile.className;
  24. this.fieldsArray = this.Profile.fieldsArray;
  25. this.queryParams = {
  26. where: {
  27. isDeleted: { $ne: true },
  28. },
  29. };
  30. }
  31. ngOnInit() {}
  32. }