card-mod-layout 0.15.0 → 0.15.1
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/assets/style/modal.scss +1 -0
- data/set/abstract/account_dropdown.rb +18 -11
- data/set/all/overlay.rb +3 -3
- data/set/right/enabled_roles.rb +6 -1
- data/set/self/layout_options.rb +1 -1
- metadata +12 -12
- /data/{locales → config/locales}/de.yml +0 -0
- /data/{locales → config/locales}/en.yml +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7551057bc088cc3d56c23c4f289538cd69e173910cddf566f03cebd74b5fff53
|
4
|
+
data.tar.gz: 7af3417d1a7105111b640d89039f9d45d08943cca6faa1eb5200e2134d36ba15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2dfbd8c3703421c22338e2cac1de19474c2824f9110a03b2fafc800a895add2032fa20b46633ed36c3657096c6d1b364a92ebde54db87ce4cf208cb7b9a499
|
7
|
+
data.tar.gz: 531e532901ebed6a6ff2a70aa88c3c2f352a0e3a25ca756d5349504d2c2de8048abcc4e5c47ae6516364ea415271d16759e00aa0789e776c070edfaabcad6e61
|
data/assets/style/modal.scss
CHANGED
@@ -1,29 +1,36 @@
|
|
1
1
|
format :html do
|
2
|
-
def link_to_mycard
|
3
|
-
link_to_card Auth.current.name,
|
2
|
+
def link_to_mycard text=nil
|
3
|
+
link_to_card Auth.current.name, text,
|
4
4
|
id: "my-card-link", class: "nav-link #{classy('my-card')}"
|
5
5
|
end
|
6
6
|
|
7
|
-
def account_dropdown
|
7
|
+
def account_dropdown
|
8
8
|
class_up "dropdown-toggle-split", "nav-link"
|
9
|
-
split_dropdown_button
|
10
|
-
|
11
|
-
[[Auth.current, :account_settings], "Account"],
|
12
|
-
[:signin, t("account_sign_out"), { path: { action: :delete } }]
|
13
|
-
] + account_dropdown_roles(&render_role_item)
|
9
|
+
split_dropdown_button account_dropdown_label do
|
10
|
+
account_dropdown_items
|
14
11
|
end
|
15
12
|
end
|
16
13
|
|
17
14
|
private
|
18
15
|
|
19
|
-
def
|
16
|
+
def account_dropdown_label
|
17
|
+
link_to_mycard
|
18
|
+
end
|
19
|
+
|
20
|
+
def account_dropdown_items
|
21
|
+
[[[Auth.current, :account_settings], "Account"],
|
22
|
+
[:signin, t("account_sign_out"), { path: { action: :delete } }]] +
|
23
|
+
account_dropdown_roles
|
24
|
+
end
|
25
|
+
|
26
|
+
def account_dropdown_roles
|
20
27
|
return [] unless special_roles?
|
21
28
|
|
22
|
-
[dropdown_header("Roles")] + account_dropdown_role_items
|
29
|
+
[dropdown_header("Roles")] + account_dropdown_role_items
|
23
30
|
end
|
24
31
|
|
25
32
|
def account_dropdown_role_items
|
26
|
-
Auth.current_roles.map { |role|
|
33
|
+
Auth.current_roles.map { |role| [role] }
|
27
34
|
end
|
28
35
|
|
29
36
|
def special_roles?
|
data/set/all/overlay.rb
CHANGED
@@ -29,7 +29,7 @@ format :html do
|
|
29
29
|
view :overlay_help_link, cache: :never, unknown: true do
|
30
30
|
opts = help_popover_opts
|
31
31
|
add_open_guide_opts opts
|
32
|
-
overlay_menu_link
|
32
|
+
overlay_menu_link :help, opts
|
33
33
|
end
|
34
34
|
|
35
35
|
def add_open_guide_opts opts
|
@@ -44,7 +44,7 @@ format :html do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def slotify_overlay_link
|
47
|
-
overlay_menu_link
|
47
|
+
overlay_menu_link :new_window, card: card
|
48
48
|
end
|
49
49
|
|
50
50
|
def close_overlay_link
|
@@ -69,7 +69,7 @@ format :html do
|
|
69
69
|
|
70
70
|
def overlay_menu_link icon, args={}
|
71
71
|
add_class args, "border-light text-dark p-1 ms-1"
|
72
|
-
button_link
|
72
|
+
button_link icon_tag(icon), args.merge(btn_type: "outline-secondary")
|
73
73
|
end
|
74
74
|
|
75
75
|
def overlay_header title=nil
|
data/set/right/enabled_roles.rb
CHANGED
@@ -50,8 +50,9 @@ format :html do
|
|
50
50
|
|
51
51
|
def checkbox_input
|
52
52
|
card.ensure_roles
|
53
|
+
voo.show! :role_item_checkbox
|
53
54
|
wrap_with :div, class: "pointer-checkbox-list" do
|
54
|
-
account_dropdown
|
55
|
+
account_dropdown
|
55
56
|
end
|
56
57
|
end
|
57
58
|
|
@@ -60,4 +61,8 @@ format :html do
|
|
60
61
|
checked: card.item_names.include?(role_name),
|
61
62
|
option_name: role_name
|
62
63
|
end
|
64
|
+
|
65
|
+
def account_dropdown_role_items
|
66
|
+
Auth.current_roles.map { |role| role_item_checkbox role }
|
67
|
+
end
|
63
68
|
end
|
data/set/self/layout_options.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,56 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.105.
|
21
|
+
version: 1.105.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.105.
|
28
|
+
version: 1.105.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-account
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.15.
|
35
|
+
version: 0.15.1
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.15.
|
42
|
+
version: 0.15.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: card-mod-session
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.15.
|
49
|
+
version: 0.15.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.15.
|
56
|
+
version: 0.15.1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: card-mod-tabs
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.15.
|
63
|
+
version: 0.15.1
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.15.
|
70
|
+
version: 0.15.1
|
71
71
|
description: ''
|
72
72
|
email:
|
73
73
|
- info@decko.org
|
@@ -81,6 +81,8 @@ files:
|
|
81
81
|
- assets/style/layout.scss
|
82
82
|
- assets/style/modal.scss
|
83
83
|
- assets/style/overlay.scss
|
84
|
+
- config/locales/de.yml
|
85
|
+
- config/locales/en.yml
|
84
86
|
- data/files/mod_layout_script_asset_output/file.js
|
85
87
|
- data/real.yml
|
86
88
|
- data/test.yml
|
@@ -89,8 +91,6 @@ files:
|
|
89
91
|
- lib/card/layout/code_layout.rb
|
90
92
|
- lib/card/layout/proc_layout.rb
|
91
93
|
- lib/card/layout/unknown_layout.rb
|
92
|
-
- locales/de.yml
|
93
|
-
- locales/en.yml
|
94
94
|
- set/abstract/account_dropdown.rb
|
95
95
|
- set/abstract/items.rb
|
96
96
|
- set/abstract/list.rb
|
File without changes
|
File without changes
|