This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="a" v-html="content"></div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
content: 'this is a <a class="b">Test</a>', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div>{{ hello }}</div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
hello: 'Hello', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Remote debugging", | |
"sourceMaps": true, | |
"url": "http://localhost:8080", | |
"webRoot": "${workspaceRoot}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mapActions } from 'vuex' | |
export default { | |
methods: { | |
...mapActions([ | |
'updateInputFocus', | |
]), | |
lastInputFocus(e) { | |
if (!e.srcElement.name) return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"appKey": "randomKey", | |
"authHost": "https://corestaging.croudcontrol.com", | |
"authEndpoint": "/broadcasting/auth", | |
"database": "redis", | |
"databaseConfig": { | |
"redis": { | |
"port": "6379", | |
"host": "localhost", | |
"options": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
field.field_slug.split('_').join(' ').replace(/\b\w/g, l => l.toUpperCase()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actions: | |
1: | |
action: close | |
description: >- | |
Close indices older than 2 days (based on index name), for logstash | |
and beat indices. | |
options: | |
delete_aliases: False | |
timeout_override: | |
continue_if_exception: False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
http_poller { | |
urls => { | |
node => { | |
method => get | |
url => "http://localhost:9200/_cluster/health" | |
headers => { | |
Accept => "application/json" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.$http.post(this.resource, data, { | |
beforeSend(xhr) { | |
if (this.lastRequest) { | |
this.lastRequest.cancel() | |
} | |
this.lastRequest = xhr | |
}, | |
}).then(response => { | |
//do something with request | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class Cors | |
{ | |
/** | |
* Handle an incoming request. |