mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
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.
28 lines
723 B
Text
28 lines
723 B
Text
{
|
|
"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`}"
|
|
]
|
|
}
|
|
}
|