coveragebook_components 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/build/coco/app.css +21 -23
- data/app/assets/build/coco/app.js +7980 -888
- data/app/assets/build/coco/book.js +35 -2
- data/app/assets/js/base/polyfills/request-submit.js +39 -0
- data/app/assets/js/base/setup.js +2 -0
- data/app/assets/js/helpers/screenshot.js +20 -4
- data/app/components/coco/app/blocks/slide_editor/slide_editor.css +4 -11
- data/app/components/coco/app/blocks/slide_editor/slide_editor.html.erb +33 -29
- data/app/components/coco/app/blocks/slide_editor/slide_editor.js +50 -81
- data/app/components/coco/app/blocks/slide_editor/slide_editor.rb +5 -5
- data/app/components/coco/app/elements/button/button.css +11 -11
- data/app/components/coco/base/button/button.css +3 -3
- data/app/components/coco/base/button/button.js +1 -3
- data/app/components/coco/component.rb +1 -0
- data/app/components/coco/concerns/has_name.rb +1 -1
- data/app/components/coco/concerns/translatable.rb +18 -0
- data/config/credentials/production.key +1 -0
- data/config/credentials/production.yml.enc +1 -0
- data/config/icons.json +886 -0
- data/config/locales/coco.en.yml +22 -0
- data/config/tailwind.app.config.cjs +21 -0
- data/config/tailwind.base.config.cjs +79 -0
- data/config/tailwind.book.config.cjs +20 -0
- data/config/tokens.cjs +229 -0
- data/config/utils.cjs +16 -0
- data/lib/coco.rb +1 -1
- metadata +13 -2
@@ -31,11 +31,8 @@ export default CocoComponent("button", (data = {}) => {
|
|
31
31
|
return;
|
32
32
|
}
|
33
33
|
|
34
|
-
this.setTooltipText();
|
35
34
|
this.$root.setAttribute("data-collapsed", collapsed ? "true" : "false");
|
36
35
|
});
|
37
|
-
|
38
|
-
this.$watch("$options.state", () => this.setTooltipText());
|
39
36
|
},
|
40
37
|
|
41
38
|
setTooltipText() {
|
@@ -178,6 +175,7 @@ export default CocoComponent("button", (data = {}) => {
|
|
178
175
|
root: {
|
179
176
|
"x-options": "options",
|
180
177
|
"x-tooltip": "tooltipText",
|
178
|
+
"x-effect": "setTooltipText",
|
181
179
|
"@confirmation:confirm": "approveAndRun",
|
182
180
|
"@confirmation:cancel": "cancelConfirmation",
|
183
181
|
"@dropdown:show": "setState('active')",
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Coco
|
2
|
+
module Concerns
|
3
|
+
module Translatable
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
def tt(key)
|
7
|
+
t("coco.#{self.class.i18n_path}.#{key}")
|
8
|
+
end
|
9
|
+
|
10
|
+
class_methods do
|
11
|
+
def i18n_path(path = nil)
|
12
|
+
@_i18n_path = path unless path.nil?
|
13
|
+
@_i18n_path ||= component_path.underscore.tr("/", ".")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
265f649a303f0c2cbbfc9cfece75a181
|
@@ -0,0 +1 @@
|
|
1
|
+
j8VyKMx4mwRZArG1zS/oqUw1F6/UD0hQQ5sujzeTTBlNAuCTkLiuoiyAXnJV9FtR90T765ll/50wFbw0MFtk8nAzPJg=--TOqZsXP2UCs2CSMx--xYL00fHdXoCd+/xpGro01g==
|