From ec30abbb58f3cd732c97415d2eb47ed6056e612d Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Thu, 23 Feb 2017 23:16:03 +0100 Subject: [PATCH] d3ComponentsPath in config --- src/config.json | 3 ++- src/router/demos.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.json b/src/config.json index c20e663..09c7f95 100644 --- a/src/config.json +++ b/src/config.json @@ -1,3 +1,4 @@ { - "githubLink": "https://github.com/corpglory/d3vue/" + "githubLink": "https://github.com/corpglory/d3vue/", + "d3ComponentsPath": "tree/master/src/d3-components" } diff --git a/src/router/demos.js b/src/router/demos.js index e05f67d..740c66b 100644 --- a/src/router/demos.js +++ b/src/router/demos.js @@ -15,7 +15,7 @@ export const routes = [ var res = r; res.href = "#" + r.path; res.source = config.githubLink + - 'tree/master/src/d3-components' + + config.d3ComponentsPath + r.path + '.vue' return res; })