@@ -9,7 +9,7 @@ function sanitizeLabel(input){
9
9
return input
10
10
. replace ( / [ ^ a - z A - Z 0 - 9 \s ] / g, '' )
11
11
. split ( ' ' )
12
- . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) . toLowerCase ( ) ) // Переводим первую букву в верхний регистр
12
+ . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) . toLowerCase ( ) )
13
13
. join ( '' ) ;
14
14
}
15
15
@@ -113,7 +113,6 @@ async function handleFieldComponentCreation(config, resources) {
113
113
console . log ( chalk . dim ( `Component generation successful: ${ absoluteComponentPath } ` ) ) ;
114
114
115
115
await updateResourceConfig ( selectedResource . resourceId , columnName , fieldType , componentPathForConfig ) ;
116
- console . log ( chalk . green ( `\n✅ Successfully created component ${ componentPathForConfig } and updated configuration.` ) ) ;
117
116
console . log (
118
117
chalk . bold . greenBright ( 'You can now open the component in your IDE:' ) ,
119
118
chalk . underline . cyanBright ( absoluteComponentPath )
@@ -201,8 +200,6 @@ async function handleCrudPageInjectionCreation(config, resources) {
201
200
componentPathForConfig ,
202
201
isThin
203
202
) ;
204
-
205
- console . log ( chalk . green ( `\n✅ Successfully created component ${ componentPathForConfig } and updated configuration.` ) ) ;
206
203
console . log (
207
204
chalk . bold . greenBright ( 'You can now open the component in your IDE:' ) ,
208
205
chalk . underline . cyanBright ( absoluteComponentPath )
@@ -253,8 +250,7 @@ async function handleLoginPageInjectionCreation(config) {
253
250
const configFilePath = path . resolve ( process . cwd ( ) , 'index.ts' ) ;
254
251
console . log ( chalk . dim ( `Injecting component: ${ configFilePath } , ${ componentFileName } ` ) ) ;
255
252
await injectLoginComponent ( configFilePath , `@@/${ componentFileName } ` ) ;
256
-
257
- console . log ( chalk . green ( `\n✅ Successfully created component ${ componentFileName } and updated configuration.` ) ) ;
253
+
258
254
console . log (
259
255
chalk . bold . greenBright ( 'You can now open the component in your IDE:' ) ,
260
256
chalk . underline . cyanBright ( absoluteComponentPath )
@@ -299,7 +295,6 @@ async function handleGlobalInjectionCreation(config) {
299
295
300
296
const context = { reason } ;
301
297
302
- // Генерация компонента
303
298
const { alreadyExists, path : absoluteComponentPath } = await generateLoginOrGlobalComponentFile (
304
299
componentFileName ,
305
300
injectionType ,
@@ -308,13 +303,10 @@ async function handleGlobalInjectionCreation(config) {
308
303
if ( ! alreadyExists ) {
309
304
console . log ( chalk . dim ( `Component generation successful: ${ absoluteComponentPath } ` ) ) ;
310
305
311
- // Путь к файлу конфигурации index.ts
312
306
const configFilePath = path . resolve ( process . cwd ( ) , 'index.ts' ) ;
313
307
314
- // Добавление компонента в соответствующую инъекцию
315
308
await injectGlobalComponent ( configFilePath , injectionType , `@@/${ componentFileName } ` ) ;
316
309
317
- console . log ( chalk . green ( `\n✅ Successfully created component ${ componentFileName } and updated configuration.` ) ) ;
318
310
console . log (
319
311
chalk . bold . greenBright ( 'You can now open the component in your IDE:' ) ,
320
312
chalk . underline . cyanBright ( absoluteComponentPath )
0 commit comments