plok 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/plok/backend/bs5/_autocomplete.scss +43 -0
- data/app/assets/stylesheets/plok/backend/bs5/_sidebar.scss +86 -0
- data/app/assets/stylesheets/plok/backend/bs5/_sidebar_compact.scss +66 -0
- data/lib/plok/search/base.rb +1 -0
- data/lib/plok/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f838461e030f51d8eba803db9c5fe86c0fc7f55e7e885f99ee12965e54b67612
|
4
|
+
data.tar.gz: 46e2dde2267654a7284816d8146ebf6c35dcb614d5772c7a190aaab259e38cbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d53e19acf814d3b5b17ac450d94c9d656d05f6a8c8deb796493af5f173319c5059c7b257cb0f465707edcc61cd33e6fd6e2dcbe53f90533891f39343ab5ae3
|
7
|
+
data.tar.gz: 7dfbca1349bc9f06922cbc8740f66e9d0cf5bbf7dccc347e26a7af80b6655162fcea02d18a7a314429a83b7d0a4dedea7754d484faa6583b4a6bdc5f34150492
|
@@ -0,0 +1,43 @@
|
|
1
|
+
.ui-autocomplete {
|
2
|
+
width: 24rem !important;
|
3
|
+
padding: 0;
|
4
|
+
z-index: 9999;
|
5
|
+
filter: drop-shadow(5px 5px 5px #666);
|
6
|
+
}
|
7
|
+
|
8
|
+
// Shows up during autocompletion sometimes.
|
9
|
+
.ui-helper-hidden-accessible {
|
10
|
+
display: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
li.ui-menu-item {
|
14
|
+
list-style: none;
|
15
|
+
cursor: pointer;
|
16
|
+
border-bottom: 1px solid #ccc;
|
17
|
+
padding: 5px;
|
18
|
+
|
19
|
+
&:last-child {
|
20
|
+
border: none;
|
21
|
+
margin-bottom: 0;
|
22
|
+
padding-bottom: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:hover {
|
26
|
+
background-color: $primary;
|
27
|
+
color: white !important;
|
28
|
+
}
|
29
|
+
|
30
|
+
a.ui-menu-item-wrapper {
|
31
|
+
border: none;
|
32
|
+
|
33
|
+
&.ui-state-active {
|
34
|
+
background: none;
|
35
|
+
color: inherit;
|
36
|
+
text-decoration: none;
|
37
|
+
|
38
|
+
.text-muted {
|
39
|
+
color: white !important;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
.sidebar-menu {
|
2
|
+
bottom: 0;
|
3
|
+
position: fixed;
|
4
|
+
top: 0;
|
5
|
+
width: var(--sidebar-width);
|
6
|
+
transition: .5s;
|
7
|
+
z-index: 10;
|
8
|
+
|
9
|
+
a.logo {
|
10
|
+
display: block;
|
11
|
+
letter-spacing: 0.1em;
|
12
|
+
line-height: 45px;
|
13
|
+
text-decoration: none;
|
14
|
+
text-transform: uppercase;
|
15
|
+
}
|
16
|
+
|
17
|
+
a.home-icon {
|
18
|
+
display: none !important;
|
19
|
+
}
|
20
|
+
|
21
|
+
ul {
|
22
|
+
list-style-type: none;
|
23
|
+
padding-left: 0;
|
24
|
+
|
25
|
+
li {
|
26
|
+
cursor: pointer;
|
27
|
+
|
28
|
+
a {
|
29
|
+
color: #fff; // $color-contrast-light from the Bootstrap gem.
|
30
|
+
display: block;
|
31
|
+
font-size: 1rem;
|
32
|
+
padding: 10px;
|
33
|
+
padding-left: var(--sidebar-menu-item-left-margin);
|
34
|
+
text-decoration: none !important;
|
35
|
+
|
36
|
+
&:hover {
|
37
|
+
background-color: #6c757d; // $secondary from the Bootstrap gem.
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&.top-level {
|
42
|
+
letter-spacing: .05em;
|
43
|
+
position: relative;
|
44
|
+
|
45
|
+
.fa {
|
46
|
+
font-size: 14px;
|
47
|
+
width: var(--sidebar-icon-width);
|
48
|
+
}
|
49
|
+
|
50
|
+
.text {
|
51
|
+
cursor: default;
|
52
|
+
font-size: 0.8rem;
|
53
|
+
padding: 16px 0 12px 0;
|
54
|
+
pointer-events: none;
|
55
|
+
text-transform: uppercase;
|
56
|
+
}
|
57
|
+
|
58
|
+
div[id^=nav-] {
|
59
|
+
h4 {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
ul li {
|
64
|
+
position: relative;
|
65
|
+
|
66
|
+
&::before {
|
67
|
+
content: '\25A1';
|
68
|
+
font-size: 0.4rem;
|
69
|
+
left: calc(var(--sidebar-menu-item-left-margin) + 15px);
|
70
|
+
position: absolute;
|
71
|
+
top: 15px;
|
72
|
+
}
|
73
|
+
|
74
|
+
a {
|
75
|
+
font-size: 0.8rem;
|
76
|
+
padding-left: calc(var(--sidebar-menu-item-left-margin) + var(--sidebar-icon-width) + 10px);
|
77
|
+
text-transform: uppercase;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
.wrapper.compact {
|
2
|
+
.content {
|
3
|
+
margin-left: var(--sidebar-compact-width);
|
4
|
+
|
5
|
+
@include media-breakpoint-down(md) {
|
6
|
+
margin-left: 0;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
.sidebar-menu {
|
11
|
+
width: var(--sidebar-compact-width);
|
12
|
+
|
13
|
+
@include media-breakpoint-down(md) {
|
14
|
+
width: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
a.logo {
|
18
|
+
display: none !important;
|
19
|
+
}
|
20
|
+
|
21
|
+
a.home-icon {
|
22
|
+
display: block !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
ul li.top-level {
|
26
|
+
> a { // The icons in the compact view.
|
27
|
+
padding: 10px 0;
|
28
|
+
text-align: center;
|
29
|
+
}
|
30
|
+
|
31
|
+
h4 {
|
32
|
+
cursor: default;
|
33
|
+
display: inline-block;
|
34
|
+
font-size: .9rem;
|
35
|
+
padding: 13px 0 0 5px;
|
36
|
+
vertical-align: middle;
|
37
|
+
text-transform: uppercase;
|
38
|
+
}
|
39
|
+
|
40
|
+
ul li {
|
41
|
+
&::before {
|
42
|
+
left: calc(var(--sidebar-icon-width) - 5px);
|
43
|
+
}
|
44
|
+
|
45
|
+
a {
|
46
|
+
padding-left: calc(var(--sidebar-icon-width) + 10px);
|
47
|
+
|
48
|
+
&:hover {
|
49
|
+
background-color: $primary;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.fa { font-size: 20px; }
|
55
|
+
.text { display: none; }
|
56
|
+
|
57
|
+
.collapse {
|
58
|
+
background-color: $secondary;
|
59
|
+
left: var(--sidebar-compact-width);
|
60
|
+
position: absolute;
|
61
|
+
top: 0;
|
62
|
+
width: 240px;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
data/lib/plok/search/base.rb
CHANGED
@@ -73,6 +73,7 @@ module Plok::Search
|
|
73
73
|
# a searchable result. Otherwise matches from both an indexed
|
74
74
|
# Page#title and Page#description would be in the result set.
|
75
75
|
@search_indices ||= SearchIndex
|
76
|
+
.select('searchable_type, searchable_id, namespace')
|
76
77
|
.joins('INNER JOIN search_modules ON search_indices.searchable_type = search_modules.klass')
|
77
78
|
.where('search_modules.searchable': true)
|
78
79
|
.where('search_modules.klass in (?)', modules)
|
data/lib/plok/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plok
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davy Hellemans
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -98,6 +98,9 @@ files:
|
|
98
98
|
- app/assets/stylesheets/plok/_autocomplete.scss
|
99
99
|
- app/assets/stylesheets/plok/_sidebar.scss
|
100
100
|
- app/assets/stylesheets/plok/_sidebar_compact.scss
|
101
|
+
- app/assets/stylesheets/plok/backend/bs5/_autocomplete.scss
|
102
|
+
- app/assets/stylesheets/plok/backend/bs5/_sidebar.scss
|
103
|
+
- app/assets/stylesheets/plok/backend/bs5/_sidebar_compact.scss
|
101
104
|
- app/controllers/catch_all_controller.rb
|
102
105
|
- app/controllers/plok/version_controller.rb
|
103
106
|
- app/models/concerns/plok/loggable.rb
|
@@ -168,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
171
|
- !ruby/object:Gem::Version
|
169
172
|
version: '0'
|
170
173
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
174
|
+
rubygems_version: 3.4.8
|
172
175
|
signing_key:
|
173
176
|
specification_version: 4
|
174
177
|
summary: CMS basics
|