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
// Controls if the minimap is shown | |
"editor.minimap.enabled": 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
import data from '../../data/data.json' | |
const state = { | |
items: [], | |
cards: [], | |
generals: [], | |
repairs: [], | |
promotion: [] | |
} |
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 reverseUsersStatus = (users, { id }) => { | |
users.find(el => { | |
if (el.id === id) { | |
el.status = !el.status | |
} | |
}) | |
} | |
const mutations = { | |
'SET_REGISTRATION' (state, payload) { |
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
getDiscountSum (state, getters) { | |
let total = getters.getResult // connect getters getResult | |
for (let i = 0; i < state.discount.length; i += 1) { | |
if (state.discount[i].name === state.discountStatus) { | |
const discount = total * state.discount[i].value / 100 | |
return discount | |
} | |
} | |
}, | |
getPromoSum (state, getters) { |
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
1. It was a great fun - Было весело. | |
2. It was quite a job - Пришлось поработать. | |
3. Next time lucky - В следующий раз повезёт. | |
4. On the nose - В точку. | |
5. On the right track - На верном пути. | |
6. Sink or swim - Была не была. | |
7. Stand a chance - Есть шанс. | |
8. Take one's chance - Пойти на риск. | |
9. That's the way to do it - Вот так это делается. | |
10. Things happen - Всякое бывает. |
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
// methods | |
getNoun (number, singular, few, plural) { | |
number = Math.abs(number) | |
number %= 100 | |
if (number >= 5 && number <= 20) { | |
return plural | |
} | |
number %= 10; | |
if (number == 1) { | |
return singular |
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
Когда-то задавал тут вопрос о фильтрах - как не плодить многочисленные Vue.filter() в main.js, а объединить все фильтры и передать одной сущностью. | |
Вот у kazupon увидел решение. | |
Все просто - но сам не додумался: | |
// filters.js | |
export default { | |
lowercase (value) { | |
return value.toLowerCase() | |
}, |
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
App.vue | |
// ---------------------- | |
<template lang="pug"> | |
#app | |
img( src="./assets/logo.png" ) | |
//- img( :src="pathImage" ) | |
hello | |
</template> | |
<script> |
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
border.gov.au сайт иммиграционного департамента | |
abs.gov.au сайт австралийской статистики все про квалификации |
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
var _key = genKey(); | |
function genKey () { | |
return Time.now().toFixed(3) | |
} |