lesli_babel 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/lesli_babel/application.js +1824 -1386
  3. data/app/assets/javascripts/lesli_babel/application.js.LICENSE.txt +282 -0
  4. data/app/assets/stylesheets/lesli_babel/dashboards.scss +2 -1
  5. data/app/controllers/lesli_babel/buckets_controller.rb +31 -1
  6. data/app/controllers/lesli_babel/modules_controller.rb +1 -1
  7. data/app/controllers/lesli_babel/strings_controller.rb +1 -1
  8. data/app/controllers/lesli_babel/translations_controller.rb +23 -12
  9. data/app/models/lesli_babel/module.rb +11 -3
  10. data/app/models/lesli_babel/string.rb +3 -4
  11. data/app/services/lesli_babel/deploy_rails_service.rb +142 -0
  12. data/app/services/lesli_babel/module_service.rb +1 -1
  13. data/app/services/lesli_babel/string_service.rb +2 -2
  14. data/app/views/lesli_babel/partials/_engine-sidebar.html.erb +3 -3
  15. data/config/locales/translations.en.yml +20 -0
  16. data/config/locales/translations.es.yml +20 -0
  17. data/config/routes.rb +1 -2
  18. data/db/migrate/v1.0/0901100110_create_lesli_babel_modules.rb +2 -2
  19. data/db/migrate/v1.0/0901110110_create_lesli_babel_buckets.rb +1 -1
  20. data/lib/lesli_babel/engine.rb +2 -0
  21. data/lib/lesli_babel/version.rb +2 -2
  22. data/lib/tasks/lesli_babel_tasks.rake +112 -54
  23. data/lib/vue/application.js +33 -10
  24. data/lib/vue/apps/modules/show.vue +25 -11
  25. data/lib/vue/components/form-string-new.vue +14 -43
  26. data/lib/vue/stores/module.js +25 -11
  27. data/lib/vue/stores/string.js +84 -0
  28. data/lib/vue/stores/translations.js +1 -1
  29. data/lib/vue/stores/translations.json +48 -0
  30. data/readme.md +62 -9
  31. metadata +42 -7
@@ -0,0 +1,48 @@
1
+ {
2
+ "en": {
3
+ "lesli": {
4
+ "application": {
5
+ "navigation_logout": "Logout",
6
+ "navigation_my_profile": "My profile"
7
+ },
8
+ "shared": {
9
+ "button_add_new": "Add new",
10
+ "button_delete": "Delete",
11
+ "button_edit": "Edit",
12
+ "button_list": "List",
13
+ "button_reload": "Reload",
14
+ "button_save": "Save",
15
+ "button_settings": "Settings",
16
+ "button_show": "Show",
17
+ "view_discussions": "Discussions",
18
+ "view_files": "Files",
19
+ "view_quick_actions": "Quick actions",
20
+ "view_status_active": "Active",
21
+ "view_status_inactive": "Inactive"
22
+ }
23
+ }
24
+ },
25
+ "es": {
26
+ "lesli": {
27
+ "application": {
28
+ "navigation_logout": "Cerrar sesión",
29
+ "navigation_my_profile": "Mi perfil"
30
+ },
31
+ "shared": {
32
+ "button_add_new": "Agregar nuevo",
33
+ "button_delete": "Eliminar",
34
+ "button_edit": "Editar",
35
+ "button_list": "Lista",
36
+ "button_reload": "Recargar",
37
+ "button_save": "Guardar",
38
+ "button_settings": "Configuración",
39
+ "button_show": "Ver",
40
+ "view_discussions": "Discusiones",
41
+ "view_files": "Archivos",
42
+ "view_quick_actions": "Acciones rapidas",
43
+ "view_status_active": "Activo",
44
+ "view_status_inactive": "Inactivo"
45
+ }
46
+ }
47
+ }
48
+ }
data/readme.md CHANGED
@@ -1,19 +1,72 @@
1
1
  <p align="center">
2
- <img width="100" alt="LesliBabel logo" src="app/assets/images/lesli_babel/babel-logo.svg" />
2
+ <img width="75" alt="LesliBabel logo" src="./app/assets/images/lesli_babel/babel-logo.svg" />
3
+ <h3 align="center">Translation Management System for the Lesli Framework.</h3>
3
4
  </p>
4
5
 
5
- <h3 align="center">LesliBabel - Translation management system</h3>
6
-
7
6
  <hr/>
7
+ <p align="center">
8
+ <a target="blank" href="https://rubygems.org/gems/lesli_babel">
9
+ <img height="22" alt="Gem Version" src="https://badge.fury.io/rb/lesli_babel.svg" />
10
+ </a>
11
+ </p>
12
+ <hr/>
13
+
14
+
15
+ ### Quick start
16
+
17
+ ```shell
18
+ # Add LesliBabel engine
19
+ bundle add lesli_babel
20
+ ```
21
+
22
+ ```shell
23
+ # Setup database
24
+ rake lesli:db:setup
25
+ ```
26
+
27
+ ```ruby
28
+ # Load LesliBabel
29
+ Rails.application.routes.draw do
30
+ mount LesliBabel::Engine => "/babel"
31
+ end
32
+ ```
33
+
8
34
 
9
- Version 5.0
35
+ ### Documentation
36
+ * [Website](https://www.lesli.dev/babel/)
37
+ * [Database](./docs/database.md)
38
+ * [Documentation](https://www.lesli.dev/documentation/)
10
39
 
11
- ### License
12
- ------
13
- Software developed in [Guatemala](http://visitguatemala.com/) by [LesliTech](https://www.lesli.tech) distributed under the *General Public License v 3.0* you can read the full license [here](http://www.gnu.org/licenses/gpl-3.0.html)
14
40
 
15
- <br>
41
+ ### Get in touch
42
+
43
+ * [Website: https://www.lesli.tech](https://www.lesli.tech)
44
+ * [Email: hello@lesli.tech](hello@lesli.tech)
45
+ * [Twitter: @LesliTech](https://twitter.com/LesliTech)
46
+
47
+
48
+ ### License
49
+ -------
50
+ Copyright (c) 2023, Lesli Technologies, S. A.
51
+
52
+ This program is free software: you can redistribute it and/or modify
53
+ it under the terms of the GNU General Public License as published by
54
+ the Free Software Foundation, either version 3 of the License, or
55
+ (at your option) any later version.
56
+
57
+ This program is distributed in the hope that it will be useful,
58
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
59
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60
+ GNU General Public License for more details.
61
+
62
+ You should have received a copy of the GNU General Public License
63
+ along with this program. If not, see http://www.gnu.org/licenses/.
64
+
65
+ <hr />
66
+ <br />
16
67
 
17
68
  <p align="center">
18
- <img alt="Lesli logo" width="100" src="./app/assets/images/lesli/brand/app-icon.svg" />
69
+ <img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
70
+ <h4 align="center">Ruby on Rails SaaS Development Framework.</h4>
19
71
  </p>
72
+
metadata CHANGED
@@ -1,16 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_babel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-06 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Translation management system for the Lesli Framework
11
+ date: 2024-02-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: lesli
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5'
41
+ description: Translation Management System for The Lesli Framework
14
42
  email:
15
43
  - hello@lesli.tech
16
44
  executables: []
@@ -21,6 +49,7 @@ files:
21
49
  - app/assets/config/lesli_babel_manifest.js
22
50
  - app/assets/images/lesli_babel/babel-logo.svg
23
51
  - app/assets/javascripts/lesli_babel/application.js
52
+ - app/assets/javascripts/lesli_babel/application.js.LICENSE.txt
24
53
  - app/assets/stylesheets/lesli_babel/application.scss
25
54
  - app/assets/stylesheets/lesli_babel/dashboards.scss
26
55
  - app/assets/stylesheets/lesli_babel/modules.scss
@@ -45,6 +74,7 @@ files:
45
74
  - app/models/lesli_babel/string/activity.rb
46
75
  - app/models/lesli_babel/string/discussion.rb
47
76
  - app/models/lesli_babel/translation.rb
77
+ - app/services/lesli_babel/deploy_rails_service.rb
48
78
  - app/services/lesli_babel/module_service.rb
49
79
  - app/services/lesli_babel/old/translations_android_service.rb
50
80
  - app/services/lesli_babel/old/translations_clone_service.rb
@@ -99,6 +129,8 @@ files:
99
129
  - app/views/lesli_babel/translations/index.html.erb
100
130
  - app/views/lesli_babel/translations/new.html.erb
101
131
  - app/views/lesli_babel/translations/show.html.erb
132
+ - config/locales/translations.en.yml
133
+ - config/locales/translations.es.yml
102
134
  - config/routes.rb
103
135
  - db/migrate/v1.0/0901100110_create_lesli_babel_modules.rb
104
136
  - db/migrate/v1.0/0901110110_create_lesli_babel_buckets.rb
@@ -117,12 +149,15 @@ files:
117
149
  - lib/vue/components/form-string-new.vue
118
150
  - lib/vue/stores/module.js
119
151
  - lib/vue/stores/statistics.js
152
+ - lib/vue/stores/string.js
120
153
  - lib/vue/stores/strings.js
121
154
  - lib/vue/stores/translations.js
155
+ - lib/vue/stores/translations.json
122
156
  - license
123
157
  - readme.md
124
158
  homepage: https://www.lesli.dev/
125
- licenses: []
159
+ licenses:
160
+ - GPL-3.0
126
161
  metadata:
127
162
  homepage_uri: https://www.lesli.dev/
128
163
  source_code_uri: https://github.com/LesliTech/LesliBabel
@@ -135,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
170
  requirements:
136
171
  - - ">="
137
172
  - !ruby/object:Gem::Version
138
- version: '0'
173
+ version: '2.7'
139
174
  required_rubygems_version: !ruby/object:Gem::Requirement
140
175
  requirements:
141
176
  - - ">="
@@ -145,5 +180,5 @@ requirements: []
145
180
  rubygems_version: 3.3.7
146
181
  signing_key:
147
182
  specification_version: 4
148
- summary: Translation management system for the Lesli Framework
183
+ summary: Translation Management System for The Lesli Framework
149
184
  test_files: []