generator-material-app icon indicating copy to clipboard operation
generator-material-app copied to clipboard

[TODO]: set whole clientModelDefinition as optional

Open Stupidism opened this issue 8 years ago • 6 comments

Because not everyone wants to use this

Stupidism avatar May 26 '16 08:05 Stupidism

Definitely! One of the strength of this generator was the files generated by the apiroute generator could be edited (designed!) and extended easily. This is completely gone now, this needs to be rewinded (made optional at apiroute generation).

michaelkrone avatar May 29 '16 20:05 michaelkrone

Additionally there could be a server model generator from which the clientModelDefinition can be generated, so the clienModelDefinition could sync with the server model - including validation and stuff.

There needs to be an optional mapping from document property to form display name, but in most cases a .capitalize(.humanize) gives nice defaults. What do you think?

michaelkrone avatar May 29 '16 21:05 michaelkrone

I think based on the current demo option, this is a easy job. Just restore the old code with <% if()> will do the trick. However, from now to June 14, I will start doing my graduation paper. I'm wondering if you can do this.

I will do this after I finished my paper or after the deadline if you don't have time to do this.

Stupidism avatar May 30 '16 06:05 Stupidism

Server model generator is nice. With #93

Stupidism avatar May 30 '16 06:05 Stupidism

About the default display name, it's desc option now. And it is indeed default to capitailize of name of property

Stupidism avatar May 30 '16 06:05 Stupidism

Yes, just wrapping in an if would be sufficient, I think.

michaelkrone avatar May 30 '16 06:05 michaelkrone