This repository has been archived by the owner on Feb 3, 2025. It is now read-only.
forked from jsnewby/rust_middleware
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
770 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
**/*~ | ||
/target | ||
**/*.rs.bk | ||
.env |
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 |
---|---|---|
|
@@ -39,5 +39,4 @@ root: | |
level: debug | ||
appenders: | ||
- main | ||
- stdout |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ FROM node:10.16.3-stretch as frontend | |
WORKDIR /app | ||
COPY --from=frontend-build /app/.nuxt /app/.nuxt | ||
COPY --from=frontend-build /app/static /app/static | ||
RUN npm install [email protected] @nuxtjs/[email protected] @download/[email protected] [email protected] [email protected] [email protected] && \ | ||
RUN npm install [email protected] @nuxtjs/[email protected] @download/[email protected] [email protected] [email protected] [email protected] [email protected] && \ | ||
npm cache clean --force | ||
COPY package.json package.json | ||
COPY LICENSE.md LICENSE.md | ||
|
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,6 +1,6 @@ | ||
<template> | ||
<svg-icon | ||
:name="name" | ||
:name="`${name}/${name}`" | ||
class="app-icon" | ||
/> | ||
</template> | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<template> | ||
<div class="app-names"> | ||
<PageHeader | ||
title="Name Auctions" | ||
:has-crumbs="true" | ||
:page="{to: '/auctions', name: 'Name Auctions'}" | ||
/> | ||
<div class="filter"> | ||
<multiselect | ||
v-model="sortby" | ||
track-by="name" | ||
label="name" | ||
:options="options" | ||
:allow-empty="false" | ||
:loading="loading" | ||
placeholder="Sort By...." | ||
@input="processInput" | ||
/> | ||
</div> | ||
<div class="auction-slider"> | ||
<client-only> | ||
Name Length: {{ length || 'All' }} | ||
<vue-slider | ||
ref="slider" | ||
v-model="length" | ||
:min="0" | ||
:max="12" | ||
:marks="true" | ||
:data="auctionMarks" | ||
:tooltip="'focus'" | ||
:clickable="true" | ||
@change="processInput" | ||
/> | ||
</client-only> | ||
</div> | ||
<div class="auction-error-messages"> | ||
<div v-if="!loading && auctions.length > 0"> | ||
<NameAuctionList> | ||
<NameAuction | ||
v-for="(item, index) of auctions" | ||
:key="index" | ||
:data="item" | ||
/> | ||
</NameAuctionList> | ||
<LoadMoreButton @update="loadMore" /> | ||
</div> | ||
<div v-if="loading"> | ||
Loading.... | ||
</div> | ||
<div v-if="!loading && auctions.length == 0"> | ||
Nothing to see here right now.... | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import NameAuctionList from '../../partials/names/nameAuctionList' | ||
import NameAuction from '../../partials/names/nameAuction' | ||
import PageHeader from '../../components/PageHeader' | ||
import LoadMoreButton from '../../components/loadMoreButton' | ||
import Multiselect from 'vue-multiselect' | ||
export default { | ||
name: 'AppNames', | ||
components: { | ||
NameAuctionList, | ||
NameAuction, | ||
PageHeader, | ||
LoadMoreButton, | ||
Multiselect | ||
}, | ||
data () { | ||
return { | ||
page: 1, | ||
loading: true, | ||
auctions: [], | ||
auctionMarks: ['All', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], | ||
options: [ | ||
{ name: 'Expiring Soon', value: 'expiration' }, | ||
{ name: 'Name', value: 'name' }, | ||
{ name: 'Max Bid', value: 'max_bid' } | ||
], | ||
sortby: { name: 'Expiring Soon', value: 'expiration' }, | ||
length: 0 | ||
} | ||
}, | ||
computed: { | ||
actualLength () { | ||
return this.length > 0 ? this.length + 6 : this.length | ||
} | ||
}, | ||
async asyncData ({ store }) { | ||
const auctions = await store.dispatch('names/getActiveNameAuctions', { 'page': 1, 'limit': 10, sort: 'expiration', length: 0 }) | ||
return { auctions, page: 2, loading: false } | ||
}, | ||
methods: { | ||
async loadMore () { | ||
const auctions = await this.$store.dispatch('names/getActiveNameAuctions', { 'page': this.page, 'limit': 10, sort: this.sortby.value, length: this.actualLength }) | ||
this.auctions = [...this.auctions, ...auctions] | ||
this.page += 1 | ||
}, | ||
async processInput () { | ||
this.loading = true | ||
this.page = 1 | ||
this.auctions = await this.$store.dispatch('names/getActiveNameAuctions', { 'page': this.page, 'limit': 10, sort: this.sortby.value, length: this.actualLength }) | ||
this.page += 1 | ||
this.loading = false | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.auction-error-messages { | ||
margin-top: 2em; | ||
} | ||
</style> |
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
Oops, something went wrong.