pullentity-client 0.1.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +2 -0
  3. data/README.md +1 -1
  4. data/lib/pullentity-client/cli.rb +1 -1
  5. data/lib/pullentity-client/generate/auth.rb +32 -18
  6. data/lib/pullentity-client/generate/exporter.rb +14 -2
  7. data/lib/pullentity-client/generate/theme.rb +3 -3
  8. data/lib/pullentity-client/templates/app/assets/javascripts/application.js.erb +2 -1
  9. data/lib/pullentity-client/templates/app/assets/javascripts/config.js.erb +6 -0
  10. data/lib/pullentity-client/templates/app/assets/stylesheets/customtheme.css.scss +14 -8
  11. data/lib/pullentity-client/templates/app/index.html.haml +5 -3
  12. data/lib/pullentity-client/templates/app/views/list.haml +6 -6
  13. data/lib/pullentity-client/templates/app/views/shared/body.haml +5 -5
  14. data/lib/pullentity-client/templates/app/views/shared/head.haml +1 -9
  15. data/lib/pullentity-client/templates/app/views/shared/js.haml +0 -3
  16. data/lib/pullentity-client/templates/app/views/themes/home.haml +0 -1
  17. data/lib/pullentity-client/templates/app/views/themes/list-2.haml +13 -0
  18. data/lib/pullentity-client/templates/app/views/themes/theme1.haml +7 -8
  19. data/lib/pullentity-client/version.rb +1 -1
  20. data/spec/pullentity-client/generate/exporter_spec.rb +3 -3
  21. data/vendor/.DS_Store +0 -0
  22. data/vendor/assets/javascripts/{pullentity → backbone}/.DS_Store +0 -0
  23. data/vendor/assets/javascripts/backbone/backbone.js +1571 -0
  24. data/vendor/assets/javascripts/backbone/underscore.js +1227 -0
  25. data/vendor/assets/javascripts/bootstrap.js +1964 -0
  26. data/vendor/assets/javascripts/bootstrap.min.js +6 -0
  27. data/vendor/assets/javascripts/galleria/LICENSE +21 -0
  28. data/vendor/assets/javascripts/galleria/galleria-1.2.9.js +6121 -0
  29. data/vendor/assets/javascripts/galleria/galleria-1.2.9.min.js +9 -0
  30. data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-demo.html +62 -0
  31. data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-loader.gif +0 -0
  32. data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.js +383 -0
  33. data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
  34. data/vendor/assets/javascripts/galleria/plugins/flickr/loader.gif +0 -0
  35. data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.js +146 -0
  36. data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.min.js +8 -0
  37. data/vendor/assets/javascripts/galleria/plugins/history/history-demo.html +100 -0
  38. data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.js +320 -0
  39. data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
  40. data/vendor/assets/javascripts/galleria/plugins/picasa/loader.gif +0 -0
  41. data/vendor/assets/javascripts/galleria/plugins/picasa/picasa-demo.html +55 -0
  42. data/vendor/assets/javascripts/galleria/themes/classic/classic-demo.html +124 -0
  43. data/vendor/assets/javascripts/galleria/themes/classic/classic-loader.gif +0 -0
  44. data/vendor/assets/javascripts/galleria/themes/classic/classic-map.png +0 -0
  45. data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.css +220 -0
  46. data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.js +95 -0
  47. data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.min.js +8 -0
  48. data/vendor/assets/javascripts/handlebars.js +2278 -0
  49. data/vendor/assets/javascripts/jquery.infinite-scroll.min.js +1 -0
  50. data/vendor/assets/javascripts/jquery.isotope.min.js +11 -0
  51. data/vendor/assets/javascripts/jquery.loadimage.js +3 -0
  52. data/vendor/assets/javascripts/jquery.masonry.min.js +10 -0
  53. data/vendor/assets/javascripts/jquery.waitforimages.js +4 -0
  54. data/vendor/assets/javascripts/pullentity-backbone/.DS_Store +0 -0
  55. data/vendor/assets/javascripts/pullentity-backbone/app/helpers/app_helper.js.coffee +12 -0
  56. data/vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee +11 -0
  57. data/vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee +13 -0
  58. data/vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee +7 -0
  59. data/vendor/assets/javascripts/pullentity-backbone/app/routers/router.coffee +7 -0
  60. data/vendor/assets/javascripts/pullentity-backbone/app/site.js.coffee +33 -0
  61. data/vendor/assets/javascripts/pullentity-backbone/app/views/main.js.coffee +123 -0
  62. data/vendor/assets/javascripts/pullentity-backbone/application.js.coffee +8 -0
  63. data/vendor/assets/javascripts/pullentity.js +3 -0
  64. data/vendor/assets/stylesheets/bootstrap.css +4677 -0
  65. data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
  66. data/vendor/assets/stylesheets/galleria/LICENSE +21 -0
  67. data/vendor/assets/stylesheets/galleria/galleria-1.2.9.js +6121 -0
  68. data/vendor/assets/stylesheets/galleria/galleria-1.2.9.min.js +9 -0
  69. data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-demo.html +62 -0
  70. data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-loader.gif +0 -0
  71. data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.js +383 -0
  72. data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
  73. data/vendor/assets/stylesheets/galleria/plugins/flickr/loader.gif +0 -0
  74. data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.js +146 -0
  75. data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.min.js +8 -0
  76. data/vendor/assets/stylesheets/galleria/plugins/history/history-demo.html +100 -0
  77. data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.js +320 -0
  78. data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
  79. data/vendor/assets/stylesheets/galleria/plugins/picasa/loader.gif +0 -0
  80. data/vendor/assets/stylesheets/galleria/plugins/picasa/picasa-demo.html +55 -0
  81. data/vendor/assets/stylesheets/galleria/themes/classic/classic-demo.html +124 -0
  82. data/vendor/assets/stylesheets/galleria/themes/classic/classic-loader.gif +0 -0
  83. data/vendor/assets/stylesheets/galleria/themes/classic/classic-map-original.png +0 -0
  84. data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.css +217 -0
  85. data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.js +95 -0
  86. data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.min.js +8 -0
  87. metadata +70 -8
  88. data/lib/pullentity-client/templates/defaults/test-data.js.erb +0 -193
  89. data/vendor/assets/javascripts/mustache.js +0 -535
  90. data/vendor/assets/javascripts/pullentity/development.js.coffee +0 -222
  91. data/vendor/assets/javascripts/pullentity.js.erb +0 -3
  92. data/vendor/assets/javascripts/underscore-min.js +0 -1
@@ -0,0 +1,124 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Galleria Classic Theme</title>
6
+ <style>
7
+
8
+ /* Demo styles */
9
+ html,body{background:#222;margin:0;}
10
+ body{border-top:4px solid #000;}
11
+ .content{color:#777;font:12px/1.4 "helvetica neue",arial,sans-serif;width:620px;margin:20px auto;}
12
+ h1{font-size:12px;font-weight:normal;color:#ddd;margin:0;}
13
+ p{margin:0 0 20px}
14
+ a {color:#22BCB9;text-decoration:none;}
15
+ .cred{margin-top:20px;font-size:11px;}
16
+
17
+ /* This rule is read by Galleria to define the gallery height: */
18
+ #galleria{height:320px}
19
+
20
+ </style>
21
+
22
+ <!-- load jQuery -->
23
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
24
+
25
+ <!-- load Galleria -->
26
+ <script src="../../galleria-1.2.9.min.js"></script>
27
+
28
+ </head>
29
+ <body>
30
+ <div class="content">
31
+ <h1>Galleria Classic Theme</h1>
32
+ <p>Demonstrating a basic gallery example.</p>
33
+
34
+ <!-- Adding gallery images. We use resized thumbnails here for better performance, but it’s not necessary -->
35
+
36
+ <div id="galleria">
37
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/800px-Biandintz_eta_zaldiak_-_modified2.jpg">
38
+ <img
39
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/100px-Biandintz_eta_zaldiak_-_modified2.jpg",
40
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/1280px-Biandintz_eta_zaldiak_-_modified2.jpg"
41
+ data-title="Biandintz eta zaldiak"
42
+ data-description="Horses on Bianditz mountain, in Navarre, Spain."
43
+ >
44
+ </a>
45
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/800px-Athabasca_Rail_at_Brule_Lake.jpg">
46
+ <img
47
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/100px-Athabasca_Rail_at_Brule_Lake.jpg",
48
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/1280px-Athabasca_Rail_at_Brule_Lake.jpg"
49
+ data-title="Athabasca Rail"
50
+ data-description="The Athabasca River railroad track at the mouth of Brulé Lake in Alberta, Canada."
51
+ >
52
+ </a>
53
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/1280px-Back-scattering_crepuscular_rays_panorama_1.jpg">
54
+ <img
55
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/100px-Back-scattering_crepuscular_rays_panorama_1.jpg",
56
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/1400px-Back-scattering_crepuscular_rays_panorama_1.jpg"
57
+ data-title="Back-scattering crepuscular rays"
58
+ data-description="Picture of the day on Wikimedia Commons 26 September 2010."
59
+ >
60
+ </a>
61
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/800px-Interior_convento_3.jpg">
62
+ <img
63
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/120px-Interior_convento_3.jpg",
64
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/1400px-Interior_convento_3.jpg"
65
+ data-title="Interior convento"
66
+ data-description="Interior view of Yuriria Convent, founded in 1550."
67
+ >
68
+ </a>
69
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/800px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg">
70
+ <img
71
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/100px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg",
72
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/1280px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg"
73
+ data-title="Oxbow Bend outlook"
74
+ data-description="View over the Snake River to the Mount Moran with the Skillet Glacier."
75
+ >
76
+ </a>
77
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/800px-Hazy_blue_hour_in_Grand_Canyon.JPG">
78
+ <img
79
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/100px-Hazy_blue_hour_in_Grand_Canyon.JPG",
80
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/1280px-Hazy_blue_hour_in_Grand_Canyon.JPG"
81
+ data-title="Hazy blue hour"
82
+ data-description="Hazy blue hour in Grand Canyon. View from the South Rim."
83
+ >
84
+ </a>
85
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/800px-2909_vallon_moy_res.jpg">
86
+ <img
87
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/100px-2909_vallon_moy_res.jpg",
88
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/1280px-2909_vallon_moy_res.jpg"
89
+ data-title="Haute Severaisse valley"
90
+ data-description="View of Haute Severaisse valley and surrounding summits from the slopes of Les Vernets."
91
+ >
92
+ </a>
93
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/800px-Bohinjsko_jezero_2.jpg">
94
+ <img
95
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/100px-Bohinjsko_jezero_2.jpg",
96
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/1280px-Bohinjsko_jezero_2.jpg"
97
+ data-title="Bohinj lake"
98
+ data-description="Bohinj lake (Triglav National Park, Slovenia) in the morning."
99
+ >
100
+ </a>
101
+ <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/800px-Bowling_Balls_Beach_2_edit.jpg">
102
+ <img
103
+ src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/100px-Bowling_Balls_Beach_2_edit.jpg",
104
+ data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/1280px-Bowling_Balls_Beach_2_edit.jpg"
105
+ data-title="Bowling Balls"
106
+ data-description="Mendocino county, California, USA."
107
+ >
108
+ </a>
109
+ </div>
110
+
111
+ <p class="cred">Made by <a href="http://galleria.aino.se">Galleria</a>.</p>
112
+ </div>
113
+
114
+ <script>
115
+
116
+ // Load the classic theme
117
+ Galleria.loadTheme('galleria.classic.min.js');
118
+
119
+ // Initialize Galleria
120
+ Galleria.run('#galleria');
121
+
122
+ </script>
123
+ </body>
124
+ </html>
@@ -0,0 +1,217 @@
1
+ /* Galleria Classic Theme 2012-08-07 | https://raw.github.com/aino/galleria/master/LICENSE | (c) Aino */
2
+
3
+ #galleria-loader{height:1px!important}
4
+
5
+ .galleria-container {
6
+ position: relative;
7
+ overflow: hidden;
8
+ background: #000;
9
+ }
10
+ .galleria-container img {
11
+ -moz-user-select: none;
12
+ -webkit-user-select: none;
13
+ -o-user-select: none;
14
+ }
15
+ .galleria-stage {
16
+ position: absolute;
17
+ top: 10px;
18
+ bottom: 60px;
19
+ left: 10px;
20
+ right: 10px;
21
+ overflow:hidden;
22
+ }
23
+ .galleria-thumbnails-container {
24
+ height: 50px;
25
+ bottom: 0;
26
+ position: absolute;
27
+ left: 10px;
28
+ right: 10px;
29
+ z-index: 2;
30
+ }
31
+ .galleria-carousel .galleria-thumbnails-list {
32
+ margin-left: 30px;
33
+ margin-right: 30px;
34
+ }
35
+ .galleria-thumbnails .galleria-image {
36
+ height: 40px;
37
+ width: 60px;
38
+ background: #000;
39
+ margin: 0 5px 0 0;
40
+ border: 1px solid #000;
41
+ float: left;
42
+ cursor: pointer;
43
+ }
44
+ .galleria-counter {
45
+ position: absolute;
46
+ bottom: 10px;
47
+ left: 10px;
48
+ text-align: right;
49
+ color: #fff;
50
+ font: normal 11px/1 arial,sans-serif;
51
+ z-index: 1;
52
+ }
53
+ .galleria-loader {
54
+ background: #000;
55
+ width: 20px;
56
+ height: 20px;
57
+ position: absolute;
58
+ top: 10px;
59
+ right: 10px;
60
+ z-index: 2;
61
+ display: none;
62
+ background: url(classic-loader.gif) no-repeat 2px 2px;
63
+ }
64
+ .galleria-info {
65
+ width: 50%;
66
+ top: 15px;
67
+ left: 15px;
68
+ z-index: 2;
69
+ position: absolute;
70
+ }
71
+ .galleria-info-text {
72
+ background-color: #000;
73
+ padding: 12px;
74
+ display: none;
75
+ /* IE7 */ zoom:1;
76
+ }
77
+ .galleria-info-title {
78
+ font: bold 12px/1.1 arial,sans-serif;
79
+ margin: 0;
80
+ color: #fff;
81
+ margin-bottom: 7px;
82
+ }
83
+ .galleria-info-description {
84
+ font: italic 12px/1.4 georgia,serif;
85
+ margin: 0;
86
+ color: #bbb;
87
+ }
88
+ .galleria-info-close {
89
+ width: 9px;
90
+ height: 9px;
91
+ position: absolute;
92
+ top: 5px;
93
+ right: 5px;
94
+ background-position: -753px -11px;
95
+ opacity: .5;
96
+ filter: alpha(opacity=50);
97
+ cursor: pointer;
98
+ display: none;
99
+ }
100
+ .notouch .galleria-info-close:hover{
101
+ opacity:1;
102
+ filter: alpha(opacity=100);
103
+ }
104
+ .touch .galleria-info-close:active{
105
+ opacity:1;
106
+ filter: alpha(opacity=100);
107
+ }
108
+ .galleria-info-link {
109
+ background-position: -669px -5px;
110
+ opacity: .7;
111
+ filter: alpha(opacity=70);
112
+ position: absolute;
113
+ width: 20px;
114
+ height: 20px;
115
+ cursor: pointer;
116
+ background-color: #000;
117
+ }
118
+ .notouch .galleria-info-link:hover {
119
+ opacity: 1;
120
+ filter: alpha(opacity=100);
121
+ }
122
+ .touch .galleria-info-link:active {
123
+ opacity: 1;
124
+ filter: alpha(opacity=100);
125
+ }
126
+ .galleria-image-nav {
127
+ position: absolute;
128
+ top: 50%;
129
+ margin-top: -62px;
130
+ width: 100%;
131
+ height: 62px;
132
+ left: 0;
133
+ }
134
+ .galleria-image-nav-left,
135
+ .galleria-image-nav-right {
136
+ opacity: .3;
137
+ filter: alpha(opacity=30);
138
+ cursor: pointer;
139
+ width: 62px;
140
+ height: 124px;
141
+ position: absolute;
142
+ left: 10px;
143
+ z-index: 2;
144
+ background-position: 0 46px;
145
+ }
146
+ .galleria-image-nav-right {
147
+ left: auto;
148
+ right: 10px;
149
+ background-position: -254px 46px;
150
+ z-index: 2;
151
+ }
152
+ .notouch .galleria-image-nav-left:hover,
153
+ .notouch .galleria-image-nav-right:hover {
154
+ opacity: 1;
155
+ filter: alpha(opacity=100);
156
+ }
157
+ .touch .galleria-image-nav-left:active,
158
+ .touch .galleria-image-nav-right:active {
159
+ opacity: 1;
160
+ filter: alpha(opacity=100);
161
+ }
162
+ .galleria-thumb-nav-left,
163
+ .galleria-thumb-nav-right {
164
+ cursor: pointer;
165
+ display: none;
166
+ background-position: -495px 5px;
167
+ position: absolute;
168
+ left: 0;
169
+ top: 0;
170
+ height: 40px;
171
+ width: 23px;
172
+ z-index: 3;
173
+ opacity: .8;
174
+ filter: alpha(opacity=80);
175
+ }
176
+ .galleria-thumb-nav-right {
177
+ background-position: -578px 5px;
178
+ border-right: none;
179
+ right: 0;
180
+ left: auto;
181
+ }
182
+ .galleria-thumbnails-container .disabled {
183
+ opacity: .2;
184
+ filter: alpha(opacity=20);
185
+ cursor: default;
186
+ }
187
+ .notouch .galleria-thumb-nav-left:hover,
188
+ .notouch .galleria-thumb-nav-right:hover {
189
+ opacity: 1;
190
+ filter: alpha(opacity=100);
191
+ background-color: #111;
192
+ }
193
+ .touch .galleria-thumb-nav-left:active,
194
+ .touch .galleria-thumb-nav-right:active {
195
+ opacity: 1;
196
+ filter: alpha(opacity=100);
197
+ background-color: #111;
198
+ }
199
+ .notouch .galleria-thumbnails-container .disabled:hover {
200
+ opacity: .2;
201
+ filter: alpha(opacity=20);
202
+ background-color: transparent;
203
+ }
204
+
205
+ .galleria-carousel .galleria-thumb-nav-left,
206
+ .galleria-carousel .galleria-thumb-nav-right {
207
+ display: block;
208
+ }
209
+ .galleria-thumb-nav-left,
210
+ .galleria-thumb-nav-right,
211
+ .galleria-info-link,
212
+ .galleria-info-close,
213
+ .galleria-image-nav-left,
214
+ .galleria-image-nav-right {
215
+ background-image: url(classic-map.png);
216
+ background-repeat: no-repeat;
217
+ }
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Galleria Classic Theme 2012-08-08
3
+ * http://galleria.io
4
+ *
5
+ * Licensed under the MIT license
6
+ * https://raw.github.com/aino/galleria/master/LICENSE
7
+ *
8
+ */
9
+
10
+ (function($) {
11
+
12
+ /*global jQuery, Galleria */
13
+
14
+ Galleria.addTheme({
15
+ name: 'classic',
16
+ author: 'Galleria',
17
+ css: 'galleria.classic.css',
18
+ defaults: {
19
+ transition: 'slide',
20
+ thumbCrop: 'height',
21
+
22
+ // set this to false if you want to show the caption all the time:
23
+ _toggleInfo: true
24
+ },
25
+ init: function(options) {
26
+
27
+ Galleria.requires(1.28, 'This version of Classic theme requires Galleria 1.2.8 or later');
28
+
29
+ // add some elements
30
+ this.addElement('info-link','info-close');
31
+ this.append({
32
+ 'info' : ['info-link','info-close']
33
+ });
34
+
35
+ // cache some stuff
36
+ var info = this.$('info-link,info-close,info-text'),
37
+ touch = Galleria.TOUCH,
38
+ click = touch ? 'touchstart' : 'click';
39
+
40
+ // show loader & counter with opacity
41
+ this.$('loader,counter').show().css('opacity', 0.4);
42
+
43
+ // some stuff for non-touch browsers
44
+ if (! touch ) {
45
+ this.addIdleState( this.get('image-nav-left'), { left:-50 });
46
+ this.addIdleState( this.get('image-nav-right'), { right:-50 });
47
+ this.addIdleState( this.get('counter'), { opacity:0 });
48
+ }
49
+
50
+ // toggle info
51
+ if ( options._toggleInfo === true ) {
52
+ info.bind( click, function() {
53
+ info.toggle();
54
+ });
55
+ } else {
56
+ info.show();
57
+ this.$('info-link, info-close').hide();
58
+ }
59
+
60
+ // bind some stuff
61
+ this.bind('thumbnail', function(e) {
62
+
63
+ if (! touch ) {
64
+ // fade thumbnails
65
+ $(e.thumbTarget).css('opacity', 0.6).parent().hover(function() {
66
+ $(this).not('.active').children().stop().fadeTo(100, 1);
67
+ }, function() {
68
+ $(this).not('.active').children().stop().fadeTo(400, 0.6);
69
+ });
70
+
71
+ if ( e.index === this.getIndex() ) {
72
+ $(e.thumbTarget).css('opacity',1);
73
+ }
74
+ } else {
75
+ $(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6);
76
+ }
77
+ });
78
+
79
+ this.bind('loadstart', function(e) {
80
+ if (!e.cached) {
81
+ this.$('loader').show().fadeTo(200, 0.4);
82
+ }
83
+
84
+ this.$('info').toggle( this.hasInfo() );
85
+
86
+ $(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6);
87
+ });
88
+
89
+ this.bind('loadfinish', function(e) {
90
+ this.$('loader').fadeOut(200);
91
+ });
92
+ }
93
+ });
94
+
95
+ }(jQuery));
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Galleria Classic Theme 2012-08-08
3
+ * http://galleria.io
4
+ *
5
+ * Licensed under the MIT license
6
+ * https://raw.github.com/aino/galleria/master/LICENSE
7
+ *
8
+ */(function(a){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:function(b){Galleria.requires(1.28,"This version of Classic theme requires Galleria 1.2.8 or later"),this.addElement("info-link","info-close"),this.append({info:["info-link","info-close"]});var c=this.$("info-link,info-close,info-text"),d=Galleria.TOUCH,e=d?"touchstart":"click";this.$("loader,counter").show().css("opacity",.4),d||(this.addIdleState(this.get("image-nav-left"),{left:-50}),this.addIdleState(this.get("image-nav-right"),{right:-50}),this.addIdleState(this.get("counter"),{opacity:0})),b._toggleInfo===!0?c.bind(e,function(){c.toggle()}):(c.show(),this.$("info-link, info-close").hide()),this.bind("thumbnail",function(b){d?a(b.thumbTarget).css("opacity",this.getIndex()?1:.6):(a(b.thumbTarget).css("opacity",.6).parent().hover(function(){a(this).not(".active").children().stop().fadeTo(100,1)},function(){a(this).not(".active").children().stop().fadeTo(400,.6)}),b.index===this.getIndex()&&a(b.thumbTarget).css("opacity",1))}),this.bind("loadstart",function(b){b.cached||this.$("loader").show().fadeTo(200,.4),this.$("info").toggle(this.hasInfo()),a(b.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)}),this.bind("loadfinish",function(a){this.$("loader").fadeOut(200)})}})})(jQuery);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pullentity-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - miguel michelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-05 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script
@@ -273,6 +273,7 @@ files:
273
273
  - lib/pullentity-client/templates/app/assets/images/favicon.ico
274
274
  - lib/pullentity-client/templates/app/assets/images/ps_neutral.png
275
275
  - lib/pullentity-client/templates/app/assets/javascripts/application.js.erb
276
+ - lib/pullentity-client/templates/app/assets/javascripts/config.js.erb
276
277
  - lib/pullentity-client/templates/app/assets/stylesheets/application.css.scss
277
278
  - lib/pullentity-client/templates/app/assets/stylesheets/customtheme.css.scss
278
279
  - lib/pullentity-client/templates/app/index.html.haml
@@ -283,6 +284,7 @@ files:
283
284
  - lib/pullentity-client/templates/app/views/shared/head.haml
284
285
  - lib/pullentity-client/templates/app/views/shared/js.haml
285
286
  - lib/pullentity-client/templates/app/views/themes/home.haml
287
+ - lib/pullentity-client/templates/app/views/themes/list-2.haml
286
288
  - lib/pullentity-client/templates/app/views/themes/theme1.haml
287
289
  - lib/pullentity-client/templates/defaults/Gemfile.erb
288
290
  - lib/pullentity-client/templates/defaults/LICENSE.erb
@@ -292,7 +294,6 @@ files:
292
294
  - lib/pullentity-client/templates/defaults/gitignore.erb
293
295
  - lib/pullentity-client/templates/defaults/layout.haml.erb
294
296
  - lib/pullentity-client/templates/defaults/pullentity.yml.erb
295
- - lib/pullentity-client/templates/defaults/test-data.js.erb
296
297
  - lib/pullentity-client/templates/rakefile
297
298
  - lib/pullentity-client/templates/specs/app_spec.coffee.erb
298
299
  - lib/pullentity-client/thor/.DS_Store
@@ -308,6 +309,7 @@ files:
308
309
  - spec/pullentity-client/logger_spec.rb
309
310
  - spec/pullentity-client/utils_spec.rb
310
311
  - spec/spec_helper.rb
312
+ - vendor/.DS_Store
311
313
  - vendor/assets/.DS_Store
312
314
  - vendor/assets/fonts/fontawesome-webfont.eot
313
315
  - vendor/assets/fonts/fontawesome-webfont.svg
@@ -315,12 +317,72 @@ files:
315
317
  - vendor/assets/fonts/fontawesome-webfont.woff
316
318
  - vendor/assets/images/.DS_Store
317
319
  - vendor/assets/images/pullentity/.DS_Store
318
- - vendor/assets/javascripts/mustache.js
319
- - vendor/assets/javascripts/pullentity.js.erb
320
- - vendor/assets/javascripts/pullentity/.DS_Store
321
- - vendor/assets/javascripts/pullentity/development.js.coffee
322
- - vendor/assets/javascripts/underscore-min.js
320
+ - vendor/assets/javascripts/backbone/.DS_Store
321
+ - vendor/assets/javascripts/backbone/backbone.js
322
+ - vendor/assets/javascripts/backbone/underscore.js
323
+ - vendor/assets/javascripts/bootstrap.js
324
+ - vendor/assets/javascripts/bootstrap.min.js
325
+ - vendor/assets/javascripts/galleria/LICENSE
326
+ - vendor/assets/javascripts/galleria/galleria-1.2.9.js
327
+ - vendor/assets/javascripts/galleria/galleria-1.2.9.min.js
328
+ - vendor/assets/javascripts/galleria/plugins/flickr/flickr-demo.html
329
+ - vendor/assets/javascripts/galleria/plugins/flickr/flickr-loader.gif
330
+ - vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.js
331
+ - vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.min.js
332
+ - vendor/assets/javascripts/galleria/plugins/flickr/loader.gif
333
+ - vendor/assets/javascripts/galleria/plugins/history/galleria.history.js
334
+ - vendor/assets/javascripts/galleria/plugins/history/galleria.history.min.js
335
+ - vendor/assets/javascripts/galleria/plugins/history/history-demo.html
336
+ - vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.js
337
+ - vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.min.js
338
+ - vendor/assets/javascripts/galleria/plugins/picasa/loader.gif
339
+ - vendor/assets/javascripts/galleria/plugins/picasa/picasa-demo.html
340
+ - vendor/assets/javascripts/galleria/themes/classic/classic-demo.html
341
+ - vendor/assets/javascripts/galleria/themes/classic/classic-loader.gif
342
+ - vendor/assets/javascripts/galleria/themes/classic/classic-map.png
343
+ - vendor/assets/javascripts/galleria/themes/classic/galleria.classic.css
344
+ - vendor/assets/javascripts/galleria/themes/classic/galleria.classic.js
345
+ - vendor/assets/javascripts/galleria/themes/classic/galleria.classic.min.js
346
+ - vendor/assets/javascripts/handlebars.js
347
+ - vendor/assets/javascripts/jquery.infinite-scroll.min.js
348
+ - vendor/assets/javascripts/jquery.isotope.min.js
349
+ - vendor/assets/javascripts/jquery.loadimage.js
350
+ - vendor/assets/javascripts/jquery.masonry.min.js
351
+ - vendor/assets/javascripts/jquery.waitforimages.js
352
+ - vendor/assets/javascripts/pullentity-backbone/.DS_Store
353
+ - vendor/assets/javascripts/pullentity-backbone/app/helpers/app_helper.js.coffee
354
+ - vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee
355
+ - vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee
356
+ - vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee
357
+ - vendor/assets/javascripts/pullentity-backbone/app/routers/router.coffee
358
+ - vendor/assets/javascripts/pullentity-backbone/app/site.js.coffee
359
+ - vendor/assets/javascripts/pullentity-backbone/app/views/main.js.coffee
360
+ - vendor/assets/javascripts/pullentity-backbone/application.js.coffee
361
+ - vendor/assets/javascripts/pullentity.js
323
362
  - vendor/assets/stylesheets/.DS_Store
363
+ - vendor/assets/stylesheets/bootstrap.css
364
+ - vendor/assets/stylesheets/bootstrap.min.css
365
+ - vendor/assets/stylesheets/galleria/LICENSE
366
+ - vendor/assets/stylesheets/galleria/galleria-1.2.9.js
367
+ - vendor/assets/stylesheets/galleria/galleria-1.2.9.min.js
368
+ - vendor/assets/stylesheets/galleria/plugins/flickr/flickr-demo.html
369
+ - vendor/assets/stylesheets/galleria/plugins/flickr/flickr-loader.gif
370
+ - vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.js
371
+ - vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.min.js
372
+ - vendor/assets/stylesheets/galleria/plugins/flickr/loader.gif
373
+ - vendor/assets/stylesheets/galleria/plugins/history/galleria.history.js
374
+ - vendor/assets/stylesheets/galleria/plugins/history/galleria.history.min.js
375
+ - vendor/assets/stylesheets/galleria/plugins/history/history-demo.html
376
+ - vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.js
377
+ - vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.min.js
378
+ - vendor/assets/stylesheets/galleria/plugins/picasa/loader.gif
379
+ - vendor/assets/stylesheets/galleria/plugins/picasa/picasa-demo.html
380
+ - vendor/assets/stylesheets/galleria/themes/classic/classic-demo.html
381
+ - vendor/assets/stylesheets/galleria/themes/classic/classic-loader.gif
382
+ - vendor/assets/stylesheets/galleria/themes/classic/classic-map-original.png
383
+ - vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.css
384
+ - vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.js
385
+ - vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.min.js
324
386
  - vendor/assets/stylesheets/pullentity.css.scss.erb
325
387
  - vendor/assets/stylesheets/pullentity/themes/default.css.scss
326
388
  homepage: ''