@@ -12,14 +12,14 @@ export default class extends BaseGenerator {
12
12
// COMMON COMPONENTS
13
13
"app/components/common/delete/delete.component.html" ,
14
14
"app/components/common/delete/delete.component.ts" ,
15
+ "app/components/common/header/header.component.css" ,
15
16
"app/components/common/header/header.component.html" ,
16
17
"app/components/common/header/header.component.ts" ,
17
18
"app/components/common/layout/layout.component.html" ,
18
19
"app/components/common/layout/layout.component.ts" ,
20
+ "app/components/common/sidebar/sidebar.component.css" ,
19
21
"app/components/common/sidebar/sidebar.component.html" ,
20
22
"app/components/common/sidebar/sidebar.component.ts" ,
21
- "app/components/common/table/table.component.html" ,
22
- "app/components/common/table/table.component.ts" ,
23
23
24
24
// COMPONENTS
25
25
"app/components/foo/create/create.component.html" ,
@@ -32,6 +32,8 @@ export default class extends BaseGenerator {
32
32
"app/components/foo/list/list.component.ts" ,
33
33
"app/components/foo/show/show.component.html" ,
34
34
"app/components/foo/show/show.component.ts" ,
35
+ "app/components/foo/table/table.component.html" ,
36
+ "app/components/foo/table/table.component.ts" ,
35
37
"app/app.component.html" ,
36
38
"app/app.component.ts" ,
37
39
@@ -107,19 +109,19 @@ export default class extends BaseGenerator {
107
109
apiResource : this . apiResource ( api ) ,
108
110
} ;
109
111
112
+ console . log ( fields ) ;
113
+
110
114
//CREATE DIRECTORIES - These directories may already exist
111
115
[
112
- `${ dir } /assets` ,
113
- `${ dir } /utils` ,
114
116
`${ dir } /app/components/${ lc } /create` ,
115
117
`${ dir } /app/components/${ lc } /edit` ,
116
118
`${ dir } /app/components/${ lc } /form` ,
117
119
`${ dir } /app/components/${ lc } /list` ,
118
120
`${ dir } /app/components/${ lc } /show` ,
121
+ `${ dir } /app/components/${ lc } /table` ,
119
122
`${ dir } /app/components/common/delete` ,
120
123
`${ dir } /app/components/common/header` ,
121
124
`${ dir } /app/components/common/sidebar` ,
122
- `${ dir } /app/components/common/table` ,
123
125
`${ dir } /app/components/svg/list-svg` ,
124
126
`${ dir } /app/components/svg/show-svg` ,
125
127
`${ dir } /app/components/svg/edit-svg` ,
@@ -141,14 +143,14 @@ export default class extends BaseGenerator {
141
143
"app/components/svg/menu/menu.component.ts" ,
142
144
"app/components/common/delete/delete.component.html" ,
143
145
"app/components/common/delete/delete.component.ts" ,
146
+ "app/components/common/header/header.component.css" ,
144
147
"app/components/common/header/header.component.html" ,
145
148
"app/components/common/header/header.component.ts" ,
146
149
"app/components/common/sidebar/sidebar.component.css" ,
147
150
"app/components/common/sidebar/sidebar.component.html" ,
148
151
"app/components/common/sidebar/sidebar.component.ts" ,
149
- "app/components/common/table/table.component.html" ,
150
- "app/components/common/table/table.component.ts" ,
151
152
"app/interface/api.ts" ,
153
+ "app/service/api.service.ts" ,
152
154
"app/app.component.html" ,
153
155
"app/app.component.ts" ,
154
156
"app/app.routes.ts" ,
@@ -169,6 +171,8 @@ export default class extends BaseGenerator {
169
171
"app/components/%s/show/show.component.html" ,
170
172
"app/components/%s/show/show.component.ts" ,
171
173
"app/components/%s/show/show.component.html" ,
174
+ "app/components/%s/table/table.component.html" ,
175
+ "app/components/%s/table/table.component.ts" ,
172
176
] . forEach ( ( file ) =>
173
177
this . createFileFromPattern ( file , dir , [ lc , formFields ] , context )
174
178
) ;
0 commit comments