{ "id": "98054", "key": "ALOY-130", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-26T13:24:04.000+0000", "created": "2012-07-26T08:45:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:25:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "This will allow styles files to lose the enclosing \\{\\} characters, and it will remove the need to wrap all properties in quotes. All the same compile time rules will apply though. All dynamic code still needs to go in expr() syntax.\r\n\r\nWe can likely achieve the above by using eval() on the style, then using JSON.stringify() to turn it back to JSON, then continue are normal tss processing.", "attachment": [], "flagged": false, "summary": "Interpret .tss files as JS, not JSON", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209725", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For reference, the {{test/apps/simple/styles/index.tss}} before and after. No more double quotes necessary on keys, and no top-level \\{\\} necessary.\r\n\r\nh4. before\r\n{code:javascript}\r\n{\r\n\t\"Button\" : {\r\n\t\t\"width\" : expr(Ti.Platform.displayCaps.platformWidth/2),\r\n\t\t\"height\" : Ti.UI.SIZE\r\n\t},\r\n\t\".button\" : {\r\n\t\t\"randomProp\":\"OK\"\r\n\t},\r\n\t\"#index[platform=ios]\": {\r\n\t\t\"backgroundColor\":\"blue\"\r\n\t},\r\n\t\"#index[platform=ios size=tablet]\": {\r\n\t\t\"backgroundColor\":\"red\"\r\n\t},\r\n\t\"#b\": {\r\n\t\t\"randomProp\" : null\r\n\t}\r\n}\r\n{code}\r\n\r\nh4. after\r\n{code:javascript}\r\n\"Button\" : {\r\n\twidth: expr(Ti.Platform.displayCaps.platformWidth/2),\r\n\theight: Ti.UI.SIZE\r\n},\r\n\".button\" : {\r\n\trandomProp: 'OK'\r\n},\r\n\"#index[platform=ios]\": {\r\n\tbackgroundColor: 'blue'\r\n},\r\n\"#index[platform=ios size=tablet]\": {\r\n\tbackgroundColor: 'red'\r\n},\r\n\"#b\": {\r\n\trandomProp: null\r\n}\r\n{code}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T13:24:04.000+0000", "updated": "2012-07-26T13:24:04.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }