This file contains 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 Vue from 'vue'; | |
import Vuex from 'vuex'; | |
import createPersistedState from "vuex-persistedstate"; | |
Vue.use(Vuex); | |
export const store = new Vuex.Store({ | |
plugins: [createPersistedState()], | |
state: { | |
scrums: [], | |
activescrum: '', |
This file contains 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" /> | |
<link rel="icon" type="image/svg+xml" href="favicon.svg" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Vite App</title> | |
</head> | |
<body> | |
<fieldset> |
This file contains 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 { defineStore } from 'pinia' | |
export const useMainStore = defineStore({ | |
id: 'main', | |
state: () => ({ | |
todos: [], | |
}), | |
getters: { | |
getAllTodos() { | |
return this.todos |
This file contains 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> | |
<input type="text" v-model="mytodo" /> | |
<button @click="AddTodo">Add Todo</button> | |
<div v-if="!isEmpty"> | |
<p v-for="(todo, index) in todos" :key="index"> | |
{{ index }}. {{ todo }} <button @click="removeTodo(index)">delete</button> | |
</p> | |
</div> | |
<div v-else>No todos found</div> | |
</template> |
This file contains 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 { defineStore } from 'pinia' | |
import { useStorage } from '@vueuse/core' | |
export const useMainStore = defineStore({ | |
id: 'main', | |
state: () => ({ | |
todos: useStorage('todos', []) | |
}), | |
getters: { | |
getAllTodos() { |
This file contains 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
# command for burning to flash drive | |
sudo dd if=yourISO.iso of=/dev/sdb status=progress | |
# delete all node modules in dir | |
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; |
This file contains 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> | |
<nav-bar /> | |
<router-view v-slot="{ Component }"> | |
<transition @enter="fadeIn" @leave="fadeOut" v-bind:css="false" mode="out-in"> | |
<component :is="Component" /> | |
</transition> | |
</router-view> | |
</div> | |
</template> |
This file contains 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 c = { | |
"AF": { | |
"Country": "Afghanistan", | |
"Alpha-2 code": "AF", | |
"Alpha-3 code": "AFG", | |
"Numeric code": 4, | |
"Latitude (average)": 33, | |
"Longitude (average)": 65, | |
"emoji_flag": "🇦🇫" | |
}, |
OlderNewer