generated from Eisvana/app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Eisvana/dev
working app
- Loading branch information
Showing
14 changed files
with
3,845 additions
and
477 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,59 @@ | ||
<script setup lang="ts"> | ||
console.log('Hello Eisvana!'); | ||
import { ref, computed } from 'vue'; | ||
import systems from './assets/systems.json'; | ||
import ListItem from './components/ListItem.vue'; | ||
const searchTerm = ref(''); | ||
const filteredData = computed(() => systems.filter((item) => item.Discoverer.includes(searchTerm.value))); | ||
</script> | ||
|
||
<template> | ||
<div>Hello Eisvana!</div> | ||
<header> | ||
<h1>Eisvana Name-Fix</h1> | ||
</header> | ||
<main> | ||
<search class="filter"> | ||
<input | ||
v-model="searchTerm" | ||
placeholder="Search Playername" | ||
type="search" | ||
/> | ||
</search> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Fixed</th> | ||
<th>Name</th> | ||
<th>Glyphs</th> | ||
<th>Expected Prefix</th> | ||
<th>Discoverer</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<ListItem | ||
v-for="data in filteredData" | ||
:data | ||
:key="data.Glyphs" | ||
/> | ||
</tbody> | ||
</table> | ||
</main> | ||
</template> | ||
|
||
<style scoped> | ||
h1 { | ||
text-align: center; | ||
} | ||
.list { | ||
display: grid; | ||
grid-template-columns: repeat(5, auto); | ||
gap: 0.5rem; | ||
} | ||
.filter { | ||
max-width: 450px; | ||
margin-inline: auto; | ||
} | ||
</style> |
Binary file not shown.
Oops, something went wrong.