Kasper Nilsson | fb5b711 | 2018-11-15 11:46:17 -0800 | [diff] [blame] | 1 | <!-- |
| 2 | @license |
| 3 | Copyright (C) 2019 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <script> |
| 18 | (function(window) { |
| 19 | 'use strict'; |
| 20 | |
| 21 | window.Gerrit = window.Gerrit || {}; |
| 22 | |
Dmitrii Filippov | 393e960 | 2019-11-12 11:02:48 +0100 | [diff] [blame] | 23 | /** @polymerBehavior Gerrit.RepoPluginConfig*/ |
Kasper Nilsson | fb5b711 | 2018-11-15 11:46:17 -0800 | [diff] [blame] | 24 | Gerrit.RepoPluginConfig = { |
| 25 | // Should be kept in sync with |
| 26 | // gerrit/java/com/google/gerrit/extensions/api/projects/ProjectConfigEntryType.java. |
| 27 | ENTRY_TYPES: { |
| 28 | ARRAY: 'ARRAY', |
| 29 | BOOLEAN: 'BOOLEAN', |
| 30 | INT: 'INT', |
| 31 | LIST: 'LIST', |
| 32 | LONG: 'LONG', |
| 33 | STRING: 'STRING', |
| 34 | }, |
| 35 | PLUGIN_CONFIG_CHANGED: 'plugin-config-changed', |
| 36 | }; |
Dmitrii Filippov | 53752f76 | 2019-11-15 11:05:41 +0100 | [diff] [blame] | 37 | |
| 38 | // eslint-disable-next-line no-unused-vars |
| 39 | function defineEmptyMixin() { |
| 40 | // This is a temporary function. |
| 41 | // Polymer linter doesn't process correctly the following code: |
| 42 | // class MyElement extends Polymer.mixinBehaviors([legacyBehaviors], ...) {...} |
| 43 | // To workaround this issue, the mock mixin is declared in this method. |
| 44 | // In the following changes, legacy behaviors will be converted to mixins. |
| 45 | |
| 46 | /** |
| 47 | * @polymer |
| 48 | * @mixinFunction |
| 49 | */ |
| 50 | Gerrit.RepoPluginConfigMixin = base => |
| 51 | class extends base { |
| 52 | }; |
| 53 | } |
Kasper Nilsson | fb5b711 | 2018-11-15 11:46:17 -0800 | [diff] [blame] | 54 | })(window); |
| 55 | </script> |