lesli_babel 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/lesli_babel/application.js +1 -3726
- data/app/assets/stylesheets/lesli_babel/application.css +1 -0
- data/app/views/lesli_babel/partials/_engine-navigation.html.erb +2 -2
- data/lib/lesli_babel/version.rb +2 -2
- data/{app/assets/stylesheets/lesli_babel → lib/scss}/application.scss +10 -5
- data/{app/assets/stylesheets/lesli_babel → lib/scss}/dashboards.scss +2 -2
- data/{app/assets/stylesheets/lesli_babel → lib/scss}/modules.scss +2 -1
- data/{app/assets/stylesheets/lesli_babel → lib/scss}/translations.scss +2 -1
- data/lib/vue/application.js +7 -7
- data/lib/vue/apps/dashboards/show.vue +10 -12
- data/lib/vue/apps/modules/show.vue +5 -5
- data/lib/vue/apps/relevants/index.vue +2 -2
- data/lib/vue/apps/translations/index.vue +4 -4
- data/lib/vue/components/actions.vue +5 -5
- data/lib/vue/components/form-label-editor.vue +3 -3
- data/lib/vue/components/form-string-new.vue +2 -2
- metadata +7 -6
@@ -0,0 +1 @@
|
|
1
|
+
body.lesli-babel :root,body.lesli-babel-dashboard :root{--lesli-color-primary: var(--lesli-theme-color-primary, #193d8d);--lesli-color-background: var(--lesli-theme-color-background, #f6f8fb);--lesli-header-color: var(--lesli-theme-header-color, white);--lesli-header-height: var(--lesli-theme-header-height, 70px);--lesli-navbar-color: var(--lesli-theme-header-color, white);--lesli-footer-color: var(--lesli-theme-footer-color, white);--lesli-footer-height: var(--lesli-theme-footer-height, 84px);--lesli-sidebar-color: var(--lesli-theme-sidebar-color, white);--lesli-sidebar-width: var(--lesli-theme-sidebar-width, 50px);--lesli-logo-color: var(--lesli-theme-logo-color, white);--lesli-font-size: var(--lesli-theme-font-size, 16px);--lesli-font-color: var(--lesli-theme-font-color, #333333)}@media only screen and (max-width: 768px){body.lesli-babel :root,body.lesli-babel-dashboard :root{--lesli-sidebar-width: 50px}}@media only screen and (min-width: 769px){body.lesli-babel :root,body.lesli-babel-dashboard :root{--lesli-sidebar-width: 100px}}@media only screen and (min-width: 1024px){body.lesli-babel :root,body.lesli-babel-dashboard :root{--lesli-sidebar-width: 200px}}@media only screen and (min-width: 1216px){body.lesli-babel :root,body.lesli-babel-dashboard :root{--lesli-sidebar-width: 225px}}@media only screen and (min-width: 1408px){body.lesli-babel :root,body.lesli-babel-dashboard :root{--lesli-sidebar-width: 328px}}body.lesli-babel body.layout-expanded :root,body.lesli-babel-dashboard body.layout-expanded :root{--lesli-sidebar-width: 100px}body.lesli-babel aside.lesli-application-sidebar,body.lesli-babel-dashboard aside.lesli-application-sidebar{display:none !important}body.lesli-babel .locales,body.lesli-babel-dashboard .locales{display:flex;flex-wrap:wrap;justify-content:space-around;justify-content:center}body.lesli-babel .locales>*,body.lesli-babel-dashboard .locales>*{flex-basis:200px;max-width:200px}body.lesli-babel .locales .card,body.lesli-babel-dashboard .locales .card{padding:1.8rem 1rem;text-align:center;box-shadow:rgba(9,30,66,.25) 0px 4px 8px -2px,rgba(9,30,66,.08) 0px 0px 0px 1px;background-color:#fff;border-radius:4px}body.lesli-babel .locales .card .flag-icon,body.lesli-babel-dashboard .locales .card .flag-icon{border-radius:4px;box-shadow:rgba(9,30,66,.25) 0px 4px 8px -2px,rgba(9,30,66,.08) 0px 0px 0px 1px}body.cloud_babel-modules :root,body.cloud_babel-relevants :root,body.cloud_babel-translations :root{--lesli-color-primary: var(--lesli-theme-color-primary, #193d8d);--lesli-color-background: var(--lesli-theme-color-background, #f6f8fb);--lesli-header-color: var(--lesli-theme-header-color, white);--lesli-header-height: var(--lesli-theme-header-height, 70px);--lesli-navbar-color: var(--lesli-theme-header-color, white);--lesli-footer-color: var(--lesli-theme-footer-color, white);--lesli-footer-height: var(--lesli-theme-footer-height, 84px);--lesli-sidebar-color: var(--lesli-theme-sidebar-color, white);--lesli-sidebar-width: var(--lesli-theme-sidebar-width, 50px);--lesli-logo-color: var(--lesli-theme-logo-color, white);--lesli-font-size: var(--lesli-theme-font-size, 16px);--lesli-font-color: var(--lesli-theme-font-color, #333333)}@media only screen and (max-width: 768px){body.cloud_babel-modules :root,body.cloud_babel-relevants :root,body.cloud_babel-translations :root{--lesli-sidebar-width: 50px}}@media only screen and (min-width: 769px){body.cloud_babel-modules :root,body.cloud_babel-relevants :root,body.cloud_babel-translations :root{--lesli-sidebar-width: 100px}}@media only screen and (min-width: 1024px){body.cloud_babel-modules :root,body.cloud_babel-relevants :root,body.cloud_babel-translations :root{--lesli-sidebar-width: 200px}}@media only screen and (min-width: 1216px){body.cloud_babel-modules :root,body.cloud_babel-relevants :root,body.cloud_babel-translations :root{--lesli-sidebar-width: 225px}}@media only screen and (min-width: 1408px){body.cloud_babel-modules :root,body.cloud_babel-relevants :root,body.cloud_babel-translations :root{--lesli-sidebar-width: 328px}}body.cloud_babel-modules body.layout-expanded :root,body.cloud_babel-relevants body.layout-expanded :root,body.cloud_babel-translations body.layout-expanded :root{--lesli-sidebar-width: 100px}body.cloud_babel-modules #babel-translations tbody td,body.cloud_babel-relevants #babel-translations tbody td,body.cloud_babel-translations #babel-translations tbody td{padding:0rem 1rem;height:60px}body.cloud_babel-modules #babel-translations tbody td input.input,body.cloud_babel-relevants #babel-translations tbody td input.input,body.cloud_babel-translations #babel-translations tbody td input.input{height:60px;border:none;box-shadow:none;border-radius:3px;background-color:rgba(0,0,0,0)}body.cloud_babel-modules #babel-translations tbody td input.input::placeholder,body.cloud_babel-relevants #babel-translations tbody td input.input::placeholder,body.cloud_babel-translations #babel-translations tbody td input.input::placeholder{color:#555761}body.cloud_babel-modules #babel-translations tbody td.detail-row,body.cloud_babel-relevants #babel-translations tbody td.detail-row,body.cloud_babel-translations #babel-translations tbody td.detail-row{padding-left:1rem !important}body.cloud_babel-modules #babel-translations .copied:after,body.cloud_babel-relevants #babel-translations .copied:after,body.cloud_babel-translations #babel-translations .copied:after{display:inline;position:absolute;content:"Label copied to clipboard!";animation:1s ease-in-out 0s 1 normal forwards running copyit;font-size:.8em}@keyframes copyit{0%{bottom:2em;opacity:1}100%{bottom:4em;opacity:0}}
|
@@ -18,7 +18,7 @@ GNU General Public License for more details.
|
|
18
18
|
You should have received a copy of the GNU General Public License
|
19
19
|
along with this program. If not, see http://www.gnu.org/licenses/.
|
20
20
|
|
21
|
-
Lesli · Ruby on Rails SaaS
|
21
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
22
22
|
|
23
23
|
Made with ♥ by https://www.lesli.tech
|
24
24
|
Building a better future, one line of code at a time.
|
@@ -34,4 +34,4 @@ Building a better future, one line of code at a time.
|
|
34
34
|
|
35
35
|
<%= navigation_item(lesli_babel.dashboard_path, "Dashboard", "ri-dashboard-3-line"); %>
|
36
36
|
<%= navigation_item(lesli_babel.translations_path, "Translations", "ri-earth-line") %>
|
37
|
-
|
37
|
+
<%#= navigation_item(lesli_babel.dashboard_path, "Relevant", "ri-send-plane-line") %>
|
data/lib/lesli_babel/version.rb
CHANGED
@@ -31,12 +31,17 @@ Building a better future, one line of code at a time.
|
|
31
31
|
*/
|
32
32
|
|
33
33
|
|
34
|
+
|
34
35
|
// ·
|
35
36
|
body.lesli-babel,
|
36
|
-
body.lesli-babel-dashboard {
|
37
|
+
body.lesli-babel-dashboard {
|
38
|
+
@import "./dashboards";
|
39
|
+
}
|
37
40
|
|
38
41
|
|
39
|
-
//
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
// ·
|
43
|
+
body.cloud_babel-modules,
|
44
|
+
body.cloud_babel-relevants,
|
45
|
+
body.cloud_babel-translations {
|
46
|
+
@import "./translations";
|
47
|
+
}
|
@@ -32,7 +32,7 @@ Building a better future, one line of code at a time.
|
|
32
32
|
|
33
33
|
|
34
34
|
// ·
|
35
|
-
@import "
|
35
|
+
@import "Lesli/scss/templates/dashboards";
|
36
36
|
//@import "flag-icons";
|
37
37
|
|
38
38
|
|
@@ -48,7 +48,7 @@ Building a better future, one line of code at a time.
|
|
48
48
|
background-color: white;
|
49
49
|
border-radius: 4px;
|
50
50
|
|
51
|
-
|
51
|
+
.flag-icon {
|
52
52
|
border-radius: 4px;
|
53
53
|
box-shadow: $lesli-box-shadow;
|
54
54
|
}
|
@@ -17,7 +17,7 @@ For more information read the license file including with this software.
|
|
17
17
|
|
18
18
|
*/
|
19
19
|
|
20
|
-
|
20
|
+
/*
|
21
21
|
// ·
|
22
22
|
@import "templates/component";
|
23
23
|
|
@@ -31,3 +31,4 @@ For more information read the license file including with this software.
|
|
31
31
|
.pagination-link {
|
32
32
|
justify-content: center;
|
33
33
|
}
|
34
|
+
*/
|
data/lib/vue/application.js
CHANGED
@@ -31,19 +31,19 @@ Building a better future, one line of code at a time.
|
|
31
31
|
|
32
32
|
|
33
33
|
// · Import Lesli builders
|
34
|
-
import application from "Lesli/application"
|
35
|
-
import translation from "Lesli/translation"
|
34
|
+
import application from "Lesli/vue/application"
|
35
|
+
import translation from "Lesli/vue/translation"
|
36
36
|
|
37
37
|
|
38
38
|
// · Import engine translations
|
39
|
-
import translations from "LesliBabel/stores/translations.json"
|
39
|
+
import translations from "LesliBabel/vue/stores/translations.json"
|
40
40
|
|
41
41
|
|
42
42
|
// ·
|
43
|
-
import appDashboardShow from "LesliBabel/apps/dashboards/show.vue"
|
44
|
-
import appRelevantsIndex from "LesliBabel/apps/relevants/index.vue"
|
45
|
-
import appTranslationsIndex from "LesliBabel/apps/translations/index.vue"
|
46
|
-
import appModulesShow from "LesliBabel/apps/modules/show.vue"
|
43
|
+
import appDashboardShow from "LesliBabel/vue/apps/dashboards/show.vue"
|
44
|
+
import appRelevantsIndex from "LesliBabel/vue/apps/relevants/index.vue"
|
45
|
+
import appTranslationsIndex from "LesliBabel/vue/apps/translations/index.vue"
|
46
|
+
import appModulesShow from "LesliBabel/vue/apps/modules/show.vue"
|
47
47
|
|
48
48
|
|
49
49
|
// · Buil Lesli translations
|
@@ -23,7 +23,7 @@ import { useRouter, useRoute } from 'vue-router'
|
|
23
23
|
|
24
24
|
|
25
25
|
// · Import components
|
26
|
-
import componentActions from "LesliBabel/components/actions.vue"
|
26
|
+
import componentActions from "LesliBabel/vue/components/actions.vue"
|
27
27
|
|
28
28
|
|
29
29
|
// · initialize/inject plugins
|
@@ -33,8 +33,8 @@ const url = inject("url")
|
|
33
33
|
|
34
34
|
|
35
35
|
// · import lesli stores
|
36
|
-
import { useStatistics } from "LesliBabel/stores/statistics"
|
37
|
-
import { useStrings } from "LesliBabel/stores/strings"
|
36
|
+
import { useStatistics } from "LesliBabel/vue/stores/statistics"
|
37
|
+
import { useStrings } from "LesliBabel/vue/stores/strings"
|
38
38
|
|
39
39
|
|
40
40
|
// · implement stores
|
@@ -67,18 +67,16 @@ function search(string) {
|
|
67
67
|
<component-actions></component-actions>
|
68
68
|
</lesli-header>
|
69
69
|
<lesli-toolbar @search="search"></lesli-toolbar>
|
70
|
-
<div class="locales mt-
|
70
|
+
<div class="locales mt-5">
|
71
71
|
<router-link class="card mr-5 mb-5"
|
72
72
|
v-for="locale in storeStatistics.languages"
|
73
73
|
:key="locale.code"
|
74
|
-
:to="url.babel('translations', { locale: locale.code }).
|
75
|
-
<
|
76
|
-
|
77
|
-
|
78
|
-
</p>
|
79
|
-
<small>
|
80
|
-
missing: {{ storeStatistics.totalStrings - locale.total }} translations
|
81
|
-
</small>
|
74
|
+
:to="url.babel('translations', { locale: locale.code }).toString()" >
|
75
|
+
<svg class="flag-icon mb-2" width="64px" height="48px">
|
76
|
+
<use v-bind:xlink:href="'#locale-'+locale.code"></use>
|
77
|
+
</svg>
|
78
|
+
<p class="is-size-5">{{ locale.name }}: {{ locale.total }}</p>
|
79
|
+
<small>missing: {{ storeStatistics.totalStrings - locale.total }} translations</small>
|
82
80
|
</router-link>
|
83
81
|
</div>
|
84
82
|
</lesli-application-container>
|
@@ -37,14 +37,14 @@ import { useRouter, useRoute } from 'vue-router'
|
|
37
37
|
|
38
38
|
|
39
39
|
// · import components
|
40
|
-
import formStringNew from "LesliBabel/components/form-string-new.vue"
|
41
|
-
import formLabelEditor from "LesliBabel/components/form-label-editor.vue"
|
42
|
-
import componentActions from "LesliBabel/components/actions.vue"
|
40
|
+
import formStringNew from "LesliBabel/vue/components/form-string-new.vue"
|
41
|
+
import formLabelEditor from "LesliBabel/vue/components/form-label-editor.vue"
|
42
|
+
import componentActions from "LesliBabel/vue/components/actions.vue"
|
43
43
|
|
44
44
|
|
45
45
|
// · import lesli stores
|
46
|
-
import { useModule } from "LesliBabel/stores/module"
|
47
|
-
import { useStrings } from "LesliBabel/stores/strings"
|
46
|
+
import { useModule } from "LesliBabel/vue/stores/module"
|
47
|
+
import { useStrings } from "LesliBabel/vue/stores/strings"
|
48
48
|
|
49
49
|
|
50
50
|
// · implement stores
|
@@ -30,8 +30,8 @@ const url = inject("url")
|
|
30
30
|
|
31
31
|
|
32
32
|
// · import components
|
33
|
-
import componentLabelEditor from "LesliBabel/components/form-label-editor.vue"
|
34
|
-
import componentActions from "LesliBabel/components/actions.vue"
|
33
|
+
import componentLabelEditor from "LesliBabel/vue/components/form-label-editor.vue"
|
34
|
+
import componentActions from "LesliBabel/vue/components/actions.vue"
|
35
35
|
|
36
36
|
|
37
37
|
</script>
|
@@ -30,13 +30,13 @@ const url = inject("url")
|
|
30
30
|
|
31
31
|
|
32
32
|
// · import components
|
33
|
-
import componentLabelEditor from "LesliBabel/components/form-label-editor.vue"
|
34
|
-
import componentActions from "LesliBabel/components/actions.vue"
|
33
|
+
import componentLabelEditor from "LesliBabel/vue/components/form-label-editor.vue"
|
34
|
+
import componentActions from "LesliBabel/vue/components/actions.vue"
|
35
35
|
|
36
36
|
|
37
37
|
// · import lesli stores
|
38
|
-
import { useStrings } from "LesliBabel/stores/strings"
|
39
|
-
import { useTranslations } from "LesliBabel/stores/translations"
|
38
|
+
import { useStrings } from "LesliBabel/vue/stores/strings"
|
39
|
+
import { useTranslations } from "LesliBabel/vue/stores/translations"
|
40
40
|
|
41
41
|
|
42
42
|
// · implement stores
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<script setup>
|
2
2
|
|
3
3
|
// · import lesli stores
|
4
|
-
import { useTranslations } from "LesliBabel/stores/translations"
|
4
|
+
import { useTranslations } from "LesliBabel/vue/stores/translations"
|
5
5
|
|
6
6
|
|
7
7
|
// · implement stores
|
@@ -9,16 +9,16 @@ const storeTranslations = useTranslations()
|
|
9
9
|
|
10
10
|
</script>
|
11
11
|
<template>
|
12
|
-
<lesli-button icon="download" @click="storeTranslations.postRenovate()">
|
13
|
-
update
|
14
|
-
</lesli-button>
|
15
12
|
<lesli-button icon="rocket_launch" @click="storeTranslations.postDeploy()">
|
16
13
|
deploy
|
17
14
|
</lesli-button>
|
15
|
+
<!--
|
16
|
+
<lesli-button icon="download">
|
17
|
+
update
|
18
|
+
</lesli-button>
|
18
19
|
<lesli-button icon="sync" @click="storeTranslations.postSync()">
|
19
20
|
sync
|
20
21
|
</lesli-button>
|
21
|
-
<!--
|
22
22
|
<lesli-button icon="code">
|
23
23
|
javascript
|
24
24
|
</lesli-button>
|
@@ -24,9 +24,9 @@ import { useRouter, useRoute } from 'vue-router'
|
|
24
24
|
|
25
25
|
// · import lesli stores
|
26
26
|
const route = useRoute()
|
27
|
-
import { useStrings } from "LesliBabel/stores/strings"
|
28
|
-
import { useTranslations } from "LesliBabel/stores/translations"
|
29
|
-
import { useServiceTranslator } from "Lesli/
|
27
|
+
import { useStrings } from "LesliBabel/vue/stores/strings"
|
28
|
+
import { useTranslations } from "LesliBabel/vue/stores/translations"
|
29
|
+
import { useServiceTranslator } from "Lesli/vue/shared/services/translator"
|
30
30
|
|
31
31
|
|
32
32
|
// · implement stores
|
@@ -37,8 +37,8 @@ import { ref, reactive, onMounted, watch, computed, onUnmounted } from "vue"
|
|
37
37
|
|
38
38
|
|
39
39
|
// ·
|
40
|
-
import { useString } from "LesliBabel/stores/string"
|
41
|
-
import { useModule } from "LesliBabel/stores/module"
|
40
|
+
import { useString } from "LesliBabel/vue/stores/string"
|
41
|
+
import { useModule } from "LesliBabel/vue/stores/module"
|
42
42
|
|
43
43
|
|
44
44
|
// · implement stores
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_babel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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: 2024-
|
11
|
+
date: 2024-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -50,10 +50,7 @@ files:
|
|
50
50
|
- app/assets/images/lesli_babel/babel-logo.svg
|
51
51
|
- app/assets/javascripts/lesli_babel/application.js
|
52
52
|
- app/assets/javascripts/lesli_babel/application.js.LICENSE.txt
|
53
|
-
- app/assets/stylesheets/lesli_babel/application.
|
54
|
-
- app/assets/stylesheets/lesli_babel/dashboards.scss
|
55
|
-
- app/assets/stylesheets/lesli_babel/modules.scss
|
56
|
-
- app/assets/stylesheets/lesli_babel/translations.scss
|
53
|
+
- app/assets/stylesheets/lesli_babel/application.css
|
57
54
|
- app/controllers/lesli_babel/application_controller.rb
|
58
55
|
- app/controllers/lesli_babel/buckets_controller.rb
|
59
56
|
- app/controllers/lesli_babel/clones_controller.rb
|
@@ -138,6 +135,10 @@ files:
|
|
138
135
|
- lib/lesli_babel.rb
|
139
136
|
- lib/lesli_babel/engine.rb
|
140
137
|
- lib/lesli_babel/version.rb
|
138
|
+
- lib/scss/application.scss
|
139
|
+
- lib/scss/dashboards.scss
|
140
|
+
- lib/scss/modules.scss
|
141
|
+
- lib/scss/translations.scss
|
141
142
|
- lib/tasks/lesli_babel_tasks.rake
|
142
143
|
- lib/vue/application.js
|
143
144
|
- lib/vue/apps/dashboards/show.vue
|