push_type_admin 0.6.0 → 0.7.0.beta.1
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/app/assets/javascripts/push_type/admin.js.coffee +6 -1
- data/app/views/push_type/assets/_form.html.haml +1 -1
- data/app/views/push_type/fields/_asset.html.haml +1 -1
- data/app/views/push_type/fields/_matrix.html.haml +32 -10
- data/app/views/push_type/fields/_repeater.html.haml +1 -1
- data/test/dummy/config/initializers/push_type.rb +1 -1
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/migrate/{20151108150814_create_push_type_users.push_type.rb → 20160108132407_create_push_type_users.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20151108150815_create_push_type_nodes.push_type.rb → 20160108132408_create_push_type_nodes.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20151108150816_create_push_type_node_hierarchies.push_type.rb → 20160108132409_create_push_type_node_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20151108150817_create_push_type_assets.push_type.rb → 20160108132410_create_push_type_assets.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20151108150818_create_push_type_taxonomies.push_type.rb → 20160108132411_create_push_type_taxonomies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20151108150819_create_push_type_taxonomy_hierarchies.push_type.rb → 20160108132412_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20151108150820_add_field_store_default_values.push_type.rb → 20160108132413_add_field_store_default_values.push_type.rb} +0 -0
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +4509 -4511
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/1_0VGkM5cGAdnUslcA4e75o4r_nschU5CvqxE0mJeXg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4uWuVvLUohMF2JBuKexZUcMi_iN4UreDZSIRZvI82gY.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DOV5BcgXJRpA3mjUpEW47CpZjq9dHBUVhrL8zAFuhTM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/DtVZIXiAkbGC4xUsA3Dbf8fqC83eM2A4i1Bwe-jpx0g.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EUw0ygAS9CODkaeumLuEGsL7RkiPtWoULuCMV82wX0k.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{icg6_TOak7azLFShsJnvMljw9gtP_bTvWCgDr0WkTbI.cache → G-ftX-NhbYr-_Er1dJM_YT47Hg2L3VbNl_y238WuQ4o.cache} +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/LftZeoFRtnjwV9dJZJqv-Q06NlDXhyXQBgb9lYM4HCw.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{xW0MZCmr6qsKPiKHi-p_tpm4quTg9MjmOa-Od5_rIU4.cache → SpcuvRr_gGxW8aGWr6tzvW_UR2XZQ2Im5eJuQs2Dh0s.cache} +7 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{QtKC4lzFCtmisqzjSQI_ZIeDCqGEQ2tNgdEk0ssfDDo.cache → WPTIyu0HKIsAaG6WWgZbQUxNWWOlZyxfxlFwLOmqz7g.cache} +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XJdjxw9ggawiZShvpEwuZ-3CwyBzCzDB291E6Y0AnTQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/YYSQo_OqBQZ10wOYN4NaF92Zvz_V2xtpveRseirh6L4.cache +2 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{fUjwjDI8TTWz2HrWHI5JMUs6j5Zhhpt4gu6RUqI_mUI.cache → aYWejdE5c3DtRUssooNAsFCbTHGNUplZuASgZez0GXg.cache} +1 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/dKkq5h83tARDOhXbsDJuMk0neydd2bmij-uFfrfDegQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/gXc6u_8xhUR3xhGzaG5dREVihlZPJaMOMn4tezZfESk.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/k5ttUYVvftQJvBHW_usrTFXPePz4PJzzbW_DBMgycX4.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ne3ndi1KEMy95ywVG3WulIgoQO0uaZI3yTaiGZW6ZBM.cache +1 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/sbUp7lbIch0EuEbz4Q1xSCpuu_XdjV84N1ej8qSX7Y4.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{Uh8MXM6z2fmNXc4sqqPfSRoLUQPEFMEmu2Ifr44NsEc.cache → vLHQ_FfVMreBcRg2HPdcMSfCx6CZduuh0zlYa-2wtuM.cache} +1 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/ydwNNZELWLK4AZMP3m1KicBlDa2uzfbx-8FIlmTt60k.cache +0 -0
- data/vendor/assets/javascripts/numeral.js +679 -0
- metadata +59 -50
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/68-rfVTVnRlWELlXq3fFfQ-DJzuJPuIRXihjH-A4DDw.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/AKNuwBosUS_xVARIwHOtZLhpTj0VGfcpMSDOzY5VYSM.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FSZdKH9EpzkLwg6gkrVskMvU7dJHC9B9a428CfpcVpo.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/GSuwmAmknqPxy3lOcjsmOG1cGtWUAK67WCqDt3pWc0E.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ti3ckxVqeNRd1ShfRfv4oOZZ8Boq8qKJB6y_Fv9ytU0.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/XiPzbpfeCvnGWwIVSCm4dpZsHw_nf0oiCvViXKY3M0A.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Z1wb-zyOfM070cy_9rtWent0zzV8LZK8Sj8a3WfQhps.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lsEcRvbzxJ1n-4tMTHbOsxFNDzY_q2C4TUTpDqY7WCQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/oa9cqTFdyQ42k9Pg0lPDUvvUhMMoQ_GRclViUq6uaRg.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/y-lokYJWyt-TTTl8aQ5SR0Bjp8EDmS6mpAPPdm__J0w.cache +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e4a9cb0bc803b41f06066c0d9ba503bee5e470a
|
4
|
+
data.tar.gz: 7a9520586ecae81da4225410a8464b2dd80c6d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0879e42465471dd1d157ecf9c3df6c207b355e26196b4920d430e790cad25eff9a7b74d097705e725c70ecbb4b7ba284d4827d42d8108dafd52f2c7933b3eccb
|
7
|
+
data.tar.gz: 635dd4fc4e0b0995d1b86ec0ee1d71471e24bd8129af519e09beae2d44545f55cc30751c3267a10019e69aef91835d5f4cb4d868cf548955b1055bcecbd2f3fb
|
@@ -22,8 +22,9 @@
|
|
22
22
|
#= require jquery.sortable
|
23
23
|
#= require jquery.filedrop
|
24
24
|
#= require jquery.simplePagination
|
25
|
-
#= require selectize
|
26
25
|
#= require moment
|
26
|
+
#= require numeral
|
27
|
+
#= require selectize
|
27
28
|
#= require pickadate/picker
|
28
29
|
#= require pickadate/picker.date
|
29
30
|
#= require pickadate/picker.time
|
@@ -42,6 +43,10 @@ Math.uid = -> Math.floor(Math.random()*16777215).toString(16)
|
|
42
43
|
$http.defaults.headers.common['Content-Type'] = 'application/json'
|
43
44
|
]
|
44
45
|
|
46
|
+
@app.filter 'kb', ->
|
47
|
+
(input) ->
|
48
|
+
numeral(input).format('0 b')
|
49
|
+
|
45
50
|
@app.directive 'sidePanel', ->
|
46
51
|
(scope, $el, attrs) ->
|
47
52
|
$el.sticky
|
@@ -1,16 +1,28 @@
|
|
1
|
-
.repeater-field
|
1
|
+
.repeater-field{ repeater: { field: true } }
|
2
2
|
%table
|
3
|
-
|
4
|
-
%
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
- if field.grid?
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
- field.fields.each do |(_, fd)|
|
7
|
+
%th= label_tag fd.label
|
8
|
+
%th
|
9
|
+
|
8
10
|
%tbody.rows
|
9
11
|
- field.rows.each do |row|
|
10
12
|
= f.fields_for "#{ field.name }[]", row do |r|
|
11
13
|
%tr{ repeater: { row: true } }
|
12
|
-
-
|
13
|
-
|
14
|
+
- if field.grid?
|
15
|
+
- row.fields.each do |name, sub_field|
|
16
|
+
%td= render_field sub_field, r, id: nil
|
17
|
+
- else
|
18
|
+
%td
|
19
|
+
.repeater-field
|
20
|
+
%table
|
21
|
+
%tbody
|
22
|
+
- row.fields.each do |key, sub_field|
|
23
|
+
%tr
|
24
|
+
%th= r.label sub_field.name, sub_field.label
|
25
|
+
%td= render_field sub_field, r
|
14
26
|
%td.remove
|
15
27
|
%a.alert{ ng: { click: 'removeRow()' } }= ficon(:x)
|
16
28
|
|
@@ -21,7 +33,17 @@
|
|
21
33
|
%script{:type => 'html/template', :class => 'template' }
|
22
34
|
= f.fields_for "#{ field.name }[]", field.structure do |r|
|
23
35
|
%tr{ repeater: { row: true } }
|
24
|
-
- field.
|
25
|
-
|
36
|
+
- if field.grid?
|
37
|
+
- field.fields.each do |name, sub_field|
|
38
|
+
%td= render_field sub_field, r, id: nil
|
39
|
+
- else
|
40
|
+
%td
|
41
|
+
.repeater-field
|
42
|
+
%table
|
43
|
+
%tbody
|
44
|
+
- field.fields.each do |key, sub_field|
|
45
|
+
%tr
|
46
|
+
%th= r.label sub_field.name, sub_field.label
|
47
|
+
%td= render_field sub_field, r, id: nil
|
26
48
|
%td.remove
|
27
49
|
%a.alert{ ng: { click: 'removeRow()' } }= ficon(:x)
|
@@ -50,6 +50,6 @@ PushType.setup do |config|
|
|
50
50
|
# secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
|
51
51
|
# }
|
52
52
|
|
53
|
-
# config.dragonfly_secret = '
|
53
|
+
# config.dragonfly_secret = '986953e57db5d4d7c116fc74f3e6aa3e04e664ae6735388258b436f58755de39'
|
54
54
|
|
55
55
|
end
|
@@ -11,10 +11,10 @@
|
|
11
11
|
# if you're sharing your code publicly.
|
12
12
|
|
13
13
|
development:
|
14
|
-
secret_key_base:
|
14
|
+
secret_key_base: 05323b47b156d7c0de1df4ceba950b201bbc0c6aaa457d958f5de9d05874324970ff46f4a91d95b85bda59d70a4f16764d193260e35f1604e2fa6748e32a28aa
|
15
15
|
|
16
16
|
test:
|
17
|
-
secret_key_base:
|
17
|
+
secret_key_base: 61e722280f63a9684202f02c3b319a0add578ee749ea41ae14fa0b1cc9b1649746a1fedeb61f3cfa3ed6656189be3908df35aad189ef893e03f090a5325b54d6
|
18
18
|
|
19
19
|
# Do not keep production secrets in the repository,
|
20
20
|
# instead read values from the environment.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160108132413) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|