An open API service indexing awesome lists of open source software.

https://github.com/infeng/vscode-admin

This extension contains code snippets for react-admin.
https://github.com/infeng/vscode-admin

admin extension react snippets vscode

Last synced: 6 months ago
JSON representation

This extension contains code snippets for react-admin.

Awesome Lists containing this project

README

          

# vscode-admin

-------------------

This extension contains code snippets for `epig admin app`.

## Installation

In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions.
There you have either the option to show the already installed snippets or install new ones.

Launch VS Code Quick Open (Ctrl + P or Cmd + P), paste the following command, and press enter.

`ext install vscode-admin`

Alternatively you can open the extensions panel and search for 'Typescript React code snippets'.

## Supported languages (file extensions)

* TypeScript (.ts)
* TypeScript React (.tsx)

## Snippets

Below is a list of all available snippets and the triggers of each one. The **⇥** means the `TAB` key.

### Typescript & TypescriptReact

| Trigger | Content |
| -------: | ------- |
| `rqr` | `Require` |
| `adminformtsrcc` | `Create a form Component` |
| `admintabletsrcc` | `Create a table Component` |
| `admintableactioncolumn` | `Create table action column` |
| `admintabletoolbar` | `Create table toolbars` |
| `admintablecolumnitem` | `Create table column item` |
| `adminhanaction` | `Create a handle simple action in reducer` |
| `adminhanapiaction`| `Create a handle api action in reducer` |
| `admincreapi`| `Create a api config` |
| `adminformitem` | `Create a formItem` |
| `admindispatch` | `Create a dispatch` |
| `adminprops` | `Get props` |
| `adminmodel` | `Create a model` |
| `adminlistmodel` | `Create a list model` |
| `adminc` | `Simple Container[Hooks]` |
| `admintablec` | `Table Container[Hooks]` |
| `adminformc` | `Form Container[Hooks]` |

### Less

| Trigger | Content |
| -------: | ------- |
| `adminless` | `Create a less template` |

## License

MIT