| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Constants used by our imagediff-viewing Javascript code. | 2 * Constants used by our imagediff-viewing Javascript code. |
| 3 */ | 3 */ |
| 4 var module = angular.module( | 4 var module = angular.module( |
| 5 'ConstantsModule', | 5 'ConstantsModule', |
| 6 [] | 6 [] |
| 7 ); | 7 ); |
| 8 | 8 |
| 9 module.constant('constants', (function() { | 9 module.constant('constants', (function() { |
| 10 return { | 10 return { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // | 66 // |
| 67 KEY__RESULT_TYPE__FAILED: 'failed', | 67 KEY__RESULT_TYPE__FAILED: 'failed', |
| 68 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', | 68 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', |
| 69 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', | 69 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', |
| 70 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', | 70 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', |
| 71 | 71 |
| 72 // NOTE: Keep these in sync with ../server.py | 72 // NOTE: Keep these in sync with ../server.py |
| 73 KEY__EDITS__MODIFICATIONS: 'modifications', | 73 KEY__EDITS__MODIFICATIONS: 'modifications', |
| 74 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', | 74 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', |
| 75 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', | 75 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', |
| 76 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', |
| 77 URL_VALUE__SCHEMA_VERSION__CURRENT: 0, |
| 78 // always interpret as then-current schema version; |
| 79 // used for toplevel links on index page |
| 80 URL_VALUE__SCHEMA_VERSION__ALWAYS_CURRENT: 'current', |
| 76 | 81 |
| 77 // These are just used on the client side, no need to sync with server code. | 82 // These are just used on the client side, no need to sync with server code. |
| 78 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', | 83 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', |
| 79 } | 84 } |
| 80 })()) | 85 })()) |
| OLD | NEW |