Skip to content

Instantly share code, notes, and snippets.

View shershen08's full-sized avatar

Mikhail Kuznetcov shershen08

View GitHub Profile
@shershen08
shershen08 / VueUseDemo.vue
Created April 8, 2022 08:17
vueuse error
<script>
import { ref } from 'vue'
import { watchDebounced } from '@vueuse/core'
export default {
setup(){
const input = ref('')
const updated = ref(0)
watchDebounced(input, () => {
updated.value += 1
@shershen08
shershen08 / send.js
Created January 31, 2022 20:35
notification
export const sendNotification = (text) => {
//https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification
let promise = Notification.requestPermission();
// wait for permission
promise.then(data => {
const eventName = 'new message'
var options = {
body: text,
<template>
<img alt="Vue logo" src="./assets/logo.png">
<!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
<!-- <Demo/> -->
{{rea1}}<br>
{{rea2}}<br>
{{rea3}}<br>
{{rea4}}<br>
<br>
@shershen08
shershen08 / companies-using-vue.md
Last active September 13, 2021 10:41
Vuejs users in enterprise and large scale projects
@shershen08
shershen08 / index.js
Created March 6, 2021 09:27
expressjs demo
var express = require('express'),
//import express from 'express'
app = express();
const port = process.env.PORT || 9999;
console.log(process.env.PORT)
//app.set('port', 8080);
//
app.use(express.static(__dirname));
@shershen08
shershen08 / static-forum-header.html
Created November 12, 2020 15:32
static forum header markup
<header class="header" id="header">
<a href="#">
<img src="../assets/img/vueschool-logo.svg">
</a>
<div class="btn-hamburger">
<!-- use .btn-humburger-active to open the menu -->
<div class="top bar"></div>
<div class="middle bar"></div>
<div class="bottom bar"></div>
<div class="col-large push-top">
<h1></h1>
<div class="post-list">
<div class="post">
<div class="user-info">
<a href="#" class="user-name"></a>
<a href="#">
<img class="avatar-large" src="" alt="">
@shershen08
shershen08 / compoent-setup-function.js
Created October 29, 2020 19:38
vuex4 + filtering stuff in component
setup(props) {
const store = useStore()
const user = computed(() => {
return store.getters.authUser
})
const posts = computed(() => {
return store.getters.posts
@shershen08
shershen08 / extensions.txt
Created October 15, 2020 11:45
dev chrome extensions I use
Apollo Client Developer Tools <----- Apollo
Cookie Editor
JSON Formatter
Redux DevTools <----- react
OctoLinker <------ fast github navigation
Dimensions - check css and apply images for pp
Vue.js devtools
WebSocket King Client
Postman Interceptor
Sight - another The Syntax Highlighter