vue forceUpdate v-on input in slots
typescript
computed: {
inputEvents(): any {
return {
input: (e: { target: HTMLInputElement }) => {
const value = e.target.value;
{ | |
"breadcrumbs.enabled": false, | |
"editor.fontFamily": "'MonoLisa', 'Dank Mono', 'Operator Mono Lig', 'Operator Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontWeight": "400", | |
"editor.cursorBlinking": "smooth", | |
"editor.cursorSmoothCaretAnimation": "explicit", | |
"editor.stickyScroll.enabled": true, | |
"explorer.sortOrder": "type", | |
"workbench.editor.enablePreview": false, | |
"workbench.editor.highlightModifiedTabs": true, |
const Names = [ | |
'Event Update' | |
] | |
type ToUnderscore<V extends string> = V extends `${infer S} ${infer E}` | |
? `${S}_${ToUnderscore<E>}` | |
: V | |
type TNames<N extends string> = { [K in N as Uppercase<ToUnderscore<N>>]: K } |
TypeScript 5 hrs 50 mins █████████▍░░░░░░░░░░░ 45.0% | |
JSON 2 hrs 8 mins ███▍░░░░░░░░░░░░░░░░░ 16.5% | |
Bash 1 hr 38 mins ██▋░░░░░░░░░░░░░░░░░░ 12.7% | |
YAML 1 hr 21 mins ██▏░░░░░░░░░░░░░░░░░░ 10.4% | |
Markdown 48 mins █▎░░░░░░░░░░░░░░░░░░░ 6.3% |
<?php | |
function fixBr($str, $p = false) { | |
$str = str_ireplace(array("<br />","<br>","<br/>", "</br>"), PHP_EOL, $str); | |
$str = trim($str); | |
$arr = preg_split('/'.PHP_EOL.'/', $str); | |
vue forceUpdate v-on input in slots
typescript
computed: {
inputEvents(): any {
return {
input: (e: { target: HTMLInputElement }) => {
const value = e.target.value;
// https://www.typescriptlang.org/docs/handbook/advanced-types.html | |
// https://dev.to/pauloedurezende/the-power-of-union-and-type-guard-in-typescript-1amg | |
//https://www.freecodecamp.org/news/advanced-typescript-types-cheat-sheet-with-examples/ |
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
// page: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php | |
// Wrap the data in a response object. | |
$response = rest_ensure_response( $data ); | |
// here!!!!! 여기 주석처리 중요 | |
// $response->add_links( $this->prepare_links( $post ) ); | |
// here!!!!! |