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.
- Host: GitHub
- URL: https://github.com/infeng/vscode-admin
- Owner: infeng
- License: mit
- Created: 2017-03-29T06:11:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T08:35:24.000Z (about 7 years ago)
- Last Synced: 2024-12-30T17:12:58.452Z (over 1 year ago)
- Topics: admin, extension, react, snippets, vscode
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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