Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/i18n/locales/cs_CZ/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Databáze byla úspěšně migrována."
"copied": "Zkopírováno do schránky",
"migrate": "Databáze byla úspěšně migrována.",
"backup": {
"created": "Záloha byla úspěšně vytvořena.",
"restored": "Záloha byla úspěšně obnovena.",
"deleted": "Záloha byla úspěšně smazána."
}
},
"warning": {
"noUndo": "Tuto akci nelze vrátit zpět.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/de_DE/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Datenbank erfolgreich migriert."
"copied": "In die Zwischenablage kopiert",
"migrate": "Datenbank erfolgreich migriert.",
"backup": {
"created": "Sicherung erfolgreich erstellt.",
"restored": "Sicherung erfolgreich wiederhergestellt.",
"deleted": "Sicherung erfolgreich gelöscht."
}
},
"warning": {
"noUndo": "Diese Aktion kann nicht rückgängig gemacht werden.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/el_GR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Η DB μετέφερε επιτυχώς τα δεδομένα."
"copied": "Αντιγράφηκε στο πρόχειρο",
"migrate": "Η DB μετέφερε επιτυχώς τα δεδομένα.",
"backup": {
"created": "Το αντίγραφο ασφαλείας δημιουργήθηκε επιτυχώς.",
"restored": "Το αντίγραφο ασφαλείας αποκαταστάθηκε επιτυχώς.",
"deleted": "Το αντίγραφο ασφαλείας διαγράφηκε επιτυχώς."
}
},
"warning": {
"noUndo": "Δεν μπορείτε να αναιρέσετε αυτήν την ενέργεια.",
Expand Down
1 change: 1 addition & 0 deletions src/main/i18n/locales/en_US/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
}
},
"success": {
"copied": "Copied to clipboard",
"migrate": "DB successfully migrated.",
"backup": {
"created": "Backup successfully created.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/es_ES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Base de datos migrada exitosamente."
"copied": "Copiado al portapapeles",
"migrate": "Base de datos migrada exitosamente.",
"backup": {
"created": "Copia de seguridad creada exitosamente.",
"restored": "Copia de seguridad restaurada exitosamente.",
"deleted": "Copia de seguridad eliminada exitosamente."
}
},
"warning": {
"noUndo": "No podrás deshacer esta acción.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/fa_IR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "پایگاه داده با موفقیت مهاجرت کرد."
"copied": "در کلیپ‌بورد کپی شد",
"migrate": "پایگاه داده با موفقیت مهاجرت کرد.",
"backup": {
"created": "پشتیبان با موفقیت ایجاد شد.",
"restored": "پشتیبان با موفقیت بازیابی شد.",
"deleted": "پشتیبان با موفقیت حذف شد."
}
},
"warning": {
"noUndo": "شما نمی‌توانید این عمل را برگردانید.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/fr_FR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Base de données migrée avec succès."
"copied": "Copié dans le presse-papiers",
"migrate": "Base de données migrée avec succès.",
"backup": {
"created": "Sauvegarde créée avec succès.",
"restored": "Sauvegarde restaurée avec succès.",
"deleted": "Sauvegarde supprimée avec succès."
}
},
"warning": {
"noUndo": "Vous ne pouvez pas annuler cette action.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/ja_JP/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "データベースの移行が完了しました。"
"copied": "クリップボードにコピーしました",
"migrate": "データベースの移行が完了しました。",
"backup": {
"created": "バックアップが正常に作成されました。",
"restored": "バックアップが正常に復元されました。",
"deleted": "バックアップが正常に削除されました。"
}
},
"warning": {
"noUndo": "この操作は取り消せません。",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/pl_PL/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Pomyślnie przeprowadzono migrację bazy danych."
"copied": "Skopiowano do schowka",
"migrate": "Pomyślnie przeprowadzono migrację bazy danych.",
"backup": {
"created": "Kopia zapasowa została pomyślnie utworzona.",
"restored": "Kopia zapasowa została pomyślnie przywrócona.",
"deleted": "Kopia zapasowa została pomyślnie usunięta."
}
},
"warning": {
"noUndo": "Tej operacji nie można cofnąć.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "DB migrado com sucesso."
"copied": "Copiado para a área de transferência",
"migrate": "DB migrado com sucesso.",
"backup": {
"created": "Backup criado com sucesso.",
"restored": "Backup restaurado com sucesso.",
"deleted": "Backup excluído com sucesso."
}
},
"warning": {
"noUndo": "Você não pode desfazer esta ação.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/ro_RO/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "DB a fost migrat cu succes."
"copied": "Copiat în clipboard",
"migrate": "DB a fost migrat cu succes.",
"backup": {
"created": "Backup creat cu succes.",
"restored": "Backup restaurat cu succes.",
"deleted": "Backup șters cu succes."
}
},
"warning": {
"noUndo": "Nu puteți anula această acțiune.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/ru_RU/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "База данных успешно мигрирована."
"copied": "Скопировано в буфер обмена",
"migrate": "База данных успешно мигрирована.",
"backup": {
"created": "Резервная копия успешно создана.",
"restored": "Резервная копия успешно восстановлена.",
"deleted": "Резервная копия успешно удалена."
}
},
"warning": {
"noUndo": "Это действие нельзя отменить.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/tr_TR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "Database başarıyla taşındı."
"copied": "Panoya kopyalandı",
"migrate": "Database başarıyla taşındı.",
"backup": {
"created": "Yedek başarıyla oluşturuldu.",
"restored": "Yedek başarıyla geri yüklendi.",
"deleted": "Yedek başarıyla silindi."
}
},
"warning": {
"noUndo": "Bu işlemi geri alamazsınız.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/uk_UA/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "База даних успішно мігрована."
"copied": "Скопійовано в буфер обміну",
"migrate": "База даних успішно мігрована.",
"backup": {
"created": "Резервну копію успішно створено.",
"restored": "Резервну копію успішно відновлено.",
"deleted": "Резервну копію успішно видалено."
}
},
"warning": {
"noUndo": "Ви не зможете скасувати цю дію.",
Expand Down
8 changes: 7 additions & 1 deletion src/main/i18n/locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
]
},
"success": {
"migrate": "数据库迁移成功。"
"copied": "已复制到剪贴板",
"migrate": "数据库迁移成功。",
"backup": {
"created": "备份创建成功。",
"restored": "备份恢复成功。",
"deleted": "备份删除成功。"
}
},
"warning": {
"noUndo": "此操作无法撤消。",
Expand Down
5 changes: 5 additions & 0 deletions src/main/i18n/locales/zh_HK/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
]
},
"success": {
"copied": "已複製",
"backup": {
"created": "備份已創建",
"restored": "備份已恢復"
},
"migrate": "資料庫遷移成功。"
},
"warning": {
Expand Down
5 changes: 5 additions & 0 deletions src/main/i18n/locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
]
},
"success": {
"copied": "已複製",
"backup": {
"created": "備份已建立",
"restored": "備份已還原"
},
"migrate": "資料庫遷移成功。"
},
"warning": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import { Switch } from '@/components/ui/shadcn/switch'
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'

const text = ref('')
const isBase64ToText = ref(false)

const { copy } = useClipboard()
const copy = useCopyToClipboard()

const title = computed(() => i18n.t('devtools:converters.base64.label'))
const description = computed(() =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import {
camelCase,
Expand Down Expand Up @@ -64,8 +65,10 @@ function convert(input: string, type: keyof typeof caseType): string {
}
}

const copy = useCopyToClipboard()

function copyCase(type: keyof typeof caseType) {
navigator.clipboard.writeText(convert(text.value, type))
copy(convert(text.value, type))
}

const output = computed(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'
import chroma from 'chroma-js'
// @ts-expect-error some
import { colornames } from 'color-name-list'
Expand All @@ -16,7 +16,7 @@ const description = computed(() =>
i18n.t('devtools:converters.colorConverter.description'),
)

const { copy } = useClipboard()
const copy = useCopyToClipboard()

const selectedColor = ref('#154696')

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/devtools/converters/JsonToToml.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script setup lang="ts">
import { Switch } from '@/components/ui/shadcn/switch'
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'
import * as toml from 'toml'

const text = ref('')
const error = ref('')

const isTomlToJson = ref(false)

const { copy } = useClipboard()
const copy = useCopyToClipboard()

const title = computed(() => i18n.t('devtools:converters.jsonToToml.label'))
const description = computed(() =>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/devtools/converters/JsonToXml.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script setup lang="ts">
import { Switch } from '@/components/ui/shadcn/switch'
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'

const text = ref('')
const error = ref('')

const isXmlToJson = ref(false)

const { copy } = useClipboard()
const copy = useCopyToClipboard()

const title = computed(() => i18n.t('devtools:converters.jsonToXml.label'))
const description = computed(() =>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/devtools/converters/JsonToYaml.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script setup lang="ts">
import { Switch } from '@/components/ui/shadcn/switch'
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'
import yaml from 'js-yaml'

const text = ref('')
const error = ref('')

const isYamlToJson = ref(false)

const { copy } = useClipboard()
const copy = useCopyToClipboard()

const title = computed(() => i18n.t('devtools:converters.jsonToYaml.label'))
const description = computed(() =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { Switch } from '@/components/ui/shadcn/switch'
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'

const text = ref('')
const isAsciiToText = ref(false)
Expand All @@ -11,7 +11,7 @@ const description = computed(() =>
i18n.t('devtools:converters.textToAscii.description'),
)

const { copy } = useClipboard()
const copy = useCopyToClipboard()

function convertTextToAscii(input: string): string {
if (!input) {
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/components/devtools/converters/TextToUnicode.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { Switch } from '@/components/ui/shadcn/switch'
import { useCopyToClipboard } from '@/composables'
import { i18n } from '@/electron'
import { useClipboard } from '@vueuse/core'

const text = ref('')
const isUnicodeToText = ref(false)
Expand All @@ -11,6 +11,8 @@ const description = computed(() =>
i18n.t('devtools:converters.textToUnicode.description'),
)

const copy = useCopyToClipboard()

function convertTextToUnicode(input: string): string {
if (!input) {
return ''
Expand Down Expand Up @@ -57,8 +59,6 @@ function convert() {
}

const output = computed(() => convert())

const { copy } = useClipboard()
</script>

<template>
Expand Down
Loading