jquery_mb_extruder 1.0.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/generators/jquery_mb_extruder/templates/views/demo.html.erb +243 -0
- data/lib/generators/jquery_mb_extruder/templates/views/demo_left.html.erb +228 -0
- data/lib/generators/jquery_mb_extruder/templates/views/demo_left_inline.html.erb +190 -0
- data/lib/generators/jquery_mb_extruder/templates/views/demo_top.html.erb +147 -0
- data/lib/generators/jquery_mb_extruder/templates/views/demo_video.html.erb +140 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extr_components.html.erb +30 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extr_creativity.html.erb +41 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extr_mti.html.erb +25 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extr_network.html.erb +25 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extr_tw.html.erb +25 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extruderLeft.html.erb +69 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extruderLeft1.html.erb +45 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extruderRight.html.erb +33 -0
- data/lib/generators/jquery_mb_extruder/templates/views/extruderTop.html.erb +25 -0
- data/lib/generators/jquery_mb_extruder/templates/views/movie.html.erb +29 -0
- data/lib/generators/jquery_mb_extruder/templates/views/parts_controller.rb +48 -0
- data/lib/generators/jquery_mb_extruder/views_generator.rb +42 -0
- data/lib/jquery_mb_extruder/version.rb +1 -1
- metadata +19 -2
@@ -0,0 +1,30 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extr_components.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div><a href="http://pupunzi.com/#mb.components/mb._menu/menu.html" class="ajax" >mb.menu</a></div>
|
22
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.containerPlus/containerPlus.html" class="ajax" >mb.containerPlus</a></div>
|
23
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.gallery/gallery.html" class="ajax" >mb.gallery</a></div>
|
24
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.maskedGallery/maskedGallery.html" class="ajax" >mb.maskedGallery</a></div>
|
25
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.tabset/tabset.html" class="ajax" >mb.tabset</a></div>
|
26
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.imageNavigator/imageNavigator.html" class="ajax" >mb.imageNavigator</a></div>
|
27
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.tooltip/tooltip.html" class="ajax" >mb.tooltip</a></div>
|
28
|
+
<div><a href="http://pupunzi.com/#mb.components/mb.scrollable/scrollable.html" class="ajax" >mb.scrollable</a></div>
|
29
|
+
<!--<div><a href="mb.components/mb.extruder/extruder.html" class="ajax" >mb.extruder</a></div>-->
|
30
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extr_creativity.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed elit lacus, luctus in ornare quis, tincidunt vitae erat. Integer sed quam a sem faucibus ultricies vitae vel tortor. Etiam volutpat leo a tortor accumsan scelerisque. Duis varius dictum egestas. </div>
|
22
|
+
<div><a class="ajax" onclick="alert('mb.pdf.magazine');">mb.pdf.magazine</a></div>
|
23
|
+
<div><a onclick="alert('mb.video');" >mb.video</a></div>
|
24
|
+
<div><a onclick="alert('mb.more');" >mb.more</a></div>
|
25
|
+
<div class="text">
|
26
|
+
<form>
|
27
|
+
<img src="images/browser.png" alt="img" style="position:relative;margin-top:-20px; margin-left:-10px;margin-bottom:-3px"/><br/>
|
28
|
+
<input id="myInput" type="text" name="tuoTesto" value="you can have input inside" />
|
29
|
+
<br>
|
30
|
+
<br>
|
31
|
+
<table>
|
32
|
+
<tr><td><input type="checkbox" checked value="aaa"/></td><td>checkbox 1</td></tr>
|
33
|
+
<tr><td><input type="checkbox" value="aaa"/></td><td>checkbox 1</td></tr>
|
34
|
+
<tr><td><input type="checkbox" value="aaa"/></td><td>checkbox 2</td></tr>
|
35
|
+
<tr><td><input type="checkbox" value="aaa"/></td><td>checkbox 3</td></tr>
|
36
|
+
</table>
|
37
|
+
<br>
|
38
|
+
<br>
|
39
|
+
<input type="button" name="tuoTesto" value="submit" onclick="alert('submit the form!');" />
|
40
|
+
</form>
|
41
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extr_mti.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div><a href="http://www.morethanicons.com/home.page" target="_blank">home</a></div>
|
22
|
+
<div><a href="http://www.morethanicons.com/services.page" target="_blank">services</a></div>
|
23
|
+
<div><a href="http://www.morethanicons.com/portfolio.page" target="_blank">portfolio</a></div>
|
24
|
+
<div><a href="http://www.morethanicons.com/Customers.page" target="_blank">about</a></div>
|
25
|
+
<div><a href="http://www.morethanicons.com/ContactMorethanicons.page" target="_blank">contacts</a></div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extr_network.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div><a href="http://www.open-lab.com" class="external" >open lab</a></div>
|
22
|
+
<div><a href="http://www.morethanicons.com" class="external" >morethanicons</a></div>
|
23
|
+
<div><a href="http://www.twproject.com" class="external" >teamwork</a></div>
|
24
|
+
<div><a href="http://www.bugsvoice.com" class="external" >bugsvoice</a></div>
|
25
|
+
<div><a href="http://www.patapage.com" class="external" >patapage</a></div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extr_tw.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div><a href="http://www.twproject.com/overview.page" target="_blank">Overview</a></div>
|
22
|
+
<div><a href="http://www.twproject.com/customerList.page" target="_blank">Customers</a></div>
|
23
|
+
<div><a href="http://www.twproject.com/documentation.page" target="_blank">documentation</a></div>
|
24
|
+
<div><a href="http://www.twproject.com/download.page" target="_blank">Download</a></div>
|
25
|
+
<div><a href="http://www.twproject.com/licensePrices.page" target="_blank">License and prices</a></div>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extruderLeft.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div class="text">
|
22
|
+
<img src="http://licorize.com/applications/licorize/images/logo.png" alt="Licorize" width="90%">
|
23
|
+
<h3>Turn web page bookmarking and status updates into projects, ideas, teams at work.</h3>
|
24
|
+
<br>
|
25
|
+
<br>
|
26
|
+
Licorize is a minimalistic and fast
|
27
|
+
to-do manager that you can feed with your bookmarks and web updates.
|
28
|
+
<br>
|
29
|
+
<br>
|
30
|
+
<a href="http://licorize.com" target="_blank" style="color:black;">got to Licorize!</a>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<!--
|
35
|
+
<div class="text">
|
36
|
+
<img src="http://patapage.net/gmmt/gamamoto-logo.png" alt="Gamamoto" width="90%">
|
37
|
+
|
38
|
+
<h3>games, stories, browsers</h3>
|
39
|
+
<br>
|
40
|
+
<br>
|
41
|
+
spread the word about our browser games - that is the only marketing we wish for.
|
42
|
+
<br>
|
43
|
+
<br>
|
44
|
+
<a href="http://gamamoto.com" target="_blank" style="color:black;">got to Gamamoto!</a>
|
45
|
+
</div>
|
46
|
+
-->
|
47
|
+
|
48
|
+
<div class="text">
|
49
|
+
<img src="http://adslifegame.com/images/adslifeLogo.png" alt="Gamamoto" width="90%">
|
50
|
+
|
51
|
+
<h3>Create a top agency
|
52
|
+
invent ads
|
53
|
+
and survive
|
54
|
+
the strain</h3>
|
55
|
+
<br>
|
56
|
+
<br>
|
57
|
+
Start your one-man agency.
|
58
|
+
Hunt for customers on the web and duel with other agencies.
|
59
|
+
Live the life of a talended and cursed visionary creative.
|
60
|
+
|
61
|
+
<h3>Soon on line!</h3>
|
62
|
+
<br>
|
63
|
+
<br>
|
64
|
+
<a href="http://adslifegame.com" target="_blank" style="color:black;">got to Adslife game!</a>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<style type="text/css">
|
68
|
+
.extruder .text{font:14px/16px Arial,Helvetica,sans-serif;color:gray;padding:20px;border-bottom:1px solid #333333;}
|
69
|
+
</style>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extruderLeft1.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div class="text">
|
22
|
+
<img src="http://patapage.com/images/logo.png" alt="pp">
|
23
|
+
|
24
|
+
More options for your website users. In minutes.
|
25
|
+
Patapage is an innovative webtool
|
26
|
+
that will change the way you manage webpages’ content.
|
27
|
+
<br>
|
28
|
+
<br>
|
29
|
+
The beta version is forthcoming. Write us at info@patapage.com in order to get
|
30
|
+
an access to the beta as soon as it is available.
|
31
|
+
|
32
|
+
<a href="http://patapage.com" target="_blank" style="color:white;">got to Patapage!</a>
|
33
|
+
|
34
|
+
</div>
|
35
|
+
<div class="text">
|
36
|
+
<img src="http://bugsvoice.com/images/logo.png" alt="pp" width="300">
|
37
|
+
|
38
|
+
Turn bugs in opportunities. Online.
|
39
|
+
<br>
|
40
|
+
<br>
|
41
|
+
The beta version is forthcoming. Write us at info@bugsvoice.com
|
42
|
+
in order to get an access to the beta as soon as it is available.
|
43
|
+
<a href="http://bugsvoice.com" target="_blank" style="color:white;">got to BugsVoice!</a>
|
44
|
+
|
45
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extruderRight.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div class="voice {}"><span class="label"><a class="label" href="http://www.open-lab.com">Open Lab</a></span></div>
|
22
|
+
<div id="tw" class="voice {panel:'parts/extr_tw.html'}"><a class="label" href="http://twproject.com" target="_blank">teamwork</a></div>
|
23
|
+
<div class="voice {panel:'parts/extr_mti.html'}"><span class="label">Morethanicons</span></div>
|
24
|
+
<div class="voice {panel:'parts/extr_network.html'}"><span class="label">Open Lab network</span></div>
|
25
|
+
<div class="voice {disabled:true}"><span class="label">Microsoft Internet Explorer</span> </div>
|
26
|
+
<div class="voice {}"><a class="label" href="http://firefox.com" target="_blank">get FireFox</a> </div>
|
27
|
+
<div class="voice {}"><a class="label" href="http://www.google.com/chrome" target="_blank">get Chrome</a> </div>
|
28
|
+
<div class="voice {}"><a class="label" href="http://www.apple.com/safari/" target="_blank">get Safari</a> </div>
|
29
|
+
<div class="voice {}"><a class="label" href="http://www.opera.com/" target="_blank">get Opera</a> </div>
|
30
|
+
|
31
|
+
<script type="text/javascript">
|
32
|
+
|
33
|
+
</script>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: extruderTop.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div class="voice {}"><a class="label" href="http://pupunzi.com">mb.ideas.home</a></div>
|
22
|
+
<div id="top2" class="voice {panel:'parts/extr_components.html'}"><a class="label" href="http://pupunzi.com/#mb.components/components.html">mb.jquery.components</a></div>
|
23
|
+
<div class="voice {panel:'parts/extr_creativity.html'}"><span class="label">mb.creativity</span></div>
|
24
|
+
<div class="voice {disabled:true}"><span class="label">mb.info (disabled)</span> </div>
|
25
|
+
<div class="voice {panel:'parts/extr_network.html'}"><span class="label">mb.network</span></div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<!--
|
2
|
+
~ /*******************************************************************************
|
3
|
+
~ jquery.mb.components
|
4
|
+
~ file: movie.html
|
5
|
+
~
|
6
|
+
~ Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
|
7
|
+
~ Open lab srl, Firenze - Italy
|
8
|
+
~ email: matteo@open-lab.com
|
9
|
+
~ site: http://pupunzi.com
|
10
|
+
~ blog: http://pupunzi.open-lab.com
|
11
|
+
~ http://open-lab.com
|
12
|
+
~
|
13
|
+
~ Licences: MIT, GPL
|
14
|
+
~ http://www.opensource.org/licenses/mit-license.php
|
15
|
+
~ http://www.gnu.org/licenses/gpl.html
|
16
|
+
~
|
17
|
+
~ last modified: 07/01/14 22.50
|
18
|
+
~ ******************************************************************************/
|
19
|
+
-->
|
20
|
+
|
21
|
+
<div id="movie"></div>
|
22
|
+
<a id="bgndVideo" style="display: none" class="player" data-property="{videoURL:'V2rifmjZuKQ',containment:'#movie',autoPlay:true, mute:true, startAt:0, opacity:1}">My video</a>
|
23
|
+
<style type="text/css">
|
24
|
+
#movie{
|
25
|
+
position:relative;
|
26
|
+
width:100%;
|
27
|
+
height:500px;
|
28
|
+
}
|
29
|
+
</style>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
class PartsController < ApplicationController
|
2
|
+
|
3
|
+
def extruderLeft
|
4
|
+
end
|
5
|
+
|
6
|
+
def extruderTop
|
7
|
+
end
|
8
|
+
|
9
|
+
def extruderRight
|
10
|
+
end
|
11
|
+
|
12
|
+
def extruderLeft1
|
13
|
+
end
|
14
|
+
|
15
|
+
def extr_tw
|
16
|
+
end
|
17
|
+
|
18
|
+
def extr_network
|
19
|
+
end
|
20
|
+
|
21
|
+
def extr_mti
|
22
|
+
end
|
23
|
+
|
24
|
+
def extr_creativity
|
25
|
+
end
|
26
|
+
|
27
|
+
def extr_components
|
28
|
+
end
|
29
|
+
|
30
|
+
def demo
|
31
|
+
end
|
32
|
+
|
33
|
+
def demo_left
|
34
|
+
end
|
35
|
+
|
36
|
+
def demo_left_inline
|
37
|
+
end
|
38
|
+
|
39
|
+
def demo_top
|
40
|
+
end
|
41
|
+
|
42
|
+
def demo_video
|
43
|
+
end
|
44
|
+
|
45
|
+
def movie
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module JqueryMbExtruder
|
2
|
+
module Generators
|
3
|
+
class ViewsGenerator < Rails::Generators::Base
|
4
|
+
|
5
|
+
source_root File.expand_path('../templates', __FILE__)
|
6
|
+
|
7
|
+
def generate_views
|
8
|
+
copy_file "views/parts_controller.rb", "app/controllers/parts_controller.rb"
|
9
|
+
copy_file "views/demo.html.erb", "app/views/parts/demo.html.erb"
|
10
|
+
copy_file "views/demo_left.html.erb", "app/views/parts/demo_left.html.erb"
|
11
|
+
copy_file "views/demo_top.html.erb", "app/views/parts/demo_top.html.erb"
|
12
|
+
copy_file "views/demo_video.html.erb", "app/views/parts/demo_video.html.erb"
|
13
|
+
copy_file "views/extr_components.html.erb", "app/views/parts/extr_components.html.erb"
|
14
|
+
copy_file "views/extr_creativity.html.erb", "app/views/parts/extr_creativity.html.erb"
|
15
|
+
copy_file "views/extr_mti.html.erb", "app/views/parts/extr_mti.html.erb"
|
16
|
+
copy_file "views/extr_network.html.erb", "app/views/parts/extr_network.html.erb"
|
17
|
+
copy_file "views/extr_tw.html.erb", "app/views/parts/extr_tw.html.erb"
|
18
|
+
copy_file "views/extruderLeft.html.erb", "app/views/parts/extruderLeft.html.erb"
|
19
|
+
copy_file "views/extruderLeft1.html.erb", "app/views/parts/extruderLeft1.html.erb"
|
20
|
+
copy_file "views/extruderRight.html.erb", "app/views/parts/extruderRight.html.erb"
|
21
|
+
copy_file "views/extruderTop.html.erb", "app/views/parts/extruderTop.html.erb"
|
22
|
+
copy_file "views/movie.html.erb", "app/views/parts/movie.html.erb"
|
23
|
+
|
24
|
+
route 'get "parts/demo", to: "parts#demo", as: :demo'
|
25
|
+
route 'get "parts/demo_left", to: "parts#demo_left", as: :demo_left'
|
26
|
+
route 'get "parts/demo_top", to: "parts#demo_top", as: :demo_top'
|
27
|
+
route 'get "parts/demo_video", to: "parts#demo_video", as: :demo_video'
|
28
|
+
route 'get "parts/extr_components", to: "parts#extr_components", as: :extr_components'
|
29
|
+
route 'get "parts/extr_creativity", to: "parts#extr_creativity", as: :extr_creativity'
|
30
|
+
route 'get "parts/extr_mti", to: "parts#extr_mti", as: :extr_mti'
|
31
|
+
route 'get "parts/extr_network", to: "parts#extr_network", as: :extr_network'
|
32
|
+
route 'get "parts/extr_tw", to: "parts#extr_tw", as: :extr_tw'
|
33
|
+
route 'get "parts/extruderLeft", to: "parts#extruderLeft", as: :extruderLeft'
|
34
|
+
route 'get "parts/extruderLeft1", to: "parts#extruderLeft1", as: :extruderLeft1'
|
35
|
+
route 'get "parts/extruderRight", to: "parts#extruderRight", as: :extruderRight'
|
36
|
+
route 'get "parts/extruderTop", to: "parts#extruderTop", as: :extruderTop'
|
37
|
+
route 'get "parts/movie", to: "parts#movie", as: :movie'
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|