edge_framework 0.9.12 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +10 -1
  3. data/assets/js/edge/edge.prism.js +0 -1
  4. data/assets/js/edge/edge.template.js +15 -0
  5. data/assets/js/edge.js +223 -223
  6. data/assets/js/edge5.js +567 -0
  7. data/assets/{test.html → kitchen-sink.html} +1 -2
  8. data/assets/sass/edge.scss +4 -4
  9. data/assets/sass/{for-test.scss → kitchen-sink.scss} +0 -0
  10. data/lib/edge/version.rb +2 -2
  11. data/template/base/.gitignore +8 -198
  12. data/template/base/assets/js/vendor/fastclick.min.js +9 -0
  13. data/template/base/config.rb +1 -4
  14. data/template/base/robots.txt +1 -4
  15. data/template/html/index.html +22 -18
  16. data/template/php/_footer.php +17 -0
  17. data/template/php/_header.php +24 -0
  18. data/template/php/index.php +3 -10
  19. data/template/rails/application.html.erb +7 -5
  20. data/template/wordpress/404.php +1 -5
  21. data/template/wordpress/footer.php +10 -8
  22. data/template/wordpress/functions.php +0 -15
  23. data/template/wordpress/header.php +19 -12
  24. metadata +9 -42
  25. data/assets/js-docs/jquery.min.js +0 -6
  26. data/assets/test2.html +0 -74
  27. data/readme-img/compass-edge-big.jpg +0 -0
  28. data/readme-img/compass-edge.jpg +0 -0
  29. data/readme-img/generator/assets/css/.keep +0 -0
  30. data/readme-img/generator/assets/css/app.css +0 -67
  31. data/readme-img/generator/assets/css/framework.css +0 -1015
  32. data/readme-img/generator/assets/files/.keep +0 -0
  33. data/readme-img/generator/assets/fonts/.keep +0 -0
  34. data/readme-img/generator/assets/img/favicon-big.png +0 -0
  35. data/readme-img/generator/assets/img/favicon.png +0 -0
  36. data/readme-img/generator/assets/img/ipad.svg +0 -19
  37. data/readme-img/generator/assets/img/iphone.svg +0 -22
  38. data/readme-img/generator/assets/js/app.js +0 -3
  39. data/readme-img/generator/assets/js/vendor/custom.modernizr.js +0 -4
  40. data/readme-img/generator/assets/js/vendor/jquery.min.js +0 -6
  41. data/readme-img/generator/assets/sass/_setting.scss +0 -107
  42. data/readme-img/generator/assets/sass/app.scss +0 -102
  43. data/readme-img/generator/assets/sass/framework.scss +0 -10
  44. data/readme-img/generator/content.html +0 -40
  45. data/readme-img/generator/index.html +0 -49
  46. data/readme-img/generator/robots.txt +0 -7
  47. data/readme-img/grid-centered.jpg +0 -0
  48. data/readme-img/grid-collapse.jpg +0 -0
  49. data/readme-img/grid-large-small.jpg +0 -0
  50. data/readme-img/grid-large.jpg +0 -0
  51. data/readme-img/grid-nesting.jpg +0 -0
  52. data/readme-img/grid-offset.jpg +0 -0
  53. data/readme-img/grid-ordering.jpg +0 -0
  54. data/readme-img/grid-tile.jpg +0 -0
  55. data/readme-img/logo.jpg +0 -0
  56. data/readme-img/rails-edge-big.jpg +0 -0
  57. data/readme-img/rails-edge.jpg +0 -0
  58. data/template/master/assets/sass/_setting.scss +0 -118
  59. data/template/php/partials/footer.php +0 -15
  60. data/template/php/partials/functions.php +0 -83
  61. data/template/php/partials/header.php +0 -22
  62. data/template/php/sample-page/index.php +0 -11
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWU2NDIyYzg0MGUxMGFjZjQ0YTI1N2MyYTc5ZDQwNWQyZWZmZmZlMA==
4
+ MmNjMGJmNTY4MjNjNjkzMjdiN2I5ZGUyNjE2YjBjZDFiM2Q2ZmE4MQ==
5
5
  data.tar.gz: !binary |-
6
- OWNiODVmZmM4YWJiM2FlMWRkNTE2ZDcwNWQ4ZGQxZDEyYjYxZjBkZQ==
6
+ ZTMwYjE0ODgxYjA2NzljZjE0NDc2MjJjZmZmOTQxODAwYTdhMzE1NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmQzMTkzYjllMjE2NmQxOWY0MzQ5Yzk3NjY3OWExMDY4ZTNlODliZDEyODVh
10
- NzcxZGUyZTRjM2EwYzA4Nzk2MzAwYThmZjYyMWQxOTJlOTM0NTc2ZGY2ZGFk
11
- NDlmN2Y2NzhkNzU1ZDE2MDIxOTM5MWI4NWEzM2YzM2U3N2FkYjg=
9
+ MGFhOTQ4ODM2ZWExYmI0ZWVmNWU4MTUxZDhiZDkwN2U1MDI3Mjk1MmMwZjcx
10
+ YWU1MWJkZTBjZDcxODRhYjVhZWUyNzk0M2RjYWVkYmNkZGJlYTdhMzNlYjEz
11
+ NGVkYTAyZDI2ZDdhYjJjY2NkNGNkMjUyNTZlYmVjOTZhOGFhNDA=
12
12
  data.tar.gz: !binary |-
13
- NGRjNmI0N2Y3MDU2NTRiMzMwZWZlM2ZlYmM3MmEwZTIzNDE0ZjA0ZjBmYjRj
14
- OWE1OTRiNTgyY2YzNGI5NzNkMzFjYmFjYTI5ODg0ZjkzYzg4NWNiNzQyODll
15
- NTc0YjY0OTk3MGYwODhhZGI4MjkyMjM0Y2M0NDNjNzM1MjhlMTM=
13
+ YWI0OGRlOTAzODZkMzU1ZjI4NjIyYTM5NDkwNjQwMzRmMWFhMWEwNWRmZDA2
14
+ NmYxODU4OTY1YWFkYzkzMmUzZjhlY2Q4OWRmYmE3MTc0NTU0OWE3M2IzMDUy
15
+ NDljNTc0NjAyYjdkZWU2OTdjMmFmNzk1ODQwNjRkY2Q2MWRkOWI=
data/README.md CHANGED
@@ -20,6 +20,15 @@ Windows PC doesn't come with Ruby pre-installed, so you can follow [this Ruby in
20
20
 
21
21
  After you installed Ruby, type in the command above on `cmd` (command prompt).
22
22
 
23
+ BROWSER SUPPORT
24
+ ------------------
25
+
26
+ All modern browsers:
27
+
28
+ - Chrome, Firefox, Safari, Opera
29
+ - Android 4.0 and above
30
+ - IE 9 and above
31
+
23
32
  GRID SYSTEM
24
33
  ==================
25
34
  .row
@@ -258,7 +267,7 @@ Generate basic template for your project. Run this command inside your project d
258
267
 
259
268
  `edge create html`
260
269
 
261
- 2. Static PHP (under construction)
270
+ 2. Static PHP
262
271
 
263
272
  `edge create php`
264
273
 
@@ -114,7 +114,6 @@ var _ = self.Prism = {
114
114
  },
115
115
 
116
116
  highlightAll: function(async, callback) {
117
- //var elements = document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');
118
117
  var elements = document.querySelectorAll("code[data-lang], [data-lang] code");
119
118
 
120
119
  for (var i=0, element; element = elements[i++];) {
@@ -0,0 +1,15 @@
1
+ ;(function ($, window, document, undefined) {
2
+ "use strict";
3
+
4
+ Edge.libs.ie8 = {
5
+ name : "name",
6
+ version : "1.0",
7
+ settings : {
8
+
9
+ },
10
+
11
+ init: function( scope, method, options ) {
12
+
13
+ },
14
+ }
15
+ }(jQuery, this, this.document) );
data/assets/js/edge.js CHANGED
@@ -1,233 +1,233 @@
1
1
  /*
2
- EDGE LIBRARY
3
- Based on Foundation 4 by ZURB
2
+ EDGE LIBRARY
3
+ Based on Foundation 4 by ZURB
4
4
  */
5
5
  var Edge = {};
6
6
  var Foundation = {};
7
7
 
8
8
  (function () {
9
- // Browser Compatibility
10
- if (!Array.prototype.filter) {
11
- Array.prototype.filter = function(fun /*, thisp */) {
12
- "use strict";
13
-
14
- if (this == null) {
15
- throw new TypeError();
16
- }
17
-
18
- var t = Object(this),
19
- len = t.length >>> 0;
20
- if (typeof fun != "function") {
21
- try {
22
- throw new TypeError();
23
- } catch (e) {
24
- return;
25
- }
26
- }
27
-
28
- var res = [],
29
- thisp = arguments[1];
30
- for (var i = 0; i < len; i++) {
31
- if (i in t) {
32
- var val = t[i]; // in case `fun` mutates this
33
- if (fun && fun.call(thisp, val, i, t)) {
34
- res.push(val);
35
- }
36
- }
37
- }
38
-
39
- return res;
40
- };
41
-
42
- if (!Function.prototype.bind) {
43
- Function.prototype.bind = function (oThis) {
44
- if (typeof this !== "function") {
45
- // closest thing possible to the ECMAScript 5 internal IsCallable function
46
- throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
47
- }
48
-
49
- var aArgs = Array.prototype.slice.call(arguments, 1),
50
- fToBind = this,
51
- fNOP = function () {},
52
- fBound = function () {
53
- return fToBind.apply(this instanceof fNOP && oThis
54
- ? this
55
- : oThis,
56
- aArgs.concat(Array.prototype.slice.call(arguments)));
57
- };
58
-
59
- fNOP.prototype = this.prototype;
60
- fBound.prototype = new fNOP();
61
-
62
- return fBound;
63
- };
64
- }
65
- }
9
+ // Browser Compatibility
10
+ if (!Array.prototype.filter) {
11
+ Array.prototype.filter = function(fun /*, thisp */) {
12
+ "use strict";
13
+
14
+ if (this == null) {
15
+ throw new TypeError();
16
+ }
17
+
18
+ var t = Object(this),
19
+ len = t.length >>> 0;
20
+ if (typeof fun != "function") {
21
+ try {
22
+ throw new TypeError();
23
+ } catch (e) {
24
+ return;
25
+ }
26
+ }
27
+
28
+ var res = [],
29
+ thisp = arguments[1];
30
+ for (var i = 0; i < len; i++) {
31
+ if (i in t) {
32
+ var val = t[i]; // in case `fun` mutates this
33
+ if (fun && fun.call(thisp, val, i, t)) {
34
+ res.push(val);
35
+ }
36
+ }
37
+ }
38
+
39
+ return res;
40
+ };
41
+
42
+ if (!Function.prototype.bind) {
43
+ Function.prototype.bind = function (oThis) {
44
+ if (typeof this !== "function") {
45
+ // closest thing possible to the ECMAScript 5 internal IsCallable function
46
+ throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
47
+ }
48
+
49
+ var aArgs = Array.prototype.slice.call(arguments, 1),
50
+ fToBind = this,
51
+ fNOP = function () {},
52
+ fBound = function () {
53
+ return fToBind.apply(this instanceof fNOP && oThis
54
+ ? this
55
+ : oThis,
56
+ aArgs.concat(Array.prototype.slice.call(arguments)));
57
+ };
58
+
59
+ fNOP.prototype = this.prototype;
60
+ fBound.prototype = new fNOP();
61
+
62
+ return fBound;
63
+ };
64
+ }
65
+ }
66
66
  }() );
67
67
 
68
68
  ;(function (window, document, undefined) {
69
- "use strict";
70
-
71
- Edge = {
72
- name : "Edge",
73
- version : "1.0",
74
- libs : {},
75
-
76
- init: function( scope, libraries, method, options, response, /* internal */ nc ) {
77
- var library_arr,
78
- args = [scope, method, options, response],
79
- responses = [],
80
- nc = nc || false;
81
-
82
- // Disable library error catching,
83
- // used for development only
84
- if (nc) this.nc = nc;
85
-
86
- // Set edge global scope
87
- this.scope = scope || this.scope;
88
-
89
- // If calling specific library
90
- if (libraries && typeof libraries === "string") {
91
- // If calling `off`
92
- if (/off/i.test(libraries) ) {
93
- return this.off();
94
- }
95
-
96
- library_arr = libraries.split(' ');
97
-
98
- // If more than 0
99
- if (library_arr.length) {
100
- for (var i = 0, len = library_arr.length; i < len; i++) {
101
- responses.push(this.init_lib(library_arr[i], args) );
102
- }
103
- }
104
- } else {
105
- for (var lib in this.libs) {
106
- responses.push(this.init_lib(lib, args) );
107
- }
108
- }
109
- // If first argument is callback, add to args
110
- if (typeof libraries === "function") {
111
- args.unshift(libraries);
112
- }
113
-
114
- return this.response_obj(responses, args);
115
- },
116
-
117
- response_obj: function( response_arr, args ) {
118
- for (var callback in args) {
119
- if (typeof args[callback] === "function") {
120
- return args[callback]({
121
- errors: response_arr.filter(function (s) {
122
- if (typeof s === "string") return s;
123
- })
124
- });
125
- }
126
- }
127
- console.log(response_arr);
128
- return response_arr;
129
- },
130
-
131
- init_lib: function( lib, args ) {
132
- return this.trap(function() {
133
- if (this.libs.hasOwnProperty(lib) ) {
134
- this.patch(this.libs[lib] );
135
- return this.libs[lib].init.apply(this.libs[lib], args);
136
- }
137
- }.bind(this), lib);
138
- },
139
-
140
- // Error Checking
141
- trap: function( fun, lib ) {
142
- if (!this.nc) {
143
- try {
144
- return fun();
145
- } catch (e) {
146
- return this.error({
147
- name : lib,
148
- message : "could not be initialized",
149
- more : e.name + ' ' + e.message,
150
- });
151
- }
152
- }
153
- return fun();
154
- },
155
-
156
- patch: function( lib ) {
157
- lib.outerHeight = function (el, bool) {
158
- if (typeof bool !== "undefined") {
159
- return el.outerHeight(bool);
160
- }
161
- return el.outerHeight();
162
- };
163
-
164
- lib.outerWidth = function (el) {
165
- if (typeof bool !== "undefined") {
166
- return el.outerWidth(bool);
167
- }
168
- return el.outerWidth();
169
- };
170
- },
171
-
172
- inherit: function( scope, methods ) {
173
- console.log("inherit");
174
- var methods_arr = methods.split(" ");
175
-
176
- for (var i = methods_arr.length - 1; i >= 0; i--) {
177
- if (this.lib_methods.hasOwnProperty(methods_arr[i]) ) {
178
- this.libs[scope.name][methods_arr[i] ] = this.lib_methods[methods_arr[i] ];
179
- }
180
- }
181
- },
182
-
183
- // Inherited methods in library
184
- lib_methods: {
185
- delay: function ( fun, delay ) {
186
- return setTimeout(fun, delay);
187
- },
188
- scrollTo: function ( el, to, duration ) {
189
- if (duration < 0) return;
190
- var difference = to - $(window).scrollTop();
191
- var perTick = difference / duration * 10;
192
-
193
- this.scrollToTimerCache = setTimeout(function() {
194
- if (!isNaN(parseInt(perTick, 10) ) ) {
195
- window.scrollTo(0, $(window).scrollTop() + perTick);
196
- this.scrollTo(el, to, duration - 10);
197
- }
198
- }.bind(this), 10);
199
- },
200
-
201
- // Test for empty object or array
202
- empty : function (obj) {
203
- if (obj.length && obj.length > 0) { return false; }
204
- if (obj.length && obj.length === 0) { return true; }
205
- for (var key in obj) {
206
- if (hasOwnProperty.call(obj, key) ) { return false; }
207
- }
208
- return true;
209
- },
210
- },
211
-
212
- error: function( error ) {
213
- return error.name + " " + error.message + "; " + error.more;
214
- },
215
-
216
- off: function() {
217
- $(this.scope).off(".edge");
218
- $(window).off(".edge");
219
- return true;
220
- },
221
- };
222
-
223
- Foundation = Edge;
224
-
225
- // JQuery prototype, allow `$().edge()` call
226
- $.fn.edge = function () {
227
- var args = Array.prototype.slice.call(arguments, 0);
228
- return this.each(function () {
229
- Edge.init.apply(Edge, [this].concat(args) );
230
- return this;
231
- });
232
- };
69
+ "use strict";
70
+
71
+ Edge = {
72
+ name : "Edge",
73
+ version : "1.0",
74
+ libs : {},
75
+
76
+ init: function( scope, libraries, method, options, response, /* internal */ nc ) {
77
+ var library_arr,
78
+ args = [scope, method, options, response],
79
+ responses = [],
80
+ nc = nc || false;
81
+
82
+ // Disable library error catching,
83
+ // used for development only
84
+ if (nc) this.nc = nc;
85
+
86
+ // Set edge global scope
87
+ this.scope = scope || this.scope;
88
+
89
+ // If calling specific library
90
+ if (libraries && typeof libraries === "string") {
91
+ // If calling `off`
92
+ if (/off/i.test(libraries) ) {
93
+ return this.off();
94
+ }
95
+
96
+ library_arr = libraries.split(' ');
97
+
98
+ // If more than 0
99
+ if (library_arr.length) {
100
+ for (var i = 0, len = library_arr.length; i < len; i++) {
101
+ responses.push(this.init_lib(library_arr[i], args) );
102
+ }
103
+ }
104
+ } else {
105
+ for (var lib in this.libs) {
106
+ responses.push(this.init_lib(lib, args) );
107
+ }
108
+ }
109
+ // If first argument is callback, add to args
110
+ if (typeof libraries === "function") {
111
+ args.unshift(libraries);
112
+ }
113
+
114
+ return this.response_obj(responses, args);
115
+ },
116
+
117
+ response_obj: function( response_arr, args ) {
118
+ for (var callback in args) {
119
+ if (typeof args[callback] === "function") {
120
+ return args[callback]({
121
+ errors: response_arr.filter(function (s) {
122
+ if (typeof s === "string") return s;
123
+ })
124
+ });
125
+ }
126
+ }
127
+ console.log(response_arr);
128
+ return response_arr;
129
+ },
130
+
131
+ init_lib: function( lib, args ) {
132
+ return this.trap(function() {
133
+ if (this.libs.hasOwnProperty(lib) ) {
134
+ this.patch(this.libs[lib] );
135
+ return this.libs[lib].init.apply(this.libs[lib], args);
136
+ }
137
+ }.bind(this), lib);
138
+ },
139
+
140
+ // Error Checking
141
+ trap: function( fun, lib ) {
142
+ if (!this.nc) {
143
+ try {
144
+ return fun();
145
+ } catch (e) {
146
+ return this.error({
147
+ name : lib,
148
+ message : "could not be initialized",
149
+ more : e.name + ' ' + e.message,
150
+ });
151
+ }
152
+ }
153
+ return fun();
154
+ },
155
+
156
+ patch: function( lib ) {
157
+ lib.outerHeight = function (el, bool) {
158
+ if (typeof bool !== "undefined") {
159
+ return el.outerHeight(bool);
160
+ }
161
+ return el.outerHeight();
162
+ };
163
+
164
+ lib.outerWidth = function (el) {
165
+ if (typeof bool !== "undefined") {
166
+ return el.outerWidth(bool);
167
+ }
168
+ return el.outerWidth();
169
+ };
170
+ },
171
+
172
+ inherit: function( scope, methods ) {
173
+ console.log("inherit");
174
+ var methods_arr = methods.split(" ");
175
+
176
+ for (var i = methods_arr.length - 1; i >= 0; i--) {
177
+ if (this.lib_methods.hasOwnProperty(methods_arr[i]) ) {
178
+ this.libs[scope.name][methods_arr[i] ] = this.lib_methods[methods_arr[i] ];
179
+ }
180
+ }
181
+ },
182
+
183
+ // Inherited methods in library
184
+ lib_methods: {
185
+ delay: function ( fun, delay ) {
186
+ return setTimeout(fun, delay);
187
+ },
188
+ scrollTo: function ( el, to, duration ) {
189
+ if (duration < 0) return;
190
+ var difference = to - $(window).scrollTop();
191
+ var perTick = difference / duration * 10;
192
+
193
+ this.scrollToTimerCache = setTimeout(function() {
194
+ if (!isNaN(parseInt(perTick, 10) ) ) {
195
+ window.scrollTo(0, $(window).scrollTop() + perTick);
196
+ this.scrollTo(el, to, duration - 10);
197
+ }
198
+ }.bind(this), 10);
199
+ },
200
+
201
+ // Test for empty object or array
202
+ empty : function (obj) {
203
+ if (obj.length && obj.length > 0) { return false; }
204
+ if (obj.length && obj.length === 0) { return true; }
205
+ for (var key in obj) {
206
+ if (hasOwnProperty.call(obj, key) ) { return false; }
207
+ }
208
+ return true;
209
+ },
210
+ },
211
+
212
+ error: function( error ) {
213
+ return error.name + " " + error.message + "; " + error.more;
214
+ },
215
+
216
+ off: function() {
217
+ $(this.scope).off(".edge");
218
+ $(window).off(".edge");
219
+ return true;
220
+ },
221
+ };
222
+
223
+ Foundation = Edge;
224
+
225
+ // JQuery prototype, allow `$().edge()` call
226
+ $.fn.edge = function () {
227
+ var args = Array.prototype.slice.call(arguments, 0);
228
+ return this.each(function () {
229
+ Edge.init.apply(Edge, [this].concat(args) );
230
+ return this;
231
+ });
232
+ };
233
233
  }(this, this.document) );