Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(composable): add useMedia composable #1370

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: revert lock file
  • Loading branch information
mdanilowicz committed Oct 22, 2024
commit 4d304a6fe69ed15a79a4a4533fe3eec58cfd742f
4 changes: 4 additions & 0 deletions apps/docs/.vitepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export const sidebar = [
text: "Multiple CMS",
link: "/getting-started/cms/multiple-cms.html",
},
{
text: "Fetching Media",
link: "/getting-started/cms/fetching-media.html",
},
],
},
{
Expand Down
26 changes: 26 additions & 0 deletions apps/docs/src/getting-started/cms/fetching-media.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
head:
- - meta
- name: og:title
content: Fetching Media - Shopware Frontends
- - meta
- name: og:description
content: "Fetching Media (CMS)"
- - meta
- name: og:image
content: "https://frontends-og-image.vercel.app/Fetching%20Media?fontSize=150px"
---

# Fetching Media (CMS)

To fetch Media objects you can use `readMedia post /media` endpoint.

## Example

```ts
const { data } = await apiClient.invoke("readMedia post /media", {
body: {
ids: ["a69d392ee875484095bf0b20b20c842b"],
},
});
```
17 changes: 0 additions & 17 deletions packages/composables/src/useMedia/useMedia.test.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/composables/src/useMedia/useMedia.ts

This file was deleted.

24 changes: 12 additions & 12 deletions pnpm-lock.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm-lock.yaml changes needed? 🤔

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.