blob: 69ebf2337173d54062383a117379dc9ca4181ae5 [file] [log] [blame]
Kasper Nilssonfb5b7112018-11-15 11:46:17 -08001<!--
2@license
3Copyright (C) 2019 The Android Open Source Project
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17<script>
18(function(window) {
19 'use strict';
20
21 window.Gerrit = window.Gerrit || {};
22
Dmitrii Filippov393e9602019-11-12 11:02:48 +010023 /** @polymerBehavior Gerrit.RepoPluginConfig*/
Kasper Nilssonfb5b7112018-11-15 11:46:17 -080024 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 Filippov53752f762019-11-15 11:05:41 +010037
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 Nilssonfb5b7112018-11-15 11:46:17 -080054})(window);
55</script>