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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // NOTE: Keep these in sync with ../server.py | 74 // NOTE: Keep these in sync with ../server.py |
75 KEY__EDITS__MODIFICATIONS: 'modifications', | 75 KEY__EDITS__MODIFICATIONS: 'modifications', |
76 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', | 76 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', |
77 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', | 77 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', |
78 | 78 |
79 // These are just used on the client side, no need to sync with server code. | 79 // These are just used on the client side, no need to sync with server code. |
80 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', | 80 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', |
81 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', | 81 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', |
82 URL_VALUE__SCHEMA_VERSION__CURRENT: 1, | 82 URL_VALUE__SCHEMA_VERSION__CURRENT: 1, |
| 83 |
| 84 // Utility constants only used on the client side. |
| 85 ASC: 'asc', |
| 86 DESC: 'desc', |
83 } | 87 } |
84 })()) | 88 })()) |
OLD | NEW |