project: init
This commit is contained in:
97
components/base/DashboardSidebar.vue
Normal file
97
components/base/DashboardSidebar.vue
Normal file
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-app-bar dark height="50" flat color="secondary" app>
|
||||
<v-app-bar-nav-icon
|
||||
color="primary"
|
||||
class="hidden-lg-and-up"
|
||||
@click.stop="drawer = !drawer"
|
||||
></v-app-bar-nav-icon>
|
||||
<div></div>
|
||||
</v-app-bar>
|
||||
<v-navigation-drawer
|
||||
v-model="drawer"
|
||||
app
|
||||
dark
|
||||
floating
|
||||
class="elevation-4"
|
||||
color="primary"
|
||||
width="200"
|
||||
>
|
||||
<div class="d-flex flex-column align-center">
|
||||
<div class="pa-3">
|
||||
<v-img :src="require('@/assets/gecon_logo.png')" max-width="65px" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<v-list class="overline" dense>
|
||||
<v-list-item to="/">
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-view-dashboard</v-icon>
|
||||
</v-list-item-icon>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>Home</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item disabled to="/tokens">
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-cash-multiple</v-icon>
|
||||
</v-list-item-icon>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>Tokens</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item disabled to="/accounts">
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-wallet</v-icon>
|
||||
</v-list-item-icon>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>Accounts</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item disabled to="/transactions">
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-tray-full</v-icon>
|
||||
</v-list-item-icon>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>Transactions</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item disabled to="/social-network">
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-account-group</v-icon>
|
||||
</v-list-item-icon>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>Social Network</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
|
||||
<template #append>
|
||||
<div class="pa-2 text-center">
|
||||
<v-chip color="success" small label>
|
||||
<b>Grassroots Economics</b>
|
||||
</v-chip>
|
||||
</div>
|
||||
</template>
|
||||
</v-navigation-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
drawer: null,
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
73
components/charts/LineChart.vue
Normal file
73
components/charts/LineChart.vue
Normal file
@@ -0,0 +1,73 @@
|
||||
<template>
|
||||
<client-only>
|
||||
<v-card elevation="0" outlined>
|
||||
<v-card-text>
|
||||
<v-card-subtitle class="black--text">
|
||||
{{ chartTitle }}
|
||||
</v-card-subtitle>
|
||||
<ApexChart
|
||||
height="250"
|
||||
width="100%"
|
||||
type="area"
|
||||
:options="chartOptions"
|
||||
:series="seriesData"
|
||||
></ApexChart>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</client-only>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
chartData: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
chartTitle: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
chartOptions: {
|
||||
tooltip: {
|
||||
y: {
|
||||
title: {
|
||||
formatter: () => 'count',
|
||||
},
|
||||
},
|
||||
},
|
||||
chart: {
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
type: 'line',
|
||||
zoom: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: true,
|
||||
},
|
||||
grid: {
|
||||
row: {
|
||||
colors: ['#f3f3f3', 'transparent'],
|
||||
opacity: 0.5,
|
||||
},
|
||||
},
|
||||
xaxis: {
|
||||
type: 'datetime',
|
||||
},
|
||||
},
|
||||
|
||||
seriesData: [
|
||||
{
|
||||
data: this.chartData,
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user