From 0a2d0b4f91a347d53f40b6bf4a071f3d284367d4 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 22 Jul 2024 02:16:24 +0800 Subject: [PATCH] docs: fix typos Found via `typos --hidden --format brief` --- README.md | 2 +- quasar.conf.js | 2 +- src-electron/electron-main.js | 2 +- src/components/collection/CollectionUi.vue | 2 +- src/pages/Document.vue | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 33f4429..70609a1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ When using in your browser from an https address your server must also be behind self-host this dashboard with docker* (web version has some limitations import/export size of files) -use environement variable `PUBLIC_PATH` if you need something else than `/` +use environment variable `PUBLIC_PATH` if you need something else than `/` Example usage: ```bash diff --git a/quasar.conf.js b/quasar.conf.js index efa5d45..322b853 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -89,7 +89,7 @@ module.exports = configure(function (ctx) { languages: ['javascript', 'json'], }), ) - // fix for devtools in electon based on https://github.com/quasarframework/quasar/issues/13535#issuecomment-1544028712 + // fix for devtools in electron based on https://github.com/quasarframework/quasar/issues/13535#issuecomment-1544028712 if (!isClient) { return; } cfg.externals = [({ request }, callback) => { if (/\.\/build-node\/(hook|backend)\.js/.test(request)) { diff --git a/src-electron/electron-main.js b/src-electron/electron-main.js index 5528b4d..9898628 100644 --- a/src-electron/electron-main.js +++ b/src-electron/electron-main.js @@ -73,7 +73,7 @@ ipcMain.handle('importFile', async (events, collectionName, action) => { try { documents = JSON.parse(documents) } catch (e) { - // asume ljson + // assume ljson } return appApi.importDocuments(collectionName, documents, action); } diff --git a/src/components/collection/CollectionUi.vue b/src/components/collection/CollectionUi.vue index fb91e1d..ef131d1 100644 --- a/src/components/collection/CollectionUi.vue +++ b/src/components/collection/CollectionUi.vue @@ -231,7 +231,7 @@ export default defineComponent({ ['int32', 'float'].includes(field.type) || (field.type === 'string' && field.sort) ); - // emtpy option + compatible field names + // empty option + compatible field names return [''].concat(compatibleFields.map((field) => field.name)); }, schemaJson: { diff --git a/src/pages/Document.vue b/src/pages/Document.vue index 518d78a..430bf70 100644 --- a/src/pages/Document.vue +++ b/src/pages/Document.vue @@ -43,7 +43,7 @@ > @@ -84,7 +84,7 @@ export default defineComponent({ results: [] as unknown[], action: 'upsert', actionOptions: ['create', 'upsert', 'update'], - actionDesciptions: { + actionDescriptions: { create: 'Create a new document. Fails if id exists.', upsert: 'Create a new document or update an existing document.', update: 'Update an existing document. Partial document allowed.',