bullet_train-themes 1.0.11 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bt-link +0 -0
- data/app/helpers/theme_helper.rb +0 -6
- data/app/views/themes/base/fields/_trix_editor.html.erb +2 -2
- data/lib/bullet_train/themes/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdae172d3e0f459d7313c02b5e48475656c9e0cf76ac961991a67e1fb451da06
|
4
|
+
data.tar.gz: fd53f7ca6ce8f12ff124f1cb28efedf8805ea651158f47859a797d1c55e8e530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a9cd466e66f165099df1444239652cbd66ea03ccf8799a5df7ca4b0ed71f8a651ddc9312da6b5ab6d3dde60374c3b05baafb47820c2757bf057fa74ff69d21
|
7
|
+
data.tar.gz: 2824161de0bc8072fde9351c2b492a308abebb4984b07ced7b166910d85823565ff63e22cc60f3956f0b809ff1f59beb4e1e8ec5b45984545408f172553117e7
|
data/.bt-link
ADDED
File without changes
|
data/app/helpers/theme_helper.rb
CHANGED
@@ -8,12 +8,6 @@ module ThemeHelper
|
|
8
8
|
/^shared\//,
|
9
9
|
]
|
10
10
|
|
11
|
-
def current_theme
|
12
|
-
# Temporarily hardcoded. We actually don't want this to be just an `mattr_accessor` because the same application
|
13
|
-
# can use multiple themes. Need to think about this a bit.
|
14
|
-
:light
|
15
|
-
end
|
16
|
-
|
17
11
|
def current_theme_object
|
18
12
|
@current_theme_object ||= "BulletTrain::Themes::#{current_theme.to_s.classify}::Theme".constantize.new
|
19
13
|
end
|
@@ -7,12 +7,12 @@ options ||= {}
|
|
7
7
|
options[:class] = "formatted_content trix-content #{options[:class]}"
|
8
8
|
options[:placeholder] ||= labels.placeholder if labels.placeholder
|
9
9
|
options[:data] ||= {}
|
10
|
-
options[:data][:mentions]
|
10
|
+
options[:data][:mentions] ||= ([current_team].map { |team|
|
11
11
|
{key: team.name, value: team.id, protocol: 'bullettrain', model: 'teams', id: team.id, label: team.name, photo: photo_for(team)}
|
12
12
|
} + current_team.memberships.current_and_invited.map { |membership|
|
13
13
|
{key: membership.name, value: membership.id, protocol: 'bullettrain', model: 'memberships', id: membership.id, label: membership.name, photo: membership_profile_photo_url(membership)}
|
14
14
|
}).to_json
|
15
|
-
options[:data][:topics]
|
15
|
+
options[:data][:topics] ||= []
|
16
16
|
# current_team.scaffolding_things.map { |scaffolding_thing|
|
17
17
|
# {key: scaffolding_thing.name, value: scaffolding_thing.id, protocol: 'bullettrain', model: 'scaffolding/things', id: scaffolding_thing.id, label: scaffolding_thing.name, photo: photo_for(scaffolding_thing)}
|
18
18
|
# }.to_json
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -31,6 +31,7 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".bt-link"
|
34
35
|
- MIT-LICENSE
|
35
36
|
- README.md
|
36
37
|
- Rakefile
|
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
87
|
- !ruby/object:Gem::Version
|
87
88
|
version: '0'
|
88
89
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
90
|
+
rubygems_version: 3.2.22
|
90
91
|
signing_key:
|
91
92
|
specification_version: 4
|
92
93
|
summary: Bullet Train Themes
|