-
Notifications
You must be signed in to change notification settings - Fork 187
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
chore (examples): Add authentication to the examples #2248
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
84e491a
GH workflow + example change
kevin-dp 781d6a3
Deploy linearlite-read-only, nextjs, todoapp
balegas 88ae749
prepare more examples; throw if admin-api token is not set
balegas ee8526e
Missing base.json
balegas 29a7dd3
Fixed provider version
balegas fa5b7d5
Deploy Yjs and Writes examples
balegas a956bdd
tinny cleanup
balegas 33f134c
Remaining examples
balegas 84ea27d
Linearlite CI deployment needs more work
balegas bd1a7a7
debug write-patterns
balegas bc3eb23
unlock
balegas 2441351
unstuck
balegas 4485864
build missing packages
balegas 69d2d9e
seems to work
balegas 63f27fc
fix next app
balegas fa9adcc
fixed bad paths
balegas df189cb
upgrade sst
balegas eb38ad7
lint and action changes
balegas c3e6631
the missing source_secret renaming
balegas e761686
we also changed the api
balegas b9af1d1
checkstyle; wrong attribute for adding url to comment
balegas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const baseUrl = import.meta.env.VITE_ELECTRIC_URL | ||
? new URL(import.meta.env.VITE_ELECTRIC_URL).origin | ||
: `http://localhost:3000` | ||
export const token = import.meta.env.VITE_ELECTRIC_TOKEN ?? `` | ||
export const databaseId = import.meta.env.VITE_DATABASE_ID ?? `` | ||
export const source_secret = import.meta.env.VITE_ELECTRIC_SOURCE_SECRET ?? `` | ||
export const source_id = import.meta.env.VITE_ELECTRIC_SOURCE_ID ?? `` |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { ShapeStreamOptions } from '@electric-sql/client' | ||
import { baseUrl, databaseId, token } from './electric' | ||
import { baseUrl, source_id, source_secret } from './electric' | ||
|
||
export const issueShape: ShapeStreamOptions = { | ||
url: `${baseUrl}/v1/shape/`, | ||
params: { | ||
table: `issue`, | ||
token, | ||
source_id: databaseId, | ||
source_secret, | ||
source_id, | ||
}, | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're keeping this one out because it needs more work.