@@ -34,6 +34,8 @@ export default class extends BaseGenerator {
34
34
"app/components/common/svg/edit-svg/edit-svg.component.ts" ,
35
35
"app/components/common/svg/menu/menu.component.svg" ,
36
36
"app/components/common/svg/menu/menu.component.ts" ,
37
+ "app/components/common/back-to-list/back-to-list.component.html" ,
38
+ "app/components/common/back-to-list/back-to-list.component.ts" ,
37
39
38
40
// COMPONENTS
39
41
"app/components/foo/create/create.component.html" ,
@@ -122,6 +124,7 @@ export default class extends BaseGenerator {
122
124
`${ dir } /app/components/${ lc } /list` ,
123
125
`${ dir } /app/components/${ lc } /show` ,
124
126
`${ dir } /app/components/${ lc } /table` ,
127
+ `${ dir } /app/components/common/back-to-list` ,
125
128
`${ dir } /app/components/common/delete` ,
126
129
`${ dir } /app/components/common/header` ,
127
130
`${ dir } /app/components/common/sidebar` ,
@@ -153,6 +156,8 @@ export default class extends BaseGenerator {
153
156
"app/components/common/sidebar/sidebar.component.css" ,
154
157
"app/components/common/sidebar/sidebar.component.html" ,
155
158
"app/components/common/sidebar/sidebar.component.ts" ,
159
+ "app/components/common/back-to-list/back-to-list.component.html" ,
160
+ "app/components/common/back-to-list/back-to-list.component.ts" ,
156
161
"app/interface/api.ts" ,
157
162
"app/service/api.service.ts" ,
158
163
"app/app.component.html" ,
@@ -182,6 +187,11 @@ export default class extends BaseGenerator {
182
187
this . createFileFromPattern ( file , dir , [ lc , formFields ] , context )
183
188
) ;
184
189
190
+ //UTILS
191
+ [ "utils/date.ts" ] . forEach ( ( path ) =>
192
+ this . createFile ( path , `${ dir } /app/${ path } ` , context , false )
193
+ ) ;
194
+
185
195
// CONFIG
186
196
this . createConfigFile ( `${ dir } /app/utils/config.ts` , {
187
197
entrypoint : api . entrypoint ,
0 commit comments