-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit a8cb5e3
Showing
20 changed files
with
9,050 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Node template | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# Nuxt generate | ||
dist | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless | ||
|
||
# IDE / Editor | ||
.idea | ||
.editorconfig | ||
|
||
# Service worker | ||
sw.* | ||
|
||
# Mac OSX | ||
.DS_Store | ||
|
||
# Vim swap files | ||
*.swp |
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,19 @@ | ||
# Web3 `toHex` bug | ||
|
||
Steps to reproduce | ||
1. yarn | ||
2. yarn generate | ||
3. cd dist | ||
4. python -m SimpleHTTPServer 8088 | ||
5. open up js console in localhost:8088 and notice that there are incorrect `toHex` results | ||
``` | ||
n1 7120861356467848435263064379192047478074060781135320967663101236819528304084 | ||
toX 0x2266626534336333366138306533366437633763353834643466386633373539666235316630643636303635643861323237623638386431323438386335643422 | ||
``` | ||
|
||
if you do `yarn dev -o` you will see that `toHex` is working as expected | ||
|
||
``` | ||
n1 7120861356467848435263064379192047478074060781135320967663101236819528304084 | ||
toX 0xfbe43c36a80e36d7c7c584d4f8f3759fb51f0d66065d8a227b688d12488c5d4 | ||
``` |
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,7 @@ | ||
# ASSETS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,42 @@ | ||
<template> | ||
<div class="column"> | ||
<div class="card"> | ||
<header class="card-header"> | ||
<p class="card-header-title has-text-grey"> | ||
{{ title }} | ||
</p> | ||
</header> | ||
<div class="card-content"> | ||
<div class="content has-text-centered"> | ||
<b-icon | ||
:icon="icon" | ||
size="is-large" | ||
type="is-primary" | ||
/> | ||
</div> | ||
</div> | ||
<footer class="card-footer"> | ||
<div class="card-footer-item"> | ||
<span> | ||
<slot /> | ||
</span> | ||
</div> | ||
</footer> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
title: { | ||
type: String, | ||
required: true | ||
}, | ||
icon: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> |
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,79 @@ | ||
<template> | ||
<div class="VueToNuxtLogo"> | ||
<div class="Triangle Triangle--two" /> | ||
<div class="Triangle Triangle--one" /> | ||
<div class="Triangle Triangle--three" /> | ||
<div class="Triangle Triangle--four" /> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.VueToNuxtLogo { | ||
display: inline-block; | ||
animation: turn 2s linear forwards 1s; | ||
transform: rotateX(180deg); | ||
position: relative; | ||
overflow: hidden; | ||
height: 180px; | ||
width: 245px; | ||
} | ||
.Triangle { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 0; | ||
height: 0; | ||
} | ||
.Triangle--one { | ||
border-left: 105px solid transparent; | ||
border-right: 105px solid transparent; | ||
border-bottom: 180px solid #41b883; | ||
} | ||
.Triangle--two { | ||
top: 30px; | ||
left: 35px; | ||
animation: goright 0.5s linear forwards 3.5s; | ||
border-left: 87.5px solid transparent; | ||
border-right: 87.5px solid transparent; | ||
border-bottom: 150px solid #3b8070; | ||
} | ||
.Triangle--three { | ||
top: 60px; | ||
left: 35px; | ||
animation: goright 0.5s linear forwards 3.5s; | ||
border-left: 70px solid transparent; | ||
border-right: 70px solid transparent; | ||
border-bottom: 120px solid #35495e; | ||
} | ||
.Triangle--four { | ||
top: 120px; | ||
left: 70px; | ||
animation: godown 0.5s linear forwards 3s; | ||
border-left: 35px solid transparent; | ||
border-right: 35px solid transparent; | ||
border-bottom: 60px solid #fff; | ||
} | ||
@keyframes turn { | ||
100% { | ||
transform: rotateX(0deg); | ||
} | ||
} | ||
@keyframes godown { | ||
100% { | ||
top: 180px; | ||
} | ||
} | ||
@keyframes goright { | ||
100% { | ||
left: 70px; | ||
} | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# COMPONENTS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
The components directory contains your Vue.js Components. | ||
|
||
_Nuxt.js doesn't supercharge these components._ |
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,7 @@ | ||
# LAYOUTS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your Application Layouts. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts). |
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,74 @@ | ||
<template> | ||
<div> | ||
<nav | ||
class="navbar header has-shadow is-primary" | ||
role="navigation" | ||
aria-label="main navigation" | ||
> | ||
<div class="navbar-brand"> | ||
<a | ||
class="navbar-item" | ||
href="/" | ||
> | ||
<img | ||
src="~assets/buefy.png" | ||
alt="Buefy" | ||
height="28" | ||
> | ||
</a> | ||
|
||
<div class="navbar-burger"> | ||
<span /> | ||
<span /> | ||
<span /> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section class="main-content columns"> | ||
<aside class="column is-2 section"> | ||
<p class="menu-label is-hidden-touch"> | ||
General | ||
</p> | ||
<ul class="menu-list"> | ||
<li | ||
v-for="(item, key) of items" | ||
:key="key" | ||
> | ||
<nuxt-link | ||
:to="item.to" | ||
exact-active-class="is-active" | ||
> | ||
<b-icon :icon="item.icon" /> {{ item.title }} | ||
</nuxt-link> | ||
</li> | ||
</ul> | ||
</aside> | ||
|
||
<div class="container column is-10"> | ||
<nuxt /> | ||
</div> | ||
</section> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
items: [ | ||
{ | ||
title: 'Home', | ||
icon: 'home', | ||
to: { name: 'index' } | ||
}, | ||
{ | ||
title: 'Inspire', | ||
icon: 'lightbulb', | ||
to: { name: 'inspire' } | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> |
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,8 @@ | ||
# MIDDLEWARE | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your application middleware. | ||
Middleware let you define custom functions that can be run before rendering either a page or a group of pages. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware). |
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,54 @@ | ||
|
||
export default { | ||
mode: 'universal', | ||
/* | ||
** Headers of the page | ||
*/ | ||
head: { | ||
title: process.env.npm_package_name || '', | ||
meta: [ | ||
{ charset: 'utf-8' }, | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' } | ||
], | ||
link: [ | ||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
] | ||
}, | ||
/* | ||
** Customize the progress-bar color | ||
*/ | ||
loading: { color: '#fff' }, | ||
/* | ||
** Global CSS | ||
*/ | ||
css: [ | ||
], | ||
/* | ||
** Plugins to load before mounting the App | ||
*/ | ||
plugins: [ | ||
], | ||
/* | ||
** Nuxt.js dev-modules | ||
*/ | ||
buildModules: [ | ||
], | ||
/* | ||
** Nuxt.js modules | ||
*/ | ||
modules: [ | ||
// Doc: https://buefy.github.io/#/documentation | ||
'nuxt-buefy', | ||
], | ||
/* | ||
** Build configuration | ||
*/ | ||
build: { | ||
/* | ||
** You can extend webpack config here | ||
*/ | ||
extend (config, ctx) { | ||
} | ||
} | ||
} |
Oops, something went wrong.