diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..5b32dc1 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,31 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:svelte/recommended', + 'prettier' + ], + plugins: ['@typescript-eslint'], + overrides: [ + { + files: ['*.svelte'], + parser: 'svelte-eslint-parser', + parserOptions: { parser: '@typescript-eslint/parser' } + } + ], + parserOptions: { + sourceType: 'module',ecmaVersion: 2020, + extraFileExtensions: ['.svelte'] + }, + env: { + browser: true, + es2017: true, + node: true + }, + rules: { + 'svelte/valid-compile': 'warn', + '@typescript-eslint/no-explicit-any': 'warn' + } +}; \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 3f881ff..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "env": { - "node": true, - "es2021": true - }, - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:svelte/recommended", - "prettier" - ], - "parser": "@typescript-eslint/parser", - "overrides": [ - { - "files": ["*.svelte"], - "parser": "svelte-eslint-parser", - // Parse the ` + +{#if title !== '' || image !== '' || description !== ''} +
+
+
+ {title} +
+
{description}
+
+
+ + {#if iconView && image !== ''} + {title} + {/if} +
+
+{/if} diff --git a/src/lib/components/ModalAddNote.svelte b/src/lib/components/ModalAddNote.svelte index 084a6a6..4b6d0ca 100644 --- a/src/lib/components/ModalAddNote.svelte +++ b/src/lib/components/ModalAddNote.svelte @@ -3,9 +3,9 @@ // Props /** Exposes parent props to this component. */ export let parent: any; - + import { modalStore, toastStore } from '$lib/store'; // Stores - import { Accordion, AccordionItem, modalStore } from '@skeletonlabs/skeleton'; + import { Accordion, AccordionItem } from '@skeletonlabs/skeleton'; enum AddTyle { Id = 'id', Tag = 'tag', @@ -84,14 +84,12 @@ {$_('ModalAddNote.add_note_tag')}
- {$_('ModalAddNote.example')}1 ["emoji" ,"wayo", - "https://example.com/example.png"]
- {$_('ModalAddNote.example')}2 [ "a", + {$_('ModalAddNote.example')}[ "a", "30030:84b0c46ab699ac35eb2ca286470b85e081db2087cdef63932236c397417782f5:mono" ]
- {$_('ModalAddNote.caution')} - + -->
diff --git a/src/lib/components/ModalCopyPubkey.svelte b/src/lib/components/ModalCopyPubkey.svelte index 2c95b59..0899dc2 100644 --- a/src/lib/components/ModalCopyPubkey.svelte +++ b/src/lib/components/ModalCopyPubkey.svelte @@ -1,11 +1,7 @@ {#if $modalStore[0]}