Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
ea0ef9f6
Unverified
Commit
ea0ef9f6
authored
Sep 18, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Registering the TranslationHelper mixin globally to access it from anywhere
parent
532531d4
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
135 additions
and
137 deletions
+135
-137
DeleteComponent.vue
Modules/Core/Assets/js/components/DeleteComponent.vue
+0
-3
PageForm.vue
Modules/Page/Assets/js/components/PageForm.vue
+1
-2
PageTable.vue
Modules/Page/Assets/js/components/PageTable.vue
+0
-2
PageTableServerSide.vue
Modules/Page/Assets/js/components/PageTableServerSide.vue
+1
-2
app.js
public/js/app.js
+127
-128
app.js
resources/assets/js/app.js
+2
-0
mixins.js
resources/assets/js/mixins.js
+4
-0
No files found.
Modules/Core/Assets/js/components/DeleteComponent.vue
View file @
ea0ef9f6
...
...
@@ -3,10 +3,7 @@
</
template
>
<
script
>
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
export
default
{
mixins
:
[
TranslationHelper
],
props
:
{
rows
:
{
default
:
null
},
scope
:
{
default
:
null
},
...
...
Modules/Page/Assets/js/components/PageForm.vue
View file @
ea0ef9f6
...
...
@@ -150,12 +150,11 @@
<
script
>
import
axios
from
'
axios
'
import
Slugify
from
'
../../../../Core/Assets/js/mixins/Slugify
'
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
import
ShortcutHelper
from
'
../../../../Core/Assets/js/mixins/ShortcutHelper
'
import
Form
from
'
form-backend-validation
'
export
default
{
mixins
:
[
Slugify
,
TranslationHelper
,
ShortcutHelper
],
mixins
:
[
Slugify
,
ShortcutHelper
],
props
:
{
locales
:
{
default
:
null
}
,
pageTitle
:
{
default
:
null
,
String
}
,
...
...
Modules/Page/Assets/js/components/PageTable.vue
View file @
ea0ef9f6
...
...
@@ -30,12 +30,10 @@
<
script
>
import
axios
from
'
axios
'
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
let
data
;
export
default
{
mixins
:
[
TranslationHelper
],
data
()
{
return
{
data
,
...
...
Modules/Page/Assets/js/components/PageTableServerSide.vue
View file @
ea0ef9f6
...
...
@@ -98,13 +98,12 @@
<
script
>
import
axios
from
'
axios
'
import
_
from
"
lodash
"
;
import
TranslationHelper
from
'
../../../../Core/Assets/js/mixins/TranslationHelper
'
import
ShortcutHelper
from
'
../../../../Core/Assets/js/mixins/ShortcutHelper
'
let
data
;
export
default
{
mixins
:
[
TranslationHelper
,
ShortcutHelper
],
mixins
:
[
ShortcutHelper
],
data
()
{
return
{
data
,
...
...
public/js/app.js
View file @
ea0ef9f6
This diff is collapsed.
Click to expand it.
resources/assets/js/app.js
View file @
ea0ef9f6
...
...
@@ -12,6 +12,8 @@ Vue.use(DataTables, { locale });
Vue
.
use
(
VueI18n
);
Vue
.
use
(
VueRouter
);
Vue
.
use
(
require
(
'
vue-shortkey
'
),
{
prevent
:
[
'
input
'
,
'
textarea
'
]
});
require
(
'
./mixins
'
);
Vue
.
component
(
'
ckeditor
'
,
require
(
'
../../../Modules/Core/Assets/js/components/CkEditor.vue
'
));
Vue
.
component
(
'
DeleteButton
'
,
require
(
'
../../../Modules/Core/Assets/js/components/DeleteComponent.vue
'
));
...
...
resources/assets/js/mixins.js
0 → 100644
View file @
ea0ef9f6
import
Vue
from
'
vue
'
import
TranslationHelper
from
'
../../../Modules/Core/Assets/js/mixins/TranslationHelper
'
Vue
.
mixin
(
TranslationHelper
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment