-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
SSR Experimental #8356
Closed
Closed
SSR Experimental #8356
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a264c75
SSR Experimental
shashkovdanil 42a55e8
fixed 'Unable to initialise options more than once' error
shashkovdanil df87639
try to fix tests
shashkovdanil a8f2eb7
Revert
shashkovdanil 81a259e
fixed ssr glitches
shashkovdanil bf4a490
fixed persisted stores
shashkovdanil e0d8f01
fixed using theme and breakpoints with ssr
shashkovdanil f5c60f2
fixed dropdowns
shashkovdanil 0ec4028
Merge branch 'main' into ssr-experimental
shashkovdanil 675b075
fixed autocomplete styles
shashkovdanil 2541bbe
carousel with ssr
shashkovdanil 9a44980
fixed composable error
shashkovdanil d28e894
fixed part of tests
shashkovdanil 34e5b35
fixed tests
shashkovdanil e6d23f7
remove headless param
shashkovdanil 8828364
try to fix tests on CI
shashkovdanil d9ae712
hack for tests
shashkovdanil 5ae9ab1
other hack for tests
shashkovdanil 66b619a
fixed modal z-index
shashkovdanil f94a78b
debug test
shashkovdanil 7d9b2cf
debug test
shashkovdanil 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
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 |
---|---|---|
|
@@ -3,27 +3,37 @@ | |
</template> | ||
|
||
<script lang="ts" setup> | ||
const substackScript = document.createElement('script') | ||
|
||
window.CustomSubstackWidget = { | ||
substackUrl: 'kodadot.substack.com', | ||
placeholder: 'jane.doe@kodadot.xyz', | ||
theme: 'custom', | ||
colors: { | ||
primary: '#FF7AC3', | ||
input: '#FFFFFF', | ||
email: '#000000', | ||
text: '#000000', | ||
}, | ||
} | ||
const substackScript = ref<HTMLScriptElement | null>(null) | ||
|
||
onMounted(() => { | ||
substackScript.src = 'https://substackapi.com/widget.js' | ||
substackScript.async = true | ||
document.head.append(substackScript) | ||
substackScript.value = document.createElement('script') | ||
|
||
const script = substackScript.value | ||
|
||
const substackWidgetParams = { | ||
substackUrl: 'kodadot.substack.com', | ||
placeholder: 'jane.doe@kodadot.xyz', | ||
theme: 'custom', | ||
colors: { | ||
primary: '#FF7AC3', | ||
input: '#FFFFFF', | ||
email: '#000000', | ||
text: '#000000', | ||
}, | ||
} as const | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as const? |
||
|
||
const w = window as typeof window & { | ||
CustomSubstackWidget: typeof substackWidgetParams | ||
} | ||
|
||
w.CustomSubstackWidget = substackWidgetParams | ||
|
||
script.setAttribute('src', 'https://substackapi.com/widget.js') | ||
script.setAttribute('async', 'true') | ||
document.head.append(script) | ||
}) | ||
|
||
onUnmounted(() => { | ||
substackScript?.remove() | ||
substackScript.value?.remove() | ||
}) | ||
</script> |
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
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
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.
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.
why put code in this component?
https://caniuse.com/css-filters global 97% ok