pg_rails 7.6.7 → 7.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0c1496f0173c6ee43cc92f45a5ed539ad58b308533f9fb4fe0f04621882d6de
4
- data.tar.gz: 6cc98c258ec0b585e705162da82386cb10f0726800641eafac229bad90759af4
3
+ metadata.gz: 61bc441e108885c9686261c08fc110a3096fd0da5f43b78c5b995f2d6a0ae69b
4
+ data.tar.gz: b016d6b41b1a814e135c0e15049469ea61c37a056bc4e9545b8946195d0e7164
5
5
  SHA512:
6
- metadata.gz: 6638f89154fb33f4f840cee25e54d4fc7a544a3f7d65505c779e70d1830b360722ddba32b3e4b3b29e027fa04b76c06740ba687411eb95f055d049f9196dedb8
7
- data.tar.gz: d2c19217475e137c8e2a8177a2325e3ac184d634740b580972bdd2be777c8e0ac6b48b2462cd6b7f5ca21c14828d9bb4d8263fe4eedd24421079bc205ecabc8c
6
+ metadata.gz: 31fc27bf74fce36435f8e23283d5612f893baca07f8d90ac26df6bfe870a7aa74df8b91b116445c680da11e8bebb1db35c7dba2f3ed46ab9ca458d72636f1ca8
7
+ data.tar.gz: 0a74fc77e43ef5000cd6acce42f1f48e00bcb07f80847c8a2b3c9c9c2e750ef96dceb51418092f1e3eb75ae160771b4ed4438c524c570dfa8b855a20462f56ba
@@ -34,6 +34,10 @@ nav[aria-label=breadcrumb] a {
34
34
  border: 1px solid $red;
35
35
  }
36
36
 
37
+ .trix-content figure a:hover {
38
+ text-decoration: underline;
39
+ }
40
+
37
41
  input[disabled] {
38
42
  background-color: #e9e9ed;
39
43
  color: black;
@@ -8,12 +8,6 @@ class InlineComponent < ViewComponent::Base
8
8
  super
9
9
  end
10
10
 
11
- def before_render
12
- return unless controller.in_modal?
13
-
14
- controller.instance_variable_set(:@using_modal, true)
15
- end
16
-
17
11
  SUFIJOS = %i[f text].freeze
18
12
  def unsuffixed(attribute)
19
13
  ret = attribute.to_s.dup
@@ -1 +1,16 @@
1
- <%= image_tag blob %>
1
+ <figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
2
+ <% if blob.representable? %>
3
+ <%= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
4
+ <% end %>
5
+
6
+ <%= link_to rails_blob_path(blob) do %>
7
+ <figcaption class="attachment__caption">
8
+ <% if caption = blob.try(:caption) %>
9
+ <%= caption %>
10
+ <% else %>
11
+ <span class="attachment__name"><%= blob.filename %></span>
12
+ <span class="attachment__size"><%= number_to_human_size blob.byte_size %></span>
13
+ <% end %>
14
+ </figcaption>
15
+ <% end %>
16
+ </figure>
@@ -5,6 +5,30 @@ import './elements'
5
5
 
6
6
  import { Turbo } from '@hotwired/turbo-rails'
7
7
 
8
+ document.addEventListener('trix-before-initialize', (ev) => {
9
+ Trix.config.lang.attachFiles = "Adjuntar archivos"
10
+ Trix.config.lang.bold = "Negrita"
11
+ Trix.config.lang.bullets = "Lista sin números"
12
+ Trix.config.lang.byte = "Byte"
13
+ Trix.config.lang.bytes = "Bytes"
14
+ Trix.config.lang.captionPlaceholder = "Agregá un subtítulo"
15
+ Trix.config.lang.code = "Monospace"
16
+ Trix.config.lang.heading1 = "Título"
17
+ Trix.config.lang.indent = "Incrementar nivel"
18
+ Trix.config.lang.italic = "Cursiva"
19
+ Trix.config.lang.link = "Linkear"
20
+ Trix.config.lang.numbers = "Lista numerada"
21
+ Trix.config.lang.outdent = "Disminuir nivel"
22
+ Trix.config.lang.quote = "Cita"
23
+ Trix.config.lang.redo = "Rehacer"
24
+ Trix.config.lang.remove = "Quitar"
25
+ Trix.config.lang.strike = "Tachar"
26
+ Trix.config.lang.undo = "Deshacer"
27
+ Trix.config.lang.unlink = "Deslinkear"
28
+ Trix.config.lang.url = "URL"
29
+ Trix.config.lang.urlPlaceholder = "Ingresá una URL"
30
+ })
31
+
8
32
  document.addEventListener('pg:record-created', (ev) => {
9
33
  Turbo.visit(window.location)
10
34
  setTimeout(() => {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.6.7'
4
+ VERSION = '7.6.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.7
4
+ version: 7.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso