From c0ebf2851eac7f661e4afe6f4e87f4be46d585d6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 10 May 2019 11:54:16 +0200 Subject: [PATCH] Explicitly export icons from main.ts Now different builds trageting different apps can chose which icons to include in main.ts instead of in Icons.vue. By not affecting the exports in Icons.vue, the build process (probably the linter only) will not complain about missing exports anymore when checking files in the folder structure that are not actually part of the build but still checked for some reason. --- src/components/Icons.ts | 3 --- src/main.ts | 39 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/src/components/Icons.ts b/src/components/Icons.ts index c5581780..d5eaddd2 100644 --- a/src/components/Icons.ts +++ b/src/components/Icons.ts @@ -48,9 +48,6 @@ import Transfer from '@nimiq/style/src/icons/transfer.svg'; import ViewOff from '@nimiq/style/src/icons/view-off.svg'; import View from '@nimiq/style/src/icons/view.svg'; -/** - * Comment out any unused icons here - */ // tslint:disable:variable-name export const AlertTriangleIcon = IconBase(AlertTriangle); export const ArrowLeftSmallIcon = IconBase(ArrowLeftSmall); diff --git a/src/main.ts b/src/main.ts index fe38ef3d..e08e2727 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,5 +25,40 @@ export { default as Wallet } from './components/Wallet.vue'; export { default as WalletList } from './components/WalletList.vue'; export { default as WalletMenu } from './components/WalletMenu.vue'; -// Comment out unused icons in the components/Icons.ts file -export * from './components/Icons'; +export { + AlertTriangleIcon, + ArrowLeftSmallIcon, + ArrowLeftIcon, + ArrowRightSmallIcon, + ArrowRightIcon, + BrowserLoginIcon, + CaretRightSmallIcon, + CheckmarkIcon, + CloseIcon, + ContactsIcon, + CopyIcon, + DownloadIcon, + FaceNeutralIcon, + FaceSadIcon, + FireIcon, + GearIcon, + HexagonIcon, + InfoCircleIcon, + KeysIcon, + LedgerIcon, + LockLockedIcon, + LockUnlockedIcon, + LoginIcon, + MenuDotsIcon, + PaperEditIcon, + PlusCircleIcon, + QrCodeIcon, + QuestionmarkIcon, + ScanQrCodeIcon, + SettingsIcon, + ShredderIcon, + SkullIcon, + TransferIcon, + ViewOffIcon, + ViewIcon, +} from './components/Icons';