diff --git a/package.json b/package.json index 3605cc5c2..c4d8d36e9 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "author": "vn7 ", "license": "MIT", "dependencies": { - "axios": "^0.19.2" + "axios": "^0.19.2", + "d3": "^5.16.0", + "dotenv": "^8.2.0" } } diff --git a/src/templates/card.js b/src/templates/card.js deleted file mode 100644 index e322e6837..000000000 --- a/src/templates/card.js +++ /dev/null @@ -1,65 +0,0 @@ -const Theme = require("../const/theme"); - -class Card { - constructor( - title = "Title", - width = 320, - height = 180, - theme = Theme.default - ) { - this.title = title; - this.paddingX = 20; - this.paddingY = 30; - this.theme = theme; - this.width = width; - this.height = height; - } - - getContentSVG() { - return ""; - } - - getSVG() { - return ` - - - - - - - - ${this.title} - - - - - - `; - } -} - -module.exports = Card; diff --git a/src/templates/top-lang-card.js b/src/templates/top-lang-card.js deleted file mode 100644 index eeca4d355..000000000 --- a/src/templates/top-lang-card.js +++ /dev/null @@ -1,21 +0,0 @@ -const Theme = require("../const/theme"); -const Card = require("./card"); - -class TopLangCard extends Card { - constructor( - username, - title = "TopLangCard", - width = 320, - height = 180, - theme = Theme.default - ) { - super(title, width, height, theme); - this.username = username; - } - getContentSVG() { - return ` - `; - } -} - -module.exports = TopLangCard;