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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 KEY__EXTRACOLUMNS__RESULT_TYPE: 'resultType', | 54 KEY__EXTRACOLUMNS__RESULT_TYPE: 'resultType', |
55 KEY__EXTRACOLUMNS__TEST: 'test', | 55 KEY__EXTRACOLUMNS__TEST: 'test', |
56 // | 56 // |
57 KEY__HEADER__DATAHASH: 'dataHash', | 57 KEY__HEADER__DATAHASH: 'dataHash', |
58 KEY__HEADER__IS_EDITABLE: 'isEditable', | 58 KEY__HEADER__IS_EDITABLE: 'isEditable', |
59 KEY__HEADER__IS_EXPORTED: 'isExported', | 59 KEY__HEADER__IS_EXPORTED: 'isExported', |
60 KEY__HEADER__IS_STILL_LOADING: 'resultsStillLoading', | 60 KEY__HEADER__IS_STILL_LOADING: 'resultsStillLoading', |
61 KEY__HEADER__RESULTS_ALL: 'all', | 61 KEY__HEADER__RESULTS_ALL: 'all', |
62 KEY__HEADER__RESULTS_FAILURES: 'failures', | 62 KEY__HEADER__RESULTS_FAILURES: 'failures', |
63 KEY__HEADER__SCHEMA_VERSION: 'schemaVersion', | 63 KEY__HEADER__SCHEMA_VERSION: 'schemaVersion', |
| 64 KEY__HEADER__SET_A_DESCRIPTIONS: 'setA', |
| 65 KEY__HEADER__SET_B_DESCRIPTIONS: 'setB', |
64 KEY__HEADER__TIME_NEXT_UPDATE_AVAILABLE: 'timeNextUpdateAvailable', | 66 KEY__HEADER__TIME_NEXT_UPDATE_AVAILABLE: 'timeNextUpdateAvailable', |
65 KEY__HEADER__TIME_UPDATED: 'timeUpdated', | 67 KEY__HEADER__TIME_UPDATED: 'timeUpdated', |
66 KEY__HEADER__TYPE: 'type', | 68 KEY__HEADER__TYPE: 'type', |
67 VALUE__HEADER__SCHEMA_VERSION: 4, | 69 VALUE__HEADER__SCHEMA_VERSION: 5, |
68 // | 70 // |
69 KEY__RESULT_TYPE__FAILED: 'failed', | 71 KEY__RESULT_TYPE__FAILED: 'failed', |
70 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', | 72 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', |
71 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', | 73 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', |
72 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', | 74 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', |
| 75 // |
| 76 KEY__SET_DESCRIPTIONS__DIR: 'dir', |
| 77 KEY__SET_DESCRIPTIONS__REPO_REVISION: 'repoRevision', |
| 78 KEY__SET_DESCRIPTIONS__SECTION: 'section', |
73 | 79 |
74 // NOTE: Keep these in sync with ../server.py | 80 // NOTE: Keep these in sync with ../server.py |
75 KEY__EDITS__MODIFICATIONS: 'modifications', | 81 KEY__EDITS__MODIFICATIONS: 'modifications', |
76 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', | 82 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', |
77 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', | 83 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', |
78 | 84 |
79 // These are just used on the client side, no need to sync with server code. | 85 // These are just used on the client side, no need to sync with server code. |
80 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', | 86 KEY__IMAGEPAIRS__ROWSPAN: 'rowspan', |
81 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', | 87 URL_KEY__SCHEMA_VERSION: 'urlSchemaVersion', |
82 URL_VALUE__SCHEMA_VERSION__CURRENT: 1, | 88 URL_VALUE__SCHEMA_VERSION__CURRENT: 1, |
83 | 89 |
84 // Utility constants only used on the client side. | 90 // Utility constants only used on the client side. |
85 ASC: 'asc', | 91 ASC: 'asc', |
86 DESC: 'desc', | 92 DESC: 'desc', |
87 } | 93 } |
88 })()) | 94 })()) |
OLD | NEW |