diff --git a/package.json b/package.json index d3600e2..7d3849e 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ }, "type": "module", "dependencies": { + "@svelte-put/clickoutside": "^3.0.0", "@sveltejs/adapter-static": "^2.0.3", "brotli-compress": "^1.3.3", "lodash-es": "^4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 72bf784..d8be9a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: + '@svelte-put/clickoutside': + specifier: ^3.0.0 + version: 3.0.0 '@sveltejs/adapter-static': specifier: ^2.0.3 version: 2.0.3(@sveltejs/kit@1.20.4) @@ -400,6 +403,10 @@ packages: resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} dev: false + /@svelte-put/clickoutside@3.0.0: + resolution: {integrity: sha512-a2aA0+uMo2LGK4bwQE+etra57cJuqQsXRkI0IM+cPzjIowqUg5CMSSeQ6YsXBJUdtzm/s6WQKcmoswK/875wtA==} + dev: false + /@sveltejs/adapter-auto@2.0.0(@sveltejs/kit@1.20.4): resolution: {integrity: sha512-b+gkHFZgD771kgV3aO4avHFd7y1zhmMYy9i6xOK7m/rwmwaRO8gnF5zBc0Rgca80B2PMU1bKNxyBTHA14OzUAQ==} peerDependencies: diff --git a/src/app.html b/src/app.html index eb863cb..365b2c5 100644 --- a/src/app.html +++ b/src/app.html @@ -11,8 +11,7 @@ npm/bootstrap@4.6.1/dist/css/bootstrap-grid.min.css, npm/codemirror@5.65.5/lib/codemirror.min.css, npm/codemirror@5.65.5/addon/scroll/simplescrollbars.css, -npm/codemirror@5.65.5/theme/dracula.min.css, -npm/microtip@0.2.2/microtip.min.css" +npm/codemirror@5.65.5/theme/dracula.min.css" /> %sveltekit.head% @@ -22,8 +21,6 @@ npm/microtip@0.2.2/microtip.min.css" + +
+ {#if areOptionsVisible} + +
+ {#each filteredItems as item} +
selectItem(item)}>{item.text}
+ {/each} +
+ {:else} + + {/if} +
+ + diff --git a/src/components/Select.svelte b/src/components/Select.svelte deleted file mode 100644 index 535fb12..0000000 --- a/src/components/Select.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/TopBar.svelte b/src/components/TopBar.svelte index 78d292d..5b01c9e 100644 --- a/src/components/TopBar.svelte +++ b/src/components/TopBar.svelte @@ -1,9 +1,9 @@ -
-
NoPaste
+
+

NoPaste

-