diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 7a1afa8..0a85c44 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -60,5 +60,7 @@ module.exports = { // allow debugger during development only "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", + + "vue/multi-word-component-names": "off" }, }; diff --git a/package-lock.json b/package-lock.json index 5523453..cb4ffd9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "dependencies": { "@libertai/libertai-js": "0.0.4", "@quasar/extras": "^1.16.11", - "@solana/web3.js": "^1.90.0", "aleph-sdk-ts": "^3.9.2", "axios": "^1.2.1", "buffer": "^6.0.3", @@ -27,12 +26,11 @@ "stream": "^0.0.2", "uuid": "^9.0.1", "vue": "^3.0.0", - "vue-i18n": "^9.0.0", "vue-router": "^4.0.0" }, "devDependencies": { - "@intlify/vite-plugin-vue-i18n": "^7.0.0", "@quasar/app-vite": "^1.9.3", + "@types/dompurify": "^3.0.5", "autoprefixer": "^10.4.2", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", @@ -1184,105 +1182,6 @@ "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", "dev": true }, - "node_modules/@intlify/bundle-utils": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@intlify/bundle-utils/-/bundle-utils-3.4.0.tgz", - "integrity": "sha512-2UQkqiSAOSPEHMGWlybqWm4G2K0X+FyYho5AwXz6QklSX1EY5EDmOSxZmwscn2qmKBnp6OYsme5kUrnN9xrWzQ==", - "dev": true, - "dependencies": { - "@intlify/message-compiler": "next", - "@intlify/shared": "next", - "jsonc-eslint-parser": "^1.0.1", - "source-map": "0.6.1", - "yaml-eslint-parser": "^0.3.2" - }, - "engines": { - "node": ">= 12" - }, - "peerDependenciesMeta": { - "petite-vue-i18n": { - "optional": true - }, - "vue-i18n": { - "optional": true - } - } - }, - "node_modules/@intlify/core-base": { - "version": "9.11.1", - "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-9.11.1.tgz", - "integrity": "sha512-qWXBBlEA+DC0CsHkfJiQK9ELm11c9I6lDpodY4FoOf99eMas1R6JR4woPhrfAcrtxFHp1UmXWdrQNKDegSW9IA==", - "dependencies": { - "@intlify/message-compiler": "9.11.1", - "@intlify/shared": "9.11.1" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@intlify/message-compiler": { - "version": "9.11.1", - "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-9.11.1.tgz", - "integrity": "sha512-y/aWx7DkaTKK2qWUw0hVbJpon8+urWXngeqh15DuIXZh6n/V/oPQiO/Ho1hUKbwap6MVMuz0OcnAJvqh3p9YPg==", - "dependencies": { - "@intlify/shared": "9.11.1", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@intlify/shared": { - "version": "9.11.1", - "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-9.11.1.tgz", - "integrity": "sha512-yuDG82vjgId2oasNRgZ0PKJrF65zlL33MNyITP5itbLcP4AYOR/NcIuD+/DiI+GHXdxASMKJU0ZiITLc6RC+qw==", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - } - }, - "node_modules/@intlify/vite-plugin-vue-i18n": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@intlify/vite-plugin-vue-i18n/-/vite-plugin-vue-i18n-7.0.0.tgz", - "integrity": "sha512-2TbDOQ8XD+vkc0s5OFmr+IY/k4mYMC7pzvx0xGQn+cU/ev314+yi7Z7N7rWcBgiYk1WOUalbGSo3d4nJDxOOyw==", - "deprecated": "This plugin support until Vite 3. If you would like to use on Vite 4, please use @intlify/unplugin-vue-i18n", - "dev": true, - "dependencies": { - "@intlify/bundle-utils": "^3.1.2", - "@intlify/shared": "next", - "@rollup/pluginutils": "^4.2.0", - "debug": "^4.3.1", - "fast-glob": "^3.2.5", - "source-map": "0.6.1" - }, - "engines": { - "node": ">= 14.6" - }, - "peerDependencies": { - "petite-vue-i18n": "*", - "vite": "^2.9.0 || ^3.0.0", - "vue-i18n": "*" - }, - "peerDependenciesMeta": { - "petite-vue-i18n": { - "optional": true - }, - "vite": { - "optional": true - }, - "vue-i18n": { - "optional": true - } - } - }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", @@ -6909,6 +6808,15 @@ "integrity": "sha512-rkiiTuf/z2wTd4RxFOb+clE7PF4AEJU0hsczbUdkHHBtkUmpWQpEddynNfJYKYtZFJKbq4F+brfekt1kx85IZA==", "dev": true }, + "node_modules/@types/dompurify": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/dompurify/-/dompurify-3.0.5.tgz", + "integrity": "sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==", + "dev": true, + "dependencies": { + "@types/trusted-types": "*" + } + }, "node_modules/@types/express": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", @@ -7055,6 +6963,12 @@ "@types/send": "*" } }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "dev": true + }, "node_modules/@types/uuid": { "version": "9.0.8", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", @@ -10519,30 +10433,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", @@ -11309,22 +11199,6 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -12949,66 +12823,6 @@ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" }, - "node_modules/jsonc-eslint-parser": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-1.4.1.tgz", - "integrity": "sha512-hXBrvsR1rdjmB2kQmUjf1rEIa+TqHBGMge8pwi++C+Si1ad7EjZrJcpgwym+QGK/pqTx+K7keFAtLlVNdLRJOg==", - "dev": true, - "dependencies": { - "acorn": "^7.4.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^1.3.0", - "espree": "^6.0.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/jsonc-eslint-parser/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/jsonc-eslint-parser/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/jsonc-eslint-parser/node_modules/espree": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", - "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-jsx": "^5.2.0", - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/jsonc-eslint-parser/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -17926,25 +17740,6 @@ "eslint": ">=6.0.0" } }, - "node_modules/vue-i18n": { - "version": "9.11.1", - "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-9.11.1.tgz", - "integrity": "sha512-S7Xi8DkLQG4xnnbxkxzipJK6CdfLdZkmApn95st89HFGp8LTmTH0Tv+Zw6puhOCZJCFrH73PHo3Ylwd2+Bmdxg==", - "dependencies": { - "@intlify/core-base": "9.11.1", - "@intlify/shared": "9.11.1", - "@vue/devtools-api": "^6.5.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/kazupon" - }, - "peerDependencies": { - "vue": "^3.0.0" - } - }, "node_modules/vue-router": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.3.0.tgz", @@ -19214,35 +19009,6 @@ "node": ">= 14" } }, - "node_modules/yaml-eslint-parser": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-0.3.2.tgz", - "integrity": "sha512-32kYO6kJUuZzqte82t4M/gB6/+11WAuHiEnK7FreMo20xsCKPeFH5tDBU7iWxR7zeJpNnMXfJyXwne48D0hGrg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.3.0", - "lodash": "^4.17.20", - "yaml": "^1.10.0" - } - }, - "node_modules/yaml-eslint-parser/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yaml-eslint-parser/node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", diff --git a/package.json b/package.json index c195919..c68c02b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "dependencies": { "@libertai/libertai-js": "0.0.4", "@quasar/extras": "^1.16.11", - "@solana/web3.js": "^1.90.0", "aleph-sdk-ts": "^3.9.2", "axios": "^1.2.1", "buffer": "^6.0.3", @@ -39,12 +38,11 @@ "stream": "^0.0.2", "uuid": "^9.0.1", "vue": "^3.0.0", - "vue-i18n": "^9.0.0", "vue-router": "^4.0.0" }, "devDependencies": { - "@intlify/vite-plugin-vue-i18n": "^7.0.0", "@quasar/app-vite": "^1.9.3", + "@types/dompurify": "^3.0.5", "autoprefixer": "^10.4.2", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", diff --git a/quasar.config.js b/quasar.config.js index 104a3ec..6206cc1 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -9,7 +9,6 @@ // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js const { configure } = require('quasar/wrappers'); -const path = require('path'); module.exports = configure(function (/* ctx */) { return { @@ -28,7 +27,7 @@ module.exports = configure(function (/* ctx */) { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://v2.quasar.dev/quasar-cli-vite/boot-files - boot: ['utils', 'i18n', 'axios'], + boot: ['utils', 'axios'], // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css css: ['app.scss'], @@ -81,22 +80,7 @@ module.exports = configure(function (/* ctx */) { // extendViteConf (viteConf) {}, // viteVuePluginOptions: {}, - vitePlugins: [ - [ - '@intlify/vite-plugin-vue-i18n', - { - // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false` - // compositionOnly: false, - - // if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}', - // you need to set `runtimeOnly: false` - // runtimeOnly: false, - - // you need to set i18n resource including paths ! - include: path.resolve(__dirname, './src/i18n/**'), - }, - ], - ], + vitePlugins: [], }, // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer diff --git a/src/App.vue b/src/App.vue index aa9a007..19eb5a7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,22 +2,16 @@ - diff --git a/src/boot/.gitkeep b/src/boot/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/boot/i18n.js b/src/boot/i18n.js deleted file mode 100644 index 3d047d7..0000000 --- a/src/boot/i18n.js +++ /dev/null @@ -1,14 +0,0 @@ -import { boot } from 'quasar/wrappers'; -import { createI18n } from 'vue-i18n'; -import messages from 'src/i18n'; - -export default boot(({ app }) => { - const i18n = createI18n({ - locale: 'en-US', - globalInjection: true, - messages, - }); - - // Set i18n instance on app - app.use(i18n); -}); diff --git a/src/components/AccountButton.vue b/src/components/AccountButton.vue index 16a2812..219906f 100644 --- a/src/components/AccountButton.vue +++ b/src/components/AccountButton.vue @@ -9,7 +9,7 @@ unelevated @click="eth_web3_login" > - + Connect Wallet @@ -18,11 +18,11 @@ v-else :label="`${account.address.slice(0, 4)}...${account.address.slice(-2)}`" class="border-primary-highlight gt-sm" - text-color="primary" + icon="img:icons/svg/avatar.svg" no-caps rounded + text-color="primary" unelevated - icon="img:icons/svg/avatar.svg" >
@@ -47,34 +47,28 @@ diff --git a/src/components/EssentialLink.vue b/src/components/EssentialLink.vue index ca55db6..cdf0bee 100644 --- a/src/components/EssentialLink.vue +++ b/src/components/EssentialLink.vue @@ -1,5 +1,5 @@ - diff --git a/src/components/KnowledgeStoreUploader.js b/src/components/KnowledgeStoreUploader.js index 8a519f9..0cd6bc8 100644 --- a/src/components/KnowledgeStoreUploader.js +++ b/src/components/KnowledgeStoreUploader.js @@ -32,7 +32,6 @@ export default createUploaderComponent({ // Set the loading state loading.value = true; const files = helpers.queuedFiles.value; - console.log(`components::KnowledgeStoreUploader::upload - files: ${files}`); fileStatus.value = {}; fileStatus.value = files.reduce((acc, file) => { acc[file.name] = 'queued'; @@ -56,7 +55,7 @@ export default createUploaderComponent({ if (text.length < 4 * 1024) { fileStatus.value[file.name] = 'uploaded'; helpers.updateFileStatus(file, 'uploaded'); - // If you don't embed the doucment, make sure to set the content + // If you don't embed the document, make sure to set the content emit('attachment-added', { title, type, content: text }); return; } diff --git a/src/components/MessageInput.vue b/src/components/MessageInput.vue index 653488a..ed87afb 100644 --- a/src/components/MessageInput.vue +++ b/src/components/MessageInput.vue @@ -1,27 +1,27 @@