-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace @vueuse/head with @unhead/vue (#804)
- Loading branch information
Showing
22 changed files
with
405 additions
and
170 deletions.
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
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 |
---|---|---|
@@ -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 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 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.