diff --git a/plugins/meme/web.go b/plugins/meme/web.go index de3abf8..a08f6df 100644 --- a/plugins/meme/web.go +++ b/plugins/meme/web.go @@ -102,7 +102,7 @@ var memeIndex = ` :items="results" :fields="fields"> - {{data.item.config}} + {{data.item.config | pretty}} Edit @@ -133,7 +133,6 @@ var memeIndex = ` editConfig: null, fields: [ { key: 'name', sortable: true }, - { key: 'url', sortable: true }, { key: 'config' }, { key: 'image' } ] @@ -146,6 +145,11 @@ var memeIndex = ` .catch(err => console.log(err)) this.refresh(); }, + filters: { + pretty: function(value) { + return JSON.stringify(JSON.parse(value), null, 2); + } + }, methods: { refresh: function() { axios.get('/meme/all')
{{data.item.config}}
{{data.item.config | pretty}}