created new snippets for vscode, with create componets schema & switched (RPC) rich presence discord to "enabled"

This commit is contained in:
srgooglo 2020-10-07 11:12:28 +02:00
parent 6e2b3f92e5
commit dd1c97aec8
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{
"[schema-31] New Connected Component with decorators": {
"scope": "javascript",
"prefix": "newConnectedComponent",
"description": "Create a new react component with default schema for ycore-schema31",
"body": [
"import React from 'react'",
"import * as antd from 'antd'",
"import { connect } from 'umi'",
"",
"@connect(({ app }) => ({ app }))",
"export default class ${1:NewComponent} extends React.Component{",
"\trender(){",
"\t\treturn(",
"\t\t\t<div>",
"\t\t\t\t",
"\t\t\t</div>",
"\t\t)",
"\t}",
"}",
]
}
}

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"discord.enabled": true
}