{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/18501","repository_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/18501/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/18501/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/18501/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/18501","id":178922991,"number":18501,"title":"Web linter","user":{"login":"mugling","id":12238606,"avatar_url":"https://avatars.githubusercontent.com/u/12238606?v=3","gravatar_id":"","url":"https://api.github.com/users/mugling","html_url":"https://github.com/mugling","followers_url":"https://api.github.com/users/mugling/followers","following_url":"https://api.github.com/users/mugling/following{/other_user}","gists_url":"https://api.github.com/users/mugling/gists{/gist_id}","starred_url":"https://api.github.com/users/mugling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mugling/subscriptions","organizations_url":"https://api.github.com/users/mugling/orgs","repos_url":"https://api.github.com/users/mugling/repos","events_url":"https://api.github.com/users/mugling/events{/privacy}","received_events_url":"https://api.github.com/users/mugling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-09-23T16:43:32Z","updated_at":"2016-09-26T15:34:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/18501","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/18501","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/18501.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/18501.patch"},"body":"Follows discussion in #18477\r\n\r\n> Sure, sounds fine, and mod_cgi would be simplest from my point of view\r\n\r\nExtends linter to support being run as a CGI script. Tries very hard to avoid consuming unnecessary resources by performing client-side JSON validation and only sending a content body if linting was required.\r\n\r\n@narc0tiq can be installed using the following:\r\n```\r\nAlias /tools /path/to/cataclysm/tools\r\n<Directory \"/path/to/cataclysm/tools/format\">\r\n    DirectoryIndex format.html\r\n    Options +ExecCGI\r\n\r\n    <Files \"format.pl\">\r\n       LimitRequestBody 524288\r\n       <LimitExcept POST>\r\n            Order allow,deny\r\n            Deny from all\r\n        </LimitExcept>\r\n       SetEnv PATH /usr/local/bin\r\n       SetHandler cgi-script\r\n    </Files>\r\n \r\n    Require all granted\r\n</Directory>\r\n```\r\nThe only presumption is that you have `perl` installed in `/usr/local/bin` and that you also have the `CGI` module. It does **not** depend on `jq`\r\n\r\nThe HTML5 web interface is intentionally simple and has no jQuery bloat or other indeed any other dependencies at all. If anyone knows a lightweight JSON syntax highlighter that could go in as it might be helpful for new users getting used to editing the game data."},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/249606053","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/18501#issuecomment-249606053","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/18501","id":249606053,"user":{"login":"DangerNoodle","id":22048567,"avatar_url":"https://avatars.githubusercontent.com/u/22048567?v=3","gravatar_id":"","url":"https://api.github.com/users/DangerNoodle","html_url":"https://github.com/DangerNoodle","followers_url":"https://api.github.com/users/DangerNoodle/followers","following_url":"https://api.github.com/users/DangerNoodle/following{/other_user}","gists_url":"https://api.github.com/users/DangerNoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/DangerNoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DangerNoodle/subscriptions","organizations_url":"https://api.github.com/users/DangerNoodle/orgs","repos_url":"https://api.github.com/users/DangerNoodle/repos","events_url":"https://api.github.com/users/DangerNoodle/events{/privacy}","received_events_url":"https://api.github.com/users/DangerNoodle/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T15:34:00Z","updated_at":"2016-09-26T15:34:00Z","body":"> Latest commit prevents submitting a new linting request until the previous has completed - the intention is to reduce workload on the server from processing duplicate requests. A busy cursor is now displayed to make it clear that a request is pending.\r\n\r\nExcellent."}}
{"actor":{"display_login":"DangerNoodle"}}