Hosted examples and a customer README (held) - #9
Merged
Merged
Conversation
examples/hosted/ has copy-paste pages for one event, a collection of dates, a season card and a run-of-shows card. src/hosted/ has React components that render the same tags (SeatLayerEvent, SeatLayerCollection, BookingCard) and load each script once, scanning again after a client-side route change.
wrangler.jsonc only served our own copy of the demos. This repository is example code: npm run build writes a static site any host can serve.
Starts with the live demos at seatlayer.io/demo, then the one-tag Hosted integration, the SDK routes, where to find each key in the dashboard, and how to run the app locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Held: do not merge until the owner's go. This PR replaces the README in #2 and should merge in place of it. It pairs with paiteq/seatmap#1136, which now holds the hosting config.
examples/hosted/*.html: the one-tag event embed, the collection of dates, the season card and the run-of-shows card, all as copy-paste pages.src/hosted/: React components that render the same tags (SeatLayerEvent,SeatLayerCollection,BookingCard). They load each script once and scan again after a client-side route change.wrangler.jsoncremoved. The repo stays code-only.Checks:
npm run build(tsc -b plus the Vite build) passes.scripts/check-routes.mjsagainstvite previewwith test keys passes on all 12 route loads (6 routes, each with and without?embed=1).