|
|
@@ -0,0 +1,96 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <h1>Application with ID {{ id }}</h1>
|
|
|
+ <span v-if="error !== ''">{{ error }}</span>
|
|
|
+ <div class="appdata" v-else>
|
|
|
+ <p>Username: {{ appdata.username }}</p>
|
|
|
+ <div class="pair" v-for="(value, key) in appdata.fields" :key="key">
|
|
|
+ <h4>{{ key }}</h4>
|
|
|
+ <p>{{ value }}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ appdata: '',
|
|
|
+ error: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ props: [
|
|
|
+ 'id'
|
|
|
+ ],
|
|
|
+ created () {
|
|
|
+ if(!/^\+?(0|[1-9]\d*)$/.test(this.id)) {
|
|
|
+ this.error = 'Application ID has to be a positive integer.'
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ let apps = {
|
|
|
+ 1: {
|
|
|
+ username: 'Joke',
|
|
|
+ fields: {
|
|
|
+ 'Age?': '69',
|
|
|
+ 'U like de pancake?': 'Ye I love them so much',
|
|
|
+ 'Will Dutch survive?': 'No he lives underwater.',
|
|
|
+ 'Op?': 'Yes please, cause I am from P L A N E T M I N E C R A F T',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 2: {
|
|
|
+ username: 'Josh (KingTempest07)',
|
|
|
+ fields: {
|
|
|
+ 'Age:': '11',
|
|
|
+ 'Why are you insterested in joining this server?': 'I love redstone, and I am not the best, at all, but I am trying to learn, so I thought maybe a server with some good redstone engineers could help! Also, I have no online friends, really, just real life, so I have been looking for servers on many different games, like: Terraria, Minecraft, etc.',
|
|
|
+ 'Current redstone knowledge:': 'Let\'s just say, I\'m terrible. I watch tons of Mumbo Jumbo, which is both entertaining and helpful, but I am still better at building than redstone. I know how to do things like: minecart systems, pulse extenders, double piston extenders, monostable circuits, some piston doors, do slab/redstone torch elevators, etc., but I can\'t really find was to compact or combine them easily!',
|
|
|
+ 'Past redstone experience:': 'I have made 2x2 piston doors with pressure plates on both sides, and only used around a 8x3 block area with redstone torch elevators, and I can also make some simple things, like item transport systems with water and ice, hoppers, and I\'m not that good with storage systems, but I\'m getting there!',
|
|
|
+ 'About how often do you play Minecraft?': '1-5 hours per day',
|
|
|
+ 'What kind of creations would you like to build on this server?': 'Maybe some mob farms, storage systems, and minigames, but not so soon for minigames, but I might get there!',
|
|
|
+ 'State:': 'Approved',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 3: {
|
|
|
+ username: 'Jack',
|
|
|
+ },
|
|
|
+ 4: {
|
|
|
+ username: 'John',
|
|
|
+ },
|
|
|
+ 5: {
|
|
|
+ username: 'Jeff',
|
|
|
+ },
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!apps.hasOwnProperty(this.id))
|
|
|
+ {
|
|
|
+ this.error = 'Application does not exist.'
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ this.appdata = apps[this.id]
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ },
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+ .appdata {
|
|
|
+ /width: 63em;
|
|
|
+ /width: 1024px;
|
|
|
+ }
|
|
|
+ .pair {
|
|
|
+ margin: 0.7em 0.3em 0.7em 0.3em;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pair h4 {
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pair p {
|
|
|
+ margin: 0;
|
|
|
+ margin-top: 0.2em;
|
|
|
+ margin-left: 0.5em;
|
|
|
+ }
|
|
|
+</style>
|