View deno-file-search.ts
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 yargs from "https://deno.land/x/yargs@v17.0.1-deno/deno.ts"; | |
import * as path from "https://deno.land/std@0.97.0/path/mod.ts"; | |
interface Yargs<ArgvReturnType> { | |
describe: (param: string, description: string) => Yargs<ArgvReturnType>; | |
demandOption: (required: string[]) => Yargs<ArgvReturnType>; | |
argv: ArgvReturnType; | |
} | |
interface UserArguments { |
View final-app.vue
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> | |
<img :src="logoURL" :alt="logoCaption" width="200" height="200" /> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span> | |
<div> | |
<input type="text" | |
v-model="newTask" |
View dynamic-css-vue.vue
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> | |
<img :src="logoURL" :alt="logoCaption" width="200" height="200" /> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span> | |
<div> | |
<input type="text" | |
v-model="newTask" |
View attribute-binding.vue
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> | |
<img :src="logoURL" :alt="logoCaption" width="200" height="200" /> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span> | |
<div> | |
<input type="text" | |
v-model="newTask" |
View computed-properties.vue
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> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<span>You have {{ allTasks }} {{ allTasks > 1 ? 'tasks' : 'task' }} at the moment</span> | |
<div> | |
<input type="text" | |
v-model="newTask" | |
placeholder="Add a new task" |
View handle-user-events.vue
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> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<div> | |
<input type="text" | |
v-model="newTask" | |
placeholder="Add a new task" | |
> |
View vue-methods.vue
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> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<div> | |
<input type="text" | |
v-model="newTask" | |
placeholder="Add a new task" | |
> |
View handle-user-input.vue
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> | |
<h1>{{ title }}</h1> | |
<h2>Add a new task</h2> | |
<div> | |
<input type="text" | |
v-model="newTask" | |
placeholder="Add a new task" | |
> |
View conditional-rendering.vue
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> | |
<h1>{{ title }}</h1> | |
<ul> | |
<li v-for="task in tasks" :key="task.id"> | |
{{ task.id }}. {{ task.name }} | |
<div v-if="task.finished"> | |
<button>Delete task</button> | |
</div> |
View list-rendering.vue
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> | |
<h1>{{ title }}</h1> | |
<ul> | |
<li v-for="task in tasks" :key="task.id"> | |
{{task.id}}. {{ task.name }} | |
</li> | |
</ul> | |
</template> |
NewerOlder