mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 19:21:54 +03:00
ebf4cd5c1f
- Remove unnecessary modules - Remove `ts-plugin-namespace-auto-import` as it was a workaround to use the non-conventional `import *` convention - Remove `esbuild-plugin-copy-directories` as it is unuse - Inline modules that are only ever used once - Inline `project-manager-shim` into `gui2` - it is only used during `gui2`'s dev mode - Inline `content-config` into `client` - Flatten `app/ide-desktop/lib/` to `app/ide-desktop/` - Flatten `app/ide-desktop/lib/dashboard/` to `app/dashboard/` # Important Notes - As mentioned above, all remaining modules have been moved up from `app/ide-desktop/lib/` to `app/ide-desktop/`. It's not ideal but I'd rather hold off on moving them anywhere else before we have a consensus on what should go where. - (That is to say, this may not be the final directory structure - but I figure it's fine to get *something* done so that hopefully the rest of the restructuring is simpler.)
33 lines
814 B
Plaintext
33 lines
814 B
Plaintext
{
|
|
"React Component": {
|
|
"prefix": ["$c", "component"],
|
|
"body": [
|
|
"/** @file $2 */",
|
|
"import * as React from 'react'",
|
|
"",
|
|
"// ====${1/./=/g}====",
|
|
"// === $1 ===",
|
|
"// ====${1/./=/g}====",
|
|
"",
|
|
"/** Props for a {@link ${1:$TM_FILENAME_BASE}}. */",
|
|
"export interface $1Props {",
|
|
" $3",
|
|
"}",
|
|
"",
|
|
"/** $2 */",
|
|
"export default function $1(props: $1Props) {",
|
|
" const { ${3/(.+?):.+/$1, /g} } = props",
|
|
" return <>$4</>",
|
|
"}"
|
|
]
|
|
},
|
|
"useState": {
|
|
"prefix": ["$s", "usestate"],
|
|
"body": ["const [$1, set${1/(.*)/${1:/pascalcase}/}] = React.useState($2)"]
|
|
},
|
|
"section": {
|
|
"prefix": ["$S", "section"],
|
|
"body": ["// ====${1/./=/g}====", "// === $1 ===", "// ====${1/./=/g}===="]
|
|
}
|
|
}
|