View HomeView.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
<script setup> | |
import TabbableTextarea from "@/components/TabbableTextarea.vue"; | |
import { ref } from "vue"; | |
let comment = ref('initial textarea value'); | |
</script> | |
<template> | |
<main> | |
<form> |
View demo.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
<script setup> | |
import { useStorage } from "@/composables/useStorage"; | |
let food = useStorage('food', 'tacos'); | |
</script> | |
<template> | |
<main> | |
<p> | |
What is your favorite food? <input type="text" v-model="food"> |
View AssignmentList.js
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 Assignment from "./Assignment.js"; | |
import AssignmentTags from "./AssignmentTags.js"; | |
import Panel from "./Panel.js"; | |
export default { | |
components: { Assignment, AssignmentTags, Panel }, | |
template: ` | |
<Panel v-show="assignments.length" class="w-60"> | |
<div class="flex justify-between items-start"> |
View AssignmentList.js
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 Assignment from "./Assignment.js"; | |
import AssignmentTags from "./AssignmentTags.js"; | |
export default { | |
components: { Assignment, AssignmentTags }, | |
template: ` | |
<section v-show="assignments.length" class="w-60"> | |
<div class="flex justify-between items-start"> | |
<h2 class="font-bold mb-2"> |
View Assignments.js
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 AssignmentList from "./AssignmentList.js"; | |
import AssignmentCreate from "./AssignmentCreate.js"; | |
export default { | |
components: { AssignmentList, AssignmentCreate }, | |
template: ` | |
<section class="space-y-6"> | |
<assignment-list :assignments="filters.inProgress" title="In Progress"></assignment-list> | |
<assignment-list :assignments="filters.completed" title="Completed"></assignment-list> |
View AssignmentList.js
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 Assignment from "./Assignment.js"; | |
import AssignmentTags from "./AssignmentTags.js"; | |
export default { | |
components: { Assignment, AssignmentTags }, | |
template: ` | |
<section v-show="assignments.length"> | |
<h2 class="font-bold mb-2"> | |
{{ title }} |
View index.php
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
<?php | |
class Player { | |
public function __construct(public string $name, public int $pennies) | |
{ | |
// | |
} | |
public function givePenny(Player $p2): void | |
{ |
View AssignmentList.js
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 Assignment from "./Assignment.js"; | |
export default { | |
components: { Assignment }, | |
template: ` | |
<section v-show="assignments.length"> | |
<h2 class="font-bold mb-2"> | |
{{ title }} | |
<span>({{ assignments.length }})</span> |
View App.js
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 Assignments from "./Assignments.js"; | |
export default { | |
components: { Assignments }, | |
template: ` | |
<assignments></assignments> | |
`, | |
} |
View App.js
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 Assignments from "./Assignments.js"; | |
export default { | |
components: { Assignments }, | |
template: ` | |
<assignments></assignments> | |
`, | |
} |
NewerOlder