From e889b029dc6f8ef19dcc8cf7d408a63cb5bf745f Mon Sep 17 00:00:00 2001 From: AlexBob Date: Thu, 31 Oct 2024 09:41:06 +0800 Subject: [PATCH] refactor(vscode): remove Codegeex settings and adjust Prettier configuration - Removed Codegeex-related settings from .vscode/settings.json - Decreased printWidth in .prettierrc.json from 240 to 180 - Improved formatting and structure of users.component.html- Simplified imports in users.component.ts --- ng-web/.prettierrc.json | 2 +- ng-web/.vscode/settings.json | 7 +------ ng-web/src/app/pages/home/users/users.component.ts | 14 +++++++++++++- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ng-web/.prettierrc.json b/ng-web/.prettierrc.json index 78e683cd..8e71bb3b 100644 --- a/ng-web/.prettierrc.json +++ b/ng-web/.prettierrc.json @@ -5,7 +5,7 @@ "endOfLine": "auto", "bracketSpacing": true, "jsxSingleQuote": true, - "printWidth": 240, + "printWidth": 180, "proseWrap": "always", "semi": true, "singleQuote": true, diff --git a/ng-web/.vscode/settings.json b/ng-web/.vscode/settings.json index 777d32e3..3d1a4139 100644 --- a/ng-web/.vscode/settings.json +++ b/ng-web/.vscode/settings.json @@ -12,15 +12,11 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "angular.view-engine": false, - "Codegeex.CompletionModel": "CodeGeeX Pro[Beta]", - "Codegeex.Privacy": true, "merge-conflict.autoNavigateNextConflict.enabled": true, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "prettier.bracketSameLine": true, - "Codegeex.CommitMessageStyle": "ConventionalCommits", - "Codegeex.RepoIndex": true, "angular-schematics.schematicsDefaultOptions": { "angular-*": { "style": "scss", @@ -33,6 +29,5 @@ "angular-page": { "skipChangeDetectionOnPush": true } - }, - "Codegeex.CommitMessage.LanguagePreference": "English" + } } \ No newline at end of file diff --git a/ng-web/src/app/pages/home/users/users.component.ts b/ng-web/src/app/pages/home/users/users.component.ts index 8f5e1c73..a2a70493 100644 --- a/ng-web/src/app/pages/home/users/users.component.ts +++ b/ng-web/src/app/pages/home/users/users.component.ts @@ -18,7 +18,19 @@ import { FormsModule } from '@angular/forms'; @Component({ selector: 'app-users', standalone: true, - imports: [CommonModule, FormsModule, NzTableModule, NzNotificationModule, NzPaginationModule, TruncateMiddlePipe, ClipboardModule, NzToolTipModule, NzInputModule, NzIconModule, NzButtonModule], + imports: [ + CommonModule, + FormsModule, + NzTableModule, + NzNotificationModule, + NzPaginationModule, + TruncateMiddlePipe, + ClipboardModule, + NzToolTipModule, + NzInputModule, + NzIconModule, + NzButtonModule, + ], templateUrl: './users.component.html', styleUrl: './users.component.scss', changeDetection: ChangeDetectionStrategy.OnPush,