Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
platosha committed Mar 21, 2023
1 parent 239b162 commit 88b49ba
Show file tree
Hide file tree
Showing 13 changed files with 856 additions and 911 deletions.
840 changes: 406 additions & 434 deletions docs/iron-component-page/iron-component-page.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/vaadin-router/demo/demo-elements/user.bundle.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<html><head></head><body><dom-module id="x-user-html-bundle-view"><template><style>:host{display:block;}</style><h1>User Profile</h1><p>User id: <b>[[location.params.id]]</b>. This view was loaded using HTML bundle.</p></template></dom-module><script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return!0}catch(e){return!1}}(function(){var XUserHtmlBundleView=/*#__PURE__*/function(_Polymer$Element){babelHelpers.inherits(XUserHtmlBundleView,_Polymer$Element);var _super=_createSuper(XUserHtmlBundleView);function XUserHtmlBundleView(){babelHelpers.classCallCheck(this,XUserHtmlBundleView);return _super.apply(this,arguments)}babelHelpers.createClass(XUserHtmlBundleView,null,[{key:"is",get:function get(){return"x-user-html-bundle-view"}}]);return XUserHtmlBundleView}(Polymer.Element);customElements.define(XUserHtmlBundleView.is,XUserHtmlBundleView)})();</script></body></html>
<html><head></head><body><dom-module id="x-user-html-bundle-view"><template><style>:host{display:block;}</style><h1>User Profile</h1><p>User id: <b>[[location.params.id]]</b>. This view was loaded using HTML bundle.</p></template></dom-module><script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return!0}catch(e){return!1}}(function(){var XUserHtmlBundleView=/*#__PURE__*/function(_Polymer$Element){babelHelpers.inherits(XUserHtmlBundleView,_Polymer$Element);var _super=_createSuper(XUserHtmlBundleView);function XUserHtmlBundleView(){babelHelpers.classCallCheck(this,XUserHtmlBundleView);return _super.apply(this,arguments)}babelHelpers.createClass(XUserHtmlBundleView,null,[{key:"is",get:function get(){return"x-user-html-bundle-view"}}]);return XUserHtmlBundleView}(Polymer.Element);customElements.define(XUserHtmlBundleView.is,XUserHtmlBundleView)})();</script></body></html>
2 changes: 1 addition & 1 deletion docs/vaadin-router/demo/demo-elements/user.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

905 changes: 439 additions & 466 deletions docs/vaadin-router/demo/demo-shell.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,5 @@ <h3>Customize CSS Classes</h3>
</template>
</vaadin-demo-snippet>
</template>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterAnimatedTransitionsDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterAnimatedTransitionsDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterAnimatedTransitionsDemos);function VaadinRouterAnimatedTransitionsDemos(){babelHelpers.classCallCheck(this,VaadinRouterAnimatedTransitionsDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterAnimatedTransitionsDemos,null,[{key:"is",get:function get(){return"vaadin-router-animated-transitions-demos"}}]);return VaadinRouterAnimatedTransitionsDemos}(DemoReadyEventEmitter(ElementDemo(Polymer.Element)));customElements.define(VaadinRouterAnimatedTransitionsDemos.is,VaadinRouterAnimatedTransitionsDemos);</script>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterAnimatedTransitionsDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterAnimatedTransitionsDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterAnimatedTransitionsDemos);function VaadinRouterAnimatedTransitionsDemos(){babelHelpers.classCallCheck(this,VaadinRouterAnimatedTransitionsDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterAnimatedTransitionsDemos,null,[{key:"is",get:function get(){return"vaadin-router-animated-transitions-demos"}}]);return VaadinRouterAnimatedTransitionsDemos}(DemoReadyEventEmitter(ElementDemo(Polymer.Element)));customElements.define(VaadinRouterAnimatedTransitionsDemos.is,VaadinRouterAnimatedTransitionsDemos);</script>
</dom-module>
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,5 @@ <h3>Splitting and Lazy-Loading the Routes Configuration</h3>
</template>
</vaadin-demo-snippet>
</template>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterCodeSplittingDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterCodeSplittingDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterCodeSplittingDemos);function VaadinRouterCodeSplittingDemos(){babelHelpers.classCallCheck(this,VaadinRouterCodeSplittingDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterCodeSplittingDemos,null,[{key:"is",get:function get(){return"vaadin-router-code-splitting-demos"}}]);return VaadinRouterCodeSplittingDemos}(DemoReadyEventEmitter(ElementDemo(Polymer.Element)));customElements.define(VaadinRouterCodeSplittingDemos.is,VaadinRouterCodeSplittingDemos);</script>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterCodeSplittingDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterCodeSplittingDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterCodeSplittingDemos);function VaadinRouterCodeSplittingDemos(){babelHelpers.classCallCheck(this,VaadinRouterCodeSplittingDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterCodeSplittingDemos,null,[{key:"is",get:function get(){return"vaadin-router-code-splitting-demos"}}]);return VaadinRouterCodeSplittingDemos}(DemoReadyEventEmitter(ElementDemo(Polymer.Element)));customElements.define(VaadinRouterCodeSplittingDemos.is,VaadinRouterCodeSplittingDemos);</script>
</dom-module>
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ <h3>Excluded links</h3>
</template>
</vaadin-demo-snippet>
</template>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterGettingStartedDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterGettingStartedDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterGettingStartedDemos);function VaadinRouterGettingStartedDemos(){babelHelpers.classCallCheck(this,VaadinRouterGettingStartedDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterGettingStartedDemos,[{key:"ready",value:function ready(){babelHelpers.get(babelHelpers.getPrototypeOf(VaadinRouterGettingStartedDemos.prototype),"ready",this).call(this);// The base URL demo should '/ui/' initially instead of the default '/'
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterGettingStartedDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterGettingStartedDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterGettingStartedDemos);function VaadinRouterGettingStartedDemos(){babelHelpers.classCallCheck(this,VaadinRouterGettingStartedDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterGettingStartedDemos,[{key:"ready",value:function ready(){babelHelpers.get(babelHelpers.getPrototypeOf(VaadinRouterGettingStartedDemos.prototype),"ready",this).call(this);// The base URL demo should '/ui/' initially instead of the default '/'
// TODO(platosha): Remove the workaround below after)
// https://github.com/vaadin/vaadin-demo-helpers/issues/60 is fixed
var baseUrlDemoSnippet=this.$["vaadin-router-getting-started-demo-base-url"],origShowDemo=baseUrlDemoSnippet._showDemo;baseUrlDemoSnippet._showDemo=function(){origShowDemo.apply(this,arguments);var iframeDemoRenderer=baseUrlDemoSnippet.$.demo.firstElementChild;iframeDemoRenderer.__iframeReady.then(function(){iframeDemoRenderer.url="/ui/";iframeDemoRenderer._postIframeMessage({type:"set-url",url:"/ui/"})})};// TODO(vlukashov): Remove the workaround, and implement the feature in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,5 +518,5 @@ <h3>TypeScript Interfaces</h3>
</li>
</ul>
</template>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterLifecycleCallbacksDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterLifecycleCallbacksDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterLifecycleCallbacksDemos);function VaadinRouterLifecycleCallbacksDemos(){babelHelpers.classCallCheck(this,VaadinRouterLifecycleCallbacksDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterLifecycleCallbacksDemos,null,[{key:"is",get:function get(){return"vaadin-router-lifecycle-callbacks-demos"}}]);return VaadinRouterLifecycleCallbacksDemos}(DemoReadyEventEmitter(ElementDemo(Polymer.Element)));customElements.define(VaadinRouterLifecycleCallbacksDemos.is,VaadinRouterLifecycleCallbacksDemos);</script>
<script>function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=babelHelpers.getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=babelHelpers.getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return babelHelpers.possibleConstructorReturn(this,result)}}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return!0}catch(e){return!1}}var VaadinRouterLifecycleCallbacksDemos=/*#__PURE__*/function(_DemoReadyEventEmitte){babelHelpers.inherits(VaadinRouterLifecycleCallbacksDemos,_DemoReadyEventEmitte);var _super=_createSuper(VaadinRouterLifecycleCallbacksDemos);function VaadinRouterLifecycleCallbacksDemos(){babelHelpers.classCallCheck(this,VaadinRouterLifecycleCallbacksDemos);return _super.apply(this,arguments)}babelHelpers.createClass(VaadinRouterLifecycleCallbacksDemos,null,[{key:"is",get:function get(){return"vaadin-router-lifecycle-callbacks-demos"}}]);return VaadinRouterLifecycleCallbacksDemos}(DemoReadyEventEmitter(ElementDemo(Polymer.Element)));customElements.define(VaadinRouterLifecycleCallbacksDemos.is,VaadinRouterLifecycleCallbacksDemos);</script>
</dom-module>
Loading

0 comments on commit 88b49ba

Please sign in to comment.