moved to occulto

This commit is contained in:
2023-01-13 21:24:27 +01:00
parent 436ae2a7e5
commit 6fb7518b6a
11 changed files with 315 additions and 301 deletions

View File

@@ -1,10 +1,10 @@
<script lang="ts">
import { Hex } from 'occulto'
import { onMount } from 'svelte'
import { t } from 'svelte-intl-precompile'
import { Adapters } from '$lib/adapters'
import { get, info } from '$lib/api'
import { Keys } from '$lib/crypto'
import Button from '$lib/ui/Button.svelte'
import Loader from '$lib/ui/Loader.svelte'
import ShowNote, { type DecryptedNote } from '$lib/ui/ShowNote.svelte'
@@ -43,7 +43,7 @@
loading = $t('common.downloading')
const data = await get(id)
loading = $t('common.decrypting')
const key = await Keys.import(password)
const key = await Hex.decode(password)
switch (data.meta.type) {
case 'text':
note = {