Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardOfCodez committed Jun 15, 2020
0 parents commit 60127df
Show file tree
Hide file tree
Showing 215 changed files with 29,015 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
40 changes: 40 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"root": true,
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"parser": "babel-eslint"
},
"extends": [
"@nuxtjs",
"eslint:recommended",
"prettier/vue"
],
"plugins": [
"prettier"
],
"rules": {
"vue/component-name-in-template-casing": [
"error",
"PascalCase",
{
"ignores": [
"nuxt",
"nuxt-link"
]
}
],
"no-console": [
"error",
{
"allow": [
"log",
"error",
"warn"
]
}
]
}
}
87 changes: 87 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store

# 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
.idea

# Service worker
sw.*

package-lock.json
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}
9 changes: 9 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
extends: ["stylelint-config-airbnb",
"stylelint-config-rational-order",
"stylelint-prettier/recommended"],
plugins: ["stylelint-order", "stylelint-scss"],
rules: {
"max-nesting-depth": null,
}
};
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.formatOnSave": false,
"editor.formatOnPaste": false,
"scss.validate": false,
"css.validate": false,
"less.validate": false,
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true,
"source.fixAll.eslint": true
}
}
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# NKN explorer - A neat explorer for the NKN blockchain
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5530e891d37e4c259e7ffa64d548b452)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=CrackDavid/nkn-explorer&utm_campaign=Badge_Grade)

## About
This is the code of [the official NKN mainnet explorer](https://nscan.io). It utilizes the [NKN open API](https://github.com/rule110-io/nkn-open-api) to get its data.

## Create .env-file
Create an ``.env``-file in the project root containing the following (if you're using the official NKN open API just copy/paste)
```
PUSHER_SECRET = "a2b7c363f4b1e5139e6e"
PUSHER_CLUSTER = "mt1"
PUSHER_HOST = "openapi.nkn.org"
PUSHER_PORT = 8443
```

## Build Setup

``` bash
# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn run dev

# build for production and launch server
$ yarn run build
$ yarn start

# generate static project
$ yarn run generate
```

For detailed explanation on how things work, checkout [Nuxt.js docs](https://nuxtjs.org).

## Checking for missing translations

``yarn vue-i18n-extract report -v "./{components,layouts,pages}/**/*.?(js|vue)" -l "./lang/*.?(js|json)"``
7 changes: 7 additions & 0 deletions assets/README.md
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

0 comments on commit 60127df

Please sign in to comment.