From 63533956af470170b59e2223515e356d72ee6aed Mon Sep 17 00:00:00 2001 From: Taylor Dawson Date: Wed, 26 Feb 2020 14:33:34 -0800 Subject: [PATCH] Add linting & more code refactoring - Remove getNetwork method as it was redundant - Add tslint rules for import destructure whitespacing - Remove name as it was redundant (was the same as trait_type) - Add error state for asset not found - Update name of compiled js - Split out template render code for readability - Remove forbidden non null assertions --- example/index.html | 28 ++++++------ src/loader.ts | 3 +- src/nft-card-back.ts | 25 +++++------ src/nft-card-front.ts | 24 ++++++----- src/nft-card.ts | 99 ++++++++++++++++++++++++++----------------- src/pill.ts | 7 --- tslint.json | 1 + webpack.config.js | 2 +- webpack.dev.config.js | 2 +- 9 files changed, 105 insertions(+), 86 deletions(-) diff --git a/example/index.html b/example/index.html index 787a93c..cb238e2 100644 --- a/example/index.html +++ b/example/index.html @@ -7,7 +7,7 @@ - + OpenSea Embeddable NFT example