brightcontent-core 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/brightcontent/core.js +19 -0
- data/app/controllers/brightcontent/application_controller.rb +1 -1
- data/app/views/brightcontent/application/_resource.html.erb +1 -1
- data/app/views/brightcontent/sessions/new.html.erb +3 -3
- data/brightcontent-core.gemspec +0 -1
- data/config/locales/brightcontent_core.en.yml +2 -0
- data/config/locales/brightcontent_core.nl.yml +2 -0
- data/lib/brightcontent/core.rb +0 -1
- metadata +4 -18
- data/app/assets/javascripts/brightcontent/core.js.coffee +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc28e73875ef4679ee08153287cbf8e7a141e492
|
4
|
+
data.tar.gz: 963c4af3bbbc66ed469853c668be945fb18c7b4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 644b914c0d27320593a08ab801576a9e32651a055648e55fd57f195fff91cb2f6d51a64878d55d8e6d8937563581df9d1fd794e7a23dc5709fedc648d1be3e48
|
7
|
+
data.tar.gz: 26aa3acd1268af9b8069a1997c47c84cf786de9de28f965193abf1d9855b3694d4c99fd0046a7b6482bd8925f5027db5785a3bbce6a8e5d29c5be519d937b98d
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//= require bootstrap-wysihtml5
|
2
|
+
//= require brightcontent/wysithtml5-parser-rules
|
3
|
+
//= require bootstrap-wysihtml5/locales/nl-NL
|
4
|
+
|
5
|
+
$(function() {
|
6
|
+
var editorLocale = $('body').data('editorLocale');
|
7
|
+
|
8
|
+
$('[data-wysihtml5]').wysihtml5({
|
9
|
+
html: true,
|
10
|
+
locale: editorLocale,
|
11
|
+
parserRules: wysihtml5ParserRules,
|
12
|
+
events: {
|
13
|
+
load: function() {
|
14
|
+
var editor = $("#insertable").data("wysihtml5").editor;
|
15
|
+
editor.focus();
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
19
|
+
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= form_tag sessions_path, class: "form-signin", role: 'form' do %>
|
2
2
|
<h2 class="form-signin-heading"><%=t('brightcontent.sign_in')%></h2>
|
3
|
-
<%= text_field_tag :email, params[:email], class: 'form-control', placeholder: '
|
4
|
-
<%= password_field_tag :password, nil, class: 'form-control', placeholder: '
|
5
|
-
<%= submit_tag
|
3
|
+
<%= text_field_tag :email, params[:email], class: 'form-control', placeholder: t('activerecord.attributes.brightcontent/admin_user.email'), autofocus: true %>
|
4
|
+
<%= password_field_tag :password, nil, class: 'form-control', placeholder: t('activerecord.attributes.brightcontent/admin_user.password') %>
|
5
|
+
<%= submit_tag t('brightcontent.login'), class: "btn btn-lg btn-primary btn-block" %>
|
6
6
|
<% end %>
|
data/brightcontent-core.gemspec
CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.add_dependency "bootstrap-sass", ">= 3.1"
|
21
21
|
s.add_dependency "bootstrap-wysihtml5-rails", ">= 0.3.2"
|
22
22
|
s.add_dependency "inherited_resources", ">= 1.6.0"
|
23
|
-
s.add_dependency "coffee-rails"
|
24
23
|
s.add_dependency "jquery-rails"
|
25
24
|
s.add_dependency "sass-rails", ">= 4.0.2"
|
26
25
|
s.add_dependency "simple_form"
|
@@ -19,6 +19,7 @@ en:
|
|
19
19
|
logout: Logout
|
20
20
|
hidden: Hidden
|
21
21
|
sign_in: Please sign in
|
22
|
+
login: Login
|
22
23
|
editor_locale: ""
|
23
24
|
extra_menu: More
|
24
25
|
|
@@ -27,5 +28,6 @@ en:
|
|
27
28
|
brightcontent/admin_user: Admin
|
28
29
|
attributes:
|
29
30
|
brightcontent/admin_user:
|
31
|
+
email: Email
|
30
32
|
password: Password
|
31
33
|
password_confirmation: Password confirmation
|
@@ -19,6 +19,7 @@ nl:
|
|
19
19
|
logout: Uitloggen
|
20
20
|
hidden: Verborgen
|
21
21
|
sign_in: Inloggen
|
22
|
+
login: Inloggen
|
22
23
|
editor_locale: "nl-NL"
|
23
24
|
extra_menu: Meer
|
24
25
|
|
@@ -27,5 +28,6 @@ nl:
|
|
27
28
|
brightcontent/admin_user: Beheerder
|
28
29
|
attributes:
|
29
30
|
brightcontent/admin_user:
|
31
|
+
login: Inloggen
|
30
32
|
password: Wachtwoord
|
31
33
|
password_confirmation: Wachtwoord bevestiging
|
data/lib/brightcontent/core.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightcontent-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Developers at Brightin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.6.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: coffee-rails
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: jquery-rails
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -286,7 +272,7 @@ files:
|
|
286
272
|
- Gemfile
|
287
273
|
- Rakefile
|
288
274
|
- app/assets/javascripts/brightcontent/brightcontent.js.erb
|
289
|
-
- app/assets/javascripts/brightcontent/core.js
|
275
|
+
- app/assets/javascripts/brightcontent/core.js
|
290
276
|
- app/assets/javascripts/brightcontent/custom.js
|
291
277
|
- app/assets/javascripts/brightcontent/wysithtml5-parser-rules.js
|
292
278
|
- app/assets/stylesheets/brightcontent/brightcontent.css.erb
|
@@ -439,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
425
|
version: '0'
|
440
426
|
requirements: []
|
441
427
|
rubyforge_project:
|
442
|
-
rubygems_version: 2.
|
428
|
+
rubygems_version: 2.5.1
|
443
429
|
signing_key:
|
444
430
|
specification_version: 4
|
445
431
|
summary: Brightcontent core
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#= require bootstrap-wysihtml5
|
2
|
-
#= require brightcontent/wysithtml5-parser-rules
|
3
|
-
#= require bootstrap-wysihtml5/locales/nl-NL
|
4
|
-
|
5
|
-
$ ->
|
6
|
-
editorLocale = $('body').data('editorLocale')
|
7
|
-
|
8
|
-
$('[data-wysihtml5]').wysihtml5
|
9
|
-
html: true
|
10
|
-
locale: editorLocale
|
11
|
-
parserRules: wysihtml5ParserRules
|
12
|
-
events:
|
13
|
-
load: ->
|
14
|
-
editor = $("#insertable").data("wysihtml5").editor
|
15
|
-
editor.focus()
|