vipassana-design-standards 0.0.6 → 0.0.8
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/javascripts/index.js +1 -1
- data/lib/vipassana/logo_helper.rb +4 -4
- data/lib/vipassana/logos_inline_svg.rb +3 -3
- data/lib/vipassana/translations.rb +1 -1
- data/package.json +7 -0
- data/vipassana-design-standards.gemspec +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a267b93fc06bce6d12485387de08111b9c5bac516518bc3c4b7c229611c2497d
|
4
|
+
data.tar.gz: e1ddb6f3f4d2a8703619b3be8195ae4aba74cb04ce83e8ee67cdfeb881b62250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f8e5091334c46e4e6d2a0165a6a97a00f39d2a84dc6995ac26aaf4b58e5b08d06a2b66b6c5ca015a49987eba313bcc9123557de8ef44150324cec288a59459f
|
7
|
+
data.tar.gz: 0f6c3857f55bdacc69b079355bb3c6ccd35482641e4fe06feeeae90a51058db4530d87bd4a90413121d14318ef2261c960fa2d37b6be6263c81cd4f3cc548511
|
@@ -315,7 +315,7 @@ export default {
|
|
315
315
|
# This file has been generated by design-standards.dhamma.org wesbite
|
316
316
|
# index.js#generateAllInlineSVG
|
317
317
|
|
318
|
-
|
318
|
+
VIPASSANA_SVGS = ${JSON.stringify(svgs)}
|
319
319
|
`
|
320
320
|
var blob = new Blob([result], {type: "text/plain;charset=utf-8"})
|
321
321
|
fileSaver.saveAs(blob, "logos_inline_svg.rb")
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Vipassana
|
2
2
|
module LogoHelper
|
3
3
|
require "vipassana/logos_inline_svg.rb"
|
4
|
-
require "vipassana/
|
4
|
+
require "vipassana/translations.rb"
|
5
5
|
|
6
6
|
def vipassana_logo_svg(locale: I18n.locale, disposition: "normal", height: nil, width: nil)
|
7
7
|
height = 70 if height.nil? && width.nil?
|
8
8
|
|
9
|
-
data =
|
9
|
+
data = VIPASSANA_SVGS[locale.to_sym] || SVGS[:en]
|
10
10
|
string = data[disposition.to_sym] || data[:normal]
|
11
11
|
|
12
12
|
string.gsub!("<svg", "<svg height=\"#{height}\"") if height.present?
|
@@ -16,7 +16,7 @@ module Vipassana
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def vipassana_logo_html(locale: I18n.locale, disposition: "auto", size: '18', tagline: true, dark: false)
|
19
|
-
trans =
|
19
|
+
trans = VIPASSANA_TRANSLATIONS[locale.to_sym]
|
20
20
|
result = <<-HTML
|
21
21
|
<div class="vipassana-logo"
|
22
22
|
data-disposition="#{disposition}"
|
@@ -24,7 +24,7 @@ module Vipassana
|
|
24
24
|
data-dark-mode="#{dark}"
|
25
25
|
data-reverse="#{trans[:reverse]}"
|
26
26
|
style="font-size: #{size}px">
|
27
|
-
<img class="logo-wheel"
|
27
|
+
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/Dhamma-Wheel.svg" />
|
28
28
|
<div class="logo-text">
|
29
29
|
<h1 class="logo-title">
|
30
30
|
<span data-start-with="#{trans[:vipassana_meditation].at(0).downcase}">
|