edge_framework 0.9.12 → 0.10.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 +8 -8
- data/README.md +10 -1
- data/assets/js/edge/edge.prism.js +0 -1
- data/assets/js/edge/edge.template.js +15 -0
- data/assets/js/edge.js +223 -223
- data/assets/js/edge5.js +567 -0
- data/assets/{test.html → kitchen-sink.html} +1 -2
- data/assets/sass/edge.scss +4 -4
- data/assets/sass/{for-test.scss → kitchen-sink.scss} +0 -0
- data/lib/edge/version.rb +2 -2
- data/template/base/.gitignore +8 -198
- data/template/base/assets/js/vendor/fastclick.min.js +9 -0
- data/template/base/config.rb +1 -4
- data/template/base/robots.txt +1 -4
- data/template/html/index.html +22 -18
- data/template/php/_footer.php +17 -0
- data/template/php/_header.php +24 -0
- data/template/php/index.php +3 -10
- data/template/rails/application.html.erb +7 -5
- data/template/wordpress/404.php +1 -5
- data/template/wordpress/footer.php +10 -8
- data/template/wordpress/functions.php +0 -15
- data/template/wordpress/header.php +19 -12
- metadata +9 -42
- data/assets/js-docs/jquery.min.js +0 -6
- data/assets/test2.html +0 -74
- data/readme-img/compass-edge-big.jpg +0 -0
- data/readme-img/compass-edge.jpg +0 -0
- data/readme-img/generator/assets/css/.keep +0 -0
- data/readme-img/generator/assets/css/app.css +0 -67
- data/readme-img/generator/assets/css/framework.css +0 -1015
- data/readme-img/generator/assets/files/.keep +0 -0
- data/readme-img/generator/assets/fonts/.keep +0 -0
- data/readme-img/generator/assets/img/favicon-big.png +0 -0
- data/readme-img/generator/assets/img/favicon.png +0 -0
- data/readme-img/generator/assets/img/ipad.svg +0 -19
- data/readme-img/generator/assets/img/iphone.svg +0 -22
- data/readme-img/generator/assets/js/app.js +0 -3
- data/readme-img/generator/assets/js/vendor/custom.modernizr.js +0 -4
- data/readme-img/generator/assets/js/vendor/jquery.min.js +0 -6
- data/readme-img/generator/assets/sass/_setting.scss +0 -107
- data/readme-img/generator/assets/sass/app.scss +0 -102
- data/readme-img/generator/assets/sass/framework.scss +0 -10
- data/readme-img/generator/content.html +0 -40
- data/readme-img/generator/index.html +0 -49
- data/readme-img/generator/robots.txt +0 -7
- data/readme-img/grid-centered.jpg +0 -0
- data/readme-img/grid-collapse.jpg +0 -0
- data/readme-img/grid-large-small.jpg +0 -0
- data/readme-img/grid-large.jpg +0 -0
- data/readme-img/grid-nesting.jpg +0 -0
- data/readme-img/grid-offset.jpg +0 -0
- data/readme-img/grid-ordering.jpg +0 -0
- data/readme-img/grid-tile.jpg +0 -0
- data/readme-img/logo.jpg +0 -0
- data/readme-img/rails-edge-big.jpg +0 -0
- data/readme-img/rails-edge.jpg +0 -0
- data/template/master/assets/sass/_setting.scss +0 -118
- data/template/php/partials/footer.php +0 -15
- data/template/php/partials/functions.php +0 -83
- data/template/php/partials/header.php +0 -22
- 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
|
-
|
|
4
|
+
MmNjMGJmNTY4MjNjNjkzMjdiN2I5ZGUyNjE2YjBjZDFiM2Q2ZmE4MQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZTMwYjE0ODgxYjA2NzljZjE0NDc2MjJjZmZmOTQxODAwYTdhMzE1NA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MGFhOTQ4ODM2ZWExYmI0ZWVmNWU4MTUxZDhiZDkwN2U1MDI3Mjk1MmMwZjcx
|
|
10
|
+
YWU1MWJkZTBjZDcxODRhYjVhZWUyNzk0M2RjYWVkYmNkZGJlYTdhMzNlYjEz
|
|
11
|
+
NGVkYTAyZDI2ZDdhYjJjY2NkNGNkMjUyNTZlYmVjOTZhOGFhNDA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
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++];) {
|
data/assets/js/edge.js
CHANGED
|
@@ -1,233 +1,233 @@
|
|
|
1
1
|
/*
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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) );
|