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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Шпионский лабиринт v1.1.0</title> | |
<style> | |
body { | |
background-color: #222; |
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
Auto Close Tag | |
Auto Complete Tag | |
Auto Rename Tag | |
Babel JS | |
Batch Rename | |
Code Spell Checker + Russia | |
Color Highlight | |
Comments Anchor |
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> | |
<v-card> | |
<div v-if="!currentTab"> | |
... | |
</div> | |
<component v-else :is="currentTabComponent" /> | |
</v-card> | |
<v-row class="d-flex align-center"> | |
<v-col v-for="tab in games" :key="tab.name"> |
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 moment from 'moment'; | |
eventTimer() { | |
// const now = new Date(); | |
// const start = new Date(this.info.recdatebegin); | |
// const end = new Date(this.info.recdateend); | |
// const diff = new Date(start.getTime() - now.getTime()); | |
// const empty = new Date(0); | |
// const days = diff.getDate() - empty.getDate(); | |
// const hours = diff.getHours() - empty.getHours(); |
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
GET index/_search | |
{ | |
"query": { | |
"match_all": {} | |
} | |
} | |
// by id | |
GET index/_doc/1 |
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> | |
{{ | |
getNoun(YourCount, | |
'комментарий', | |
'комментария', | |
'комментариев' | |
) | |
}} | |
</template> |
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
// change `nameState` | |
export default { | |
data: () => ({ | |
nameState: 0, | |
}), | |
watch: { | |
nameState(state) { | |
localStorage.setItem('nameState', JSON.stringify(state)); | |
}, | |
}, |
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
const array = []; | |
// inside one array, combine objects with a common value into sub arrays js | |
const arr = Object.values( | |
array.reduce((r, cur) => { | |
const key = 'k' + cur['code_importance_event']; | |
(r[key] = r[key] || []).push(cur); | |
return r; | |
}, {}) |
NewerOlder