1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-06 23:51:28 +01:00

[PM-12444] remove ngx infinite scroll dependency (#13056)

* replace provider clients components with vNext implementation

* remove ngx-infinite-scroll dependency

* fix ts strict errors
This commit is contained in:
Brandon Treston 2025-01-28 16:01:07 -05:00 committed by GitHub
parent d0018548ed
commit 222392d1fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 1 additions and 22 deletions

View File

@ -3,7 +3,6 @@ import { LayoutModule } from "@angular/cdk/layout";
import { NgModule } from "@angular/core"; import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms"; import { FormsModule } from "@angular/forms";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { InfiniteScrollDirective } from "ngx-infinite-scroll";
import { AppComponent } from "./app.component"; import { AppComponent } from "./app.component";
import { CoreModule } from "./core"; import { CoreModule } from "./core";
@ -23,7 +22,6 @@ import { WildcardRoutingModule } from "./wildcard-routing.module";
BrowserAnimationsModule, BrowserAnimationsModule,
FormsModule, FormsModule,
CoreModule, CoreModule,
InfiniteScrollDirective,
DragDropModule, DragDropModule,
LayoutModule, LayoutModule,
OssRoutingModule, OssRoutingModule,

View File

@ -3,7 +3,6 @@ import { CommonModule, DatePipe } from "@angular/common";
import { NgModule } from "@angular/core"; import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { RouterModule } from "@angular/router"; import { RouterModule } from "@angular/router";
import { InfiniteScrollDirective } from "ngx-infinite-scroll";
import { JslibModule } from "@bitwarden/angular/jslib.module"; import { JslibModule } from "@bitwarden/angular/jslib.module";
import { import {
@ -49,7 +48,6 @@ import "./locales";
DragDropModule, DragDropModule,
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
InfiniteScrollDirective,
RouterModule, RouterModule,
JslibModule, JslibModule,
@ -86,7 +84,6 @@ import "./locales";
DragDropModule, DragDropModule,
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
InfiniteScrollDirective,
RouterModule, RouterModule,
JslibModule, JslibModule,

View File

@ -139,7 +139,7 @@ export class ClientsComponent {
async load() { async load() {
const response = await this.apiService.getProviderClients(this.providerId); const response = await this.apiService.getProviderClients(this.providerId);
const userId = await firstValueFrom(getUserId(this.accountService.activeAccount$)); const userId = await firstValueFrom(this.accountService.activeAccount$.pipe(getUserId));
const clients = response.data != null && response.data.length > 0 ? response.data : []; const clients = response.data != null && response.data.length > 0 ? response.data : [];
this.dataSource.data = clients; this.dataSource.data = clients;
this.manageOrganizations = this.manageOrganizations =

View File

@ -4,7 +4,6 @@ import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { RouterModule } from "@angular/router"; import { RouterModule } from "@angular/router";
import { InfiniteScrollDirective } from "ngx-infinite-scroll";
import { JslibModule } from "@bitwarden/angular/jslib.module"; import { JslibModule } from "@bitwarden/angular/jslib.module";
import { CoreModule } from "@bitwarden/web-vault/app/core"; import { CoreModule } from "@bitwarden/web-vault/app/core";
@ -37,7 +36,6 @@ import { AccessIntelligenceModule } from "./tools/access-intelligence/access-int
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
CoreModule, CoreModule,
InfiniteScrollDirective,
DragDropModule, DragDropModule,
AppRoutingModule, AppRoutingModule,
OssRoutingModule, OssRoutingModule,

13
package-lock.json generated
View File

@ -55,7 +55,6 @@
"lowdb": "1.0.0", "lowdb": "1.0.0",
"lunr": "2.3.9", "lunr": "2.3.9",
"multer": "1.4.5-lts.1", "multer": "1.4.5-lts.1",
"ngx-infinite-scroll": "18.0.0",
"ngx-toastr": "19.0.0", "ngx-toastr": "19.0.0",
"node-fetch": "2.6.12", "node-fetch": "2.6.12",
"node-forge": "1.3.1", "node-forge": "1.3.1",
@ -24605,18 +24604,6 @@
"node": ">= 10" "node": ">= 10"
} }
}, },
"node_modules/ngx-infinite-scroll": {
"version": "18.0.0",
"resolved": "https://registry.npmjs.org/ngx-infinite-scroll/-/ngx-infinite-scroll-18.0.0.tgz",
"integrity": "sha512-D183TDwpsd9Zl56UmItsl3RzHdN25srAISfg6lc3A8mEKkEgOq0s7ZzRAYcx8DHsAkMgtZqjIPEvMifD3DOB/g==",
"dependencies": {
"tslib": "^2.3.0"
},
"peerDependencies": {
"@angular/common": ">=18.0.0 <19.0.0",
"@angular/core": ">=18.0.0 <19.0.0"
}
},
"node_modules/ngx-toastr": { "node_modules/ngx-toastr": {
"version": "19.0.0", "version": "19.0.0",
"resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-19.0.0.tgz", "resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-19.0.0.tgz",

View File

@ -183,7 +183,6 @@
"lowdb": "1.0.0", "lowdb": "1.0.0",
"lunr": "2.3.9", "lunr": "2.3.9",
"multer": "1.4.5-lts.1", "multer": "1.4.5-lts.1",
"ngx-infinite-scroll": "18.0.0",
"ngx-toastr": "19.0.0", "ngx-toastr": "19.0.0",
"node-fetch": "2.6.12", "node-fetch": "2.6.12",
"node-forge": "1.3.1", "node-forge": "1.3.1",