Skip to content

Commit 8e0fde3

Browse files
author
Alex Tharp
authored
Merge pull request #488 from cbdr/topic/COR-704-Rebuild-AssetFieldType
COR-704: Rebuild AssetFieldType
2 parents 663a73f + 9eb341c commit 8e0fde3

File tree

17 files changed

+68
-27
lines changed

17 files changed

+68
-27
lines changed

.env.example

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ DEVISE_SECRET=
55
#
66
# Asset Host Configuration
77
#
8-
HOST=http://localhost:3000
9-
S3_HOST_ALIAS=
8+
FOG_HOST=http://localhost:3000
9+
HOST_ALIAS=
10+
11+
# S3
12+
S3_ACCESS_KEY_ID=
13+
S3_SECRET_ACCESS_KEY=
14+
S3_BUCKET_NAME=
15+
S3_PROTOCOL=
16+
S3_REGION=
1017

1118
#
1219
# Email Configuration

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/public/youtubes/
1616
/public/bulk_jobs/
1717
/public/content-snippets-edit
18+
/public/uploads/
1819

1920
# Ignore the default SQLite database.
2021
/db/*.sqlite3

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem 'rails', '~> 5.0.1'
1212

1313
# Cortex-specific
1414
gem 'cortex-exceptions', '= 0.0.4'
15-
gem 'cortex-plugins-core', '= 0.11.3'
15+
gem 'cortex-plugins-core', '= 0.12.1'
1616

1717
# API
1818
gem 'grape', '~> 0.17'

Gemfile.lock

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,18 @@ GEM
137137
concurrent-ruby (1.0.4)
138138
connection_pool (2.2.1)
139139
cortex-exceptions (0.0.4)
140-
cortex-plugins-core (0.11.3)
140+
cortex-plugins-core (0.12.1)
141141
cells (~> 4.1)
142-
cells-haml (~> 0.0.10)
143-
cells-rails (~> 0.0.6)
142+
cells-haml (~> 0.0)
143+
cells-rails (~> 0.0)
144+
fastimage (~> 2.1)
145+
image_processing (~> 0.4)
144146
jsonb_accessor (~> 1.0.0.beta)
145-
mimemagic (~> 0.3.2)
147+
mimemagic (~> 0.3)
148+
mini_magick (~> 4.7)
146149
rails (>= 4)
147150
react_on_rails (~> 6)
151+
shrine (~> 2.6)
148152
database_cleaner (1.5.3)
149153
debug_inspector (0.0.2)
150154
declarative-builder (0.1.0)
@@ -169,6 +173,7 @@ GEM
169173
dotenv-rails (2.2.0)
170174
dotenv (= 2.2.0)
171175
railties (>= 3.2, < 5.1)
176+
down (2.4.3)
172177
elasticsearch (5.0.3)
173178
elasticsearch-api (= 5.0.3)
174179
elasticsearch-transport (= 5.0.3)
@@ -205,6 +210,7 @@ GEM
205210
i18n (~> 0.5)
206211
faraday (0.11.0)
207212
multipart-post (>= 1.2, < 3)
213+
fastimage (2.1.0)
208214
ffi (1.9.17)
209215
fission (0.5.0)
210216
CFPropertyList (~> 2.2)
@@ -411,6 +417,7 @@ GEM
411417
image_optim_pack (0.3.1.20170121)
412418
fspath (>= 2.1, < 4)
413419
image_optim (~> 0.19)
420+
image_processing (0.4.1)
414421
image_size (1.5.0)
415422
in_threads (1.3.1)
416423
inflecto (0.0.2)
@@ -471,6 +478,7 @@ GEM
471478
mime-types-data (~> 3.2015)
472479
mime-types-data (3.2016.0521)
473480
mimemagic (0.3.2)
481+
mini_magick (4.7.0)
474482
mini_portile2 (2.1.0)
475483
mini_racer (0.1.8)
476484
libv8 (~> 5.3)
@@ -654,6 +662,8 @@ GEM
654662
shellany (0.0.1)
655663
shoulda-matchers (3.1.1)
656664
activesupport (>= 4.0.0)
665+
shrine (2.6.1)
666+
down (>= 2.3.6)
657667
sidekiq (4.2.9)
658668
concurrent-ruby (~> 1.0)
659669
connection_pool (~> 2.2, >= 2.2.0)
@@ -734,7 +744,7 @@ DEPENDENCIES
734744
cells-rails (~> 0.0.7)
735745
codeclimate-test-reporter (~> 0.6)
736746
cortex-exceptions (= 0.0.4)
737-
cortex-plugins-core (= 0.11.3)
747+
cortex-plugins-core (= 0.12.1)
738748
database_cleaner (~> 1.5)
739749
deep_cloneable (~> 2.2.2)
740750
devise (~> 4.2.0)

app/assets/stylesheets/application.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
@import 'components/card';
2121
@import 'components/confetti';
22-
@import 'components/content';
2322
@import 'components/dialog';
2423
@import 'components/flash';
2524
@import 'components/form';
@@ -28,6 +27,9 @@
2827
@import 'components/jumbo-button';
2928
@import 'components/notes';
3029
@import 'components/sidebar';
30+
@import 'components/table';
3131
@import 'components/ui';
3232

3333
@import 'demo';
34+
35+
@import 'cortex-plugins-core/application';
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Overrides
22

33
.mdl-card {
4+
border: $data-table-dividers;
5+
border-radius: 0;
46
width: auto;
5-
border-radius: 3px;
67
overflow: visible;
78
z-index: auto;
89
}

app/assets/stylesheets/components/dialog.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
justify-content: center;
2424
align-items: center;
2525

26-
border: 1px solid $color-grey;
26+
border: $data-table-dividers;
2727
margin-top: 10px;
2828
margin-bottom: 10px;
2929
width: 100%;

app/assets/stylesheets/components/index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.index {
2+
width: 100%;
3+
}
4+
15
.content_item-link {
26
cursor: pointer;
37

@@ -21,3 +25,4 @@
2125
}
2226
}
2327
}
28+
File renamed without changes.

app/cells/index/index.haml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
%table{ class: 'mdl-data-table mdl-js-data-table', style: 'width: 100%;' }
2-
= cell('index', @index, data: data).(:table_headers)
3-
= cell('index', @index, data: data).(:table_body)
1+
.mdl-grid
2+
.mdl-cell.mdl-cell--12-col
3+
%table.mdl-data-table.mdl-js-data-table.index
4+
= cell('index', @index, data: data).(:table_headers)
5+
= cell('index', @index, data: data).(:table_body)

0 commit comments

Comments
 (0)