chore: restore original directory structure (project under code-review-graph-main/)

This commit is contained in:
AuraK Developer
2026-08-31 13:08:20 +08:00
parent ecc55158c1
commit ecfd03a21c
404 changed files with 0 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<template>
<div class="app">
<h1>{{ title }}</h1>
<UserList :users="users" @select="onSelectUser" />
<button @click="increment">Count: {{ count }}</button>
</div>
</template>
<script setup lang="ts">
import { ref, computed } from 'vue'
import UserList from './UserList.vue'
interface User {
id: number
name: string
}
const count = ref(0)
const title = ref('My App')
const users = ref<User[]>([])
function increment() {
count.value++
}
function onSelectUser(user: User) {
console.log(user.name)
}
const doubled = computed(() => count.value * 2)
function fetchUsers() {
return fetch('/api/users')
}
</script>