{"id":24143680,"url":"https://github.com/phill030/vue-boilerplate","last_synced_at":"2025-06-15T08:34:40.036Z","repository":{"id":44156135,"uuid":"511959591","full_name":"Phill030/Vue-Boilerplate","owner":"Phill030","description":"This is a Boilerplate for Vite + Vue3 (TypeScript) + Vue-Router for alt:V","archived":false,"fork":false,"pushed_at":"2023-01-04T15:01:53.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T05:28:46.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Phill030.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-08T16:30:30.000Z","updated_at":"2024-08-16T22:05:07.000Z","dependencies_parsed_at":"2022-07-30T09:18:03.837Z","dependency_job_id":null,"html_url":"https://github.com/Phill030/Vue-Boilerplate","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/Phill030%2FVue-Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phill030%2FVue-Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phill030%2FVue-Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phill030%2FVue-Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phill030","download_url":"https://codeload.github.com/Phill030/Vue-Boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374724,"owners_count":19952578,"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":[],"created_at":"2025-01-12T05:28:16.234Z","updated_at":"2025-03-01T14:19:14.996Z","avatar_url":"https://github.com/Phill030.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cstrong\u003ealt:V Vue-Boilerplate\u003c/strong\u003e\n\u003c/h1\u003e\n\n## This boilerplate was made to simplify working with Vue and alt:V\n\n### Packages:\n\u003ch5\u003e\n  - Vite \u003cbr\u003e\u003c/br\u003e\n  - Vue3 \u003cbr\u003e\u003c/br\u003e\n  - Vue-Router \u003cbr\u003e\u003c/br\u003e\n  - TypeScript \u003cbr\u003e\u003c/br\u003e\n  - altv/types-webviews\n\u003c/h5\u003e\n\n#### Does `alt` work?\n✔ Yes\n\n### How to change the page?\nTo change the page you can either use\n```ts\nthis.$router.push('/yourPath');\n```\nor use a router-link with a custom element\n```vue\n\u003crouter-link to=\"/yourPath\" custom v-slot=\"{ navigate }\"\u003e\n  \u003cbutton @click=\"navigate\"\u003eSomething\u003c/button\u003e\n\u003c/router-link\u003e\n```\n\n\n### How to add a page to the router?\nYou can add a new page by creating a new file for eg. in `views/`. Then open `main.ts` and add a new object in `routes`.\nExample:\n```ts\nimport yourComponent from './views/yourComponent';\nconst routes = [\n  {\n    path: '/yourPath',\n    name: 'YourName',\n    component: yourComponent\n  },\n]\n\n```\n\n\u003ch6 align=\"center\"\u003e\n  \u003ca href=\"https://www.youtube.com/watch?v=51Vek_n8msQ\"\u003e\n    \u003cstrong\u003eMade with ❤ by Phill030 aka. MrCopy\u0026Paste™\u003c/strong\u003e\n  \u003c/a\u003e\n\u003c/h6\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphill030%2Fvue-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphill030%2Fvue-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphill030%2Fvue-boilerplate/lists"}