Adrià Vilanova MartÃnez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // This file bundles together all web components elements used on the |
| 6 | // legacy EZT pages. This is to avoid having issues with registering |
| 7 | // duplicate versions of dependencies. |
| 8 | |
| 9 | import page from 'page'; |
| 10 | |
| 11 | import 'elements/framework/mr-dropdown/mr-account-dropdown.js'; |
| 12 | import 'elements/ezt/mr-bulk-approval-update/mr-bulk-approval-update.js'; |
| 13 | import 'elements/framework/links/mr-user-link/mr-user-link.js'; |
| 14 | import 'elements/chops/chops-timestamp/chops-timestamp.js'; |
| 15 | |
| 16 | import 'elements/framework/mr-header/mr-header.js'; |
| 17 | import 'elements/issue-list/mr-chart/mr-chart.js'; |
| 18 | import 'elements/issue-detail/mr-flipper/mr-flipper.js'; |
| 19 | import 'elements/framework/mr-pref-toggle/mr-pref-toggle.js'; |
| 20 | import 'elements/ezt/ezt-show-columns-connector.js'; |
| 21 | import 'elements/ezt/ezt-app-base.js'; |
| 22 | |
| 23 | // Register an empty set of page.js routes to allow the page() navigation |
| 24 | // function to work. |
| 25 | // Note: The EZT pages should NOT register the routes used by the SPA pages |
| 26 | // without significant refactoring because doing so will lead to unexpected |
| 27 | // routing behavior where the SPA is loaded on top of a server-rendered page |
| 28 | // rather than instead of. |
| 29 | page(); |