Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 254ea29

Browse files
committed
Minor updates
1 parent 03a637c commit 254ea29

File tree

1 file changed

+34
-83
lines changed

1 file changed

+34
-83
lines changed

dist/app.js

Lines changed: 34 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -15726,20 +15726,20 @@ Opal.modules["components/router/app_router"] = function(Opal) {
1572615726
return ($e = ($f = self).$Switch, $e.$$p = (TMP_3 = function(){var self = TMP_3.$$s || this;
1572715727

1572815728
self.$Route("/", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('HomePage')}));
15729-
self.$Route("/start", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('StartPage')}));
15729+
self.$Route("/start", $hash2(["exact", "mounts"], {"exact": false, "mounts": $scope.get('StartPage')}));
1573015730
self.$Route("/installation", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('InstallationPage')}));
1573115731
self.$Route("/tutorials", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('TutorialsPage')}));
1573215732
self.$Route("/gems", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('GemsPage')}));
1573315733
self.$Route("/tools", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('ToolsPage')}));
15734-
return self.$Route("/docs", $hash2(["exact", "mounts"], {"exact": true, "mounts": $scope.get('DocsPage')}));}, TMP_3.$$s = self, TMP_3.$$arity = 0, TMP_3), $e).call($f)}, TMP_2.$$s = self, TMP_2.$$arity = 0, TMP_2), $c).call($d)}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b);
15734+
return self.$Route("/docs", $hash2(["exact", "mounts"], {"exact": false, "mounts": $scope.get('DocsPage')}));}, TMP_3.$$s = self, TMP_3.$$arity = 0, TMP_3), $e).call($f)}, TMP_2.$$s = self, TMP_2.$$arity = 0, TMP_2), $c).call($d)}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b);
1573515735
})($scope.base, (($scope.get('Hyperloop')).$$scope.get('Router')))
1573615736
};
1573715737

1573815738
/* Generated by Opal 0.10.5 */
1573915739
Opal.modules["components/docs/docs_sidebar"] = function(Opal) {
1574015740
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2;
1574115741

15742-
Opal.add_stubs(['$param', '$render', '$PageToc', '$section_store', '$params']);
15742+
Opal.add_stubs(['$param', '$render', '$PageToc', '$section_store', '$params', '$history', '$section']);
1574315743
return (function($base, $super) {
1574415744
function $DocsSidebar(){};
1574515745
var self = $DocsSidebar = $klass($base, $super, 'DocsSidebar', $DocsSidebar);
@@ -15748,9 +15748,13 @@ Opal.modules["components/docs/docs_sidebar"] = function(Opal) {
1574815748

1574915749
self.$param("section_store");
1575015750

15751+
self.$param("history");
15752+
15753+
self.$param("section");
15754+
1575115755
return ($a = ($b = self).$render, $a.$$p = (TMP_1 = function(){var self = TMP_1.$$s || this;
1575215756

15753-
return self.$PageToc($hash2(["section_store"], {"section_store": self.$params().$section_store()}))}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b);
15757+
return self.$PageToc($hash2(["section_store", "history", "section"], {"section_store": self.$params().$section_store(), "history": self.$params().$history(), "section": self.$params().$section()}))}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b);
1575415758
})($scope.base, (($scope.get('Hyperloop')).$$scope.get('Component')))
1575515759
};
1575615760

@@ -15777,7 +15781,7 @@ Opal.modules["components/docs/docs_body"] = function(Opal) {
1577715781
Opal.modules["components/docs/docs_page"] = function(Opal) {
1577815782
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2;
1577915783

15780-
Opal.add_stubs(['$before_mount', '$hide', '$render', '$as_node', '$DocsSidebar', '$[]', '$sections', '$DocsBody', '$PageLayout', '$loaded?']);
15784+
Opal.add_stubs(['$before_mount', '$hide', '$render', '$puts', '$url', '$match', '$as_node', '$DocsSidebar', '$[]', '$sections', '$history', '$DocsBody', '$Route', '$PageLayout', '$loaded?']);
1578115785
return (function($base, $super) {
1578215786
function $DocsPage(){};
1578315787
var self = $DocsPage = $klass($base, $super, 'DocsPage', $DocsPage);
@@ -15788,12 +15792,22 @@ Opal.modules["components/docs/docs_page"] = function(Opal) {
1578815792

1578915793
return $scope.get('SidebarStore').$hide()}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b);
1579015794

15791-
return ($a = ($c = self).$render, $a.$$p = (TMP_2 = function(){var self = TMP_2.$$s || this, sidebar = nil, body = nil, title = nil;
15795+
return ($a = ($c = self).$render, $a.$$p = (TMP_2 = function(){var self = TMP_2.$$s || this, $d, $e, TMP_3, $f, TMP_4, $g, TMP_5, sidebar = nil, body = nil, title = nil;
1579215796

15793-
sidebar = self.$DocsSidebar($hash2(["section_store"], {"section_store": $scope.get('SiteStore').$sections()['$[]']("docs")})).$as_node();
15797+
self.$puts(self.$match().$url());
15798+
sidebar = self.$DocsSidebar($hash2(["section_store", "history", "section"], {"section_store": $scope.get('SiteStore').$sections()['$[]']("docs"), "history": self.$history(), "section": "docs"})).$as_node();
1579415799
body = self.$DocsBody($hash2(["section_store"], {"section_store": $scope.get('SiteStore').$sections()['$[]']("docs")})).$as_node();
1579515800
title = "Hyperloop Documentation";
15796-
return self.$PageLayout($hash2(["sidebar_component", "body_component", "page_title", "loaded"], {"sidebar_component": sidebar, "body_component": body, "page_title": title, "loaded": $scope.get('SiteStore').$sections()['$[]']("docs")['$loaded?']()}));}, TMP_2.$$s = self, TMP_2.$$arity = 0, TMP_2), $a).call($c);
15801+
($d = ($e = self).$Route, $d.$$p = (TMP_3 = function(){var self = TMP_3.$$s || this;
15802+
15803+
return self.$puts("we have a repo")}, TMP_3.$$s = self, TMP_3.$$arity = 0, TMP_3), $d).call($e, "/docs/:repo", $hash2(["exact"], {"exact": true}));
15804+
($d = ($f = self).$Route, $d.$$p = (TMP_4 = function(){var self = TMP_4.$$s || this;
15805+
15806+
return self.$puts("we have a repo and file")}, TMP_4.$$s = self, TMP_4.$$arity = 0, TMP_4), $d).call($f, "/docs/:repo/:file", $hash2(["exact"], {"exact": true}));
15807+
($d = ($g = self).$Route, $d.$$p = (TMP_5 = function(){var self = TMP_5.$$s || this;
15808+
15809+
return self.$puts("we have a repo and file and slug")}, TMP_5.$$s = self, TMP_5.$$arity = 0, TMP_5), $d).call($g, "/docs/:repo/:file/:slug", $hash2(["exact"], {"exact": true}));
15810+
return self.$PageLayout($hash2(["sidebar_component", "body_component", "page_title", "loaded"], {"sidebar_component": sidebar, "body_component": body, "page_title": title, "loaded": $scope.get('SiteStore').$sections()['$[]']("docs")['$loaded?']()}));}, TMP_2.$$s = self, TMP_2.$$arity = 0, TMP_2), $a).call($c, $scope.get('DIV'));
1579715811
})($scope.base, (((($scope.get('Hyperloop')).$$scope.get('Router'))).$$scope.get('Component')))
1579815812
};
1579915813

@@ -16088,77 +16102,9 @@ if (e == null) e = nil;if (data == null) data = nil;
1608816102

1608916103
/* Generated by Opal 0.10.5 */
1609016104
Opal.modules["components/shared/page_toc.old"] = function(Opal) {
16091-
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2;
16092-
16093-
Opal.add_stubs(['$param', '$render', '$DIV', '$Container', '$Menu', '$loaded?', '$section_store', '$params', '$accordion', '$each_with_index', '$<<', '$as_node', '$toc_heading', '$[]', '$panel', '$to_s', '$pages', '$Accordion', '$to_n', '$UL', '$each', '$toc_item', '$drop', '$on', '$set_current_page', '$force_update!', '$SPAN', '$LI', '$A']);
16094-
return (function($base, $super) {
16095-
function $PageToc(){};
16096-
var self = $PageToc = $klass($base, $super, 'PageToc', $PageToc);
16097-
16098-
var def = self.$$proto, $scope = self.$$scope, $a, $b, TMP_1, TMP_7, TMP_10, TMP_13, TMP_17;
16099-
16100-
self.$param("section_store");
16101-
16102-
($a = ($b = self).$render, $a.$$p = (TMP_1 = function(){var self = TMP_1.$$s || this, $c, $d, TMP_2;
16103-
16104-
return ($c = ($d = self).$DIV, $c.$$p = (TMP_2 = function(){var self = TMP_2.$$s || this, $e, $f, TMP_3;
16105-
16106-
return ($e = ($f = $scope.get('Sem')).$Container, $e.$$p = (TMP_3 = function(){var self = TMP_3.$$s || this, $g, $h, TMP_4;
16107-
16108-
return ($g = ($h = $scope.get('Sem')).$Menu, $g.$$p = (TMP_4 = function(){var self = TMP_4.$$s || this, $i, $j, TMP_5;
16109-
16110-
if ((($i = self.$params().$section_store()['$loaded?']()) !== nil && $i != null && (!$i.$$is_boolean || $i == true))) {
16111-
return ($i = ($j = self).$DIV, $i.$$p = (TMP_5 = function(){var self = TMP_5.$$s || this;
16112-
16113-
return self.$accordion()}, TMP_5.$$s = self, TMP_5.$$arity = 0, TMP_5), $i).call($j, $hash2(["class"], {"class": "accordian-div"}))
16114-
} else {
16115-
return nil
16116-
}}, TMP_4.$$s = self, TMP_4.$$arity = 0, TMP_4), $g).call($h, $hash2(["fixed", "vertical", "size", "inverted", "compact"], {"fixed": "left", "vertical": true, "size": "huge", "inverted": false, "compact": true}))}, TMP_3.$$s = self, TMP_3.$$arity = 0, TMP_3), $e).call($f)}, TMP_2.$$s = self, TMP_2.$$arity = 0, TMP_2), $c).call($d, $hash2(["class"], {"class": "tocmenu"}))}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b);
16117-
16118-
Opal.defn(self, '$accordion', TMP_7 = function $$accordion() {
16119-
var $a, $b, TMP_6, self = this, panels = nil;
16120-
16121-
panels = [];
16122-
($a = ($b = self.$params().$section_store().$pages()).$each_with_index, $a.$$p = (TMP_6 = function(page, index){var self = TMP_6.$$s || this;
16123-
if (page == null) page = nil;if (index == null) index = nil;
16124-
return panels['$<<']($hash2(["title", "content", "key"], {"title": self.$toc_heading(page, page['$[]']("headings")['$[]'](0)).$as_node(), "content": self.$panel(page).$as_node(), "key": index.$to_s()}))}, TMP_6.$$s = self, TMP_6.$$arity = 2, TMP_6), $a).call($b);
16125-
return $scope.get('Sem').$Accordion($hash2(["panels", "styled", "fluid"], {"panels": panels.$to_n(), "styled": false, "fluid": false}));
16126-
}, TMP_7.$$arity = 0);
16127-
16128-
Opal.defn(self, '$panel', TMP_10 = function $$panel(page) {
16129-
var $a, $b, TMP_8, self = this;
16130-
16131-
return ($a = ($b = self).$UL, $a.$$p = (TMP_8 = function(){var self = TMP_8.$$s || this, $c, $d, TMP_9;
16132-
16133-
return ($c = ($d = page['$[]']("headings").$drop(1)).$each, $c.$$p = (TMP_9 = function(heading){var self = TMP_9.$$s || this;
16134-
if (heading == null) heading = nil;
16135-
return self.$toc_item(page, heading)}, TMP_9.$$s = self, TMP_9.$$arity = 1, TMP_9), $c).call($d)}, TMP_8.$$s = self, TMP_8.$$arity = 0, TMP_8), $a).call($b);
16136-
}, TMP_10.$$arity = 1);
16137-
16138-
Opal.defn(self, '$toc_heading', TMP_13 = function $$toc_heading(page, heading) {
16139-
var $a, $b, TMP_11, $c, $d, TMP_12, self = this;
16140-
16141-
return ($a = ($b = ($c = ($d = self).$SPAN, $c.$$p = (TMP_12 = function(){var self = TMP_12.$$s || this;
16142-
16143-
return heading['$[]']("text")}, TMP_12.$$s = self, TMP_12.$$arity = 0, TMP_12), $c).call($d, $hash2(["class"], {"class": "header"}))).$on, $a.$$p = (TMP_11 = function(){var self = TMP_11.$$s || this;
16144-
16145-
self.$params().$section_store().$set_current_page(page);
16146-
return self['$force_update!']();}, TMP_11.$$s = self, TMP_11.$$arity = 0, TMP_11), $a).call($b, "click");
16147-
}, TMP_13.$$arity = 2);
16148-
16149-
return (Opal.defn(self, '$toc_item', TMP_17 = function $$toc_item(page, heading) {
16150-
var $a, $b, TMP_14, self = this;
16151-
16152-
return ($a = ($b = self).$LI, $a.$$p = (TMP_14 = function(){var self = TMP_14.$$s || this, $c, $d, TMP_15, $e, $f, TMP_16;
16153-
16154-
return ($c = ($d = ($e = ($f = self).$A, $e.$$p = (TMP_16 = function(){var self = TMP_16.$$s || this;
16155-
16156-
return "" + (heading['$[]']("text"))}, TMP_16.$$s = self, TMP_16.$$arity = 0, TMP_16), $e).call($f)).$on, $c.$$p = (TMP_15 = function(){var self = TMP_15.$$s || this;
16105+
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice;
1615716106

16158-
self.$params().$section_store().$set_current_page(page);
16159-
return self['$force_update!']();}, TMP_15.$$s = self, TMP_15.$$arity = 0, TMP_15), $c).call($d, "click")}, TMP_14.$$s = self, TMP_14.$$arity = 0, TMP_14), $a).call($b, $hash2(["class"], {"class": "toc_h" + (heading['$[]']("level"))}));
16160-
}, TMP_17.$$arity = 2), nil) && 'toc_item';
16161-
})($scope.base, (($scope.get('Hyperloop')).$$scope.get('Component')))
16107+
return nil
1616216108
};
1616316109

1616416110
/* Generated by Opal 0.10.5 */
@@ -16595,7 +16541,7 @@ Opal.modules["components/shared/page_toc"] = function(Opal) {
1659516541
}
1659616542
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2;
1659716543

16598-
Opal.add_stubs(['$imports', '$param', '$render', '$Rail', '$ReactYahooSticky', '$DIV', '$loaded?', '$section_store', '$params', '$accordion', '$Accordion', '$each_with_index', '$on', '$animate', '$[]', '$set_current_page', '$force_update!', '$AccordionTitle', '$I', '$B', '$AccordionContent', '$each', '$<', '$top', '$offset', '$-', '$A', '$==', '$drop', '$pages']);
16544+
Opal.add_stubs(['$imports', '$param', '$render', '$Rail', '$ReactYahooSticky', '$DIV', '$loaded?', '$section_store', '$params', '$accordion', '$Accordion', '$each_with_index', '$on', '$animate', '$[]', '$set_current_page', '$push', '$history', '$section', '$force_update!', '$AccordionTitle', '$I', '$B', '$AccordionContent', '$each', '$<', '$top', '$offset', '$-', '$A', '$==', '$drop', '$pages']);
1659916545
(function($base, $super) {
1660016546
function $ReactYahooSticky(){};
1660116547
var self = $ReactYahooSticky = $klass($base, $super, 'ReactYahooSticky', $ReactYahooSticky);
@@ -16612,6 +16558,10 @@ Opal.modules["components/shared/page_toc"] = function(Opal) {
1661216558

1661316559
self.$param("section_store");
1661416560

16561+
self.$param("history");
16562+
16563+
self.$param("section");
16564+
1661516565
($a = ($b = self).$render, $a.$$p = (TMP_1 = function(){var self = TMP_1.$$s || this, $c, $d, TMP_2;
1661616566

1661716567
return ($c = ($d = $scope.get('Sem')).$Rail, $c.$$p = (TMP_2 = function(){var self = TMP_2.$$s || this, $e, $f, TMP_3;
@@ -16642,6 +16592,7 @@ if (page == null) page = nil;if (index == null) index = nil;
1664216592

1664316593
$scope.get('Element')['$[]']("html, body").$animate($hash2(["scrollTop"], {"scrollTop": 0}), "slow");
1664416594
self.$params().$section_store().$set_current_page(page);
16595+
self.$params().$history().$push("/" + (self.$params().$section()) + "/" + (page['$[]']("repo")) + "/" + (page['$[]']("file")));
1664516596
return self['$force_update!']();}, TMP_7.$$s = self, TMP_7.$$arity = 0, TMP_7), $e).call($f, "click");
1664616597
return ($e = ($g = $scope.get('Sem')).$AccordionContent, $e.$$p = (TMP_10 = function(){var self = TMP_10.$$s || this, $i, $j, TMP_11;
1664716598

@@ -16659,8 +16610,8 @@ if (heading == null) heading = nil;
1665916610
slug = "" + (heading['$[]']("slug"));
1666016611
anchorchapter_position = $scope.get('Element')['$[]']("#" + (slug)).$offset().$top();
1666116612
$scope.get('Element')['$[]']("html, body").$animate($hash2(["scrollTop"], {"scrollTop": $rb_minus(anchorchapter_position, 85)}), 500);
16662-
self.$params().$section_store().$set_current_page(page);
16663-
return self['$force_update!']();}, TMP_12.$$s = self, TMP_12.$$arity = 0, TMP_12), $k).call($l, "click")
16613+
self.$params().$history().$push("/" + (self.$params().$section()) + "/" + (page['$[]']("repo")) + "/" + (page['$[]']("file")) + "/" + (slug));
16614+
return self.$params().$section_store().$set_current_page(page);}, TMP_12.$$s = self, TMP_12.$$arity = 0, TMP_12), $k).call($l, "click")
1666416615
} else {
1666516616
return nil
1666616617
}}, TMP_11.$$s = self, TMP_11.$$arity = 1, TMP_11), $i).call($j)}, TMP_10.$$s = self, TMP_10.$$arity = 0, TMP_10), $e).call($g, $hash2(["className"], {"className": "menu"}));}, TMP_6.$$s = self, TMP_6.$$arity = 2, TMP_6), $c).call($d)}, TMP_5.$$s = self, TMP_5.$$arity = 0, TMP_5), $a).call($b, $hash2(["fluid", "className"], {"fluid": true, "className": "large pointing secondary vertical following menu"}));
@@ -16811,7 +16762,7 @@ Opal.modules["components/start/start_sidebar"] = function(Opal) {
1681116762
Opal.modules["components/start/start_page"] = function(Opal) {
1681216763
var self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $hash2 = Opal.hash2;
1681316764

16814-
Opal.add_stubs(['$render', '$as_node', '$StartSidebar', '$[]', '$sections', '$StartBody', '$PageLayout', '$loaded?']);
16765+
Opal.add_stubs(['$render', '$as_node', '$DocsSidebar', '$[]', '$sections', '$history', '$StartBody', '$PageLayout', '$loaded?']);
1681516766
return (function($base, $super) {
1681616767
function $StartPage(){};
1681716768
var self = $StartPage = $klass($base, $super, 'StartPage', $StartPage);
@@ -16820,7 +16771,7 @@ Opal.modules["components/start/start_page"] = function(Opal) {
1682016771

1682116772
return ($a = ($b = self).$render, $a.$$p = (TMP_1 = function(){var self = TMP_1.$$s || this, sidebar = nil, body = nil, title = nil;
1682216773

16823-
sidebar = self.$StartSidebar($hash2(["section_store"], {"section_store": $scope.get('SiteStore').$sections()['$[]']("start")})).$as_node();
16774+
sidebar = self.$DocsSidebar($hash2(["section_store", "history", "section"], {"section_store": $scope.get('SiteStore').$sections()['$[]']("start"), "history": self.$history(), "section": "start"})).$as_node();
1682416775
body = self.$StartBody($hash2(["section_store"], {"section_store": $scope.get('SiteStore').$sections()['$[]']("start")})).$as_node();
1682516776
title = "Get started with Hyperloop";
1682616777
return self.$PageLayout($hash2(["sidebar_component", "body_component", "page_title", "loaded"], {"sidebar_component": sidebar, "body_component": body, "page_title": title, "loaded": $scope.get('SiteStore').$sections()['$[]']("start")['$loaded?']()}));}, TMP_1.$$s = self, TMP_1.$$arity = 0, TMP_1), $a).call($b, $scope.get('DIV'))

0 commit comments

Comments
 (0)