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

CMS com live preview #320

Open
leomp12 opened this issue Feb 2, 2024 · 3 comments
Open

CMS com live preview #320

leomp12 opened this issue Feb 2, 2024 · 3 comments
Assignees
Labels
hard Hard task help wanted Extra attention is needed

Comments

@leomp12
Copy link
Member

leomp12 commented Feb 2, 2024

Primeira tentativa com iframe + web containers (cenário ideal, mais próximo do deploy real):

  1. Support Vue custom preview template decaporg/decap-cms#2183 (comment)
  2. https://github.com/wisley7l/Poc-WebContainer-IndexedDB

Nesse caso restrito (?) a https://github.com/decaporg/decap-cms ou o fork https://github.com/decaporg/decap-cms

Plano B usando realtime data (onSnapshot em publicContent/*) do Firestore com https://vuefire.vuejs.org/guide/getting-started.html , abordagem parecida com https://keystatic.com/docs/recipes/real-time-previews

@leomp12 leomp12 added enhancement New feature or request hard Hard task labels Feb 2, 2024
@leomp12 leomp12 self-assigned this Feb 2, 2024
@leomp12 leomp12 added help wanted Extra attention is needed and removed enhancement New feature or request labels Feb 2, 2024
@leomp12
Copy link
Member Author

leomp12 commented Feb 5, 2024

cc @wisley7l

leomp12 added a commit that referenced this issue Feb 10, 2024
Handling CMS GitHub auth with ecomplus.app and starting live preview with WebContainer + https://github.com/isomorphic-git/isomorphic-git [#320]
leomp12 added a commit that referenced this issue Feb 11, 2024
…files [#320]

Saving/retrieving files from IndexedDB is slower than just reinstalling dependencies
leomp12 added a commit that referenced this issue Feb 12, 2024
…er [#320]

From learn.svelte.dev implementation https://github.com/sveltejs/learn.svelte.dev/blob/034037fcfe896873354560d9770e54a56e5af7d8/src/lib/client/adapters/webcontainer/index.js

Next release to check if dev server starts on production, not starting nor sending any error on localhost inside "parent" Astro dev server
leomp12 added a commit that referenced this issue Feb 13, 2024
…er [#320]

By some strange rease on new package-lock.json the `astro dev` server breaks without error log

Much laggy in localhost, testing on production
leomp12 added a commit that referenced this issue Feb 19, 2024
… preview with post messages

For Decap CMS (or other static CMS) preview iframe [#320]

Updating Window interface definition with optional CMS config vars

SSR context handling `?content:<filename>=<JSON>` on /~preview/* routes

Fixed Decap CMS script with new preview approach, try live preview and fallbacks to "hot reload" when live preview not fulffilling all changes

Properly setup content/settings config on CMS
leomp12 added a commit that referenced this issue Feb 21, 2024
Last try (on production) with `@webcontainers/api` for #320
@leomp12
Copy link
Member Author

leomp12 commented Mar 8, 2024

@leomp12
Copy link
Member Author

leomp12 commented May 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hard Hard task help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant