{"id":15943889,"url":"https://github.com/dogchef-be/nuxt-prevent-multitabs","last_synced_at":"2026-05-12T12:41:57.026Z","repository":{"id":107966628,"uuid":"429786885","full_name":"dogchef-be/nuxt-prevent-multitabs","owner":"dogchef-be","description":"🖥️ NuxtJS module to prevent opening the app in multiple tabs","archived":false,"fork":false,"pushed_at":"2022-01-26T14:27:04.000Z","size":294,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T16:58:17.134Z","etag":null,"topics":["browser-tabs","multitabs","nuxt","nuxt-module","nuxtjs-ts","nuxtjs-typescript","prevent-multitabs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dogchef-be.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-19T12:17:43.000Z","updated_at":"2024-02-28T07:40:25.000Z","dependencies_parsed_at":"2023-05-12T07:45:16.985Z","dependency_job_id":null,"html_url":"https://github.com/dogchef-be/nuxt-prevent-multitabs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogchef-be%2Fnuxt-prevent-multitabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogchef-be%2Fnuxt-prevent-multitabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogchef-be%2Fnuxt-prevent-multitabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogchef-be%2Fnuxt-prevent-multitabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogchef-be","download_url":"https://codeload.github.com/dogchef-be/nuxt-prevent-multitabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085979,"owners_count":20881158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-tabs","multitabs","nuxt","nuxt-module","nuxtjs-ts","nuxtjs-typescript","prevent-multitabs"],"created_at":"2024-10-07T08:05:25.833Z","updated_at":"2026-05-12T12:41:56.984Z","avatar_url":"https://github.com/dogchef-be.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  nuxt-prevent-multitabs\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  NuxtJS module to prevent opening the app in multiple tabs\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/nuxt-prevent-multitabs\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/nuxt-prevent-multitabs?style=flat-square\"\u003e\u003c/a\u003e \u003ca href=\"https://www.npmjs.com/package/nuxt-prevent-multitabs\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/nuxt-prevent-multitabs?style=flat-square\"\u003e\u003c/a\u003e \u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/github/license/dogchef-be/nuxt-prevent-multitabs?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Table of contents\n\n- [Setup](#setup)\n- [Options](#options)\n- [License](#license)\n\n## Setup\n\n1. Add `nuxt-prevent-multitabs` dependency to your project:\n\n```bash\nnpm install nuxt-prevent-multitabs\n```\n\n2. Create the layout to be used when the client opens another tab. An example:\n\n\u003cimg width=\"379\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8303937/142630659-b2f6a268-9cf1-4055-bb8e-dd6d1a3d3aa3.png\"\u003e\n\n```html\n\u003ctemplate\u003e\n  \u003cmain class=\"section\"\u003e\n    \u003cdiv class=\"container\"\u003e\n      \u003cdiv class=\"has-text-centered\"\u003e\n        \u003cb-icon class=\"mb-2\" icon=\"alert-circle\" size=\"is-large\" /\u003e\n        \u003ch1 class=\"is-size-4 has-text-weight-bold\"\u003e\n          Cannot open multiple windows\n        \u003c/h1\u003e\n        \u003cdiv class=\"mt-10\"\u003e\n          \u003cp\u003eAPP_NAME is already open in another window.\u003c/p\u003e\n          \u003cp\u003eMake sure you close it before opening a new one.\u003c/p\u003e\n        \u003c/div\u003e\n        \u003cb-button type=\"is-primary mt-8\" rounded @click=\"reload()\"\u003e\n          Click here to access\n        \u003c/b-button\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/main\u003e\n\u003c/template\u003e\n\n\u003cscript lang=\"ts\"\u003e\n  import Vue from 'vue'\n  export default Vue.extend({\n    methods: {\n      reload(): void {\n        location.reload()\n      },\n    },\n  })\n\u003c/script\u003e\n```\n\n3. Add `nuxt-prevent-multitabs` module and configuration to `nuxt.config.js`:\n\n```js\nexport default {\n  // ...other config options\n  modules: [\"nuxt-prevent-multitabs\"];\n  preventMultitabs: {\n    layout: 'multitab', // optional\n  }\n}\n```\n\n## Options\n\n### `layout`\n\n- Type: `String`\n- Default: `multitab`\n\nThe layout to be used when the client opens another tab\n\n## License\n\nSee the LICENSE file for license rights and limitations (MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogchef-be%2Fnuxt-prevent-multitabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdogchef-be%2Fnuxt-prevent-multitabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogchef-be%2Fnuxt-prevent-multitabs/lists"}