trestle-search 0.2.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.browserlistrc +1 -0
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/.travis.yml +20 -3
- data/Gemfile +8 -0
- data/app/assets/bundle/trestle/search.css +1 -0
- data/app/views/trestle/search/_search.html.erb +10 -9
- data/config/initializers/trestle.rb +2 -2
- data/config/{locale → locales}/en.yml +0 -0
- data/config/locales/es.yml +5 -0
- data/config/locales/fr.yml +5 -0
- data/config/{locale → locales}/pl.yml +0 -0
- data/config/{locale → locales}/pt-BR.yml +0 -0
- data/config/locales/ru.yml +5 -0
- data/frontend/index.scss +42 -0
- data/gemfiles/rails-4.2.gemfile +14 -0
- data/gemfiles/rails-5.0.gemfile +14 -0
- data/gemfiles/rails-5.1.gemfile +14 -0
- data/gemfiles/rails-5.2.gemfile +14 -0
- data/gemfiles/rails-6.0.gemfile +14 -0
- data/lib/trestle/search.rb +5 -5
- data/lib/trestle/search/adapters/chewy_adapter.rb +4 -0
- data/lib/trestle/search/builder.rb +1 -1
- data/lib/trestle/search/controller.rb +2 -2
- data/lib/trestle/search/engine.rb +5 -2
- data/lib/trestle/search/resource.rb +24 -11
- data/lib/trestle/search/version.rb +1 -1
- data/package.json +30 -0
- data/trestle-search.gemspec +12 -10
- data/webpack.config.js +48 -0
- data/yarn.lock +4765 -0
- metadata +33 -47
- data/app/assets/stylesheets/trestle/search.scss +0 -55
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trestle-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pohlenz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trestle
|
@@ -16,50 +16,22 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.0
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.9.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.9.0
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.9.3
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.12'
|
40
|
-
type: :development
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '1.12'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rake
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '10.0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '10.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rspec
|
34
|
+
name: rspec-rails
|
63
35
|
requirement: !ruby/object:Gem::Requirement
|
64
36
|
requirements:
|
65
37
|
- - "~>"
|
@@ -72,13 +44,14 @@ dependencies:
|
|
72
44
|
- - "~>"
|
73
45
|
- !ruby/object:Gem::Version
|
74
46
|
version: '3.0'
|
75
|
-
description:
|
47
|
+
description:
|
76
48
|
email:
|
77
49
|
- sam@sampohlenz.com
|
78
50
|
executables: []
|
79
51
|
extensions: []
|
80
52
|
extra_rdoc_files: []
|
81
53
|
files:
|
54
|
+
- ".browserlistrc"
|
82
55
|
- ".gitignore"
|
83
56
|
- ".rspec"
|
84
57
|
- ".travis.yml"
|
@@ -86,12 +59,21 @@ files:
|
|
86
59
|
- LICENSE
|
87
60
|
- README.md
|
88
61
|
- Rakefile
|
89
|
-
- app/assets/
|
62
|
+
- app/assets/bundle/trestle/search.css
|
90
63
|
- app/views/trestle/search/_search.html.erb
|
91
64
|
- config/initializers/trestle.rb
|
92
|
-
- config/
|
93
|
-
- config/
|
94
|
-
- config/
|
65
|
+
- config/locales/en.yml
|
66
|
+
- config/locales/es.yml
|
67
|
+
- config/locales/fr.yml
|
68
|
+
- config/locales/pl.yml
|
69
|
+
- config/locales/pt-BR.yml
|
70
|
+
- config/locales/ru.yml
|
71
|
+
- frontend/index.scss
|
72
|
+
- gemfiles/rails-4.2.gemfile
|
73
|
+
- gemfiles/rails-5.0.gemfile
|
74
|
+
- gemfiles/rails-5.1.gemfile
|
75
|
+
- gemfiles/rails-5.2.gemfile
|
76
|
+
- gemfiles/rails-6.0.gemfile
|
95
77
|
- lib/trestle/search.rb
|
96
78
|
- lib/trestle/search/adapters/chewy_adapter.rb
|
97
79
|
- lib/trestle/search/adapters/sunspot_adapter.rb
|
@@ -100,12 +82,17 @@ files:
|
|
100
82
|
- lib/trestle/search/engine.rb
|
101
83
|
- lib/trestle/search/resource.rb
|
102
84
|
- lib/trestle/search/version.rb
|
85
|
+
- package.json
|
103
86
|
- trestle-search.gemspec
|
87
|
+
- webpack.config.js
|
88
|
+
- yarn.lock
|
104
89
|
homepage: https://www.trestle.io
|
105
90
|
licenses:
|
106
91
|
- LGPL-3.0
|
107
|
-
metadata:
|
108
|
-
|
92
|
+
metadata:
|
93
|
+
homepage_uri: https://www.trestle.io
|
94
|
+
source_code_uri: https://github.com/TrestleAdmin/trestle-search
|
95
|
+
post_install_message:
|
109
96
|
rdoc_options: []
|
110
97
|
require_paths:
|
111
98
|
- lib
|
@@ -113,16 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
100
|
requirements:
|
114
101
|
- - ">="
|
115
102
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
103
|
+
version: 2.3.0
|
117
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
105
|
requirements:
|
119
106
|
- - ">="
|
120
107
|
- !ruby/object:Gem::Version
|
121
108
|
version: '0'
|
122
109
|
requirements: []
|
123
|
-
|
124
|
-
|
125
|
-
signing_key:
|
110
|
+
rubygems_version: 3.0.8
|
111
|
+
signing_key:
|
126
112
|
specification_version: 4
|
127
113
|
summary: Search plugin for the Trestle admin framework
|
128
114
|
test_files: []
|
@@ -1,55 +0,0 @@
|
|
1
|
-
@import "trestle/support";
|
2
|
-
|
3
|
-
.searchbox {
|
4
|
-
float: left;
|
5
|
-
max-width: 25%;
|
6
|
-
padding: 8px 0;
|
7
|
-
|
8
|
-
.input-group-addon {
|
9
|
-
background: none;
|
10
|
-
border: none;
|
11
|
-
padding-left: 0;
|
12
|
-
}
|
13
|
-
|
14
|
-
.form-control {
|
15
|
-
padding-left: 0;
|
16
|
-
|
17
|
-
background: none;
|
18
|
-
box-shadow: none;
|
19
|
-
|
20
|
-
border: none;
|
21
|
-
border-radius: 0;
|
22
|
-
|
23
|
-
border-bottom: 1px solid #ddd;
|
24
|
-
|
25
|
-
transition: border-color 500ms;
|
26
|
-
|
27
|
-
&:focus {
|
28
|
-
border-color: #555;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
@media (max-width: $screen-xs-max) {
|
33
|
-
position: absolute;
|
34
|
-
top: 10px;
|
35
|
-
left: 10px;
|
36
|
-
width: $sidebar-width - 20px;
|
37
|
-
max-width: none;
|
38
|
-
|
39
|
-
padding: 0 12px;
|
40
|
-
background: white;
|
41
|
-
box-shadow: inset 0 1px 1px rgba(black, 0.075);
|
42
|
-
border-radius: 50px;
|
43
|
-
|
44
|
-
.form-control {
|
45
|
-
border-bottom: none;
|
46
|
-
font-size: 16px;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
@media (max-width: $screen-xs-max) {
|
52
|
-
.app-sidebar {
|
53
|
-
padding-top: 40px;
|
54
|
-
}
|
55
|
-
}
|