UNPKG

api-console-assets

Version:

This repo only exists to publish api console components to npm

81 lines (72 loc) 3.01 kB
<!doctype html> <!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> <title>response-error-view demo</title> <script src="../../webcomponentsjs/webcomponents-lite.js"></script> <link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html"> <link rel="import" href="../../iron-demo-helpers/demo-snippet.html"> <link rel="import" href="../response-error-view.html"> <style is="custom-style" include="demo-pages-shared-styles"> .vertical-section-container { max-width: 600px; } .list > response-error-view { margin-bottom: 24px; margin-top: 24px; } hr { border-color: rgba(0, 0, 0, 0.24); } </style> </head> <body unresolved> <div class="vertical-section-container centered"> <h3>Custom message</h3> <demo-snippet> <template> <response-error-view message="Unable to run the request"></response-error-view> </template> </demo-snippet> <h3>Styled message</h3> <demo-snippet> <template> <response-error-view class="icon-color" icon="arc:error" message="net::ERR_CONNECTION_REFUSED"></response-error-view> <style is="custom-style"> .icon-color { --error-message-icon-color: rgba(63, 81, 181, 0.74); --error-message-color: #3F51B5; --error-message-code-color: #8D6E63; } </style> </template> </demo-snippet> <h3>Predefined messages</h3> <demo-snippet> <template> <div class="list"> <response-error-view message="net::ERR_BAD_SSL_CLIENT_AUTH_CERT"></response-error-view><hr> <response-error-view message="net::ERR_CERT_AUTHORITY_INVALID"></response-error-view><hr> <response-error-view message="net::ERR_CERT_COMMON_NAME_INVALID"></response-error-view><hr> <response-error-view message="Request aborted"></response-error-view><hr> <response-error-view message="net::ERR_ADDRESS_UNREACHABLE"></response-error-view><hr> <response-error-view message="net::ERR_BLOCKED_BY_ADMINISTRATOR"></response-error-view><hr> <response-error-view message="net::ERR_BLOCKED_BY_CLIENT"></response-error-view><hr> <response-error-view message="net::ERR_TIMED_OUT"></response-error-view> </div> </template> </demo-snippet> </div> </body> </html>