Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
29
Frontend-Learner/node_modules/nuxt/dist/head/runtime/plugins/vueuse-head-polyfill.js
generated
vendored
Normal file
29
Frontend-Learner/node_modules/nuxt/dist/head/runtime/plugins/vueuse-head-polyfill.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { defineNuxtPlugin } from "#app/nuxt";
|
||||
import { useHead } from "#app/composables/head";
|
||||
function polyfillAsVueUseHead(head) {
|
||||
const polyfilled = head;
|
||||
polyfilled.headTags = head.resolveTags;
|
||||
polyfilled.addEntry = head.push;
|
||||
polyfilled.addHeadObjs = head.push;
|
||||
polyfilled.addReactiveEntry = (input, options) => {
|
||||
const api = useHead(input, options);
|
||||
if (api !== void 0) {
|
||||
return api.dispose;
|
||||
}
|
||||
return () => {
|
||||
};
|
||||
};
|
||||
polyfilled.removeHeadObjs = () => {
|
||||
};
|
||||
polyfilled.updateDOM = () => {
|
||||
head.hooks.callHook("entries:updated", head);
|
||||
};
|
||||
polyfilled.unhead = head;
|
||||
return polyfilled;
|
||||
}
|
||||
export default defineNuxtPlugin({
|
||||
name: "nuxt:vueuse-head-polyfill",
|
||||
setup(nuxtApp) {
|
||||
polyfillAsVueUseHead(nuxtApp.vueApp._context.provides.usehead);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue