현재접속자 수정

This commit is contained in:
이담 정 2022-07-26 08:35:42 +00:00
parent c6c8e5d792
commit c8bdcce0a6
2 changed files with 155 additions and 133 deletions

View File

@ -17,134 +17,156 @@
<div class="text-4xl font-extrabold tracking-tight">
현재접속자&쪽지전송
</div>
<!-- Main -->
<div class="flex flex-auto overflow-hidden">
<!-- Products list -->
<div
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
>
<ng-container *ngIf="currentUsers$ | async as currentUsers">
<ng-container
*ngIf="currentUsers.length > 0; else noCurrentUser"
>
<div class="grid">
<!-- Header -->
<div
class="inventory-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
>
<div>번호</div>
<div>상부</div>
<div>
아이디
<hr style="margin: 7px 0px" />
닉네임
</div>
<div>
등급
<hr style="margin: 7px 0px" />
레벨
</div>
<div>현재위치</div>
<div class="hidden md:block">보유금</div>
<div class="hidden md:block">게임중머니</div>
<div class="hidden md:block">사이트</div>
<div class="hidden lg:block">쪽지보내기</div>
<div class="hidden lg:block">배팅내역</div>
<div class="hidden lg:block">로그아웃</div>
</div>
<!-- Main -->
<div class="flex flex-auto overflow-hidden">
<!-- Products list -->
<div
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
>
<ng-container *ngIf="currentUsers$ | async as currentUsers">
<ng-container
*ngIf="currentUsers.length > 0; else noCurrentUser"
>
<div class="grid">
<!-- Header -->
<div
class="inventory-grid z-10 sticky top-0 grid gap-4 py-4 px-6 md:px-8 shadow text-md font-semibold text-secondary bg-gray-50 dark:bg-black dark:bg-opacity-5"
>
<div>번호</div>
<div>상부</div>
<div>
아이디
<hr style="margin: 7px 0px" />
닉네임
</div>
<!-- Rows -->
<ng-container
*ngIf="currentUsers$ | async as currentUsers"
>
<ng-container
*ngFor="
let currentUser of currentUsers;
trackBy: __trackByFn
"
>
<div
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
>
<div>{{ currentUser.index }}</div>
<div>{{ currentUser.highRank }}</div>
<div>
<div>
{{ currentUser.signinId }}
</div>
<hr style="margin: 7px 0px" />
{{ currentUser.nickname }}
<hr style="margin: 7px 0px" />
{{ currentUser.currentLocation }}
</div>
<div>
{{ currentUser.rank }}
<hr style="margin: 7px 0px" />
{{ currentUser.level }}
</div>
<div>{{ currentUser.currentLocation }}</div>
<div class="hidden md:block">
{{ currentUser.ownCash }}
<hr style="margin: 7px 0px" />
{{ currentUser.ownComp }}
</div>
<div class="hidden md:block">
{{ currentUser.gameMoney }}
</div>
<div class="hidden md:block">
{{ currentUser.siteAddress }}
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
<mat-icon svgIcon="email-outline"></mat-icon>
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
배팅내역
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
로그아웃
</button>
</div>
</div>
</ng-container>
</ng-container>
<div>
등급
<hr style="margin: 7px 0px" />
레벨
</div>
<div>현재위치</div>
<div class="hidden md:block">보유금</div>
<div class="hidden md:block">
게임중머니
<hr style="margin: 7px 0px" />
콤프
</div>
<div class="hidden md:block">사이트</div>
<div class="hidden md:block">카지노->캐쉬</div>
<div class="hidden lg:block">쪽지보내기</div>
<div class="hidden lg:block">배팅내역</div>
<div class="hidden lg:block">로그아웃</div>
</div>
<mat-paginator
class="sm:absolute sm:inset-x-0 sm:bottom-0 border-b sm:border-t sm:border-b-0 z-10 bg-gray-50 dark:bg-transparent"
[ngClass]="{ 'pointer-events-none': isLoading }"
[length]="pagination?.length"
[pageIndex]="pagination?.page"
[pageSize]="pagination?.size"
[pageSizeOptions]="[5, 10, 25, 100]"
[showFirstLastButtons]="true"
></mat-paginator>
</ng-container>
</ng-container>
<ng-template #noCurrentUser>
<div
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center"
>
There are no data!
<!-- Rows -->
<ng-container *ngIf="currentUsers$ | async as currentUsers">
<ng-container
*ngFor="
let currentUser of currentUsers;
trackBy: __trackByFn
"
>
<div
class="inventory-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
>
<div>{{ currentUser.index }}</div>
<div>{{ currentUser.highRank }}</div>
<div>
<div>
{{ currentUser.signinId }}
</div>
<hr style="margin: 7px 0px" />
{{ currentUser.nickname }}
<hr style="margin: 7px 0px" />
{{ currentUser.currentLocation }}
</div>
<div>
{{ currentUser.rank }}
<hr style="margin: 7px 0px" />
{{ currentUser.level }}
</div>
<div>{{ currentUser.currentLocation }}</div>
<div class="hidden md:block">
{{ currentUser.ownCash }}
<hr style="margin: 7px 0px" />
{{ currentUser.ownComp }}
</div>
<div class="hidden md:block">
{{ currentUser.gameMoney }}
<hr style="margin: 7px 0px" />
{{ currentUser.ownComp }}
</div>
<div class="hidden md:block">
{{ currentUser.siteAddress }}
</div>
<div class="hidden md:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니확인
</button>
<hr style="margin: 7px 0px" />
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
게임머니회수
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
<mat-icon svgIcon="email-outline"></mat-icon>
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
배팅내역
</button>
</div>
<div class="hidden lg:block">
<button
mat-flat-button
class="bet-mat-small-8"
[color]="'primary'"
>
로그아웃
</button>
</div>
</div>
</ng-container>
</ng-container>
</div>
</ng-template>
</div>
<mat-paginator
class="sm:absolute sm:inset-x-0 sm:bottom-0 border-b sm:border-t sm:border-b-0 z-10 bg-gray-50 dark:bg-transparent"
[ngClass]="{ 'pointer-events-none': isLoading }"
[length]="pagination?.length"
[pageIndex]="pagination?.page"
[pageSize]="pagination?.size"
[pageSizeOptions]="[5, 10, 25, 100]"
[showFirstLastButtons]="true"
></mat-paginator>
</ng-container>
</ng-container>
<ng-template #noCurrentUser>
<div
class="p-8 sm:p-16 border-t text-4xl font-semibold tracking-tight text-center"
>
There are no data!
</div>
</ng-template>
</div>
</div>
<div>

View File

@ -42,22 +42,22 @@ import { Router } from '@angular/router';
/* language=SCSS */
`
.inventory-grid {
/* CB 관리 요율 상부 아이디 */
grid-template-columns: 20px 40px 40px 100px auto;
/* 번호 상부 아이디 등급 위치 */
grid-template-columns: 20px 40px auto 40px 140px;
@screen sm {
/* CB 관리 요율 상부 아이디 등급 */
grid-template-columns: 20px 40px 40px 100px auto 40px 140px 140px;
/* 번호 상부 아이디 등급 위치 보유금 */
grid-template-columns: 20px 40px auto 40px 140px 140px;
}
@screen md {
/* CB 관리 요율 상부 아이디 등급 예금주 보유금 게임중머니 총입출 */
grid-template-columns: 20px 40px 40px 100px auto 40px 140px 140px;
/* 번호 상부 아이디 등급 위치 보유금 게임중 사이트 */
grid-template-columns: 20px 40px auto 40px 140px 140px 140px 140px;
}
@screen lg {
/* 번호 상부 아이디 등급 보유금 게임중머니 사이트 쪽지 배팅 로그아웃 */
grid-template-columns: 20px 100px auto 40px 140px 140px 140px 140px 140px 140px;
/* 번호 상부 아이디 등급 위치 보유금 게임중 사이트 카지노 배팅 로그아웃 */
grid-template-columns: 20px 100px auto 40px 140px 140px 140px 140px 140px 140px 140px;
}
}
`,