-
-
Notifications
You must be signed in to change notification settings - Fork 34
feat: Replace @vueuse/head with @unhead/vue #804
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
Merged
danielroe
merged 11 commits into
nuxt:main
from
wattanx:replace-vueuse-head-with-unhead-vue
Jun 21, 2023
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
49ed94e
feat: replace with @unhead/vue
wattanx 8e89394
fix: Add use cases in layouts to tests
wattanx 2845c29
fix: fix transpile setting
wattanx 0b11e92
fix: If you don't explicitly import it, it won't work with webpack.
wattanx ef61b0a
fix: fix app.head types
wattanx 62f74b9
Merge branch 'main' into replace-vueuse-head-with-unhead-vue
wattanx 54b3c41
Update pnpm-lock.yaml
wattanx 89e4b91
Merge branch 'main' into replace-vueuse-head-with-unhead-vue
wattanx 96eef65
fix: remove pausing / unpausing feature
wattanx 12bad6b
fix: add async title cases
wattanx 1bd4413
Merge branch 'main' into replace-vueuse-head-with-unhead-vue
wattanx 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 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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import type { Head, MergeHead } from '@unhead/schema' | ||
|
|
||
| /** @deprecated Extend types from `@unhead/schema` directly. This may be removed in a future minor version. */ | ||
| export interface HeadAugmentations extends MergeHead { | ||
| // runtime type modifications | ||
| base?: {} | ||
| link?: {} | ||
| meta?: {} | ||
| style?: {} | ||
| script?: {} | ||
| noscript?: {} | ||
| htmlAttrs?: {} | ||
| bodyAttrs?: {} | ||
| } | ||
|
|
||
| export type MetaObjectRaw = Head<HeadAugmentations> | ||
| export type MetaObject = MetaObjectRaw | ||
|
|
||
| export type AppHeadMetaObject = MetaObjectRaw & { | ||
| /** | ||
| * The character encoding in which the document is encoded => `<meta charset="<value>" />` | ||
| * @default `'utf-8'` | ||
| */ | ||
| charset?: string | ||
| /** | ||
| * Configuration of the viewport (the area of the window in which web content can be seen), | ||
| * mapped to => `<meta name="viewport" content="<value>" />` | ||
| * @default `'width=device-width, initial-scale=1'` | ||
| */ | ||
| viewport?: string | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ export default defineBuildConfig({ | |
| 'webpack', | ||
| 'vite', | ||
| 'vue', | ||
| 'vue-meta' | ||
| 'vue-meta', | ||
| '@unhead/vue' | ||
| ] | ||
| }) | ||
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.