diff --git a/.eslintrc.js b/.eslintrc.js index 553ac75..0a908a2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,30 +5,27 @@ module.exports = { es2022: true, }, extends: [ - "plugin:vue/vue3-essential", + "plugin:vue/vue3-recommended", "eslint:recommended", "@vue/typescript/recommended", - "plugin:prettier/recommended", + "plugin:prettier/recommended" ], // parserOptions: { // ecmaVersion: 2020, // }, rules: { - "max-len": [ - "warn", - { - code: 120, - ignoreComments: true, // why does this not make it allow comment of any length? - ignorePattern: '^\\s*class="[^"]*"$', - ignoreStrings: true, - ignoreTemplateLiterals: true, - ignoreTrailingComments: true, - ignoreUrls: true, - }, - ], - "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", - "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", - // "prettier/prettier": ["warn", { printWidth: 120 }], // removes errors but adds thousands of warnings - "@typescript-eslint/no-unnecessary-type-constraint": "off", + "max-len": ["warn", { + code: 100, + ignoreComments: true, + ignorePattern: '^\\s*class="[^"]*"$', + ignoreStrings: true, + ignoreTemplateLiterals: true, + ignoreUrls: true, + }], + "no-console": process.env.NODE_ENV === "production" ? "error" : "warn", + "no-debugger": process.env.NODE_ENV === "production" ? "error" : "warn", + "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/no-unnecessary-type-constraint": "off" }, }; diff --git a/package-lock.json b/package-lock.json index 1f04534..12cc0db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -69,7 +69,6 @@ "simple-vue-camera": "^1.1.3", "three": "^0.156.1", "ua-parser-js": "^1.0.37", - "util": "^0.12.5", "vue": "^3.5.13", "vue-axios": "^3.5.2", "vue-facing-decorator": "^3.0.4", @@ -104,8 +103,10 @@ "postcss": "^8.4.38", "prettier": "^3.2.5", "rimraf": "^6.0.1", + "stream-browserify": "^3.0.0", "tailwindcss": "^3.4.1", "typescript": "~5.2.2", + "util": "^0.12.5", "vite": "^5.2.0", "vite-plugin-pwa": "^0.19.8" } @@ -11454,6 +11455,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" @@ -12344,6 +12346,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.0", @@ -12375,6 +12378,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", + "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -13803,6 +13807,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", @@ -16122,6 +16127,7 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, "license": "MIT", "dependencies": { "is-callable": "^1.2.7" @@ -16720,6 +16726,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" @@ -17227,6 +17234,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -17343,6 +17351,7 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -17480,6 +17489,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.3", @@ -17630,6 +17640,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -17733,6 +17744,7 @@ "version": "1.1.15", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, "license": "MIT", "dependencies": { "which-typed-array": "^1.1.16" @@ -21810,6 +21822,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -23684,6 +23697,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -24071,6 +24085,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", @@ -24619,6 +24634,32 @@ "license": "MIT", "optional": true }, + "node_modules/stream-browserify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", + "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "inherits": "~2.0.4", + "readable-stream": "^3.5.0" + } + }, + "node_modules/stream-browserify/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/stream-buffers": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-2.2.0.tgz", @@ -26196,6 +26237,7 @@ "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dev": true, "license": "MIT", "dependencies": { "inherits": "^2.0.3", @@ -26805,6 +26847,7 @@ "version": "1.1.18", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.18.tgz", "integrity": "sha512-qEcY+KJYlWyLH9vNbsr6/5j59AXk5ni5aakf8ldzBvGde6Iz4sxZGkJyWSAueTG7QhOvNRYb1lDdFmL5Td0QKA==", + "dev": true, "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", diff --git a/package.json b/package.json index eff6a2a..3e7d96f 100644 --- a/package.json +++ b/package.json @@ -91,9 +91,9 @@ "reflect-metadata": "^0.1.14", "register-service-worker": "^1.7.2", "simple-vue-camera": "^1.1.3", + "stream-browserify": "^3.0.0", "three": "^0.156.1", "ua-parser-js": "^1.0.37", - "util": "^0.12.5", "vue": "^3.5.13", "vue-axios": "^3.5.2", "vue-facing-decorator": "^3.0.4", diff --git a/src/App.vue b/src/App.vue index df60ac7..5d7f9c8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -51,8 +51,8 @@

{{ truncateLongWords(notification.text) }}

@@ -77,8 +77,8 @@

{{ truncateLongWords(notification.text) }}

@@ -103,8 +103,8 @@

{{ truncateLongWords(notification.text) }}

@@ -129,8 +129,8 @@

{{ truncateLongWords(notification.text) }}

@@ -186,11 +186,11 @@ @@ -221,8 +221,8 @@
@@ -236,6 +236,7 @@ @@ -282,8 +282,8 @@ Until I turn it back on @@ -304,17 +304,17 @@

@@ -327,8 +327,6 @@ - - + + diff --git a/src/components/ChoiceButtonDialog.vue b/src/components/ChoiceButtonDialog.vue index 5a7ce95..241a1b7 100644 --- a/src/components/ChoiceButtonDialog.vue +++ b/src/components/ChoiceButtonDialog.vue @@ -29,29 +29,29 @@

{{ text }}

diff --git a/src/components/ContactNameDialog.vue b/src/components/ContactNameDialog.vue index 7a9c4ec..1198e2f 100644 --- a/src/components/ContactNameDialog.vue +++ b/src/components/ContactNameDialog.vue @@ -6,10 +6,10 @@ {{ message }} Note that their name is only stored on this device.
diff --git a/src/components/EntityIcon.vue b/src/components/EntityIcon.vue index 967a08e..1ea0a90 100644 --- a/src/components/EntityIcon.vue +++ b/src/components/EntityIcon.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index d9e19fe..9e6c5d6 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -7,8 +7,8 @@

@@ -34,9 +34,9 @@ // but rather than add more Plan-specific logic to detect the agent // we'll let them click the Project link and edit from there " - @click="onClickEditClaim" title="Edit" data-testId="editClaimButton" + @click="onClickEditClaim" > Fulfills {{ @@ -170,15 +170,15 @@
an activity... @@ -207,8 +207,8 @@
@@ -32,7 +32,6 @@
@@ -93,8 +93,8 @@ diff --git a/src/views/ContactEditView.vue b/src/views/ContactEditView.vue index 3a8735b..1111396 100644 --- a/src/views/ContactEditView.vue +++ b/src/views/ContactEditView.vue @@ -7,8 +7,8 @@

@@ -25,9 +25,9 @@ Name

@@ -38,9 +38,9 @@
@@ -53,21 +53,21 @@ class="flex mt-2" >
@@ -76,36 +76,36 @@ class="absolute bg-white border border-gray-300 rounded-md mt-1" >
CELL
EMAIL
WHATSAPP
-
- @@ -47,7 +47,7 @@ {{ contact.name || "(no name)" }} @@ -55,8 +55,8 @@ @@ -65,7 +65,7 @@ - + diff --git a/src/views/ContactImportView.vue b/src/views/ContactImportView.vue index 729e5aa..12fd3d0 100644 --- a/src/views/ContactImportView.vue +++ b/src/views/ContactImportView.vue @@ -24,7 +24,7 @@ v-if="contactsImporting.length > sameCount" class="flex justify-center" > - + Make my activity visible to these contacts. @@ -51,7 +51,7 @@ class="grow overflow-hidden border-b border-slate-300 pt-2.5 pb-4" >

- + {{ contact.name || AppString.NO_CONTACT_NAME }} -
diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue index c49af38..cd09419 100644 --- a/src/views/ContactQRScanShowView.vue +++ b/src/views/ContactQRScanShowView.vue @@ -26,10 +26,8 @@ You aren't sharing your name, so quickly
click here to set it for them. @@ -38,18 +36,18 @@
@@ -58,14 +56,14 @@
- + Click here to copy your DID to your clipboard. Then give it to them so they can paste it in their list of People.
-
+
You have no identitifiers yet, so
- + @@ -77,10 +77,10 @@
@@ -102,9 +102,9 @@ class="rounded border border-slate-400 px-3 py-2" /> @@ -127,9 +127,9 @@ class="ml-2 rounded border border-slate-400 px-3 py-2" /> @@ -140,7 +140,7 @@ class="flex items-center mt-4" @click="includeLocation = !includeLocation" > - +
@@ -179,7 +179,7 @@ class="items-center mb-4" >
- +