Skip to content

Commit dfc1c99

Browse files
committed
Merge branch 'develop'
2 parents 5e36487 + 8e0fde3 commit dfc1c99

File tree

27 files changed

+267
-124
lines changed

27 files changed

+267
-124
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: 6 additions & 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.2'
15+
gem 'cortex-plugins-core', '= 0.12.1'
1616

1717
# API
1818
gem 'grape', '~> 0.17'
@@ -103,6 +103,11 @@ gem 'ng-rails-csrf', '~> 0.1.0'
103103
gem 'bootstrap-tagsinput-rails', '~> 0.4.2'
104104
gem 'dialog-polyfill-rails', '~> 0.4.5'
105105

106+
# Feature Flagging
107+
gem 'flipper', '~> 0.10'
108+
gem 'flipper-ui', '~> 0.10'
109+
gem 'flipper-active_record', '~> 0.10'
110+
106111
group :tasks do
107112
# Parsing
108113
gem 'nokogiri'

Gemfile.lock

Lines changed: 27 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.2)
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,9 +210,19 @@ 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)
217+
flipper (0.10.2)
218+
flipper-active_record (0.10.2)
219+
activerecord (>= 3.2, < 6)
220+
flipper (~> 0.10.2)
221+
flipper-ui (0.10.2)
222+
erubis (~> 2.7.0)
223+
flipper (~> 0.10.2)
224+
rack (>= 1.4, < 3)
225+
rack-protection (>= 1.5.3, < 2.1.0)
211226
fog (1.38.0)
212227
fog-aliyun (>= 0.1.0)
213228
fog-atmos
@@ -402,6 +417,7 @@ GEM
402417
image_optim_pack (0.3.1.20170121)
403418
fspath (>= 2.1, < 4)
404419
image_optim (~> 0.19)
420+
image_processing (0.4.1)
405421
image_size (1.5.0)
406422
in_threads (1.3.1)
407423
inflecto (0.0.2)
@@ -462,6 +478,7 @@ GEM
462478
mime-types-data (~> 3.2015)
463479
mime-types-data (3.2016.0521)
464480
mimemagic (0.3.2)
481+
mini_magick (4.7.0)
465482
mini_portile2 (2.1.0)
466483
mini_racer (0.1.8)
467484
libv8 (~> 5.3)
@@ -645,6 +662,8 @@ GEM
645662
shellany (0.0.1)
646663
shoulda-matchers (3.1.1)
647664
activesupport (>= 4.0.0)
665+
shrine (2.6.1)
666+
down (>= 2.3.6)
648667
sidekiq (4.2.9)
649668
concurrent-ruby (~> 1.0)
650669
connection_pool (~> 2.2, >= 2.2.0)
@@ -725,7 +744,7 @@ DEPENDENCIES
725744
cells-rails (~> 0.0.7)
726745
codeclimate-test-reporter (~> 0.6)
727746
cortex-exceptions (= 0.0.4)
728-
cortex-plugins-core (= 0.11.2)
747+
cortex-plugins-core (= 0.12.1)
729748
database_cleaner (~> 1.5)
730749
deep_cloneable (~> 2.2.2)
731750
devise (~> 4.2.0)
@@ -739,6 +758,9 @@ DEPENDENCIES
739758
excon (~> 0.55.0)
740759
factory_girl_rails (~> 4.8)
741760
faker (~> 1.7)
761+
flipper (~> 0.10)
762+
flipper-active_record (~> 0.10)
763+
flipper-ui (~> 0.10)
742764
fog (~> 1.38.0)
743765
font-awesome-sass (~> 4.7.0)
744766
foreman

app/assets/javascripts/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
//= require base
1717
//= require datepicker_init
18+
//= require form
1819
//= require flash
1920
//= require media_dialogs
2021
//= require sidebar-toggle

app/assets/javascripts/form.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var requiredFormField = function() {
2+
$('input[data-required=true]').attr('required', true);
3+
}
4+
5+
$(document).ready(requiredFormField);
6+
$(document).on('page:load', requiredFormField);

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/form.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ form {
4646
border-right: none;
4747
border-left: none;
4848
border-bottom: 1px solid $color-grey-light;
49+
box-shadow: none;
4950
}
5051
.cortex-bootstrap .label {
5152
border-radius: 0.75em;

0 commit comments

Comments
 (0)