Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
j-a-m-l committed May 6, 2019
0 parents commit 430f649
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/node_modules/
25 changes: 25 additions & 0 deletions package.json
@@ -0,0 +1,25 @@
{
"name": "ark-desktop-explorer",
"title": "ARK Explorer on the wallet",
"version": "0.1.0",
"description": "Use the ARK explorer directly on the wallet",
"main": "index.js",
"permissions": [
"COMPONENTS",
"ROUTES",
"MENU_ITEMS"
],
"repository": {
"type": "git",
"url": "git+https://github.com/j-a-m-l/ark-desktop-explorer.git"
},
"keywords": [
"ark"
],
"author": "Juan A. Martín <juan@ark.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/j-a-m-l/ark-desktop-explorer/issues"
},
"homepage": "https://github.com/j-a-m-l/ark-desktop-explorer#readme"
}
39 changes: 39 additions & 0 deletions src/index.js
@@ -0,0 +1,39 @@
module.exports = {
register () {
this.routes = [
{
path: '/explorer',
name: 'explorer',
component: 'Explorer'
}
]

this.menuItems = [
{
routeName: 'explorer',
title: 'Explorer'
}
]
},

getComponentPaths () {
return this.routes.reduce((all, route) => {
return {
...all,
[route.component]: `pages/${route.component}.js`
}
}, {})
},

getRoutes () {
return this.routes
},

getMenuItems () {
return this.menuItems
},

getUnprotectedIframeUrls () {
return []
}
}
7 changes: 7 additions & 0 deletions src/pages/Explorer.js
@@ -0,0 +1,7 @@
module.exports = {
template: `
<div>
<iframe src="https://explorer.ark.io/" class="w-full h-full" />
</div>
`
}

0 comments on commit 430f649

Please sign in to comment.