Updated some small things and edited README and some issue templates
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
export default {
|
||||
props: {
|
||||
prop1: String,
|
||||
prop2: String,
|
||||
prop3: String,
|
||||
prop4: String,
|
||||
prop5: String
|
||||
name: String,
|
||||
park: String,
|
||||
length: String,
|
||||
height: String,
|
||||
speed: String
|
||||
},
|
||||
components: {
|
||||
|
||||
@@ -17,10 +17,10 @@ export default {
|
||||
|
||||
<template>
|
||||
<tr class="border-b dark:border-gray-700">
|
||||
<th scope="row" class="px-4 py-3 font-medium text-gray-900 whitespace-nowrap dark:text-white">{{ prop1 }}</th>
|
||||
<td class="px-4 py-3">{{ prop2 }}</td>
|
||||
<td class="px-4 py-3">{{ prop3 }}</td>
|
||||
<td class="px-4 py-3">{{ prop4 }}</td>
|
||||
<td class="px-4 py-3">{{ prop5 }}</td>
|
||||
<th scope="row" class="px-4 py-3 font-medium text-gray-900 whitespace-nowrap dark:text-white">{{ name }}</th>
|
||||
<td class="px-4 py-3">{{ park }}</td>
|
||||
<td class="px-4 py-3">{{ length }}</td>
|
||||
<td class="px-4 py-3">{{ height }}</td>
|
||||
<td class="px-4 py-3">{{ speed }}</td>
|
||||
</tr>
|
||||
</template>
|
||||
@@ -22,6 +22,16 @@ const routes: Array<RouteRecordRaw> = [
|
||||
component: () => import('./views/app/App.vue')
|
||||
},
|
||||
|
||||
//Coaster pages
|
||||
{
|
||||
path: '/app/coasters',
|
||||
component: () => import('./views/app/coasters/Coasters.vue')
|
||||
},
|
||||
{
|
||||
path: '/app/coaster/:coasterId',
|
||||
component: () => import('./views/app/coasters/Coaster.vue')
|
||||
},
|
||||
|
||||
//Redirects
|
||||
|
||||
//Configuration
|
||||
|
||||
@@ -26,10 +26,14 @@ export default {
|
||||
Help
|
||||
},
|
||||
mounted() {
|
||||
var current_page = "";
|
||||
setInterval(() => {
|
||||
const docs = document.getElementById("docs-container");
|
||||
const help = document.getElementById("docs-container");
|
||||
|
||||
if (current_page == window.location.href.replace("https://", "").split("/")[4]) return;
|
||||
current_page = window.location.href.replace("https://", "").split("/")[4];
|
||||
|
||||
switch (window.location.href.replace("https://", "").split("/")[4]) {
|
||||
case "docs":
|
||||
if (docs?.classList.contains('hidden')) docs?.classList.remove('hidden'); else help?.classList.add('hidden');
|
||||
@@ -51,11 +55,11 @@ export default {
|
||||
<template>
|
||||
<title>App - CoasterDB</title>
|
||||
<Header />
|
||||
|
||||
<!--
|
||||
<section class="dark:bg-gray-900 sm:p-60">
|
||||
<Documentation id="docs-container" class="hidden" />
|
||||
<Help id="help-container" class="hidden" />
|
||||
</section>
|
||||
|
||||
-->
|
||||
<Sidebar />
|
||||
</template>
|
||||
104
src/views/app/coasters/Coaster.vue
Normal file
104
src/views/app/coasters/Coaster.vue
Normal file
@@ -0,0 +1,104 @@
|
||||
<script lang="ts">
|
||||
|
||||
import Header from '../../../components/app/AppHeader.vue'
|
||||
import Sidebar from '../../../components/app/AppSidebar.vue'
|
||||
import ListItem from '../../../components/app/ListItem.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Header,
|
||||
Sidebar,
|
||||
ListItem
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<title>App - CoasterDB</title>
|
||||
<Header />
|
||||
<div style="margin-top: 63px;">
|
||||
<section class="bg-gray-50 dark:bg-gray-900 p-3 sm:p-5">
|
||||
<div class="mx-auto max-w-screen-xl px-4 lg:px-12">
|
||||
<!-- Start coding here -->
|
||||
<div class="bg-white dark:bg-gray-800 relative shadow-md sm:rounded-lg overflow-hidden">
|
||||
<div class="flex flex-col md:flex-row items-center justify-between space-y-3 md:space-y-0 md:space-x-4 p-4">
|
||||
<div class="w-full md:w-1/2">
|
||||
<form class="flex items-center">
|
||||
<label for="simple-search" class="sr-only">Search</label>
|
||||
<div class="relative w-full">
|
||||
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
||||
<svg aria-hidden="true" class="w-5 h-5 text-gray-500 dark:text-gray-400" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</div>
|
||||
<input type="text" id="simple-search" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-500 focus:border-primary-500 block w-full pl-10 p-2 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500" placeholder="Search">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
||||
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
||||
<tr>
|
||||
<th scope="col" class="px-4 py-3">Name</th>
|
||||
<th scope="col" class="px-4 py-3">Park</th>
|
||||
<th scope="col" class="px-4 py-3">Streckenlänge</th>
|
||||
<th scope="col" class="px-4 py-3">Maximale Höhe</th>
|
||||
<th scope="col" class="px-4 py-3">maximale Geschwindigkeit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<ListItem name="Blue Fire" park="Europa Park" length="1050m" height="38m" speed="100km/h" />
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<nav class="flex flex-col md:flex-row justify-between items-start md:items-center space-y-3 md:space-y-0 p-4" aria-label="Table navigation">
|
||||
<span class="text-sm font-normal text-gray-500 dark:text-gray-400">
|
||||
Showing
|
||||
<span class="font-semibold text-gray-900 dark:text-white">1-10</span>
|
||||
of
|
||||
<span class="font-semibold text-gray-900 dark:text-white">1000</span>
|
||||
</span>
|
||||
<ul class="inline-flex items-stretch -space-x-px">
|
||||
<li>
|
||||
<a href="#" class="flex items-center justify-center h-full py-1.5 px-3 ml-0 text-gray-500 bg-white rounded-l-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white">
|
||||
<span class="sr-only">Previous</span>
|
||||
<svg class="w-5 h-5" aria-hidden="true" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="flex items-center justify-center text-sm py-2 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white">1</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="flex items-center justify-center text-sm py-2 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white">2</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" aria-current="page" class="flex items-center justify-center text-sm z-10 py-2 px-3 leading-tight text-primary-600 bg-primary-50 border border-primary-300 hover:bg-primary-100 hover:text-primary-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white">3</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="flex items-center justify-center text-sm py-2 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white">...</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="flex items-center justify-center text-sm py-2 px-3 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white">100</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="flex items-center justify-center h-full py-1.5 px-3 leading-tight text-gray-500 bg-white rounded-r-lg border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white">
|
||||
<span class="sr-only">Next</span>
|
||||
<svg class="w-5 h-5" aria-hidden="true" fill="currentColor" viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<Sidebar />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user