first step for plr game platform

This commit is contained in:
OnlyPapy98
2025-12-29 13:56:18 +01:00
parent 169b5ca412
commit ed79cae77d
40 changed files with 620 additions and 373 deletions

View File

@@ -152,7 +152,7 @@ export class TpePage implements OnInit {
const searchValue = this.search();
const params = {
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: searchValue,
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -175,7 +175,7 @@ export class TpePage implements OnInit {
// If empty, use normal list
return this.api.list({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: '',
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -211,7 +211,7 @@ export class TpePage implements OnInit {
if (!this.search().trim()) {
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: '',
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -249,7 +249,7 @@ export class TpePage implements OnInit {
private fetch(params: {
page: number;
perPage: number;
size: number;
search: string;
sortKey: string;
sortDir: SortDir;
@@ -305,7 +305,7 @@ export class TpePage implements OnInit {
// If empty, fetch normally
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: '',
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -318,7 +318,7 @@ export class TpePage implements OnInit {
this.page.set(1);
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: this.search(),
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -331,7 +331,7 @@ export class TpePage implements OnInit {
next: () => {
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: this.search(),
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -347,7 +347,7 @@ export class TpePage implements OnInit {
next: () => {
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: this.search(),
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -393,7 +393,7 @@ export class TpePage implements OnInit {
this.selectedAgentId.set('');
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: this.search(),
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -456,7 +456,7 @@ export class TpePage implements OnInit {
// Refresh data
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: this.search(),
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,
@@ -476,7 +476,7 @@ export class TpePage implements OnInit {
this.api.delete(row.id).subscribe(() => {
this.fetch({
page: this.page(),
perPage: this.perPage(),
size: this.perPage(),
search: this.search(),
sortKey: this.sort().key,
sortDir: this.sort().dir as SortDir,