loft 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/loft.coffee +3 -1
- data/app/assets/javascripts/loft/module.coffee +4 -4
- data/app/assets/stylesheets/loft.scss +1 -2
- data/app/models/concerns/loft_asset.rb +0 -1
- data/lib/loft.rb +1 -0
- data/lib/loft/version.rb +1 -1
- data/loft.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2c666854c519f0e34f2f5ff2f4fad7e1a8bce34
|
4
|
+
data.tar.gz: 9a35e19e5f613ae97368c74cff44f4e5d20a1972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 951abd088fc66398bab9cd325bbecb005fa9c263ea6ee63fc5ccb49b64c97b6195f5e6d8c228db299021e98fc3174eeb8275759d541c96abb68288c2881d3073
|
7
|
+
data.tar.gz: 26b07765453f58718375d709872caa905e91091a3db79dd4d9d56f1ab113c5cb55b331031fd2027dcb813ba41b921d56e8a40a26c0af110f1c907611a4915e32
|
data/README.md
CHANGED
@@ -2,8 +2,10 @@
|
|
2
2
|
#= require loft/asset-item
|
3
3
|
#= require loft/module
|
4
4
|
|
5
|
-
#= require loft/redactor-loft
|
6
5
|
#= require loft/inputs/loft-image
|
7
6
|
|
7
|
+
## OPTIONAL
|
8
|
+
# require loft/redactor-loft
|
9
|
+
|
8
10
|
# TODOs:
|
9
11
|
# - refactor group remove action: delete a bunch first, then reload the page
|
@@ -11,18 +11,18 @@
|
|
11
11
|
# -----------------------------------------------------------------------------
|
12
12
|
#
|
13
13
|
# Public methods:
|
14
|
-
# new Loft(title, resource, resourcePath
|
14
|
+
# new Loft(title, resource, resourcePath)
|
15
15
|
# showModal(assetType, @selectMultipleAssets, @onAcceptCallback, @closeOnAccept)
|
16
16
|
# closeModal()
|
17
17
|
#
|
18
18
|
# -----------------------------------------------------------------------------
|
19
19
|
class @Loft
|
20
|
-
constructor: (title, resource, resourcePath
|
20
|
+
constructor: (title='Media', resource='asset', resourcePath='/admin/assets') ->
|
21
21
|
@module = {}
|
22
22
|
@store = {}
|
23
23
|
|
24
|
-
@arrayStoreClass
|
25
|
-
@arrayStoreConfig
|
24
|
+
@arrayStoreClass = RailsArrayStore
|
25
|
+
@arrayStoreConfig =
|
26
26
|
resource: resource
|
27
27
|
path: resourcePath
|
28
28
|
sortBy: 'created_at'
|
@@ -134,7 +134,6 @@
|
|
134
134
|
cursor : pointer;
|
135
135
|
padding-left : 80px;
|
136
136
|
&:before { @include position(absolute, null null null 0); }
|
137
|
-
&:hover { opacity : .5; }
|
138
137
|
}
|
139
138
|
|
140
139
|
.list header .asset-upload + .search { @include position(absolute, 0 40px null null); }
|
@@ -198,7 +197,7 @@
|
|
198
197
|
|
199
198
|
.loft.grid-mode {
|
200
199
|
.list:not(:first-child) .items {
|
201
|
-
padding:
|
200
|
+
padding: 1em .25em 5em .75em;
|
202
201
|
.item.asset { margin: 0 .75em 1.5em; float: left; display: inline-block; }
|
203
202
|
|
204
203
|
.item.asset {
|
data/lib/loft.rb
CHANGED
data/lib/loft/version.rb
CHANGED
data/loft.gemspec
CHANGED
@@ -25,6 +25,7 @@ to upload, manage and insert files into documents.
|
|
25
25
|
s.add_dependency("ants", ">= 0.2.0")
|
26
26
|
s.add_dependency("mongosteen", ">= 0.1.8")
|
27
27
|
s.add_dependency("mongoid-autoinc", ">= 4.0.0")
|
28
|
+
s.add_dependency('mongoid_search', ">= 0.3")
|
28
29
|
s.add_dependency("mini_magick", ">= 4.1.0")
|
29
30
|
s.add_dependency("mongoid-grid_fs", ">= 2.1.0")
|
30
31
|
s.add_dependency("carrierwave-mongoid", ">= 0.7.1")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chr
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 4.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mongoid_search
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.3'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.3'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: mini_magick
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
202
|
version: '0'
|
189
203
|
requirements: []
|
190
204
|
rubyforge_project: loft
|
191
|
-
rubygems_version: 2.4.
|
205
|
+
rubygems_version: 2.4.5.1
|
192
206
|
signing_key:
|
193
207
|
specification_version: 4
|
194
208
|
summary: Media assets manager for Character CMS
|