Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Convert `.stories.mdx` to `stories.js` for compatibility with Storybook v.8 (#4235)

Olga Bulat83ed9647e8b3
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 900ea1cdf..75a87f94a 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -137,9 +137,6 @@ const config: NuxtConfig = {
router: {
middleware: "feature-flags",
},
- components: [
- { path: "~/components", extensions: ["vue"], pathPrefix: false },
- ],
plugins: [
"~/plugins/ua-parse.ts",
"~/plugins/focus-visible.client.ts",
@@ -281,8 +278,7 @@ const config: NuxtConfig = {
},
},
storybook: {
- port: 6006, // standard port for Storybook
- stories: ["~/**/*.stories.@(mdx|js)"],
+ port: 6006,
addons: [
{
name: "@storybook/addon-essentials",
diff --git a/frontend/package.json b/frontend/package.json
index 93f333343..1bda71da9 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -58,7 +58,6 @@
},
"dependencies": {
"@floating-ui/dom": "^1.5.3",
- "@nuxt/components": "^2.2.1",
"@nuxt/vue-app": "^2.17.3",
"@nuxtjs/composition-api": "^0.34.0",
"@nuxtjs/i18n": "^7.3.1",
diff --git a/frontend/src/components/VAudioThumbnail/meta/VAudioThumbnail.stories.js b/frontend/src/components/VAudioThumbnail/meta/VAudioThumbnail.stories.js
new file mode 100644
index 000000000..1c6c3e96c
--- /dev/null
+++ b/frontend/src/components/VAudioThumbnail/meta/VAudioThumbnail.stories.js
@@ -0,0 +1,72 @@
+import VAudioThumbnail from "~/components/VAudioThumbnail/VAudioThumbnail.vue"
+
+const Template = (args) => ({
+ template: `
+ <div class="w-30">
+ <VAudioThumbnail :audio="args.audio" v-bind="args"/>
+ </div>
+ `,
+ components: { VAudioThumbnail },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VAudioThumbnail",
+ components: VAudioThumbnail,
+}
+
+export const Square = {
+ render: Template.bind({}),
+ name: "Square",
+
+ args: {
+ audio: {
+ title: "SMPTE Color Bars",
+ creator: "Guy Macon",
+ thumbnail:
+ "https://upload.wikimedia.org/wikipedia/commons/c/c6/500_x_500_SMPTE_Color_Bars.png",
+ },
+ },
+}
+
+export const Portrait = {
+ render: Template.bind({}),
+ name: "Portrait",
+
+ args: {
+ audio: {
+ title: "Cat November 2010-1a",
+ creator: "Alvesgaspar",
+ thumbnail:
+ "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/359px-Cat_November_2010-1a.jpg",
+ },
+ },
+}
+
+export const Landscape = {
+ render: Template.bind({}),
+ name: "Landscape",
+
+ args: {
+ audio: {
+ title: "Six weeks old cat (aka)",
+ creator: "André Karwath aka Aka",
+ thumbnail:
+ "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Six_weeks_old_cat_(aka).jpg/320px-Six_weeks_old_cat_(aka).jpg",
+ },
+ },
+}
+
+export const Fallback = {
+ render: Template.bind({}),
+ name: "Fallback",
+
+ args: {
+ audio: {
+ title: "Null",
+ creator: "Undefined",
+ },
+ },
+}
diff --git a/frontend/src/components/VAudioThumbnail/meta/VAudioThumbnail.stories.mdx b/frontend/src/components/VAudioThumbnail/meta/VAudioThumbnail.stories.mdx
deleted file mode 100644
index a1efba776..000000000
--- a/frontend/src/components/VAudioThumbnail/meta/VAudioThumbnail.stories.mdx
+++ /dev/null
@@ -1,140 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VAudioThumbnail from "~/components/VAudioThumbnail/VAudioThumbnail.vue"
-
-<Meta title="Components/VAudioThumbnail" components={VAudioThumbnail} />
-
-export const Template = (args) => ({
- template: `
- <div class="w-30">
- <VAudioThumbnail v-bind="args"/>
- </div>
- `,
- components: { VAudioThumbnail },
- setup() {
- return { args }
- },
-})
-
-# VAudioThumbnail
-
-<Description of={VAudioThumbnail} />
-
-<ArgsTable of={VAudioThumbnail} />
-
-It does not have any intrinsic width and scales horizontally to take up the full
-width of the parent. It also does not have any rounding so the parent layout
-must apply the `rounded-*` classes on the `.thumbnail` class.
-
-## Aspect ratio
-
-The component always maintains a square aspect ratio. If the image is
-non-square, it will be cropped from the periphery.
-
-### Square
-
-**Sample image:** "SMPTE Color Bars" by
-[Guy Macon](https://commons.wikimedia.org/wiki/User:Guy_Macon)
-([Creative Commons](https://en.wikipedia.org/wiki/en:Creative_Commons)
-[CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/deed.en))
-
-<img
- src="https://upload.wikimedia.org/wikipedia/commons/c/c6/500_x_500_SMPTE_Color_Bars.png"
- style={{ width: "120px" }}
-/>
-
-<Canvas>
- <Story
- name="Square"
- args={{
- audio: {
- title: "SMPTE Color Bars",
- creator: "Guy Macon",
- thumbnail:
- "https://upload.wikimedia.org/wikipedia/commons/c/c6/500_x_500_SMPTE_Color_Bars.png",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-### Portrait
-
-**Sample image:** "Cat November 2010-1a" by
-[Alvesgaspar](https://commons.wikimedia.org/wiki/User:Alvesgaspar)
-([Creative Commons](https://en.wikipedia.org/wiki/en:Creative_Commons)
-[Attribution-Share Alike 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/deed.en))
-
-<img
- src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/359px-Cat_November_2010-1a.jpg"
- style={{ width: "120px" }}
-/>
-
-<Canvas>
- <Story
- name="Portrait"
- args={{
- audio: {
- title: "Cat November 2010-1a",
- creator: "Alvesgaspar",
- thumbnail:
- "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/359px-Cat_November_2010-1a.jpg",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-### Landscape
-
-**Sample image:** "Six weeks old cat (aka)" by André Karwath aka
-[Aka](https://commons.wikimedia.org/wiki/User:Aka)
-([Creative Commons](https://en.wikipedia.org/wiki/en:Creative_Commons)
-[Attribution-Share Alike 2.5 Generic](https://creativecommons.org/licenses/by-sa/2.5/deed.en))
-
-<img
- src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Six_weeks_old_cat_(aka).jpg/320px-Six_weeks_old_cat_(aka).jpg"
- style={{ height: "120px" }}
-/>
-
-<Canvas>
- <Story
- name="Landscape"
- args={{
- audio: {
- title: "Six weeks old cat (aka)",
- creator: "André Karwath aka Aka",
- thumbnail:
- "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Six_weeks_old_cat_(aka).jpg/320px-Six_weeks_old_cat_(aka).jpg",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Fallback
-
-In the absence of album art, a randomised artwork is generated.
-
-<Canvas>
- <Story
- name="Fallback"
- args={{
- audio: {
- title: "Null",
- creator: "Undefined",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VAudioTrack/meta/VAudioControl.stories.js b/frontend/src/components/VAudioTrack/meta/VAudioControl.stories.js
new file mode 100644
index 000000000..20b2e27fe
--- /dev/null
+++ b/frontend/src/components/VAudioTrack/meta/VAudioControl.stories.js
@@ -0,0 +1,73 @@
+import { audioStatuses } from "~/constants/audio"
+
+import VAudioControl from "~/components/VAudioTrack/VAudioControl.vue"
+
+const Template = (args) => ({
+ template: `<VAudioControl :size="args.size" :status="args.status" v-bind="args" v-on="args"/>`,
+ components: { VAudioControl },
+ setup() {
+ return { args }
+ },
+})
+
+const vModelTemplate = () => ({
+ template: `
+ <div>
+ <VAudioControl v-model="status" size="small" status="paused" />
+ {{ status }}
+ </div>
+ `,
+ components: { VAudioControl },
+ data() {
+ return {
+ status: "played",
+ }
+ },
+})
+
+export default {
+ title: "Components/Audio track/Audio control",
+ components: VAudioControl,
+
+ argTypes: {
+ status: {
+ options: audioStatuses,
+ control: "select",
+ },
+
+ size: {
+ options: ["small", "medium", "large"],
+ control: "select",
+ },
+
+ toggle: {
+ action: "toggle",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ status: "playing",
+ size: "large",
+ },
+}
+
+export const VModel = {
+ render: vModelTemplate.bind({}),
+ name: "v-model",
+}
+
+export const Disabled = {
+ render: Template.bind({}),
+ name: "Disabled",
+
+ args: {
+ disabled: true,
+ status: "playing",
+ size: "medium",
+ },
+}
diff --git a/frontend/src/components/VAudioTrack/meta/VAudioControl.stories.mdx b/frontend/src/components/VAudioTrack/meta/VAudioControl.stories.mdx
deleted file mode 100644
index 68978e73c..000000000
--- a/frontend/src/components/VAudioTrack/meta/VAudioControl.stories.mdx
+++ /dev/null
@@ -1,107 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import { audioStatuses } from "~/constants/audio"
-import VAudioControl from "~/components/VAudioTrack/VAudioControl.vue"
-
-<Meta
- title="Components/Audio track/Audio control"
- components={VAudioControl}
- argTypes={{
- status: {
- options: audioStatuses,
- control: "select",
- },
- size: {
- options: ["small", "medium", "large"],
- control: "select",
- },
- toggle: {
- action: "toggle",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VAudioControl :size="args.size" :status="args.status" v-bind="args" v-on="args"/>`,
- components: { VAudioControl },
- setup() {
- return { args }
- },
-})
-
-# Audio control
-
-<Description of={VAudioControl} />
-
-<ArgsTable of={VAudioControl} />
-
-It should be noted that the component emits the `toggle` event with the opposite
-value of its `status` state.
-
-## Size
-
-The button dimensions can be set by passing the `size` prop.
-
-<Canvas>
- <Story
- name="Default"
- args={{
- status: "playing",
- size: "large",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Two-way binding
-
-The recommended way to use it is with `v-model` mapping to a `String` that can
-either be `'playing'`, `'paused'` or `'played'`.
-
-It should be noted that both paused and played states change to playing when
-toggled whereas the playing state toggles to paused. The played state can only
-be achieved by playing till the end of a track.
-
-export const vModelTemplate = () => ({
- template: `
- <div>
- <VAudioControl v-model="status" size="small" status="paused" />
- {{ status }}
- </div>
- `,
- components: { VAudioControl },
- data() {
- return {
- status: "played",
- }
- },
-})
-
-<Canvas>
- <Story name="v-model">{vModelTemplate.bind({})}</Story>
-</Canvas>
-
-## Fall-through attributes
-
-The component is, indirectly, a transparent wrapper over `<button>` so all
-attributes of the button element can be applied to it, e.g. `disabled`.
-
-<Canvas>
- <Story
- name="Disabled"
- args={{
- disabled: true,
- status: "playing",
- size: "medium",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VAudioTrack/meta/VAudioTrack.stories.mdx b/frontend/src/components/VAudioTrack/meta/VAudioTrack.stories.js
similarity index 53%
rename from frontend/src/components/VAudioTrack/meta/VAudioTrack.stories.mdx
rename to frontend/src/components/VAudioTrack/meta/VAudioTrack.stories.js
index fa1d49d33..d77eded66 100644
--- a/frontend/src/components/VAudioTrack/meta/VAudioTrack.stories.mdx
+++ b/frontend/src/components/VAudioTrack/meta/VAudioTrack.stories.js
@@ -1,13 +1,7 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
import { computed } from "vue"
-import { audioLayouts, audioSizes } from "~/constants/audio"
+
import { useProviderStore } from "~/stores/provider"
+import { audioLayouts, audioSizes } from "~/constants/audio"
import VAudioTrack from "~/components/VAudioTrack/VAudioTrack.vue"
@@ -16,46 +10,19 @@ import mp3Waveform from "./mp3-waveform.json"
import oggWaveform from "./ogg-waveform.json"
import wavWaveform from "./wav-waveform.json"
-<Meta
- title="Components/Audio track"
- component={VAudioTrack}
- argTypes={{
- format: {
- options: ["mp3", "ogg", "flac", "wav"],
- control: "select",
- },
- layout: {
- options: audioLayouts,
- control: "select",
- },
- size: {
- options: audioSizes,
- control: "select",
- },
- audio: {
- control: false,
- },
- }}
- args={{
- format: "mp3",
- layout: "full",
- size: "m",
- }}
-/>
-
-export const commonAttrs = () => ({
+const commonAttrs = () => ({
id: Math.floor(Math.random() * 1e9).toString(),
+ frontendMediaType: "audio",
creator: "Wolfgang Amadeus Mozart",
creator_url: "https://en.wikipedia.org/wiki/Wolfgang_Amadeus_Mozart",
category: "music",
thumbnail:
"https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/Croce-Mozart-Detail.jpg/370px-Croce-Mozart-Detail.jpg",
- frontendMediaType: "audio",
source: "wikimedia_audio",
sourceName: "Wikimedia",
})
-export const formatExamples = {
+const formatExamples = {
ogg: {
title: "Eine kleine Nachtmusik - 1. Allegro",
url: "https://upload.wikimedia.org/wikipedia/commons/2/24/Mozart_-_Eine_kleine_Nachtmusik_-_1._Allegro.ogg",
@@ -86,14 +53,14 @@ export const formatExamples = {
},
}
-export const providerStorePatch = {
+const providerStorePatch = {
providers: {
audio: [{ source_name: "wikimedia_audio", display_name: "Wikimedia" }],
},
- sourceNames: { audio: ["Wikimedia"] },
+ sourceNames: { audio: ["wikimedia_audio"] },
}
-export const Template = (args) => ({
+const Template = (args) => ({
template: `<VAudioTrack v-bind="args" :audio="audioObj"/>`,
components: { VAudioTrack },
setup() {
@@ -107,160 +74,140 @@ export const Template = (args) => ({
},
})
-# Audio track
-
-<Description of={VAudioTrack} />
-
-<ArgsTable of={VAudioTrack} />
-
-**Audio thumbnail:** "Mozart Family" by
-[Johann Nepomuk della Croce](https://en.wikipedia.org/wiki/Johann_Nepomuk_della_Croce)
-(Public Domain)
-
-## Layouts
-
-The component can be rendered in a multiple different layouts, by specifying a
-`layout`. The layout can further be customised by the `size` prop.
-
-### Full (default)
-
-<Canvas>
- <Story name="Full">{Template.bind({})}</Story>
-</Canvas>
+const Multiple = () => ({
+ template: `
+ <div>
+ <VAudioTrack
+ v-for="(audio, key) in formatExamples"
+ :key="key"
+ class="mb-8"
+ :audio="audioObj(audio)"
+ layout="row"/>
+ </div>
+ `,
+ components: { VAudioTrack },
+ setup() {
+ const providerStore = useProviderStore()
+ providerStore.$patch(providerStorePatch)
+ const audioObj = (audio) => ({ ...commonAttrs(), ...audio })
+ return { formatExamples, audioObj }
+ },
+})
-### Row
+export default {
+ title: "Components/Audio track",
+ component: VAudioTrack,
-#### Size L
+ argTypes: {
+ format: {
+ options: ["mp3", "ogg", "flac", "wav"],
+ control: "select",
+ },
-<Canvas>
- <Story
- name="Row (large)"
- args={{
- layout: "row",
- size: "l",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+ layout: {
+ options: audioLayouts,
+ control: "select",
+ },
-#### Size M (default)
+ size: {
+ options: audioSizes,
+ control: "select",
+ },
-<Canvas>
- <Story
- name="Row (medium)"
- args={{
- layout: "row",
- // size: 'm', (default)
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+ audio: {
+ control: false,
+ },
+ },
+ args: {
+ format: "mp3",
+ layout: "full",
+ size: "m",
+ },
+}
-#### Size S (mobile)
+export const FullMedium = {
+ render: Template.bind({}),
+ name: "Full (medium)",
+}
-<Canvas>
- <Story
- name="Row (small)"
- args={{
- layout: "row",
- size: "s",
- }}
- parameters={{
- viewport: { defaultViewport: "sm" },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+export const RowLarge = {
+ render: Template.bind({}),
+ name: "Row (large)",
-### Box
+ args: {
+ layout: "row",
+ size: "l",
+ },
+}
-#### Size L
+export const RowMedium = {
+ render: Template.bind({}),
+ name: "Row (medium)",
-There is no M size in box layout.
+ // size: 'm', (default)
+ args: {
+ layout: "row",
+ },
+}
-<Canvas>
- <Story
- name="Box (large)"
- args={{
- layout: "box",
- size: "l",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+export const RowSmall = {
+ render: Template.bind({}),
+ name: "Row (small)",
-#### Size S (mobile)
+ args: {
+ layout: "row",
+ size: "s",
+ },
-<Canvas>
- <Story
- name="Box (small)"
- args={{
- layout: "box",
- size: "s",
- }}
- parameters={{
- viewport: { defaultViewport: "sm" },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+ parameters: {
+ viewport: {
+ defaultViewport: "sm",
+ },
+ },
+}
-### Global (mobile exclusive)
+export const BoxLarge = {
+ render: Template.bind({}),
+ name: "Box (large)",
-This version of the player is affixed to the bottom of the screen and retained
-across pages when navigating.
+ args: {
+ layout: "box",
+ size: "l",
+ },
+}
-<Canvas>
- <Story
- name="Global"
- args={{
- layout: "global",
- }}
- parameters={{
- viewport: { defaultViewport: "sm" },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+export const BoxSmall = {
+ render: Template.bind({}),
+ name: "Box (small)",
-## Other formats
+ args: {
+ layout: "box",
+ size: "s",
+ },
-The component is capable of playing audio in many formats, but this largely
-depends on the browser and engine. Refer to
-['Can I use...'](https://caniuse.com/?search=audio%20format) for more up-to-date
-information on browser compatibility.
+ parameters: {
+ viewport: {
+ defaultViewport: "sm",
+ },
+ },
+}
-## Single active player
+export const Global = {
+ render: Template.bind({}),
+ name: "Global",
-The audio players use a centralised store for holding the details of the active
-media, enabling only one player to be active at any given time.
+ args: {
+ layout: "global",
+ },
-export const Multiple = () => ({
- template: `
- <div>
- <VAudioTrack
- v-for="(audio, key) in formatExamples"
- :key="key"
- class="mb-8"
- :audio="audioObj(audio)"
- layout="row"/>
- </div>
- `,
- components: { VAudioTrack },
- setup() {
- const providerStore = useProviderStore()
- providerStore.$patch(providerStorePatch)
- const audioObj = (audio) => ({ ...commonAttrs(), ...audio })
- return { formatExamples, audioObj }
+ parameters: {
+ viewport: {
+ defaultViewport: "sm",
+ },
},
-})
+}
-<Canvas>
- <Story name="Multiple">{Multiple.bind({})}</Story>
-</Canvas>
+export const Multiple_ = {
+ render: Multiple.bind({}),
+ name: "Multiple",
+}
diff --git a/frontend/src/components/VAudioTrack/meta/VWaveform.stories.js b/frontend/src/components/VAudioTrack/meta/VWaveform.stories.js
new file mode 100644
index 000000000..146fb6f3e
--- /dev/null
+++ b/frontend/src/components/VAudioTrack/meta/VWaveform.stories.js
@@ -0,0 +1,86 @@
+import { audioFeatures } from "~/constants/audio"
+
+import VWaveform from "~/components/VAudioTrack/VWaveform.vue"
+
+const Template = (args) => ({
+ template: `<VWaveform class="w-full h-30" audio-id="123" :is-tabbable="true" v-bind="args" v-on="args"/>`,
+ components: { VWaveform },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/Audio track/Waveform",
+ components: VWaveform,
+
+ argTypes: {
+ seeked: {
+ action: "seeked",
+ },
+ },
+}
+
+const timeArgs = { currentTime: 2, duration: 10 }
+const timeArgsWithFeatures = { ...timeArgs, features: audioFeatures }
+const timeArgsWithFeaturesAndPeaks = {
+ ...timeArgsWithFeatures,
+ peaks: [0.5, 1, 0.5, 0, 0.5],
+}
+
+export const Upsampling = {
+ render: Template.bind({}),
+ name: "Upsampling",
+
+ // triangular wave with 9 points
+ args: {
+ ...timeArgsWithFeatures,
+ peaks: [0.5, 1, 0.5, 0, 0.5, 1, 0.5, 0, 0.5],
+ },
+}
+
+const sineWaveWith1000Points = Array.from(
+ { length: 1000 },
+ (_, k) => 0.5 * Math.sin((k * 2 * Math.PI) / 500) + 0.5
+)
+
+export const Downsampling = {
+ render: Template.bind({}),
+ name: "Downsampling",
+
+ args: {
+ peaks: sineWaveWith1000Points,
+ ...timeArgsWithFeatures,
+ },
+}
+
+export const Background = {
+ render: Template.bind({}),
+ name: "Background",
+
+ args: {
+ ...timeArgsWithFeaturesAndPeaks,
+ style: {
+ "--waveform-background-color": "#d7fcd4",
+ },
+ },
+}
+
+export const WithBlankSpace = {
+ render: Template.bind({}),
+ name: "With blank space",
+
+ args: {
+ ...timeArgsWithFeaturesAndPeaks,
+ usableFrac: 0.5,
+ },
+}
+
+export const Message = {
+ render: Template.bind({}),
+ name: "Message",
+
+ args: {
+ message: "Hello, World!",
+ },
+}
diff --git a/frontend/src/components/VAudioTrack/meta/VWaveform.stories.mdx b/frontend/src/components/VAudioTrack/meta/VWaveform.stories.mdx
deleted file mode 100644
index 31569e5da..000000000
--- a/frontend/src/components/VAudioTrack/meta/VWaveform.stories.mdx
+++ /dev/null
@@ -1,170 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VWaveform from "~/components/VAudioTrack/VWaveform.vue"
-
-<Meta
- title="Components/Audio track/Waveform"
- components={VWaveform}
- argTypes={{
- seeked: {
- action: "seeked",
- },
- }}
- args={{
- audioId: "audioId",
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VWaveform class="w-full h-30" v-bind="args" v-on="args"/>`,
- components: { VWaveform },
- setup() {
- return { args }
- },
-})
-
-# Waveform
-
-<Description of={VWaveform} />
-
-<ArgsTable of={VWaveform} />
-
-## Sampling
-
-The waveform can automatically upsample and downsample the peaks data to the
-required number of points, calculated using a combination of `barWidth` and
-`barGap` values.
-
-### Upsampling
-
-Here 9 points are upsampled to as many as required to fill the viewport.
-
-<Canvas>
- <Story
- name="Upsampling"
- args={{
- peaks: [0.5, 1, 0.5, 0, 0.5, 1, 0.5, 0, 0.5], // triangular wave with 9 points
- currentTime: 2,
- duration: 10,
- features: ["timestamps", "duration", "seek"],
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-### Downsampling
-
-Here 1000 points are downsampled to as many as required to fill the viewport.
-
-<Canvas>
- <Story
- name="Downsampling"
- args={{
- peaks: Array.from(
- { length: 1000 },
- (_, k) => 0.5 * Math.sin((k * 2 * Math.PI) / 500) + 0.5
- ), // sine wave with 1000 points
- currentTime: 2,
- duration: 10,
- features: ["timestamps", "duration", "seek"],
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Background
-
-The background color for the waveform can be changed as required. To do so, set
-the `--waveform-background-color` CSS custom property on the component or on the
-`.waveform` class.
-
-<Canvas>
- <Story
- name="Background"
- args={{
- peaks: [0.5, 1, 0.5, 0, 0.5],
- currentTime: 2,
- duration: 10,
- features: ["timestamps", "duration", "seek"],
- style: { "--waveform-background-color": "#d7fcd4" },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Sizing
-
-The waveform always takes the height and width of its container.
-
-- **Height:** the bars will elongate proportionally to scale vertically
-- **Width:** the number of samples will be adjusted to scale horizontally
-
-Thus, the `barWidth` and `barGap` will be maintained even in the case of
-horizontal scaling.
-
-## Usable area
-
-To leave some blank space at the top, for overlaying your own stuff, you can
-pass a number less than 1 as the `usableFrac` prop. Note that the usable area
-contains both the bars and the timestamps so the actual bar height is less than
-`usableFrac`.
-
-<Canvas>
- <Story
- name="With blank space"
- args={{
- peaks: [0.5, 1, 0.5, 0, 0.5],
- currentTime: 2,
- duration: 10,
- features: ["timestamps", "duration", "seek"],
- usableFrac: 0.5,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Features
-
-Certain features in the waveform can be enabled or disabled, as required, to
-meet the design requirements and space/information density constraints. The
-`features` prop allows you to enable only the needed features.
-
-<Canvas>
- <Story
- name="Selective features"
- args={{
- peaks: [0.5, 1, 0.5, 0, 0.5],
- currentTime: 2,
- duration: 10,
- features: ["timestamps", "duration", "seek"],
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Message state
-
-The waveform bars are set to zero height when the `message` prop is passed. They
-will animate up to their actual height when the prop is unset.
-
-<Canvas>
- <Story
- name="Message"
- args={{
- message: "Hello, World!",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VBanner/meta/VNotificationBanner.stories.js b/frontend/src/components/VBanner/meta/VNotificationBanner.stories.js
new file mode 100644
index 000000000..b051d3017
--- /dev/null
+++ b/frontend/src/components/VBanner/meta/VNotificationBanner.stories.js
@@ -0,0 +1,42 @@
+import VNotificationBanner from "~/components/VBanner/VNotificationBanner.vue"
+
+const Template = (args) => ({
+ template: `<VNotificationBanner id="banner" v-bind="args" v-on="args">{{ args.text }}</VNotificationBanner>`,
+ components: { VNotificationBanner },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VNotificationBanner",
+ component: VNotificationBanner,
+
+ argTypes: {
+ close: {
+ action: "close",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec justo eget felis facilisis fermentum.",
+ nature: "success",
+ variant: "regular",
+ },
+}
+
+export const Dark = {
+ render: Template.bind({}),
+ name: "Dark",
+
+ args: {
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec justo eget felis facilisis fermentum.",
+ nature: "info",
+ variant: "dark",
+ },
+}
diff --git a/frontend/src/components/VBanner/meta/VNotificationBanner.stories.mdx b/frontend/src/components/VBanner/meta/VNotificationBanner.stories.mdx
deleted file mode 100644
index bc9452f75..000000000
--- a/frontend/src/components/VBanner/meta/VNotificationBanner.stories.mdx
+++ /dev/null
@@ -1,61 +0,0 @@
-import {
- ArgsTable,
- Description,
- Canvas,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VNotificationBanner from "~/components/VBanner/VNotificationBanner.vue"
-
-<Meta
- title="Components/VNotificationBanner"
- component={VNotificationBanner}
- argTypes={{
- close: {
- action: "close",
- },
- }}
- args={{
- id: "banner",
- text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec justo eget felis facilisis fermentum.",
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VNotificationBanner v-bind="args" v-on="args">{{ args.text }}</VNotificationBanner>`,
- components: { VNotificationBanner },
- setup() {
- return { args }
- },
-})
-
-# VBanner
-
-<Description of={VNotificationBanner} />
-
-<ArgsTable of={VNotificationBanner} />
-
-<Canvas>
- <Story
- name="Default"
- args={{
- nature: "success",
- variant: "regular",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-<Canvas>
- <Story
- name="Dark"
- args={{
- nature: "info",
- variant: "dark",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VBrand/meta/VBrand.stories.js b/frontend/src/components/VBrand/meta/VBrand.stories.js
new file mode 100644
index 000000000..d25922a01
--- /dev/null
+++ b/frontend/src/components/VBrand/meta/VBrand.stories.js
@@ -0,0 +1,28 @@
+import VBrand from "~/components/VBrand/VBrand.vue"
+
+const Template = (args) => ({
+ template: `<VBrand v-bind="args"/>`,
+ components: { VBrand },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VBrand",
+ component: VBrand,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
+
+export const Resized = {
+ render: Template.bind({}),
+ name: "Resized",
+
+ args: {
+ class: "text-6xl",
+ },
+}
diff --git a/frontend/src/components/VBrand/meta/VBrand.stories.mdx b/frontend/src/components/VBrand/meta/VBrand.stories.mdx
deleted file mode 100644
index 36bccbfdc..000000000
--- a/frontend/src/components/VBrand/meta/VBrand.stories.mdx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Description, Canvas, Meta, Story } from "@storybook/addon-docs"
-
-import VBrand from "~/components/VBrand/VBrand.vue"
-
-<Meta title="Components/VBrand" component={VBrand} />
-
-export const Template = (args) => ({
- template: `<VBrand v-bind="args"/>`,
- components: { VBrand },
- setup() {
- return { args }
- },
-})
-
-# VBrand
-
-<Description of={VBrand} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
-
-## Resizing
-
-The component always renders at a height of `1em`. This means that it will take
-up the text-size as specified by its parent. This can be achieved using `text-*`
-utilities, including JIT values like `text-[18px]`.
-
-<Canvas>
- <Story
- name="Resized"
- args={{
- class: "text-6xl",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VCheckbox/meta/VCheckbox.stories.js b/frontend/src/components/VCheckbox/meta/VCheckbox.stories.js
new file mode 100644
index 000000000..e430fa4d3
--- /dev/null
+++ b/frontend/src/components/VCheckbox/meta/VCheckbox.stories.js
@@ -0,0 +1,86 @@
+import { WithScreenshotArea } from "~~/.storybook/decorators/with-screenshot-area"
+
+import VCheckbox from "~/components/VCheckbox/VCheckbox.vue"
+import VLicense from "~/components/VLicense/VLicense.vue"
+
+const checkboxArgTypes = {
+ id: { control: { type: "text" } },
+ checked: { control: { type: "boolean" } },
+ name: { control: { type: "text" } },
+ value: { control: { type: "text" } },
+ disabled: { control: { type: "boolean" } },
+}
+
+const Template = (args) => ({
+ template: `<VCheckbox v-bind="args" v-on="args" class="mb-4">Code is Poetry</VCheckbox>`,
+ components: { VCheckbox },
+ setup() {
+ return { args }
+ },
+})
+
+const LicenseCheckboxTemplate = (args) => ({
+ template: `<fieldset>
+<legend>License</legend>
+<VCheckbox v-bind="args" v-on="args" class="mb-4">
+<VLicense license="by-nc" class="me-4"/>
+</VCheckbox>
+</fieldset>`,
+ components: { VCheckbox, VLicense },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VCheckbox",
+ components: VCheckbox,
+ decorators: [WithScreenshotArea],
+
+ argTypes: {
+ change: {
+ action: "change",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ id: "default",
+ name: "storybook",
+ value: "codeIsPoetry",
+ },
+
+ argTypes: checkboxArgTypes,
+}
+
+export const Switch = {
+ render: Template.bind({}),
+ name: "Switch",
+
+ args: {
+ id: "default",
+ name: "storybook",
+ value: "codeIsPoetry",
+ isSwitch: true,
+ },
+
+ argTypes: checkboxArgTypes,
+}
+
+export const LicenseCheckbox = {
+ render: LicenseCheckboxTemplate.bind({}),
+ name: "License Checkbox",
+
+ args: {
+ id: "cc-by",
+ name: "license",
+ value: "cc-by",
+ checked: true,
+ },
+
+ argTypes: checkboxArgTypes,
+}
diff --git a/frontend/src/components/VCheckbox/meta/VCheckbox.stories.mdx b/frontend/src/components/VCheckbox/meta/VCheckbox.stories.mdx
deleted file mode 100644
index dadb37c35..000000000
--- a/frontend/src/components/VCheckbox/meta/VCheckbox.stories.mdx
+++ /dev/null
@@ -1,115 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import { WithScreenshotArea } from "~~/.storybook/decorators/with-screenshot-area"
-
-import VCheckbox from "~/components/VCheckbox/VCheckbox.vue"
-import VLicense from "~/components/VLicense/VLicense.vue"
-
-<Meta
- title="Components/VCheckbox"
- components={VCheckbox}
- decorators={[WithScreenshotArea]}
- argTypes={{
- change: {
- action: "change",
- },
- }}
-/>
-
-export const checkboxArgTypes = {
- id: { control: { type: "text" } },
- checked: { control: { type: "boolean" } },
- name: { control: { type: "text" } },
- value: { control: { type: "text" } },
- disabled: { control: { type: "boolean" } },
-}
-
-export const Template = (args) => ({
- template: `<VCheckbox v-bind="args" v-on="args" class="mb-4">Code is Poetry</VCheckbox>`,
- components: { VCheckbox },
- setup() {
- return { args }
- },
-})
-
-# VCheckbox
-
-<Description of={VCheckbox} />
-
-<ArgsTable of={VCheckbox} />
-
-## Default checkbox
-
-<Canvas>
- <Story
- name="Default"
- args={{
- id: "default",
- name: "storybook",
- value: "codeIsPoetry",
- }}
- argTypes={checkboxArgTypes}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Switch
-
-The checkbox can alternatively be rendered as a switch, when the choice is
-between an on/off decision.
-
-<Canvas>
- <Story
- name="Switch"
- args={{
- id: "default",
- name: "storybook",
- value: "codeIsPoetry",
- isSwitch: true,
- }}
- argTypes={checkboxArgTypes}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-export const LicenseCheckboxTemplate = (args) => ({
- template: `<fieldset>
-<legend>License</legend>
-<VCheckbox v-bind="args" v-on="args" class="mb-4">
-<VLicense license="by-nc" class="me-4"/>
-</VCheckbox>
-</fieldset>`,
- components: { VCheckbox, VLicense },
- setup() {
- return { args }
- },
-})
-
-## License Checkbox
-
-The checkbox label can be a string or another component. Here, we use a VLicense
-component, and set `checked` prop to `true` to set the checkbox as checked on
-render.
-
-<Canvas>
- <Story
- name="License Checkbox"
- args={{
- id: "cc-by",
- name: "license",
- value: "cc-by",
- checked: true,
- }}
- argTypes={checkboxArgTypes}
- >
- {LicenseCheckboxTemplate.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VCollectionHeader/meta/VCollectionHeader.stories.mdx b/frontend/src/components/VCollectionHeader/meta/VCollectionHeader.stories.js
similarity index 80%
rename from frontend/src/components/VCollectionHeader/meta/VCollectionHeader.stories.mdx
rename to frontend/src/components/VCollectionHeader/meta/VCollectionHeader.stories.js
index eacffcff0..e994212f2 100644
--- a/frontend/src/components/VCollectionHeader/meta/VCollectionHeader.stories.mdx
+++ b/frontend/src/components/VCollectionHeader/meta/VCollectionHeader.stories.js
@@ -1,18 +1,9 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
import { useMediaStore } from "~/stores/media"
import { useProviderStore } from "~/stores/provider"
import VCollectionHeader from "~/components/VCollectionHeader/VCollectionHeader.vue"
-<Meta title="Components/VCollectionHeader" component={VCollectionHeader} />
-
-export const imageProviders = [
+const imageProviders = [
{
source_name: "smithsonian_african_american_history_museum",
display_name:
@@ -37,13 +28,13 @@ export const imageProviders = [
},
]
-export const imageProviderNames = [
+const imageProviderNames = [
"smithsonian_african_american_history_museum",
"flickr",
"met",
]
-export const AllCollectionsTemplate = (args) => ({
+const AllCollectionsTemplate = (args) => ({
template: `
<div class="wrapper w-full p-3 flex flex-col gap-4 bg-dark-charcoal-06">
<VCollectionHeader v-for="collection in args.collections" :key="collection.collectionName" v-bind="collection" class="bg-white"/>
@@ -63,7 +54,7 @@ export const AllCollectionsTemplate = (args) => ({
},
})
-export const collections = [
+const collections = [
{
collectionName: "tag",
collectionParams: {
@@ -100,14 +91,16 @@ export const collections = [
},
]
-# VCollectionHeader
-
-<Description of={VCollectionHeader} />
+export default {
+ title: "Components/VCollectionHeader",
+ component: VCollectionHeader,
+}
-<ArgsTable of={VCollectionHeader} />
+export const AllCollections = {
+ render: AllCollectionsTemplate.bind({}),
+ name: "All collections",
-<Canvas>
- <Story name="All collections" args={{ collections }}>
- {AllCollectionsTemplate.bind({})}
- </Story>
-</Canvas>
+ args: {
+ collections,
+ },
+}
diff --git a/frontend/src/components/VContentLink/meta/VContentLink.stories.js b/frontend/src/components/VContentLink/meta/VContentLink.stories.js
new file mode 100644
index 000000000..5bed1749f
--- /dev/null
+++ b/frontend/src/components/VContentLink/meta/VContentLink.stories.js
@@ -0,0 +1,99 @@
+import VContentLink from "~/components/VContentLink/VContentLink.vue"
+
+const contentLinkArgTypes = {
+ mediaType: { options: ["audio", "image"], control: { type: "radio" } },
+ searchTerm: { control: { type: "string" } },
+ resultsCount: { control: { type: "number" } },
+ isSelected: { control: { type: "boolean" } },
+ layout: { options: ["stacked", "horizontal"], control: { type: "radio" } },
+}
+
+const VContentLinkStory = (args) => ({
+ template: `<VContentLink v-bind="args" />`,
+ components: { VContentLink },
+ setup() {
+ return { args }
+ },
+})
+
+const VContentLinkHorizontalStory = (args) => ({
+ template: `<div class="max-w-md"><VContentLink v-bind="args" /></div>`,
+ components: { VContentLink },
+ setup() {
+ return { args }
+ },
+})
+
+const TwoVContentLinkStory = () => ({
+ template: `
+ <div class="grid grid-cols-2 gap-4">
+ <VContentLink
+ v-for="(type, key) in types"
+ :key="key"
+ :media-type="type.mediaType"
+ :results-count="type.resultsCount"
+ search-term="cat"
+ />
+ </div>
+ `,
+ components: { VContentLink },
+ data() {
+ return {
+ types: [
+ { mediaType: "image", resultsCount: 4321 },
+ { mediaType: "audio", resultsCount: 1234 },
+ ],
+ }
+ },
+ methods: {
+ onSelected(mediaType) {
+ this.selected = mediaType
+ },
+ },
+})
+
+export default {
+ title: "Components/VContentLink",
+ components: VContentLink,
+ argTypes: contentLinkArgTypes,
+}
+
+export const Default = {
+ render: VContentLinkStory.bind({}),
+ name: "Default",
+
+ args: {
+ mediaType: "image",
+ searchTerm: "cat",
+ resultsCount: 5708,
+ isSelected: false,
+ },
+
+ argTypes: contentLinkArgTypes,
+}
+
+export const Horizontal = {
+ render: VContentLinkHorizontalStory.bind({}),
+ name: "Horizontal",
+
+ args: {
+ mediaType: "audio",
+ searchTerm: "cat",
+ resultsCount: 4561,
+ isSelected: false,
+ layout: "horizontal",
+ },
+
+ argTypes: contentLinkArgTypes,
+}
+
+export const Mobile = {
+ render: TwoVContentLinkStory.bind({}),
+ name: "Mobile",
+
+ parameters: {
+ viewport: {
+ defaultViewport: "xs",
+ },
+ },
+}
diff --git a/frontend/src/components/VContentLink/meta/VContentLink.stories.mdx b/frontend/src/components/VContentLink/meta/VContentLink.stories.mdx
deleted file mode 100644
index a4eb9c512..000000000
--- a/frontend/src/components/VContentLink/meta/VContentLink.stories.mdx
+++ /dev/null
@@ -1,121 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VContentLink from "~/components/VContentLink/VContentLink.vue"
-
-export const contentLinkArgTypes = {
- mediaType: { options: ["audio", "image"], control: { type: "radio" } },
- searchTerm: { control: { type: "string" } },
- resultsCount: { control: { type: "number" } },
- isSelected: { control: { type: "boolean" } },
- layout: { options: ["stacked", "horizontal"], control: { type: "radio" } },
-}
-
-<Meta
- title="Components/VContentLink"
- components={VContentLink}
- argTypes={contentLinkArgTypes}
- args={{ searchTerm: "cat" }}
-/>
-
-export const VContentLinkStory = (args) => ({
- template: `<VContentLink v-bind="args" />`,
- components: { VContentLink },
- setup() {
- return { args }
- },
-})
-
-export const VContentLinkHorizontalStory = (args) => ({
- template: `<div class="max-w-md"><VContentLink v-bind="args" /></div>`,
- components: { VContentLink },
- setup() {
- return { args }
- },
-})
-
-export const TwoVContentLinkStory = (args) => ({
- template: `
- <div class="grid grid-cols-2 gap-4">
- <VContentLink
- v-for="(type, key) in types"
- :key="key"
- :media-type="type.mediaType"
- :results-count="type.resultsCount"
- search-term="cat"
- />
- </div>
- `,
- components: { VContentLink },
- data() {
- return {
- types: [
- { mediaType: "image", resultsCount: 4321 },
- { mediaType: "audio", resultsCount: 1234 },
- ],
- }
- },
- methods: {
- onSelected(mediaType) {
- this.selected = mediaType
- },
- },
-})
-
-# VContentLink
-
-<Description of={VContentLink} />
-
-<ArgsTable of={VContentLink} />
-
-## Default VContentLink
-
-<Canvas>
- <Story
- name="Default"
- args={{
- mediaType: "image",
- resultsCount: 5708,
- isSelected: false,
- searchTerm: "cat",
- }}
- argTypes={contentLinkArgTypes}
- >
- {VContentLinkStory.bind({})}
- </Story>
-</Canvas>
-
-## Horizontal VContentLink
-
-<Canvas>
- <Story
- name="Horizontal"
- args={{
- mediaType: "audio",
- resultsCount: 4561,
- isSelected: false,
- layout: "horizontal",
- }}
- argTypes={contentLinkArgTypes}
- >
- {VContentLinkHorizontalStory.bind({})}
- </Story>
-</Canvas>
-
-## Mobile VContentLink
-
-<Canvas>
- <Story
- name="Mobile"
- parameters={{
- viewport: { defaultViewport: "xs" },
- }}
- >
- {TwoVContentLinkStory.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VContentReport/meta/VContentReportPopover.stories.js b/frontend/src/components/VContentReport/meta/VContentReportPopover.stories.js
new file mode 100644
index 000000000..c168dbf56
--- /dev/null
+++ b/frontend/src/components/VContentReport/meta/VContentReportPopover.stories.js
@@ -0,0 +1,27 @@
+import VContentReportPopover from "~/components/VContentReport/VContentReportPopover.vue"
+
+const Template = (args) => ({
+ template: `<VContentReportPopover v-bind="args" class="float-right"/>`,
+ components: { VContentReportPopover },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VContentReportPopover",
+ component: VContentReportPopover,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ media: {
+ identifier: "0aff3595-8168-440b-83ff-7a80b65dea42",
+ foreign_landing_url: "https://wordpress.org/openverse/",
+ provider: "provider",
+ },
+ },
+}
diff --git a/frontend/src/components/VContentReport/meta/VContentReportPopover.stories.mdx b/frontend/src/components/VContentReport/meta/VContentReportPopover.stories.mdx
deleted file mode 100644
index 94881af32..000000000
--- a/frontend/src/components/VContentReport/meta/VContentReportPopover.stories.mdx
+++ /dev/null
@@ -1,43 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VContentReportPopover from "~/components/VContentReport/VContentReportPopover.vue"
-
-<Meta
- title="Components/VContentReportPopover"
- component={VContentReportPopover}
-/>
-
-export const Template = (args) => ({
- template: `<VContentReportPopover v-bind="args" class="float-right"/>`,
- components: { VContentReportPopover },
- setup() {
- return { args }
- },
-})
-
-# VContentReportPopover
-
-<Description of={VContentReportPopover} />
-
-<ArgsTable of={VContentReportPopover} />
-
-<Canvas>
- <Story
- name="Default"
- args={{
- media: {
- identifier: "0aff3595-8168-440b-83ff-7a80b65dea42",
- foreign_landing_url: "https://wordpress.org/openverse/",
- provider: "provider",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VContentSwitcher/meta/VSearchTypeButton.stories.mdx b/frontend/src/components/VContentSwitcher/meta/VSearchTypeButton.stories.js
similarity index 62%
rename from frontend/src/components/VContentSwitcher/meta/VSearchTypeButton.stories.mdx
rename to frontend/src/components/VContentSwitcher/meta/VSearchTypeButton.stories.js
index 098b5b9b8..514f6e495 100644
--- a/frontend/src/components/VContentSwitcher/meta/VSearchTypeButton.stories.mdx
+++ b/frontend/src/components/VContentSwitcher/meta/VSearchTypeButton.stories.js
@@ -1,42 +1,10 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VSearchTypeButton from "~/components/VContentSwitcher/VSearchTypeButton.vue"
import { searchTypes } from "~/constants/media"
import useSearchType from "~/composables/use-search-type"
import { useFeatureFlagStore } from "~/stores/feature-flag"
-<Meta
- title="Components/VContentSwitcher/VSearchTypeButton"
- components={VSearchTypeButton}
- argTypes={{
- searchType: {
- options: searchTypes,
- control: "select",
- },
- pressed: {
- control: "boolean",
- },
- showLabel: {
- control: "boolean",
- },
- click: {
- action: "click",
- },
- }}
- args={{
- searchType: "all",
- pressed: false,
- showLabel: false,
- }}
-/>
+import VSearchTypeButton from "~/components/VContentSwitcher/VSearchTypeButton.vue"
-export const Template = (args) => ({
+const Template = (args) => ({
template: `<VSearchTypeButton v-bind="args" v-on="args" />`,
components: { VSearchTypeButton },
setup() {
@@ -53,27 +21,49 @@ export const Template = (args) => ({
},
})
-# VSearchTypeButton
+export default {
+ title: "Components/VContentSwitcher/VSearchTypeButton",
+ components: VSearchTypeButton,
+
+ argTypes: {
+ searchType: {
+ options: searchTypes,
+ control: "select",
+ },
+
+ pressed: {
+ control: "boolean",
+ },
-<Description of={VSearchTypeButton} />
+ showLabel: {
+ control: "boolean",
+ },
-<ArgsTable of={VSearchTypeButton} />
+ click: {
+ action: "click",
+ },
+ },
+
+ args: {
+ searchType: "all",
+ pressed: false,
+ showLabel: false,
+ },
+}
-<Canvas>
- <Story height="480px" name="Default">
- {Template.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ height: "480px",
+ name: "Default",
+}
-<Canvas>
- <Story
- height="480px"
- name="Large pressed with text label"
- args={{
- pressed: true,
- showLabel: true,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+export const LargePressedWithTextLabel = {
+ render: Template.bind({}),
+ height: "480px",
+ name: "Large pressed with text label",
+
+ args: {
+ pressed: true,
+ showLabel: true,
+ },
+}
diff --git a/frontend/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.mdx b/frontend/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.js
similarity index 54%
rename from frontend/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.mdx
rename to frontend/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.js
index bcf96c872..9a7c79518 100644
--- a/frontend/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.mdx
+++ b/frontend/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.js
@@ -1,31 +1,8 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VSearchTypePopover from "~/components/VContentSwitcher/VSearchTypePopover.vue"
import { useFeatureFlagStore } from "~/stores/feature-flag"
-<Meta
- title="Components/VContentSwitcher/VSearchTypePopover"
- components={VSearchTypePopover}
- argTypes={{
- select: {
- action: "select",
- },
- additionalTypes: {
- control: { type: "boolean" },
- },
- }}
- args={{
- additionalTypes: false,
- }}
-/>
+import VSearchTypePopover from "~/components/VContentSwitcher/VSearchTypePopover.vue"
-export const Template = (args) => ({
+const Template = (args) => ({
template: `<VSearchTypePopover active-item="image" v-bind="args" v-on="args"/>`,
components: { VSearchTypePopover },
setup() {
@@ -38,14 +15,29 @@ export const Template = (args) => ({
},
})
-# VSearchTypePopover
+export default {
+ title: "Components/VContentSwitcher/VSearchTypePopover",
+ components: VSearchTypePopover,
-<Description of={VSearchTypePopover} />
+ argTypes: {
+ select: {
+ action: "select",
+ },
-<ArgsTable of={VSearchTypePopover} />
+ additionalTypes: {
+ control: {
+ type: "boolean",
+ },
+ },
+ },
+
+ args: {
+ additionalTypes: false,
+ },
+}
-<Canvas>
- <Story height="480px" name="Default">
- {Template.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ height: "480px",
+ name: "Default",
+}
diff --git a/frontend/src/components/VContentSwitcher/meta/VSearchTypes.stories.mdx b/frontend/src/components/VContentSwitcher/meta/VSearchTypes.stories.js
similarity index 53%
rename from frontend/src/components/VContentSwitcher/meta/VSearchTypes.stories.mdx
rename to frontend/src/components/VContentSwitcher/meta/VSearchTypes.stories.js
index 080bb6a2e..06576be50 100644
--- a/frontend/src/components/VContentSwitcher/meta/VSearchTypes.stories.mdx
+++ b/frontend/src/components/VContentSwitcher/meta/VSearchTypes.stories.js
@@ -1,37 +1,8 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VSearchTypes from "~/components/VContentSwitcher/VSearchTypes.vue"
import { useFeatureFlagStore } from "~/stores/feature-flag"
-<Meta
- title="Components/VContentSwitcher/VSearchTypes"
- components={VSearchTypes}
- argTypes={{
- size: {
- options: ["small", "medium"],
- control: { type: "select" },
- },
- useLinks: {
- control: { type: "boolean" },
- },
- additionalTypes: {
- control: { type: "boolean" },
- },
- }}
- args={{
- size: "medium",
- useLinks: false,
- additionalTypes: false,
- }}
-/>
+import VSearchTypes from "~/components/VContentSwitcher/VSearchTypes.vue"
-export const Template = (args) => ({
+const Template = (args) => ({
template: `<VSearchTypes v-bind="args" v-on="args"/>`,
components: { VSearchTypes },
setup() {
@@ -44,14 +15,41 @@ export const Template = (args) => ({
},
})
-# VSearchTypes
+export default {
+ title: "Components/VContentSwitcher/VSearchTypes",
+ components: VSearchTypes,
+
+ argTypes: {
+ size: {
+ options: ["small", "medium"],
+
+ control: {
+ type: "select",
+ },
+ },
+
+ useLinks: {
+ control: {
+ type: "boolean",
+ },
+ },
-<Description of={VSearchTypes} />
+ additionalTypes: {
+ control: {
+ type: "boolean",
+ },
+ },
+ },
-<ArgsTable of={VSearchTypes} />
+ args: {
+ size: "medium",
+ useLinks: false,
+ additionalTypes: false,
+ },
+}
-<Canvas>
- <Story height="480px" name="Default">
- {Template.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ height: "480px",
+ name: "Default",
+}
diff --git a/frontend/src/components/VErrorSection/meta/VErrorSection.stories.js b/frontend/src/components/VErrorSection/meta/VErrorSection.stories.js
new file mode 100644
index 000000000..ae310d14f
--- /dev/null
+++ b/frontend/src/components/VErrorSection/meta/VErrorSection.stories.js
@@ -0,0 +1,59 @@
+import { ECONNABORTED, ERR_UNKNOWN, NO_RESULT } from "~/constants/errors"
+
+import VErrorSection from "~/components/VErrorSection/VErrorSection.vue"
+
+const ErrorPageTemplate = (args) => ({
+ template: `<VErrorSection v-bind="args" />`,
+ components: { VErrorSection },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VErrorSection",
+ component: VErrorSection,
+}
+
+export const NoResult = {
+ render: ErrorPageTemplate.bind({}),
+ name: "No result",
+
+ args: {
+ fetchingError: {
+ code: NO_RESULT,
+ requestKind: "search",
+ searchType: "image",
+
+ details: {
+ searchTerm: "sad person",
+ },
+ },
+ },
+}
+
+export const ServerTimeout = {
+ render: ErrorPageTemplate.bind({}),
+ name: "Server timeout",
+
+ args: {
+ fetchingError: {
+ code: ECONNABORTED,
+ requestKind: "search",
+ searchType: "image",
+ },
+ },
+}
+
+export const UnknownError = {
+ render: ErrorPageTemplate.bind({}),
+ name: "Unknown error",
+
+ args: {
+ fetchingError: {
+ code: ERR_UNKNOWN,
+ requestKind: "search",
+ searchType: "image",
+ },
+ },
+}
diff --git a/frontend/src/components/VErrorSection/meta/VErrorSection.stories.mdx b/frontend/src/components/VErrorSection/meta/VErrorSection.stories.mdx
deleted file mode 100644
index ce5572b0b..000000000
--- a/frontend/src/components/VErrorSection/meta/VErrorSection.stories.mdx
+++ /dev/null
@@ -1,85 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VErrorSection from "~/components/VErrorSection/VErrorSection.vue"
-
-import { ECONNABORTED, ERR_UNKNOWN, NO_RESULT } from "~/constants/errors"
-
-<Meta title="Components/VErrorSection" component={VErrorSection} />
-
-# VErrorSection
-
-<Description of={VErrorSection} />
-
-<ArgsTable of={VErrorSection} />
-
-## No results
-
-This section appears when a search returns no hits.
-
-export const ErrorPageTemplate = (args) => ({
- template: `<VErrorSection v-bind="args" />`,
- components: { VErrorSection },
- setup() {
- return { args }
- },
-})
-
-<Canvas>
- <Story
- name="No result"
- args={{
- fetchingError: {
- code: NO_RESULT,
- requestKind: "search",
- searchType: "image",
- details: { searchTerm: "sad person" },
- },
- }}
- >
- {ErrorPageTemplate.bind({})}
- </Story>
-</Canvas>
-
-## Server timeout
-
-This result appears when an API request times out.
-
-<Canvas>
- <Story
- name="Server timeout"
- args={{
- fetchingError: {
- code: ECONNABORTED,
- requestKind: "search",
- searchType: "image",
- },
- }}
- >
- {ErrorPageTemplate.bind({})}
- </Story>
-</Canvas>
-
-## Unknown error
-
-This page is shown when there is some other error.
-
-<Canvas>
- <Story
- name="Unknown error"
- args={{
- fetchingError: {
- code: ERR_UNKNOWN,
- requestKind: "search",
- searchType: "image",
- },
- }}
- >
- {ErrorPageTemplate.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VExternalSearch/meta/VExternalSourceList.stories.js b/frontend/src/components/VExternalSearch/meta/VExternalSourceList.stories.js
new file mode 100644
index 000000000..c1125254f
--- /dev/null
+++ b/frontend/src/components/VExternalSearch/meta/VExternalSourceList.stories.js
@@ -0,0 +1,47 @@
+import { useFeatureFlagStore } from "~/stores/feature-flag"
+import { useSearchStore } from "~/stores/search"
+
+import VExternalSourceList from "~/components/VExternalSearch/VExternalSourceList.vue"
+
+const Template = (args) => ({
+ template: `<VExternalSourceList search-term="cat" />`,
+ components: { VExternalSourceList },
+ setup() {
+ const featureFlagStore = useFeatureFlagStore()
+ featureFlagStore.toggleFeature("additional_search_types", "on")
+ const searchStore = useSearchStore()
+ searchStore.setSearchType(args.type)
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VExternalSourceList",
+ component: VExternalSourceList,
+}
+
+export const Images = {
+ render: Template.bind({}),
+ name: "Images",
+ args: { type: "image" },
+}
+
+export const Audio = {
+ render: Template.bind({}),
+ name: "Audio",
+ args: { type: "audio" },
+}
+
+export const Video = {
+ render: Template.bind({}),
+ name: "Video",
+
+ args: { type: "video" },
+}
+
+export const Model_3D = {
+ render: Template.bind({}),
+ name: "3D models",
+
+ args: { type: "model-3d" },
+}
diff --git a/frontend/src/components/VExternalSearch/meta/VExternalSourceList.stories.mdx b/frontend/src/components/VExternalSearch/meta/VExternalSourceList.stories.mdx
deleted file mode 100644
index 77a38bf0a..000000000
--- a/frontend/src/components/VExternalSearch/meta/VExternalSourceList.stories.mdx
+++ /dev/null
@@ -1,62 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import { useFeatureFlagStore } from "~/stores/feature-flag"
-import { useSearchStore } from "~/stores/search"
-
-import VExternalSourceList from "~/components/VExternalSearch/VExternalSourceList.vue"
-
-<Meta
- title="Components/VExternalSourceList"
- component={VExternalSourceList}
- args={{
- searchTerm: "cat",
- "search-term": "cat",
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VExternalSourceList v-bind="args"/>`,
- components: { VExternalSourceList },
- setup() {
- const featureFlagStore = useFeatureFlagStore()
- featureFlagStore.toggleFeature("additional_search_types", "on")
- const searchStore = useSearchStore()
- searchStore.setSearchType(args.searchType)
- return { args }
- },
-})
-
-# VExternalSourceList
-
-<Description of={VExternalSourceList} />
-
-<ArgsTable of={VExternalSourceList} />
-
-## Images
-
-<Canvas>
- <Story name="Images">{Template.bind({})}</Story>
-</Canvas>
-
-## Audio
-
-<Canvas>
- <Story name="Audio">{Template.bind({})}</Story>
-</Canvas>
-
-## Video
-
-<Canvas>
- <Story name="Video">{Template.bind({})}</Story>
-</Canvas>
-
-## 3D models
-
-<Canvas>
- <Story name="3D models">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VFilters/meta/VLicenseExplanation.stories.js b/frontend/src/components/VFilters/meta/VLicenseExplanation.stories.js
new file mode 100644
index 000000000..eb08454d6
--- /dev/null
+++ b/frontend/src/components/VFilters/meta/VLicenseExplanation.stories.js
@@ -0,0 +1,31 @@
+import { ALL_LICENSES } from "~/constants/license"
+
+import VLicenseExplanation from "~/components/VFilters/VLicenseExplanation.vue"
+
+const Template = (args) => ({
+ template: `<VLicenseExplanation :license="args.license" v-bind="args" v-on="args"/>`,
+ components: { VLicenseExplanation },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VLicenseExplanation",
+ components: VLicenseExplanation,
+
+ argTypes: {
+ license: {
+ options: ALL_LICENSES,
+ control: "select",
+ },
+ },
+ args: {
+ license: ALL_LICENSES[0],
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VFilters/meta/VLicenseExplanation.stories.mdx b/frontend/src/components/VFilters/meta/VLicenseExplanation.stories.mdx
deleted file mode 100644
index 67aa92da4..000000000
--- a/frontend/src/components/VFilters/meta/VLicenseExplanation.stories.mdx
+++ /dev/null
@@ -1,43 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VLicenseExplanation from "~/components/VFilters/VLicenseExplanation.vue"
-
-import { ALL_LICENSES } from "~/constants/license"
-
-<Meta
- title="Components/VLicenseExplanation"
- components={VLicenseExplanation}
- argTypes={{
- license: {
- options: ALL_LICENSES,
- control: "select",
- },
- }}
- args={{
- license: ALL_LICENSES[0],
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VLicenseExplanation v-bind="args" v-on="args"/>`,
- components: { VLicenseExplanation },
- setup() {
- return { args }
- },
-})
-
-# VLicenseExplanation
-
-<Description of={VLicenseExplanation} />
-
-<ArgsTable of={VLicenseExplanation} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VFooter/meta/VFooter.stories.js b/frontend/src/components/VFooter/meta/VFooter.stories.js
new file mode 100644
index 000000000..11c976392
--- /dev/null
+++ b/frontend/src/components/VFooter/meta/VFooter.stories.js
@@ -0,0 +1,36 @@
+import VFooter from "~/components/VFooter/VFooter.vue"
+
+const Template = (args) => ({
+ template: '<VFooter v-bind="args" />',
+ components: { VFooter },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VFooter",
+ component: VFooter,
+ parameters: {
+ layout: "fullscreen",
+ },
+ height: "200px",
+}
+
+export const Content = {
+ render: Template.bind({}),
+ name: "Content",
+
+ args: {
+ mode: "content",
+ },
+}
+
+export const Internal = {
+ render: Template.bind({}),
+ name: "Internal",
+
+ args: {
+ mode: "internal",
+ },
+}
diff --git a/frontend/src/components/VFooter/meta/VFooter.stories.mdx b/frontend/src/components/VFooter/meta/VFooter.stories.mdx
deleted file mode 100644
index 963c73143..000000000
--- a/frontend/src/components/VFooter/meta/VFooter.stories.mdx
+++ /dev/null
@@ -1,57 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VFooter from "~/components/VFooter/VFooter.vue"
-
-<Meta title="Components/VFooter" component={VFooter} />
-
-export const Template = (args) => ({
- template: '<VFooter v-bind="args" />',
- components: { VFooter },
- setup() {
- return { args }
- },
-})
-
-# VFooter
-
-<Description of={VFooter} />
-
-<ArgsTable of={VFooter} />
-
-## Content footer
-
-This version of the footer is to be used in results and single content details.
-It contains links to internal pages.
-
-<Canvas>
- <Story
- name="Content"
- height="200px"
- parameters={{ layout: "fullscreen" }}
- args={{ mode: "content" }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Internal footer
-
-This version of the footer is to be used in content pages when the links to
-internal pages move to the header instead.
-
-<Canvas>
- <Story
- name="Internal"
- height="200px"
- parameters={{ layout: "fullscreen" }}
- args={{ mode: "internal" }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/VHeaderMobile/meta/VFilterTab.stories.mdx b/frontend/src/components/VHeader/VHeaderMobile/meta/VFilterTab.stories.js
similarity index 61%
rename from frontend/src/components/VHeader/VHeaderMobile/meta/VFilterTab.stories.mdx
rename to frontend/src/components/VHeader/VHeaderMobile/meta/VFilterTab.stories.js
index 09f45a077..a253dce8d 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/meta/VFilterTab.stories.mdx
+++ b/frontend/src/components/VHeader/VHeaderMobile/meta/VFilterTab.stories.js
@@ -1,28 +1,8 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
import VFilterTab from "~/components/VHeader/VHeaderMobile/VFilterTab.vue"
import VTab from "~/components/VTabs/VTab.vue"
import VTabs from "~/components/VTabs/VTabs.vue"
-<Meta
- title="Components/VHeader/VHeaderMobile/VFilterTab"
- component={VFilterTab}
- argTypes={{
- appliedFilterCount: {
- type: "number",
- },
- isSelected: {
- type: "boolean",
- },
- }}
-/>
-
-export const Template = (args, { argTypes }) => ({
+const Template = (args, { argTypes }) => ({
template: `
<div class="p-2">
<VTabs label="tabs"
@@ -44,15 +24,22 @@ export const Template = (args, { argTypes }) => ({
},
})
-# Filter tab
-
-<Description of={VFilterTab} />
+export default {
+ title: "Components/VHeader/VHeaderMobile/VFilterTab",
+ component: VFilterTab,
-<ArgsTable of={VFilterTab} />
+ argTypes: {
+ appliedFilterCount: {
+ type: "number",
+ },
-The tab button on the mobile modal that opens the filters tab. It shows how many
-filters are applied, or a filters icon.
+ isSelected: {
+ type: "boolean",
+ },
+ },
+}
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/VSearchBar/meta/VSearchBar.stories.js b/frontend/src/components/VHeader/VSearchBar/meta/VSearchBar.stories.js
new file mode 100644
index 000000000..b3289cc85
--- /dev/null
+++ b/frontend/src/components/VHeader/VSearchBar/meta/VSearchBar.stories.js
@@ -0,0 +1,74 @@
+import VSearchBar from "~/components/VHeader/VSearchBar/VSearchBar.vue"
+
+const Template = (args) => ({
+ template: `
+ <VSearchBar v-bind="args" v-on="args">
+ <span class="info text-xs font-semibold text-dark-charcoal-70 mx-4 whitespace-nowrap group-hover:text-dark-charcoal group-focus:text-dark-charcoal">
+ 12,345 results
+ </span>
+ </VSearchBar>`,
+ components: { VSearchBar },
+ setup() {
+ return { args }
+ },
+})
+
+const vModelTemplate = (args) => ({
+ template: `
+ <div>
+ <VSearchBar v-model="text" v-on="args">
+ <span class="info text-xs font-semibold text-dark-charcoal-70 mx-4 whitespace-nowrap group-hover:text-dark-charcoal group-focus:text-dark-charcoal">
+ {{ text.length }} chars
+ </span>
+ </VSearchBar>
+ {{ text }}
+ </div>
+ `,
+ components: { VSearchBar },
+ data() {
+ return {
+ text: "Hello, World!",
+ }
+ },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHeader/Search bar",
+ component: VSearchBar,
+
+ argTypes: {
+ input: {
+ action: "input",
+ },
+
+ submit: {
+ action: "submit",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ value: "Search query",
+ },
+}
+
+export const VModel = {
+ render: vModelTemplate.bind({}),
+ name: "v-model",
+}
+
+export const WithPlaceholder = {
+ render: Template.bind({}),
+ name: "With placeholder",
+
+ args: {
+ placeholder: "Search query",
+ },
+}
diff --git a/frontend/src/components/VHeader/VSearchBar/meta/VSearchBar.stories.mdx b/frontend/src/components/VHeader/VSearchBar/meta/VSearchBar.stories.mdx
deleted file mode 100644
index 6f4ae2f5d..000000000
--- a/frontend/src/components/VHeader/VSearchBar/meta/VSearchBar.stories.mdx
+++ /dev/null
@@ -1,100 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VSearchBar from "~/components/VHeader/VSearchBar/VSearchBar.vue"
-
-<Meta
- title="Components/VHeader/Search bar"
- component={VSearchBar}
- argTypes={{
- input: {
- action: "input",
- },
- submit: {
- action: "submit",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `
- <VSearchBar v-bind="args" v-on="args">
- <span class="info text-xs font-semibold text-dark-charcoal-70 mx-4 whitespace-nowrap group-hover:text-dark-charcoal group-focus:text-dark-charcoal">
- 12,345 results
- </span>
- </VSearchBar>`,
- components: { VSearchBar },
- setup() {
- return { args }
- },
-})
-
-# Search bar
-
-<Description of={VSearchBar} />
-
-<ArgsTable of={VSearchBar} />
-
-The component emits an `input` event with the new contents of the field whenever
-the field receives an input. It also emits the `search` event when the search
-button is clicked.
-
-<Canvas>
- <Story
- name="Default"
- args={{
- value: "Search query",
- size: "medium",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-The recommended way to use it is with `v-model` mapping to a `String`
-representing the search query.
-
-export const vModelTemplate = (args) => ({
- template: `
- <div>
- <VSearchBar v-model="text" v-on="args">
- <span class="info text-xs font-semibold text-dark-charcoal-70 mx-4 whitespace-nowrap group-hover:text-dark-charcoal group-focus:text-dark-charcoal">
- {{ text.length }} chars
- </span>
- </VSearchBar>
- {{ text }}
- </div>
- `,
- components: { VSearchBar },
- data() {
- return {
- text: "Hello, World!",
- }
- },
- setup() {
- return { args }
- },
-})
-
-<Canvas>
- <Story name="v-model">{vModelTemplate.bind({})}</Story>
-</Canvas>
-
-The `VSearchBar` component passes all attributes down to the inner `InputField`
-which itself applies all its attributes to its inner `<input>` element. So it's
-easy `<input>` attributes like placeholders or HTML validations.
-
-<Canvas>
- <Story
- name="With placeholder"
- args={{
- placeholder: "Search query",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/meta/VContentSettingsModal.stories.js b/frontend/src/components/VHeader/meta/VContentSettingsModal.stories.js
new file mode 100644
index 000000000..83d9ba7a4
--- /dev/null
+++ b/frontend/src/components/VHeader/meta/VContentSettingsModal.stories.js
@@ -0,0 +1,30 @@
+import VContentSettingsModalContent from "~/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue"
+import VModalTarget from "~/components/VModal/VModalTarget.vue"
+
+const Template = (args) => ({
+ template: `<div><VContentSettingsModalContent v-bind="args" v-on="args" :close="args.close" /> <VModalTarget class="modal" /></div>`,
+ components: { VContentSettingsModalContent, VModalTarget },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHeader/VHeaderMobile/VContentSettingsModalContent",
+ components: VContentSettingsModalContent,
+
+ argTypes: {
+ visible: { type: "boolean" },
+ close: { action: "close" },
+ select: { action: "select" },
+ },
+ args: {
+ visible: true,
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ height: "480px",
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/meta/VContentSettingsModal.stories.mdx b/frontend/src/components/VHeader/meta/VContentSettingsModal.stories.mdx
deleted file mode 100644
index 8ef00db13..000000000
--- a/frontend/src/components/VHeader/meta/VContentSettingsModal.stories.mdx
+++ /dev/null
@@ -1,55 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import { useSearchStore } from "~/stores/search"
-
-import VContentSettingsModalContent from "~/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue"
-import VModalTarget from "~/components/VModal/VModalTarget.vue"
-
-<Meta
- title="Components/VHeader/VHeaderMobile/VContentSettingsModalContent"
- components={VContentSettingsModalContent}
- argTypes={{
- close: {
- action: "close",
- },
- select: {
- action: "select",
- },
- change: {
- action: "change",
- },
- }}
- args={{
- visible: true,
- }}
-/>
-
-export const Template = (args) => ({
- template: `<div><VContentSettingsModalContent :close="args.close" v-bind="args" v-on="args" /><VModalTarget class="modal" /></div>`,
- components: { VContentSettingsModalContent, VModalTarget },
- setup() {
- const searchStore = useSearchStore()
- searchStore.setSearchType("image")
- searchStore.setSearchTerm("cat")
- searchStore.toggleFilter({ filterType: "licenses", codeIdx: 0 })
- return { args }
- },
-})
-
-# VContentSettingsModalContent
-
-<Description of={VContentSettingsModalContent} />
-
-<ArgsTable of={VContentSettingsModalContent} />
-
-<Canvas>
- <Story height="480px" name="Default">
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/meta/VFilterButton.stories.mdx b/frontend/src/components/VHeader/meta/VFilterButton.stories.js
similarity index 59%
rename from frontend/src/components/VHeader/meta/VFilterButton.stories.mdx
rename to frontend/src/components/VHeader/meta/VFilterButton.stories.js
index a826af7af..f8fa92911 100644
--- a/frontend/src/components/VHeader/meta/VFilterButton.stories.mdx
+++ b/frontend/src/components/VHeader/meta/VFilterButton.stories.js
@@ -1,41 +1,10 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VFilterButton from "~/components/VHeader/VFilterButton.vue"
import { useSearchStore } from "~/stores/search"
import { filterData, mediaFilterKeys } from "~/constants/filters"
import { IMAGE } from "~/constants/media"
-<Meta
- title="Components/VHeader/VFilterButton"
- component={VFilterButton}
- argTypes={{
- pressed: {
- type: "boolean",
- },
- appliedFilters: {
- type: "number",
- },
- disabled: {
- type: "boolean",
- },
- toggle: {
- action: "toggle",
- },
- }}
-/>
-
-[//]:
- #
- "Flexible-width wrappers are added to the template to make the button
-better visible on a darker background and to make the changes in button width
-easier to see."
+import VFilterButton from "~/components/VHeader/VFilterButton.vue"
-export const Template = (args, { argTypes }) => ({
+const Template = (args, { argTypes }) => ({
template: `<div class="flex"><div id="wrapper" class="px-4 h-16 bg-dark-charcoal-06 flex align-center justify-center">
<VFilterButton v-bind="args" v-on="args" />
</div></div>`,
@@ -68,37 +37,47 @@ export const Template = (args, { argTypes }) => ({
},
})
-# Filter button
+export default {
+ title: "Components/VHeader/VFilterButton",
+ component: VFilterButton,
-<Description of={VFilterButton} />
+ argTypes: {
+ pressed: {
+ type: "boolean",
+ },
-<ArgsTable of={VFilterButton} />
+ appliedFilters: {
+ type: "number",
+ },
-The button opens and closes the filters sidebar. It also shows how many filters
-are applied. It also emits the `toggle` event when clicked.
+ disabled: {
+ type: "boolean",
+ },
-<Canvas>
- <Story
- name="Default"
- parameters={{
- viewport: {
- defaultViewport: "lg",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+ toggle: {
+ action: "toggle",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ parameters: {
+ viewport: {
+ defaultViewport: "lg",
+ },
+ },
+}
+
+export const WithTextLabel = {
+ render: Template.bind({}),
+ name: "With text label",
-<Canvas>
- <Story
- name="With text label"
- parameters={{
- viewport: {
- defaultViewport: "xl",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+ parameters: {
+ viewport: {
+ defaultViewport: "xl",
+ },
+ },
+}
diff --git a/frontend/src/components/VHeader/meta/VHeaderDesktop.stories.js b/frontend/src/components/VHeader/meta/VHeaderDesktop.stories.js
new file mode 100644
index 000000000..69793da31
--- /dev/null
+++ b/frontend/src/components/VHeader/meta/VHeaderDesktop.stories.js
@@ -0,0 +1,24 @@
+import { provide, ref } from "vue"
+
+import { IsSidebarVisibleKey } from "~/types/provides"
+
+import VHeaderDesktop from "~/components/VHeader/VHeaderDesktop.vue"
+
+const Template = () => ({
+ template: `<VHeaderDesktop />`,
+ components: { VHeaderDesktop },
+ setup() {
+ provide(IsSidebarVisibleKey, ref(false))
+ return {}
+ },
+})
+
+export default {
+ title: "Components/VHeader/VHeaderDesktop",
+ component: VHeaderDesktop,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/meta/VHeaderDesktop.stories.mdx b/frontend/src/components/VHeader/meta/VHeaderDesktop.stories.mdx
deleted file mode 100644
index 3589c5c8c..000000000
--- a/frontend/src/components/VHeader/meta/VHeaderDesktop.stories.mdx
+++ /dev/null
@@ -1,34 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import { provide, ref } from "vue"
-import { IsSidebarVisibleKey } from "~/types/provides"
-import VHeaderDesktop from "~/components/VHeader/VHeaderDesktop.vue"
-
-<Meta title="Components/VHeader/VHeaderDesktop" component={VHeaderDesktop} />
-
-export const Template = () => ({
- template: `<VHeaderDesktop />`,
- components: { VHeaderDesktop },
- setup() {
- provide(IsSidebarVisibleKey, ref(false))
- return {}
- },
-})
-
-# VHeaderDesktop
-
-<Description of={VHeaderDesktop} />
-
-<ArgsTable of={VHeaderDesktop} />
-
-The header component used for screens on breakpoints wider than `lg`. Fixed on
-scroll, search bar, content switcher, pages menu and filters button.
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/meta/VHeaderInternal.stories.js b/frontend/src/components/VHeader/meta/VHeaderInternal.stories.js
new file mode 100644
index 000000000..7b28a2457
--- /dev/null
+++ b/frontend/src/components/VHeader/meta/VHeaderInternal.stories.js
@@ -0,0 +1,20 @@
+import VHeaderInternal from "~/components/VHeader/VHeaderInternal.vue"
+import VModalTarget from "~/components/VModal/VModalTarget.vue"
+
+const Template = (args) => ({
+ template: `<div class="fixed inset-0 w-full h-full"><VHeaderInternal v-bind="args" v-on="args" /><VModalTarget /></div>`,
+ components: { VHeaderInternal, VModalTarget },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHeader/VHeaderInternal",
+ component: VHeaderInternal,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/meta/VHeaderInternal.stories.mdx b/frontend/src/components/VHeader/meta/VHeaderInternal.stories.mdx
deleted file mode 100644
index a8735da99..000000000
--- a/frontend/src/components/VHeader/meta/VHeaderInternal.stories.mdx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Canvas, Description, Meta, Story } from "@storybook/addon-docs"
-import VHeaderInternal from "~/components/VHeader/VHeaderInternal.vue"
-import VModalTarget from "~/components/VModal/VModalTarget.vue"
-
-<Meta title="Components/VHeader/VHeaderInternal" component={VHeaderInternal} />
-
-export const Template = (args) => ({
- template: `<div class="fixed inset-0 w-full h-full"><VHeaderInternal v-bind="args" v-on="args" /><VModalTarget /></div>`,
- components: { VHeaderInternal, VModalTarget },
- setup() {
- return { args }
- },
-})
-
-# VHeaderInternal
-
-<Description of={VHeaderInternal} />
-
-The header component used on non-search pages. Fixed on scroll. Has links to the
-internal pages.
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/meta/VHeaderMobile.stories.js b/frontend/src/components/VHeader/meta/VHeaderMobile.stories.js
new file mode 100644
index 000000000..88486b823
--- /dev/null
+++ b/frontend/src/components/VHeader/meta/VHeaderMobile.stories.js
@@ -0,0 +1,20 @@
+import VHeaderMobile from "~/components/VHeader/VHeaderMobile/VHeaderMobile.vue"
+
+const Template = (args) => ({
+ template: `
+ <VHeaderMobile v-bind="args" v-on="args" />`,
+ components: { VHeaderMobile },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHeader/VHeaderMobile/VHeaderMobile",
+ component: VHeaderMobile,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/meta/VHeaderMobile.stories.mdx b/frontend/src/components/VHeader/meta/VHeaderMobile.stories.mdx
deleted file mode 100644
index 5d5788f30..000000000
--- a/frontend/src/components/VHeader/meta/VHeaderMobile.stories.mdx
+++ /dev/null
@@ -1,35 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VHeaderMobile from "~/components/VHeader/VHeaderMobile/VHeaderMobile.vue"
-
-<Meta
- title="Components/VHeader/VHeaderMobile/VHeaderMobile"
- component={VHeaderMobile}
-/>
-
-export const Template = (args) => ({
- template: `
- <VHeaderMobile v-bind="args" v-on="args" />`,
- components: { VHeaderMobile },
- setup() {
- return { args }
- },
-})
-
-# VHeaderMobile
-
-<Description of={VHeaderMobile} />
-
-<ArgsTable of={VHeaderMobile} />
-
-The header component used for screens up to `lg` breakpoint. Fixed on scroll,
-search bar, content switcher, pages menu and filters button.
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/meta/VHomeLink.stories.mdx b/frontend/src/components/VHeader/meta/VHomeLink.stories.js
similarity index 52%
rename from frontend/src/components/VHeader/meta/VHomeLink.stories.mdx
rename to frontend/src/components/VHeader/meta/VHomeLink.stories.js
index 0d437b76d..eb199637d 100644
--- a/frontend/src/components/VHeader/meta/VHomeLink.stories.mdx
+++ b/frontend/src/components/VHeader/meta/VHomeLink.stories.js
@@ -1,27 +1,6 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
import VHomeLink from "~/components/VHeader/VHomeLink.vue"
-<Meta
- title="Components/VHeader/HomeLinks/VHomeLink"
- components={VHomeLink}
- argTypes={{
- variant: {
- type: "string",
- control: {
- type: "select",
- },
- options: ["dark", "light"],
- },
- }}
-/>
-
-export const Template = (args) => ({
+const Template = (args) => ({
template: `<div class="flex p-4" :class="bg"><VHomeLink v-bind="args" /></div>`,
components: { VHomeLink },
setup() {
@@ -30,12 +9,22 @@ export const Template = (args) => ({
},
})
-# VHomeLink
-
-<Description of={VHomeLink} />
+export default {
+ title: "Components/VHeader/HomeLinks/VHomeLink",
+ components: VHomeLink,
-<ArgsTable of={VHomeLink} />
+ argTypes: {
+ variant: {
+ type: "string",
+ control: {
+ type: "select",
+ },
+ options: ["dark", "light"],
+ },
+ },
+}
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/meta/VLogoButton.stories.js b/frontend/src/components/VHeader/meta/VLogoButton.stories.js
new file mode 100644
index 000000000..32cbd35f7
--- /dev/null
+++ b/frontend/src/components/VHeader/meta/VLogoButton.stories.js
@@ -0,0 +1,19 @@
+import VLogoButton from "~/components/VHeader/VLogoButton.vue"
+
+const Template = (args) => ({
+ template: `<div class="flex p-4"><VLogoButton v-bind="args" /></div>`,
+ components: { VLogoButton },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHeader/HomeLinks/VLogoButton",
+ component: VLogoButton,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHeader/meta/VLogoButton.stories.mdx b/frontend/src/components/VHeader/meta/VLogoButton.stories.mdx
deleted file mode 100644
index 4e5323635..000000000
--- a/frontend/src/components/VHeader/meta/VLogoButton.stories.mdx
+++ /dev/null
@@ -1,36 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VLogoButton from "~/components/VHeader/VLogoButton.vue"
-
-<Meta
- title="Components/VHeader/HomeLinks/VLogoButton"
- component={VLogoButton}
- argTypes={{
- isFetching: {
- type: "boolean",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<div class="flex p-4"><VLogoButton v-bind="args" /></div>`,
- components: { VLogoButton },
- setup() {
- return { args }
- },
-})
-
-# VLogoButton
-
-<Description of={VLogoButton} />
-
-<ArgsTable of={VLogoButton} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx b/frontend/src/components/VHeader/meta/VSearchBarButton.stories.js
similarity index 55%
rename from frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx
rename to frontend/src/components/VHeader/meta/VSearchBarButton.stories.js
index 809681a7d..6919e717a 100644
--- a/frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx
+++ b/frontend/src/components/VHeader/meta/VSearchBarButton.stories.js
@@ -1,48 +1,10 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VContentSettingsButton from "~/components/VHeader/VHeaderMobile/VContentSettingsButton"
+import VContentSettingsButton from "~/components/VHeader/VHeaderMobile/VContentSettingsButton.vue"
import VSearchBarButton from "~/components/VHeader/VHeaderMobile/VSearchBarButton.vue"
-<Meta
- title="Components/VHeader/VHeaderMobile/VSearchBarButton"
- component={VSearchBarButton}
- argTypes={{
- icon: {
- control: {
- type: "select",
- default: "close-small",
- },
- options: ["close-small", "chevron-back", "source"],
- },
- rtlFlip: {
- control: {
- type: "boolean",
- },
- },
- variant: {
- control: {
- type: "select",
- },
- options: [
- "filled-white",
- "filled-gray",
- "transparent-gray",
- "transparent-dark",
- ],
- },
- click: {
- action: "click",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<div class="wrapper border-dark-charcoal-10 inline-flex justify-start p-2"><VSearchBarButton label="VSearchBarButton" v-bind="args" v-on="args" /></div>`,
+const Template = (args) => ({
+ template: `<div class="wrapper border-dark-charcoal-10 inline-flex justify-start p-2">
+ <VSearchBarButton label="VSearchBarButton" :icon="args.icon" v-bind="args" v-on="args" />
+ </div>`,
components: { VSearchBarButton },
setup() {
if (!args.icon) {
@@ -52,26 +14,7 @@ export const Template = (args) => ({
},
})
-# Content Settings button
-
-<Description of={VSearchBarButton} />
-
-<ArgsTable of={VSearchBarButton} />
-
-<Canvas>
- <Story
- name="Default"
- args={{
- icon: "close-small",
- label: "VSearchBarButton",
- variant: "filled-white",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-export const contentSettingsTemplate = (args) => ({
+const contentSettingsTemplate = (args) => ({
template: `
<div class="wrapper rounded-sm inline-flex justify-end bg-dark-charcoal-10">
<VContentSettingsButton label="VContentSettingsButton" :are-filters-selected="true" v-bind="args" />
@@ -83,21 +26,7 @@ export const contentSettingsTemplate = (args) => ({
},
})
-## Content Settings button with filters selected
-
-The button that opens the content settings modal on screens up to `lg`
-breakpoint. If any filters are selected, it shows a pink dot in the top right
-corner.
-
-<Canvas>
- <Story name="Content Settings Button with filters selected">
- {contentSettingsTemplate.bind({})}
- </Story>
-</Canvas>
-
-## Clear button and Back button
-
-export const activeButtonsTemplate = (args) => ({
+const activeButtonsTemplate = (args) => ({
template: `<div class="wrapper rounded-sm bg-white flex justify-between ring ring-pink">
<VSearchBarButton
icon="chevron-back"
@@ -117,6 +46,62 @@ export const activeButtonsTemplate = (args) => ({
},
})
-<Canvas>
- <Story name="Clear and Back Buttons">{activeButtonsTemplate.bind({})}</Story>
-</Canvas>
+export default {
+ title: "Components/VHeader/VHeaderMobile/VSearchBarButton",
+ component: VSearchBarButton,
+
+ argTypes: {
+ icon: {
+ control: {
+ type: "select",
+ default: "close-small",
+ },
+
+ options: ["close-small", "chevron-back", "source"],
+ },
+
+ rtlFlip: {
+ control: {
+ type: "boolean",
+ },
+ },
+
+ variant: {
+ control: {
+ type: "select",
+ },
+
+ options: [
+ "filled-white",
+ "filled-gray",
+ "transparent-gray",
+ "transparent-dark",
+ ],
+ },
+
+ click: {
+ action: "click",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ icon: "close-small",
+ label: "VSearchBarButton",
+ variant: "filled-white",
+ },
+}
+
+export const ContentSettingsButtonWithFiltersSelected = {
+ render: contentSettingsTemplate.bind({}),
+ name: "Content Settings Button with filters selected",
+}
+
+export const ClearAndBackButtons = {
+ render: activeButtonsTemplate.bind({}),
+ name: "Clear and Back Buttons",
+}
diff --git a/frontend/src/components/VHeader/meta/VShowResultsButton.stories.js b/frontend/src/components/VHeader/meta/VShowResultsButton.stories.js
new file mode 100644
index 000000000..1fc4efbdd
--- /dev/null
+++ b/frontend/src/components/VHeader/meta/VShowResultsButton.stories.js
@@ -0,0 +1,28 @@
+import VShowResultsButton from "~/components/VHeader/VHeaderMobile/VShowResultsButton.vue"
+
+const Template = (args) => ({
+ template: `<VShowResultsButton v-bind="args"/>`,
+ components: { VShowResultsButton },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHeader/VHeaderMobile/VShowResultsButton",
+ component: VShowResultsButton,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
+
+export const Fetching = {
+ render: Template.bind({}),
+ name: "Fetching",
+
+ args: {
+ isFetching: true,
+ },
+}
diff --git a/frontend/src/components/VHeader/meta/VShowResultsButton.stories.mdx b/frontend/src/components/VHeader/meta/VShowResultsButton.stories.mdx
deleted file mode 100644
index 3caefe8f1..000000000
--- a/frontend/src/components/VHeader/meta/VShowResultsButton.stories.mdx
+++ /dev/null
@@ -1,37 +0,0 @@
-import {
- Meta,
- Description,
- ArgsTable,
- Canvas,
- Story,
-} from "@storybook/addon-docs"
-
-import VShowResultsButton from "~/components/VHeader/VHeaderMobile/VShowResultsButton.vue"
-
-<Meta
- title="Components/VHeader/VHeaderMobile/VShowResultsButton"
- component={VShowResultsButton}
-/>
-
-export const Template = (args) => ({
- template: `<VShowResultsButton v-bind="args"/>`,
- setup() {
- return { args }
- },
-})
-
-# VShowResultsButton
-
-<Description of={VShowResultsButton} />
-
-<ArgsTable of={VShowResultsButton} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
-
-<Canvas>
- <Story name="Fetching" args={{ isFetching: true }}>
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VHideButton.vue b/frontend/src/components/VHideButton.vue
index eb797daad..249382d2e 100644
--- a/frontend/src/components/VHideButton.vue
+++ b/frontend/src/components/VHideButton.vue
@@ -24,13 +24,23 @@
</div>
</template>
-<script>
+<script lang="ts">
import { computed, defineComponent } from "@nuxtjs/composition-api"
import { useUiStore } from "~/stores/ui"
import { defineEvent } from "~/types/emits"
+import VButton from "~/components/VButton.vue"
+import VIconButton from "~/components/VIconButton/VIconButton.vue"
+import VIcon from "~/components/VIcon/VIcon.vue"
+
export default defineComponent({
+ name: "VHideButton",
+ components: {
+ VButton,
+ VIconButton,
+ VIcon,
+ },
emits: {
click: defineEvent(),
},
diff --git a/frontend/src/components/VHomeGallery/meta/VHomeGallery.stories.js b/frontend/src/components/VHomeGallery/meta/VHomeGallery.stories.js
new file mode 100644
index 000000000..a3380d4a0
--- /dev/null
+++ b/frontend/src/components/VHomeGallery/meta/VHomeGallery.stories.js
@@ -0,0 +1,29 @@
+import VHomeGallery from "~/components/VHomeGallery/VHomeGallery.vue"
+
+const Template = (args) => ({
+ template: `<VHomeGallery v-bind="args" />`,
+ components: { VHomeGallery },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VHomeGallery",
+ component: VHomeGallery,
+
+ argTypes: {
+ set: {
+ options: ["random", "olympics", "pottery", "universe"],
+ control: "select",
+ },
+ },
+ args: {
+ set: "random",
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VHomeGallery/meta/VHomeGallery.stories.mdx b/frontend/src/components/VHomeGallery/meta/VHomeGallery.stories.mdx
deleted file mode 100644
index 1d205dddb..000000000
--- a/frontend/src/components/VHomeGallery/meta/VHomeGallery.stories.mdx
+++ /dev/null
@@ -1,41 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VHomeGallery from "~/components/VHomeGallery/VHomeGallery.vue"
-
-<Meta
- title="Components/VHomeGallery"
- component={VHomeGallery}
- argTypes={{
- set: {
- options: ["random", "olympics", "pottery", "universe"],
- control: "select",
- },
- }}
- args={{
- set: "random",
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VHomeGallery v-bind="args" />`,
- components: { VHomeGallery },
- setup() {
- return { args }
- },
-})
-
-# VHomeGallery
-
-<Description of={VHomeGallery} />
-
-<ArgsTable of={VHomeGallery} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VIcon/meta/VIcon.stories.mdx b/frontend/src/components/VIcon/meta/VIcon.stories.mdx
deleted file mode 100644
index c49882691..000000000
--- a/frontend/src/components/VIcon/meta/VIcon.stories.mdx
+++ /dev/null
@@ -1,80 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VIcon from "~/components/VIcon/VIcon.vue"
-
-import spriteData from "~svgsprite/sprites.json"
-
-<Meta title="Components/VIcon" component={VIcon} />
-
-export const iconNames = spriteData.reduce((accumulator, sprite) => {
- const iconsWithNamespace = sprite.symbols.map((symbol) =>
- sprite.defaultSprite ? symbol : `${sprite.name}/${symbol}`
- )
- return accumulator.concat(iconsWithNamespace)
-}, [])
-
-export const Template = (args) => ({
- template: `<VIcon v-bind="args" />`,
- components: { VIcon },
- setup() {
- return { args }
- },
-})
-
-# Icon
-
-<Description of={VIcon} />
-
-<ArgsTable of={VIcon} />
-
-To display the icon, pass the name of the icon as a prop.
-
-```html
-<VIcon name="icon-name" />
-```
-
-<Canvas>
- <Story
- name="Default"
- args={{
- name: "replay",
- }}
- argTypes={{
- name: {
- options: iconNames,
- control: { type: "select" },
- },
- }}
- args={{
- name: "replay",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## RTL
-
-`VIcon` can flip the icon for RTL languages. This is useful for certain icons
-that have an intrinsic directional nature such as those involving arrows.
-
-To see the RTL layout, switch to the Canvas tab and toggle the directionality
-using the 🌐 button.
-
-<Canvas>
- <Story
- name="RTL"
- args={{
- rtlFlip: true,
- name: "external-link",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VIconButton/meta/VIconButton.stories.mdx b/frontend/src/components/VIconButton/meta/VIconButton.stories.js
similarity index 50%
rename from frontend/src/components/VIconButton/meta/VIconButton.stories.mdx
rename to frontend/src/components/VIconButton/meta/VIconButton.stories.js
index 68327e342..0c193b8e7 100644
--- a/frontend/src/components/VIconButton/meta/VIconButton.stories.mdx
+++ b/frontend/src/components/VIconButton/meta/VIconButton.stories.js
@@ -1,33 +1,10 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VIconButton from "~/components/VIconButton/VIconButton.vue"
import { baseButtonSizes, baseButtonVariants } from "~/types/button"
-<Meta
- title="Components/VIconButton"
- component={VIconButton}
- argTypes={{
- size: {
- options: baseButtonSizes,
- control: "select",
- },
- variant: {
- options: baseButtonVariants,
- control: "select",
- },
- click: { action: "click" },
- }}
-/>
+import VIconButton from "~/components/VIconButton/VIconButton.vue"
-export const Template = (args) => ({
+const Template = (args) => ({
template: `
- <VIconButton v-bind="args" v-on="args" label="v-icon-button" />
+ <VIconButton :size="args.size" :variant="args.variant" v-bind="args" v-on="args" label="v-icon-button" />
`,
components: { VIconButton },
setup() {
@@ -35,7 +12,7 @@ export const Template = (args) => ({
},
})
-export const sizesTemplate = (args) => ({
+const sizesTemplate = (args) => ({
template: `
<div class="flex gap-x-2">
<div v-for="size in args.baseButtonSizes" :key="size" class="flex flex-col items-center p-2 gap-2">
@@ -43,6 +20,7 @@ export const sizesTemplate = (args) => ({
<VIconButton
label="v-icon-button"
:size="size"
+ :variant="args.variant"
v-bind="args"
v-on="args"
/>
@@ -56,40 +34,51 @@ export const sizesTemplate = (args) => ({
},
})
-# Icon Button
+export default {
+ title: "Components/VIconButton",
+ component: VIconButton,
-<Description of={VIconButton} />
+ argTypes: {
+ size: {
+ options: baseButtonSizes,
+ control: "select",
+ },
-<ArgsTable of={VIconButton} />
+ variant: {
+ options: baseButtonVariants,
+ control: "select",
+ },
+
+ click: {
+ action: "click",
+ },
+ },
+}
-<Canvas>
- <Story
- name="Default"
- args={{
- variant: "filled-dark",
- size: "medium",
- iconProps: {
- name: "replay",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
-## Sizes
+ args: {
+ variant: "filled-dark",
+ size: "medium",
-<Canvas>
- <Story
- name="Sizes"
- args={{
- variant: "filled-dark",
- size: "small",
- iconProps: {
- name: "replay",
- },
- }}
- >
- {sizesTemplate.bind({})}
- </Story>
-</Canvas>
+ iconProps: {
+ name: "replay",
+ },
+ },
+}
+
+export const Sizes = {
+ render: sizesTemplate.bind({}),
+ name: "Sizes",
+
+ args: {
+ variant: "filled-dark",
+ size: "small",
+
+ iconProps: {
+ name: "replay",
+ },
+ },
+}
diff --git a/frontend/src/components/VImageCell/meta/VImageCell.stories.js b/frontend/src/components/VImageCell/meta/VImageCell.stories.js
new file mode 100644
index 000000000..38aa7275c
--- /dev/null
+++ b/frontend/src/components/VImageCell/meta/VImageCell.stories.js
@@ -0,0 +1,59 @@
+import { image } from "~~/test/unit/fixtures/image"
+
+import VImageCell from "~/components/VImageCell/VImageCell.vue"
+
+const Template = (args, { argTypes }) => ({
+ components: { VImageCell },
+ props: Object.keys(argTypes),
+ template: `
+ <ol class="flex flex-wrap gap-4">
+ <VImageCell
+ :image="image"
+ searchTerm="test"
+ :aspect-ratio="aspectRatio"
+ relatedTo="fake-uuid"
+ />
+ </ol>
+ `,
+})
+
+export default {
+ title: "Components/VImageCell",
+ components: VImageCell,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "VImageCell",
+
+ parameters: {
+ viewport: {
+ defaultViewport: "sm",
+ },
+ },
+
+ argTypes: {
+ aspectRatio: {
+ options: ["square", "intrinsic"],
+
+ control: {
+ type: "radio",
+ },
+ },
+
+ image: {
+ control: {
+ type: "object",
+ },
+ },
+ },
+
+ args: {
+ aspectRatio: "intrinsic",
+
+ image: {
+ ...image,
+ thumbnail: "/openverse-default.jpg",
+ },
+ },
+}
diff --git a/frontend/src/components/VImageCell/meta/VImageCell.stories.mdx b/frontend/src/components/VImageCell/meta/VImageCell.stories.mdx
deleted file mode 100644
index 07e10f625..000000000
--- a/frontend/src/components/VImageCell/meta/VImageCell.stories.mdx
+++ /dev/null
@@ -1,56 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VImageCell from "~/components/VImageCell/VImageCell.vue"
-import { image } from "~~/test/unit/fixtures/image"
-
-<Meta title="Components/VImageCell" components={VImageCell} />
-
-export const Template = (args, { argTypes }) => ({
- components: { VImageCell },
- props: Object.keys(argTypes),
- template: `
- <ol class="flex flex-wrap gap-4">
- <VImageCell
- :image="image"
- searchTerm="test"
- :aspect-ratio="aspectRatio"
- relatedTo="fake-uuid"
- />
- </ol>
- `,
-})
-
-# VImageCell
-
-<Description of={VImageCell} />
-
-<ArgsTable of={VImageCell} />
-
-<Canvas>
- <Story
- name="VImageCell"
- parameters={{
- viewport: { defaultViewport: "sm" },
- }}
- argTypes={{
- aspectRatio: {
- options: ["square", "intrinsic"],
- control: { type: "radio" },
- },
- image: {
- control: { type: "object" },
- },
- }}
- args={{
- aspectRatio: "intrinsic",
- image: { ...image, thumbnail: "/openverse-default.jpg" },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VInputField/meta/VInputField.stories.js b/frontend/src/components/VInputField/meta/VInputField.stories.js
new file mode 100644
index 000000000..4cff5cdb2
--- /dev/null
+++ b/frontend/src/components/VInputField/meta/VInputField.stories.js
@@ -0,0 +1,114 @@
+import VInputField from "~/components/VInputField/VInputField.vue"
+
+const defaultArgs = {
+ fieldId: "field",
+ size: "medium",
+ labelText: "Label",
+}
+
+const Template = (args) => ({
+ template: `
+ <VInputField :field-id="fieldId" v-bind="rest" v-on="rest" label-text="Test label">
+ <span class="whitespace-nowrap me-2">Extra info</span>
+ </VInputField>
+ `,
+ components: { VInputField },
+ setup() {
+ const { fieldId, ...rest } = args
+ return { fieldId, rest }
+ },
+})
+
+const vModelTemplate = () => ({
+ template: `
+ <div>
+ <VInputField v-bind="defaultArgs" v-model="text">
+ {{ text.length }}
+ </VInputField>
+ {{ text }}
+ </div>
+ `,
+ components: { VInputField },
+ data() {
+ return {
+ text: "Hello, World!",
+ }
+ },
+ setup() {
+ return { defaultArgs }
+ },
+})
+
+const labelTemplate = () => ({
+ template: `
+ <div>
+ <label for="field">Label:</label>
+ <VInputField field-id="field" v-bind="defaultArgs" />
+ </div>
+ `,
+ components: { VInputField },
+ setup() {
+ return { defaultArgs }
+ },
+})
+
+export default {
+ title: "Components/VInputField",
+ component: VInputField,
+
+ argTypes: {
+ "update:modelValue": {
+ action: "update:modelValue",
+ },
+ },
+ args: {
+ ...defaultArgs,
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ value: "Text goes here",
+ },
+}
+
+export const VModel = {
+ render: vModelTemplate.bind({}),
+ name: "v-model",
+}
+
+export const WithPlaceholder = {
+ render: Template.bind({}),
+ name: "With placeholder",
+
+ args: {
+ placeholder: "Enter something here",
+ },
+}
+
+export const WithLabelText = {
+ render: Template.bind({}),
+ name: "With label text",
+
+ args: {
+ labelText: "Label:",
+ },
+}
+
+export const WithCustomLabel = {
+ render: labelTemplate.bind({}),
+ name: "With custom label",
+}
+
+export const WithConnections = {
+ render: Template.bind({}),
+ name: "With connections",
+
+ args: {
+ ...defaultArgs,
+ connectionSides: ["start", "end"],
+ },
+}
diff --git a/frontend/src/components/VInputField/meta/VInputField.stories.mdx b/frontend/src/components/VInputField/meta/VInputField.stories.mdx
deleted file mode 100644
index 536ea21f5..000000000
--- a/frontend/src/components/VInputField/meta/VInputField.stories.mdx
+++ /dev/null
@@ -1,143 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VInputField from "~/components/VInputField/VInputField.vue"
-
-<Meta
- title="Components/VInputField"
- component={VInputField}
- argTypes={{
- "update:modelValue": {
- action: "update:modelValue",
- },
- }}
- args={{
- fieldId: "input",
- labelText: "Test label",
- size: "medium",
- }}
-/>
-
-export const Template = (args) => ({
- template: `
- <VInputField v-bind="args" v-on="args">
- Extra info
- </VInputField>
- `,
- components: { VInputField },
- setup() {
- return { args }
- },
-})
-
-# Input field
-
-<Description of={VInputField} />
-
-<ArgsTable of={VInputField} />
-
-The component emits an `input` event with the new contents of the field whenever
-the field receives an input.
-
-<Canvas>
- <Story
- name="Default"
- args={{
- value: "Text goes here",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-The recommended way to use it is with `v-model` mapping to a `String`.
-
-export const vModelTemplate = () => ({
- template: `
- <div>
- <VInputField field-id="v-model" size="medium" v-model="text">
- {{ text.length }}
- </VInputField>
- {{ text }}
- </div>
- `,
- components: { VInputField },
- data() {
- return {
- text: "Hello, World!",
- }
- },
-})
-
-<Canvas>
- <Story name="v-model">{vModelTemplate.bind({})}</Story>
-</Canvas>
-
-The component is a transparent wrapper over `<input>` so all attributes of the
-input element can be applied to it, e.g. `placeholder`. It is recommended not to
-change the type as the field is specifically designed for text.
-
-<Canvas>
- <Story
- name="With placeholder"
- args={{
- placeholder: "Enter something here",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-For a11y, it is recommended that the input field be associated with a label. For
-this reason, the field is rendered with an SR-only label. The text can be set
-via the `labelText` prop.
-
-<Canvas>
- <Story
- name="With label text"
- args={{
- labelText: "Label:",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-To provide a custom label, skip the `labelText` prop (to remove the SR-only
-label) and set the `field-id` attribute on the component (which is passed to the
-`<input>` element). Now use the ID as the `for` attribute of your custom
-`<label>` element.
-
-export const labelTemplate = () => ({
- template: `
- <div>
- <label for="field">Label:</label>
- <VInputField size="medium" field-id="field"/>
- </div>
- `,
- components: { VInputField },
-})
-
-<Canvas>
- <Story name="With custom label">{labelTemplate.bind({})}</Story>
-</Canvas>
-
-The field can be conjoined with other controls on either the start or the end
-side and as such it provides the `connectionSides` prop to make the connections
-seamless. The field has no border or rounded corners on the connected sides.
-
-<Canvas>
- <Story
- name="With connections"
- args={{
- connectionSides: ["start", "end"],
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VItemGroup/meta/VItemGroup.stories.mdx b/frontend/src/components/VItemGroup/meta/VItemGroup.stories.js
similarity index 79%
rename from frontend/src/components/VItemGroup/meta/VItemGroup.stories.mdx
rename to frontend/src/components/VItemGroup/meta/VItemGroup.stories.js
index 4b1b0898e..4c89ac924 100644
--- a/frontend/src/components/VItemGroup/meta/VItemGroup.stories.mdx
+++ b/frontend/src/components/VItemGroup/meta/VItemGroup.stories.js
@@ -1,29 +1,14 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
import { ref } from "vue"
+
import { itemGroupDirections } from "~/types/item-group"
+
import VItemGroup from "~/components/VItemGroup/VItemGroup.vue"
import VItem from "~/components/VItemGroup/VItem.vue"
import VIcon from "~/components/VIcon/VIcon.vue"
import VPopover from "~/components/VPopover/VPopover.vue"
import VButton from "~/components/VButton.vue"
-<Meta
- title="Components/VItemGroup"
- components={VItemGroup}
- argTypes={{
- direction: { options: itemGroupDirections, control: { type: "radio" } },
- bordered: { control: { type: "boolean" } },
- }}
-/>
-
-export const DefaultStory = (args) => ({
+const DefaultStory = (args) => ({
template: `
<div>
<p>
@@ -58,7 +43,7 @@ export const DefaultStory = (args) => ({
},
})
-export const MenuStory = (args) => ({
+const MenuStory = (args) => ({
template: `
<div>
<p>
@@ -100,7 +85,7 @@ export const MenuStory = (args) => ({
},
})
-export const PopoverStory = (args) => ({
+const PopoverStory = (args) => ({
template: `
<VPopover>
<template #trigger="{ a11yProps, visible }">
@@ -140,50 +125,53 @@ export const PopoverStory = (args) => ({
},
})
-# VItemGroup
+export default {
+ title: "Components/VItemGroup",
+ components: VItemGroup,
-<Description of={VItemGroup} />
+ argTypes: {
+ direction: {
+ options: itemGroupDirections,
-<ArgsTable of={VItemGroup} />
+ control: {
+ type: "radio",
+ },
+ },
-## Default VItemGroup
+ bordered: {
+ control: {
+ type: "boolean",
+ },
+ },
+ },
+}
-<Canvas>
- <Story
- name="Default"
- args={{
- direction: "vertical",
- bordered: true,
- }}
- >
- {DefaultStory.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: DefaultStory.bind({}),
+ name: "Default",
-## Menu VItemGroup
+ args: {
+ direction: "vertical",
+ bordered: true,
+ },
+}
+
+export const Menu = {
+ render: MenuStory.bind({}),
+ name: "Menu",
-<Canvas>
- <Story
- name="Menu"
- args={{
- direction: "vertical",
- bordered: true,
- }}
- >
- {MenuStory.bind({})}
- </Story>
-</Canvas>
+ args: {
+ direction: "vertical",
+ bordered: true,
+ },
+}
-## Popover VItemGroup
+export const Popover = {
+ render: PopoverStory.bind({}),
+ name: "Popover",
-<Canvas>
- <Story
- name="Popover"
- args={{
- direction: "vertical",
- bordered: false,
- }}
- >
- {PopoverStory.bind({})}
- </Story>
-</Canvas>
+ args: {
+ direction: "vertical",
+ bordered: false,
+ },
+}
diff --git a/frontend/src/components/VLanguageSelect/meta/VLanguageSelect.stories.js b/frontend/src/components/VLanguageSelect/meta/VLanguageSelect.stories.js
new file mode 100644
index 000000000..a692e1cd5
--- /dev/null
+++ b/frontend/src/components/VLanguageSelect/meta/VLanguageSelect.stories.js
@@ -0,0 +1,20 @@
+import VLanguageSelect from "~/components/VLanguageSelect/VLanguageSelect.vue"
+
+const Template = (args) => ({
+ template: `
+ <VLanguageSelect v-bind="args" />`,
+ components: { VLanguageSelect },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VLanguageSelect",
+ component: VLanguageSelect,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/VLanguageSelect/meta/VLanguageSelect.stories.mdx b/frontend/src/components/VLanguageSelect/meta/VLanguageSelect.stories.mdx
deleted file mode 100644
index 71d83c639..000000000
--- a/frontend/src/components/VLanguageSelect/meta/VLanguageSelect.stories.mdx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { Description, Meta, Canvas, Story } from "@storybook/addon-docs"
-
-import VLanguageSelect from "~/components/VLanguageSelect/VLanguageSelect.vue"
-
-<Meta title="Components/VLanguageSelect" component={VLanguageSelect} />
-
-export const Template = (args) => ({
- template: `
- <VLanguageSelect v-bind="args" />`,
- components: { VLanguageSelect },
- setup() {
- return { args }
- },
-})
-
-# VLanguageSelect
-
-<Description of={VLanguageSelect} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VLicense/meta/VLicense.stories.js b/frontend/src/components/VLicense/meta/VLicense.stories.js
new file mode 100644
index 000000000..f8d62dbb6
--- /dev/null
+++ b/frontend/src/components/VLicense/meta/VLicense.stories.js
@@ -0,0 +1,114 @@
+import VLicense from "~/components/VLicense/VLicense.vue"
+
+const Template = (args) => ({
+ template: `<VLicense v-bind="args" :license="args.license"/>`,
+ components: { VLicense },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VLicense",
+ component: VLicense,
+}
+
+export const CcBy = {
+ render: Template.bind({}),
+ name: "CC BY",
+
+ args: {
+ license: "by",
+ },
+}
+
+export const CcBySa = {
+ render: Template.bind({}),
+ name: "CC BY-SA",
+
+ args: {
+ license: "by-sa",
+ },
+}
+
+export const CcByNd = {
+ render: Template.bind({}),
+ name: "CC BY-ND",
+
+ args: {
+ license: "by-nd",
+ },
+}
+
+export const CcByNc = {
+ render: Template.bind({}),
+ name: "CC BY-NC",
+
+ args: {
+ license: "by-nc",
+ },
+}
+
+export const CcByNcSa = {
+ render: Template.bind({}),
+ name: "CC BY-NC-SA",
+
+ args: {
+ license: "by-nc-sa",
+ },
+}
+
+export const CcByNcNd = {
+ render: Template.bind({}),
+ name: "CC BY-NC-ND",
+
+ args: {
+ license: "by-nc-nd",
+ },
+}
+
+export const Cc0 = {
+ render: Template.bind({}),
+ name: "CC0",
+
+ args: {
+ license: "cc0",
+ },
+}
+
+export const Pdm = {
+ render: Template.bind({}),
+ name: "PDM",
+
+ args: {
+ license: "pdm",
+ },
+}
+
+export const CcSampling = {
+ render: Template.bind({}),
+ name: "CC Sampling+",
+
+ args: {
+ license: "sampling+",
+ },
+}
+
+export const CcNcSampling = {
+ render: Template.bind({}),
+ name: "CC NC-Sampling+",
+
+ args: {
+ license: "nc-sampling+",
+ },
+}
+
+export const OnlyIcons = {
+ render: Template.bind({}),
+ name: "Only icons",
+
+ args: {
+ license: "by-nc-sa",
+ hideName: true,
+ },
+}
diff --git a/frontend/src/components/VLicense/meta/VLicense.stories.mdx b/frontend/src/components/VLicense/meta/VLicense.stories.mdx
deleted file mode 100644
index 6d938bf72..000000000
--- a/frontend/src/components/VLicense/meta/VLicense.stories.mdx
+++ /dev/null
@@ -1,153 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VLicense from "~/components/VLicense/VLicense.vue"
-
-<Meta title="Components/VLicense" component={VLicense} />
-
-export const Template = (args) => ({
- template: `<VLicense v-bind="args" />`,
- components: { VLicense },
- setup() {
- return { args }
- },
-})
-
-# VLicense
-
-<Description of={VLicense} />
-
-<ArgsTable of={VLicense} />
-
-It can display CC licenses.
-
-| License name | Abbreviation | Slug |
-| --------------------------------------- | ------------ | ---------- |
-| Attribution | CC BY | `by` |
-| Attribution-ShareAlike | CC BY-SA | `by-sa` |
-| Attribution-NoDerivatives | CC BY-ND | `by-nd` |
-| Attribution-NonCommercial | CC BY-NC | `by-nc` |
-| Attribution-NonCommercial-ShareAlike | CC BY-NC-SA | `by-nc-sa` |
-| Attribution-NonCommercial-NoDerivatives | CC BY-NC-ND | `by-nc-nd` |
-
-<Canvas>
- <Story
- name="CC BY"
- args={{
- license: "by",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-SA"
- args={{
- license: "by-sa",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-ND"
- args={{
- license: "by-nd",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-NC"
- args={{
- license: "by-nc",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-NC-SA"
- args={{
- license: "by-nc-sa",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-NC-ND"
- args={{
- license: "by-nc-nd",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-It can also display some public domain licenses.
-
-| License name | Abbreviation | Slug |
-| ------------------ | ------------ | ----- |
-| CC Zero | CC0 | `cc0` |
-| Public Domain Mark | - | `pdm` |
-
-<Canvas>
- <Story
- name="CC0"
- args={{
- license: "cc0",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="PDM"
- args={{
- license: "pdm",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-It can also display some deprecated CC licenses.
-
-| License name | Abbreviation | Slug |
-| --------------------------- | --------------- | -------------- |
-| Sampling Plus | CC Sampling+ | `sampling+` |
-| NonCommercial Sampling Plus | CC NC-Sampling+ | `nc-sampling+` |
-
-<Canvas>
- <Story
- name="CC Sampling+"
- args={{
- license: "sampling+",
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC NC-Sampling+"
- args={{
- license: "nc-sampling+",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-It can also show only the license icons.
-
-<Canvas>
- <Story
- name="Only icons"
- args={{
- license: "by-nc-sa",
- hideName: true,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VLicense/meta/VLicenseElements.stories.js b/frontend/src/components/VLicense/meta/VLicenseElements.stories.js
new file mode 100644
index 000000000..79113369e
--- /dev/null
+++ b/frontend/src/components/VLicense/meta/VLicenseElements.stories.js
@@ -0,0 +1,49 @@
+import { ALL_LICENSES } from "~/constants/license"
+
+import VLicenseElements from "~/components/VLicense/VLicenseElements.vue"
+
+const Template = (args) => ({
+ template: `<VLicenseElements v-bind="args" />`,
+ components: { VLicenseElements },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VLicenseElements",
+ component: VLicenseElements,
+
+ argTypes: {
+ license: {
+ default: "by",
+ options: ALL_LICENSES,
+ control: "select",
+ },
+
+ size: {
+ default: "big",
+ options: ["big", "small"],
+ control: "select",
+ },
+ },
+}
+
+export const Big = {
+ render: Template.bind({}),
+ name: "Big",
+
+ args: {
+ license: "by-nc-nd",
+ },
+}
+
+export const Small = {
+ render: Template.bind({}),
+ name: "Small",
+
+ args: {
+ license: "by-nc-nd",
+ size: "small",
+ },
+}
diff --git a/frontend/src/components/VLicense/meta/VLicenseElements.stories.mdx b/frontend/src/components/VLicense/meta/VLicenseElements.stories.mdx
deleted file mode 100644
index 63100aab0..000000000
--- a/frontend/src/components/VLicense/meta/VLicenseElements.stories.mdx
+++ /dev/null
@@ -1,70 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VLicenseElements from "~/components/VLicense/VLicenseElements.vue"
-import { ALL_LICENSES } from "~/constants/license"
-
-<Meta
- title="Components/VLicenseElements"
- component={VLicenseElements}
- argTypes={{
- license: {
- default: "by",
- options: ALL_LICENSES,
- control: "select",
- },
- size: {
- default: "big",
- options: ["big", "small"],
- control: "select",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VLicenseElements v-bind="args" />`,
- components: { VLicenseElements },
- setup() {
- return { args }
- },
-})
-
-# VLicense
-
-<Description of={VLicenseElements} />
-
-<ArgsTable of={VLicenseElements} />
-
-## Sizes
-
-### Big
-
-<Canvas>
- <Story
- name="Big"
- args={{
- license: "by-nc-nd",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-### Small
-
-<Canvas>
- <Story
- name="Small"
- args={{
- license: "by-nc-nd",
- size: "small",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VLogoLoader/meta/VLogoLoader.stories.js b/frontend/src/components/VLogoLoader/meta/VLogoLoader.stories.js
new file mode 100644
index 000000000..e79f308fb
--- /dev/null
+++ b/frontend/src/components/VLogoLoader/meta/VLogoLoader.stories.js
@@ -0,0 +1,67 @@
+import VLink from "~/components/VLink.vue"
+import VLogoLoader from "~/components/VLogoLoader/VLogoLoader.vue"
+
+const Template = (args) => ({
+ template: `<VLogoLoader v-bind="args" />`,
+ components: { VLogoLoader },
+ setup() {
+ return { args }
+ },
+})
+
+const LinkTemplate = (args) => ({
+ template: `
+ <VLink href="https://wordpress.org/openverse">
+ <VLogoLoader v-bind="args" />
+ </VLink>
+ `,
+ components: { VLink, VLogoLoader },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VLogoLoader",
+ component: VLogoLoader,
+
+ argTypes: {
+ status: {
+ default: "idle",
+ options: ["loading", "idle"],
+
+ control: {
+ type: "radio",
+ },
+ },
+ },
+}
+
+export const Idle = {
+ render: Template.bind({}),
+ name: "Idle",
+
+ args: {
+ status: "idle",
+ },
+}
+
+export const Loading = {
+ render: Template.bind({}),
+ name: "Loading",
+
+ args: {
+ status: "loading",
+ loadingLabel: "Loading images",
+ },
+}
+
+export const Link = {
+ render: LinkTemplate.bind({}),
+ name: "Link",
+
+ args: {
+ status: "loading",
+ loadingLabel: "Loading images",
+ },
+}
diff --git a/frontend/src/components/VLogoLoader/meta/VLogoLoader.stories.mdx b/frontend/src/components/VLogoLoader/meta/VLogoLoader.stories.mdx
deleted file mode 100644
index ea2eb9684..000000000
--- a/frontend/src/components/VLogoLoader/meta/VLogoLoader.stories.mdx
+++ /dev/null
@@ -1,93 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VLink from "~/components/VLink.vue"
-import VLogoLoader from "~/components/VLogoLoader/VLogoLoader.vue"
-
-<Meta
- title="Components/VLogoLoader"
- component={VLogoLoader}
- argTypes={{
- status: {
- default: "idle",
- options: ["loading", "idle"],
- control: { type: "radio" },
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VLogoLoader v-bind="args" />`,
- components: { VLogoLoader },
- setup() {
- return { args }
- },
-})
-
-# VLogoLoader
-
-<Description of={VLogoLoader} />
-
-<ArgsTable of={VLogoLoader} />
-
-## States
-
-The component can exist in two states.
-
-### Idle
-
-<Canvas>
- <Story name="Idle" args={{ status: "idle" }}>
- {Template.bind({})}
- </Story>
-</Canvas>
-
-### Loading
-
-Remember to test this state with the `prefers-reduced-motion` media query. In
-most popular browsers, this preference is set at the OS level. You can refer to
-[these instructions](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion#user_preferences)
-for toggling this setting for your particular OS.
-
-<Canvas>
- <Story
- name="Loading"
- args={{
- status: "loading",
- loadingLabel: "Loading images",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Link
-
-export const LinkTemplate = (args) => ({
- template: `
- <VLink href="https://wordpress.org/openverse">
- <VLogoLoader v-bind="args" />
- </VLink>
- `,
- components: { VLink, VLogoLoader },
- setup() {
- return { args }
- },
-})
-
-<Canvas>
- <Story
- name="Link"
- args={{
- status: "loading",
- loadingLabel: "Loading images",
- }}
- >
- {LinkTemplate.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VMediaInfo/VByLine/meta/VByLine.stories.js b/frontend/src/components/VMediaInfo/VByLine/meta/VByLine.stories.js
new file mode 100644
index 000000000..ced647501
--- /dev/null
+++ b/frontend/src/components/VMediaInfo/VByLine/meta/VByLine.stories.js
@@ -0,0 +1,45 @@
+import { image as testImage } from "~~/test/unit/fixtures/image"
+
+import VByLine from "~/components/VMediaInfo/VByLine/VByLine.vue"
+
+const Template = (args) => ({
+ template: `<div class="wrapper w-full inline-flex p-4"><VByLine v-bind="args" /></div>`,
+ components: { VByLine },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VByLine",
+ component: VByLine,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "default",
+
+ args: {
+ media: {
+ ...testImage,
+ creator: "kellascat",
+ sourceSlug: "met",
+ sourceName: "Metropolitan Museum",
+ },
+ },
+}
+
+export const Long = {
+ render: Template.bind({}),
+ name: "long",
+
+ args: {
+ media: {
+ ...testImage,
+ creator: "Roland Folger Coffin, American, 1826–1888",
+ sourceSlug: "smithsonian_cooper_hewitt_museum",
+ sourceName:
+ "Smithsonian Institution: Cooper Hewitt, Smithsonian Design Museum",
+ },
+ },
+}
diff --git a/frontend/src/components/VMediaInfo/VByLine/meta/VByLine.stories.mdx b/frontend/src/components/VMediaInfo/VByLine/meta/VByLine.stories.mdx
deleted file mode 100644
index d7f94cca9..000000000
--- a/frontend/src/components/VMediaInfo/VByLine/meta/VByLine.stories.mdx
+++ /dev/null
@@ -1,62 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VByLine from "~/components/VMediaInfo/VByLine/VByLine.vue"
-
-import { image as testImage } from "~~/test/unit/fixtures/image"
-
-export const Template = (args) => ({
- template: `<div class="wrapper w-full inline-flex p-4"><VByLine v-bind="args" /></div>`,
- components: { VByLine },
- setup() {
- return { args }
- },
-})
-
-<Meta title="Components/VByLine" component={VByLine} />
-
-# VByLine
-
-<Description of={VByLine} />
-
-<ArgsTable of={VByLine} />
-
-<Canvas>
- <Story
- name="default"
- args={{
- media: {
- ...testImage,
- creator: "kellascat",
- source: "met",
- sourceName: "Metropolitan Museum",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Long titles use scrolling
-
-<Canvas>
- <Story
- name="long"
- args={{
- media: {
- ...testImage,
- creator: "Roland Folger Coffin, American, 1826–1888",
- source: "smithsonian_cooper_hewitt_museum",
- sourceName:
- "Smithsonian Institution: Cooper Hewitt, Smithsonian Design Museum",
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VMediaInfo/meta/VMediaLicense.stories.js b/frontend/src/components/VMediaInfo/meta/VMediaLicense.stories.js
new file mode 100644
index 000000000..ceaa92b12
--- /dev/null
+++ b/frontend/src/components/VMediaInfo/meta/VMediaLicense.stories.js
@@ -0,0 +1,137 @@
+import {
+ CC_LICENSES,
+ ALL_LICENSES,
+ LICENSE_VERSIONS,
+ PUBLIC_DOMAIN_MARKS,
+ DEPRECATED_CC_LICENSES,
+} from "~/constants/license"
+
+import VMediaLicense from "~/components/VMediaInfo/VMediaLicense.vue"
+
+const Template = (args) => ({
+ template: `<VMediaLicense v-bind="args"/>`,
+ components: { VMediaLicense },
+ setup() {
+ args.licenseUrl = `https://creativecommons.org/licenses/${args.license}/${args.licenseVersion}/`
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VMediaLicense",
+ component: VMediaLicense,
+
+ argTypes: {
+ license: {
+ options: ALL_LICENSES,
+ control: "select",
+ },
+ licenseVersion: {
+ options: LICENSE_VERSIONS,
+ control: "select",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+ inline: false,
+
+ args: {
+ license: ALL_LICENSES[0],
+ licenseVersion: LICENSE_VERSIONS[0],
+ },
+}
+
+export const PDM = {
+ render: Template.bind({}),
+ name: "PDM",
+ args: {
+ license: PUBLIC_DOMAIN_MARKS[0],
+ licenseVersion: "1.0",
+ },
+}
+
+export const CC0 = {
+ render: Template.bind({}),
+ name: "CC0",
+ args: {
+ license: PUBLIC_DOMAIN_MARKS[1],
+ licenseVersion: "1.0",
+ },
+}
+
+const getLicenseName = (license) => `CC ${license.toUpperCase()}`
+
+export const CC_BY = {
+ render: Template.bind({}),
+ name: getLicenseName(CC_LICENSES[0]),
+ args: {
+ license: CC_LICENSES[0],
+ licenseVersion: "4.0",
+ },
+}
+
+export const CC_BY_SA = {
+ render: Template.bind({}),
+ name: getLicenseName(CC_LICENSES[1]),
+ args: {
+ license: CC_LICENSES[1],
+ licenseVersion: "4.0",
+ },
+}
+
+export const CC_BY_ND = {
+ render: Template.bind({}),
+ name: getLicenseName(CC_LICENSES[2]),
+ args: {
+ license: CC_LICENSES[2],
+ licenseVersion: "4.0",
+ },
+}
+
+export const CC_BY_NC = {
+ render: Template.bind({}),
+ name: getLicenseName(CC_LICENSES[3]),
+ args: {
+ license: CC_LICENSES[3],
+ licenseVersion: "4.0",
+ },
+}
+
+export const CC_BY_NC_SA = {
+ render: Template.bind({}),
+ name: getLicenseName(CC_LICENSES[4]),
+ args: {
+ license: CC_LICENSES[4],
+ licenseVersion: "4.0",
+ },
+}
+
+export const CC_BY_NC_ND = {
+ render: Template.bind({}),
+ name: getLicenseName(CC_LICENSES[5]),
+ args: {
+ license: CC_LICENSES[5],
+ licenseVersion: "4.0",
+ },
+}
+
+export const SAMPLING = {
+ render: Template.bind({}),
+ name: "CC Sampling+",
+ args: {
+ license: DEPRECATED_CC_LICENSES[1],
+ licenseVersion: "1.0",
+ },
+}
+
+export const NC_SAMPLING = {
+ render: Template.bind({}),
+ name: "CC NC-Sampling+",
+ args: {
+ license: DEPRECATED_CC_LICENSES[0],
+ licenseVersion: "1.0",
+ },
+}
diff --git a/frontend/src/components/VMediaInfo/meta/VMediaLicense.stories.mdx b/frontend/src/components/VMediaInfo/meta/VMediaLicense.stories.mdx
deleted file mode 100644
index 0fcbf9cc1..000000000
--- a/frontend/src/components/VMediaInfo/meta/VMediaLicense.stories.mdx
+++ /dev/null
@@ -1,181 +0,0 @@
-import {
- Canvas,
- Story,
- Description,
- Meta,
- ArgsTable,
-} from "@storybook/addon-docs"
-
-import VMediaLicense from "~/components/VMediaInfo/VMediaLicense.vue"
-
-import { ALL_LICENSES, LICENSE_VERSIONS } from "~/constants/license"
-import { getLicenseUrl } from "~/utils/license"
-
-export const Template = (args) => ({
- template: `<VMediaLicense v-bind="args"/>`,
- components: { VMediaLicense },
- setup() {
- return { args }
- },
-})
-
-<Meta
- title="Components/VMediaLicense"
- component={VMediaLicense}
- argTypes={{
- license: {
- options: ALL_LICENSES,
- control: "select",
- },
- licenseVersion: {
- options: LICENSE_VERSIONS,
- control: "select",
- },
- }}
- args={{
- license: ALL_LICENSES[0],
- licenseVersion: LICENSE_VERSIONS[0],
- }}
-/>
-
-# VMediaLicense
-
-<Description of={VMediaLicense} />
-
-<ArgsTable of={VMediaLicense} />
-
-<!-- A large portion of this file is copied from the story for `VLicense`. -->
-
-It can display CC licenses.
-
-| License name | Abbreviation | Slug |
-| --------------------------------------- | ------------ | ---------- |
-| Attribution | CC BY | `by` |
-| Attribution-ShareAlike | CC BY-SA | `by-sa` |
-| Attribution-NoDerivatives | CC BY-ND | `by-nd` |
-| Attribution-NonCommercial | CC BY-NC | `by-nc` |
-| Attribution-NonCommercial-ShareAlike | CC BY-NC-SA | `by-nc-sa` |
-| Attribution-NonCommercial-NoDerivatives | CC BY-NC-ND | `by-nc-nd` |
-
-<Canvas>
- <Story
- name="CC BY"
- args={{
- license: "by",
- licenseVersion: "4.0",
- licenseUrl: getLicenseUrl("by", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-SA"
- args={{
- license: "by-sa",
- licenseVersion: "4.0",
- licenseUrl: getLicenseUrl("by-sa", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-ND"
- args={{
- license: "by-nd",
- licenseVersion: "4.0",
- licenseUrl: getLicenseUrl("by-nd", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-NC"
- args={{
- license: "by-nc",
- licenseVersion: "4.0",
- licenseUrl: getLicenseUrl("by-nc", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-NC-SA"
- args={{
- license: "by-nc-sa",
- licenseVersion: "4.0",
- licenseUrl: getLicenseUrl("by-nc-sa", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC BY-NC-ND"
- args={{
- license: "by-nc-nd",
- licenseVersion: "4.0",
- licenseUrl: getLicenseUrl("by-nc-nd", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-It can also display some public domain licenses.
-
-| License name | Abbreviation | Slug |
-| ------------------ | ------------ | ----- |
-| CC Zero | CC0 | `cc0` |
-| Public Domain Mark | - | `pdm` |
-
-<Canvas>
- <Story
- name="CC0"
- args={{
- license: "cc0",
- licenseVersion: "1.0",
- licenseUrl: getLicenseUrl("cc0", "1.0"),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="PDM"
- args={{
- license: "pdm",
- licenseVersion: "1.0",
- licenseUrl: getLicenseUrl("pdm", "4.0"),
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-It can also display some deprecated CC licenses.
-
-| License name | Abbreviation | Slug |
-| --------------------------- | --------------- | -------------- |
-| Sampling Plus | CC Sampling+ | `sampling+` |
-| NonCommercial Sampling Plus | CC NC-Sampling+ | `nc-sampling+` |
-
-<Canvas>
- <Story
- name="CC Sampling+"
- args={{
- license: "sampling+",
- licenseVersion: "",
- licenseUrl: getLicenseUrl("sampling+", ""),
- }}
- >
- {Template.bind({})}
- </Story>
- <Story
- name="CC NC-Sampling+"
- args={{
- license: "nc-sampling+",
- licenseVersion: "",
- licenseUrl: getLicenseUrl("nc-sampling+", ""),
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VMediaInfo/meta/v-media-reuse.stories.mdx b/frontend/src/components/VMediaInfo/meta/VMediaReuse.stories.js
similarity index 59%
rename from frontend/src/components/VMediaInfo/meta/v-media-reuse.stories.mdx
rename to frontend/src/components/VMediaInfo/meta/VMediaReuse.stories.js
index bb60ce89d..5cd8fd64a 100644
--- a/frontend/src/components/VMediaInfo/meta/v-media-reuse.stories.mdx
+++ b/frontend/src/components/VMediaInfo/meta/VMediaReuse.stories.js
@@ -1,14 +1,7 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
import VMediaReuse from "~/components/VMediaInfo/VMediaReuse.vue"
+import VLanguageSelect from "~/components/VLanguageSelect/VLanguageSelect.vue"
-export const image = {
+const image = {
id: "f9384235-b72e-4f1e-9b05-e1b116262a29",
frontendMediaType: "image",
title: "Cat",
@@ -26,34 +19,28 @@ export const image = {
"http://localhost:49153/v1/images/f9384235-b72e-4f1e-9b05-e1b116262a29/",
}
-<Meta title="Components/VMediaInfo/VMediaReuse" components={VMediaReuse} />
-
-export const Template = (args) => ({
+const Template = (args) => ({
template: `
<div class="flex flex-col gap-y-2">
<VLanguageSelect />
- <VMediaReuse v-bind="args" />
+ <VMediaReuse :media="media" />
</div>
`,
- components: { VMediaReuse },
+ components: { VMediaReuse, VLanguageSelect },
setup() {
- return { args }
+ return { media: args.media }
},
})
-# VMediaReuse
-
-<Description of={VMediaReuse} />
-
-<ArgsTable of={VMediaReuse} />
+export default {
+ title: "Components/VMediaInfo/VMediaReuse",
+ components: VMediaReuse,
+}
-<Canvas>
- <Story
- name="VMediaReuse"
- args={{
- media: image,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ name: "VMediaReuse",
+ args: {
+ media: image,
+ },
+}
diff --git a/frontend/src/components/VMediaInfo/meta/VMetadata.stories.mdx b/frontend/src/components/VMediaInfo/meta/VMetadata.stories.js
similarity index 79%
rename from frontend/src/components/VMediaInfo/meta/VMetadata.stories.mdx
rename to frontend/src/components/VMediaInfo/meta/VMetadata.stories.js
index f605e6a35..9bfd194b4 100644
--- a/frontend/src/components/VMediaInfo/meta/VMetadata.stories.mdx
+++ b/frontend/src/components/VMediaInfo/meta/VMetadata.stories.js
@@ -1,26 +1,16 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
+import { image as testImage } from "~~/test/unit/fixtures/image"
+import { getAudioObj } from "~~/test/unit/fixtures/audio"
import { useI18n } from "~/composables/use-i18n"
import { getMediaMetadata } from "~/utils/metadata"
import { useProviderStore } from "~/stores/provider"
-import { image as testImage } from "~~/test/unit/fixtures/image"
-import { getAudioObj } from "~~/test/unit/fixtures/audio"
-
import VMetadata from "~/components/VMediaInfo/VMetadata.vue"
import VLanguageSelect from "~/components/VLanguageSelect/VLanguageSelect.vue"
-export const testAudio = getAudioObj()
+const testAudio = getAudioObj()
-<Meta title="Components/VMediaInfo/VMetadata" components={VMetadata} />
-
-export const Template = (args) => ({
+const Template = (args) => ({
template: `
<div class="flex flex-col gap-y-2">
<VLanguageSelect />
@@ -28,8 +18,9 @@ export const Template = (args) => ({
<VMetadata
v-for="datum in data"
:key="datum.media.id"
- :media="datum.media"
:metadata="datum.metadata"
+ :media="datum.media"
+ v-bind="datum"
class="bg-white"/>
</section>
</div>
@@ -63,12 +54,12 @@ export const Template = (args) => ({
},
})
-# VMetadata
-
-<Description of={VMetadata} />
-
-<ArgsTable of={VMetadata} />
+export default {
+ title: "Components/VMediaInfo/VMetadata",
+ components: VMetadata,
+}
-<Canvas>
- <Story name="VMetadata">{Template.bind({})}</Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ name: "VMetadata",
+}
diff --git a/frontend/src/components/VModal/meta/VModal.stories.mdx b/frontend/src/components/VModal/meta/VModal.stories.js
similarity index 91%
rename from frontend/src/components/VModal/meta/VModal.stories.mdx
rename to frontend/src/components/VModal/meta/VModal.stories.js
index b3e725fb2..40d3e1515 100644
--- a/frontend/src/components/VModal/meta/VModal.stories.mdx
+++ b/frontend/src/components/VModal/meta/VModal.stories.js
@@ -1,32 +1,11 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
import { ref, computed } from "vue"
+
import VModal from "~/components/VModal/VModal.vue"
import VModalTarget from "~/components/VModal/VModalTarget.vue"
import VButton from "~/components/VButton.vue"
import VPopover from "~/components/VPopover/VPopover.vue"
-<Meta
- title="Components/VModal"
- components={VModal}
- argTypes={{
- hideOnEsc: { control: { type: "boolean" } },
- hideOnClickOutside: { control: { type: "boolean" } },
- autoFocusOnShow: { control: { type: "boolean" } },
- autoFocusOnHide: { control: { type: "boolean" } },
- label: { control: { type: "text" } },
- labelledBy: { control: { type: "text" } },
- useCustomInitialFocus: { control: { type: "boolean" } },
- }}
-/>
-
-export const Template = (args) => ({
+const Template = (args) => ({
template: `
<div>
<VModal v-bind="args" :initial-focus-element="resolvedInitialFocusElement">
@@ -81,19 +60,60 @@ export const Template = (args) => ({
},
})
-# VModal
+export default {
+ title: "Components/VModal",
+ components: VModal,
+
+ argTypes: {
+ hideOnEsc: {
+ control: {
+ type: "boolean",
+ },
+ },
+
+ hideOnClickOutside: {
+ control: {
+ type: "boolean",
+ },
+ },
+
+ autoFocusOnShow: {
+ control: {
+ type: "boolean",
+ },
+ },
-<Description of={VModal} />
+ autoFocusOnHide: {
+ control: {
+ type: "boolean",
+ },
+ },
-<ArgsTable of={VModal} />
+ label: {
+ control: {
+ type: "text",
+ },
+ },
-<Canvas>
- <Story
- name="Default"
- args={{
- useCustomInitialFocus: false,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
+ labelledBy: {
+ control: {
+ type: "text",
+ },
+ },
+
+ useCustomInitialFocus: {
+ control: {
+ type: "boolean",
+ },
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ useCustomInitialFocus: false,
+ },
+}
diff --git a/frontend/src/components/VPopover/meta/VPopover.stories.mdx b/frontend/src/components/VPopover/meta/VPopover.stories.js
similarity index 55%
rename from frontend/src/components/VPopover/meta/VPopover.stories.mdx
rename to frontend/src/components/VPopover/meta/VPopover.stories.js
index f700633e8..2b5781299 100644
--- a/frontend/src/components/VPopover/meta/VPopover.stories.mdx
+++ b/frontend/src/components/VPopover/meta/VPopover.stories.js
@@ -1,15 +1,7 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
import VPopover from "~/components/VPopover/VPopover.vue"
import VButton from "~/components/VButton.vue"
-export const popoverPlacements = [
+const popoverPlacements = [
"top",
"top-start",
"top-end",
@@ -24,24 +16,7 @@ export const popoverPlacements = [
"right-end",
]
-<Meta
- title="Components/VPopover"
- components={VPopover}
- argTypes={{
- hideOnEsc: { control: { type: "boolean" } },
- hideOnClickOutside: { control: { type: "boolean" } },
- autoFocusOnShow: { control: { type: "boolean" } },
- autoFocusOnHide: { control: { type: "boolean" } },
- placement: { options: [...popoverPlacements], control: { type: "radio" } },
- label: { control: { type: "text" } },
- labelledBy: { control: { type: "text" } },
- close: { action: "close" },
- open: { action: "open" },
- popoverItems: { control: { type: "number" } },
- }}
-/>
-
-export const DefaultPopoverStory = (args) => ({
+const DefaultPopoverStory = (args) => ({
template: `
<div>
<p>
@@ -64,7 +39,7 @@ export const DefaultPopoverStory = (args) => ({
},
})
-export const ControlStory = (args) => ({
+const ControlStory = (args) => ({
template: `
<VPopover v-bind="args" v-on="args">
<template #trigger="{ visible, a11yProps }">
@@ -85,28 +60,90 @@ export const ControlStory = (args) => ({
},
})
-<Description of={VPopover} />
+export default {
+ title: "Components/VPopover",
+ components: VPopover,
+
+ argTypes: {
+ hideOnEsc: {
+ control: {
+ type: "boolean",
+ },
+ },
+
+ hideOnClickOutside: {
+ control: {
+ type: "boolean",
+ },
+ },
+
+ autoFocusOnShow: {
+ control: {
+ type: "boolean",
+ },
+ },
-<ArgsTable of={VPopover} />
+ autoFocusOnHide: {
+ control: {
+ type: "boolean",
+ },
+ },
-## Default
+ placement: {
+ options: [...popoverPlacements],
-<Canvas>
- <Story name="Default" args={{ popoverItems: 1 }}>
- {DefaultPopoverStory.bind({})}
- </Story>
-</Canvas>
+ control: {
+ type: "radio",
+ },
+ },
-## Control
+ label: {
+ control: {
+ type: "text",
+ },
+ },
-<Canvas>
- <Story name="Control">{ControlStory.bind({})}</Story>
-</Canvas>
+ labelledBy: {
+ control: {
+ type: "text",
+ },
+ },
-## Two Popovers
+ close: {
+ action: "close",
+ },
+
+ open: {
+ action: "open",
+ },
+
+ popoverItems: {
+ control: {
+ type: "number",
+ },
+ },
+ },
+}
-<Canvas>
- <Story name="Two Popovers" args={{ popoverItems: 2 }}>
- {DefaultPopoverStory.bind({})}
- </Story>
-</Canvas>
+export const Default = {
+ render: DefaultPopoverStory.bind({}),
+ name: "Default",
+
+ args: {
+ popoverItems: 1,
+ },
+}
+
+export const Control = {
+ render: ControlStory.bind({}),
+ name: "Control",
+}
+
+export const TwoPopovers = {
+ render: DefaultPopoverStory.bind({}),
+ name: "Two Popovers",
+
+ args: {
+ popoverItems: 2,
+ },
+}
diff --git a/frontend/src/components/VRadio/meta/VRadio.stories.js b/frontend/src/components/VRadio/meta/VRadio.stories.js
new file mode 100644
index 000000000..475f2b8e5
--- /dev/null
+++ b/frontend/src/components/VRadio/meta/VRadio.stories.js
@@ -0,0 +1,73 @@
+import VRadio from "~/components/VRadio/VRadio.vue"
+
+const Template = (args) => ({
+ template: `
+ <div>
+ <VRadio :id="args.id" v-bind="args" v-on="args" :value_="args.value_">Label text</VRadio>
+ </div>
+ `,
+ components: { VRadio },
+ setup() {
+ return { args }
+ },
+})
+
+const vModelTemplate = (args) => ({
+ template: `
+ <div>
+ <form class="flex flex-col gap-2 mb-2">
+ <VRadio id="a" name="test" value_="A" v-model="picked">A</VRadio>
+ <VRadio id="b" name="test" value_="B" v-model="picked">B</VRadio>
+ </form>
+ {{ picked ?? 'None' }}
+ </div>
+ `,
+ data() {
+ return { picked: null }
+ },
+ components: { VRadio },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VRadio",
+ components: VRadio,
+
+ argTypes: {
+ change: {
+ action: "change",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ // if same as value, radio is checked
+ args: {
+ id: "default",
+ value_: "value",
+ modelValue: "modelValue",
+ },
+}
+
+export const Disabled = {
+ render: Template.bind({}),
+ name: "Disabled",
+
+ // if same as value, radio is checked
+ args: {
+ id: "disabled",
+ value_: "value",
+ modelValue: "modelValue",
+ disabled: true,
+ },
+}
+
+export const VModel = {
+ render: vModelTemplate.bind({}),
+ name: "v-model",
+}
diff --git a/frontend/src/components/VRadio/meta/VRadio.stories.mdx b/frontend/src/components/VRadio/meta/VRadio.stories.mdx
deleted file mode 100644
index 4bceb0a43..000000000
--- a/frontend/src/components/VRadio/meta/VRadio.stories.mdx
+++ /dev/null
@@ -1,95 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VRadio from "~/components/VRadio/VRadio.vue"
-
-<Meta
- title="Components/VRadio"
- components={VRadio}
- argTypes={{
- change: {
- action: "change",
- },
- }}
-/>
-
-export const Template = (args, { argTypes }) => ({
- template: `
- <div>
- <VRadio v-bind="$props" v-on="$props">Label text</VRadio>
- </div>
- `,
- components: { VRadio },
- props: Object.keys(argTypes),
-})
-
-# VRadio
-
-<Description of={VRadio} />
-
-<ArgsTable of={VRadio} />
-
-<Canvas>
- <Story
- name="Default"
- args={{
- id: "default",
- value_: "value",
- modelValue: "modelValue", // if same as value, radio is checked
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Attributes
-
-The component is a transparent wrapper over `<input>` so all attributes of the
-input element can be applied to it, e.g. `disabled`. It is recommended not to
-change the type as the field is specifically designed as a radio.
-
-<Canvas>
- <Story
- name="Disabled"
- args={{
- id: "disabled",
- value_: "value",
- modelValue: "modelValue", // if same as value, radio is checked
- disabled: true,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## v-model
-
-The recommended way to use it is with `v-model` mapping to a `String`. Ideally
-you would have more than one `VRadio` in a `<form>` with the same `name`
-attribute and mapped to the same `v-model` variable.
-
-export const vModelTemplate = (args, { argTypes }) => ({
- template: `
- <div>
- <form class="flex flex-col gap-2 mb-2">
- <VRadio id="a" name="test" value_="A" v-model="picked">A</VRadio>
- <VRadio id="b" name="test" value_="B" v-model="picked">B</VRadio>
- </form>
- {{ picked ?? 'None' }}
- </div>
- `,
- data() {
- return { picked: null }
- },
- components: { VRadio },
- props: Object.keys(argTypes),
-})
-
-<Canvas>
- <Story name="v-model">{vModelTemplate.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VRecentSearches/meta/VRecentSearches.stories.js b/frontend/src/components/VRecentSearches/meta/VRecentSearches.stories.js
new file mode 100644
index 000000000..b5c0ae76d
--- /dev/null
+++ b/frontend/src/components/VRecentSearches/meta/VRecentSearches.stories.js
@@ -0,0 +1,43 @@
+import VRecentSearches from "~/components/VRecentSearches/VRecentSearches.vue"
+
+const Template = (args) => ({
+ template: `
+ <VRecentSearches v-bind="args" v-on="args" />`,
+ components: { VRecentSearches },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VRecentSearches",
+ component: VRecentSearches,
+
+ argTypes: {
+ select: {
+ action: "select",
+ },
+
+ clear: {
+ action: "clear",
+ },
+
+ clearSingle: {
+ action: "clearSingle",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ entries: ["addition", "subtraction", "multiplication", "division"],
+ },
+}
+
+export const NoHistory = {
+ render: Template.bind({}),
+ name: "No history",
+}
diff --git a/frontend/src/components/VRecentSearches/meta/VRecentSearches.stories.mdx b/frontend/src/components/VRecentSearches/meta/VRecentSearches.stories.mdx
deleted file mode 100644
index 5a6c5d1ef..000000000
--- a/frontend/src/components/VRecentSearches/meta/VRecentSearches.stories.mdx
+++ /dev/null
@@ -1,55 +0,0 @@
-import {
- ArgsTable,
- Description,
- Meta,
- Canvas,
- Story,
-} from "@storybook/addon-docs"
-
-import VRecentSearches from "~/components/VRecentSearches/VRecentSearches.vue"
-
-<Meta
- title="Components/VRecentSearches"
- component={VRecentSearches}
- argTypes={{
- select: {
- action: "select",
- },
- clear: {
- action: "clear",
- },
- clearSingle: {
- action: "clearSingle",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `
- <VRecentSearches v-bind="args" v-on="args" />`,
- components: { VRecentSearches },
- setup() {
- return { args }
- },
-})
-
-# VRecentSearches
-
-<Description of={VRecentSearches} />
-
-<ArgsTable of={VRecentSearches} />
-
-<Canvas>
- <Story
- name="Default"
- args={{
- entries: ["addition", "subtraction", "multiplication", "division"],
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-<Canvas>
- <Story name="No history">{Template.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/VSafeBrowsing/meta/VSafeBrowsing.stories.js b/frontend/src/components/VSafeBrowsing/meta/VSafeBrowsing.stories.js
new file mode 100644
index 000000000..8e0fe228f
--- /dev/null
+++ b/frontend/src/components/VSafeBrowsing/meta/VSafeBrowsing.stories.js
@@ -0,0 +1,26 @@
+import VSafeBrowsing from "~/components/VSafeBrowsing/VSafeBrowsing.vue"
+
+const Template = (args) => ({
+ template: `<VSafeBrowsing v-bind="args" />`,
+ components: { VSafeBrowsing },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VSafeBrowsing",
+ component: VSafeBrowsing,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ // because it is present in the sidebar
+ parameters: {
+ viewport: {
+ defaultViewport: "xs",
+ },
+ },
+}
diff --git a/frontend/src/components/VSafeBrowsing/meta/VSafeBrowsing.stories.mdx b/frontend/src/components/VSafeBrowsing/meta/VSafeBrowsing.stories.mdx
deleted file mode 100644
index 77e62b96c..000000000
--- a/frontend/src/components/VSafeBrowsing/meta/VSafeBrowsing.stories.mdx
+++ /dev/null
@@ -1,28 +0,0 @@
-import { Canvas, Description, Meta, Story } from "@storybook/addon-docs"
-
-import VSafeBrowsing from "~/components/VSafeBrowsing/VSafeBrowsing.vue"
-
-<Meta title="Components/VSafeBrowsing" component={VSafeBrowsing} />
-
-export const Template = (args) => ({
- template: `<VSafeBrowsing v-bind="args" />`,
- components: { VSafeBrowsing },
- setup() {
- return { args }
- },
-})
-
-# VSafeBrowsing
-
-<Description of={VSafeBrowsing} />
-
-<Canvas>
- <Story
- name="Default"
- parameters={{
- viewport: { defaultViewport: "xs" }, // because it is present in the sidebar
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VSafetyWall/meta/VSafetyWall.stories.mdx b/frontend/src/components/VSafetyWall/meta/VSafetyWall.stories.js
similarity index 65%
rename from frontend/src/components/VSafetyWall/meta/VSafetyWall.stories.mdx
rename to frontend/src/components/VSafetyWall/meta/VSafetyWall.stories.js
index 75999d1c5..f5b35512a 100644
--- a/frontend/src/components/VSafetyWall/meta/VSafetyWall.stories.mdx
+++ b/frontend/src/components/VSafetyWall/meta/VSafetyWall.stories.js
@@ -1,10 +1,8 @@
-import { Canvas, Meta, Story } from "@storybook/addon-docs"
+import { SENSITIVITIES } from "~/constants/content-safety"
import VSafetyWall from "~/components/VSafetyWall/VSafetyWall.vue"
-import { SENSITIVITIES } from "~/constants/content-safety"
-
-export const Template = (args) => ({
+const Template = (args) => ({
template: `<VSafetyWall v-bind="args" :media="media" />`,
components: { VSafetyWall },
setup() {
@@ -32,27 +30,23 @@ export const Template = (args) => ({
},
})
-<Meta
- title="Components/VSafetyWall"
- component={VSafetyWall}
- argTypes={{
+export default {
+ title: "Components/VSafetyWall",
+ component: VSafetyWall,
+
+ argTypes: {
sensitivities: {
control: { type: "check" },
options: SENSITIVITIES,
},
- }}
- args={{
- sensitivities: SENSITIVITIES,
- }}
-/>
-
-# VSafetyWall
+ },
-This component replaces a single result media view with a full screen "wall"
-allowing for opt-in to displaying sensitive media. The component also displays
-the specific reasons why a piece of media has been designated sensitive, which
-are supplied by the `sensitivity` property of the required `media` prop.
+ args: {
+ sensitivities: SENSITIVITIES,
+ },
+}
-<Canvas>
- <Story name="default">{Template.bind({})}</Story>
-</Canvas>
+export const Default = {
+ render: Template.bind({}),
+ name: "default",
+}
diff --git a/frontend/src/components/VSelectField/meta/VSelectField.stories.js b/frontend/src/components/VSelectField/meta/VSelectField.stories.js
new file mode 100644
index 000000000..cac1b0420
--- /dev/null
+++ b/frontend/src/components/VSelectField/meta/VSelectField.stories.js
@@ -0,0 +1,120 @@
+import { ref } from "vue"
+
+import VIcon from "~/components/VIcon/VIcon.vue"
+import VSelectField from "~/components/VSelectField/VSelectField.vue"
+
+const Template = (args) => ({
+ template: `
+ <VSelectField :field-id="fieldId" :label-text="labelText" v-bind="rest" v-on="rest" />`,
+ components: { VSelectField },
+ setup() {
+ const { fieldId, labelText, ...rest } = args
+ return { fieldId, labelText, rest }
+ },
+})
+
+const baseArgs = {
+ fieldId: "fruit",
+ blankText: "Fruit",
+ labelText: "Fruit",
+ choices: [
+ { key: "a", text: "Apple" },
+ { key: "b", text: "Banana" },
+ { key: "c", text: "Cantaloupe" },
+ ],
+}
+
+const vModelTemplate = (args) => ({
+ template: `
+ <div>
+ <VSelectField :field-id="args.fieldId" :label-text="args.labelText" v-model="choice" v-bind="args" />
+ {{ choice }}
+ </div>
+ `,
+ components: { VSelectField },
+ setup() {
+ const choice = ref("a")
+ return { choice, args }
+ },
+})
+
+const SlotTemplate = (args) => ({
+ template: `
+ <VSelectField :field-id="args.fieldId" :label-text="args.labelText" v-bind="args">
+ <template #start>
+ <VIcon name="radiomark" />
+ </template>
+ </VSelectField>
+ `,
+ components: { VSelectField, VIcon },
+ setup() {
+ return { args }
+ },
+})
+
+const ConstraintTemplate = (args) => ({
+ template: `<VSelectField :field-id="args.fieldId" :label-text="args.labelText"class="max-w-[100px]" v-bind="args"><template #start><VIcon name="radiomark" /></template></VSelectField>`,
+ components: { VSelectField, VIcon },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VSelectField",
+ component: VSelectField,
+
+ argTypes: {
+ "update:modelValue": {
+ action: "update:modelValue",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+ args: baseArgs,
+}
+
+export const VModel = {
+ render: vModelTemplate.bind({}),
+ name: "v-model",
+ args: baseArgs,
+}
+
+export const WithIcon = {
+ render: SlotTemplate.bind({}),
+ name: "With icon",
+ args: baseArgs,
+}
+
+export const WithConstraints = {
+ render: ConstraintTemplate.bind({}),
+ name: "With constraints",
+
+ args: {
+ ...baseArgs,
+
+ choices: [
+ {
+ key: "short",
+ text: "Kiwi",
+ },
+ {
+ key: "long",
+ text: "Bob Gordon American Elderberry",
+ },
+ ],
+ },
+}
+
+export const WithoutBorder = {
+ render: Template.bind({}),
+ name: "Without border",
+
+ args: {
+ ...baseArgs,
+ variant: "borderless",
+ },
+}
diff --git a/frontend/src/components/VSelectField/meta/VSelectField.stories.mdx b/frontend/src/components/VSelectField/meta/VSelectField.stories.mdx
deleted file mode 100644
index 61e77774c..000000000
--- a/frontend/src/components/VSelectField/meta/VSelectField.stories.mdx
+++ /dev/null
@@ -1,142 +0,0 @@
-import {
- Description,
- ArgsTable,
- Meta,
- Canvas,
- Story,
-} from "@storybook/addon-docs"
-
-import { ref } from "vue"
-import VIcon from "~/components/VIcon/VIcon.vue"
-import VSelectField from "~/components/VSelectField/VSelectField.vue"
-
-export const baseArgs = {
- fieldId: "fruit",
- blankText: "Fruit",
- labelText: "Fruit",
- choices: [
- { key: "a", text: "Apple" },
- { key: "b", text: "Banana" },
- { key: "c", text: "Cantaloupe" },
- ],
-}
-
-<Meta
- title="Components/VSelectField"
- component={VSelectField}
- argTypes={{
- "update:modelValue": {
- action: "update:modelValue",
- },
- }}
- args={{
- ...baseArgs,
- }}
-/>
-
-export const Template = (args) => ({
- template: `
- <VSelectField v-bind="args" v-on="args" />`,
- components: { VSelectField },
- setup() {
- return { args }
- },
-})
-
-# VSelectField
-
-<Description of={VSelectField} />
-
-<ArgsTable of={VSelectField} />
-
-<Canvas>
- <Story name="Default">{Template.bind({})}</Story>
-</Canvas>
-
-The recommended way to use it is with `v-model` mapping to a `String`. This
-string value will be the `key` field of the selected choice.
-
-export const vModelTemplate = (args) => ({
- template: `
- <div>
- <VSelectField v-model="choice" v-bind="args" />
- {{ choice }}
- </div>
- `,
- components: { VSelectField },
- setup() {
- const choice = ref("a")
- return { choice, args }
- },
-})
-
-<Canvas>
- <Story name="v-model">{vModelTemplate.bind({})}</Story>
-</Canvas>
-
-## With icon
-
-An icon, or anything else of a 24px &times; 24px size, can be added before the
-dropdown by populating the `start` slot.
-
-export const SlotTemplate = (args) => ({
- template: `
- <VSelectField v-bind="args">
- <template #start>
- <VIcon name="radiomark" />
- </template>
- </VSelectField>
- `,
- components: { VSelectField, VIcon },
- setup() {
- return { args }
- },
-})
-
-<Canvas>
- <Story name="With icon">{SlotTemplate.bind({})}</Story>
-</Canvas>
-
-## With constraints
-
-Note that the `max-width` CSS property can be set on a `VSelectField` but that
-only applies to the rest state click target, the menu is unaffected. This means
-once a long option is selected, it will get clipped.
-
-export const ConstraintTemplate = (args) => ({
- template: `
- <VSelectField class="max-w-[100px]" v-bind="args" />`,
- components: { VSelectField },
- setup() {
- return { args }
- },
-})
-
-<Canvas>
- <Story
- name="With constraints"
- args={{
- ...baseArgs,
- choices: [
- { key: "short", text: "Kiwi" },
- {
- key: "long",
- text: "Bob Gordon American Elderberry",
- },
- ],
- }}
- >
- {ConstraintTemplate.bind({})}
- </Story>
-</Canvas>
-
-## Without border
-
-There is a variant of the select field without the border, currently used only
-on the 404 page.
-
-<Canvas>
- <Story name="Without border" args={{ ...baseArgs, variant: "borderless" }}>
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VSkeleton/meta/VGridSkeleton.stories.js b/frontend/src/components/VSkeleton/meta/VGridSkeleton.stories.js
new file mode 100644
index 000000000..25931e6c0
--- /dev/null
+++ b/frontend/src/components/VSkeleton/meta/VGridSkeleton.stories.js
@@ -0,0 +1,41 @@
+import VGridSkeleton from "~/components/VSkeleton/VGridSkeleton.vue"
+
+const Template = (args) => ({
+ template: `<VGridSkeleton v-bind="args" />`,
+ components: { VGridSkeleton },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/Skeleton",
+ component: VGridSkeleton,
+}
+
+export const AllTab = {
+ render: Template.bind({}),
+ name: "All tab",
+
+ args: {
+ isForTab: "all",
+ },
+}
+
+export const ImageTab = {
+ render: Template.bind({}),
+ name: "Image tab",
+
+ args: {
+ isForTab: "image",
+ },
+}
+
+export const AudioTab = {
+ render: Template.bind({}),
+ name: "Audio tab",
+
+ args: {
+ isForTab: "audio",
+ },
+}
diff --git a/frontend/src/components/VSkeleton/meta/VGridSkeleton.stories.mdx b/frontend/src/components/VSkeleton/meta/VGridSkeleton.stories.mdx
deleted file mode 100644
index 6e44e265b..000000000
--- a/frontend/src/components/VSkeleton/meta/VGridSkeleton.stories.mdx
+++ /dev/null
@@ -1,49 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VGridSkeleton from "~/components/VSkeleton/VGridSkeleton.vue"
-
-<Meta title="Components/Skeleton" component={VGridSkeleton} />
-
-export const Template = (args) => ({
- template: `<VGridSkeleton v-bind="args" />`,
- components: { VGridSkeleton },
- setup() {
- return { args }
- },
-})
-
-# Skeleton
-
-<Description of={VGridSkeleton} />
-
-<ArgsTable of={VGridSkeleton} />
-
-## Grid skeleton for "All" tab
-
-<Canvas>
- <Story name="All tab" args={{ isForTab: "all" }}>
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## Grid skeleton for "Image" tab
-
-<Canvas>
- <Story name="Image tab" args={{ isForTab: "image" }}>
- {Template.bind({})}
- </Story>
-</Canvas>
-
-## List skeleton for "Audio" tab
-
-<Canvas>
- <Story name="Audio tab" args={{ isForTab: "audio" }}>
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VSvg/meta/VSvg.stories.mdx b/frontend/src/components/VSvg/meta/VSvg.stories.mdx
deleted file mode 100644
index 6f58dd3ad..000000000
--- a/frontend/src/components/VSvg/meta/VSvg.stories.mdx
+++ /dev/null
@@ -1,66 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VSvg from "~/components/VSvg/VSvg.vue"
-
-import spriteData from "~svgsprite/sprites.json"
-
-<Meta title="Components/VSvg" component={VSvg} />
-
-export const svgImages = spriteData.filter(
- (sprite) => sprite.name === "images"
-)[0].symbols
-
-export const Template = (args) => ({
- template: `<VSvg v-bind="args" />`,
- components: { VSvg },
- setup() {
- return { args }
- },
-})
-
-# SVG images
-
-<Description of={VSvg} />
-
-<ArgsTable of={VSvg} />
-
-To display the svg, pass the name of the svg file as a prop, and add `viewbox`
-or `width`/`height` pair.
-
-```html
-<VSvg name="image-name" />
-```
-
-<Canvas>
- <Story
- name="Default"
- args={{
- name: "wordpress",
- width: "100",
- height: "100",
- }}
- argTypes={{
- name: {
- options: svgImages,
- control: { type: "select" },
- },
- viewbox: {
- control: { type: "text" },
- },
- width: {
- control: { type: "text" },
- },
- height: {
- control: { type: "text" },
- },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VTabs/meta/VTabs.stories.js b/frontend/src/components/VTabs/meta/VTabs.stories.js
new file mode 100644
index 000000000..882c56cc7
--- /dev/null
+++ b/frontend/src/components/VTabs/meta/VTabs.stories.js
@@ -0,0 +1,66 @@
+import VTabs from "~/components/VTabs/VTabs.vue"
+import VTabPanel from "~/components/VTabs/VTabPanel.vue"
+import VTab from "~/components/VTabs/VTab.vue"
+
+const Template = (args) => ({
+ template: `<VTabs :label="label" :selected-id="selectedId" v-bind="rest" v-on="rest"><template #tabs>
+<VTab id='1'>Tab1</VTab><VTab id='2'>Tab2</VTab><VTab id='3'>Tab3</VTab>
+</template>
+<VTabPanel id='1'>Page 1 content</VTabPanel>
+<VTabPanel id='2'>Page 2 content</VTabPanel>
+<VTabPanel id='3'>Page 3 content</VTabPanel>
+</VTabs>`,
+ components: { VTabs, VTabPanel, VTab },
+ subcomponents: { VTab, VTabPanel },
+ setup() {
+ const { label, selectedId, ...rest } = args
+ return { label, selectedId, rest }
+ },
+})
+
+export default {
+ components: { VTabPanel, VTabs },
+ subcomponents: { VTabPanel, VTab },
+ title: "Components/VTabs",
+ component: VTabs,
+
+ argTypes: {
+ variant: {
+ options: ["bordered", "plain"],
+
+ control: {
+ type: "radio",
+ },
+ },
+
+ close: {
+ action: "close",
+ },
+
+ change: {
+ action: "change",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+
+ args: {
+ label: "Default tabs story",
+ selectedId: "1",
+ },
+}
+
+export const ManualPlainTabs = {
+ render: Template.bind({}),
+ name: "Manual plain tabs",
+
+ args: {
+ label: "Manual plain tabs",
+ selectedId: "1",
+ manual: true,
+ variant: "plain",
+ },
+}
diff --git a/frontend/src/components/VTabs/meta/VTabs.stories.mdx b/frontend/src/components/VTabs/meta/VTabs.stories.mdx
deleted file mode 100644
index a3e05e613..000000000
--- a/frontend/src/components/VTabs/meta/VTabs.stories.mdx
+++ /dev/null
@@ -1,99 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VTabs from "~/components/VTabs/VTabs.vue"
-import VTabPanel from "~/components/VTabs/VTabPanel.vue"
-import VTab from "~/components/VTabs/VTab.vue"
-
-<Meta
- title="Components/VTabs"
- component={VTabs}
- argTypes={{
- variant: {
- options: ["bordered", "plain"],
- control: { type: "radio" },
- },
- close: {
- action: "close",
- },
- change: {
- action: "change",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VTabs v-bind="args" v-on="args"><template #tabs>
-<VTab id='1'>Tab1</VTab><VTab id='2'>Tab2</VTab><VTab id='3'>Tab3</VTab>
-</template>
-<VTabPanel id='1'>Page 1 content</VTabPanel>
-<VTabPanel id='2'>Page 2 content</VTabPanel>
-<VTabPanel id='3'>Page 3 content</VTabPanel>
-</VTabs>`,
- component: { VTabs },
- subcomponents: { VTab, VTabPanel },
- setup() {
- return { args }
- },
-})
-
-# Tabs
-
-<Description of={VTabs} />
-
-<ArgsTable of={VTabs} />
-
-## Default tabs
-
-By default, tabs are bordered and use automatic activation of the tab panel when
-the tab is focused on, such as the attribution panels in Openverse.
-
-<Canvas>
- <Story
- name="Default"
- args={{
- label: "Default tabs story",
- selectedId: "1",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-### Navigation
-
-`←` and `→`: changes the focused (and selected, if not manual) tab to previous
-or next. Tab navigation wraps, so if you click `→` on the last tab, you select
-the first tab.
-
-`tab`: navigate to the tablist and then to the selected tabpanel. The tabs use
-'rowing index' to only allow to tab to the currently selected tab using
-keyboard.
-
-`home`, `end`: set the first or the last tab as focused (or selected).
-
-## Manual plain tabs
-
-To activate the tabs using keyboard, you need to focus on the tab you want by
-using the `Tab` key, and then click `Space` or `Enter`.
-
-These tabs also use the second available variant, `plain`.
-
-<Canvas>
- <Story
- name="Manual plain tabs"
- args={{
- label: "Manual plain tabs",
- selectedId: "1",
- manual: true,
- variant: "plain",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/VTag/meta/VTag.stories.js b/frontend/src/components/VTag/meta/VTag.stories.js
new file mode 100644
index 000000000..f6edb66be
--- /dev/null
+++ b/frontend/src/components/VTag/meta/VTag.stories.js
@@ -0,0 +1,28 @@
+import VTag from "~/components/VTag/VTag.vue"
+
+const Template = (args) => ({
+ template: `<VTag :href="args.href" v-bind="args">{{ args.title }}</VTag>`,
+ components: { VTag },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VTag",
+ component: VTag,
+
+ argTypes: {
+ title: { type: "text" },
+ href: { type: "text" },
+ },
+ args: {
+ title: "cat",
+ href: "#",
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "default",
+}
diff --git a/frontend/src/components/VTag/meta/VTag.stories.mdx b/frontend/src/components/VTag/meta/VTag.stories.mdx
deleted file mode 100644
index ba4fc6b90..000000000
--- a/frontend/src/components/VTag/meta/VTag.stories.mdx
+++ /dev/null
@@ -1,48 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VTag from "~/components/VTag/VTag.vue"
-
-<Meta
- title="Components/VTag"
- component={VTag}
- argTypes={{
- title: {
- type: "text",
- },
- href: {
- type: "text",
- },
- }}
-/>
-
-export const Template = (args) => ({
- template: `<VTag v-bind="args"/>`,
- components: { VTag },
- setup() {
- return { args }
- },
-})
-
-# VTag
-
-<Description of={VTag} />
-
-<ArgsTable of={VTag} />
-
-<Canvas>
- <Story
- name="default"
- args={{
- title: "cat",
- href: "#",
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/meta/CustomButtonComponents.stories.js b/frontend/src/components/meta/CustomButtonComponents.stories.js
new file mode 100644
index 000000000..c9b9305e2
--- /dev/null
+++ b/frontend/src/components/meta/CustomButtonComponents.stories.js
@@ -0,0 +1,31 @@
+import { useMediaStore } from "~/stores/media"
+
+import VLoadMore from "~/components/VLoadMore.vue"
+
+const Template = (args) => ({
+ template: `
+ <div id="wrapper" class="flex p-4"><VLoadMore kind="search" search-type="image" search-term="cat" :is-fetching="false" v-bind="args" /></div>
+ `,
+ components: { VLoadMore },
+ setup() {
+ const mediaStore = useMediaStore()
+ mediaStore._startFetching("image")
+ mediaStore.results.image.count = 1
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/CustomButtonComponents",
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "VLoadMore",
+
+ parameters: {
+ viewport: {
+ defaultViewport: "sm",
+ },
+ },
+}
diff --git a/frontend/src/components/meta/CustomButtonComponents.stories.mdx b/frontend/src/components/meta/CustomButtonComponents.stories.mdx
deleted file mode 100644
index d93effa84..000000000
--- a/frontend/src/components/meta/CustomButtonComponents.stories.mdx
+++ /dev/null
@@ -1,47 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import VLoadMore from "~/components/VLoadMore.vue"
-import { useMediaStore } from "~/stores/media"
-
-<Meta title="Components/CustomButtonComponents" />
-
-export const Template = (args) => ({
- template: `
- <div id="wrapper" class="flex p-4"><VLoadMore v-bind="args" /></div>
- `,
- components: { VLoadMore },
- setup() {
- const mediaStore = useMediaStore()
- mediaStore._startFetching("image")
- mediaStore.results.image.count = 1
- return { args }
- },
-})
-
-# VLoadMore Button
-
-<Description of={VLoadMore} />
-
-<ArgsTable of={VLoadMore} />
-
-<Canvas>
- <Story
- name="VLoadMore"
- parameters={{
- viewport: { defaultViewport: "sm" },
- }}
- args={{
- kind: "search",
- searchType: "image",
- searchTerm: "cat",
- isFetching: false,
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/meta/Focus.stories.js b/frontend/src/components/meta/Focus.stories.js
new file mode 100644
index 000000000..4ed416379
--- /dev/null
+++ b/frontend/src/components/meta/Focus.stories.js
@@ -0,0 +1,74 @@
+import { WithScreenshotArea } from "~~/.storybook/decorators/with-screenshot-area"
+
+const GetTemplate = (irrelevantClassNames) => (args) => ({
+ template: `
+ <div
+ class="h-30 w-30 flex items-center justify-center ${irrelevantClassNames}"
+ :class="args.classNames"
+ data-testid="focus-target"
+ tabindex="0"
+ >
+ Focus on me
+ </div>`,
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Meta/Focus",
+ decorators: [WithScreenshotArea],
+}
+
+export const SlimTransparent = {
+ render: GetTemplate(
+ "border border-dark-charcoal-40 hover:border-dark-charcoal"
+ ).bind({}),
+ name: "Slim transparent",
+
+ args: {
+ classNames: ["focus-slim-tx"],
+ },
+}
+
+export const SlimFilled = {
+ render: GetTemplate("bg-dark-charcoal text-white border border-tx").bind({}),
+ name: "Slim filled",
+
+ args: {
+ classNames: ["focus-slim-filled"],
+ },
+}
+
+export const SlimFilledBorderless = {
+ render: GetTemplate("bg-pink text-white").bind({}),
+ name: "Slim filled borderless",
+
+ args: {
+ classNames: ["focus-slim-borderless-filled"],
+ },
+}
+
+export const BoldFilled = {
+ render: GetTemplate("bg-yellow text-dark-charcoal").bind({}),
+ name: "Bold filled",
+
+ args: {
+ classNames: ["focus-bold-filled"],
+ },
+}
+
+export const Colored = {
+ render: GetTemplate("bg-dark-charcoal text-white border border-tx").bind({}),
+ name: "Colored",
+
+ args: {
+ classNames: ["focus-slim-tx-yellow"],
+ },
+
+ parameters: {
+ backgrounds: {
+ default: "Dark charcoal",
+ },
+ },
+}
diff --git a/frontend/src/components/meta/Focus.stories.mdx b/frontend/src/components/meta/Focus.stories.mdx
deleted file mode 100644
index 48e82e0fb..000000000
--- a/frontend/src/components/meta/Focus.stories.mdx
+++ /dev/null
@@ -1,94 +0,0 @@
-import { Meta, Canvas, Story } from "@storybook/addon-docs"
-
-import { WithScreenshotArea } from "~~/.storybook/decorators/with-screenshot-area"
-
-<Meta title="Meta/Focus" decorators={[WithScreenshotArea]} />
-
-export const GetTemplate = (irrelevantClassNames) => (args) => ({
- template: `
- <div
- class="h-30 w-30 flex items-center justify-center ${irrelevantClassNames}"
- :class="args.classNames"
- data-testid="focus-target"
- tabindex="0"
- >
- Focus on me
- </div>`,
- setup() {
- return { args }
- },
-})
-
-# Focus
-
-Focus styles are defined across two axes: thickness (slim or bold) and style
-(transparent or filled). However, there is no bold-transparent variant.
-
-The transparent and filled styles work best if the element has a border and no
-background color.
-
-Both the outer and inner strokes in filled border variants are box-shadows.
-
-## Slim transparent
-
-An outer stroke (colored) of 1.5px is applied to the component and the existing
-border is turned transparent.
-
-<Canvas>
- <Story name="Slim transparent" args={{ classNames: ["focus-slim-tx"] }}>
- {GetTemplate(
- "border border-dark-charcoal-40 hover:border-dark-charcoal"
- ).bind({})}
- </Story>
-</Canvas>
-
-## Slim filled - for bordered elements
-
-A colored outer stroke of 1.5px and a white inner stroke of 1.5px overlapping
-the border are both applied to the component.
-
-<Canvas>
- <Story name="Slim filled" args={{ classNames: ["focus-slim-filled"] }}>
- {GetTemplate("bg-dark-charcoal text-white border border-tx").bind({})}
- </Story>
-</Canvas>
-
-## Slim filled borderless - for elements without a border
-
-Similar to "slim filled", a colored outer stroke of 1.5px and a white inner
-stroke of 1.5px are applied to the component.
-
-<Canvas>
- <Story
- name="Slim filled borderless"
- args={{ classNames: ["focus-slim-borderless-filled"] }}
- >
- {GetTemplate("bg-pink text-white").bind({})}
- </Story>
-</Canvas>
-
-## Bold filled
-
-A colored outer stroke of 3.0px and a white inner stroke of 3.0px are both
-applied to the component.
-
-<Canvas>
- <Story name="Bold filled" args={{ classNames: ["focus-bold-filled"] }}>
- {GetTemplate("bg-yellow text-dark-charcoal").bind({})}
- </Story>
-</Canvas>
-
-## Colored
-
-The ring may be colored with a `-<color>` suffix after the appropriate class. If
-no color is set, the default is assumed to be pink.
-
-<Canvas>
- <Story
- name="Colored"
- args={{ classNames: ["focus-slim-tx-yellow"] }}
- parameters={{ backgrounds: { default: "Dark charcoal" } }}
- >
- {GetTemplate("bg-dark-charcoal text-white border border-tx").bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/meta/VBackToSearchResultsLink.stories.js b/frontend/src/components/meta/VBackToSearchResultsLink.stories.js
new file mode 100644
index 000000000..4c8505311
--- /dev/null
+++ b/frontend/src/components/meta/VBackToSearchResultsLink.stories.js
@@ -0,0 +1,16 @@
+import VBackToSearchResultsLink from "~/components/VBackToSearchResultsLink.vue"
+
+const Template = () => ({
+ template: `<VBackToSearchResultsLink href="#" id="123" />`,
+ components: { VBackToSearchResultsLink },
+})
+
+export default {
+ title: "Components/VBackToSearchResultsLink",
+ component: VBackToSearchResultsLink,
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/meta/VBackToSearchResultsLink.stories.mdx b/frontend/src/components/meta/VBackToSearchResultsLink.stories.mdx
deleted file mode 100644
index 6a0bdc849..000000000
--- a/frontend/src/components/meta/VBackToSearchResultsLink.stories.mdx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { Description, Meta, Canvas, Story } from "@storybook/addon-docs"
-
-import VBackToSearchResultsLink from "~/components/VBackToSearchResultsLink.vue"
-
-<Meta
- title="Components/VBackToSearchResultsLink"
- component={VBackToSearchResultsLink}
-/>
-
-export const Template = (args) => ({
- template: `<VBackToSearchResultsLink v-bind="args" />`,
- components: { VBackToSearchResultsLink },
- setup() {
- return { args }
- },
-})
-
-# VBackToSearchResultsLink
-
-<Description of={VBackToSearchResultsLink} />
-
-<Canvas>
- <Story name="Default" args={{ href: "#", id: "123" }}>
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/meta/VButton.stories.js b/frontend/src/components/meta/VButton.stories.js
new file mode 100644
index 000000000..c012a8b49
--- /dev/null
+++ b/frontend/src/components/meta/VButton.stories.js
@@ -0,0 +1,175 @@
+import { buttonForms, buttonSizes, buttonVariants } from "~/types/button"
+import { capitalCase } from "~/utils/case"
+
+import VButton from "~/components/VButton.vue"
+import VIcon from "~/components/VIcon/VIcon.vue"
+
+const buttonVariantGroups = {
+ filled: buttonVariants.filter((variant) => variant.startsWith("filled-")),
+ bordered: buttonVariants.filter((variant) => variant.startsWith("bordered-")),
+ transparent: buttonVariants.filter((variant) =>
+ variant.startsWith("transparent-")
+ ),
+}
+
+const Template = (args) => ({
+ template: `
+ <div class="flex"><div id="wrapper"
+ class="px-4 h-16 flex items-center justify-center"
+ :class="variant.startsWith('transparent') ? 'bg-dark-charcoal-06': 'bg-white'">
+ <VButton :size="size" :variant="variant" v-bind="rest" class="description-bold" v-on="rest" href="/">
+ Code is Poetry
+ </VButton>
+ </div></div>
+ `,
+ components: { VButton },
+ setup() {
+ const { size, variant, ...rest } = args
+ return { size, variant, rest, args }
+ },
+})
+
+const TemplateWithIcons = (args) => ({
+ template: `
+<div class="flex flex-col items-center gap-4 flex-wrap">
+ <VButton :variant="args.variant" :size="args.size" :has-icon-start="true">
+ <VIcon name="replay" />Button
+ </VButton>
+ <VButton :variant="args.variant" :size="args.size" has-icon-end>
+ Button<VIcon name="external-link" />
+ </VButton>
+ <VButton :variant="args.variant" :size="args.size" has-icon-start has-icon-end>
+ <VIcon name="replay" />Button<VIcon name="external-link" />
+ </VButton>
+</div>`,
+ components: { VButton, VIcon },
+ setup() {
+ return { args }
+ },
+})
+
+const VariantsTemplate = (args) => ({
+ template: `
+<div class="flex gap-4 flex-wrap">
+ <VButton v-for="variant in variants"
+ :variant="variant"
+ :key="variant"
+ class="description-bold"
+ v-bind="buttonArgs">
+ {{ capitalize(variant) }}
+ </VButton>
+ </div>`,
+ components: { VButton },
+ methods: {
+ capitalize(str) {
+ return capitalCase(str)
+ },
+ },
+ setup() {
+ const { variants, ...buttonArgs } = args
+ return { variants, buttonArgs }
+ },
+})
+
+export default {
+ title: "Components/VButton",
+ components: VButton,
+ parameters: {
+ viewport: {
+ defaultViewport: "sm",
+ },
+ },
+ args: {
+ size: "medium",
+ },
+ argTypes: {
+ as: {
+ options: buttonForms,
+ control: {
+ type: "radio",
+ },
+ },
+
+ variant: {
+ options: buttonVariants,
+ },
+
+ pressed: {
+ control: "boolean",
+ },
+
+ size: {
+ options: buttonSizes,
+ control: {
+ type: "radio",
+ },
+ },
+
+ disabled: {
+ control: "boolean",
+ },
+
+ focusableWhenDisabled: {
+ control: "boolean",
+ },
+
+ type: {
+ control: "text",
+ },
+
+ click: {
+ action: "click",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "VButton",
+
+ args: {
+ variant: "filled-pink",
+ },
+}
+
+export const Filled = VariantsTemplate.bind({})
+Filled.args = {
+ variants: buttonVariantGroups.filled,
+}
+
+export const Bordered = {
+ render: VariantsTemplate.bind({}),
+ name: "bordered",
+
+ args: {
+ variants: buttonVariantGroups.bordered,
+ },
+}
+
+export const Transparent = {
+ render: VariantsTemplate.bind({}),
+ name: "transparent",
+
+ args: {
+ variants: buttonVariantGroups.transparent,
+ },
+}
+
+export const Icons = {
+ render: TemplateWithIcons.bind({}),
+ name: "icons",
+
+ args: {
+ variant: "bordered-dark",
+ },
+
+ argTypes: {
+ pressed: { control: "boolean" },
+
+ size: { options: buttonSizes, control: { type: "radio" } },
+
+ variant: { options: buttonVariants },
+
+ disabled: { control: "boolean" },
+ },
+}
diff --git a/frontend/src/components/meta/VButton.stories.mdx b/frontend/src/components/meta/VButton.stories.mdx
deleted file mode 100644
index b55126dc3..000000000
--- a/frontend/src/components/meta/VButton.stories.mdx
+++ /dev/null
@@ -1,216 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import { buttonForms, buttonSizes, buttonVariants } from "~/types/button"
-import { capitalCase } from "~/utils/case"
-import VButton from "~/components/VButton.vue"
-import VIcon from "~/components/VIcon/VIcon.vue"
-
-<Meta title="Components/VButton" components={VButton} />
-
-export const Template = (args) => ({
- template: `
- <div class="flex"><div id="wrapper"
- class="px-4 h-16 flex items-center justify-center"
- :class="args?.variant.startsWith('transparent') ? 'bg-dark-charcoal-06': 'bg-white'">
- <VButton v-bind="args" class="description-bold" v-on="args" href="/">
- Code is Poetry
- </VButton>
- </div></div>
- `,
- components: { VButton },
- setup() {
- return { args }
- },
-})
-
-export const TemplateWithIcons = (args) => ({
- template: `
-<div class="flex flex-col items-center gap-4 flex-wrap">
- <VButton :variant="args.variant" :size="args.size" :has-icon-start="true">
- <VIcon name="replay" />Button
- </VButton>
- <VButton :variant="args.variant" :size="args.size" has-icon-end>
- Button<VIcon name="external-link" />
- </VButton>
- <VButton :variant="args.variant" :size="args.size" has-icon-start has-icon-end>
- <VIcon name="replay" />Button<VIcon name="external-link" />
- </VButton>
-</div>`,
- components: { VButton, VIcon },
- setup() {
- return { args }
- },
-})
-
-# VButton
-
-<Description of={VButton} />
-
-<ArgsTable of={VButton} />
-
-<Canvas>
- <Story
- name="VButton"
- parameters={{
- viewport: { defaultViewport: "sm" },
- }}
- args={{
- size: "medium",
- variant: "filled-primary",
- }}
- argTypes={{
- as: {
- options: buttonForms,
- control: { type: "radio" },
- },
- variant: {
- options: buttonVariants,
- control: { type: "select" },
- },
- pressed: { control: "boolean" },
- size: {
- options: buttonSizes,
- control: { type: "radio" },
- },
- disabled: { control: "boolean" },
- focusableWhenDisabled: { control: "boolean" },
- type: { control: "text" },
- click: { action: "click" },
- }}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
-
-export const VariantsTemplate = (args) => ({
- template: `
-<div class="flex gap-4 flex-wrap">
-<VButton v-for="variant in args.variants"
- :variant="variant"
- :key="variant"
- class="description-bold"
- v-bind="args">
- {{ capitalize(variant) }}
- </VButton>
- </div>`,
- components: { VButton },
- methods: {
- capitalize(str) {
- return capitalCase(str)
- },
- },
- setup() {
- return { args }
- },
-})
-
-## Button variants
-
-### Filled
-
-These buttons have a solid background color and no border.
-
-<Canvas>
- <Story
- name="filled"
- args={{
- variants: buttonVariants.filter((variant) =>
- variant.startsWith("filled-")
- ),
- size: "medium",
- }}
- argTypes={{
- pressed: { control: "boolean" },
- size: {
- options: buttonSizes,
- control: { type: "radio" },
- },
- disabled: { control: "boolean" },
- }}
- >
- {VariantsTemplate.bind({})}
- </Story>
-</Canvas>
-
-### Bordered
-
-These buttons have a white background and a border.
-
-<Canvas>
- <Story
- name="bordered"
- args={{
- variants: buttonVariants.filter((variant) =>
- variant.startsWith("bordered-")
- ),
- size: "medium",
- }}
- argTypes={{
- pressed: { control: "boolean" },
- size: {
- options: buttonSizes,
- control: { type: "radio" },
- },
- disabled: { control: "boolean" },
- }}
- >
- {VariantsTemplate.bind({})}
- </Story>
-</Canvas>
-
-### Transparent
-
-These buttons are transparent and don't have a border in resting state.
-
-<Canvas>
- <Story
- name="transparent"
- args={{
- variants: buttonVariants.filter((variant) =>
- variant.startsWith("transparent-")
- ),
- size: "medium",
- }}
- argTypes={{
- pressed: { control: "boolean" },
- size: {
- options: buttonSizes,
- control: { type: "radio" },
- },
- disabled: { control: "boolean" },
- }}
- >
- {VariantsTemplate.bind({})}
- </Story>
-</Canvas>
-
-### Buttons with Icons
-
-<Canvas>
- <Story
- name="icons"
- args={{
- size: "medium",
- variant: "bordered-dark",
- }}
- argTypes={{
- pressed: { control: "boolean" },
- size: {
- options: buttonSizes,
- control: { type: "radio" },
- },
- variant: {
- options: buttonVariants,
- control: { type: "select" },
- },
- disabled: { control: "boolean" },
- }}
- >
- {TemplateWithIcons.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/components/meta/VPill.stories.js b/frontend/src/components/meta/VPill.stories.js
new file mode 100644
index 000000000..bf38d51aa
--- /dev/null
+++ b/frontend/src/components/meta/VPill.stories.js
@@ -0,0 +1,19 @@
+import VPill from "~/components/VPill.vue"
+
+const Default = (args) => ({
+ template: `<VPill>Beta</VPill>`,
+ components: { VPill },
+ setup() {
+ return { args }
+ },
+})
+
+export default {
+ title: "Components/VPill",
+ components: VPill,
+}
+
+export const Default_ = {
+ render: Default.bind({}),
+ name: "Default",
+}
diff --git a/frontend/src/components/meta/VPill.stories.mdx b/frontend/src/components/meta/VPill.stories.mdx
deleted file mode 100644
index b724a06c6..000000000
--- a/frontend/src/components/meta/VPill.stories.mdx
+++ /dev/null
@@ -1,31 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-
-import VPill from "~/components/VPill.vue"
-
-<Meta title="Components/VPill" components={VPill} />
-
-export const Default = (args) => ({
- template: `<VPill>Beta</VPill>`,
- components: { VPill },
- setup() {
- return { args }
- },
-})
-
-# VPill
-
-<Description of={VPill} />
-
-<ArgsTable of={VPill} />
-
-## Default VPill
-
-<Canvas>
- <Story name="Default">{Default.bind({})}</Story>
-</Canvas>
diff --git a/frontend/src/components/meta/VSnackbar.stories.js b/frontend/src/components/meta/VSnackbar.stories.js
new file mode 100644
index 000000000..bad0fa1f5
--- /dev/null
+++ b/frontend/src/components/meta/VSnackbar.stories.js
@@ -0,0 +1,43 @@
+import { ref } from "vue"
+
+import VSnackbar from "~/components/VSnackbar.vue"
+
+const Template = (args) => ({
+ components: { VSnackbar },
+ template: `
+ <div>
+ <input type="checkbox" id="show" v-model="isVisible">
+ <label for="show">Show snackbar</label>
+ <VSnackbar v-bind="args" :is-visible="isVisible">
+ <template v-slot>${args.defaultSlot}</template>
+ </Vsnackbar>
+ </div>
+ `,
+ setup() {
+ const isVisible = ref(true)
+ return { args, isVisible }
+ },
+})
+
+export default {
+ title: "Components/VSnackbar",
+ component: VSnackbar,
+
+ argTypes: {
+ size: {
+ options: ["large", "small"],
+ control: "radio",
+ },
+ },
+}
+
+export const Default = {
+ render: Template.bind({}),
+ name: "Default",
+ inline: false,
+
+ args: {
+ defaultSlot: "Your message goes here.",
+ size: "small",
+ },
+}
diff --git a/frontend/src/components/meta/VSnackbar.stories.mdx b/frontend/src/components/meta/VSnackbar.stories.mdx
deleted file mode 100644
index f0450cb14..000000000
--- a/frontend/src/components/meta/VSnackbar.stories.mdx
+++ /dev/null
@@ -1,56 +0,0 @@
-import {
- ArgsTable,
- Canvas,
- Description,
- Meta,
- Story,
-} from "@storybook/addon-docs"
-import { ref } from "vue"
-
-import VSnackbar from "~/components/VSnackbar.vue"
-
-<Meta
- title="Components/VSnackbar"
- components={VSnackbar}
- argTypes={{
- size: {
- options: ["large", "small"],
- control: { type: "radio" },
- },
- }}
-/>
-
-export const Template = (args) => ({
- components: { VSnackbar },
- template: `
- <div>
- <input type="checkbox" id="show" v-model="isVisible">
- <label for="show">Show snackbar</label>
- <VSnackbar v-bind="args" :is-visible="isVisible">
- <template v-slot>${args.defaultSlot}</template>
- </Vsnackbar>
- </div>
- `,
- setup() {
- const isVisible = ref(true)
- return { args, isVisible }
- },
-})
-
-# VSnackbar
-
-<Description of={VSnackbar} />
-
-<ArgsTable of={VSnackbar} />
-
-<!-- Use inline={false} to keep the snackbar within the preview area. -->
-
-<Canvas>
- <Story
- name="Default"
- args={{ defaultSlot: "Your message goes here.", size: "small" }}
- inline={false}
- >
- {Template.bind({})}
- </Story>
-</Canvas>
diff --git a/frontend/src/stories/Introduction.stories.mdx b/frontend/src/stories/Introduction.mdx
similarity index 85%
rename from frontend/src/stories/Introduction.stories.mdx
rename to frontend/src/stories/Introduction.mdx
index 7614c6c0f..b375d3dca 100644
--- a/frontend/src/stories/Introduction.stories.mdx
+++ b/frontend/src/stories/Introduction.mdx
@@ -1,4 +1,4 @@
-import { Meta } from "@storybook/addon-docs"
+import { Meta } from "@storybook/blocks"
<Meta title="Introduction/Openverse UI" />
diff --git a/frontend/test/storybook/visual-regression/custom-button-components.spec.ts b/frontend/test/storybook/visual-regression/custom-button-components.spec.ts
index 8fe51e276..70e9d2b12 100644
--- a/frontend/test/storybook/visual-regression/custom-button-components.spec.ts
+++ b/frontend/test/storybook/visual-regression/custom-button-components.spec.ts
@@ -9,7 +9,7 @@ test.describe.configure({ mode: "parallel" })
test.describe("VLoadMore button", () => {
const gotoWithArgs = makeGotoWithArgs(
- "components-custombuttoncomponents--v-load-more"
+ "components-custombuttoncomponents--default"
)
breakpoints.describeMobileAndDesktop(({ expectSnapshot }) => {
test("resting", async ({ page }) => {
diff --git a/frontend/test/storybook/visual-regression/v-button.spec.ts b/frontend/test/storybook/visual-regression/v-button.spec.ts
index 62eed652c..9f189ee9c 100644
--- a/frontend/test/storybook/visual-regression/v-button.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-button.spec.ts
@@ -10,7 +10,7 @@ const wrapperLocator = "#wrapper"
test.describe.configure({ mode: "parallel" })
test.describe("VButton", () => {
- const gotoWithArgs = makeGotoWithArgs("components-vbutton--v-button")
+ const gotoWithArgs = makeGotoWithArgs("components-vbutton--default")
const nonPressedVariants = buttonVariants.filter(
(name) => !name.endsWith("pressed")
)
diff --git a/frontend/test/storybook/visual-regression/v-checkbox.spec.ts b/frontend/test/storybook/visual-regression/v-checkbox.spec.ts
index 4b38d2538..b3bbeacb1 100644
--- a/frontend/test/storybook/visual-regression/v-checkbox.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-checkbox.spec.ts
@@ -5,7 +5,7 @@ test.describe.configure({ mode: "parallel" })
test.describe("v-checkbox", () => {
test.describe("default", () => {
test.beforeEach(async ({ page }) => {
- await page.goto("/iframe.html?id=components-vcheckbox--default-story")
+ await page.goto("/iframe.html?id=components-vcheckbox--default")
})
test("default", async ({ page }) => {
diff --git a/frontend/test/storybook/visual-regression/v-filter-button.spec.ts b/frontend/test/storybook/visual-regression/v-filter-button.spec.ts
index afdd7bb44..24e391ec8 100644
--- a/frontend/test/storybook/visual-regression/v-filter-button.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-filter-button.spec.ts
@@ -5,7 +5,7 @@ import { makeGotoWithArgs } from "~~/test/storybook/utils/args"
import { sleep } from "~~/test/playwright/utils/navigation"
const gotoWithArgs = makeGotoWithArgs(
- "components-vheader-vfilterbutton--default-story"
+ "components-vheader-vfilterbutton--default"
)
test.describe.configure({ mode: "parallel" })
diff --git a/frontend/test/storybook/visual-regression/v-filter-tab.spec.ts b/frontend/test/storybook/visual-regression/v-filter-tab.spec.ts
index 32bd283c8..b38fc0a61 100644
--- a/frontend/test/storybook/visual-regression/v-filter-tab.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-filter-tab.spec.ts
@@ -4,7 +4,7 @@ import { makeUrlWithArgs } from "~~/test/storybook/utils/args"
import { waitForResponse } from "~~/test/storybook/utils/response"
const urlWithArgs = makeUrlWithArgs(
- "components-vheader-vheadermobile-vfiltertab--default-story"
+ "components-vheader-vheadermobile-vfiltertab--default"
)
test.describe.configure({ mode: "parallel" })
diff --git a/frontend/test/storybook/visual-regression/v-header-internal.spec.ts b/frontend/test/storybook/visual-regression/v-header-internal.spec.ts
index e9e5dfdc1..b4bc771d7 100644
--- a/frontend/test/storybook/visual-regression/v-header-internal.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-header-internal.spec.ts
@@ -9,8 +9,8 @@ import {
import { dirParam } from "~~/test/storybook/utils/args"
const headerSelector = ".main-header"
-const defaultUrl =
- "/iframe.html?id=components-vheader-vheaderinternal--default-story"
+const defaultUrl = "/iframe.html?id=components-vheader-vheaderinternal--default"
+
const pageUrl = (dir: LanguageDirection) => `${defaultUrl}${dirParam(dir)}`
test.describe.configure({ mode: "parallel" })
diff --git a/frontend/test/storybook/visual-regression/v-image-cell.spec.ts b/frontend/test/storybook/visual-regression/v-image-cell.spec.ts
index f2cd560da..804172895 100644
--- a/frontend/test/storybook/visual-regression/v-image-cell.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-image-cell.spec.ts
@@ -14,7 +14,7 @@ const imageCellImage = `${imageCell} img`
// exceeds the bounds of the actual component
const screenshotEl = ".sb-main-padded"
-const urlWithArgs = makeUrlWithArgs("components-vimagecell--v-image-cell")
+const urlWithArgs = makeUrlWithArgs("components-vimagecell--default")
const goAndWaitForImage = async (
page: Page,
diff --git a/frontend/test/storybook/visual-regression/v-language-select.spec.ts b/frontend/test/storybook/visual-regression/v-language-select.spec.ts
index 88d5a1cd2..fdd2b7d80 100644
--- a/frontend/test/storybook/visual-regression/v-language-select.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-language-select.spec.ts
@@ -8,7 +8,7 @@ const expectSnapshot = async (name: string, page: Page) => {
test.describe("VLanguageSelect", () => {
test("default", async ({ page }) => {
- await makeGotoWithArgs("components-vlanguageselect--default-story")(page)
+ await makeGotoWithArgs("components-vlanguageselect--default")(page)
await expectSnapshot("vlanguageselect-default", page)
})
})
diff --git a/frontend/test/storybook/visual-regression/v-media-license.spec.ts b/frontend/test/storybook/visual-regression/v-media-license.spec.ts
index 6807de6ca..66749a591 100644
--- a/frontend/test/storybook/visual-regression/v-media-license.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-media-license.spec.ts
@@ -20,10 +20,9 @@ const allSlugs = [
"cc-by-nc-nd",
"cc-0",
"pdm",
- "cc-sampling",
- "cc-nc-sampling",
+ "sampling",
+ "nc-sampling",
]
-
test.describe.configure({ mode: "parallel" })
test.describe("VMediaLicense", () => {
diff --git a/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-nc-sampling-sm-linux.png b/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-nc-sampling-sm-linux.png
similarity index 100%
rename from frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-nc-sampling-sm-linux.png
rename to frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-nc-sampling-sm-linux.png
diff --git a/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-nc-sampling-xl-linux.png b/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-nc-sampling-xl-linux.png
similarity index 100%
rename from frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-nc-sampling-xl-linux.png
rename to frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-nc-sampling-xl-linux.png
diff --git a/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-sampling-sm-linux.png b/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-sampling-sm-linux.png
similarity index 100%
rename from frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-sampling-sm-linux.png
rename to frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-sampling-sm-linux.png
diff --git a/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-sampling-xl-linux.png b/frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-sampling-xl-linux.png
similarity index 100%
rename from frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-cc-sampling-xl-linux.png
rename to frontend/test/storybook/visual-regression/v-media-license.spec.ts-snapshots/v-media-license-sampling-xl-linux.png
diff --git a/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts b/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts
index 2f6a13f9b..2837507e2 100644
--- a/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts
@@ -11,8 +11,7 @@ const tabs = [
{ id: "html", name: "HTML" },
{ id: "plain", name: "Plain text" },
]
-const defaultUrl =
- "/iframe.html?id=components-vmediainfo-vmediareuse--v-media-reuse"
+const defaultUrl = "/iframe.html?id=components-vmediainfo-vmediareuse--default"
const pageUrl = (dir: (typeof languageDirections)[number]) =>
dir === "ltr" ? defaultUrl : `${defaultUrl}&globals=languageDirection:rtl`
diff --git a/frontend/test/storybook/visual-regression/v-notitication-banner.spec.ts b/frontend/test/storybook/visual-regression/v-notitication-banner.spec.ts
index 6b93db73e..07d6e3e2f 100644
--- a/frontend/test/storybook/visual-regression/v-notitication-banner.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-notitication-banner.spec.ts
@@ -7,8 +7,7 @@ import breakpoints from "~~/test/playwright/utils/breakpoints"
const natures = ["info", "warning", "error", "success"] as const
const variants = ["regular", "dark"] as const
-const defaultUrl =
- "/iframe.html?id=components-vnotificationbanner--default-story"
+const defaultUrl = "/iframe.html?id=components-vnotificationbanner--default"
const pageUrl = (
nature: (typeof natures)[number],
diff --git a/frontend/test/storybook/visual-regression/v-safety-wall.spec.ts b/frontend/test/storybook/visual-regression/v-safety-wall.spec.ts
index 7ee11f651..0410b902b 100644
--- a/frontend/test/storybook/visual-regression/v-safety-wall.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-safety-wall.spec.ts
@@ -11,7 +11,7 @@ test.describe.configure({ mode: "parallel" })
test.describe("VSafetyWall", () => {
test.beforeEach(async ({ page }) => {
- await page.goto("/iframe.html?id=components-vsafetywall--default-story")
+ await page.goto("/iframe.html?id=components-vsafetywall--default")
})
breakpoints.describeEvery(({ expectSnapshot }) => {
diff --git a/frontend/test/storybook/visual-regression/v-search-type-button.spec.ts b/frontend/test/storybook/visual-regression/v-search-type-button.spec.ts
index adef4c36f..6bef747eb 100644
--- a/frontend/test/storybook/visual-regression/v-search-type-button.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-search-type-button.spec.ts
@@ -5,7 +5,7 @@ import { makeUrlWithArgs } from "~~/test/storybook/utils/args"
import { waitForResponse } from "~~/test/storybook/utils/response"
const urlWithArgs = makeUrlWithArgs(
- "components-vcontentswitcher-vsearchtypebutton--default-story"
+ "components-vcontentswitcher-vsearchtypebutton--default"
)
const searchTypeButtonLocator = 'button[aria-haspopup="dialog"]'
diff --git a/frontend/test/storybook/visual-regression/v-search-types.spec.ts b/frontend/test/storybook/visual-regression/v-search-types.spec.ts
index ce30adce0..bd20daa69 100644
--- a/frontend/test/storybook/visual-regression/v-search-types.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-search-types.spec.ts
@@ -3,7 +3,7 @@ import { test } from "@playwright/test"
import breakpoints from "~~/test/playwright/utils/breakpoints"
const defaultUrl =
- "/iframe.html?id=components-vcontentswitcher-vsearchtypes--default-story"
+ "/iframe.html?id=components-vcontentswitcher-vsearchtypes--default"
const audioButtonLocator = "text=images"
diff --git a/frontend/test/storybook/visual-regression/v-select-field.spec.ts b/frontend/test/storybook/visual-regression/v-select-field.spec.ts
index 4c4dd7930..1a4ea32ca 100644
--- a/frontend/test/storybook/visual-regression/v-select-field.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-select-field.spec.ts
@@ -10,7 +10,7 @@ const expectSnapshot = async (name: string, page: Page) => {
test.describe("VSelectField", () => {
test("default", async ({ page }) => {
- await makeGotoWithArgs("components-vselectfield--default-story")(page)
+ await makeGotoWithArgs("components-vselectfield--default")(page)
await expectSnapshot("vselectfield-default", page)
})
diff --git a/frontend/test/tapes/detail/images/de42d499-d660-47b4-b203-28d5589c31d2_close.json5 b/frontend/test/tapes/detail/images/de42d499-d660-47b4-b203-28d5589c31d2_close.json5
new file mode 100644
index 000000000..22a97cb98
--- /dev/null
+++ b/frontend/test/tapes/detail/images/de42d499-d660-47b4-b203-28d5589c31d2_close.json5
@@ -0,0 +1,125 @@
+{
+ meta: {
+ createdAt: '2024-05-03T07:33:15.713Z',
+ host: 'https://api.openverse.org',
+ resHumanReadable: true,
+ resUncompressed: true,
+ },
+ req: {
+ headers: {
+ connection: 'close',
+ },
+ url: '/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/',
+ method: 'GET',
+ body: '',
+ },
+ res: {
+ status: 200,
+ headers: {
+ date: [
+ 'Fri, 03 May 2024 07:33:16 GMT',
+ ],
+ 'content-type': [
+ 'application/json',
+ ],
+ 'transfer-encoding': [
+ 'chunked',
+ ],
+ connection: [
+ 'close',
+ ],
+ vary: [
+ 'Accept-Encoding, Accept, Authorization, origin',
+ ],
+ allow: [
+ 'GET, HEAD, OPTIONS',
+ ],
+ 'x-ratelimit-limit-anon_burst': [
+ '20/min',
+ ],
+ 'x-ratelimit-available-anon_burst': [
+ '19',
+ ],
+ 'x-ratelimit-limit-anon_sustained': [
+ '200/day',
+ ],
+ 'x-ratelimit-available-anon_sustained': [
+ '199',
+ ],
+ 'x-frame-options': [
+ 'DENY',
+ ],
+ 'x-content-type-options': [
+ 'nosniff',
+ ],
+ 'referrer-policy': [
+ 'same-origin',
+ ],
+ 'cross-origin-opener-policy': [
+ 'same-origin',
+ ],
+ 'x-request-id': [
+ '4d1cb9659fbc4d7ea72de4747573e907',
+ ],
+ 'cf-cache-status': [
+ 'MISS',
+ ],
+ 'last-modified': [
+ 'Fri, 03 May 2024 07:33:16 GMT',
+ ],
+ server: [
+ 'cloudflare',
+ ],
+ 'cf-ray': [
+ '87de8fd68d095d63-FRA',
+ ],
+ 'content-encoding': [
+ 'br',
+ ],
+ },
+ body: {
+ id: 'de42d499-d660-47b4-b203-28d5589c31d2',
+ title: 'Cat bliss',
+ indexed_on: '2020-04-16T18:12:29.554388Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/29468339@N02/5840168826',
+ url: 'https://live.staticflickr.com/2706/5840168826_486f364c6c_b.jpg',
+ creator: '@Doug88888',
+ creator_url: 'https://www.flickr.com/photos/29468339@N02',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'bliss',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'cating',
+ accuracy: null,
+ },
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat bliss" by @Doug88888 is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [],
+ mature: false,
+ height: 819,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/',
+ related_url: 'http://localhost:49153/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/related/',
+ unstable__sensitivity: [],
+ },
+ },
+}
\ No newline at end of file
diff --git a/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_close.json5 b/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_close.json5
new file mode 100644
index 000000000..e55e29a80
--- /dev/null
+++ b/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_close.json5
@@ -0,0 +1,1536 @@
+{
+ meta: {
+ createdAt: '2024-05-03T07:31:13.618Z',
+ host: 'https://api.openverse.org',
+ resHumanReadable: true,
+ resUncompressed: true,
+ },
+ req: {
+ headers: {
+ connection: 'close',
+ },
+ url: '/v1/audio/?q=cat&unstable__include_sensitive_results=true&peaks=true',
+ method: 'GET',
+ body: '',
+ },
+ res: {
+ status: 200,
+ headers: {
+ date: [
+ 'Fri, 03 May 2024 07:31:14 GMT',
+ ],
+ 'content-type': [
+ 'application/json',
+ ],
+ 'transfer-encoding': [
+ 'chunked',
+ ],
+ connection: [
+ 'close',
+ ],
+ vary: [
+ 'Accept-Encoding, Accept, Authorization, origin',
+ ],
+ allow: [
+ 'GET, HEAD, OPTIONS',
+ ],
+ 'x-ratelimit-limit-anon_burst': [
+ '20/min',
+ ],
+ 'x-ratelimit-available-anon_burst': [
+ '19',
+ ],
+ 'x-ratelimit-limit-anon_sustained': [
+ '200/day',
+ ],
+ 'x-ratelimit-available-anon_sustained': [
+ '199',
+ ],
+ 'x-frame-options': [
+ 'DENY',
+ ],
+ 'x-content-type-options': [
+ 'nosniff',
+ ],
+ 'referrer-policy': [
+ 'same-origin',
+ ],
+ 'cross-origin-opener-policy': [
+ 'same-origin',
+ ],
+ 'x-request-id': [
+ '385d1b6a673647bea7afe9037196a213',
+ ],
+ 'cf-cache-status': [
+ 'MISS',
+ ],
+ 'last-modified': [
+ 'Fri, 03 May 2024 07:31:14 GMT',
+ ],
+ server: [
+ 'cloudflare',
+ ],
+ 'cf-ray': [
+ '87de8cdb5b90085c-FRA',
+ ],
+ 'content-encoding': [
+ 'br',
+ ],
+ },
+ body: {
+ result_count: 10000,
+ page_count: 20,
+ page_size: 20,
+ page: 1,
+ results: [
+ {
+ id: '70fe3934-ac2b-4c15-bd8a-c6912500f07a',
+ title: 'Cat rock',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1471068',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1471068&format=mp32',
+ creator: 'Nordgroove',
+ creator_url: 'https://www.jamendo.com/artist/502379/Nordgroove',
+ license: 'by-nc-nd',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-nd/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'downtempo',
+ 'electronic',
+ 'nujazz',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'goovy',
+ accuracy: null,
+ },
+ {
+ name: 'holiday',
+ accuracy: null,
+ },
+ {
+ name: 'instrumental',
+ accuracy: null,
+ },
+ {
+ name: 'soft',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Cat rock" by Nordgroove is licensed under CC BY-NC-ND 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Suburban Simphony',
+ foreign_landing_url: 'https://www.jamendo.com/album/170450/suburban-simphony',
+ creator: 'Nordgroove',
+ creator_url: 'https://www.jamendo.com/artist/502379/Nordgroove',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 290000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/70fe3934-ac2b-4c15-bd8a-c6912500f07a/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/70fe3934-ac2b-4c15-bd8a-c6912500f07a/',
+ related_url: 'http://localhost:49153/v1/audio/70fe3934-ac2b-4c15-bd8a-c6912500f07a/related/',
+ waveform: 'http://localhost:49153/v1/audio/70fe3934-ac2b-4c15-bd8a-c6912500f07a/waveform/',
+ peaks: [
+ 0.49794,
+ 0.47985,
+ 0.53794,
+ 0.53807,
+ 0.50041,
+ 0.47145,
+ 0.52222,
+ 0.50366,
+ 0.47806,
+ 0.48454,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '2ecd5631-c48c-4a5f-89c4-83c44dbbd365',
+ title: 'Lucky Cat',
+ indexed_on: '2021-12-23T02:09:52.493845Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/24850',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=24850&format=mp32',
+ creator: 'Bruce H. McCosar',
+ creator_url: 'https://www.jamendo.com/artist/3737/bruce.h.mccosar',
+ license: 'by-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'jazz',
+ 'pop',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'calm',
+ accuracy: null,
+ },
+ {
+ name: 'electricguitar',
+ accuracy: null,
+ },
+ {
+ name: 'electroamplified',
+ accuracy: null,
+ },
+ {
+ name: 'instrumental',
+ accuracy: null,
+ },
+ {
+ name: 'lounge',
+ accuracy: null,
+ },
+ {
+ name: 'neutral',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Lucky Cat" by Bruce H. McCosar is licensed under CC BY-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'evolution',
+ foreign_landing_url: 'https://www.jamendo.com/album/3428/evolution',
+ creator: 'Bruce H. McCosar',
+ creator_url: 'https://www.jamendo.com/artist/3737/bruce.h.mccosar',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 335000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/2ecd5631-c48c-4a5f-89c4-83c44dbbd365/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/2ecd5631-c48c-4a5f-89c4-83c44dbbd365/',
+ related_url: 'http://localhost:49153/v1/audio/2ecd5631-c48c-4a5f-89c4-83c44dbbd365/related/',
+ waveform: 'http://localhost:49153/v1/audio/2ecd5631-c48c-4a5f-89c4-83c44dbbd365/waveform/',
+ peaks: [
+ 0.25946,
+ 0.30841,
+ 0.32497,
+ 0.28751,
+ 0.34204,
+ 0.38851,
+ 0.32238,
+ 0.37453,
+ 0.39303,
+ 0.51729,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'a29146ea-b626-41f0-bf30-7dd17dbc9f8f',
+ title: 'Middlenight Cat Walking Chicago',
+ indexed_on: '2022-06-01T12:42:14.554074Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/564446',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=564446&format=mp32',
+ creator: 'Helios Salah',
+ creator_url: 'https://www.jamendo.com/artist/359300/helios_salah',
+ license: 'by-nc-nd',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-nd/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'classical',
+ 'filmscore',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'classica',
+ accuracy: null,
+ },
+ {
+ name: 'instrumental',
+ accuracy: null,
+ },
+ {
+ name: 'piano',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'strings',
+ accuracy: null,
+ },
+ {
+ name: 'theatrical',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Middlenight Cat Walking Chicago" by Helios Salah is licensed under CC BY-NC-ND 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'The Meditative Synaesthetic Piano CD 1 (demo, 3 of 23)',
+ foreign_landing_url: 'https://www.jamendo.com/album/65287/the-meditative-synaesthetic-piano-cd-1-demo-3-of-23',
+ creator: 'Helios Salah',
+ creator_url: 'https://www.jamendo.com/artist/359300/helios_salah',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 162000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/a29146ea-b626-41f0-bf30-7dd17dbc9f8f/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/a29146ea-b626-41f0-bf30-7dd17dbc9f8f/',
+ related_url: 'http://localhost:49153/v1/audio/a29146ea-b626-41f0-bf30-7dd17dbc9f8f/related/',
+ waveform: 'http://localhost:49153/v1/audio/a29146ea-b626-41f0-bf30-7dd17dbc9f8f/waveform/',
+ peaks: [
+ 0.00133,
+ 0.00242,
+ 0.00245,
+ 0.02444,
+ 0.08621,
+ 0.07617,
+ 0.04104,
+ 0.08736,
+ 0.41562,
+ 0.48175,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'de97b35d-bc83-43c0-bd43-26c058d903af',
+ title: 'French Kisses And Cat Hair',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1302675',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1302675&format=mp32',
+ creator: 'Michael Ellis',
+ creator_url: 'https://www.jamendo.com/artist/438603/Michael_Ellis',
+ license: 'by-nc-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'country',
+ 'folk',
+ 'singersongwriter',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'electricguitar',
+ accuracy: null,
+ },
+ {
+ name: 'fun',
+ accuracy: null,
+ },
+ {
+ name: 'guitar',
+ accuracy: null,
+ },
+ {
+ name: 'happy',
+ accuracy: null,
+ },
+ {
+ name: 'male',
+ accuracy: null,
+ },
+ {
+ name: 'pigbass',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"French Kisses And Cat Hair" by Michael Ellis is licensed under CC BY-NC-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Very Good Album',
+ foreign_landing_url: 'https://www.jamendo.com/album/154976/very-good-album',
+ creator: 'Michael Ellis',
+ creator_url: 'https://www.jamendo.com/artist/438603/Michael_Ellis',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 181000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/de97b35d-bc83-43c0-bd43-26c058d903af/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/de97b35d-bc83-43c0-bd43-26c058d903af/',
+ related_url: 'http://localhost:49153/v1/audio/de97b35d-bc83-43c0-bd43-26c058d903af/related/',
+ waveform: 'http://localhost:49153/v1/audio/de97b35d-bc83-43c0-bd43-26c058d903af/waveform/',
+ peaks: [
+ 0.117,
+ 0.60506,
+ 0.78048,
+ 0.80564,
+ 0.79844,
+ 0.74856,
+ 0.78375,
+ 0.74471,
+ 0.76437,
+ 0.84102,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '65252cd7-ce8a-4e89-a8ea-89bd364875a4',
+ title: "Cat's Bite",
+ indexed_on: '2023-05-04T00:05:01.880122Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/34581',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=34581&format=mp32',
+ creator: 'Boom Boom Beckett',
+ creator_url: 'https://www.jamendo.com/artist/4819/boomboombeckett',
+ license: 'by-nc',
+ license_version: '2.5',
+ license_url: 'https://creativecommons.org/licenses/by-nc/2.5/it/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'jazz',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'instrumental',
+ accuracy: null,
+ },
+ {
+ name: 'lounge',
+ accuracy: null,
+ },
+ {
+ name: 'neutral',
+ accuracy: null,
+ },
+ {
+ name: 'saxophone',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'wind',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Cat\'s Bite" by Boom Boom Beckett is licensed under CC BY-NC 2.5. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc/2.5/it/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Vélos',
+ foreign_landing_url: 'https://www.jamendo.com/album/4234/velos',
+ creator: 'Boom Boom Beckett',
+ creator_url: 'https://www.jamendo.com/artist/4819/boomboombeckett',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 253000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/65252cd7-ce8a-4e89-a8ea-89bd364875a4/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/65252cd7-ce8a-4e89-a8ea-89bd364875a4/',
+ related_url: 'http://localhost:49153/v1/audio/65252cd7-ce8a-4e89-a8ea-89bd364875a4/related/',
+ waveform: 'http://localhost:49153/v1/audio/65252cd7-ce8a-4e89-a8ea-89bd364875a4/waveform/',
+ peaks: [
+ 0.91698,
+ 0.91449,
+ 0.94461,
+ 0.72736,
+ 0.86048,
+ 0.90003,
+ 0.82838,
+ 0.73953,
+ 0.64426,
+ 0.76928,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'e8c98885-9184-43df-825d-e1a955cfe360',
+ title: 'My Pussy Cat',
+ indexed_on: '2022-04-01T07:25:28.481246Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/260841',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=260841&format=mp32',
+ creator: 'Dazie Mae',
+ creator_url: 'https://www.jamendo.com/artist/345952/Dazie_Mae_(2)',
+ license: 'by-nc-nd',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-nd/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'jazz',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'female',
+ accuracy: null,
+ },
+ {
+ name: 'jazzguitar',
+ accuracy: null,
+ },
+ {
+ name: 'piano',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'strings',
+ accuracy: null,
+ },
+ {
+ name: 'upbeat',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"My Pussy Cat" by Dazie Mae is licensed under CC BY-NC-ND 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Dazie Mae (demo)',
+ foreign_landing_url: 'https://www.jamendo.com/album/37345/dazie-mae-demo',
+ creator: 'Dazie Mae',
+ creator_url: 'https://www.jamendo.com/artist/345952/Dazie_Mae_(2)',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 174000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/e8c98885-9184-43df-825d-e1a955cfe360/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/e8c98885-9184-43df-825d-e1a955cfe360/',
+ related_url: 'http://localhost:49153/v1/audio/e8c98885-9184-43df-825d-e1a955cfe360/related/',
+ waveform: 'http://localhost:49153/v1/audio/e8c98885-9184-43df-825d-e1a955cfe360/waveform/',
+ peaks: [
+ 0.17608,
+ 0.10651,
+ 0.12666,
+ 0.28566,
+ 0.29826,
+ 0.27169,
+ 0.23908,
+ 0.19006,
+ 0.12573,
+ 0.11759,
+ ],
+ unstable__sensitivity: [
+ 'sensitive_text',
+ ],
+ },
+ {
+ id: '7e063ee6-343f-48e4-a4a5-f436393730f6',
+ title: 'I Love My Dog You Love your Cat',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1037750',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1037750&format=mp32',
+ creator: 'Micaroni and Vulcano',
+ creator_url: 'https://www.jamendo.com/artist/434110/Micaroni_and_Vulcano',
+ license: 'by-nc-nd',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-nd/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'country',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'male',
+ accuracy: null,
+ },
+ {
+ name: 'nature',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"I Love My Dog You Love your Cat" by Micaroni and Vulcano is licensed under CC BY-NC-ND 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/3.0/.',
+ fields_matched: [
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'I Love My Dog You Love Your Cat',
+ foreign_landing_url: 'https://www.jamendo.com/album/122192/i-love-my-dog-you-love-your-cat',
+ creator: 'Micaroni and Vulcano',
+ creator_url: 'https://www.jamendo.com/artist/434110/Micaroni_and_Vulcano',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 193000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/7e063ee6-343f-48e4-a4a5-f436393730f6/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/7e063ee6-343f-48e4-a4a5-f436393730f6/',
+ related_url: 'http://localhost:49153/v1/audio/7e063ee6-343f-48e4-a4a5-f436393730f6/related/',
+ waveform: 'http://localhost:49153/v1/audio/7e063ee6-343f-48e4-a4a5-f436393730f6/waveform/',
+ peaks: [
+ 0.33232,
+ 0.35451,
+ 0.5279,
+ 0.3713,
+ 0.55169,
+ 0.49543,
+ 0.35747,
+ 0.44403,
+ 0.49727,
+ 0.4378,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '23012307-8402-4449-a59d-1acbd68dd8f9',
+ title: 'This cat',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1062832',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1062832&format=mp32',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ license: 'by-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'blues',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'speed_low',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"This cat" by Pigamma sound is licensed under CC BY-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'The catman',
+ foreign_landing_url: 'https://www.jamendo.com/album/125522/the-catman',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 71000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/23012307-8402-4449-a59d-1acbd68dd8f9/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/23012307-8402-4449-a59d-1acbd68dd8f9/',
+ related_url: 'http://localhost:49153/v1/audio/23012307-8402-4449-a59d-1acbd68dd8f9/related/',
+ waveform: 'http://localhost:49153/v1/audio/23012307-8402-4449-a59d-1acbd68dd8f9/waveform/',
+ peaks: [
+ 0.00068,
+ 0.00095,
+ 0.00134,
+ 0.00054,
+ 0.00117,
+ 0.00093,
+ 0.00073,
+ 0.0012,
+ 0.08209,
+ 0.52701,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '678ba43e-0f80-4ee4-80b6-e744b7cac78c',
+ title: 'Baby cat',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1062837',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1062837&format=mp32',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ license: 'by-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'instrumental',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Baby cat" by Pigamma sound is licensed under CC BY-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'The catman',
+ foreign_landing_url: 'https://www.jamendo.com/album/125522/the-catman',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 226000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/678ba43e-0f80-4ee4-80b6-e744b7cac78c/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/678ba43e-0f80-4ee4-80b6-e744b7cac78c/',
+ related_url: 'http://localhost:49153/v1/audio/678ba43e-0f80-4ee4-80b6-e744b7cac78c/related/',
+ waveform: 'http://localhost:49153/v1/audio/678ba43e-0f80-4ee4-80b6-e744b7cac78c/waveform/',
+ peaks: [
+ 0.0009,
+ 0.20257,
+ 0.26785,
+ 0.20358,
+ 0.2311,
+ 0.29543,
+ 0.20696,
+ 0.15116,
+ 0.36544,
+ 0.20898,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'da837d83-cb4f-4687-b797-5c64d4e410a2',
+ title: 'I wanna be your cat',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1062835',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1062835&format=mp32',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ license: 'by-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'male',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"I wanna be your cat" by Pigamma sound is licensed under CC BY-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'The catman',
+ foreign_landing_url: 'https://www.jamendo.com/album/125522/the-catman',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 209000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/da837d83-cb4f-4687-b797-5c64d4e410a2/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/da837d83-cb4f-4687-b797-5c64d4e410a2/',
+ related_url: 'http://localhost:49153/v1/audio/da837d83-cb4f-4687-b797-5c64d4e410a2/related/',
+ waveform: 'http://localhost:49153/v1/audio/da837d83-cb4f-4687-b797-5c64d4e410a2/waveform/',
+ peaks: [
+ 0.0012,
+ 0.00141,
+ 0.16174,
+ 0.49437,
+ 0.42478,
+ 0.44644,
+ 0.50088,
+ 0.53264,
+ 0.43832,
+ 0.5182,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '99d4bfa6-ce0e-4777-ae46-2205e7bd4967',
+ title: 'Goodnight my cat',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1062838',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1062838&format=mp32',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ license: 'by-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'male',
+ accuracy: null,
+ },
+ {
+ name: 'speed_high',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Goodnight my cat" by Pigamma sound is licensed under CC BY-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'The catman',
+ foreign_landing_url: 'https://www.jamendo.com/album/125522/the-catman',
+ creator: 'Pigamma sound',
+ creator_url: 'https://www.jamendo.com/artist/370210/Pigamma_sound',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 209000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/99d4bfa6-ce0e-4777-ae46-2205e7bd4967/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/99d4bfa6-ce0e-4777-ae46-2205e7bd4967/',
+ related_url: 'http://localhost:49153/v1/audio/99d4bfa6-ce0e-4777-ae46-2205e7bd4967/related/',
+ waveform: 'http://localhost:49153/v1/audio/99d4bfa6-ce0e-4777-ae46-2205e7bd4967/waveform/',
+ peaks: [
+ 0.00434,
+ 0.00338,
+ 0.00361,
+ 0.29239,
+ 0.3177,
+ 0.25834,
+ 0.25229,
+ 0.17158,
+ 0.24058,
+ 0.35311,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'd1f3fc1f-f7db-4117-8d6b-921c1f393520',
+ title: 'Cat meow',
+ indexed_on: '2023-03-10T13:20:18.216530Z',
+ foreign_landing_url: 'https://freesound.org/people/philsapphire/sounds/256452',
+ url: 'https://cdn.freesound.org/previews/256/256452_4754386-hq.mp3',
+ creator: 'philsapphire',
+ creator_url: 'https://freesound.org/people/philsapphire',
+ license: 'cc0',
+ license_version: '1.0',
+ license_url: 'https://creativecommons.org/publicdomain/zero/1.0/',
+ provider: 'freesound',
+ source: 'freesound',
+ category: null,
+ genres: null,
+ filesize: 36113,
+ filetype: 'mp3',
+ tags: [
+ {
+ name: 'meow',
+ accuracy: null,
+ },
+ {
+ name: 'meowing',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ alt_files: [
+ {
+ url: 'https://freesound.org/apiv2/sounds/256452/download/',
+ bit_rate: '0',
+ filesize: '136270',
+ filetype: 'wav',
+ sample_rate: '44100',
+ },
+ ],
+ attribution: '"Cat meow" by philsapphire is marked with CC0 1.0. To view the terms, visit https://creativecommons.org/publicdomain/zero/1.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ audio_set: null,
+ duration: 1544,
+ bit_rate: 128000,
+ sample_rate: null,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/d1f3fc1f-f7db-4117-8d6b-921c1f393520/',
+ related_url: 'http://localhost:49153/v1/audio/d1f3fc1f-f7db-4117-8d6b-921c1f393520/related/',
+ waveform: 'http://localhost:49153/v1/audio/d1f3fc1f-f7db-4117-8d6b-921c1f393520/waveform/',
+ peaks: [
+ 0.00064,
+ 0.00282,
+ 0.00329,
+ 0.00625,
+ 0.00526,
+ 0.00778,
+ 0.00803,
+ 0.01238,
+ 0.02164,
+ 0.01123,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '8420183f-c703-425a-9e79-1f36d10cf249',
+ title: 'Cat purring .wav',
+ indexed_on: '2023-03-10T13:20:18.216530Z',
+ foreign_landing_url: 'https://freesound.org/people/pickleparade/sounds/262955',
+ url: 'https://cdn.freesound.org/previews/262/262955_128837-hq.mp3',
+ creator: 'pickleparade',
+ creator_url: 'https://freesound.org/people/pickleparade',
+ license: 'cc0',
+ license_version: '1.0',
+ license_url: 'https://creativecommons.org/publicdomain/zero/1.0/',
+ provider: 'freesound',
+ source: 'freesound',
+ category: null,
+ genres: null,
+ filesize: 6111655,
+ filetype: 'mp3',
+ tags: [
+ {
+ name: 'Stereo',
+ accuracy: null,
+ },
+ {
+ name: 'purring',
+ accuracy: null,
+ },
+ {
+ name: 'Close-up',
+ accuracy: null,
+ },
+ {
+ name: 'Cat',
+ accuracy: null,
+ },
+ ],
+ alt_files: [
+ {
+ url: 'https://freesound.org/apiv2/sounds/262955/download/',
+ bit_rate: '0',
+ filesize: '45611822',
+ filetype: 'wav',
+ sample_rate: '44100',
+ },
+ ],
+ attribution: '"Cat purring .wav" by pickleparade is marked with CC0 1.0. To view the terms, visit https://creativecommons.org/publicdomain/zero/1.0/.',
+ fields_matched: [
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Cat purring',
+ foreign_landing_url: 'https://freesound.org/apiv2/packs/16170/',
+ creator: 'pickleparade',
+ creator_url: 'https://freesound.org/people/pickleparade/',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 258570,
+ bit_rate: 128000,
+ sample_rate: null,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/8420183f-c703-425a-9e79-1f36d10cf249/',
+ related_url: 'http://localhost:49153/v1/audio/8420183f-c703-425a-9e79-1f36d10cf249/related/',
+ waveform: 'http://localhost:49153/v1/audio/8420183f-c703-425a-9e79-1f36d10cf249/waveform/',
+ peaks: [
+ 0.16092,
+ 0.14052,
+ 0.16309,
+ 0.21571,
+ 0.19448,
+ 0.20321,
+ 0.22832,
+ 0.20249,
+ 0.21508,
+ 0.30483,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '02a86a4f-6714-40d4-adad-406344789ee2',
+ title: 'Dog and Cat Chase',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1119934',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1119934&format=mp32',
+ creator: 'Grégoire Lourme',
+ creator_url: 'https://www.jamendo.com/artist/560/gregoire.lourme',
+ license: 'by-nd',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nd/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'filmscore',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'adventure',
+ accuracy: null,
+ },
+ {
+ name: 'film',
+ accuracy: null,
+ },
+ {
+ name: 'instrumental',
+ accuracy: null,
+ },
+ {
+ name: 'orchestra',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Dog and Cat Chase" by Grégoire Lourme is licensed under CC BY-ND 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nd/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Cinematic Volume 7 Animation Movies',
+ foreign_landing_url: 'https://www.jamendo.com/album/133850/cinematic-volume-7-animation-movies',
+ creator: 'Grégoire Lourme',
+ creator_url: 'https://www.jamendo.com/artist/560/gregoire.lourme',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 163000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/02a86a4f-6714-40d4-adad-406344789ee2/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/02a86a4f-6714-40d4-adad-406344789ee2/',
+ related_url: 'http://localhost:49153/v1/audio/02a86a4f-6714-40d4-adad-406344789ee2/related/',
+ waveform: 'http://localhost:49153/v1/audio/02a86a4f-6714-40d4-adad-406344789ee2/waveform/',
+ peaks: [
+ 0.08396,
+ 0.19829,
+ 0.19278,
+ 0.17123,
+ 0.19639,
+ 0.19819,
+ 0.19972,
+ 0.20575,
+ 0.23044,
+ 0.17514,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '86c72e3c-baa3-4e69-8fc3-4b2b7bb0cabf',
+ title: 'cat meowing',
+ indexed_on: '2022-08-01T10:21:55.203678Z',
+ foreign_landing_url: 'https://freesound.org/people/nekoninja/sounds/414042',
+ url: 'https://cdn.freesound.org/previews/414/414042_4682356-hq.mp3',
+ creator: 'nekoninja',
+ creator_url: 'https://freesound.org/people/nekoninja',
+ license: 'cc0',
+ license_version: '1.0',
+ license_url: 'https://creativecommons.org/publicdomain/zero/1.0/',
+ provider: 'freesound',
+ source: 'freesound',
+ category: null,
+ genres: null,
+ filesize: 241724,
+ filetype: 'mp3',
+ tags: [
+ {
+ name: 'meow',
+ accuracy: null,
+ },
+ {
+ name: 'kitten',
+ accuracy: null,
+ },
+ {
+ name: 'animal',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ alt_files: [
+ {
+ url: 'https://freesound.org/apiv2/sounds/414042/download/',
+ bit_rate: '0',
+ filesize: '1796250',
+ filetype: 'wav',
+ sample_rate: '44100',
+ },
+ ],
+ attribution: '"cat meowing" by nekoninja is marked with CC0 1.0. To view the terms, visit https://creativecommons.org/publicdomain/zero/1.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ audio_set: null,
+ duration: 10182,
+ bit_rate: 128000,
+ sample_rate: null,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/86c72e3c-baa3-4e69-8fc3-4b2b7bb0cabf/',
+ related_url: 'http://localhost:49153/v1/audio/86c72e3c-baa3-4e69-8fc3-4b2b7bb0cabf/related/',
+ waveform: 'http://localhost:49153/v1/audio/86c72e3c-baa3-4e69-8fc3-4b2b7bb0cabf/waveform/',
+ peaks: [
+ 0.008,
+ 0.01974,
+ 0.03175,
+ 0.06452,
+ 0.11421,
+ 0.22735,
+ 0.38173,
+ 0.28846,
+ 0.14088,
+ 0.09561,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'adf47e31-5c3d-4304-ab22-7a77f62acdf6',
+ title: 'Lost Cat',
+ indexed_on: '2022-08-01T21:56:38.264750Z',
+ foreign_landing_url: 'https://www.jamendo.com/track/1544341',
+ url: 'https://prod-1.storage.jamendo.com/?trackid=1544341&format=mp32',
+ creator: 'Slingshot Miracle',
+ creator_url: 'https://www.jamendo.com/artist/428682/SlingshotMiracle',
+ license: 'by-nc-nd',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-nd/3.0/',
+ provider: 'jamendo',
+ source: 'jamendo',
+ category: 'music',
+ genres: [
+ 'pop',
+ 'rock',
+ ],
+ filesize: null,
+ filetype: 'mp32',
+ tags: [
+ {
+ name: 'band',
+ accuracy: null,
+ },
+ {
+ name: 'male',
+ accuracy: null,
+ },
+ {
+ name: 'speed_medium',
+ accuracy: null,
+ },
+ {
+ name: 'vocal',
+ accuracy: null,
+ },
+ ],
+ alt_files: null,
+ attribution: '"Lost Cat" by Slingshot Miracle is licensed under CC BY-NC-ND 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/3.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'Greater Good (sampler)',
+ foreign_landing_url: 'https://www.jamendo.com/album/176625/greater-good-sampler',
+ creator: 'Slingshot Miracle',
+ creator_url: 'https://www.jamendo.com/artist/428682/SlingshotMiracle',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 252000,
+ bit_rate: null,
+ sample_rate: null,
+ thumbnail: 'http://localhost:49153/v1/audio/adf47e31-5c3d-4304-ab22-7a77f62acdf6/thumb/',
+ detail_url: 'http://localhost:49153/v1/audio/adf47e31-5c3d-4304-ab22-7a77f62acdf6/',
+ related_url: 'http://localhost:49153/v1/audio/adf47e31-5c3d-4304-ab22-7a77f62acdf6/related/',
+ waveform: 'http://localhost:49153/v1/audio/adf47e31-5c3d-4304-ab22-7a77f62acdf6/waveform/',
+ peaks: [
+ 0,
+ 0.43111,
+ 0.41334,
+ 0.46333,
+ 0.43222,
+ 0.6375,
+ 0.63743,
+ 0.63248,
+ 0.67549,
+ 0.74473,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '5729315d-15dc-41bf-8aaa-461a50eed5d5',
+ title: 'En-us-inlandnorth-cat',
+ indexed_on: '2024-01-07T16:41:33.627277Z',
+ foreign_landing_url: 'https://commons.wikimedia.org/w/index.php?curid=207869',
+ url: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/En-us-inlandnorth-cat.ogg',
+ creator: 'No machine-readable author provided. Stephanie~commonswiki assumed (based on copyright claims).',
+ creator_url: 'https://commons.wikimedia.org/wiki/User:Stephanie~commonswiki',
+ license: 'by-sa',
+ license_version: '3.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/3.0/',
+ provider: 'wikimedia_audio',
+ source: 'wikimedia_audio',
+ category: 'pronunciation',
+ genres: null,
+ filesize: 9343,
+ filetype: 'ogg',
+ tags: [],
+ alt_files: null,
+ attribution: '"En-us-inlandnorth-cat" by No machine-readable author provided. Stephanie~commonswiki assumed (based on copyright claims). is licensed under CC BY-SA 3.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/3.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ ],
+ mature: false,
+ audio_set: null,
+ duration: 325,
+ bit_rate: 96001,
+ sample_rate: 44100,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/5729315d-15dc-41bf-8aaa-461a50eed5d5/',
+ related_url: 'http://localhost:49153/v1/audio/5729315d-15dc-41bf-8aaa-461a50eed5d5/related/',
+ waveform: 'http://localhost:49153/v1/audio/5729315d-15dc-41bf-8aaa-461a50eed5d5/waveform/',
+ peaks: [],
+ unstable__sensitivity: [],
+ },
+ {
+ id: '7cb61e5d-add9-46b6-8d50-9eb389b88e82',
+ title: 'LL-Q7026 (cat)-Millars-agost',
+ indexed_on: '2022-11-20T11:02:40.678411Z',
+ foreign_landing_url: 'https://commons.wikimedia.org/w/index.php?curid=84288913',
+ url: 'https://upload.wikimedia.org/wikipedia/commons/e/e5/LL-Q7026_%28cat%29-Millars-agost.wav',
+ creator: 'Speaker: Millars Recorder: Millars',
+ creator_url: 'https://lingualibre.org/wiki/Q213743',
+ license: 'by-sa',
+ license_version: '4.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/4.0/',
+ provider: 'wikimedia_audio',
+ source: 'wikimedia_audio',
+ category: 'pronunciation',
+ genres: null,
+ filesize: 101164,
+ filetype: 'wav',
+ tags: [],
+ alt_files: null,
+ attribution: '"LL-Q7026 (cat)-Millars-agost" by Speaker: Millars Recorder: Millars is licensed under CC BY-SA 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/4.0/.',
+ fields_matched: [
+ 'title',
+ ],
+ mature: false,
+ audio_set: null,
+ duration: 1053,
+ bit_rate: 768000,
+ sample_rate: 48000,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/7cb61e5d-add9-46b6-8d50-9eb389b88e82/',
+ related_url: 'http://localhost:49153/v1/audio/7cb61e5d-add9-46b6-8d50-9eb389b88e82/related/',
+ waveform: 'http://localhost:49153/v1/audio/7cb61e5d-add9-46b6-8d50-9eb389b88e82/waveform/',
+ peaks: [
+ 0,
+ 0,
+ 0.00003,
+ 0.00001,
+ 0.00001,
+ 0,
+ 0.00002,
+ 0.00001,
+ 0.00001,
+ 0.00001,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'aac05fb1-75c7-42da-ad0d-3b57032ab752',
+ title: 'Cat wants something',
+ indexed_on: '2022-11-01T13:48:32.970278Z',
+ foreign_landing_url: 'https://freesound.org/people/Jeanine2012/sounds/149940',
+ url: 'https://cdn.freesound.org/previews/149/149940_2470754-hq.mp3',
+ creator: 'Jeanine2012',
+ creator_url: 'https://freesound.org/people/Jeanine2012',
+ license: 'cc0',
+ license_version: '1.0',
+ license_url: 'https://creativecommons.org/publicdomain/zero/1.0/',
+ provider: 'freesound',
+ source: 'freesound',
+ category: null,
+ genres: null,
+ filesize: 894618,
+ filetype: 'mp3',
+ tags: [
+ {
+ name: 'animal',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'talking',
+ accuracy: null,
+ },
+ ],
+ alt_files: [
+ {
+ url: 'https://freesound.org/apiv2/sounds/149940/download/',
+ bit_rate: '256000',
+ filesize: '1244681',
+ filetype: 'mp3',
+ sample_rate: '44100',
+ },
+ ],
+ attribution: '"Cat wants something" by Jeanine2012 is marked with CC0 1.0. To view the terms, visit https://creativecommons.org/publicdomain/zero/1.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ audio_set: null,
+ duration: 38839,
+ bit_rate: 128000,
+ sample_rate: null,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/aac05fb1-75c7-42da-ad0d-3b57032ab752/',
+ related_url: 'http://localhost:49153/v1/audio/aac05fb1-75c7-42da-ad0d-3b57032ab752/related/',
+ waveform: 'http://localhost:49153/v1/audio/aac05fb1-75c7-42da-ad0d-3b57032ab752/waveform/',
+ peaks: [
+ 0.2315,
+ 0.24011,
+ 0.07703,
+ 0.13612,
+ 0.19868,
+ 0.08898,
+ 0.10462,
+ 0.12441,
+ 0.06322,
+ 0.06235,
+ ],
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'a3a75eda-8910-4179-8093-54d5c12a4e56',
+ title: 'cat meow II',
+ indexed_on: '2023-03-20T17:21:54.283284Z',
+ foreign_landing_url: 'https://freesound.org/people/tuberatanka/sounds/110010',
+ url: 'https://cdn.freesound.org/previews/110/110010_1537422-hq.mp3',
+ creator: 'tuberatanka',
+ creator_url: 'https://freesound.org/people/tuberatanka',
+ license: 'cc0',
+ license_version: '1.0',
+ license_url: 'https://creativecommons.org/publicdomain/zero/1.0/',
+ provider: 'freesound',
+ source: 'freesound',
+ category: null,
+ genres: null,
+ filesize: 21500,
+ filetype: 'mp3',
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'meow',
+ accuracy: null,
+ },
+ {
+ name: 'meowing',
+ accuracy: null,
+ },
+ ],
+ alt_files: [
+ {
+ url: 'https://freesound.org/apiv2/sounds/110010/download/',
+ bit_rate: '0',
+ filesize: '149780',
+ filetype: 'wav',
+ sample_rate: '44100',
+ },
+ ],
+ attribution: '"cat meow II" by tuberatanka is marked with CC0 1.0. To view the terms, visit https://creativecommons.org/publicdomain/zero/1.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ audio_set: {
+ title: 'cat meowing',
+ foreign_landing_url: 'https://freesound.org/apiv2/packs/6970/',
+ creator: 'tuberatanka',
+ creator_url: 'https://freesound.org/people/tuberatanka/',
+ url: null,
+ filesize: null,
+ filetype: null,
+ },
+ duration: 848,
+ bit_rate: 128000,
+ sample_rate: null,
+ thumbnail: null,
+ detail_url: 'http://localhost:49153/v1/audio/a3a75eda-8910-4179-8093-54d5c12a4e56/',
+ related_url: 'http://localhost:49153/v1/audio/a3a75eda-8910-4179-8093-54d5c12a4e56/related/',
+ waveform: 'http://localhost:49153/v1/audio/a3a75eda-8910-4179-8093-54d5c12a4e56/waveform/',
+ peaks: [
+ 0.00061,
+ 0.00114,
+ 0.00173,
+ 0.00246,
+ 0.00265,
+ 0.0025,
+ 0.0034,
+ 0.00651,
+ 0.00684,
+ 0.00581,
+ ],
+ unstable__sensitivity: [],
+ },
+ ],
+ }
+ },
+}
diff --git a/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_keep-alive.json5 b/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_keep-alive.json5
index aa6aa98c5..3d0c92003 100644
--- a/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_keep-alive.json5
+++ b/frontend/test/tapes/search/audio/q=cat&unstable__include_sensitive_results=true&peaks=true_keep-alive.json5
@@ -171,190 +171,6 @@
0.50366,
0.47806,
0.48454,
- 0.55488,
- 0.74411,
- 0.73414,
- 0.68503,
- 0.74286,
- 0.80824,
- 0.68137,
- 0.81867,
- 0.80859,
- 0.71848,
- 0.72178,
- 0.41496,
- 0.85617,
- 0.89228,
- 0.88168,
- 0.9309,
- 0.91941,
- 0.88868,
- 0.8272,
- 0.911,
- 0.87279,
- 0.87968,
- 0.55821,
- 0.84758,
- 0.84651,
- 0.89676,
- 0.92907,
- 0.81346,
- 0.94042,
- 0.84312,
- 0.88805,
- 0.92907,
- 0.84253,
- 0.8599,
- 0.92575,
- 0.81312,
- 0.89045,
- 0.96664,
- 0.81421,
- 0.93754,
- 0.86872,
- 0.84357,
- 0.90704,
- 0.83755,
- 0.74776,
- 0.66275,
- 0.87236,
- 0.92494,
- 0.97183,
- 0.89582,
- 0.9275,
- 0.93205,
- 0.87243,
- 0.89478,
- 0.90786,
- 0.86085,
- 0.95649,
- 0.89799,
- 0.88155,
- 0.92341,
- 0.83051,
- 0.91729,
- 0.95579,
- 0.84702,
- 0.93073,
- 0.94664,
- 0.8522,
- 0.92939,
- 0.91568,
- 0.89742,
- 0.89842,
- 0.86355,
- 0.89868,
- 0.96096,
- 0.80493,
- 0.87638,
- 0.96779,
- 0.87136,
- 0.91792,
- 0.90984,
- 0.89108,
- 0.90523,
- 0.87902,
- 0.94067,
- 0.93046,
- 0.81249,
- 0.8772,
- 0.9651,
- 0.8659,
- 0.90931,
- 0.91301,
- 0.90186,
- 0.91028,
- 0.87613,
- 0.80547,
- 0.86809,
- 0.88611,
- 0.83247,
- 0.74391,
- 0.86825,
- 0.75376,
- 0.82513,
- 0.8638,
- 0.80085,
- 0.71453,
- 0.75542,
- 0.7389,
- 0.81826,
- 0.79892,
- 0.67036,
- 0.69984,
- 0.73682,
- 0.6507,
- 0.82135,
- 0.73703,
- 0.66747,
- 0.75128,
- 0.60432,
- 0.79568,
- 0.7479,
- 0.68897,
- 0.72446,
- 0.77129,
- 0.67731,
- 0.829,
- 0.7693,
- 0.74592,
- 0.86316,
- 0.77724,
- 0.84782,
- 0.83803,
- 0.81687,
- 0.84226,
- 0.80093,
- 0.91417,
- 0.85418,
- 0.83695,
- 0.95593,
- 0.76131,
- 0.82186,
- 0.88723,
- 0.75165,
- 0.82733,
- 0.88039,
- 0.80776,
- 0.93119,
- 0.89659,
- 0.90079,
- 0.92608,
- 0.86519,
- 0.8979,
- 0.9514,
- 0.79765,
- 0.89276,
- 0.94553,
- 0.85961,
- 0.94421,
- 0.8942,
- 0.87462,
- 0.92629,
- 0.87533,
- 0.85489,
- 0.94104,
- 0.80548,
- 0.89592,
- 0.97186,
- 0.85501,
- 0.9474,
- 0.93155,
- 0.87594,
- 0.89201,
- 0.89697,
- 0.89513,
- 0.93626,
- 0.87788,
- 0.87856,
- 0.96511,
- 0.86246,
- 0.9132,
- 0.42657,
- 0.02762,
- 0.00626,
- 0.00181,
- 0.00037,
],
unstable__sensitivity: [],
},
@@ -441,164 +257,6 @@
0.37453,
0.39303,
0.51729,
- 0.36875,
- 0.36371,
- 0.33425,
- 0.47744,
- 0.46028,
- 0.44735,
- 0.36753,
- 0.46942,
- 0.32807,
- 0.34572,
- 0.35746,
- 0.41446,
- 0.49406,
- 0.43677,
- 0.54995,
- 0.54595,
- 0.47979,
- 0.44623,
- 0.42821,
- 0.58274,
- 0.56159,
- 0.48972,
- 0.42187,
- 0.36188,
- 0.3826,
- 0.38888,
- 0.43935,
- 0.34405,
- 0.45911,
- 0.44501,
- 0.49284,
- 0.39105,
- 0.39364,
- 0.37264,
- 0.35087,
- 0.46724,
- 0.37818,
- 0.45215,
- 0.42291,
- 0.48599,
- 0.36871,
- 0.44758,
- 0.40946,
- 0.42588,
- 0.38689,
- 0.38822,
- 0.43413,
- 0.37438,
- 0.34621,
- 0.42008,
- 0.38384,
- 0.50304,
- 0.44196,
- 0.51564,
- 0.39461,
- 0.51484,
- 0.46501,
- 0.6102,
- 0.49721,
- 0.67061,
- 0.49528,
- 0.52579,
- 0.42302,
- 0.38192,
- 0.46494,
- 0.50297,
- 0.40288,
- 0.54316,
- 0.44108,
- 0.4364,
- 0.61529,
- 0.56273,
- 0.51913,
- 0.55623,
- 0.59149,
- 0.45381,
- 0.43565,
- 0.39391,
- 0.43612,
- 0.42348,
- 0.49423,
- 0.3821,
- 0.33617,
- 0.27123,
- 0.46255,
- 0.38177,
- 0.33738,
- 0.35946,
- 0.47274,
- 0.36678,
- 0.40772,
- 0.42737,
- 0.3619,
- 0.34922,
- 0.44625,
- 0.38321,
- 0.39255,
- 0.48487,
- 0.43331,
- 0.4048,
- 0.39761,
- 0.49103,
- 0.43937,
- 0.50525,
- 0.44538,
- 0.50306,
- 0.47944,
- 0.37912,
- 0.41641,
- 0.44406,
- 0.44102,
- 0.49099,
- 0.49544,
- 0.48591,
- 0.45778,
- 0.55274,
- 0.45088,
- 0.45234,
- 0.41592,
- 0.42124,
- 0.45935,
- 0.47471,
- 0.35426,
- 0.47931,
- 0.41665,
- 0.41567,
- 0.40766,
- 0.42522,
- 0.48296,
- 0.40358,
- 0.40537,
- 0.4125,
- 0.37957,
- 0.43202,
- 0.37328,
- 0.36364,
- 0.42277,
- 0.44106,
- 0.32277,
- 0.50486,
- 0.49976,
- 0.51288,
- 0.42737,
- 0.34263,
- 0.39263,
- 0.45627,
- 0.46892,
- 0.44032,
- 0.4145,
- 0.39336,
- 0.35521,
- 0.50965,
- 0.40364,
- 0.44971,
- 0.34544,
- 0.05918,
- 0.02089,
- 0.00261,
],
unstable__sensitivity: [],
},
@@ -681,186 +339,6 @@
0.08736,
0.41562,
0.48175,
- 0.28022,
- 0.34213,
- 0.4563,
- 0.17098,
- 0.13463,
- 0.55985,
- 0.44995,
- 0.40292,
- 0.37048,
- 0.31184,
- 0.17107,
- 0.56611,
- 0.61317,
- 0.55155,
- 0.13289,
- 0.34133,
- 0.48054,
- 0.51243,
- 0.3522,
- 0.31134,
- 0.16442,
- 0.44151,
- 0.52267,
- 0.51019,
- 0.31376,
- 0.23162,
- 0.27178,
- 0.45861,
- 0.30652,
- 0.19566,
- 0.33761,
- 0.36038,
- 0.37033,
- 0.39602,
- 0.29722,
- 0.45462,
- 0.29017,
- 0.32353,
- 0.59383,
- 0.4465,
- 0.46749,
- 0.4793,
- 0.46094,
- 0.58385,
- 0.41775,
- 0.45802,
- 0.5039,
- 0.38388,
- 0.39259,
- 0.1713,
- 0.21819,
- 0.08842,
- 0.05557,
- 0.10865,
- 0.24747,
- 0.20039,
- 0.10871,
- 0.10564,
- 0.17476,
- 0.22503,
- 0.12507,
- 0.12336,
- 0.21887,
- 0.35509,
- 0.1809,
- 0.1517,
- 0.24461,
- 0.39681,
- 0.38961,
- 0.28843,
- 0.20597,
- 0.13059,
- 0.34682,
- 0.59359,
- 0.41718,
- 0.3959,
- 0.54101,
- 0.5558,
- 0.43392,
- 0.61045,
- 0.50038,
- 0.3302,
- 0.46971,
- 0.6222,
- 0.53582,
- 0.54644,
- 0.57178,
- 0.62164,
- 0.56088,
- 0.68689,
- 0.71458,
- 0.80788,
- 0.65258,
- 0.48205,
- 0.55666,
- 0.53702,
- 0.51287,
- 0.5742,
- 0.44325,
- 0.46605,
- 0.40464,
- 0.21367,
- 0.10871,
- 0.19401,
- 0.33455,
- 0.34228,
- 0.27245,
- 0.17331,
- 0.26693,
- 0.32046,
- 0.22666,
- 0.18229,
- 0.34006,
- 0.29448,
- 0.22028,
- 0.24331,
- 0.52566,
- 0.61435,
- 0.36103,
- 0.27998,
- 0.2809,
- 0.38202,
- 0.23812,
- 0.25997,
- 0.29563,
- 0.22158,
- 0.20768,
- 0.47892,
- 0.46383,
- 0.33696,
- 0.34615,
- 0.37517,
- 0.53838,
- 0.52988,
- 0.59236,
- 0.38105,
- 0.19383,
- 0.36439,
- 0.50732,
- 0.53236,
- 0.49312,
- 0.41355,
- 0.48937,
- 0.43023,
- 0.50091,
- 0.58131,
- 0.45675,
- 0.52326,
- 0.62075,
- 0.49259,
- 0.36741,
- 0.2982,
- 0.3313,
- 0.44497,
- 0.42403,
- 0.36309,
- 0.35539,
- 0.51683,
- 0.65028,
- 0.54482,
- 0.43508,
- 0.43528,
- 0.43947,
- 0.48095,
- 0.27437,
- 0.26466,
- 0.11695,
- 0.12937,
- 0.05852,
- 0.02775,
- 0.02058,
- 0.01019,
- 0.008,
- 0.00469,
- 0.00319,
- 0.00198,
- 0.00159,
- 0.00159,
- 0.00118,
- 0.00112,
],
unstable__sensitivity: [],
},
@@ -952,178 +430,6 @@
0.74471,
0.76437,
0.84102,
- 0.90677,
- 0.77528,
- 0.8736,
- 0.90407,
- 0.8387,
- 0.7874,
- 0.81652,
- 0.68081,
- 0.68881,
- 0.92189,
- 0.69308,
- 0.86925,
- 0.92634,
- 0.87747,
- 0.83857,
- 0.64967,
- 0.87575,
- 0.92795,
- 0.89048,
- 0.89008,
- 0.63124,
- 0.78932,
- 0.90871,
- 0.79535,
- 0.87673,
- 0.87007,
- 0.93519,
- 0.91411,
- 0.92272,
- 0.78717,
- 0.94424,
- 0.93234,
- 0.72592,
- 0.68373,
- 0.80897,
- 0.66691,
- 0.68029,
- 0.73738,
- 0.68761,
- 0.72289,
- 0.70241,
- 0.80832,
- 0.92367,
- 0.79952,
- 0.87429,
- 0.92858,
- 0.87504,
- 0.83768,
- 0.71026,
- 0.58405,
- 0.93075,
- 0.80416,
- 0.921,
- 0.85925,
- 0.78848,
- 0.80284,
- 0.76542,
- 0.72119,
- 0.92403,
- 0.9244,
- 0.9146,
- 0.69383,
- 0.68327,
- 0.87709,
- 0.84701,
- 0.85035,
- 0.92988,
- 0.92861,
- 0.85076,
- 0.87447,
- 0.8464,
- 0.80017,
- 0.86855,
- 0.92221,
- 0.77246,
- 0.64337,
- 0.63707,
- 0.74154,
- 0.67494,
- 0.84931,
- 0.75774,
- 0.77655,
- 0.82688,
- 0.78991,
- 0.80013,
- 0.75825,
- 0.78083,
- 0.74611,
- 0.8347,
- 0.80945,
- 0.75593,
- 0.83293,
- 0.76525,
- 0.78765,
- 0.78463,
- 0.83311,
- 0.7811,
- 0.73844,
- 0.80475,
- 0.77926,
- 0.7726,
- 0.84571,
- 0.81855,
- 0.85501,
- 0.78763,
- 0.817,
- 0.80857,
- 0.84565,
- 0.77944,
- 0.78132,
- 0.86224,
- 0.88305,
- 0.73916,
- 0.57965,
- 0.7343,
- 0.59541,
- 0.92151,
- 0.76515,
- 0.8813,
- 0.91621,
- 0.95604,
- 0.91673,
- 0.72964,
- 0.86991,
- 0.91346,
- 0.87981,
- 0.85516,
- 0.76195,
- 0.7423,
- 0.93215,
- 0.87168,
- 0.79328,
- 0.91873,
- 0.94293,
- 0.90108,
- 0.86957,
- 0.88811,
- 0.83205,
- 0.92249,
- 0.9329,
- 0.9248,
- 0.8992,
- 0.81414,
- 0.7808,
- 0.94048,
- 0.93762,
- 0.91736,
- 0.88797,
- 0.93857,
- 0.87335,
- 0.93246,
- 0.87035,
- 0.76996,
- 0.84024,
- 0.9062,
- 0.81642,
- 0.7038,
- 0.73917,
- 0.69244,
- 0.68424,
- 0.67585,
- 0.71651,
- 0.75391,
- 0.76427,
- 0.49955,
- 0.35913,
- 0.32405,
- 0.25478,
- 0.15991,
- 0.08739,
- 0.04649,
- 0.01453,
],
unstable__sensitivity: [],
},
@@ -1205,165 +511,6 @@
0.73953,
0.64426,
0.76928,
- 0.90192,
- 0.89868,
- 0.79718,
- 0.81097,
- 0.83159,
- 0.82435,
- 0.71023,
- 0.70692,
- 0.88545,
- 0.59404,
- 0.62857,
- 0.73919,
- 0.77793,
- 0.44616,
- 0.71799,
- 0.77646,
- 0.65635,
- 0.79008,
- 0.84135,
- 0.64239,
- 0.66631,
- 0.68898,
- 0.69611,
- 0.88244,
- 0.66696,
- 0.7459,
- 0.48629,
- 0.55433,
- 0.8017,
- 0.87323,
- 0.91443,
- 0.96325,
- 0.95857,
- 0.91753,
- 0.96806,
- 0.81107,
- 0.85637,
- 0.90631,
- 0.9594,
- 0.96377,
- 0.96462,
- 0.97101,
- 0.75956,
- 0.71368,
- 0.84787,
- 0.82796,
- 0.87067,
- 0.96231,
- 0.96263,
- 0.87648,
- 0.84304,
- 0.93234,
- 0.82742,
- 0.96571,
- 0.95654,
- 0.84103,
- 0.83708,
- 0.89885,
- 0.93952,
- 0.96248,
- 0.94565,
- 0.94713,
- 0.96688,
- 0.94293,
- 0.90169,
- 0.9236,
- 0.95986,
- 0.9612,
- 0.96047,
- 0.85631,
- 0.95703,
- 0.74765,
- 0.89661,
- 0.9502,
- 0.95069,
- 0.69663,
- 0.86077,
- 0.90146,
- 0.93904,
- 0.91759,
- 0.89931,
- 0.84732,
- 0.91369,
- 0.79387,
- 0.93755,
- 0.88341,
- 0.87856,
- 0.82,
- 0.81427,
- 0.71699,
- 0.9361,
- 0.58373,
- 0.5443,
- 0.53322,
- 0.66667,
- 0.90883,
- 0.886,
- 0.68415,
- 0.96389,
- 0.86683,
- 0.83734,
- 0.70449,
- 0.95133,
- 0.77422,
- 0.75462,
- 0.90178,
- 0.60582,
- 0.5487,
- 0.64477,
- 0.83603,
- 0.90664,
- 0.84007,
- 0.96176,
- 0.97289,
- 0.5896,
- 0.69842,
- 0.74637,
- 0.81922,
- 0.8825,
- 0.88074,
- 0.92896,
- 0.84687,
- 0.50042,
- 0.6886,
- 0.76121,
- 0.92117,
- 0.9586,
- 0.95898,
- 0.71701,
- 0.50396,
- 0.57186,
- 0.64577,
- 0.72546,
- 0.84169,
- 0.95209,
- 0.82928,
- 0.67842,
- 0.83173,
- 0.7549,
- 0.73735,
- 0.85758,
- 0.54974,
- 0.89331,
- 0.84064,
- 0.96194,
- 0.72301,
- 0.90551,
- 0.96071,
- 0.93019,
- 0.58839,
- 0.68708,
- 0.57905,
- 0.3253,
- 0.14172,
- 0.03507,
- 0.01571,
- 0.00516,
- 0.00001,
- 0,
],
unstable__sensitivity: [],
},
@@ -1449,170 +596,6 @@
0.19006,
0.12573,
0.11759,
- 0.31221,
- 0.15578,
- 0.42171,
- 0.41383,
- 0.34332,
- 0.44908,
- 0.38318,
- 0.30625,
- 0.25435,
- 0.07456,
- 0.41868,
- 0.25282,
- 0.38669,
- 0.37114,
- 0.36778,
- 0.44952,
- 0.29262,
- 0.27488,
- 0.14637,
- 0.39871,
- 0.73616,
- 0.69537,
- 0.65726,
- 0.69289,
- 0.67972,
- 0.69698,
- 0.58569,
- 0.6366,
- 0.74211,
- 0.82815,
- 0.64714,
- 0.62718,
- 0.60416,
- 0.86327,
- 0.66182,
- 0.38049,
- 0.64331,
- 0.55644,
- 0.87198,
- 0.726,
- 0.77823,
- 0.85933,
- 0.85705,
- 0.85447,
- 0.58886,
- 0.87849,
- 0.74058,
- 0.68013,
- 0.89681,
- 0.67051,
- 0.90895,
- 0.7677,
- 0.91019,
- 0.869,
- 0.73095,
- 0.53086,
- 0.35625,
- 0.95019,
- 0.83027,
- 0.919,
- 0.82967,
- 0.8125,
- 0.87647,
- 0.84709,
- 0.72813,
- 0.85898,
- 0.86098,
- 0.89246,
- 0.90691,
- 0.82023,
- 0.9546,
- 0.84215,
- 0.4128,
- 0.55827,
- 0.72453,
- 0.9294,
- 0.82681,
- 0.87775,
- 0.93093,
- 0.91922,
- 0.82391,
- 0.71506,
- 0.80753,
- 0.74901,
- 0.71498,
- 0.86885,
- 0.80951,
- 0.94147,
- 0.89822,
- 0.89402,
- 0.80825,
- 0.84107,
- 0.565,
- 0.48005,
- 0.7988,
- 0.84068,
- 0.87569,
- 0.88768,
- 0.90685,
- 0.84557,
- 0.83889,
- 0.84636,
- 0.91388,
- 0.85749,
- 0.84949,
- 0.86848,
- 0.92893,
- 0.84413,
- 0.72259,
- 0.83288,
- 0.89384,
- 0.70486,
- 0.88306,
- 0.86692,
- 0.83705,
- 0.8606,
- 0.78956,
- 0.8716,
- 0.70512,
- 0.44434,
- 0.565,
- 0.75126,
- 0.84949,
- 0.87303,
- 0.82263,
- 0.75635,
- 0.80253,
- 0.64214,
- 0.22549,
- 0.56708,
- 0.78009,
- 0.83931,
- 0.764,
- 0.79546,
- 0.85431,
- 0.89374,
- 0.85297,
- 0.77825,
- 0.91058,
- 0.84284,
- 0.81836,
- 0.71064,
- 0.92818,
- 0.68444,
- 0.41554,
- 0.43051,
- 0.49005,
- 0.84282,
- 0.69661,
- 0.81171,
- 0.87057,
- 0.81806,
- 0.73797,
- 0.78383,
- 0.76342,
- 0.39506,
- 0.14959,
- 0.19246,
- 0.02432,
- 0.01034,
- 0.00594,
- 0.00083,
- 0.00019,
- 0.00003,
],
unstable__sensitivity: [
'sensitive_text',
@@ -1693,190 +676,6 @@
0.44403,
0.49727,
0.4378,
- 0.47904,
- 0.3972,
- 0.43493,
- 0.4677,
- 0.47165,
- 0.47131,
- 0.42677,
- 0.4976,
- 0.61746,
- 0.55832,
- 0.47106,
- 0.56253,
- 0.49433,
- 0.23731,
- 0.44765,
- 0.45079,
- 0.40101,
- 0.47223,
- 0.40571,
- 0.42946,
- 0.36552,
- 0.47228,
- 0.47464,
- 0.51143,
- 0.59034,
- 0.39236,
- 0.44915,
- 0.50854,
- 0.62392,
- 0.37925,
- 0.49462,
- 0.53712,
- 0.45376,
- 0.48671,
- 0.44504,
- 0.36046,
- 0.3877,
- 0.30356,
- 0.47462,
- 0.51436,
- 0.41565,
- 0.55426,
- 0.42359,
- 0.37257,
- 0.45709,
- 0.56917,
- 0.53646,
- 0.64137,
- 0.49619,
- 0.41879,
- 0.52382,
- 0.48579,
- 0.60364,
- 0.42707,
- 0.38838,
- 0.5163,
- 0.44785,
- 0.44646,
- 0.45698,
- 0.42807,
- 0.50337,
- 0.54273,
- 0.5806,
- 0.45779,
- 0.46213,
- 0.3708,
- 0.49568,
- 0.52279,
- 0.44407,
- 0.54358,
- 0.54577,
- 0.38927,
- 0.45834,
- 0.63147,
- 0.48923,
- 0.59477,
- 0.45333,
- 0.5864,
- 0.6304,
- 0.628,
- 0.51094,
- 0.69176,
- 0.52531,
- 0.39212,
- 0.37668,
- 0.3481,
- 0.39573,
- 0.54443,
- 0.52703,
- 0.37153,
- 0.44429,
- 0.49644,
- 0.48259,
- 0.59264,
- 0.53502,
- 0.3886,
- 0.57612,
- 0.56997,
- 0.51972,
- 0.4341,
- 0.51135,
- 0.60345,
- 0.6599,
- 0.39382,
- 0.4596,
- 0.51837,
- 0.31862,
- 0.33652,
- 0.45555,
- 0.42009,
- 0.43746,
- 0.53745,
- 0.64686,
- 0.30878,
- 0.52933,
- 0.68585,
- 0.4506,
- 0.68322,
- 0.73763,
- 0.50419,
- 0.45475,
- 0.58259,
- 0.55396,
- 0.47371,
- 0.38073,
- 0.42545,
- 0.53456,
- 0.4444,
- 0.49681,
- 0.52252,
- 0.36466,
- 0.46595,
- 0.56058,
- 0.41793,
- 0.45435,
- 0.44584,
- 0.46314,
- 0.47307,
- 0.5042,
- 0.55057,
- 0.51772,
- 0.50354,
- 0.49211,
- 0.48848,
- 0.42737,
- 0.66379,
- 0.53752,
- 0.27539,
- 0.69345,
- 0.55287,
- 0.63172,
- 0.58942,
- 0.61411,
- 0.50591,
- 0.32731,
- 0.40249,
- 0.48256,
- 0.315,
- 0.49079,
- 0.43836,
- 0.47997,
- 0.4069,
- 0.47751,
- 0.56082,
- 0.45433,
- 0.45116,
- 0.53162,
- 0.46642,
- 0.47718,
- 0.56786,
- 0.51859,
- 0.70906,
- 0.52928,
- 0.51186,
- 0.57188,
- 0.46588,
- 0.42833,
- 0.2769,
- 0.45233,
- 0.34652,
- 0.23369,
- 0.29501,
- 0.06936,
- 0.01226,
],
unstable__sensitivity: [],
},
@@ -1942,176 +741,6 @@
0.0012,
0.08209,
0.52701,
- 0.48064,
- 0.40046,
- 0.34489,
- 0.30846,
- 0.21624,
- 0.06799,
- 0.02716,
- 0.00778,
- 0.37422,
- 0.58402,
- 0.44381,
- 0.41391,
- 0.36915,
- 0.35256,
- 0.1447,
- 0.05498,
- 0.02318,
- 0.24039,
- 0.59903,
- 0.54602,
- 0.49207,
- 0.56015,
- 0.50293,
- 0.33192,
- 0.1424,
- 0.37254,
- 0.41439,
- 0.58244,
- 0.5339,
- 0.49654,
- 0.60248,
- 0.38917,
- 0.34627,
- 0.1331,
- 0.04423,
- 0.08578,
- 0.35972,
- 0.48381,
- 0.37461,
- 0.44005,
- 0.43116,
- 0.30461,
- 0.27834,
- 0.30254,
- 0.40642,
- 0.35214,
- 0.46774,
- 0.44044,
- 0.47481,
- 0.50133,
- 0.45421,
- 0.52809,
- 0.51741,
- 0.49814,
- 0.58384,
- 0.52693,
- 0.60737,
- 0.50103,
- 0.4855,
- 0.5323,
- 0.41199,
- 0.31554,
- 0.42547,
- 0.48121,
- 0.48446,
- 0.73162,
- 0.53478,
- 0.46785,
- 0.38996,
- 0.31969,
- 0.34304,
- 0.42639,
- 0.43366,
- 0.60688,
- 0.70876,
- 0.64964,
- 0.54128,
- 0.44728,
- 0.31857,
- 0.26547,
- 0.44285,
- 0.24945,
- 0.24575,
- 0.44752,
- 0.65718,
- 0.48918,
- 0.50936,
- 0.45514,
- 0.35397,
- 0.24718,
- 0.27079,
- 0.19349,
- 0.33161,
- 0.41073,
- 0.454,
- 0.48586,
- 0.52626,
- 0.40189,
- 0.50982,
- 0.74299,
- 0.39852,
- 0.45319,
- 0.60998,
- 0.71813,
- 0.74118,
- 0.82473,
- 0.81293,
- 0.58098,
- 0.45875,
- 0.3285,
- 0.30739,
- 0.34636,
- 0.58364,
- 0.58594,
- 0.47049,
- 0.46896,
- 0.45239,
- 0.55574,
- 0.4331,
- 0.29902,
- 0.43889,
- 0.66434,
- 0.74902,
- 0.7425,
- 0.56185,
- 0.50497,
- 0.34803,
- 0.35831,
- 0.32229,
- 0.28437,
- 0.48211,
- 0.39288,
- 0.42727,
- 0.45833,
- 0.47807,
- 0.40605,
- 0.39084,
- 0.40966,
- 0.48183,
- 0.48997,
- 0.55824,
- 0.45654,
- 0.48266,
- 0.3872,
- 0.27916,
- 0.28778,
- 0.57893,
- 0.65158,
- 0.62069,
- 0.53421,
- 0.50592,
- 0.47156,
- 0.52718,
- 0.51088,
- 0.43274,
- 0.51794,
- 0.33348,
- 0.29735,
- 0.30846,
- 0.23559,
- 0.18199,
- 0.13336,
- 0.12294,
- 0.09068,
- 0.06257,
- 0.05882,
- 0.04801,
- 0.0334,
- 0.0108,
- 0.00038,
],
unstable__sensitivity: [],
},
@@ -2175,185 +804,6 @@
0.15116,
0.36544,
0.20898,
- 0.21698,
- 0.33673,
- 0.27057,
- 0.15985,
- 0.28384,
- 0.22038,
- 0.15717,
- 0.20302,
- 0.21577,
- 0.21988,
- 0.24417,
- 0.32197,
- 0.249,
- 0.20076,
- 0.32536,
- 0.21175,
- 0.32926,
- 0.51405,
- 0.53498,
- 0.55504,
- 0.56613,
- 0.61035,
- 0.503,
- 0.54059,
- 0.61381,
- 0.46139,
- 0.52629,
- 0.69441,
- 0.48729,
- 0.56183,
- 0.58754,
- 0.47275,
- 0.46324,
- 0.57728,
- 0.53904,
- 0.51638,
- 0.47501,
- 0.65335,
- 0.50106,
- 0.53649,
- 0.66197,
- 0.52601,
- 0.64121,
- 0.72778,
- 0.57781,
- 0.48379,
- 0.47511,
- 0.63148,
- 0.61286,
- 0.46308,
- 0.71261,
- 0.52027,
- 0.5194,
- 0.62228,
- 0.4976,
- 0.61891,
- 0.65128,
- 0.4437,
- 0.41098,
- 0.52644,
- 0.68841,
- 0.45324,
- 0.48286,
- 0.70533,
- 0.67903,
- 0.52728,
- 0.63573,
- 0.58789,
- 0.65934,
- 0.73234,
- 0.63507,
- 0.57349,
- 0.53265,
- 0.68265,
- 0.457,
- 0.42718,
- 0.64845,
- 0.56276,
- 0.41724,
- 0.75074,
- 0.60507,
- 0.59791,
- 0.64534,
- 0.50446,
- 0.43591,
- 0.516,
- 0.59078,
- 0.48612,
- 0.47424,
- 0.64145,
- 0.57484,
- 0.40754,
- 0.56515,
- 0.63324,
- 0.62868,
- 0.58559,
- 0.70696,
- 0.60529,
- 0.57212,
- 0.6206,
- 0.65997,
- 0.63097,
- 0.66046,
- 0.60514,
- 0.70588,
- 0.72475,
- 0.6312,
- 0.57826,
- 0.68749,
- 0.64218,
- 0.61813,
- 0.56185,
- 0.55993,
- 0.53652,
- 0.51241,
- 0.70498,
- 0.63551,
- 0.68647,
- 0.60817,
- 0.60589,
- 0.57152,
- 0.5931,
- 0.77398,
- 0.64701,
- 0.6465,
- 0.58661,
- 0.57472,
- 0.50072,
- 0.68522,
- 0.5734,
- 0.48133,
- 0.6932,
- 0.49122,
- 0.42357,
- 0.57179,
- 0.55583,
- 0.45095,
- 0.70891,
- 0.67363,
- 0.68773,
- 0.5206,
- 0.80156,
- 0.60702,
- 0.56809,
- 0.71319,
- 0.608,
- 0.63547,
- 0.53115,
- 0.71681,
- 0.59443,
- 0.53513,
- 0.67061,
- 0.67124,
- 0.68671,
- 0.69442,
- 0.61432,
- 0.6395,
- 0.70743,
- 0.66241,
- 0.60599,
- 0.62496,
- 0.70533,
- 0.62871,
- 0.67218,
- 0.61584,
- 0.64002,
- 0.53177,
- 0.71253,
- 0.65087,
- 0.7056,
- 0.604,
- 0.56011,
- 0.45253,
- 0.25353,
- 0.0405,
- 0.01517,
- 0.00691,
- 0.00127,
- 0.00007,
],
unstable__sensitivity: [],
},
@@ -2421,171 +871,6 @@
0.53264,
0.43832,
0.5182,
- 0.4436,
- 0.4573,
- 0.51542,
- 0.54566,
- 0.61375,
- 0.72336,
- 0.71113,
- 0.57044,
- 0.68049,
- 0.58676,
- 0.81965,
- 0.7269,
- 0.75707,
- 0.59829,
- 0.65653,
- 0.66796,
- 0.7994,
- 0.73056,
- 0.79059,
- 0.68158,
- 0.7013,
- 0.66355,
- 0.73312,
- 0.69746,
- 0.68156,
- 0.55882,
- 0.70824,
- 0.73584,
- 0.76464,
- 0.74162,
- 0.6977,
- 0.75156,
- 0.781,
- 0.74681,
- 0.69717,
- 0.56454,
- 0.60293,
- 0.76431,
- 0.61392,
- 0.7508,
- 0.64784,
- 0.61779,
- 0.53534,
- 0.72323,
- 0.73158,
- 0.84282,
- 0.65641,
- 0.73522,
- 0.73048,
- 0.69806,
- 0.55297,
- 0.56841,
- 0.57804,
- 0.55911,
- 0.5866,
- 0.56643,
- 0.53845,
- 0.63145,
- 0.51453,
- 0.63467,
- 0.54149,
- 0.68285,
- 0.72127,
- 0.67049,
- 0.65521,
- 0.74788,
- 0.73078,
- 0.72015,
- 0.71083,
- 0.65327,
- 0.68646,
- 0.73999,
- 0.85525,
- 0.82565,
- 0.67944,
- 0.72975,
- 0.68881,
- 0.66248,
- 0.77856,
- 0.82764,
- 0.60124,
- 0.69301,
- 0.65676,
- 0.73401,
- 0.81108,
- 0.70349,
- 0.73069,
- 0.74947,
- 0.77265,
- 0.83281,
- 0.74535,
- 0.67167,
- 0.62921,
- 0.85417,
- 0.74715,
- 0.73301,
- 0.66608,
- 0.72464,
- 0.65803,
- 0.76823,
- 0.69255,
- 0.88375,
- 0.80619,
- 0.73596,
- 0.7513,
- 0.8116,
- 0.76294,
- 0.62515,
- 0.58508,
- 0.73473,
- 0.71212,
- 0.72146,
- 0.81933,
- 0.742,
- 0.8255,
- 0.75736,
- 0.6439,
- 0.55157,
- 0.80975,
- 0.74229,
- 0.65221,
- 0.67765,
- 0.60668,
- 0.58308,
- 0.6718,
- 0.66881,
- 0.88631,
- 0.83412,
- 0.73739,
- 0.75924,
- 0.83164,
- 0.56717,
- 0.53255,
- 0.52892,
- 0.54025,
- 0.5724,
- 0.5336,
- 0.79338,
- 0.59422,
- 0.62728,
- 0.64799,
- 0.63026,
- 0.62433,
- 0.65067,
- 0.61647,
- 0.65039,
- 0.66931,
- 0.70339,
- 0.74763,
- 0.60461,
- 0.49989,
- 0.42009,
- 0.35903,
- 0.26039,
- 0.20098,
- 0.10785,
- 0.05818,
- 0.04158,
- 0.03274,
- 0.02443,
- 0.01562,
- 0.00633,
- 0.00022,
- 0.00008,
- 0.00009,
],
unstable__sensitivity: [],
},
@@ -2653,171 +938,6 @@
0.17158,
0.24058,
0.35311,
- 0.33589,
- 0.3123,
- 0.36513,
- 0.33186,
- 0.34056,
- 0.40081,
- 0.2309,
- 0.36433,
- 0.39141,
- 0.27868,
- 0.33197,
- 0.42492,
- 0.29846,
- 0.37957,
- 0.37658,
- 0.30921,
- 0.31359,
- 0.33346,
- 0.34414,
- 0.37565,
- 0.31313,
- 0.34243,
- 0.30307,
- 0.41876,
- 0.48722,
- 0.4248,
- 0.2896,
- 0.4392,
- 0.39792,
- 0.39517,
- 0.56907,
- 0.29533,
- 0.43791,
- 0.39831,
- 0.3736,
- 0.34063,
- 0.4083,
- 0.32641,
- 0.3534,
- 0.34092,
- 0.30164,
- 0.33153,
- 0.38173,
- 0.36658,
- 0.35703,
- 0.32676,
- 0.3173,
- 0.30888,
- 0.30506,
- 0.56837,
- 0.37725,
- 0.3654,
- 0.35586,
- 0.39776,
- 0.23938,
- 0.56075,
- 0.39648,
- 0.36081,
- 0.46442,
- 0.3556,
- 0.45425,
- 0.57871,
- 0.41802,
- 0.41038,
- 0.33088,
- 0.29967,
- 0.36754,
- 0.35775,
- 0.37101,
- 0.35591,
- 0.39012,
- 0.43605,
- 0.41819,
- 0.47909,
- 0.65927,
- 0.48684,
- 0.36895,
- 0.41864,
- 0.36589,
- 0.31527,
- 0.58914,
- 0.50391,
- 0.39885,
- 0.46677,
- 0.41926,
- 0.42165,
- 0.463,
- 0.43835,
- 0.38469,
- 0.31977,
- 0.48053,
- 0.47242,
- 0.30587,
- 0.51287,
- 0.38617,
- 0.30487,
- 0.25829,
- 0.40101,
- 0.38985,
- 0.34931,
- 0.3754,
- 0.37618,
- 0.44895,
- 0.6331,
- 0.63158,
- 0.69721,
- 0.31199,
- 0.44586,
- 0.48401,
- 0.38468,
- 0.34285,
- 0.58787,
- 0.27843,
- 0.52693,
- 0.37663,
- 0.40424,
- 0.45668,
- 0.40088,
- 0.33098,
- 0.48057,
- 0.33718,
- 0.3688,
- 0.26065,
- 0.32038,
- 0.50734,
- 0.34981,
- 0.41463,
- 0.54475,
- 0.35918,
- 0.45192,
- 0.52121,
- 0.44155,
- 0.49949,
- 0.54576,
- 0.4072,
- 0.58597,
- 0.6345,
- 0.41719,
- 0.56075,
- 0.51914,
- 0.488,
- 0.58977,
- 0.51273,
- 0.52626,
- 0.54383,
- 0.31566,
- 0.56396,
- 0.49902,
- 0.47649,
- 0.55585,
- 0.45107,
- 0.27195,
- 0.22481,
- 0.11136,
- 0.05342,
- 0.02339,
- 0.00725,
- 0.00262,
- 0.00054,
- 0.00004,
- 0.00003,
- 0.00003,
- 0.00003,
- 0.00004,
- 0.00002,
],
unstable__sensitivity: [],
},
@@ -2887,166 +1007,6 @@
0.01238,
0.02164,
0.01123,
- 0.03235,
- 0.01231,
- 0.02107,
- 0.0469,
- 0.03346,
- 0.03853,
- 0.04598,
- 0.03384,
- 0.05085,
- 0.0921,
- 0.13474,
- 0.15475,
- 0.35578,
- 0.57558,
- 0.6797,
- 0.67579,
- 0.65158,
- 0.83108,
- 0.88876,
- 0.85616,
- 0.71128,
- 0.81838,
- 0.90864,
- 0.88504,
- 0.66868,
- 0.6457,
- 0.65641,
- 0.62451,
- 0.67422,
- 0.63331,
- 0.70405,
- 0.83981,
- 0.82827,
- 0.84117,
- 0.7559,
- 0.71051,
- 0.76188,
- 0.81182,
- 0.81702,
- 0.73933,
- 0.60058,
- 0.60205,
- 0.67452,
- 0.8734,
- 0.96812,
- 0.89371,
- 0.91258,
- 0.95423,
- 0.94335,
- 0.89895,
- 0.80272,
- 0.84427,
- 0.87424,
- 0.88675,
- 0.88629,
- 0.9194,
- 0.92934,
- 0.93581,
- 0.94733,
- 0.98,
- 0.94894,
- 0.94078,
- 0.87765,
- 0.88935,
- 0.89199,
- 0.88818,
- 0.94442,
- 0.93288,
- 0.91373,
- 0.74546,
- 0.3982,
- 0.4005,
- 0.30415,
- 0.27566,
- 0.22454,
- 0.25024,
- 0.24135,
- 0.23945,
- 0.22401,
- 0.2198,
- 0.212,
- 0.16508,
- 0.15495,
- 0.15408,
- 0.16063,
- 0.14288,
- 0.15949,
- 0.13298,
- 0.16712,
- 0.1806,
- 0.17815,
- 0.16513,
- 0.17832,
- 0.17375,
- 0.16023,
- 0.1555,
- 0.14985,
- 0.14559,
- 0.12819,
- 0.15024,
- 0.13224,
- 0.11789,
- 0.12917,
- 0.14234,
- 0.14765,
- 0.13446,
- 0.13501,
- 0.11504,
- 0.09001,
- 0.09824,
- 0.09294,
- 0.10554,
- 0.10848,
- 0.11052,
- 0.10899,
- 0.07995,
- 0.04732,
- 0.09649,
- 0.02646,
- 0.01817,
- 0.02145,
- 0.02151,
- 0.01518,
- 0.01818,
- 0.01404,
- 0.01601,
- 0.00814,
- 0.01518,
- 0.01205,
- 0.00183,
- 0.01089,
- 0.01611,
- 0.01016,
- 0.01098,
- 0.01118,
- 0.00622,
- 0.01091,
- 0.00438,
- 0.00665,
- 0.00874,
- 0.00653,
- 0.00664,
- 0.00534,
- 0.00823,
- 0.00448,
- 0.00384,
- 0.00594,
- 0.00299,
- 0.00411,
- 0.00309,
- 0.00109,
- 0.00061,
- 0.01081,
- 0.00082,
- 0.0005,
- 0.00158,
- 0.00069,
- 0.00014,
- 0.00002,
- 0,
],
unstable__sensitivity: [],
},
@@ -3127,169 +1087,6 @@
0.20249,
0.21508,
0.30483,
- 0.18878,
- 0.26439,
- 0.22035,
- 0.27469,
- 0.24315,
- 0.22116,
- 0.23384,
- 0.28312,
- 0.28006,
- 0.20911,
- 0.31581,
- 0.1993,
- 0.17202,
- 0.27782,
- 0.25482,
- 0.22518,
- 0.30045,
- 0.34557,
- 0.28748,
- 0.24315,
- 0.26756,
- 0.28068,
- 0.21235,
- 0.1826,
- 0.21845,
- 0.208,
- 0.28442,
- 0.34619,
- 0.3324,
- 0.30902,
- 0.14291,
- 0.11108,
- 0.166,
- 0.22084,
- 0.14236,
- 0.15598,
- 0.25962,
- 0.30733,
- 0.27555,
- 0.28379,
- 0.29253,
- 0.41321,
- 0.40196,
- 0.11663,
- 0.14955,
- 0.13688,
- 0.13723,
- 0.13382,
- 0.1764,
- 0.15445,
- 0.19722,
- 0.16826,
- 0.14148,
- 0.1325,
- 0.15718,
- 0.23624,
- 0.16126,
- 0.24808,
- 0.12954,
- 0.18903,
- 0.1669,
- 0.14225,
- 0.106,
- 0.04695,
- 0.06479,
- 0.13426,
- 0.11763,
- 0.17652,
- 0.22666,
- 0.39149,
- 0.36775,
- 0.22479,
- 0.21041,
- 0.20597,
- 0.23968,
- 0.24968,
- 0.29897,
- 0.24074,
- 0.3195,
- 0.28033,
- 0.35813,
- 0.29505,
- 0.21132,
- 0.25355,
- 0.26653,
- 0.29842,
- 0.18547,
- 0.26604,
- 0.2348,
- 0.22536,
- 0.2017,
- 0.20938,
- 0.25477,
- 0.26485,
- 0.31615,
- 0.32057,
- 0.41261,
- 0.17061,
- 0.15869,
- 0.13913,
- 0.25841,
- 0.31521,
- 0.24469,
- 0.23542,
- 0.19086,
- 0.23635,
- 0.32484,
- 0.24386,
- 0.10593,
- 0.2141,
- 0.26127,
- 0.25866,
- 0.27274,
- 0.31645,
- 0.4089,
- 0.47167,
- 0.23566,
- 0.26875,
- 0.24981,
- 0.34224,
- 0.28392,
- 0.39128,
- 0.28927,
- 0.2443,
- 0.25296,
- 0.31772,
- 0.3007,
- 0.1946,
- 0.14866,
- 0.18774,
- 0.22557,
- 0.22878,
- 0.35647,
- 0.2159,
- 0.19073,
- 0.23119,
- 0.19127,
- 0.30554,
- 0.22803,
- 0.18167,
- 0.18711,
- 0.27221,
- 0.20874,
- 0.27481,
- 0.24365,
- 0.28098,
- 0.35116,
- 0.43316,
- 0.44713,
- 0.5046,
- 0.24511,
- 0.25876,
- 0.23112,
- 0.31718,
- 0.22654,
- 0.24815,
- 0.21722,
- 0.09628,
- 0.23424,
- 0.38931,
- 0.31079,
- 0.36569,
- 0.21198,
],
unstable__sensitivity: [],
},
@@ -3367,187 +1164,6 @@
0.20575,
0.23044,
0.17514,
- 0.2044,
- 0.22781,
- 0.25497,
- 0.25454,
- 0.24259,
- 0.23618,
- 0.25575,
- 0.26243,
- 0.29347,
- 0.27152,
- 0.27463,
- 0.28061,
- 0.30268,
- 0.3749,
- 0.26538,
- 0.28964,
- 0.26681,
- 0.28554,
- 0.2789,
- 0.29865,
- 0.30089,
- 0.26644,
- 0.2872,
- 0.35807,
- 0.31038,
- 0.33353,
- 0.30578,
- 0.24693,
- 0.2639,
- 0.28398,
- 0.27937,
- 0.28848,
- 0.26409,
- 0.26803,
- 0.26775,
- 0.33836,
- 0.43061,
- 0.36836,
- 0.35149,
- 0.39121,
- 0.4231,
- 0.47214,
- 0.45482,
- 0.4399,
- 0.357,
- 0.3625,
- 0.55092,
- 0.48278,
- 0.56063,
- 0.57778,
- 0.50218,
- 0.51401,
- 0.55491,
- 0.49829,
- 0.52465,
- 0.51414,
- 0.51983,
- 0.43783,
- 0.54283,
- 0.52501,
- 0.41203,
- 0.43241,
- 0.38654,
- 0.45248,
- 0.47968,
- 0.24314,
- 0.28353,
- 0.34109,
- 0.28713,
- 0.28389,
- 0.26234,
- 0.26677,
- 0.3567,
- 0.38827,
- 0.34711,
- 0.34994,
- 0.35696,
- 0.37655,
- 0.43201,
- 0.45858,
- 0.38055,
- 0.43349,
- 0.4665,
- 0.46226,
- 0.54424,
- 0.43722,
- 0.41913,
- 0.4817,
- 0.52534,
- 0.46665,
- 0.41945,
- 0.48528,
- 0.48956,
- 0.49756,
- 0.47144,
- 0.50606,
- 0.54112,
- 0.58917,
- 0.50191,
- 0.48171,
- 0.50681,
- 0.62293,
- 0.63682,
- 0.66046,
- 0.39648,
- 0.38826,
- 0.2676,
- 0.39232,
- 0.43147,
- 0.61424,
- 0.42461,
- 0.33187,
- 0.38666,
- 0.37366,
- 0.30462,
- 0.37238,
- 0.30739,
- 0.30671,
- 0.39415,
- 0.31553,
- 0.31859,
- 0.37945,
- 0.34269,
- 0.47801,
- 0.62442,
- 0.34341,
- 0.42819,
- 0.60631,
- 0.32347,
- 0.56759,
- 0.62902,
- 0.32817,
- 0.50612,
- 0.52333,
- 0.20684,
- 0.28311,
- 0.27027,
- 0.23444,
- 0.41647,
- 0.4245,
- 0.53597,
- 0.60614,
- 0.52404,
- 0.60161,
- 0.64808,
- 0.53639,
- 0.5881,
- 0.58178,
- 0.62826,
- 0.60574,
- 0.60543,
- 0.57269,
- 0.57917,
- 0.638,
- 0.69926,
- 0.63588,
- 0.65142,
- 0.74399,
- 0.8203,
- 0.65322,
- 0.6766,
- 0.63645,
- 0.5799,
- 0.65453,
- 0.71945,
- 0.62971,
- 0.63837,
- 0.67738,
- 0.57634,
- 0.71111,
- 0.682,
- 0.8066,
- 0.33038,
- 0.25482,
- 0.57379,
- 0.25277,
- 0.03289,
- 0.00306,
- 0.0006,
- 0.00007,
- 0,
],
unstable__sensitivity: [],
},
@@ -3621,165 +1237,6 @@
0.28846,
0.14088,
0.09561,
- 0.05263,
- 0.01942,
- 0.029,
- 0.04309,
- 0.14701,
- 0.1569,
- 0.27346,
- 0.38289,
- 0.40008,
- 0.34233,
- 0.28155,
- 0.29804,
- 0.32852,
- 0.24134,
- 0.11663,
- 0.03083,
- 0.04408,
- 0.04394,
- 0.02157,
- 0.01541,
- 0.02763,
- 0.10917,
- 0.35152,
- 0.38227,
- 0.6801,
- 0.77097,
- 0.61536,
- 0.6005,
- 0.42111,
- 0.06642,
- 0.06209,
- 0.02446,
- 0.02193,
- 0.02394,
- 0.03602,
- 0.11253,
- 0.34441,
- 0.25788,
- 0.23228,
- 0.12223,
- 0.14218,
- 0.16242,
- 0.05174,
- 0.02227,
- 0.03316,
- 0.02701,
- 0.03409,
- 0.0302,
- 0.20543,
- 0.61367,
- 0.72695,
- 0.74071,
- 0.5514,
- 0.35853,
- 0.20098,
- 0.20877,
- 0.17123,
- 0.11627,
- 0.0439,
- 0.01355,
- 0.03095,
- 0.02542,
- 0.1081,
- 0.22142,
- 0.33962,
- 0.43882,
- 0.5879,
- 0.49568,
- 0.43173,
- 0.36704,
- 0.34589,
- 0.24574,
- 0.17599,
- 0.02809,
- 0.02835,
- 0.025,
- 0.03375,
- 0.01637,
- 0.02427,
- 0.02731,
- 0.03681,
- 0.18606,
- 0.67629,
- 0.57496,
- 0.51883,
- 0.50996,
- 0.46097,
- 0.44274,
- 0.20832,
- 0.05155,
- 0.02572,
- 0.0243,
- 0.03443,
- 0.03167,
- 0.05497,
- 0.13019,
- 0.12727,
- 0.13608,
- 0.09965,
- 0.11242,
- 0.08681,
- 0.03692,
- 0.02653,
- 0.0378,
- 0.03164,
- 0.02032,
- 0.03658,
- 0.07009,
- 0.13621,
- 0.15627,
- 0.2231,
- 0.22421,
- 0.25584,
- 0.22026,
- 0.06321,
- 0.04352,
- 0.02539,
- 0.01947,
- 0.02503,
- 0.02006,
- 0.0256,
- 0.03516,
- 0.01998,
- 0.02179,
- 0.02569,
- 0.02356,
- 0.05058,
- 0.16471,
- 0.39546,
- 0.52365,
- 0.40364,
- 0.17707,
- 0.24428,
- 0.21035,
- 0.16561,
- 0.10193,
- 0.07267,
- 0.02204,
- 0.02344,
- 0.02138,
- 0.02138,
- 0.027,
- 0.02444,
- 0.02681,
- 0.02794,
- 0.18629,
- 0.24539,
- 0.59333,
- 0.62831,
- 0.49987,
- 0.48765,
- 0.41518,
- 0.39494,
- 0.22484,
- 0.05248,
- 0.02744,
- 0.02224,
- 0.00755,
- 0.00071,
],
unstable__sensitivity: [],
},
@@ -3854,165 +1311,6 @@
0.63248,
0.67549,
0.74473,
- 0.79442,
- 0.76368,
- 0.78086,
- 0.78921,
- 0.74468,
- 0.73871,
- 0.69787,
- 0.81781,
- 0.78385,
- 0.86431,
- 0.787,
- 0.80218,
- 0.63933,
- 0.74837,
- 0.70772,
- 0.64546,
- 0.73068,
- 0.65112,
- 0.6845,
- 0.59493,
- 0.82611,
- 0.70684,
- 0.66512,
- 0.72613,
- 0.61118,
- 0.65038,
- 0.7026,
- 0.551,
- 0.65579,
- 0.80477,
- 0.79819,
- 0.83683,
- 0.74875,
- 0.74895,
- 0.8266,
- 0.78705,
- 0.69626,
- 0.60339,
- 0.46395,
- 0.49106,
- 0.44262,
- 0.50126,
- 0.48815,
- 0.50624,
- 0.47583,
- 0.45475,
- 0.36865,
- 0.37055,
- 0.68866,
- 0.82835,
- 0.7899,
- 0.83586,
- 0.79326,
- 0.80749,
- 0.78461,
- 0.82731,
- 0.86192,
- 0.84622,
- 0.83925,
- 0.77584,
- 0.78148,
- 0.78902,
- 0.76863,
- 0.7511,
- 0.74753,
- 0.67306,
- 0.79108,
- 0.75258,
- 0.70476,
- 0.72677,
- 0.79805,
- 0.69585,
- 0.81881,
- 0.65077,
- 0.6507,
- 0.7901,
- 0.84363,
- 0.77377,
- 0.77259,
- 0.7307,
- 0.73894,
- 0.68082,
- 0.68385,
- 0.73011,
- 0.7453,
- 0.70279,
- 0.74732,
- 0.78329,
- 0.6026,
- 0.7405,
- 0.74395,
- 0.8123,
- 0.76857,
- 0.75295,
- 0.84882,
- 0.84199,
- 0.88974,
- 0.85528,
- 0.87748,
- 0.75677,
- 0.79094,
- 0.78899,
- 0.84183,
- 0.74114,
- 0.60629,
- 0.55097,
- 0.71556,
- 0.64518,
- 0.63989,
- 0.66086,
- 0.84584,
- 0.72886,
- 0.74709,
- 0.77184,
- 0.72315,
- 0.84755,
- 0.85444,
- 0.72914,
- 0.79596,
- 0.74487,
- 0.7086,
- 0.77931,
- 0.6988,
- 0.75244,
- 0.70489,
- 0.76265,
- 0.78011,
- 0.82238,
- 0.74315,
- 0.72669,
- 0.72029,
- 0.79714,
- 0.73668,
- 0.80302,
- 0.67539,
- 0.76691,
- 0.7879,
- 0.81989,
- 0.84224,
- 0.85659,
- 0.8038,
- 0.82666,
- 0.79494,
- 0.80967,
- 0.78682,
- 0.73173,
- 0.84255,
- 0.80373,
- 0.74487,
- 0.80324,
- 0.81215,
- 0.78644,
- 0.81604,
- 0.7111,
- 0.74806,
- 0.74841,
- 0.43282,
- 0.01302,
- 0.00012,
],
unstable__sensitivity: [],
},
@@ -4095,165 +1393,6 @@
0.00001,
0.00001,
0.00001,
- 0.00002,
- 0.00001,
- 0.00002,
- 0,
- 0.00001,
- 0.00002,
- 0.00002,
- 0,
- 0.00001,
- 0.00001,
- 0.00001,
- 0,
- 0.00001,
- 0.00001,
- 0.00002,
- 0.00001,
- 0,
- 0.00001,
- 0.00001,
- 0.00002,
- 0.00002,
- 0,
- 0.00001,
- 0.00001,
- 0.00001,
- 0,
- 0.00001,
- 0.00001,
- 0.00001,
- 0.00001,
- 0,
- 0.00001,
- 0.00001,
- 0.00001,
- 0.00002,
- 0,
- 0.00001,
- 0,
- 0,
- 0.00002,
- 0.00009,
- 0.00057,
- 0.00829,
- 0.10857,
- 0.0636,
- 0.21331,
- 0.17802,
- 0.14624,
- 0.1721,
- 0.13659,
- 0.22377,
- 0.12042,
- 0.17671,
- 0.18351,
- 0.10079,
- 0.18703,
- 0.15513,
- 0.16609,
- 0.12898,
- 0.16453,
- 0.1576,
- 0.0957,
- 0.1561,
- 0.06436,
- 0.17827,
- 0.05713,
- 0.21022,
- 0.14754,
- 0.16554,
- 0.20047,
- 0.17509,
- 0.30911,
- 0.29268,
- 0.19401,
- 0.47229,
- 0.35745,
- 0.25624,
- 0.4149,
- 0.30529,
- 0.38793,
- 0.39446,
- 0.27498,
- 0.45152,
- 0.28905,
- 0.22582,
- 0.23375,
- 0.25017,
- 0.12983,
- 0.11127,
- 0.12505,
- 0.1119,
- 0.09307,
- 0.07451,
- 0.09324,
- 0.06705,
- 0.07264,
- 0.05123,
- 0.06766,
- 0.09844,
- 0.08339,
- 0.08899,
- 0.06584,
- 0.07451,
- 0.04074,
- 0.02769,
- 0.02113,
- 0.01989,
- 0.02422,
- 0.02548,
- 0.02596,
- 0.02391,
- 0.02142,
- 0.01501,
- 0.00739,
- 0.00667,
- 0.01062,
- 0.01229,
- 0.00534,
- 0.00571,
- 0.00674,
- 0.00496,
- 0.00274,
- 0.00353,
- 0.00737,
- 0.01511,
- 0.01016,
- 0.01102,
- 0.00423,
- 0.0028,
- 0.00159,
- 0.0007,
- 0.00067,
- 0.0004,
- 0.00049,
- 0.00025,
- 0.00024,
- 0.00015,
- 0.00011,
- 0.00011,
- 0.00007,
- 0.00005,
- 0.00005,
- 0.00006,
- 0.00005,
- 0.00008,
- 0.00005,
- 0.00006,
- 0.00003,
- 0.00006,
- 0.00002,
- 0.00004,
- 0.00003,
- 0.00003,
- 0.00003,
- 0.00003,
- 0.00002,
- 0.00003,
- 0.00003,
- 0.00003,
],
unstable__sensitivity: [],
},
@@ -4323,165 +1462,6 @@
0.12441,
0.06322,
0.06235,
- 0.28027,
- 0.25956,
- 0.05609,
- 0.14034,
- 0.05066,
- 0.09635,
- 0.20281,
- 0.04881,
- 0.15045,
- 0.28757,
- 0.53318,
- 0.50126,
- 0.13864,
- 0.00821,
- 0.0632,
- 0.32714,
- 0.43824,
- 0.55737,
- 0.34567,
- 0.06534,
- 0.48649,
- 0.39676,
- 0.13792,
- 0.04147,
- 0.02353,
- 0.03572,
- 0.04648,
- 0.02179,
- 0.06423,
- 0.0222,
- 0.07542,
- 0.21958,
- 0.25342,
- 0.28461,
- 0.02134,
- 0.03666,
- 0.05582,
- 0.20206,
- 0.09381,
- 0.01265,
- 0.01902,
- 0.0596,
- 0.0752,
- 0.11211,
- 0.05037,
- 0.12469,
- 0.11668,
- 0.03872,
- 0.10119,
- 0.14389,
- 0.08467,
- 0.03073,
- 0.15142,
- 0.09591,
- 0.04746,
- 0.02474,
- 0.05152,
- 0.10255,
- 0.21824,
- 0.16943,
- 0.01653,
- 0.04529,
- 0.21985,
- 0.29084,
- 0.10103,
- 0.01254,
- 0.02975,
- 0.04055,
- 0.02784,
- 0.55083,
- 0.81827,
- 0.61626,
- 0.51709,
- 0.09992,
- 0.02677,
- 0.1493,
- 0.22499,
- 0.19588,
- 0.03421,
- 0.03216,
- 0.06108,
- 0.00603,
- 0.05183,
- 0.03558,
- 0.06087,
- 0.08061,
- 0.15602,
- 0.18714,
- 0.06893,
- 0.03342,
- 0.06509,
- 0.09904,
- 0.18361,
- 0.12716,
- 0.09092,
- 0.04267,
- 0.1827,
- 0.19731,
- 0.12756,
- 0.08452,
- 0.01033,
- 0.03419,
- 0.03139,
- 0.06181,
- 0.13429,
- 0.17096,
- 0.02989,
- 0.06223,
- 0.07653,
- 0.01982,
- 0.01481,
- 0.03344,
- 0.04636,
- 0.04711,
- 0.07386,
- 0.07845,
- 0.05816,
- 0.08165,
- 0.02722,
- 0.10575,
- 0.07949,
- 0.11884,
- 0.09092,
- 0.04863,
- 0.03699,
- 0.0056,
- 0.03229,
- 0.02861,
- 0.04744,
- 0.04695,
- 0.09193,
- 0.07028,
- 0.02931,
- 0.09516,
- 0.0113,
- 0.05097,
- 0.0481,
- 0.05602,
- 0.1341,
- 0.1184,
- 0.01298,
- 0.03808,
- 0.03452,
- 0.09578,
- 0.15831,
- 0.14029,
- 0.12608,
- 0.01719,
- 0.01578,
- 0.09313,
- 0.07673,
- 0.09845,
- 0.07971,
- 0.14588,
- 0.11699,
- 0.0784,
- 0.03925,
- 0.01686,
- 0.07354,
],
unstable__sensitivity: [],
},
@@ -4559,168 +1539,6 @@
0.00651,
0.00684,
0.00581,
- 0.00846,
- 0.01035,
- 0.00601,
- 0.00848,
- 0.0075,
- 0.00925,
- 0.00894,
- 0.01142,
- 0.00862,
- 0.00747,
- 0.01425,
- 0.01142,
- 0.0184,
- 0.01627,
- 0.02486,
- 0.00767,
- 0.015,
- 0.01429,
- 0.01289,
- 0.03212,
- 0.09057,
- 0.16956,
- 0.17916,
- 0.22216,
- 0.26585,
- 0.30132,
- 0.33346,
- 0.32875,
- 0.33824,
- 0.39174,
- 0.34436,
- 0.30321,
- 0.26897,
- 0.31494,
- 0.38023,
- 0.31948,
- 0.38841,
- 0.32544,
- 0.27929,
- 0.34344,
- 0.40695,
- 0.34059,
- 0.38387,
- 0.43646,
- 0.38172,
- 0.38591,
- 0.41524,
- 0.32665,
- 0.28519,
- 0.3216,
- 0.34351,
- 0.28413,
- 0.30744,
- 0.28635,
- 0.28813,
- 0.27497,
- 0.26368,
- 0.2685,
- 0.29431,
- 0.29218,
- 0.27352,
- 0.28058,
- 0.28493,
- 0.30854,
- 0.31463,
- 0.33811,
- 0.3469,
- 0.33849,
- 0.34541,
- 0.36346,
- 0.35671,
- 0.33033,
- 0.31571,
- 0.30398,
- 0.30773,
- 0.33675,
- 0.44234,
- 0.50971,
- 0.58162,
- 0.66191,
- 0.76545,
- 0.8387,
- 0.88141,
- 0.9303,
- 0.93706,
- 0.879,
- 0.79604,
- 0.68142,
- 0.59743,
- 0.53839,
- 0.48073,
- 0.45433,
- 0.44333,
- 0.4745,
- 0.49584,
- 0.51357,
- 0.51302,
- 0.53332,
- 0.54944,
- 0.53858,
- 0.53545,
- 0.52732,
- 0.53938,
- 0.53723,
- 0.54185,
- 0.54453,
- 0.53374,
- 0.53254,
- 0.55751,
- 0.53681,
- 0.50575,
- 0.5126,
- 0.48231,
- 0.45758,
- 0.46665,
- 0.50621,
- 0.34725,
- 0.23496,
- 0.376,
- 0.25666,
- 0.29924,
- 0.23334,
- 0.2388,
- 0.26649,
- 0.24653,
- 0.26408,
- 0.25908,
- 0.20052,
- 0.22656,
- 0.26061,
- 0.27333,
- 0.21598,
- 0.1764,
- 0.1342,
- 0.04488,
- 0.03269,
- 0.02089,
- 0.038,
- 0.01289,
- 0.01929,
- 0.01304,
- 0.01427,
- 0.01225,
- 0.01257,
- 0.01335,
- 0.00997,
- 0.01063,
- 0.01655,
- 0.00962,
- 0.00542,
- 0.00517,
- 0.00533,
- 0.00598,
- 0.00533,
- 0.00331,
- 0.00237,
- 0.00131,
- 0.0009,
- 0.00028,
- 0.00013,
- 0.00006,
- 0.00004,
],
unstable__sensitivity: [],
},
diff --git a/frontend/test/tapes/search/images/q=cat&unstable__include_sensitive_results=true_close.json5 b/frontend/test/tapes/search/images/q=cat&unstable__include_sensitive_results=true_close.json5
new file mode 100644
index 000000000..82a11ae47
--- /dev/null
+++ b/frontend/test/tapes/search/images/q=cat&unstable__include_sensitive_results=true_close.json5
@@ -0,0 +1,883 @@
+{
+ meta: {
+ createdAt: '2024-05-03T07:31:13.616Z',
+ host: 'https://api.openverse.org',
+ resHumanReadable: true,
+ resUncompressed: true,
+ },
+ req: {
+ headers: {
+ connection: 'close',
+ },
+ url: '/v1/images/?q=cat&unstable__include_sensitive_results=true',
+ method: 'GET',
+ body: '',
+ },
+ res: {
+ status: 200,
+ headers: {
+ date: [
+ 'Fri, 03 May 2024 07:31:14 GMT',
+ ],
+ 'content-type': [
+ 'application/json',
+ ],
+ 'transfer-encoding': [
+ 'chunked',
+ ],
+ connection: [
+ 'close',
+ ],
+ vary: [
+ 'Accept-Encoding, Accept, Authorization, origin',
+ ],
+ allow: [
+ 'GET, HEAD, OPTIONS',
+ ],
+ 'x-ratelimit-limit-anon_burst': [
+ '20/min',
+ ],
+ 'x-ratelimit-available-anon_burst': [
+ '19',
+ ],
+ 'x-ratelimit-limit-anon_sustained': [
+ '200/day',
+ ],
+ 'x-ratelimit-available-anon_sustained': [
+ '199',
+ ],
+ 'x-frame-options': [
+ 'DENY',
+ ],
+ 'x-content-type-options': [
+ 'nosniff',
+ ],
+ 'referrer-policy': [
+ 'same-origin',
+ ],
+ 'cross-origin-opener-policy': [
+ 'same-origin',
+ ],
+ 'x-request-id': [
+ '07be198030a54ff1b07308d09f3ee9e7',
+ ],
+ 'cf-cache-status': [
+ 'MISS',
+ ],
+ 'last-modified': [
+ 'Fri, 03 May 2024 07:31:14 GMT',
+ ],
+ server: [
+ 'cloudflare',
+ ],
+ 'cf-ray': [
+ '87de8cdb5c543688-FRA',
+ ],
+ 'content-encoding': [
+ 'br',
+ ],
+ },
+ body: {
+ result_count: 10000,
+ page_count: 20,
+ page_size: 20,
+ page: 1,
+ results: [
+ {
+ id: 'de42d499-d660-47b4-b203-28d5589c31d2',
+ title: 'Cat bliss',
+ indexed_on: '2020-04-16T18:12:29.554388Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/29468339@N02/5840168826',
+ url: 'https://live.staticflickr.com/2706/5840168826_486f364c6c_b.jpg',
+ creator: '@Doug88888',
+ creator_url: 'https://www.flickr.com/photos/29468339@N02',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'bliss',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'cating',
+ accuracy: null,
+ },
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat bliss" by @Doug88888 is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 819,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/',
+ related_url: 'http://localhost:49153/v1/images/de42d499-d660-47b4-b203-28d5589c31d2/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '1c5442f6-6bb6-4ab7-b603-f598e7579dd2',
+ title: 'Cat Fish 2',
+ indexed_on: '2020-04-24T11:47:34.004529Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/32426194@N00/3481540500',
+ url: 'https://live.staticflickr.com/3313/3481540500_c846c62863_b.jpg',
+ creator: 'admiller',
+ creator_url: 'https://www.flickr.com/photos/32426194@N00',
+ license: 'by',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: 0.90604,
+ },
+ {
+ name: 'glass',
+ accuracy: 0.95701,
+ },
+ {
+ name: 'one',
+ accuracy: 0.94012,
+ },
+ ],
+ attribution: '"Cat Fish 2" by admiller is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 1024,
+ width: 716,
+ thumbnail: 'http://localhost:49153/v1/images/1c5442f6-6bb6-4ab7-b603-f598e7579dd2/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/1c5442f6-6bb6-4ab7-b603-f598e7579dd2/',
+ related_url: 'http://localhost:49153/v1/images/1c5442f6-6bb6-4ab7-b603-f598e7579dd2/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'b9bbd2be-a68e-4d2c-ad85-f43000cb8d55',
+ title: 'cat',
+ indexed_on: '2020-04-25T01:39:33.773553Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/93665474@N00/3717404325',
+ url: 'https://live.staticflickr.com/3436/3717404325_db41d8d687_b.jpg',
+ creator: 'Alex Balan',
+ creator_url: 'https://www.flickr.com/photos/93665474@N00',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'animals',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ {
+ name: 'lovely',
+ accuracy: null,
+ },
+ {
+ name: 'pets',
+ accuracy: null,
+ },
+ ],
+ attribution: '"cat" by Alex Balan is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 768,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/b9bbd2be-a68e-4d2c-ad85-f43000cb8d55/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/b9bbd2be-a68e-4d2c-ad85-f43000cb8d55/',
+ related_url: 'http://localhost:49153/v1/images/b9bbd2be-a68e-4d2c-ad85-f43000cb8d55/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '3d32b0c5-58b3-4e38-b034-cd6c8d674d73',
+ title: 'cat in the sun',
+ indexed_on: '2020-04-02T11:05:26.845386Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/32695450@N05/11748899763',
+ url: 'https://live.staticflickr.com/7300/11748899763_2dd16da8b4_b.jpg',
+ creator: 'fidber',
+ creator_url: 'https://www.flickr.com/photos/32695450@N05',
+ license: 'by',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'animal',
+ accuracy: null,
+ },
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ {
+ name: 'chat',
+ accuracy: null,
+ },
+ {
+ name: 'soleil',
+ accuracy: null,
+ },
+ ],
+ attribution: '"cat in the sun" by fidber is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 682,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/3d32b0c5-58b3-4e38-b034-cd6c8d674d73/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/3d32b0c5-58b3-4e38-b034-cd6c8d674d73/',
+ related_url: 'http://localhost:49153/v1/images/3d32b0c5-58b3-4e38-b034-cd6c8d674d73/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'aafaf91c-4d64-4f2e-b8ec-d7e77131b888',
+ title: 'Cat on the sofa',
+ indexed_on: '2018-11-08T17:31:32.467511Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/57443751@N07/6494613787',
+ url: 'https://live.staticflickr.com/7004/6494613787_9a3031fa7d_b.jpg',
+ creator: 'sushiraider',
+ creator_url: 'https://www.flickr.com/photos/57443751@N07',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ {
+ name: 'chat',
+ accuracy: null,
+ },
+ {
+ name: 'ringexcellence',
+ accuracy: null,
+ },
+ {
+ name: 'sofa',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat on the sofa" by sushiraider is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 684,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/aafaf91c-4d64-4f2e-b8ec-d7e77131b888/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/aafaf91c-4d64-4f2e-b8ec-d7e77131b888/',
+ related_url: 'http://localhost:49153/v1/images/aafaf91c-4d64-4f2e-b8ec-d7e77131b888/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'f166c4a0-7207-4ea2-8728-15350a60d37f',
+ title: 'Cat cafe in Seoul',
+ indexed_on: '2020-04-22T18:09:32.186574Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/36703170@N02/5060030894',
+ url: 'https://live.staticflickr.com/4111/5060030894_96d2b21794_b.jpg',
+ creator: 'toel-uru',
+ creator_url: 'https://www.flickr.com/photos/36703170@N02',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat cafe in Seoul" by toel-uru is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 681,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/f166c4a0-7207-4ea2-8728-15350a60d37f/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/f166c4a0-7207-4ea2-8728-15350a60d37f/',
+ related_url: 'http://localhost:49153/v1/images/f166c4a0-7207-4ea2-8728-15350a60d37f/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '1aa5017d-58f3-4198-b97e-1d2cf9bf6cae',
+ title: 'A neighbor obliged with a photo of himself and a beautiful if not petrified stray cat he adopted',
+ indexed_on: '2020-04-29T08:38:32.017281Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/23697838@N07/3007439456',
+ url: 'https://live.staticflickr.com/3286/3007439456_522e170a60_b.jpg',
+ creator: 'aliceinthepoetsheartland',
+ creator_url: 'https://www.flickr.com/photos/23697838@N07',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"A neighbor obliged with a photo of himself and a beautiful if not petrified stray cat he adopted" by aliceinthepoetsheartland is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 1024,
+ width: 768,
+ thumbnail: 'http://localhost:49153/v1/images/1aa5017d-58f3-4198-b97e-1d2cf9bf6cae/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/1aa5017d-58f3-4198-b97e-1d2cf9bf6cae/',
+ related_url: 'http://localhost:49153/v1/images/1aa5017d-58f3-4198-b97e-1d2cf9bf6cae/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'a6dd2414-7695-4f03-9723-a9dc6852e2b3',
+ title: 'Cat',
+ indexed_on: '2018-11-08T01:45:17.652714Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/23001707@N04/2207159142',
+ url: 'https://live.staticflickr.com/2106/2207159142_8206ab6984.jpg',
+ creator: 'Lilithis',
+ creator_url: 'https://www.flickr.com/photos/23001707@N04',
+ license: 'by-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat" by Lilithis is licensed under CC BY-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 500,
+ width: 334,
+ thumbnail: 'http://localhost:49153/v1/images/a6dd2414-7695-4f03-9723-a9dc6852e2b3/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/a6dd2414-7695-4f03-9723-a9dc6852e2b3/',
+ related_url: 'http://localhost:49153/v1/images/a6dd2414-7695-4f03-9723-a9dc6852e2b3/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '71533543-f4f3-4391-aacb-137586407b1b',
+ title: 'Cats',
+ indexed_on: '2020-04-24T03:31:30.926745Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/51609867@N00/3338275165',
+ url: 'https://live.staticflickr.com/3594/3338275165_b00171c504_b.jpg',
+ creator: 'anderoo',
+ creator_url: 'https://www.flickr.com/photos/51609867@N00',
+ license: 'by-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cats" by anderoo is licensed under CC BY-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 768,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/71533543-f4f3-4391-aacb-137586407b1b/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/71533543-f4f3-4391-aacb-137586407b1b/',
+ related_url: 'http://localhost:49153/v1/images/71533543-f4f3-4391-aacb-137586407b1b/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '48f1469e-7c2c-4961-af2e-1c377fca1762',
+ title: 'cat-portrait-black-white-ultrafeel',
+ indexed_on: '2020-04-22T20:54:25.934966Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/29634326@N00/5104070583',
+ url: 'https://live.staticflickr.com/1107/5104070583_1300af5438.jpg',
+ creator: 'h.r.fox',
+ creator_url: 'https://www.flickr.com/photos/29634326@N00',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"cat-portrait-black-white-ultrafeel" by h.r.fox is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 443,
+ width: 500,
+ thumbnail: 'http://localhost:49153/v1/images/48f1469e-7c2c-4961-af2e-1c377fca1762/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/48f1469e-7c2c-4961-af2e-1c377fca1762/',
+ related_url: 'http://localhost:49153/v1/images/48f1469e-7c2c-4961-af2e-1c377fca1762/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'df5e18ed-f936-4e46-93ba-dcc4ef0d7000',
+ title: 'CAT',
+ indexed_on: '2018-12-21T12:34:40.573425Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/21644167@N04/8711378816',
+ url: 'https://live.staticflickr.com/8280/8711378816_39cc228e5c_b.jpg',
+ creator: 'Bahman Farzad',
+ creator_url: 'https://www.flickr.com/photos/21644167@N04',
+ license: 'by',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"CAT" by Bahman Farzad is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 671,
+ width: 1022,
+ thumbnail: 'http://localhost:49153/v1/images/df5e18ed-f936-4e46-93ba-dcc4ef0d7000/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/df5e18ed-f936-4e46-93ba-dcc4ef0d7000/',
+ related_url: 'http://localhost:49153/v1/images/df5e18ed-f936-4e46-93ba-dcc4ef0d7000/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'd8b1ffbc-6c29-449a-a1a2-86b492584344',
+ title: 'Cat',
+ indexed_on: '2020-04-21T12:48:31.369778Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/12112230@N00/4562936269',
+ url: 'https://live.staticflickr.com/4005/4562936269_eda2933249_b.jpg',
+ creator: 'sylvia@intrigue',
+ creator_url: 'https://www.flickr.com/photos/12112230@N00',
+ license: 'by-nc-nd',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-nd/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat" by sylvia@intrigue is licensed under CC BY-NC-ND 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 681,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/d8b1ffbc-6c29-449a-a1a2-86b492584344/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/d8b1ffbc-6c29-449a-a1a2-86b492584344/',
+ related_url: 'http://localhost:49153/v1/images/d8b1ffbc-6c29-449a-a1a2-86b492584344/related/',
+ unstable__sensitivity: [
+ 'sensitive_text',
+ ],
+ },
+ {
+ id: 'f94097cc-b971-4276-94f2-8f7a6877ee81',
+ title: 'cat',
+ indexed_on: '2020-04-21T15:55:36.196610Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/18090920@N07/4615211501',
+ url: 'https://live.staticflickr.com/4067/4615211501_f0cee1c22b_b.jpg',
+ creator: 'Sean MacEntee',
+ creator_url: 'https://www.flickr.com/photos/18090920@N07',
+ license: 'by',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"cat" by Sean MacEntee is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 768,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/f94097cc-b971-4276-94f2-8f7a6877ee81/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/f94097cc-b971-4276-94f2-8f7a6877ee81/',
+ related_url: 'http://localhost:49153/v1/images/f94097cc-b971-4276-94f2-8f7a6877ee81/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '9ee77a50-70ba-4d4e-9972-16981b460f64',
+ title: 'Cat',
+ indexed_on: '2020-05-07T11:28:24.149119Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/50642338@N00/8378612',
+ url: 'https://live.staticflickr.com/6/8378612_34ab6787ae_b.jpg',
+ creator: 'sfllaw',
+ creator_url: 'https://www.flickr.com/photos/50642338@N00',
+ license: 'by-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat" by sfllaw is licensed under CC BY-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 1024,
+ width: 768,
+ thumbnail: 'http://localhost:49153/v1/images/9ee77a50-70ba-4d4e-9972-16981b460f64/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/9ee77a50-70ba-4d4e-9972-16981b460f64/',
+ related_url: 'http://localhost:49153/v1/images/9ee77a50-70ba-4d4e-9972-16981b460f64/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '812ca736-2128-4652-aa36-2095cc23d359',
+ title: 'Cat Belgium',
+ indexed_on: '2020-04-09T23:24:25.426691Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/45820171@N08/9806556103',
+ url: 'https://live.staticflickr.com/5479/9806556103_bb21b3f223_b.jpg',
+ creator: 'Chau kar',
+ creator_url: 'https://www.flickr.com/photos/45820171@N08',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat Belgium" by Chau kar is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 683,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/812ca736-2128-4652-aa36-2095cc23d359/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/812ca736-2128-4652-aa36-2095cc23d359/',
+ related_url: 'http://localhost:49153/v1/images/812ca736-2128-4652-aa36-2095cc23d359/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '5df4d187-de5f-4fd4-a0c7-f6ceb388983d',
+ title: 'Cats',
+ indexed_on: '2020-04-26T06:31:30.461974Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/82056689@N00/4227907168',
+ url: 'https://live.staticflickr.com/2734/4227907168_3574201e36.jpg',
+ creator: 'CatladyOfSweden',
+ creator_url: 'https://www.flickr.com/photos/82056689@N00',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cats',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cats" by CatladyOfSweden is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 375,
+ width: 500,
+ thumbnail: 'http://localhost:49153/v1/images/5df4d187-de5f-4fd4-a0c7-f6ceb388983d/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/5df4d187-de5f-4fd4-a0c7-f6ceb388983d/',
+ related_url: 'http://localhost:49153/v1/images/5df4d187-de5f-4fd4-a0c7-f6ceb388983d/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '14463e0e-cff5-4872-9085-7b8d9a251344',
+ title: 'CAT',
+ indexed_on: '2020-04-16T09:45:21.423375Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/21644167@N04/8710251481',
+ url: 'https://live.staticflickr.com/8417/8710251481_139d32a3a2_b.jpg',
+ creator: 'Bahman Farzad',
+ creator_url: 'https://www.flickr.com/photos/21644167@N04',
+ license: 'by',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"CAT" by Bahman Farzad is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 682,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/14463e0e-cff5-4872-9085-7b8d9a251344/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/14463e0e-cff5-4872-9085-7b8d9a251344/',
+ related_url: 'http://localhost:49153/v1/images/14463e0e-cff5-4872-9085-7b8d9a251344/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: 'f9384235-b72e-4f1e-9b05-e1b116262a29',
+ title: 'Cat',
+ indexed_on: '2020-04-05T06:07:19.339195Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/7788419@N05/15218475961',
+ url: 'https://live.staticflickr.com/3903/15218475961_963a4c116e_b.jpg',
+ creator: 'strogoscope',
+ creator_url: 'https://www.flickr.com/photos/7788419@N05',
+ license: 'by',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat" by strogoscope is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 678,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/f9384235-b72e-4f1e-9b05-e1b116262a29/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/f9384235-b72e-4f1e-9b05-e1b116262a29/',
+ related_url: 'http://localhost:49153/v1/images/f9384235-b72e-4f1e-9b05-e1b116262a29/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '2dadce9f-6567-45ab-9b96-10eb9eeb5a1c',
+ title: 'Cat',
+ indexed_on: '2020-04-28T18:41:32.819503Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/23657985@N03/2787209562',
+ url: 'https://live.staticflickr.com/3010/2787209562_0604206807_b.jpg',
+ creator: 'PiNe87',
+ creator_url: 'https://www.flickr.com/photos/23657985@N03',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat" by PiNe87 is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 683,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/2dadce9f-6567-45ab-9b96-10eb9eeb5a1c/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/2dadce9f-6567-45ab-9b96-10eb9eeb5a1c/',
+ related_url: 'http://localhost:49153/v1/images/2dadce9f-6567-45ab-9b96-10eb9eeb5a1c/related/',
+ unstable__sensitivity: [],
+ },
+ {
+ id: '864ce10a-3b6a-4f8f-808a-b8de1f7cc78a',
+ title: 'Cat',
+ indexed_on: '2020-04-17T11:13:22.782810Z',
+ foreign_landing_url: 'https://www.flickr.com/photos/20442663@N00/6113519191',
+ url: 'https://live.staticflickr.com/6090/6113519191_db826056a1_b.jpg',
+ creator: 'Squirmelia',
+ creator_url: 'https://www.flickr.com/photos/20442663@N00',
+ license: 'by-nc-sa',
+ license_version: '2.0',
+ license_url: 'https://creativecommons.org/licenses/by-nc-sa/2.0/',
+ provider: 'flickr',
+ source: 'flickr',
+ category: null,
+ filesize: null,
+ filetype: null,
+ tags: [
+ {
+ name: 'cat',
+ accuracy: null,
+ },
+ ],
+ attribution: '"Cat" by Squirmelia is licensed under CC BY-NC-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/2.0/.',
+ fields_matched: [
+ 'description',
+ 'title',
+ 'tags.name',
+ ],
+ mature: false,
+ height: 678,
+ width: 1024,
+ thumbnail: 'http://localhost:49153/v1/images/864ce10a-3b6a-4f8f-808a-b8de1f7cc78a/thumb/',
+ detail_url: 'http://localhost:49153/v1/images/864ce10a-3b6a-4f8f-808a-b8de1f7cc78a/',
+ related_url: 'http://localhost:49153/v1/images/864ce10a-3b6a-4f8f-808a-b8de1f7cc78a/related/',
+ unstable__sensitivity: [],
+ },
+ ],
+ },
+ },
+}
\ No newline at end of file
diff --git a/frontend/test/unit/fixtures/image.js b/frontend/test/unit/fixtures/image.js
index 180d8f804..88dae1e37 100644
--- a/frontend/test/unit/fixtures/image.js
+++ b/frontend/test/unit/fixtures/image.js
@@ -1,7 +1,9 @@
+/** @type {ImageDetail} */
export const image = {
id: "f166c4a0-7207-4ea2-8728-15350a60d37f",
frontendMediaType: "image",
title: "Cat cafe in Seoul",
+ originalTitle: "Cat cafe in Seoul",
indexed_on: "2020-04-22T18:09:32.186574Z",
foreign_landing_url: "https://www.flickr.com/photos/36703170@N02/5060030894",
url: "https://live.staticflickr.com/4111/5060030894_96d2b21794_b.jpg",
@@ -13,7 +15,7 @@ export const image = {
provider: "flickr",
source: "flickr",
category: "photograph",
- filesize: 118813,
+ filesize: "118813",
filetype: "jpg",
tags: [
{
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a2db1b51c..1ce0d3076 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -54,9 +54,6 @@ importers:
'@floating-ui/dom':
specifier: ^1.5.3
version: 1.5.3
- '@nuxt/components':
- specifier: ^2.2.1
- version: 2.2.1
'@nuxt/vue-app':
specifier: ^2.17.3
version: 2.17.3