{"action":"created","issue":{"url":"https://api.github.com/repos/LaxarJS/laxar/issues/197","labels_url":"https://api.github.com/repos/LaxarJS/laxar/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/LaxarJS/laxar/issues/197/comments","events_url":"https://api.github.com/repos/LaxarJS/laxar/issues/197/events","html_url":"https://github.com/LaxarJS/laxar/issues/197","id":75499521,"number":197,"title":"Allow to identify controls based on control.json","user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaxarJS/laxar/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/LaxarJS/laxar/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/LaxarJS/laxar/milestones/1","html_url":"https://github.com/LaxarJS/laxar/milestones/v1.0.0","labels_url":"https://api.github.com/repos/LaxarJS/laxar/milestones/1/labels","id":789860,"number":1,"title":"v1.0.0","description":"Stable release of LaxarJS targeting AngularJS 1.3+ ","creator":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":49,"state":"open","created_at":"2014-09-15T13:32:02Z","updated_at":"2015-05-13T14:33:07Z","due_on":"2015-05-03T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-05-12T07:28:22Z","updated_at":"2015-05-18T08:00:47Z","closed_at":null,"body":"Currently, the CSS for controls is always found by using the last part of the AMD-path to the control and looking for it within the control-directory and within the theme-directory.\n\nInstead, the WidgetLoader should interpret the AMD-path as a directory and look for a `control.json` that contains the actual `name` of the control. This name is then used for theme-lookup, both within the artifact (at `<path-to-control>/<theme>.theme/css/<name>.css`) and within in the application-wide theme folder (at `<path-to-theme>/controls/<name>/css/<name>.css`).\n\nFor controls without `control.json`, we should continue to use the previous mechanism.\n\nThis is a prerequisite for both LaxarJS/laxar#129 and for LaxarJS/laxar_uikit#105"},"comment":{"url":"https://api.github.com/repos/LaxarJS/laxar/issues/comments/102955627","html_url":"https://github.com/LaxarJS/laxar/issues/197#issuecomment-102955627","issue_url":"https://api.github.com/repos/LaxarJS/laxar/issues/197","id":102955627,"user":{"login":"x1B","id":327904,"avatar_url":"https://avatars.githubusercontent.com/u/327904?v=3","gravatar_id":"","url":"https://api.github.com/users/x1B","html_url":"https://github.com/x1B","followers_url":"https://api.github.com/users/x1B/followers","following_url":"https://api.github.com/users/x1B/following{/other_user}","gists_url":"https://api.github.com/users/x1B/gists{/gist_id}","starred_url":"https://api.github.com/users/x1B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x1B/subscriptions","organizations_url":"https://api.github.com/users/x1B/orgs","repos_url":"https://api.github.com/users/x1B/repos","events_url":"https://api.github.com/users/x1B/events{/privacy}","received_events_url":"https://api.github.com/users/x1B/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T08:00:47Z","updated_at":"2015-05-18T08:00:47Z","body":"Implemented on `master` (`v1.0.0`).\r\n\r\n### Upgrade Information\r\n\r\nThe loading of controls has been improved: Each control can (and should) now have a _descriptor_ named `control.json` containing the artifact name. When using AMD-paths to reference controls, the directory _containing_ the descriptor should be specified. This way, controls and their assets will be resolved correctly, even if AMD-paths and/or directory-names do not correspond to their own name.\r\n\r\nFor this to work in your project, make sure to use _grunt-laxar_ in `v1.0.0-alpha.9` or higher, and to configure the file listings to include and embed the _control.json_ files in your Gruntfile. If individual controls need for specific RequireJS paths to be configured, they should tell you in their documentation."}}