From 06a0ac28efa9c5def100bfc57eb254e440d4c1bc Mon Sep 17 00:00:00 2001 From: cssbubble Date: Thu, 2 Jun 2022 14:55:06 +0100 Subject: [PATCH] item detail,combo box update --- src/._oEmbedProviders.js | Bin 0 -> 4096 bytes src/AdvancedSearch.svelte | 23 +- src/ButtonGroup.svelte | 4 +- src/FormatDetail.svelte | 2 +- src/FormatList.svelte | 2 +- src/ItemDetail.svelte | 44 +- src/SearchForm.svelte | 6 +- src/VideoCard.svelte | 23 +- src/oEmbedProviders.js | 4077 ++++++++++++++++++++++++++++++++ src/tailwindui/ComboBox.svelte | 53 +- 10 files changed, 4152 insertions(+), 82 deletions(-) create mode 100644 src/._oEmbedProviders.js create mode 100644 src/oEmbedProviders.js diff --git a/src/._oEmbedProviders.js b/src/._oEmbedProviders.js new file mode 100644 index 0000000000000000000000000000000000000000..37a55e95cbfe4446a040c3fed169eeb7f5946887 GIT binary patch literal 4096 zcmeH~y-ve05P&a52oO@m0t+ZI17i|5v`yMhn6wf@1)`N;LvHJ;p-CKU7r{gD5ybI>h?SfLCol{YojS7ycf=(U7Mu&GUr0DN}Sr6>Uzt(V1fD)r1Mw5j>ST)Y{iq z6JYl{{%%GE%~YH*801MT6~@n2>1O9}qEs%Mp2t}_U?W#&c)8&B@rViO-b$WbY;JqH zoEA%u`5|iyy;K4#1wz-vPksQ#Akp literal 0 HcmV?d00001 diff --git a/src/AdvancedSearch.svelte b/src/AdvancedSearch.svelte index 32a1d3a..a27693b 100644 --- a/src/AdvancedSearch.svelte +++ b/src/AdvancedSearch.svelte @@ -55,26 +55,27 @@
    - {#if result_items.length > 0} -
  • -

    Items

    -
      - {#each result_items as item} -
    • {item.name}
    • - {/each} -
    -
  • - {/if} {#if result_topics.length > 0}
  • Topics

  • {/if} + {#if result_items.length > 0} +
  • +

    Items

    +
      + {#each result_items as item} +
    • {item.name}
    • + {/each} +
    +
  • + {/if} +
{:else} diff --git a/src/ButtonGroup.svelte b/src/ButtonGroup.svelte index 5902ee4..981b87c 100644 --- a/src/ButtonGroup.svelte +++ b/src/ButtonGroup.svelte @@ -23,12 +23,12 @@ {i == 0 && 'rounded-l-md'} {i == tabs.length-1 && 'rounded-r-md'} border border-gray-800 text-sm font-medium focus:z-10 focus:outline-none - {currentlySelected === i? 'bg-lightButtonBg text-lightBg dark:bg-darkButtonBg dark:text-darkBg' : 'bg-lightPrimCont text-lightPrimary'} + {currentlySelected === i? 'bg-lightTertiary text-lightBg dark:bg-darkTertiary dark:text-darkBg' : 'bg-lightPrimCont text-lightPrimary'} " > {tab} - {/each} + {/each} diff --git a/src/FormatDetail.svelte b/src/FormatDetail.svelte index c1df7ca..e0a1c10 100644 --- a/src/FormatDetail.svelte +++ b/src/FormatDetail.svelte @@ -42,7 +42,7 @@
-

{format.toUpperCase()+"s"}

+

{format.toUpperCase()+"s".toUpperCase()}

diff --git a/src/FormatList.svelte b/src/FormatList.svelte index 1e9c6a2..29f8d98 100644 --- a/src/FormatList.svelte +++ b/src/FormatList.svelte @@ -3,7 +3,7 @@ -

Learn from the following formats

+

Explore the different formats

{#each formats as format} diff --git a/src/ItemDetail.svelte b/src/ItemDetail.svelte index 5b6026b..8278cf2 100644 --- a/src/ItemDetail.svelte +++ b/src/ItemDetail.svelte @@ -70,16 +70,21 @@ {#if item} -

+ +
+

{#each item.topics.split(";") as topicname} - {topicname} + {topicname.toUpperCase()} {/each}

-
+
{#if item.image} - {item.name} +
+ {item.name} +
+
-
+

{item.name}

- - {item.creators} + {item.creators} +
+ +
-
-
- -
- - - -
- -
{#each item.links.split(";") as type} - {type.split("|")[0]} + {type.split("|")[0]} {/each}
+
-
+
{#if item.description} @@ -138,10 +136,12 @@ {/if} -
+
+ {#if item.genre} +

genre

@@ -204,9 +204,10 @@
{/if}
-
+ {#if item.review} +

Reviews

@@ -376,6 +377,7 @@
-->
+
{:else}

loading...

{/if} diff --git a/src/SearchForm.svelte b/src/SearchForm.svelte index eaf6801..4f83deb 100644 --- a/src/SearchForm.svelte +++ b/src/SearchForm.svelte @@ -23,13 +23,13 @@ -
+ {#if !hideTopic} - { return {label: t.display_name, value: t.name}; }).sort((a,b) => a.label.localeCompare(b.label))} selected={null}/> + { return {label: t.display_name, value: t.name}; }).sort((a,b) => a.label.localeCompare(b.label)).slice(0,10)} selected={null}/> {/if} {#if !hideFormat} @@ -75,5 +75,7 @@ Sort by Year Sort by Name + + diff --git a/src/VideoCard.svelte b/src/VideoCard.svelte index bb5d8a1..906d6fb 100644 --- a/src/VideoCard.svelte +++ b/src/VideoCard.svelte @@ -1,6 +1,23 @@ -
-
- - - - -
-
\ No newline at end of file + + + + {#each filteredOptions as opt (opt.value)} + {opt.label} + {/each} + +