Skip to content

Commit

Permalink
♻️ refactor(deps): 更新依赖包 "plate-commons" 至版本 0.0.3 并优化导入路径
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Jul 2, 2024
1 parent e238678 commit 798a16e
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 161 deletions.
6 changes: 3 additions & 3 deletions ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
],
"styles": [
{
"input": "bootstrap/dist/css/bootstrap.css",
"input": "node_modules/bootstrap/dist/css/bootstrap.css",
"bundleName": "bootstrap"
},
{
"input": "bootstrap-icons/font/bootstrap-icons.css",
"input": "node_modules/bootstrap-icons/font/bootstrap-icons.css",
"bundleName": "icons"
},
{
Expand All @@ -96,7 +96,7 @@
],
"scripts": [
{
"input": "bootstrap/dist/js/bootstrap.bundle.js",
"input": "node_modules/bootstrap/dist/js/bootstrap.bundle.js",
"bundleName": "bootstrap"
}
],
Expand Down
8 changes: 4 additions & 4 deletions ui/package-lock.json

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

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"bootstrap-icons": "^1.11.3",
"express": "^4.18.2",
"ng-zorro-antd": "^18.0.0",
"plate-commons": "latest",
"plate-commons": "^0.0.3",
"rxjs": "~7.8.0",
"tslib": "^2.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion ui/projects/web/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {AsyncPipe} from '@angular/common';
import {NzBackTopModule} from 'ng-zorro-antd/back-top';
import {NzSpinModule} from 'ng-zorro-antd/spin';
import {debounceTime, distinctUntilChanged, tap} from 'rxjs';
import {LoadingService} from './loading.service';
import {LoadingService} from '../core/loading.service';
import {toSignal} from '@angular/core/rxjs-interop';

@Component({
Expand Down
4 changes: 2 additions & 2 deletions ui/projects/web/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
withXsrfConfiguration,
} from '@angular/common/http';
import {BrowserStorageServerService, BrowserStorageService,} from 'plate-commons';
import {authTokenInterceptor, defaultInterceptor} from './http.Interceptor';
import {PageTitleStrategy} from './title-strategy.service';
import {authTokenInterceptor, defaultInterceptor} from '../core/http.Interceptor';
import {PageTitleStrategy} from '../core/title-strategy.service';
import {routes} from './app.routes';

export const ngZorroConfig: NzConfig = {
Expand Down
2 changes: 1 addition & 1 deletion ui/projects/web/src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Routes} from '@angular/router';
import {NotFoundComponent} from './not-found.component';
import {NotFoundComponent} from '../core/not-found.component';

export const routes: Routes = [
{
Expand Down
86 changes: 0 additions & 86 deletions ui/projects/web/src/app/http.Interceptor.ts

This file was deleted.

17 changes: 0 additions & 17 deletions ui/projects/web/src/app/loading.service.ts

This file was deleted.

26 changes: 0 additions & 26 deletions ui/projects/web/src/app/not-found.component.ts

This file was deleted.

17 changes: 0 additions & 17 deletions ui/projects/web/src/app/title-strategy.service.ts

This file was deleted.

2 changes: 1 addition & 1 deletion ui/projects/web/src/core/login/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {HttpClient, HttpHeaders} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable, tap, throwError} from 'rxjs';
import {AuthService} from '../../core/auth.service';
import {BrowserStorageService} from 'commons';
import {BrowserStorageService} from 'plate-commons';

export interface Authentication {
token: string;
Expand Down
3 changes: 1 addition & 2 deletions ui/projects/web/src/core/security.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {NgModule, Optional, SkipSelf} from '@angular/core';
import {BrowserStorageService} from 'commons';

import {BrowserStorageService} from 'plate-commons';
import {SecurityRoutingModule} from './security-routing.module';

@NgModule({
Expand Down

0 comments on commit 798a16e

Please sign in to comment.