Skip to content

Commit

Permalink
Remove all unused format and containers
Browse files Browse the repository at this point in the history
  • Loading branch information
shijiezhou1 committed Sep 20, 2020
1 parent 96e4167 commit 45f4d8f
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 155 deletions.
122 changes: 44 additions & 78 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,6 @@
></vue-navigation-bar>
</div>
<router-view />
<!-- <div v-show="jwt !== null">
<p>Returned JWT: {{jwt}}</p>
<p>
<a @click="logOut" href="#">Log Out</a>
</p>
</div>
<form class="form-signin" @submit.prevent="login" v-show="jwt == null">
<label for="inputUsername">Username</label>
&nbsp;
<input
v-model="username"
type="text"
id="inputUsername"
placeholder="Username"
required
autofocus
/>
<br />
<br />
<label for="inputPassword">Password</label>
&nbsp;
<input
v-model="password"
type="password"
id="inputPassword"
placeholder="Password"
required
/>
<p>
<input type="submit" value="Sign In" />
</p>
</form> -->
</div>
<Footer />
</v-app>
Expand Down Expand Up @@ -71,31 +38,31 @@ export default {
tooltipAnimationType: 'shift-away',
menuOptionsRight: [
{
type: 'link',
text: 'Projects',
subMenuOptions: [
{
type: 'link',
text: 'Expedition',
path: './expedition',
iconLeft: '<i class="fa fa-user fa-fw"></i>'
},
{
type: 'link',
text: 'Collection',
path: './collection',
iconLeft: '<i class="fa fa-star fa-fw"></i>'
},
{
type: 'hr'
},
{
type: 'link',
text: 'Exclusive',
path: './exclusive',
iconLeft: '<i class="fas fa-air-freshener" aria-hidden="true"></i>'
}
]
type: 'link',
text: 'Projects',
subMenuOptions: [
{
type: 'link',
text: 'Expedition',
path: './expedition',
iconLeft: '<i class="fa fa-user fa-fw"></i>'
},
{
type: 'link',
text: 'Collection',
path: './collection',
iconLeft: '<i class="fa fa-star fa-fw"></i>'
},
{
type: 'hr'
},
{
type: 'link',
text: 'Exclusive',
path: './exclusive',
iconLeft: '<i class="fas fa-air-freshener" aria-hidden="true"></i>'
}
]
},
{
type: 'link',
Expand Down Expand Up @@ -166,36 +133,35 @@ export default {
logOut() {
this.jwt = null;
this.$toasted.global
.appSuccess( {
.appSuccess({
message: "Locally Logged Out!"
} )
.goAway( 1200 );
})
.goAway(1200);
},
login() {
if ( this.$socket.disconnected ) {
if (this.$socket.disconnected) {
this.$toasted.global
.appError( {
.appError({
message: "You are not connected to the server!"
} )
.goAway( 1200 );
})
.goAway(1200);
} else {
this.$socket.emit( "authenticate", {
data: JSON.stringify( {
this.$socket.emit("authenticate", {
data: JSON.stringify({
username: this.username,
password: this.password
} )
} );
})
});
}
},
vnbItemClicked( text ) {
if ( text === 'About' ) {
// alert("'About' was selected.");
vnbItemClicked(text) {
if (text === 'About') {
}
}
},
sockets: {
auth: function ( response ) {
auth: function (response) {
this.jwt = response.jwt;
}
}
Expand All @@ -211,7 +177,7 @@ export default {
width: 100%;
#vue-navigation-bar {
margin-left:10px;
margin-left: 10px;
div {
> .vnb__popup__bottom ul li a {
Expand Down Expand Up @@ -272,10 +238,10 @@ div .main-navbar-section {
}
}
&__popup {
&__top{
&__close-button{
&__image{
max-height: 30px!important;
&__top {
&__close-button {
&__image {
max-height: 30px !important;
width: 30px;
}
}
Expand Down
25 changes: 0 additions & 25 deletions src/components/AboutCard.vue

This file was deleted.

9 changes: 9 additions & 0 deletions src/utils/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ Vue.component('button-counter', {
},
template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>'
})


Vue.component("async-component", (resolve, reject) => {
setTimeout(() => {
resolve({
template: "<div>Async component ...</div>"
});
}, 1000);
});
6 changes: 1 addition & 5 deletions src/views/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,18 @@
<p>{{ profileDescription }}</p>
<div class="calendar">Loading the data just for you.</div>
</div>
<!-- <h2>{{title}}</h2> -->
<!-- <button @click="reset">Reset</button> -->
<!-- <AboutCard v-on:titleChanged="updateTitle" ref="comA"></AboutCard> -->
</div>
</template>

<script>
import BlockQuoteContent from '../components/BlockQuoteContent.vue';
import GitHubCalendar from 'github-calendar';
import AboutCard from "../components/AboutCard.vue"
export default {
props: {
title: null
},
components: { BlockQuoteContent, AboutCard },
components: { BlockQuoteContent },
data: () => ({
profileImage: require('@/assets/profile/profile.jpg'),
profileDescription: `Shijie Zhou studies at University of California, San Diego in the Interdisciplinary Computer in Arts. He is also the member for design and construct web developer at the Worldview project organization. Currently, he is working in Akirix(MMSG department) with software engineer.
Expand Down
2 changes: 0 additions & 2 deletions src/views/Consociation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
:href="item.url"
target="_blank"
>
<!-- :src="require('@/assets' + item.img)"-->
<!-- :lazy-src="require('@/assets' + item.img)"-->
<v-img
:src="item.img"
:lazy-src="item.img"
Expand Down
45 changes: 0 additions & 45 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
<template>
<!-- <div id="hacker-list">
<input class="search" />
<span class="sort" data-sort="name">Sort by name</span>
<span class="sort" data-sort="city">Sort by city</span>
<ul class="list">
<li>
<h3 class="name">Jonny</h3>
<p class="city">Stockholm</p>
</li>
<li>
<h3 class="name">Jonas</h3>
<p class="city">Berlin</p>
</li>
<li>
<h3 class="name">ABC</h3>
<p class="city">Java</p>
</li>
<li>
<h3 class="name">ZED</h3>
<p class="city">Java</p>
</li>
<li>
<h3 class="name">Java</h3>
<p class="city">abc</p>
</li>
</ul>
<button @click="sort()">sort</button>
</div> -->

<div id="home">
<Prometheus :items="data" />
<!-- <BlogContainer :contents="this.mediumData" /> -->
</div>
</template>

Expand Down Expand Up @@ -66,20 +35,6 @@ export default {
this.fetchConsociation();
}
}
// mounted() {
// const options = {
// valueNames: ['name', 'city']
// };
// hackerList = new List('hacker-list', options);
// },
// methods: {
// add() {
// hackerList.add({ name: 'Jonas', city: 'Berlin' });
// },
// sort() {
// hackerList.sort('name', { order: 'asc' });
// }
// }
};
</script>

Expand Down

0 comments on commit 45f4d8f

Please sign in to comment.