### Install and Sign Up for Sentry Source: https://sentry.io/ This command-line instruction allows you to sign up for Sentry and install it. It's a straightforward process to get started with the service. ```bash Click to Copy. ``` -------------------------------- ### Vue Router Navigation Links Source: https://next.router.vuejs.org/guide/ Configuration for navigation links within the Vue Router documentation, including guides, API references, and version switching. It also includes links to external resources like discussions and changelogs. ```javascript { "text": "Guide", "link": "/guide/", "activeMatch": "^/guide/" }, { "text": "API", "link": "/api/", "activeMatch": "^/api/" }, { "text": "v4.x", "items": [ { "text": "v3.x", "link": "https://v3.router.vuejs.org" } ] }, { "text": "Links", "items": [ { "text": "Discussions", "link": "https://github.com/vuejs/router/discussions" }, { "text": "Changelog", "link": "https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md" }, { "text": "Vue.js Certification", "link": "https://certificates.dev/vuejs/?friend=VUEROUTER&utm_source=router_vuejs&utm_medium=link&utm_campaign=router_vuejs_links&utm_content=navbar" } ] } ``` -------------------------------- ### Vue Router CDN Usage Example Source: https://next.router.vuejs.org/guide/ Demonstrates how to use Vue Router with Vue from CDNs, exposing libraries via global objects instead of imports. This method is suitable for projects not using build tools. ```javascript const { createApp } = Vue const { createRouter, createWebHistory } = VueRouter ``` -------------------------------- ### Vue Router Sidebar Navigation Source: https://next.router.vuejs.org/guide/ Defines the sidebar navigation structure for the Vue Router documentation, organizing content into sections like Setup, Essentials, Advanced, and Migration. Each section contains links to specific pages. ```javascript { "/": [ { "text": "Setup", "items": [ { "text": "Introduction", "link": "/introduction.html" }, { "text": "Installation", "link": "/installation.html" } ] }, { "text": "Essentials", "items": [ { "text": "Getting Started", "link": "/guide/" }, { "text": "Dynamic Route Matching", "link": "/guide/essentials/dynamic-matching.html" }, { "text": "Routes' Matching Syntax", "link": "/guide/essentials/route-matching-syntax.html" }, { "text": "Named Routes", "link": "/guide/essentials/named-routes.html" }, { "text": "Nested Routes", "link": "/guide/essentials/nested-routes.html" }, { "text": "Programmatic Navigation", "link": "/guide/essentials/navigation.html" }, { "text": "Named Views", "link": "/guide/essentials/named-views.html" }, { "text": "Redirect and Alias", "link": "/guide/essentials/redirect-and-alias.html" }, { "text": "Passing Props to Route Components", "link": "/guide/essentials/passing-props.html" }, { "text": "Active links", "link": "/guide/essentials/active-links.html" }, { "text": "Different History modes", "link": "/guide/essentials/history-mode.html" } ] }, { "text": "Advanced", "items": [ { "text": "Navigation guards", "link": "/guide/advanced/navigation-guards.html" }, { "text": "Route Meta Fields", "link": "/guide/advanced/meta.html" }, { "text": "Data Fetching", "link": "/guide/advanced/data-fetching.html" }, { "text": "Composition API", "link": "/guide/advanced/composition-api.html" }, { "text": "RouterView slot", "link": "/guide/advanced/router-view-slot.html" }, { "text": "Transitions", "link": "/guide/advanced/transitions.html" }, { "text": "Scroll Behavior", "link": "/guide/advanced/scroll-behavior.html" }, { "text": "Lazy Loading Routes", "link": "/guide/advanced/lazy-loading.html" }, { "text": "Typed Routes", "link": "/guide/advanced/typed-routes.html" }, { "text": "Extending RouterLink", "link": "/guide/advanced/extending-router-link.html" }, { "text": "Navigation Failures", "link": "/guide/advanced/navigation-failures.html" }, { "text": "Dynamic Routing", "link": "/guide/advanced/dynamic-routing.html" } ] }, { "items": [ { "text": "Migrating from Vue 2", "link": "/guide/migration/index.html" } ] } ], "/api/": [ { "text": "packages", "items": [ { "text": "vue-router", "link": "/api/" } ] } ] } ``` -------------------------------- ### Install Frappe UI Source: https://github.com/frappe/frappe-ui Instructions for installing the Frappe UI library using either npm or yarn package managers. ```bash npm install frappe-ui # or yarn add frappe-ui ``` -------------------------------- ### Create Vue Router Instance Source: https://next.router.vuejs.org/guide/ Demonstrates how to create a Vue Router instance using `createRouter` and `createMemoryHistory`. It defines routes mapping paths to components and configures the history mode. This is a fundamental step for setting up navigation in a Vue application. ```javascript import { createMemoryHistory, createRouter } from 'vue-router' import HomeView from './HomeView.vue' import AboutView from './AboutView.vue' const routes = [ { path: '/', component: HomeView }, { path: '/about', component: AboutView }, ] const router = createRouter({ history: createMemoryHistory(), routes, }) ``` -------------------------------- ### Installation Documentation Source: https://tailwindcss.com/docs/utility-first Provides instructions on how to install or set up the CDN Bunchee Online MCP LLMs TXT project. ```HTML "$\",\"div\",null,{\"className\":\"grid min-h-dvh grid-cols-1 grid-rows-[1fr_1px_auto_1px_auto] pt-26.25 lg:grid-cols-[var(--container-2xs)_2.5rem_minmax(0,1fr)_2.5rem] lg:pt-14.25 xl:grid-cols-[var(--container-2xs)_2.5rem_minmax(0,1fr)_2.5rem]\",\"children\":[[\"$\",\"div\",null,{\"className\":\"relative col-start-1 row-span-full row-start-1 max-lg:hidden\",\"children\":[\"$\",\"div\",null,{\"className\":\"absolute inset-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"sticky top-14.25 bottom-0 left-0 h-full max-h-[calc(100dvh-(var(--spacing)*14.25))] w-2xs overflow-y-auto p-6\",\"children\":[\"$\",\"$L1e\",null,{\"children\":[\"$\",\"nav\",null,{\"className\":\"flex flex-col gap-8\",\"children\":[[\"$\",\"ul\",null,{\"className\":\"flex flex-col gap-2\",\"children\":[[\"$\",\"li\",null,{\"children\":[\"$\",\"$L1c\",null,{\"className\":\"group inline-flex items-center gap-3 text-base/8 text-gray-600 sm:text-sm/7 dark:text-gray-300 **:data-outline:stroke-gray-400 dark:**:data-outline:stroke-gray-500 **:[svg]:first:size-5 **:[svg]:first:sm:size-4 hover:text-gray-950 hover:**:data-highlight:fill-gray-300 hover:**:data-outline:stroke-gray-950 dark:hover:text-white dark:hover:**:data-highlight:fill-gray-600 dark:hover:**:data-outline:stroke-white aria-[current]:font-semibold aria-[current]:text-gray-950 aria-[current]:**:data-highlight:fill-gray-300 aria-[current]:**:data-outline:stroke-gray-950 dark:aria-[current]:text-white dark:aria-[current]:**:data-highlight:fill-gray-600 dark:aria-[current]:**:data-outline:stroke-white\",\"href\":\"/docs/installation\",\"aria-current\":\"page\",\"children\":[[\"$\",\"svg\",null,{\"viewBox\":\"0 0 16 16\",\"fill\":\"none\",\"children\":[[\"$\",\"path\",null,{\"data-highlight\":true,\"d\":\"M3.5 1.5C2.4264 1.5 1.40926 1.74169 0.5 2.17363V13.1736C1.40926 12.7417 2.4264 12.5 3.5 12.5C5.21352 12.5 6.78323 13.1157 8 14.1379V3.13789C6.78323 2.11568 5.21352 1.5 3.5 1.5Z\"}],[\"$\",\"path\",null,{\"data-outline\":true,\"d\":\"M8 14.1379C9.21677 13.1157 10.7865 12.5 12.5 12.5C13.5736 12.5 14.5907 12.7417 15.5 13.1736V2.17363C14.5907 1.74169 13.5736 1.5 12.5 1.5C10.7865 1.5 9.21677 2.11568 8 3.13789M8 14.1379C6.78323 13.1157 5.21352 12.5 3.5 12.5C2.4264 12.5 1.40926 1.7417 0.5 13.1736V2.17363C1.40926 1.74169 2.4264 1.5 3.5 1.5C5.21352 1.5 6.78323 2.11568 8 3.13789M8 14.1379V3.13789\"}]]}],\"Documentation\"]}]}],[\"$\",\"li\",null,{\"children\":[\"$\",\"a\",null,{\"className\":\"group inline-flex item ``` -------------------------------- ### Create Vue Project with Vite Source: https://next.router.vuejs.org/guide/ Scaffolds a new Vue.js project using Vite, with options to include Vue Router. This is a common starting point for exploring Vue Router features. ```bash npm create vue@latest ``` ```bash yarn create vue ``` ```bash pnpm create vue ``` -------------------------------- ### Register Vue Router Plugin Source: https://next.router.vuejs.org/guide/ Illustrates the process of registering the created router instance as a Vue plugin using the `app.use()` method. This step is crucial before mounting the application to enable routing functionalities like global components and composables. ```javascript import { createApp } from 'vue' import App from './App.vue' import router from './router' createApp(App).use(router).mount('#app') // Or equivalently: // const app = createApp(App) // app.use(router) // app.mount('#app') ``` -------------------------------- ### Vitest Setup Source: https://github.com/frappe/frappe-ui Setup file for Vitest tests. This file is executed before each test suite and can be used to configure global test settings, import necessary modules, or set up mocks. ```TypeScript import '@testing-library/jest-dom' import { vi } from 'vitest' // Mocking the global `fetch` API if it's used in the project // vi.stubGlobal('fetch', mockFetch) // Add any other global setup here ``` -------------------------------- ### Install Frappe UI Source: https://github.com/frappe/frappe-ui Instructions for installing the Frappe UI package using either npm or yarn package managers. This is the initial step to integrate Frappe UI into a project. ```shell npm install frappe-ui # or yarn add frappe-ui ``` -------------------------------- ### View README.md for Frappe UI Source: https://github.com/frappe/frappe-ui This snippet represents the content of the README.md file for the Frappe UI project. It typically contains project overview, setup instructions, and usage examples. ```html
``` -------------------------------- ### Vue Router App Component Example Source: https://next.router.vuejs.org/guide/ This Vue.js component demonstrates the basic usage of Vue Router's RouterLink and RouterView components. RouterLink is used for navigation between routes, and RouterView renders the component associated with the current route. The $route.fullPath property displays the current route's path. ```vue ``` -------------------------------- ### Programmatic Navigation (Options API) Source: https://next.router.vuejs.org/guide/ Demonstrates how to perform programmatic navigation within a Vue component using the Options API. It accesses the router instance via `this.$router` and uses the `push()` method to navigate to a different route, typically for actions like button clicks. ```javascript export default { methods: { goToAbout() { this.$router.push('/about') }, }, } ``` -------------------------------- ### ESLint Configuration Example Source: https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom This snippet shows an example of an ESLint configuration file, likely 'eslint.config.ts', which defines rules and settings for linting React projects. It demonstrates how to structure ESLint configurations in a modern TypeScript-based setup. ```TypeScript import react from "@eslint-react/eslint-plugin-react"; import reactDom from "@eslint-react/eslint-plugin-react-dom"; export default [ // Add your React ESLint configurations here ...react.configs.recommended, ...reactDom.configs.recommended, { // Custom rules or overrides rules: { "react/jsx-key": "warn", }, }, ]; ``` -------------------------------- ### Vue Router Meta Information Source: https://next.router.vuejs.org/guide/ Configuration for meta information used in Vue Router, including Open Graph and Twitter card properties for social media sharing. This ensures proper display of page titles and descriptions when links are shared. ```javascript [["meta",{"property":"og:url","content":"https://router.vuejs.org"}]], [["meta",{"property":"og:description","content":"The official Router for Vue.js"}]] ``` -------------------------------- ### Install CDN Bunchee Online MCP LLMs TXT Source: https://tailwindcss.com/docs/utility-first Instructions for installing the CDN Bunchee Online MCP LLMs TXT project. This typically involves setting up your development environment and integrating the library. ```bash npm install @bunchee/cdn-online-mcp-llms-txt ``` -------------------------------- ### Access Router and Route (Composition API) Source: https://next.router.vuejs.org/guide/ Shows how to access the router and current route instances within a Vue component using the Composition API. It utilizes the `useRouter()` and `useRoute()` composables provided by Vue Router, enabling reactive access to route information and navigation methods. ```vue ``` -------------------------------- ### Vue Composition API Component with ``` -------------------------------- ### Install ESLint React Plugin Source: https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x Instructions for installing the eslint-plugin-react-x using npm or yarn. This plugin enhances ESLint with rules specifically for React. ```bash npm install --save-dev eslint-plugin-react-x yarn add --dev eslint-plugin-react-x ``` -------------------------------- ### Install SWC CLI and Core with npm Source: https://swc.rs/ Installs the SWC CLI and core packages as development dependencies using the npm package manager. ```bash npm i -D @swc/cli @swc/core ``` -------------------------------- ### Install Sentry Wizard Source: https://sentry.io/ Installs the latest version of the Sentry wizard CLI tool, which helps in setting up Sentry for Next.js projects. ```bash npx @sentry/wizard@latest -i nextjs ``` -------------------------------- ### Install SWC CLI and Core with pnpm Source: https://swc.rs/ This snippet shows how to install the SWC CLI and core packages using pnpm. It's a common command for setting up the development environment for projects utilizing SWC. ```shell pnpm add -D @swc/cli @swc/core ``` -------------------------------- ### Install SWC CLI and Core with pnpm Source: https://swc.rs/ Installs the SWC CLI and core packages as development dependencies using the pnpm package manager. ```bash pnpm add -D @swc/cli @swc/core ``` -------------------------------- ### Vue.js Minimal Example (Options API) Source: https://v3.vuejs.org/guide/introduction.html A basic Vue.js application using the Options API to create a counter. It demonstrates declarative rendering and event handling. ```javascript import { createApp } from 'vue' createApp({ data() { return { count: 0 } } }).mount('#app') ``` ```html
``` -------------------------------- ### Vue.js Minimal Example (Composition API) Source: https://v3.vuejs.org/guide/introduction.html A basic Vue.js application using the Composition API with `ref` to create a counter. It showcases declarative rendering and event handling. ```javascript import { createApp, ref } from 'vue' createApp({ setup() { return { count: ref(0) } } }).mount('#app') ``` ```html
``` -------------------------------- ### Install SWC CLI and Core with npm Source: https://swc.rs/ Installs the SWC CLI and SWC Core packages using npm. These are essential for transpiling JavaScript code. ```bash npm install -D @swc/cli @swc/core ``` -------------------------------- ### Build and Link Vite from Source Source: https://vitejs.dev/guide/ Clones the Vite repository, installs dependencies, builds Vite, and links it globally. This process allows you to use the latest development version of Vite. It requires pnpm for installation and linking. ```bash git clone https://github.com/vitejs/vite.git cd vite pnpm install cd packages/vite pnpm run build pnpm link --global # use your preferred package manager for this step ``` -------------------------------- ### Run Vite Development Server Source: https://vitejs.dev/guide/ Commands to start the Vite development server using various package managers. The server will serve the index.html file and provide hot module replacement. ```bash $ npx vite ``` ```bash $ yarn vite ``` ```bash $ pnpm vite ``` ```bash $ bunx vite ``` ```bash $ deno run -A npm:vite ``` -------------------------------- ### Using RouterView and RouterLink in Vue Templates Source: https://next.router.vuejs.org/guide/ Demonstrates how to use the `RouterView` and `RouterLink` components within Vue templates. These components are globally registered, meaning they can be used directly without explicit imports. The example shows both PascalCase and kebab-case usage, which are interchangeable in Vue templates. ```html Home ``` -------------------------------- ### View All Solutions Link Source: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README A link to navigate to the main solutions page. It includes an icon to indicate further navigation. ```HTML View all solutions ``` -------------------------------- ### Open Frappe UI in GitHub Codespaces Source: https://github.com/frappe/frappe-ui This link allows users to create a new Codespace environment on GitHub for the Frappe UI repository. Codespaces provide a cloud-based development environment, simplifying setup and collaboration. ```bash /codespaces/new?hide_repo_select=true&repo=448930945 ``` -------------------------------- ### Vue Router Chinese Localization Source: https://next.router.vuejs.org/guide/ Localization settings for the Chinese language (zh-CN) in Vue Router documentation. It includes the language label, link to the Chinese version, and a description of the content. ```javascript { "label": "简体中文", "lang": "zh-CN", "link": "/zh/", "description": "Vue.js 的官方路由", "head": [ ["meta",{"property":"og:url","content":"https://router.vuejs.org"}], ["meta",{"property":"og:description","content":"Vue.js 的官方路由"}] ] } ``` -------------------------------- ### Navigate to Manufacturing Solutions Source: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README Provides a link to the Manufacturing solutions page. This allows users to find information relevant to the manufacturing industry. ```HTML Manufacturing ``` -------------------------------- ### Local Import of RouterLink Source: https://next.router.vuejs.org/guide/ Shows an alternative way to use `RouterLink` by importing it locally within a Vue component. While global registration is common, local imports offer more control and can be useful in specific scenarios. ```javascript import { RouterLink } from 'vue-router'; ``` -------------------------------- ### Navigate to AI Resources Source: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README Provides a link to the AI resources section. This is part of a list of topics available under the 'Resources' menu. ```HTML AI ``` -------------------------------- ### In-DOM Template Usage for RouterView Source: https://next.router.vuejs.org/guide/ Explains the specific requirements when using `RouterView` within in-DOM templates. For in-DOM templates, component names must be in kebab-case, and self-closing tags are not supported. This means `` should be written as ``. ```html ``` -------------------------------- ### Scaffold Vite Project with deno Source: https://vitejs.dev/guide/ This command initializes a new Vite project using deno. It prompts the user for project details and template selection. ```bash $ deno init --npm vite ``` -------------------------------- ### Define Functional Component for Route Source: https://next.router.vuejs.org/guide/ Shows how to define a functional component to be used as a route component in Vue Router. It highlights the necessity of setting a `displayName` property for functional components to ensure proper differentiation, especially with lazy-loaded routes. ```typescript import { h, FunctionalComponent } from 'vue' const AboutPage: FunctionalComponent = () => { return h('h1', {}, 'About') } AboutPage.displayName = 'AboutPage' ``` -------------------------------- ### Initialize Vue Router Theme and Platform Detection Source: https://next.router.vuejs.org/guide/ This JavaScript snippet initializes the Vue Router theme based on user preference or system settings. It also detects if the user is on a Mac or iOS device and applies a corresponding class. ```javascript (()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"dark",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})(); document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform)); ``` -------------------------------- ### Scaffold Vite Project with bun Source: https://vitejs.dev/guide/ This command initializes a new Vite project using bun. It prompts the user for project details and template selection. ```bash $ bun create vite ``` -------------------------------- ### Initialize Vue App with Frappe UI Source: https://github.com/frappe/frappe-ui This snippet demonstrates how to create a Vue 3 application instance, use the FrappeUI plugin, and mount the app to the DOM. It imports the main App component and the FrappeUI plugin. ```javascript import { createApp } from 'vue' import { FrappeUI } from 'frappe-ui' import App from './App.vue' import './index.css' let app = createApp(App) app.use(FrappeUI) app.mount('#app') ``` -------------------------------- ### Vitest Configuration Source: https://github.com/frappe/frappe-ui Configuration file for Vitest, a testing framework. It likely sets up the testing environment and any necessary plugins or preprocessors for the project. ```TypeScript import { defineConfig } from 'vitest/config' export default defineConfig({ test: { globals: true, setupFiles: ['./vitest.setup.ts'], environment: 'jsdom', }, }) ``` -------------------------------- ### Install Vite CLI Source: https://vitejs.dev/guide/ Install the Vite command-line interface as a development dependency using different package managers. ```bash $ npm install -D vite ``` ```bash $ yarn add -D vite ``` ```bash $ pnpm add -D vite ``` ```bash $ bun add -D vite ``` ```bash $ deno add -D npm:vite ``` -------------------------------- ### Navigate to Government Solutions Source: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README Provides a link to the Government solutions page. This directs users to content specific to the public sector. ```HTML Government ``` -------------------------------- ### Install eslint-plugin-react-dom Source: https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom This snippet shows how to install the eslint-plugin-react-dom package using npm. It's a common step for integrating ESLint rules into a React project. ```bash npm install --save-dev eslint-plugin-react-dom ``` -------------------------------- ### Download Frappe UI Repository (ZIP) Source: https://github.com/frappe/frappe-ui This URL provides a direct download link for the Frappe UI repository in a ZIP archive format. This is useful for obtaining the project's source code without using Git. ```bash /frappe/frappe-ui/archive/refs/heads/main.zip ``` -------------------------------- ### Install SWC CLI and Core with yarn Source: https://swc.rs/ Installs the SWC CLI and core packages as development dependencies using the yarn package manager. ```bash yarn add -D @swc/cli @swc/core ``` -------------------------------- ### Scaffold Vite Project with npm Source: https://vitejs.dev/guide/ This command initializes a new Vite project using npm. It prompts the user for project details and template selection. ```bash $ npm create vite@latest ``` -------------------------------- ### Install SWC CLI and Core with yarn Source: https://swc.rs/ Installs the SWC CLI and SWC Core packages using yarn. These are essential for transpiling JavaScript code. ```bash yarn add -D @swc/cli @swc/core ``` -------------------------------- ### Load SWC Helpers and TanStack Query Source: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README Loads vendor scripts including SWC helpers and TanStack Query's build. This suggests usage of modern JavaScript compilation and data-fetching libraries. ```JavaScript ``` -------------------------------- ### Install ESLint Plugin for React Source: https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x Installs the 'eslint-plugin-react-x' package as a development dependency using npm. This plugin is essential for enforcing React-specific linting rules. ```bash npm install --save-dev eslint-plugin-react-x ``` -------------------------------- ### Install vite-plugin-react-swc Source: https://github.com/vitejs/vite-plugin-react-swc Install the plugin using npm or yarn. This is the first step to integrating SWC into your Vite project for faster React development. ```bash npm install vite-plugin-react-swc --save-dev ``` ```bash yarn add vite-plugin-react-swc --dev ``` -------------------------------- ### View All Industries Link Source: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README A link to view all available industry solutions. This is a common navigation element for comprehensive content discovery. ```HTML View all industries ``` -------------------------------- ### Install ESLint Plugin for React DOM Source: https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom Installs the `eslint-plugin-react-dom` package as a development dependency using npm. This plugin provides rules for ensuring correct usage of React DOM features. ```shell # npm npm install --save-dev eslint-plugin-react-dom ```