From fd43da93a5388c2377ad2d0b4c56d2a6785ba21a Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Mon, 4 Sep 2023 20:44:00 +0800 Subject: [PATCH] A whole lot of cleaning going on --- sample.txt | 121 +++++++++++++++++++++++++ src/router/index.ts | 2 +- src/views/AccountViewView.vue | 4 +- src/views/ContactAmountsView.vue | 4 +- src/views/ContactGiftingView.vue | 14 +-- src/views/ContactQRScanShowView.vue | 4 +- src/views/ContactsView.vue | 6 +- src/views/DiscoverView.vue | 8 +- src/views/HelpView.vue | 2 +- src/views/HomeView.vue | 6 +- src/views/IdentitySwitcherView.vue | 4 +- src/views/ImportAccountView.vue | 2 +- src/views/ImportDerivedAccountView.vue | 2 +- src/views/NewEditAccountView.vue | 2 +- src/views/NewEditProjectView.vue | 2 +- src/views/NewIdentifierView.vue | 4 +- src/views/ProjectViewView.vue | 6 +- src/views/ProjectsView.vue | 8 +- src/views/SeedBackupView.vue | 2 +- src/views/StartView.vue | 2 +- tsconfig.json | 11 ++- 21 files changed, 170 insertions(+), 46 deletions(-) create mode 100644 sample.txt diff --git a/sample.txt b/sample.txt new file mode 100644 index 0000000..ea21038 --- /dev/null +++ b/sample.txt @@ -0,0 +1,121 @@ + +> kickstart-for-time-pwa@0.1.0 build +> vue-cli-service build + +All browser targets in the browserslist configuration have supported ES module. +Therefore we don't build two separate bundles for differential loading. + + + ERROR Failed to compile with 10 errors8:42:51 PM + + error in src/views/ContactGiftingView.vue:164:13 + +TS18046: 'err' is of type 'unknown'. + 162 | title: "Error", + 163 | text: + > 164 | err.message || + | ^^^ + 165 | "There was an error retrieving the latest sweet, sweet action.", + 166 | }, + 167 | -1, + + error in src/views/ContactGiftingView.vue:173:5 + +TS2571: Object is of type 'unknown'. + 171 | + 172 | openDialog(giver: GiverInputInfo) { + > 173 | this.$refs.customDialog.open(giver); + | ^^^^^^^^^^^^^^^^^^^^^^^ + 174 | } + 175 | + 176 | handleDialogResult(result: GiverOutputInfo) { + + error in src/views/ContactGiftingView.vue:287:19 + +TS2339: Property 'error' does not exist on type 'CreateAndSubmitGiveResult'. + Property 'error' does not exist on type 'SuccessResult'. + 285 | + 286 | getGiveCreationErrorMessage(result: CreateAndSubmitGiveResult) { + > 287 | return result.error?.userMessage; + | ^^^^^ + 288 | } + 289 | + 290 | getGiveErrorMessage(error: any) { + + error in src/views/DiscoverView.vue:347:17 + +TS18046: 'e' is of type 'unknown'. + 345 | type: "danger", + 346 | title: "Error", + > 347 | text: e.userMessage || "There was a problem retrieving projects.", + | ^ + 348 | }, + 349 | -1, + 350 | ); + + error in src/views/DiscoverView.vue:425:17 + +TS18046: 'e' is of type 'unknown'. + 423 | type: "danger", + 424 | title: "Error", + > 425 | text: e.userMessage || "There was a problem retrieving projects.", + | ^ + 426 | }, + 427 | -1, + 428 | ); + + error in src/views/DiscoverView.vue:461:15 + +TS7006: Parameter 'event' implicitly has an 'any' type. + 459 | } + 460 | + > 461 | setMapPoint(event) { + | ^^^^^ + 462 | if (this.isNewMarkerSet) { + 463 | this.localLatDiff = Math.abs(event.latlng.lat - this.localCenterLat); + 464 | this.localLongDiff = Math.abs(event.latlng.lng - this.localCenterLong); + + error in src/views/HelpView.vue:182:26 + +TS2732: Cannot find module '../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension. + 180 | + 181 |