google-nomulus/java/google/registry/ui/js
guyben 89c942b0d9 Have a resource component receive the "registrar resource" instead of creating it
We have several "consoles" ("views" in the registrar console). They all affect the same resource - the registrar itself.

Currently, each view creates its own "RESTful resource", even though it's the same resource for all of them, meaning we have copied code and copied "URL endpoint" across multiple files.

I assume this was made so that IF one day we have a "view" to another resource, we can easily add it. But we currently don't have any such view, nor plans to add any.

So according to the YAGNI paradigm, it's better to move the resource creation outside of the console.

Also, IF we do add a view to a different resource - it'll still be more readable to have a map from the "view" to the "resource URL endpoint" alongside the existing map from the "view" to the "console"...

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213992967
2018-10-03 11:49:01 -04:00
..
registrar Have a resource component receive the "registrar resource" instead of creating it 2018-10-03 11:49:01 -04:00
BUILD Update Nomulus to build with bazel 0.16.0 2018-08-10 13:46:48 -04:00
component.js Replace uses of @code in Javascript documentation with Markdown backticks 2018-02-05 23:51:49 -05:00
console.js Remove final uses of @code in JS comments 2018-03-06 18:51:32 -05:00
edit_item.js Remove final uses of @code in JS comments 2018-03-06 18:51:32 -05:00
forms.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
menu_button.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
resource.js Remove the "create" funtion from the Resource JS class 2018-09-14 21:29:57 -04:00
resource_component.js Use JSON.parse instead of deprecated goog.json.parse. 2017-08-29 17:12:44 -04:00
session.js Change from ES6 Map to old-fashioned object 2018-09-20 11:19:36 -04:00
util.js Remove final uses of @code in JS comments 2018-03-06 18:51:32 -05:00
xml.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00