mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
b8fa08b53c
relates to #9831 Implements the mdm mac OS scripts UI. This is just the UI atm and is not accessible in the application at the moment.
29 lines
723 B
Plaintext
29 lines
723 B
Plaintext
{
|
|
"Fleet - React stateless component with TS": {
|
|
"scope": "typescriptreact",
|
|
"prefix": "rtsc",
|
|
"body": [
|
|
"import React from \"react\";",
|
|
"",
|
|
"const baseClass = \"${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}\";",
|
|
"",
|
|
"interface I${TM_FILENAME_BASE}Props {}",
|
|
"",
|
|
"const $TM_FILENAME_BASE = ({}: I${TM_FILENAME_BASE}Props) => {",
|
|
"\treturn <div className={baseClass}></div>;",
|
|
"};",
|
|
"",
|
|
"export default $TM_FILENAME_BASE;",
|
|
"",
|
|
],
|
|
"description": "Creates a React stateless component with the typescrip interface setup"
|
|
},
|
|
"Fleet - baseClass classname": {
|
|
"scope": "typescriptreact,javascriptreact",
|
|
"prefix": "bc",
|
|
"body": [
|
|
"className={`\\${baseClass}__$0`}"
|
|
]
|
|
}
|
|
}
|