cedar 0.2.3.pre → 0.2.4.pre
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/lib/assets/javascripts/cedar.handlebars.js +11 -1
- data/lib/assets/stylesheets/cedar.scss +3 -119
- data/lib/assets/stylesheets/cedar_source.css +123 -0
- data/lib/cedar/version.rb +1 -1
- metadata +3 -9
- data/.gitignore +0 -1
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -17
- data/Rakefile +0 -2
- data/cedar.gemspec +0 -23
- data/lib/assets/javascripts/cedar.marionette.js +0 -25
- data/lib/assets/javascripts/cedarInit.js.erb +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 053f177a70a3eac7f6cd4a7a2078d428c984eb9d
|
|
4
|
+
data.tar.gz: 35cc270f62d73fb0cc826a3b8e1c0dd6bb6c5e5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f43f45836bd545b8625c719aec548979752a326e0746b76bfa9b8029d0a7be6a3e0df33dad8e848eb3735f515166496fe333752c5689b0825b23c8a9247d7c7
|
|
7
|
+
data.tar.gz: 279d832f1bdd09192fd6dc52d381756d3bfe72e742800e0d53a63b175029cec046a5382ba960c764c7126198ee2338d13f55bdbc605d82c6861ecdcf87d270bf
|
|
@@ -61,7 +61,17 @@ Handlebars.registerHelper('cedar', function(options) {
|
|
|
61
61
|
// If rendered element exists than insert the content
|
|
62
62
|
var renderedEl = document.getElementById(outputEl.id);
|
|
63
63
|
if (renderedEl !== null) {
|
|
64
|
-
|
|
64
|
+
var parentEl = renderedEl.parentNode;
|
|
65
|
+
var tempEl = document.createElement("div");
|
|
66
|
+
tempEl.innerHTML = output;
|
|
67
|
+
|
|
68
|
+
// Insert content node by node and then remove the existing element
|
|
69
|
+
var nodeList = tempEl.childNodes;
|
|
70
|
+
var nodeListLength = nodeList.length;
|
|
71
|
+
for(var i = 0; i < nodeListLength; i++) {
|
|
72
|
+
parentEl.insertBefore(nodeList[0], renderedEl);
|
|
73
|
+
}
|
|
74
|
+
parentEl.removeChild(renderedEl);
|
|
65
75
|
}
|
|
66
76
|
});
|
|
67
77
|
|
|
@@ -1,123 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* Styles particular to the CMS when in "edit-mode" while viewing a front-end page.
|
|
3
|
-
* @browsers ALL
|
|
4
|
-
**/
|
|
1
|
+
/* This file should be used for any Rails-specific Sass code */
|
|
5
2
|
|
|
6
|
-
.
|
|
7
|
-
position: relative !important;
|
|
8
|
-
display: inline-block !important;
|
|
9
|
-
min-width: 22px !important;
|
|
10
|
-
min-height: 22px !important;
|
|
11
|
-
vertical-align: middle;
|
|
12
|
-
font-size: inherit !important;
|
|
13
|
-
color: inherit !important;
|
|
14
|
-
background: inherit !important;
|
|
15
|
-
width: auto !important;
|
|
16
|
-
height: auto !important;
|
|
17
|
-
margin: 0 !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.cedar-cms-editable:before {
|
|
21
|
-
content: "";
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
border: 1px dotted #F65126 !important;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.cedar-cms-edit-tools {
|
|
32
|
-
font-family: Arial, sans-serif !important;
|
|
33
|
-
position: absolute !important;
|
|
34
|
-
top: 0 !important;
|
|
35
|
-
right: -18px !important;
|
|
36
|
-
display: block !important;
|
|
37
|
-
font-size: 10px !important;
|
|
38
|
-
line-height: 1.2 !important;
|
|
39
|
-
text-align: left !important;
|
|
40
|
-
float: none !important;
|
|
41
|
-
background: none !important;
|
|
42
|
-
margin: 0 !important;
|
|
43
|
-
height: 22px !important;
|
|
44
|
-
z-index: 9;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.cedar-cms-edit-tools a {
|
|
48
|
-
color: #F26521 !important;
|
|
49
|
-
text-decoration: none !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.cedar-cms-edit-tools a:hover {
|
|
53
|
-
color: #FA8A2D !important;
|
|
54
|
-
text-decoration: none !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.cedar-cms-edit-label {
|
|
58
|
-
color: #F26521 !important;
|
|
59
|
-
text-transform: uppercase;
|
|
60
|
-
font-size: 10px;
|
|
61
|
-
padding: 0 6px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.cedar-cms-edit-tools .cedar-cms-edit-icon,
|
|
65
|
-
.cedar-cms-edit-tools .cedar-cms-edit-icon:hover {
|
|
66
|
-
display: block;
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: 0;
|
|
69
|
-
right: 0;
|
|
70
|
-
height: 18px;
|
|
71
|
-
background-color: transparent !important;
|
|
72
|
-
padding: 0;
|
|
73
|
-
margin: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* 4 classes to display icons */
|
|
3
|
+
@import 'cedar_source.css';
|
|
77
4
|
|
|
78
|
-
.cedar-cms-edit-tools.spacer {
|
|
79
|
-
height: 20px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.cedar-cms-edit-tools.left-align .cedar-cms-edit-icon {
|
|
83
|
-
right: auto;
|
|
84
|
-
left: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Standalone icons */
|
|
88
5
|
.cedar-cms-icon {
|
|
89
|
-
|
|
90
|
-
height: 18px;
|
|
91
|
-
line-height: 18px;
|
|
92
|
-
display: inline-block;
|
|
93
|
-
vertical-align: middle;
|
|
94
|
-
background: transparent asset-url("cedar-display-tools-sprite.png") scroll no-repeat 0 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.cedar-cms-icon-right {
|
|
98
|
-
margin-left: 2px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
.cedar-cms-icon-edit {
|
|
103
|
-
background-position: -89px -20px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* Action Links */
|
|
107
|
-
.cedar-cms-global-actions {
|
|
108
|
-
position: absolute;
|
|
109
|
-
top: 0;
|
|
110
|
-
right: 0;
|
|
111
|
-
text-align: left !important;
|
|
112
|
-
}
|
|
113
|
-
.cedar-cms-global-action {
|
|
114
|
-
display: inline-block !important;
|
|
115
|
-
color: #F65126 !important;
|
|
116
|
-
background: #FFF !important;
|
|
117
|
-
line-height: 18px !important;
|
|
118
|
-
padding: 3px 4px 3px 3px !important;
|
|
119
|
-
text-decoration: none !important;
|
|
120
|
-
}
|
|
121
|
-
.cedar-cms-global-action * {
|
|
122
|
-
vertical-align: top;
|
|
6
|
+
background-image: asset-url("cedar-display-tools-sprite.png");
|
|
123
7
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Styles particular to the CMS when in "edit-mode" while viewing a front-end page.
|
|
3
|
+
* @browsers ALL
|
|
4
|
+
**/
|
|
5
|
+
|
|
6
|
+
.cedar-cms-editable {
|
|
7
|
+
position: relative !important;
|
|
8
|
+
display: inline-block !important;
|
|
9
|
+
min-width: 22px !important;
|
|
10
|
+
min-height: 22px !important;
|
|
11
|
+
vertical-align: top;
|
|
12
|
+
font-size: inherit !important;
|
|
13
|
+
color: inherit !important;
|
|
14
|
+
background: inherit !important;
|
|
15
|
+
width: auto !important;
|
|
16
|
+
height: auto !important;
|
|
17
|
+
margin: 0 !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cedar-cms-editable:before {
|
|
21
|
+
content: "";
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
border: 1px dotted #F65126 !important;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cedar-cms-edit-tools {
|
|
32
|
+
font-family: Arial, sans-serif !important;
|
|
33
|
+
position: absolute !important;
|
|
34
|
+
top: 0 !important;
|
|
35
|
+
right: -18px !important;
|
|
36
|
+
display: block !important;
|
|
37
|
+
font-size: 10px !important;
|
|
38
|
+
line-height: 1.2 !important;
|
|
39
|
+
text-align: left !important;
|
|
40
|
+
float: none !important;
|
|
41
|
+
background: none !important;
|
|
42
|
+
margin: 0 !important;
|
|
43
|
+
height: 22px !important;
|
|
44
|
+
z-index: 9;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cedar-cms-edit-tools a {
|
|
48
|
+
color: #F26521 !important;
|
|
49
|
+
text-decoration: none !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.cedar-cms-edit-tools a:hover {
|
|
53
|
+
color: #FA8A2D !important;
|
|
54
|
+
text-decoration: none !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cedar-cms-edit-label {
|
|
58
|
+
color: #F26521 !important;
|
|
59
|
+
text-transform: uppercase;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
padding: 0 6px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.cedar-cms-edit-tools .cedar-cms-edit-icon,
|
|
65
|
+
.cedar-cms-edit-tools .cedar-cms-edit-icon:hover {
|
|
66
|
+
display: block;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
height: 18px;
|
|
71
|
+
background-color: transparent !important;
|
|
72
|
+
padding: 0;
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* 4 classes to display icons */
|
|
77
|
+
|
|
78
|
+
.cedar-cms-edit-tools.spacer {
|
|
79
|
+
height: 20px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cedar-cms-edit-tools.left-align .cedar-cms-edit-icon {
|
|
83
|
+
right: auto;
|
|
84
|
+
left: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Standalone icons */
|
|
88
|
+
.cedar-cms-icon {
|
|
89
|
+
width: 18px;
|
|
90
|
+
height: 18px;
|
|
91
|
+
line-height: 18px;
|
|
92
|
+
display: inline-block;
|
|
93
|
+
vertical-align: middle;
|
|
94
|
+
background: transparent url("../img/cedar-display-tools-sprite.png") scroll no-repeat 0 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cedar-cms-icon-right {
|
|
98
|
+
margin-left: 2px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
.cedar-cms-icon-edit {
|
|
103
|
+
background-position: -89px -20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Action Links */
|
|
107
|
+
.cedar-cms-global-actions {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
text-align: left !important;
|
|
112
|
+
}
|
|
113
|
+
.cedar-cms-global-action {
|
|
114
|
+
display: inline-block !important;
|
|
115
|
+
color: #F65126 !important;
|
|
116
|
+
background: #FFF !important;
|
|
117
|
+
line-height: 18px !important;
|
|
118
|
+
padding: 3px 4px 3px 3px !important;
|
|
119
|
+
text-decoration: none !important;
|
|
120
|
+
}
|
|
121
|
+
.cedar-cms-global-action * {
|
|
122
|
+
vertical-align: top;
|
|
123
|
+
}
|
data/lib/cedar/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cedar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jed Murdock
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -45,19 +45,13 @@ executables: []
|
|
|
45
45
|
extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
|
-
- ".gitignore"
|
|
49
|
-
- Gemfile
|
|
50
|
-
- Gemfile.lock
|
|
51
48
|
- LICENSE.txt
|
|
52
49
|
- README.md
|
|
53
|
-
- Rakefile
|
|
54
|
-
- cedar.gemspec
|
|
55
50
|
- lib/assets/images/cedar-display-tools-sprite.png
|
|
56
51
|
- lib/assets/javascripts/cedar.handlebars.js
|
|
57
52
|
- lib/assets/javascripts/cedar.js
|
|
58
|
-
- lib/assets/javascripts/cedar.marionette.js
|
|
59
|
-
- lib/assets/javascripts/cedarInit.js.erb
|
|
60
53
|
- lib/assets/stylesheets/cedar.scss
|
|
54
|
+
- lib/assets/stylesheets/cedar_source.css
|
|
61
55
|
- lib/cedar.rb
|
|
62
56
|
- lib/cedar/version.rb
|
|
63
57
|
homepage: http://plyinteractive.com
|
data/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pkg/
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
data/Rakefile
DELETED
data/cedar.gemspec
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require 'cedar/version'
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "cedar"
|
|
8
|
-
spec.version = Cedar::VERSION
|
|
9
|
-
spec.authors = ["Jed Murdock"]
|
|
10
|
-
spec.email = ["jedmurdock@gmail.com"]
|
|
11
|
-
spec.summary = "The Cedar/Ply Asset Gem"
|
|
12
|
-
spec.description = "Pre-Release Cedar/Ply CaaS Asset Gem"
|
|
13
|
-
spec.homepage = "http://plyinteractive.com"
|
|
14
|
-
spec.license = "MIT"
|
|
15
|
-
|
|
16
|
-
spec.files = `git ls-files -z`.split("\x0")
|
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
-
spec.require_paths = ["lib"]
|
|
20
|
-
|
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.7"
|
|
22
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
23
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Marionette
|
|
2
|
-
var CedarMarionetteHeader = Backbone.Marionette.ItemView.extend({
|
|
3
|
-
template : function(serialized_model) {
|
|
4
|
-
return _.template('<h1><%= content %></h1>')(serialized_model);
|
|
5
|
-
}
|
|
6
|
-
});
|
|
7
|
-
var CedarMarionetteParagraph = Backbone.Marionette.ItemView.extend({
|
|
8
|
-
template : function(serialized_model) {
|
|
9
|
-
return _.template('<p><%= content %></p>')(serialized_model);
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var CedarMarionetteLayout = Backbone.Marionette.LayoutView.extend({
|
|
14
|
-
template: '#layout-view-template',
|
|
15
|
-
|
|
16
|
-
regions: {
|
|
17
|
-
cedarHeading: '.js-cedar-heading',
|
|
18
|
-
anotherParagraph: '.js-cedar-paragraph'
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
onRender: function() {
|
|
22
|
-
this.cedarHeading.show(new CedarMarionetteHeader({model: this.options.heading}))
|
|
23
|
-
this.anotherParagraph.show(new CedarMarionetteParagraph({model: this.options.introText}))
|
|
24
|
-
}
|
|
25
|
-
});
|