{"action":"created","issue":{"url":"https://api.github.com/repos/hawtio/hawtio-kubernetes/issues/101","repository_url":"https://api.github.com/repos/hawtio/hawtio-kubernetes","labels_url":"https://api.github.com/repos/hawtio/hawtio-kubernetes/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/hawtio/hawtio-kubernetes/issues/101/comments","events_url":"https://api.github.com/repos/hawtio/hawtio-kubernetes/issues/101/events","html_url":"https://github.com/hawtio/hawtio-kubernetes/issues/101","id":148556599,"number":101,"title":"can you tell me the structure of this code ?","user":{"login":"ladventure","id":5574542,"avatar_url":"https://avatars.githubusercontent.com/u/5574542?v=3","gravatar_id":"","url":"https://api.github.com/users/ladventure","html_url":"https://github.com/ladventure","followers_url":"https://api.github.com/users/ladventure/followers","following_url":"https://api.github.com/users/ladventure/following{/other_user}","gists_url":"https://api.github.com/users/ladventure/gists{/gist_id}","starred_url":"https://api.github.com/users/ladventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ladventure/subscriptions","organizations_url":"https://api.github.com/users/ladventure/orgs","repos_url":"https://api.github.com/users/ladventure/repos","events_url":"https://api.github.com/users/ladventure/events{/privacy}","received_events_url":"https://api.github.com/users/ladventure/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T05:16:21Z","updated_at":"2016-04-15T13:00:36Z","closed_at":null,"body":"I want to change the page and add some new functions for me .But I don't know the structure of code ,can you tell me ?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/hawtio/hawtio-kubernetes/issues/comments/210455571","html_url":"https://github.com/hawtio/hawtio-kubernetes/issues/101#issuecomment-210455571","issue_url":"https://api.github.com/repos/hawtio/hawtio-kubernetes/issues/101","id":210455571,"user":{"login":"gashcrumb","id":351660,"avatar_url":"https://avatars.githubusercontent.com/u/351660?v=3","gravatar_id":"","url":"https://api.github.com/users/gashcrumb","html_url":"https://github.com/gashcrumb","followers_url":"https://api.github.com/users/gashcrumb/followers","following_url":"https://api.github.com/users/gashcrumb/following{/other_user}","gists_url":"https://api.github.com/users/gashcrumb/gists{/gist_id}","starred_url":"https://api.github.com/users/gashcrumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gashcrumb/subscriptions","organizations_url":"https://api.github.com/users/gashcrumb/orgs","repos_url":"https://api.github.com/users/gashcrumb/repos","events_url":"https://api.github.com/users/gashcrumb/events{/privacy}","received_events_url":"https://api.github.com/users/gashcrumb/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T13:00:36Z","updated_at":"2016-04-15T13:00:36Z","body":"I would recommend creating a fresh hawtio project following the 'getting started' guide on this page:\r\n\r\nhttp://hawt.io/overview/index.html\r\n\r\nI'd maybe suggest typescript, but javascript would work as well.  You can then bring in hawtio-kubernetes as a bower dependency via:\r\n\r\n`bower install --save hawtio-kubernetes`\r\n\r\nIf you use typescript you can add a line to plugins/includes.ts to include all the hawtio-kubernetes definitions in your own plugin if you need to re-use some of the API.  Also the slush generator gives you a simple example plugin to start from with a couple pages.\r\n\r\nIn terms of the code structure we organize hawtio project code by plugin.  So all the typescript goes in plugins/<plugin name>/ts for all the controllers, directives etc. for a plugin.  Same goes for the HTML templates, and we put .less files into the 'less' directory.\r\n\r\nThe generated slush project compiles all the code for your plugin into 'dist'.  If you want to say create a full site say to put in a .war file I can point you to an example, I tend to copy functions over as needed between projects:\r\n\r\nhttps://github.com/hawtio/hawtio-java/blob/master/hawtio-console-assembly/gulpfile.js#L286-348\r\n\r\nAlso if it's something you think would be useful for other folks, feel free to open a PR, we love contributions!"}}