vue-meta | Manage HTML metadata in Vuejs components with SSR support

 by   nuxt JavaScript Version: v3.0.0-alpha.8 License: Non-SPDX

kandi X-RAY | vue-meta Summary

kandi X-RAY | vue-meta Summary

vue-meta is a JavaScript library typically used in Utilities, Vue, React applications. vue-meta has no bugs, it has no vulnerabilities and it has medium support. However vue-meta has a Non-SPDX License. You can download it from GitHub.

Vue Meta is a Vue.js plugin that allows you to manage your app's metadata. It is inspired by and works similar as react-helmet for react. However, instead of setting your data as props passed to a proprietary component, you simply export it as part of your component's data using the metaInfo property. These properties, when set on a deeply nested component, will cleverly overwrite their parent components' metaInfo, thereby enabling custom info for each top-level view as well as coupling metadata directly to deeply nested subcomponents for more maintainable code.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              vue-meta has a medium active ecosystem.
              It has 4020 star(s) with 255 fork(s). There are 46 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 49 open issues and 382 have been closed. On average issues are closed in 179 days. There are 14 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of vue-meta is v3.0.0-alpha.8

            kandi-Quality Quality

              vue-meta has 0 bugs and 0 code smells.

            kandi-Security Security

              vue-meta has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vue-meta code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vue-meta has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              vue-meta releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              vue-meta saves you 61 person hours of effort in developing the same functionality from scratch.
              It has 282 lines of code, 0 functions and 80 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed vue-meta and discovered the below as its top functions. This is intended to give you an instant insight into vue-meta implemented functionality, and help decide if they suit your requirements.
            • Create a plugin instance .
            • Update tag with tags
            • Generate an injector for the given options
            • Create a new tag generator
            • Merge component arrays .
            • Updates the client meta information for the client .
            • Escape meta information for a given tag .
            • Apply a callback to an element .
            • Check and update attribute values
            • Rollup config object .
            Get all kandi verified functions for this library.

            vue-meta Key Features

            No Key Features are available at this moment for vue-meta.

            vue-meta Examples and Code Snippets

            No Code Snippets are available at this moment for vue-meta.

            Community Discussions

            QUESTION

            Vue metaInfo undefined in watch
            Asked 2022-Feb-02 at 04:11

            I am inserting vue-meta logic inside the current code and there seems to be a problem that metaInfo is not available yet when watch is triggered.

            ...

            ANSWER

            Answered 2022-Feb-02 at 04:11

            To access the metaInfo result in the Options API, use this.$metaInfo (note the $ prefix):

            Source https://stackoverflow.com/questions/70946625

            QUESTION

            Why description of my vue.js project URL is shown "noscript" in some application
            Asked 2021-Aug-20 at 07:47

            I have a vue.js project, when I put it's URL in some App, I think it should be show the title and description below message box.

            but it was show content of noscript tags, why?

            I think I set title and description in my vue.js page correct, I used vue-meta package.

            This is what shown in LINE, I want the title show in first line, and description show in second line.

            And this is what shown in Instegram. Also, I think the first should be show the page title, but it's not.

            ...

            ANSWER

            Answered 2021-Aug-20 at 07:47

            As @deceze already pointed out in the comments, services that try fetching a title and description for a website only fetch the initial HTML and don't execute JavaScript during the process. The vue-meta package, however, sets the title and meta tags only when executing JavaScript.

            Assuming you are using vue-cli, there should be a file public/index.html, that is served as the initial HTML when requesting your application. In that file, you can easily adjust the </code> tag and add some tags to the of the page.

            You can also have a look at the Vue CLI documentation about the index.html file: https://cli.vuejs.org/guide/html-and-static-assets.html#the-index-file.

            Source https://stackoverflow.com/questions/68858239

            QUESTION

            vue-meta doesnt display title, content, or schema on page refresh or external link click for dynamic components
            Asked 2021-Jul-12 at 14:16

            When I navigate to my dynamic components trough navigation bar, vue-meta title, content, and schema are displayed correctly, but when I refresh the page or click on the external link I get a value of undefined.

            i have stored title content and schema in the json file.

            ...

            ANSWER

            Answered 2021-Jul-12 at 14:16

            You should store the router parameters in the router itself or in the URL, not the link. What you do is passing objects internally when you click the link, but as you noticed, when you click the browser refresh button these params are gone.

            What happens is that Vue will load the app and router, identify what components are responsible for rendering the route and pass the detected parameters from your router to the components. Hence losing any additional data you had in your link before.

            Try to keep only the dynamic params in your router and load the rest in the component, based on app logic. I.e. Assuming your route looks like /details/:id, you should initialize the SEO params in your details component.

            Typically these come from the backend and for faster access I would transform the array to literal object and access the record by key. I.e. transform the array from:

            Source https://stackoverflow.com/questions/68289139

            QUESTION

            How to use Vue 3 Meta with Vue.js 3?
            Asked 2021-Jun-01 at 13:01

            It seems that Vue Meta has been upgraded to handle Vue.js 3 with a new npm package called vue-3-meta

            Before Vue.js 3, it was easy to use vue-meta by adding it to the Vue instance:

            ...

            ANSWER

            Answered 2021-Feb-16 at 22:47

            metaManager is a MetaManager instance created from createMetaManager() of vue-meta.

            Based on the Vue 3 + Vue Router example for vue-meta, here's an example usage:

            Source https://stackoverflow.com/questions/66228340

            QUESTION

            npm install giving errors : [node version : 16.2.0 and npm version : 7.13.0]
            Asked 2021-May-20 at 12:19

            The command used : sudo npm install I am trying to execute this command inside the a specific folder.

            The package.json file is as shown:

            ...

            ANSWER

            Answered 2021-May-20 at 12:19

            After spending quite some time on this issue, the solution that worked for us was that "node-sass" was not yet compatible with node v16. Hence, after downgrading node version from v16 to v14, and downgrading npm from v7 to v6, it worked.

            Source https://stackoverflow.com/questions/67615110

            QUESTION

            Convert response.data.data from api to a structured object vue js
            Asked 2021-Apr-23 at 01:16

            so I'm using vue-meta library to add meta tag to my vue project, and now I'm trying to add my meta from API response, this is what i got from API if i did console.log('response.data.data')

            ...

            ANSWER

            Answered 2021-Apr-23 at 01:16

            If you want to use responsive data in metaInfo, you'll need to assign the array to a data property and refer to it in the metaInfo function

            Source https://stackoverflow.com/questions/67222560

            QUESTION

            Vuetify CSS missing when i build for production
            Asked 2021-Feb-20 at 16:25

            We purchased a web app written in Vue from someone and we developing to change/improve it. One thing we added was Vuetify so we can use the Vuetify elements and everything has been working great while in development mode, but when we build for production the CSS for Vuetify elements is missing.

            I have searched for this online already and have already tried what everybody is suggesting without any luck.

            Anybody has an idea of what could be wrong and why npm run build would be missing some of the CSS?

            What's weird is that all the UI functionality for Vue elements is working perfectly, just the CSS is missing.

            Please see code samples below.

            main.js:

            ...

            ANSWER

            Answered 2021-Feb-20 at 16:25

            It's a little tough to understand what is missing where. If you think that is just missing then please try adding css onto the HTML file from the cdn and check the working.

            Source https://stackoverflow.com/questions/66279392

            QUESTION

            All Laravel routes exposed. How to move it to app.js or minify if possible
            Asked 2021-Feb-17 at 04:54

            I am using Ziggy for my Laravel, Vue.js and Inertia js project. In the view page source, I can clearly see all of the Laravel routes.

            ...

            ANSWER

            Answered 2021-Feb-15 at 12:58

            If you are not using Blade, or would prefer not to use the @routes directive, Ziggy provides an artisan command to output its config and routes to a file: php artisan ziggy:generate

            Source https://stackoverflow.com/questions/66174209

            QUESTION

            How can I properly setup Google Analytics in my Vue website?
            Asked 2021-Feb-16 at 23:32

            I have 1 component called calculator.vue and in my main.js I have the code for the plugin, like below:

            ...

            ANSWER

            Answered 2021-Feb-16 at 23:32

            As told here: https://github.com/MatteoGabriele/vue-analytics

            his plugin will stop receiving feature requests. I will only spend time for important bug fixes. Google moved from analytics.js to its new gtag.js library and I've created a new plugin called vue-gtag. I suggest you to start using that one if you are about to create a new project.

            You can see an example here: https://matteo-gabriele.gitbook.io/vue-gtag/#add-plugin-to-your-application

            Source https://stackoverflow.com/questions/66233218

            QUESTION

            How can I make dynamic meta data change the actual page source for SEO in Vue
            Asked 2020-Dec-09 at 21:56

            I am currently changing the page title and (in the near future) meta data via Vue router like below:

            ...

            ANSWER

            Answered 2020-Dec-08 at 07:35
            • vue-meta is only applied when your JavaScript is executed and your page is rendered. So, no you are not going to see those meta tags when you view page source.

            • Do you need SSR or pre-rendering? Maybe. That depends on what you want to achieve. If having a great SEO until web crawlers support JS is crucial for your website? Then, yes.

            Of course, you can still add some of the meta tags in the backend. Depending on the language/framework you use, there are plenty of options that can help to achieve that. For example, for Laravel you can check this package out.

            Another workaround for this problem, is to categorize your requests into the ones coming from frontend and those coming from crawlers. You can do so by for example inspecting the user agent in the request, and then you could adjust the response for crawlers (like, injecting the meta tags into header) accordingly.

            Here is an example of the workaround I suggested:

            IndexController.php

            Source https://stackoverflow.com/questions/65150707

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install vue-meta

            Use the download links below - if you want a previous version, check the instructions at https://unpkg.com. Latest v1.x version: https://unpkg.com/vue-meta@1/dist/vue-meta.min.js.

            Support

            Please find the documention on https://vue-meta.nuxtjs.org. :globe_with_meridians: Please help us translate the documentation into your language, see here for more information.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular JavaScript Libraries

            freeCodeCamp

            by freeCodeCamp

            vue

            by vuejs

            react

            by facebook

            bootstrap

            by twbs

            Try Top Libraries by nuxt

            nuxt

            by nuxtTypeScript

            nuxt.js

            by nuxtTypeScript

            framework

            by nuxtTypeScript

            create-nuxt-app

            by nuxtJavaScript

            content

            by nuxtTypeScript