Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/imbrx#263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
arun0808rana wants to merge2 commits intor5n-labs:master
base:master
Choose a base branch
Loading
fromarun0808rana:feature/imbrx
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletionsdocs/Snippets.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,6 +59,7 @@ I.E. `tsrcc`
| `imbrc→` | `import { Route, Switch, NavLink, Link } from react-router-dom'` |
| `imbrr→` | `import { Route } from 'react-router-dom'` |
| `imbrs→` | `import { Switch } from 'react-router-dom'` |
| `imbrx→` | `import { Routes, Route } from 'react-router-dom'` |
| `imbrl→` | `import { Link } from 'react-router-dom'` |
| `imbrnl→` | `import { NavLink } from 'react-router-dom'` |
| `imrs→` | `import React, { useState } from 'react'` |
Expand Down
6 changes: 6 additions & 0 deletionssrc/snippets/generated.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -962,6 +962,12 @@
"prefix": "imbrs",
"body": ["import { Switch } from 'react-router-dom'"],
"scope": "typescript,typescriptreact,javascript,javascriptreact"
},
"importRoutes": {
"key": "importRoutes",
"prefix": "imbrx",
"body": ["import { Routes, Route } from 'react-router-dom'"],
"scope": "typescript,typescriptreact,javascript,javascriptreact"
},
"import": {
"key": "import",
Expand Down
8 changes: 7 additions & 1 deletionsrc/sourceSnippets/imports.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,6 +24,7 @@ type ImportsMappings = {
importRouterNavLink: 'imbrnl';
importRouterSetup: 'imbrc';
importRouterSwitch: 'imbrs';
importRoutes:'imbrx'
};

export type ImportsSnippet = SnippetMapping<ImportsMappings>;
Expand DownExpand Up@@ -123,7 +124,11 @@ const importRouterSwitch: ImportsSnippet = {
prefix: 'imbrs',
body: ["import { Switch } from 'react-router-dom'"],
};

const importRoutes: ImportsSnippet = {
key: 'importRoutes',
prefix: 'imbrx',
body: ["import { Routes, Route } from 'react-router-dom'"],
};
const importRouterLink: ImportsSnippet = {
key: 'importRouterLink',
prefix: 'imbrl',
Expand DownExpand Up@@ -177,6 +182,7 @@ const importAs: ImportsSnippet = {
};

export default [
importRoutes,
importAs,
importBrowserRouter,
importBrowserRouterWithRouteAndNavLink,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp