vipassana-design-standards 0.0.18 → 0.0.20

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.
Files changed (57) hide show
  1. package/HOW_TO_PUBLISH.md +1 -3
  2. package/about.html +66 -0
  3. package/dist/0.0.19/css/bootstrap5-theme.css +12637 -0
  4. package/dist/0.0.19/css/bootstrap5-theme.css.map +1 -0
  5. package/dist/0.0.19/css/bootstrap5-theme.min.css +6 -0
  6. package/dist/0.0.19/css/bootstrap5-theme.rtl.css +12600 -0
  7. package/dist/0.0.19/css/bootstrap5-theme.rtl.min.css +6 -0
  8. package/dist/0.0.19/css/fonts-gu.css +65 -0
  9. package/dist/0.0.19/css/fonts-gu.min.css +1 -0
  10. package/dist/0.0.19/css/fonts-ja.css +2399 -0
  11. package/dist/0.0.19/css/fonts-ja.min.css +1 -0
  12. package/dist/0.0.19/css/fonts-km.css +2399 -0
  13. package/dist/0.0.19/css/fonts-km.min.css +1 -0
  14. package/dist/0.0.19/css/fonts.css +472 -0
  15. package/dist/0.0.19/css/fonts.css.map +1 -0
  16. package/dist/0.0.19/css/fonts.min.css +1 -0
  17. package/dist/0.0.19/css/logo.css +135 -0
  18. package/dist/0.0.19/css/logo.css.map +1 -0
  19. package/dist/0.0.19/css/logo.min.css +1 -0
  20. package/dist/0.0.19/js/bootstrap5-theme.min.js +37 -0
  21. package/dist/0.0.19/js/bootstrap5-theme.min.js.map +1 -0
  22. package/dist/0.0.20/css/bootstrap5-theme.css +12637 -0
  23. package/dist/0.0.20/css/bootstrap5-theme.css.map +1 -0
  24. package/dist/0.0.20/css/bootstrap5-theme.min.css +6 -0
  25. package/dist/0.0.20/css/bootstrap5-theme.rtl.css +12600 -0
  26. package/dist/0.0.20/css/bootstrap5-theme.rtl.min.css +6 -0
  27. package/dist/0.0.20/css/fonts-gu.css +65 -0
  28. package/dist/0.0.20/css/fonts-gu.min.css +1 -0
  29. package/dist/0.0.20/css/fonts-ja.css +2399 -0
  30. package/dist/0.0.20/css/fonts-ja.min.css +1 -0
  31. package/dist/0.0.20/css/fonts-km.css +2399 -0
  32. package/dist/0.0.20/css/fonts-km.min.css +1 -0
  33. package/dist/0.0.20/css/fonts.css +472 -0
  34. package/dist/0.0.20/css/fonts.css.map +1 -0
  35. package/dist/0.0.20/css/fonts.min.css +1 -0
  36. package/dist/0.0.20/css/logo.css +135 -0
  37. package/dist/0.0.20/css/logo.css.map +1 -0
  38. package/dist/0.0.20/css/logo.min.css +1 -0
  39. package/dist/0.0.20/js/bootstrap5-theme.min.js +37 -0
  40. package/dist/0.0.20/js/bootstrap5-theme.min.js.map +1 -0
  41. package/dist/0.0.20/js/helper.js +96 -0
  42. package/dist/0.0.20/js/i18n.js +309 -0
  43. package/dist/css/bootstrap5-theme.css +5 -0
  44. package/dist/css/bootstrap5-theme.css.map +1 -1
  45. package/dist/css/bootstrap5-theme.min.css +1 -1
  46. package/dist/css/bootstrap5-theme.rtl.css +5 -0
  47. package/dist/css/bootstrap5-theme.rtl.min.css +1 -1
  48. package/dist/js/helper.js +96 -0
  49. package/dist/js/i18n.js +309 -0
  50. package/index.html +45 -17
  51. package/package.json +7 -4
  52. package/replace-version.js +24 -0
  53. package/src/javascripts/helper.js +96 -0
  54. package/src/javascripts/index.js +6 -3
  55. package/src/stylesheets/custom-bootstrap-utilities.scss +6 -0
  56. package/src/stylesheets/index.css +11 -2
  57. package/vipassana-design-standards.gemspec +3 -3
@@ -0,0 +1,96 @@
1
+ import i18n from './i18n.js'
2
+
3
+ function isRtl(locale) {
4
+ return ['ar', 'fa', 'he'].includes(locale)
5
+ }
6
+
7
+ export function vdsFaviconTag() {
8
+ return `<link rel="shortcut icon" type="image/x-icon" href="https://design-standards.dhamma.org/dist/favicon.png">`
9
+ }
10
+
11
+ function vdsAssetUrl(path, localhost = false) {
12
+ // For localhost dev, just run vscode liveserver
13
+ if (localhost) return `http://localhost:5500/dist/${path}`
14
+
15
+ return `https://design-standards.dhamma.org/dist/0.0.20/${path}`
16
+ }
17
+
18
+ function stylesheetLinkTag(url) {
19
+ return `<link rel="stylesheet" type="text/css" href="${url}">`
20
+ }
21
+
22
+ function javascriptIncludeTag(url) {
23
+ return `<script type="text/javascript" src="${url}"></script>`
24
+ }
25
+
26
+ export function vdsBootstrapThemeCssTag(locale, localhost = false) {
27
+ let tags = [
28
+ stylesheetLinkTag(vdsAssetUrl(`css/bootstrap5-theme${isRtl(locale) ? '.rtl' : ''}.min.css`, localhost))
29
+ ]
30
+ // Add specific fonts for languages not compatible with Footlight and Lato
31
+ if (['gu', 'ja', 'km'].includes(locale))
32
+ tags.push(stylesheetLinkTag(vdsAssetUrl(`css/fonts-${locale}.min.css`)))
33
+
34
+ return tags.join('')
35
+ }
36
+
37
+ export function vdsBootstrapThemeJsTag(locale, localhost = false) {
38
+ return javascriptIncludeTag(vdsAssetUrl("js/bootstrap5-theme.min.js", localhost))
39
+ }
40
+
41
+ export function vdsLogo(locale, disposition = "default", size = '18', tagline = true, dark = false) {
42
+ let trans = i18n[locale] || i18n.en
43
+
44
+ if (disposition == "mobile") {
45
+ disposition = "left-two-lines"
46
+ tagline = false
47
+ }
48
+
49
+ return `
50
+ <div class="vipassana-logo"
51
+ data-disposition="${disposition}"
52
+ data-tagline="${tagline}"
53
+ data-dark-mode="${dark}"
54
+ data-reverse="${trans.reverse}"
55
+ style="font-size: ${size}px">
56
+ <img class="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
57
+ <div class="logo-text">
58
+ <h1 class="logo-title">
59
+ <span data-start-with="${trans.vipassana_meditation.charAt(0).toLowerCase()}">
60
+ ${trans.vipassana_meditation}
61
+ </span>
62
+ <span class="logo-space">&nbsp;</span>
63
+ <span>${trans.as_taught}</span>
64
+ </h1>
65
+ <div class="logo-subtitle">${trans.in_the_tradition}</div>
66
+ </div>
67
+ </div>
68
+ `
69
+ }
70
+
71
+ // Some icons from bootstrap icons, so all websites use the same
72
+ export function vdsIconLocale() {
73
+ return `
74
+ <svg xmlns="http://www.w3.org/2000/svg" width="1.2em" height="1.2em" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16">
75
+ <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/>
76
+ <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/>
77
+ </svg>
78
+ `
79
+ }
80
+
81
+ export function vdsIconAccount() {
82
+ return `
83
+ <svg xmlns="http://www.w3.org/2000/svg" width="2.2em" height="2.2em" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
84
+ <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
85
+ <path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
86
+ </svg>
87
+ `
88
+ }
89
+
90
+ export function vdsIconMenu() {
91
+ return `
92
+ <svg xmlns="http://www.w3.org/2000/svg" width="1.8em" height="1.8em" fill="currentColor" class="bi bi-list" viewBox="0 0 16 16">
93
+ <path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
94
+ </svg>
95
+ `
96
+ }
@@ -0,0 +1,309 @@
1
+ export default {
2
+ "en": {
3
+ "language": "English",
4
+ "vipassana_meditation": "Vipassana Meditation",
5
+ "as_taught": "as Taught by S.N. Goenka",
6
+ "in_the_tradition": "in the Tradition of Sayagyi U Ba Khin",
7
+ "full": "Vipassana Meditation As Taught By S.N. Goenka in the Tradition of Sayagyi U Ba Khin",
8
+ },
9
+ "bg": {
10
+ "language": "Bulgarian",
11
+ "vipassana_meditation": "Випассана Медитация",
12
+ "as_taught": "както се Преподава от С.Н. Гоенка",
13
+ "in_the_tradition": "в Традицията на Саяджи У Ба Кин",
14
+ "full": "Випассана Медитация, както се преподава от С. Н. Гоенка, в традицията на Саяджи У Ба Кин",
15
+ },
16
+ "ca": {
17
+ "language": "Catalan",
18
+ "vipassana_meditation": "Meditació Vipassana",
19
+ "as_taught": "tal com l’ensenya S.N. Goenka",
20
+ "in_the_tradition": "en la tradició de Sayagyi U Ba Khin",
21
+ "full": "Meditació Vipassana tal com l’ensenya S.N. Goenka en la tradició de Sayagyi U Ba Khin"
22
+ },
23
+ "cs": {
24
+ "language": "Czech",
25
+ "vipassana_meditation": "Meditace Vipassana",
26
+ "as_taught": "jak ji Vyučoval S.N. Goenka",
27
+ "in_the_tradition": "podle Tradice Sayagyi U Ba Khin",
28
+ "full": "Meditace vipassana, jak ji vyučuje S. N. Goenka podle tradice Sayagyi U Ba Khina"
29
+ },
30
+ "de": {
31
+ "language": "German",
32
+ "vipassana_meditation": "Vipassana Meditation",
33
+ "as_taught": "wie Gelehrt von S.N. Goenka",
34
+ "in_the_tradition": "in der Tradition von Sayagyi U Ba Khin",
35
+ "full": "Vipassana Meditation wie gelehrt von S.N. Goenka in der Tradition von Sayagyi U Ba Khin"
36
+ },
37
+ "el": {
38
+ "language": "Greek",
39
+ "vipassana_meditation": "Βιπάσσανα Διαλογισμός",
40
+ "as_taught": "Όπως διδάσκει ο S.N. Goenka",
41
+ "in_the_tradition": "στην παράδοση του Sayagyi U Ba Khin",
42
+ "full": "Διαλογισμός Βιπάσσανα όπως διδάσκεται από τον S.N.Goenka και τους βοηθούς του, κατά την παράδοση του Sayagyi U Ba Khin"
43
+ },
44
+ "es": {
45
+ "language": "Spanish",
46
+ "vipassana_meditation": "Meditación Vipassana",
47
+ "as_taught": "tal y como la Enseña S.N. Goenka",
48
+ "in_the_tradition": "en la Tradición de Sayagyi U Ba Khin",
49
+ "full": "Meditación Vipassana tal y como la enseña S.N. Goenka en la tradición de Sayagyi U Ba Khin",
50
+ },
51
+ "fa": {
52
+ "rtl": true,
53
+ "language": "Persian (Farsi)",
54
+ "vipassana_meditation": "ویپاسانا مراقبه",
55
+ "as_taught": "همانطور که توسط س.ن. گوئنکا تدریس شده است",
56
+ "in_the_tradition": "به سنت سایاجی اوباکین",
57
+ "full": "مراقبه ویپاسانا با روش آموزش س. ن. گوینکا در سنت سایاجی اوباکین"
58
+ },
59
+ "fi": {
60
+ "language": "Finnish",
61
+ "vipassana_meditation": "Vipassana Meditaatio",
62
+ "as_taught": "S.N. Goenka opettamana",
63
+ "in_the_tradition": "Sayagyi U Ba Khinin Traditiossa",
64
+ "full": "Vipassanameditaatio S.N. Goenkan opettamana, Sayagyi U Ba Khinin traditiossa",
65
+ },
66
+ "fr": {
67
+ "language": "French",
68
+ "vipassana_meditation": "Méditation Vipassana",
69
+ "as_taught": "telle qu'enseignée par S.N. Goenka",
70
+ "in_the_tradition": "dans la Tradition de Sayagyi U Ba Khin",
71
+ "full": "Méditation Vipassana telle qu'enseignée par S.N.Goenka dans la tradition de Sayagyi U Ba Khin",
72
+ },
73
+ "gu": {
74
+ "reverse": true,
75
+ "language": "Gujarati",
76
+ "vipassana_meditation": "વિપશ્યના સાધના",
77
+ "as_taught": "આચાર્ય ગોયન્કાજી દ્વારા શીખવવામાં",
78
+ "vipassana_as_taught": "આચાર્ય ગોયન્કાજી દ્વારા શીખવવામાં આવતી વિપશ્યના સાધના",
79
+ "in_the_tradition": "સયાજી ઉ બા ખિનની પરંપરામાં",
80
+ "full": "સયાજી ઉ બા ખિનની પરંપરામાં આચાર્ય ગોયન્કાજી દ્વારા શીખવવામાં આવતી વિપશ્યના સાધના"
81
+ },
82
+ "he": {
83
+ "rtl": true,
84
+ "reverse": true,
85
+ "language": "Hebrew",
86
+ "vipassana_meditation": "מדיטציית ויפאסנה",
87
+ "as_taught": "כפי שמלמד ס.נ. גואנקה",
88
+ "in_the_tradition": "במסורתו של סיאג’י או-בה-קין",
89
+ "full": "מדיטציית ויפאסנה כפי שמלמד ס.נ. גואנקה במסורתו של סיאג'י או בה קין"
90
+ },
91
+ "hi": {
92
+ "reverse": true,
93
+ "language": "Hindi",
94
+ "vipassana_meditation": "विपश्यना साधना",
95
+ "as_taught": "आचार्य गोयन्काजी द्वारा सिखायी गयी",
96
+ "vipassana_as_taught": "आचार्य गोयन्काजी द्वारा सिखायी गयी विपश्यना साधना",
97
+ "in_the_tradition": "सयाजी ऊ बा खिन की परंपरा में",
98
+ "full": "सयाजी उ बा खिन की परंपरा में आचार्य गोयन्काजी द्वारा सिखायी गयी विपश्यना साधना"
99
+ },
100
+ "hu": {
101
+ "language": "Hungarian",
102
+ "vipassana_meditation": "Vipassana Meditáció",
103
+ "as_taught": "S.N. Goenka Tanítása szerint",
104
+ "in_the_tradition": "Sayagyi U Ba Khin Hagyományvonalán",
105
+ "full": "Vipassana meditáció S.N. Goenkának a Sayagyi U Ba Khin hagyományvonalán alapuló tanítása szerint"
106
+ },
107
+ "id": {
108
+ "language": "Indonesian",
109
+ "vipassana_meditation": "Vipassana Meditasi",
110
+ "as_taught": "sebagaimana Diajarkan oleh S.N. Goenka",
111
+ "in_the_tradition": "dalam Tradisi Sayagyi U Ba Khin",
112
+ "full": "Meditasi Vipassana sebagaimana diajarkan oleh S.N. Goenka dengan tradisi Sayagyi U Ba Khin"
113
+ },
114
+ "it": {
115
+ "language": "Italian",
116
+ "vipassana_meditation": "Meditazione Vipassana",
117
+ "as_taught": "come Insegnata da S.N. Goenka",
118
+ "in_the_tradition": "nella Tradizione di Sayagyi U Ba Khin",
119
+ "full": "Meditazione Vipassana come insegnata da S. N. Goenka nella tradizione di Sayagyi U Ba Khin"
120
+ },
121
+ "ja": {
122
+ "reverse": true,
123
+ "language": "Japanese",
124
+ "vipassana_meditation": "ヴィパッサナー 瞑想",
125
+ "as_taught": "S.N.ゴエンカの指導による",
126
+ "in_the_tradition": "サヤジ・ウ・バ・キンの伝統のもと",
127
+ "vipassana_as_taught": "S.N.ゴエンカの指導によるヴィパッサナー瞑想",
128
+ "full": "サヤジ・ウ・バ・キンの伝統のもと S.N.ゴエンカの指導によるヴィパッサナー瞑想"
129
+ },
130
+ "km": {
131
+ "language": "Khmer",
132
+ "vipassana_meditation": "វិបស្សនា កម្មដ្ឋាន",
133
+ "as_taught": "បង្រៀន​ដោយ​លោក ស.ន. ហ្គោឥនកា",
134
+ "in_the_tradition": "តាម​ប្រពៃណី​របស់​លោក សាយាគ្យី អ៊ូបាឃិន",
135
+ "vipassana_as_taught": "វិបស្សនាកម្មដ្ឋានតាមការបង្រៀនដោយលោក ស.ន. ហ្គោឥនកា",
136
+ "full": "វិបស្សនា​កម្មដ្ឋាន បង្រៀន​ដោយ​លោក ស.ន. ហ្គោឥនកា តាម​ប្រពៃណី​របស់​លោក សាយាគ្យី អ៊ូបាឃិន"
137
+ },
138
+ "ko": {
139
+ "reverse": true,
140
+ "language": "Korean",
141
+ "vipassana_meditation": "위빳사나 명상",
142
+ "as_taught": "고엥까 선생님이 가르치는",
143
+ "in_the_tradition": "사야지 우바킨의 전통에 따라",
144
+ "vipassana_as_taught": "고엥까 선생님이 가르치는 위빳사나 명상",
145
+ "full": "사야지 우 바 킨의 전통에 따라 S.N. 고엥까 (고엔카) 님이 가르치는 위빳사나 명상",
146
+ },
147
+ "lt": {
148
+ "language": "Lithuanian",
149
+ "vipassana_meditation": "Vipasanos Meditacija",
150
+ "as_taught": "kaip Mokė S.N. Goenka",
151
+ "in_the_tradition": "pagal Sayagyi U Ba Khino Tradiciją",
152
+ "full": "Vipasanos meditacija pagal S. N. Goenkos mokymą ir Sayagyi U Ba Khino tradiciją",
153
+ },
154
+ "lv": {
155
+ "language": "Latvian",
156
+ "vipassana_meditation": "Vipassanas Meditācija",
157
+ "as_taught": "kā to Pasniedz S.N. Goenka",
158
+ "in_the_tradition": "Sayagyi U Ba Khina Tradīcijā",
159
+ "full": "Vipassanas Meditācija kā to pasniedz S. N. Goenka Sayagyi U Ba Khina tradīcijā"
160
+ },
161
+ "mk": {
162
+ "language": "Macedonian",
163
+ "vipassana_meditation": "Випасана медитација",
164
+ "as_taught": "Според подучувањето на С.Н. Гоенка",
165
+ "in_the_tradition": "во традицијата на Сајаги У Ба Кин"
166
+ },
167
+ "mr": {
168
+ "reverse": true,
169
+ "language": "Marathi",
170
+ "vipassana_meditation": "विपश्यना साधना",
171
+ "as_taught": "आचार्य गोयन्काजी द्वारा जशी शिकविली जाते",
172
+ "vipassana_as_taught": "आचार्य गोयन्काजींनी शिकवलेली विपश्यना साधना",
173
+ "in_the_tradition": "सयाजी उ बा खिन ह्यांच्या परंपरेत",
174
+ "full": "सयाजी उ बा खिन ह्यांच्या परंपरेत आचार्य गोयन्काजींनी शिकवलेली विपश्यना साधना"
175
+ },
176
+ "nl": {
177
+ "language": "Dutch",
178
+ "vipassana_meditation": "Vipassana Meditatie",
179
+ "as_taught": "zoals Onderwezen door S.N. Goenka",
180
+ "in_the_tradition": "in de Traditie van Sayagyi U Ba Khin",
181
+ "full": "Vipassana Meditatie zoals onderwezen door S.N. Goenka in de traditie van Sayagyi U Ba Khin"
182
+ },
183
+ "or": {
184
+ "language": "Oriya",
185
+ "vipassana_meditation": "ଭିପାସାନା ସାଧନା",
186
+ "as_taught": "ଯେହେତୁ ଏସ.ଏନ ଗୋଏଙ୍କା",
187
+ "in_the_tradition": "ସାୟାଗି ୟୁ ବା ଖିନଙ୍କ ପରମ୍ପରାରେ",
188
+ "full": "ଭିପାସାନା ସାଧନା ଯେପରି ଏସ୍। ସାୟାଗି ୟୁ ବା ଖିନଙ୍କ ପରମ୍ପରାରେ ଗୋଏଙ୍କା |"
189
+ },
190
+ "pl": {
191
+ "language": "Polish",
192
+ "vipassana_meditation": "Medytacja Vipassana",
193
+ "as_taught": "Nauczana przez S.N. Goenkę",
194
+ "in_the_tradition": "w Tradycji Sayagyi U Ba Khina",
195
+ "full": "Medytacja Vipassana w tradycji Sayagyi U Ba Khina nauczana przez S.N.Goenkę",
196
+ },
197
+ "pt": {
198
+ "language": "Portuguese",
199
+ "vipassana_meditation": "Vipassana Meditação",
200
+ "as_taught": "como Ensinada por S.N. Goenka",
201
+ "in_the_tradition": "na Tradição de Sayagyi U Ba Khin",
202
+ "full": "Meditação Vipasssana como ensinada por S.N. Goenka na tradição de Sayagyi U Ba Khin"
203
+ },
204
+ "ro": {
205
+ "language": "Romanian",
206
+ "vipassana_meditation": "Meditatia Vipassana",
207
+ "as_taught": "asa cum este Predata de S.N. Goenka",
208
+ "in_the_tradition": "în tradiţia lui Sayagyi U Ba Khin",
209
+ "full": "Meditatia Vipassana asa cum este predata de S.N.Goenka, in traditia lui Sayagyi U Ba Khin"
210
+ },
211
+ "ru": {
212
+ "language": "Russian",
213
+ "vipassana_meditation": "Випассана Медитация",
214
+ "as_taught": "как ее Преподает С.Н. Гоенка",
215
+ "in_the_tradition": "в Традиции Саяджи У Ба Кхина",
216
+ "full": "Медитация випассана как ее преподает С.Н. Гоенка в традиции Саяджи У Ба Кхина"
217
+ },
218
+ "si": {
219
+ "reverse": true,
220
+ "language": "Sinhala",
221
+ "vipassana_meditation": "විපස්සනා භාවනාව",
222
+ "as_taught": "එස් එන්. ගොඑන්කා විසින් උගන්වනු ලබන පරිදි",
223
+ "in_the_tradition": "සයාජී ඌ බා කින් තුමාගේ සම්ප්‍රදායට අනුව",
224
+ "vipassana_as_taught": "විසින් උගන්වනු ලබන විපස්සනා භාවනාව එස්. එන්. ගොඑන්කා",
225
+ "full": "සයාජී ඌ බා කින් තුමාගේ සම්ප්‍රදායට අනුව එස්. එන්. ගොඑන්කා විසින් උගන්වනු ලබන විපස්සනා භාවනාව"
226
+ },
227
+ "sl": {
228
+ "language": "Slovenian",
229
+ "vipassana_meditation": "Vipassana Meditacija",
230
+ "as_taught": "kot jo poučuje S.N. Goenka",
231
+ "in_the_tradition": "v tradiciji Sayagyi U Ba Khina"
232
+ },
233
+ "sr": {
234
+ "language": "Serbian",
235
+ "vipassana_meditation": "Випассана медитација",
236
+ "as_taught": "Po učenju S.N. Goenke",
237
+ "in_the_tradition": "u Tradiciji Sayagyi U Ba Khin"
238
+ },
239
+ "sv": {
240
+ "language": "Swedish",
241
+ "vipassana_meditation": "Vipassanameditation",
242
+ "as_taught": "som den Lärs ut av S.N. Goenka",
243
+ "in_the_tradition": "i Sayagyi U Ba Khins Tradition",
244
+ "full": "Vipassanameditation som den Lärs ut av S.N. Goenka i Sayagyi U Ba Khins Tradition",
245
+ },
246
+ "ta": {
247
+ "language": "Tamil",
248
+ "vipassana_meditation": "விபஸ்ஸனா தியானம்",
249
+ "as_taught": "ஸயாஜி ஊ பா கின் அவர்களின் வழிமரபில்",
250
+ "in_the_tradition": "திரு. ச.நா. கோயங்கா அவர்களால் கற்பிக்கப்பட்ட முறை",
251
+ "vipassana_as_taught": "விபஸ்ஸனா தியான முறை திரு ச.நா.கோயங்கா அவர்களால் கற்றுக்கொடுக்கப்பட்ட",
252
+ "full": "ஸயாஜி ஊ பா கின் அவர்களின் வழிமரபில் திரு.ச.நா. கோயங்கா அவர்களால் கற்பிக்கப்படும் விபஸ்ஸனா தியான முறை"
253
+ },
254
+ "te": {
255
+ "reverse": true,
256
+ "language": "Telugu",
257
+ "vipassana_meditation": "విపశ్యన ధ్యానం",
258
+ "as_taught": "శ్రీ గోయెంక గారిచే భోదించబడిన",
259
+ "in_the_tradition": "సాయజి ఉ బ ఖిన్ గారి సంప్రదాయంలో",
260
+ "vipassana_as_taught": "శ్రీ గోయెంకా గారు బోధించిన విపశ్యన ధ్యానం",
261
+ "full": "సాయజి ఉబాఖిన్ గారి సంప్రదాయంలో, శ్రీ గోయెంక గారు బోధించిన విపశ్యన ధ్యానం."
262
+ },
263
+ "th": {
264
+ "language": "Thai",
265
+ "vipassana_meditation": "การปฏิบัติวิปัสสนา กรรมฐาน",
266
+ "as_taught": "สอนโดยท่านอาจารย์โกเอ็นก้า",
267
+ "in_the_tradition": "ในแนวทางของท่านซายาจี อูบาขิ่น",
268
+ "full": "การปฏิบัติวิปัสสนากรรมฐาน สอนโดยท่านอาจารย์โกเอ็นก้า ตามแนวทางของท่านอาจารย์อูบาขิ่น"
269
+ },
270
+ "tr": {
271
+ "reverse": true,
272
+ "language": "Turkish",
273
+ "vipassana_meditation": "Vipassana Meditasyonu",
274
+ "as_taught": "S.N. Goenka tarafından Öğretilen",
275
+ "in_the_tradition": "Sayagyi U Ba Khin Geleneğinde",
276
+ "vipassana_as_taught": "S.N. Goenka tarafından öğretilen Vipassana Meditasyonu",
277
+ "full": "Sayagyi U Ba Khin Geleneğinde S.N. Goenka tarafından öğretilen Vipassana Meditasyonu"
278
+ },
279
+ "vi": {
280
+ "language": "Vietnamese",
281
+ "vipassana_meditation": "Thiền Vipassana",
282
+ "as_taught": "do Thiền sư S.N. Goenka Giảng Dạy",
283
+ "in_the_tradition": "theo Truyền thống của Sayagyi U Ba Khin",
284
+ "full": "Thiền Vipassana do Thiền sư S.N. Goenka giảng dạy theo truyền thống của Ngài Sayagyi U Ba Khin"
285
+ },
286
+ "zh-HANS": {
287
+ "language": "Simp. Chinese",
288
+ "vipassana_meditation": "内 观 静 坐",
289
+ "as_taught": "由葛印卡老师所教",
290
+ "as_taught3": "葛印卡老师所教导",
291
+ "in_the_tradition": "传承自乌巴庆老师",
292
+ "vipassana_as_taught": "葛印卡老师所教导的内观静坐",
293
+ "full": "由葛印卡老师所教导, 传承自乌巴庆老师的内观",
294
+ },
295
+ "zh-HANT": {
296
+ "language": "Trad. Chinese",
297
+ "vipassana_meditation": "內 觀 靜 坐",
298
+ "as_taught": "由葛印卡老師所教",
299
+ "in_the_tradition": "傳承自烏巴慶老师",
300
+ "vipassana_as_taught": "葛印卡老師所教導的內觀靜坐",
301
+ "full": "遵循烏巴慶長者所傳、葛印卡老師所教的內觀課程"
302
+ },
303
+ "zh-HANT-HK": {
304
+ "language": "Trad Chinese HK",
305
+ "vipassana_meditation": "內 觀 靜 坐",
306
+ "as_taught": "葛印卡老師所教導",
307
+ "in_the_tradition": "傳承自烏巴慶老師"
308
+ }
309
+ }
package/index.html CHANGED
@@ -3,9 +3,9 @@
3
3
  <head>
4
4
  <meta charset="utf-8"/>
5
5
  <title>Vipassana Meditation as Taught by S.N Goenka - Design Standards</title>
6
- <link rel="stylesheet" href="./src/stylesheets/index.css?ver=0.17">
7
- <link rel="stylesheet" href="./dist/css/fonts.css?ver=0.17">
8
- <link rel="stylesheet" href="./dist/css/logo.css?ver=0.17">
6
+ <link rel="stylesheet" href="./src/stylesheets/index.css?ver=0.20">
7
+ <link rel="stylesheet" href="./dist/css/fonts.css?ver=0.20">
8
+ <link rel="stylesheet" href="./dist/css/logo.css?ver=0.20">
9
9
 
10
10
  <link rel="icon" href="/dist/favicon.png">
11
11
 
@@ -15,13 +15,33 @@
15
15
  <body>
16
16
  <header>
17
17
  <div class="container ready">
18
- <img src="dist/logos/logo-en-large.png"/>
18
+ <a href="index.html"><img src="dist/logos/logo-en-large.png"/></a>
19
19
  </div>
20
20
  </header>
21
21
 
22
22
  <section class="main">
23
23
  <div class="container ready">
24
24
  <h2>Recommended Design Standards</h2>
25
+ <p>
26
+ This website offers a design toolkit for centres and other Vipassana entities to update
27
+ their own websites and other publications. While there is no obligation to use the designs,
28
+ we hope that that the existing multiple formats can be replaced when time permits.
29
+ </p>
30
+ <a href="about.html">
31
+ <button type="button" class="btn-outline-primary">
32
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
33
+ <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
34
+ <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
35
+ </svg>
36
+ <span style="margin-left: 5px">More explanations about recommendations and trademark</span>
37
+ </button>
38
+ </a>
39
+ </div>
40
+ </section>
41
+
42
+ <section id="app">
43
+ <div class="container" :class="{ready: ready}" :lang="locale">
44
+ <h2>Downloads</h2>
25
45
  <div class="main-links">
26
46
  <a href="dist/design-standards-v0.3.pdf" target="_blank">
27
47
  <button type="button" class="btn-primary">
@@ -29,37 +49,33 @@
29
49
  </button>
30
50
  </a>
31
51
 
32
- <a href="dist/logos.zip?ver=0.17">
52
+ <a href="dist/logos.zip?ver=0.20">
33
53
  <button type="button" class="btn-primary">
34
54
  <i class="gg-software-download"></i>Recommended Logos <small>(2Mb)</small>
35
55
  </button>
36
56
  </a>
37
57
 
38
- <a href="dist/fonts.zip?ver=0.17">
58
+ <a href="dist/fonts.zip?ver=0.20">
39
59
  <button type="button" class="btn-primary">
40
60
  <i class="gg-software-download"></i>Fonts <small>(600kb)</small>
41
61
  </button>
42
62
  </a>
43
63
 
44
64
  <p>
45
- <a href="dist/dhamma-wheel.svg?ver=0.17">
65
+ <a href="dist/dhamma-wheel.svg?ver=0.20">
46
66
  <button type="button" class="btn-outline-primary">
47
- <i class="gg-software-download"></i>Dhamma Wheel <small>(SVG)</small>
67
+ <i class="gg-software-download"></i>Dhamma Wheel
48
68
  </button>
49
69
  </a>
50
70
 
51
- <a href="dist/favicon.png?ver=0.17">
71
+ <a href="dist/favicon.png?ver=0.20">
52
72
  <button type="button" class="btn-outline-primary">
53
73
  <i class="gg-software-download"></i>Favicon
54
74
  </button>
55
75
  </a>
56
76
  </p>
57
77
  </div>
58
- </div>
59
- </section>
60
78
 
61
- <section id="app">
62
- <div class="container" :class="{ready: ready}" :lang="locale">
63
79
  <h2>Colors</h2>
64
80
  <div class="colors-container">
65
81
  <div class="color-container" v-for="color in colorPalette">
@@ -77,11 +93,13 @@
77
93
  <select v-model="locale">
78
94
  <option v-for="(trans, code) in i18n" :value="code">{{ trans.language }}</option>
79
95
  </select>
96
+ <input type="checkbox" v-model="logoCodeLarge" id="imageSize"/>
97
+ <label for="imageSize">Large</label>
80
98
  <!-- <button type="button" @click="copyCode()"><i class="gg-copy"></i>Copy Code</button> -->
81
99
  <pre>{{ logoCode }}</pre>
82
100
 
83
101
  <div class="alert">
84
- <b>Developers tip</b>: assets are delivered by CloudFlare proxied CDN.
102
+ <b>Developers tip</b>: assets are delivered with high speed by CloudFlare proxied CDN.
85
103
  </div>
86
104
 
87
105
 
@@ -203,17 +221,27 @@
203
221
  <!-- <button type="button" @click="downloadSVG()">
204
222
  <i class="gg-software-download"></i>Download SVG
205
223
  </button> -->
206
- <button type="button" @click="generateAllLogos()">
224
+ <!-- <button type="button" @click="generateAllLogos()">
207
225
  Generate all PNGs
208
226
  </button>
209
227
  <button type="button" @click="generateAllInlineSVG()">
210
228
  Generate all Inline SVG
211
- </button>
229
+ </button> -->
212
230
  <br/>
213
231
  <div class="alert" style="margin-top: 1.2rem;">Generated PNG are not optimized, you should use a tool such as
214
232
  <a href="https://compresspng.com/" target="_blank">compresspng.com</a>
215
233
  </div>
216
234
  </div>
235
+
236
+ <h2>For Developers</h2>
237
+ <p>
238
+ We provide some libraries to easily include the design standards in your websites.
239
+ </p>
240
+ <a href="https://www.npmjs.com/package/vipassana-design-standards" target="_blank">
241
+ <button type="button" class="btn-outline-primary">
242
+ Learn More
243
+ </button>
244
+ </a>
217
245
  </div>
218
246
  </section>
219
247
 
@@ -223,7 +251,7 @@
223
251
 
224
252
  <script type="module">
225
253
  import { createApp } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
226
- import App from './src/javascripts/index.js?ver=0.17'
254
+ import App from './src/javascripts/index.js?ver=0.20'
227
255
 
228
256
  createApp(App).mount('#app')
229
257
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vipassana-design-standards",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Vipassana design standards materials",
5
5
  "homepage": "https://design-standards.dhamma.org",
6
6
  "author": "Dhamma Workers",
@@ -10,15 +10,18 @@
10
10
  },
11
11
  "sass": "src/stylesheets/bootstrap5-theme.scss",
12
12
  "css": "dist/bootstrap5-theme.css",
13
- "scripts" : {
13
+ "scripts": {
14
14
  "build-sass": "sass --load-path=node_modules src/stylesheets/bootstrap5-theme.scss dist/css/bootstrap5-theme.css && sass src/stylesheets/fonts.scss dist/css/fonts.css && sass src/stylesheets/logo.scss dist/css/logo.css",
15
15
  "build-rtl": "rtlcss dist/css/bootstrap5-theme.css dist/css/bootstrap5-theme.rtl.css",
16
16
  "build-fonts": "cp src/stylesheets/specific-fonts/* dist/css/",
17
17
  "build-min": "cleancss --batch --batch-suffix '.min' dist/css/*.css",
18
18
  "build-css": "rm -f dist/css/* && npm run build-fonts && npm run build-sass && npm run build-rtl && npm run build-min",
19
- "build-js": "rm -f dist/js/* && concat -o dist/js/bootstrap5-theme.min.js node_modules/bootstrap5/dist/js/bootstrap.bundle.min.js src/javascripts/auto-resize.js && cp node_modules/bootstrap5/dist/js/bootstrap.bundle.min.js.map dist/js/bootstrap5-theme.min.js.map",
19
+ "build-js": "rm -f dist/js/* && npm run build-js-bootstrap && npm run build-js-helper",
20
+ "build-js-bootstrap": "concat -o dist/js/bootstrap5-theme.min.js node_modules/bootstrap5/dist/js/bootstrap.bundle.min.js src/javascripts/auto-resize.js && cp node_modules/bootstrap5/dist/js/bootstrap.bundle.min.js.map dist/js/bootstrap5-theme.min.js.map",
21
+ "build-js-helper": "cp src/javascripts/helper.js dist/js && cp src/javascripts/i18n.js dist/js && node replace-version.js",
20
22
  "build": "npm run build-css && npm run build-js",
21
- "dist": "npm run build && npm run dist-version-folder && npm publish",
23
+ "dist": "npm run build && npm run dist-version-folder && npm publish && npm run dist-gem",
24
+ "dist-gem": "gem build vipassana-design-standards.gemspec && gem push vipassana-design-standards-$npm_package_version.gem && rm vipassana-design-standards-$npm_package_version.gem",
22
25
  "dist-version-folder": "mkdir -p dist/$npm_package_version/css && mkdir -p dist/$npm_package_version/js && cp dist/css/* dist/$npm_package_version/css && cp dist/js/* dist/$npm_package_version/js"
23
26
  }
24
27
  }
@@ -0,0 +1,24 @@
1
+ // Replace @PACKAGE_VERSION@ by the current package version
2
+
3
+ const fs = require('fs');
4
+ const packageVersion = require('./package.json').version;
5
+
6
+ const filePath = 'dist/js/helper.js';
7
+ const placeholder = '@PACKAGE_VERSION@';
8
+
9
+ fs.readFile(filePath, 'utf8', (err, data) => {
10
+ if (err) {
11
+ console.error('Error reading the file:', err);
12
+ return;
13
+ }
14
+
15
+ const updatedData = data.replace(placeholder, packageVersion);
16
+
17
+ fs.writeFile(filePath, updatedData, 'utf8', (err) => {
18
+ if (err) {
19
+ console.error('Error writing to the file:', err);
20
+ } else {
21
+ console.log('Placeholder replaced with package version successfully!');
22
+ }
23
+ });
24
+ });