mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Move Vue.filter definition to vue_common
This commit is contained in:
parent
7bb0f7e5be
commit
fc36a941fa
@ -17,4 +17,5 @@
|
||||
//= require sb-admin-v2/plugins/dataTables/dataTables.bootstrap
|
||||
//= require bower/vue/dist/vue
|
||||
//= require bower/es6-promise/promise
|
||||
//= require vue_common
|
||||
//= require_tree .
|
||||
|
||||
@ -1,11 +1,6 @@
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
// NOTE: should move to common space if this filter used another place
|
||||
Vue.filter('to_json', function (value) {
|
||||
return JSON.stringify(value);
|
||||
})
|
||||
|
||||
$(function(){
|
||||
if($('#chapter1').length === 0) return;
|
||||
|
||||
|
||||
4
app/assets/javascripts/vue_common.js
Normal file
4
app/assets/javascripts/vue_common.js
Normal file
@ -0,0 +1,4 @@
|
||||
Vue.filter('to_json', function (value) {
|
||||
return JSON.stringify(value);
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user