page_engine 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/assets/images/markitup/icons/bold.png +0 -0
- data/vendor/assets/images/markitup/icons/clean.png +0 -0
- data/vendor/assets/images/markitup/icons/code.png +0 -0
- data/vendor/assets/images/markitup/icons/css.png +0 -0
- data/vendor/assets/images/markitup/icons/h1.png +0 -0
- data/vendor/assets/images/markitup/icons/h2.png +0 -0
- data/vendor/assets/images/markitup/icons/h3.png +0 -0
- data/vendor/assets/images/markitup/icons/h4.png +0 -0
- data/vendor/assets/images/markitup/icons/h5.png +0 -0
- data/vendor/assets/images/markitup/icons/h6.png +0 -0
- data/vendor/assets/images/markitup/icons/image.png +0 -0
- data/vendor/assets/images/markitup/icons/italic.png +0 -0
- data/vendor/assets/images/markitup/icons/link.png +0 -0
- data/vendor/assets/images/markitup/icons/list-bullet.png +0 -0
- data/vendor/assets/images/markitup/icons/list-item.png +0 -0
- data/vendor/assets/images/markitup/icons/list-numeric.png +0 -0
- data/vendor/assets/images/markitup/icons/paragraph.png +0 -0
- data/vendor/assets/images/markitup/icons/picture.png +0 -0
- data/vendor/assets/images/markitup/icons/preview.png +0 -0
- data/vendor/assets/images/markitup/icons/quotes.png +0 -0
- data/vendor/assets/images/markitup/icons/stroke.png +0 -0
- data/vendor/assets/images/markitup/icons/table.png +0 -0
- data/vendor/assets/images/markitup/icons/tag.png +0 -0
- data/vendor/assets/images/markitup/icons/text_align_center.png +0 -0
- data/vendor/assets/images/markitup/icons/text_align_justify.png +0 -0
- data/vendor/assets/images/markitup/icons/text_align_left.png +0 -0
- data/vendor/assets/images/markitup/icons/text_align_right.png +0 -0
- data/vendor/assets/images/markitup/icons/text_indent.png +0 -0
- data/vendor/assets/images/markitup/icons/text_letterspacing.png +0 -0
- data/vendor/assets/images/markitup/icons/text_linespacing.png +0 -0
- data/vendor/assets/images/markitup/icons/text_lowercase.png +0 -0
- data/vendor/assets/images/markitup/icons/text_padding_bottom.png +0 -0
- data/vendor/assets/images/markitup/icons/text_padding_left.png +0 -0
- data/vendor/assets/images/markitup/icons/text_padding_right.png +0 -0
- data/vendor/assets/images/markitup/icons/text_padding_top.png +0 -0
- data/vendor/assets/images/markitup/icons/text_uppercase.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-container.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-html.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-json.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-markdown.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-textile.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-wiki.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor-xml.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/bg-editor.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/handle.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/menu.png +0 -0
- data/vendor/assets/images/markitup/skins/markitup/submenu.png +0 -0
- data/vendor/assets/images/markitup/skins/simple/handle.png +0 -0
- data/vendor/assets/images/markitup/skins/simple/menu.png +0 -0
- data/vendor/assets/images/markitup/skins/simple/submenu.png +0 -0
- data/vendor/assets/javascripts/jquery-ui-1.8.15.custom.min.js +146 -0
- data/vendor/assets/javascripts/jquery.markitup.js +574 -0
- data/vendor/assets/javascripts/jquery.ui.nestedSortable.js +356 -0
- data/vendor/assets/javascripts/markitup/templates/preview.css +5 -0
- data/vendor/assets/javascripts/markitup/templates/preview.html +11 -0
- metadata +85 -15
@@ -0,0 +1,356 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery UI Nested Sortable
|
3
|
+
* v 1.3.4 / 28 apr 2011
|
4
|
+
* http://mjsarfatti.com/sandbox/nestedSortable
|
5
|
+
*
|
6
|
+
* Depends:
|
7
|
+
* jquery.ui.sortable.js 1.8+
|
8
|
+
*
|
9
|
+
* License CC BY-SA 3.0
|
10
|
+
* Copyright 2010-2011, Manuele J Sarfatti
|
11
|
+
*/
|
12
|
+
|
13
|
+
(function($) {
|
14
|
+
|
15
|
+
$.widget("ui.nestedSortable", $.extend({}, $.ui.sortable.prototype, {
|
16
|
+
|
17
|
+
options: {
|
18
|
+
tabSize: 20,
|
19
|
+
disableNesting: 'ui-nestedSortable-no-nesting',
|
20
|
+
errorClass: 'ui-nestedSortable-error',
|
21
|
+
listType: 'ol',
|
22
|
+
maxLevels: 0,
|
23
|
+
noJumpFix: 0
|
24
|
+
},
|
25
|
+
|
26
|
+
_create: function(){
|
27
|
+
if (this.noJumpFix == false)
|
28
|
+
this.element.height(this.element.height());
|
29
|
+
this.element.data('sortable', this.element.data('nestedSortable'));
|
30
|
+
return $.ui.sortable.prototype._create.apply(this, arguments);
|
31
|
+
},
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
_mouseDrag: function(event) {
|
36
|
+
|
37
|
+
//Compute the helpers position
|
38
|
+
this.position = this._generatePosition(event);
|
39
|
+
this.positionAbs = this._convertPositionTo("absolute");
|
40
|
+
|
41
|
+
if (!this.lastPositionAbs) {
|
42
|
+
this.lastPositionAbs = this.positionAbs;
|
43
|
+
}
|
44
|
+
|
45
|
+
//Do scrolling
|
46
|
+
if(this.options.scroll) {
|
47
|
+
var o = this.options, scrolled = false;
|
48
|
+
if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') {
|
49
|
+
|
50
|
+
if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)
|
51
|
+
this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
|
52
|
+
else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity)
|
53
|
+
this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
|
54
|
+
|
55
|
+
if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
|
56
|
+
this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
|
57
|
+
else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity)
|
58
|
+
this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
|
59
|
+
|
60
|
+
} else {
|
61
|
+
|
62
|
+
if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
|
63
|
+
scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
|
64
|
+
else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
|
65
|
+
scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
|
66
|
+
|
67
|
+
if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
|
68
|
+
scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
|
69
|
+
else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
|
70
|
+
scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
|
71
|
+
|
72
|
+
}
|
73
|
+
|
74
|
+
if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)
|
75
|
+
$.ui.ddmanager.prepareOffsets(this, event);
|
76
|
+
}
|
77
|
+
|
78
|
+
//Regenerate the absolute position used for position checks
|
79
|
+
this.positionAbs = this._convertPositionTo("absolute");
|
80
|
+
|
81
|
+
//Set the helper position
|
82
|
+
if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
|
83
|
+
if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
|
84
|
+
|
85
|
+
//Rearrange
|
86
|
+
for (var i = this.items.length - 1; i >= 0; i--) {
|
87
|
+
|
88
|
+
//Cache variables and intersection, continue if no intersection
|
89
|
+
var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item);
|
90
|
+
if (!intersection) continue;
|
91
|
+
|
92
|
+
if(itemElement != this.currentItem[0] //cannot intersect with itself
|
93
|
+
&& this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before
|
94
|
+
&& !$.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked
|
95
|
+
&& (this.options.type == 'semi-dynamic' ? !$.contains(this.element[0], itemElement) : true)
|
96
|
+
//&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container
|
97
|
+
) {
|
98
|
+
|
99
|
+
this.direction = intersection == 1 ? "down" : "up";
|
100
|
+
|
101
|
+
if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) {
|
102
|
+
this._rearrange(event, item);
|
103
|
+
} else {
|
104
|
+
break;
|
105
|
+
}
|
106
|
+
|
107
|
+
// Clear emtpy ul's/ol's
|
108
|
+
this._clearEmpty(itemElement);
|
109
|
+
|
110
|
+
this._trigger("change", event, this._uiHash());
|
111
|
+
break;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
var parentItem = (this.placeholder[0].parentNode.parentNode && $(this.placeholder[0].parentNode.parentNode).closest('.ui-sortable').length) ? $(this.placeholder[0].parentNode.parentNode) : null;
|
116
|
+
var level = this._getLevel(this.placeholder);
|
117
|
+
var childLevels = this._getChildLevels(this.helper);
|
118
|
+
var previousItem = this.placeholder[0].previousSibling ? $(this.placeholder[0].previousSibling) : null;
|
119
|
+
if (previousItem != null) {
|
120
|
+
while (previousItem[0].nodeName.toLowerCase() != 'li' || previousItem[0] == this.currentItem[0]) {
|
121
|
+
if (previousItem[0].previousSibling) {
|
122
|
+
previousItem = $(previousItem[0].previousSibling);
|
123
|
+
} else {
|
124
|
+
previousItem = null;
|
125
|
+
break;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
newList = document.createElement(o.listType);
|
131
|
+
|
132
|
+
this.beyondMaxLevels = 0;
|
133
|
+
|
134
|
+
// If the item is moved to the left, send it to its parent level
|
135
|
+
if (parentItem != null && this.positionAbs.left < parentItem.offset().left) {
|
136
|
+
parentItem.after(this.placeholder[0]);
|
137
|
+
this._clearEmpty(parentItem[0]);
|
138
|
+
this._trigger("change", event, this._uiHash());
|
139
|
+
}
|
140
|
+
// If the item is below another one and is moved to the right, make it a children of it
|
141
|
+
else if (previousItem != null && this.positionAbs.left > previousItem.offset().left + o.tabSize) {
|
142
|
+
this._isAllowed(previousItem, level+childLevels+1);
|
143
|
+
if (!previousItem.children(o.listType).length) {
|
144
|
+
previousItem[0].appendChild(newList);
|
145
|
+
}
|
146
|
+
previousItem.children(o.listType)[0].appendChild(this.placeholder[0]);
|
147
|
+
this._trigger("change", event, this._uiHash());
|
148
|
+
}
|
149
|
+
else {
|
150
|
+
this._isAllowed(parentItem, level+childLevels);
|
151
|
+
}
|
152
|
+
|
153
|
+
//Post events to containers
|
154
|
+
this._contactContainers(event);
|
155
|
+
|
156
|
+
//Interconnect with droppables
|
157
|
+
if($.ui.ddmanager) $.ui.ddmanager.drag(this, event);
|
158
|
+
|
159
|
+
//Call callbacks
|
160
|
+
this._trigger('sort', event, this._uiHash());
|
161
|
+
|
162
|
+
this.lastPositionAbs = this.positionAbs;
|
163
|
+
return false;
|
164
|
+
|
165
|
+
},
|
166
|
+
|
167
|
+
_mouseStop: function(event, noPropagation) {
|
168
|
+
|
169
|
+
// If the item is in a position not allowed, send it back
|
170
|
+
if (this.beyondMaxLevels) {
|
171
|
+
var parent = this.placeholder.parent().closest(this.options.items);
|
172
|
+
|
173
|
+
for (var i = this.beyondMaxLevels - 1; i > 0; i--) {
|
174
|
+
parent = parent.parent().closest(this.options.items);
|
175
|
+
}
|
176
|
+
|
177
|
+
this.placeholder.removeClass(this.options.errorClass);
|
178
|
+
parent.after(this.placeholder);
|
179
|
+
this._trigger("change", event, this._uiHash());
|
180
|
+
}
|
181
|
+
|
182
|
+
$.ui.sortable.prototype._mouseStop.apply(this, arguments);
|
183
|
+
|
184
|
+
},
|
185
|
+
|
186
|
+
serialize: function(o) {
|
187
|
+
|
188
|
+
var items = this._getItemsAsjQuery(o && o.connected);
|
189
|
+
var str = []; o = o || {};
|
190
|
+
|
191
|
+
$(items).each(function() {
|
192
|
+
var res = ($(o.item || this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
|
193
|
+
var pid = ($(o.item || this).parent(o.listType).parent('li').attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
|
194
|
+
if(res) str.push((o.key || res[1]+'['+(o.key && o.expression ? res[1] : res[2])+']')+'='+(pid ? (o.key && o.expression ? pid[1] : pid[2]) : 'root'));
|
195
|
+
});
|
196
|
+
|
197
|
+
if(!str.length && o.key) {
|
198
|
+
str.push(o.key + '=');
|
199
|
+
}
|
200
|
+
|
201
|
+
return str.join('&');
|
202
|
+
|
203
|
+
},
|
204
|
+
|
205
|
+
toHierarchy: function(o) {
|
206
|
+
|
207
|
+
o = o || {};
|
208
|
+
var sDepth = o.startDepthCount || 0;
|
209
|
+
var ret = [];
|
210
|
+
|
211
|
+
$(this.element).children('li').each(function() {
|
212
|
+
var level = _recursiveItems($(this));
|
213
|
+
ret.push(level);
|
214
|
+
});
|
215
|
+
|
216
|
+
return ret;
|
217
|
+
|
218
|
+
function _recursiveItems(li) {
|
219
|
+
var id = ($(li).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
|
220
|
+
if (id != null) {
|
221
|
+
var item = {"id" : id[2]};
|
222
|
+
if ($(li).children(o.listType).children('li').length > 0) {
|
223
|
+
item.children = [];
|
224
|
+
$(li).children(o.listType).children('li').each(function () {
|
225
|
+
var level = _recursiveItems($(this));
|
226
|
+
item.children.push(level);
|
227
|
+
});
|
228
|
+
}
|
229
|
+
return item;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
},
|
233
|
+
|
234
|
+
toArray: function(o) {
|
235
|
+
|
236
|
+
o = o || {};
|
237
|
+
var sDepth = o.startDepthCount || 0;
|
238
|
+
var ret = [];
|
239
|
+
var left = 2;
|
240
|
+
|
241
|
+
ret.push({"item_id": 'root', "parent_id": 'none', "depth": sDepth, "left": '1', "right": ($('li', this.element).length + 1) * 2});
|
242
|
+
|
243
|
+
$(this.element).children('li').each(function () {
|
244
|
+
left = _recursiveArray(this, sDepth + 1, left);
|
245
|
+
});
|
246
|
+
|
247
|
+
function _sortByLeft(a,b) {
|
248
|
+
return a['left'] - b['left'];
|
249
|
+
}
|
250
|
+
ret = ret.sort(_sortByLeft);
|
251
|
+
|
252
|
+
return ret;
|
253
|
+
|
254
|
+
function _recursiveArray(item, depth, left) {
|
255
|
+
|
256
|
+
right = left + 1;
|
257
|
+
|
258
|
+
if ($(item).children(o.listType).children('li').length > 0) {
|
259
|
+
depth ++;
|
260
|
+
$(item).children(o.listType).children('li').each(function () {
|
261
|
+
right = _recursiveArray($(this), depth, right);
|
262
|
+
});
|
263
|
+
depth --;
|
264
|
+
}
|
265
|
+
|
266
|
+
id = ($(item).attr(o.attribute || 'id')).match(o.expression || (/(.+)[-=_](.+)/));
|
267
|
+
|
268
|
+
if (depth === sDepth + 1) pid = 'root';
|
269
|
+
else {
|
270
|
+
parentItem = ($(item).parent(o.listType).parent('li').attr('id')).match(o.expression || (/(.+)[-=_](.+)/));
|
271
|
+
pid = parentItem[2];
|
272
|
+
}
|
273
|
+
|
274
|
+
if (id != null) {
|
275
|
+
ret.push({"item_id": id[2], "parent_id": pid, "depth": depth, "left": left, "right": right});
|
276
|
+
}
|
277
|
+
|
278
|
+
return left = right + 1;
|
279
|
+
}
|
280
|
+
|
281
|
+
},
|
282
|
+
|
283
|
+
_clear: function(event, noPropagation) {
|
284
|
+
|
285
|
+
$.ui.sortable.prototype._clear.apply(this, arguments);
|
286
|
+
|
287
|
+
// Clean last empty ul/ol
|
288
|
+
for (var i = this.items.length - 1; i >= 0; i--) {
|
289
|
+
var item = this.items[i].item[0];
|
290
|
+
this._clearEmpty(item);
|
291
|
+
}
|
292
|
+
return true;
|
293
|
+
|
294
|
+
},
|
295
|
+
|
296
|
+
_clearEmpty: function(item) {
|
297
|
+
|
298
|
+
if (item.children[1] && item.children[1].children.length == 0) {
|
299
|
+
item.removeChild(item.children[1]);
|
300
|
+
}
|
301
|
+
|
302
|
+
},
|
303
|
+
|
304
|
+
_getLevel: function(item) {
|
305
|
+
|
306
|
+
var level = 1;
|
307
|
+
|
308
|
+
if (this.options.listType) {
|
309
|
+
var list = item.closest(this.options.listType);
|
310
|
+
while (!list.is('.ui-sortable')/* && level < this.options.maxLevels*/) {
|
311
|
+
level++;
|
312
|
+
list = list.parent().closest(this.options.listType);
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
return level;
|
317
|
+
},
|
318
|
+
|
319
|
+
_getChildLevels: function(parent, depth) {
|
320
|
+
var self = this,
|
321
|
+
o = this.options,
|
322
|
+
result = 0;
|
323
|
+
depth = depth || 0;
|
324
|
+
|
325
|
+
$(parent).children(o.listType).children(o.items).each(function (index, child) {
|
326
|
+
result = Math.max(self._getChildLevels(child, depth + 1), result);
|
327
|
+
});
|
328
|
+
|
329
|
+
return depth ? result + 1 : result;
|
330
|
+
},
|
331
|
+
|
332
|
+
_isAllowed: function(parentItem, levels) {
|
333
|
+
var o = this.options
|
334
|
+
// Are we trying to nest under a no-nest or are we nesting too deep?
|
335
|
+
if (parentItem == null || !(parentItem.hasClass(o.disableNesting))) {
|
336
|
+
if (o.maxLevels < levels && o.maxLevels != 0) {
|
337
|
+
this.placeholder.addClass(o.errorClass);
|
338
|
+
this.beyondMaxLevels = levels - o.maxLevels;
|
339
|
+
} else {
|
340
|
+
this.placeholder.removeClass(o.errorClass);
|
341
|
+
this.beyondMaxLevels = 0;
|
342
|
+
}
|
343
|
+
} else {
|
344
|
+
this.placeholder.addClass(o.errorClass);
|
345
|
+
if (o.maxLevels < levels && o.maxLevels != 0) {
|
346
|
+
this.beyondMaxLevels = levels - o.maxLevels;
|
347
|
+
} else {
|
348
|
+
this.beyondMaxLevels = 1;
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
|
353
|
+
}));
|
354
|
+
|
355
|
+
$.ui.nestedSortable.prototype.options = $.extend({}, $.ui.sortable.prototype.options, $.ui.nestedSortable.prototype.options);
|
356
|
+
})(jQuery);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<title>markItUp! preview template</title>
|
6
|
+
<link rel="stylesheet" type="text/css" href="/assets/markitup/templates/preview.css" />
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<!-- content -->
|
10
|
+
</body>
|
11
|
+
</html>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: page_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: simple_form
|
17
|
-
requirement: &
|
17
|
+
requirement: &72015030 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *72015030
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: RedCloth
|
28
|
-
requirement: &
|
28
|
+
requirement: &72014160 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *72014160
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: haml-rails
|
39
|
-
requirement: &
|
39
|
+
requirement: &72013540 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *72013540
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: awesome_nested_set
|
50
|
-
requirement: &
|
50
|
+
requirement: &72012640 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *72012640
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: BlueCloth
|
61
|
-
requirement: &
|
61
|
+
requirement: &72011800 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *72011800
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec-rails
|
72
|
-
requirement: &
|
72
|
+
requirement: &72011100 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *72011100
|
81
81
|
description: Extends a rails application with pages, allowing the generation of navigation,
|
82
82
|
breadcrumbs etc. Content can be currentl written in markdown, textile or plain html.
|
83
83
|
email: mark@fatdude.net
|
@@ -161,6 +161,76 @@ files:
|
|
161
161
|
- lib/page_engine/engine.rb
|
162
162
|
- lib/page_engine/helpers.rb
|
163
163
|
- lib/page_engine/defaults.rb
|
164
|
+
- vendor/assets/images/jquery-ui/ui-icons_454545_256x240.png
|
165
|
+
- vendor/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png
|
166
|
+
- vendor/assets/images/jquery-ui/ui-icons_222222_256x240.png
|
167
|
+
- vendor/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png
|
168
|
+
- vendor/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png
|
169
|
+
- vendor/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png
|
170
|
+
- vendor/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png
|
171
|
+
- vendor/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png
|
172
|
+
- vendor/assets/images/jquery-ui/ui-icons_888888_256x240.png
|
173
|
+
- vendor/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png
|
174
|
+
- vendor/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png
|
175
|
+
- vendor/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png
|
176
|
+
- vendor/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png
|
177
|
+
- vendor/assets/images/markitup/icons/h6.png
|
178
|
+
- vendor/assets/images/markitup/icons/image.png
|
179
|
+
- vendor/assets/images/markitup/icons/text_lowercase.png
|
180
|
+
- vendor/assets/images/markitup/icons/clean.png
|
181
|
+
- vendor/assets/images/markitup/icons/h2.png
|
182
|
+
- vendor/assets/images/markitup/icons/quotes.png
|
183
|
+
- vendor/assets/images/markitup/icons/h1.png
|
184
|
+
- vendor/assets/images/markitup/icons/text_uppercase.png
|
185
|
+
- vendor/assets/images/markitup/icons/picture.png
|
186
|
+
- vendor/assets/images/markitup/icons/code.png
|
187
|
+
- vendor/assets/images/markitup/icons/text_letterspacing.png
|
188
|
+
- vendor/assets/images/markitup/icons/css.png
|
189
|
+
- vendor/assets/images/markitup/icons/h3.png
|
190
|
+
- vendor/assets/images/markitup/icons/list-numeric.png
|
191
|
+
- vendor/assets/images/markitup/icons/tag.png
|
192
|
+
- vendor/assets/images/markitup/icons/text_padding_top.png
|
193
|
+
- vendor/assets/images/markitup/icons/paragraph.png
|
194
|
+
- vendor/assets/images/markitup/icons/text_align_right.png
|
195
|
+
- vendor/assets/images/markitup/icons/list-bullet.png
|
196
|
+
- vendor/assets/images/markitup/icons/text_padding_left.png
|
197
|
+
- vendor/assets/images/markitup/icons/table.png
|
198
|
+
- vendor/assets/images/markitup/icons/text_align_justify.png
|
199
|
+
- vendor/assets/images/markitup/icons/stroke.png
|
200
|
+
- vendor/assets/images/markitup/icons/preview.png
|
201
|
+
- vendor/assets/images/markitup/icons/text_align_left.png
|
202
|
+
- vendor/assets/images/markitup/icons/h4.png
|
203
|
+
- vendor/assets/images/markitup/icons/text_padding_bottom.png
|
204
|
+
- vendor/assets/images/markitup/icons/list-item.png
|
205
|
+
- vendor/assets/images/markitup/icons/text_padding_right.png
|
206
|
+
- vendor/assets/images/markitup/icons/text_align_center.png
|
207
|
+
- vendor/assets/images/markitup/icons/italic.png
|
208
|
+
- vendor/assets/images/markitup/icons/h5.png
|
209
|
+
- vendor/assets/images/markitup/icons/text_indent.png
|
210
|
+
- vendor/assets/images/markitup/icons/text_linespacing.png
|
211
|
+
- vendor/assets/images/markitup/icons/bold.png
|
212
|
+
- vendor/assets/images/markitup/icons/link.png
|
213
|
+
- vendor/assets/images/markitup/skins/simple/submenu.png
|
214
|
+
- vendor/assets/images/markitup/skins/simple/menu.png
|
215
|
+
- vendor/assets/images/markitup/skins/simple/handle.png
|
216
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-markdown.png
|
217
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-dotclear.png
|
218
|
+
- vendor/assets/images/markitup/skins/markitup/submenu.png
|
219
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor.png
|
220
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-textile.png
|
221
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-bbcode.png
|
222
|
+
- vendor/assets/images/markitup/skins/markitup/bg-container.png
|
223
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-xml.png
|
224
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-html.png
|
225
|
+
- vendor/assets/images/markitup/skins/markitup/menu.png
|
226
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-json.png
|
227
|
+
- vendor/assets/images/markitup/skins/markitup/bg-editor-wiki.png
|
228
|
+
- vendor/assets/images/markitup/skins/markitup/handle.png
|
229
|
+
- vendor/assets/javascripts/jquery-ui-1.8.15.custom.min.js
|
230
|
+
- vendor/assets/javascripts/jquery.markitup.js
|
231
|
+
- vendor/assets/javascripts/markitup/templates/preview.html
|
232
|
+
- vendor/assets/javascripts/markitup/templates/preview.css
|
233
|
+
- vendor/assets/javascripts/jquery.ui.nestedSortable.js
|
164
234
|
- MIT-LICENSE
|
165
235
|
- Rakefile
|
166
236
|
- README.markdown
|
@@ -238,7 +308,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
238
308
|
version: '0'
|
239
309
|
segments:
|
240
310
|
- 0
|
241
|
-
hash: -
|
311
|
+
hash: -449767377
|
242
312
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
313
|
none: false
|
244
314
|
requirements:
|
@@ -247,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
317
|
version: '0'
|
248
318
|
segments:
|
249
319
|
- 0
|
250
|
-
hash: -
|
320
|
+
hash: -449767377
|
251
321
|
requirements: []
|
252
322
|
rubyforge_project:
|
253
323
|
rubygems_version: 1.6.2
|