From 4d213bf8e02f310a6ae654c0476fd6b6318af488 Mon Sep 17 00:00:00 2001 From: Shaurya Arora Date: Wed, 21 Oct 2015 16:56:03 -0500 Subject: [PATCH 1/3] Added index generator for SVG icons src/svg-icons/index-generator.js is a naive implementation to generate an index.js file for SVG icons that uses synchronous calls to fs (nodejs API). index-generator.js can be run with node using "node index-generator.js" to generate the index.js file (good idea to delete old index.js first). --- package.json | 1 + src/svg-icons/index-generator.js | 40 ++ src/svg-icons/index.js | 827 +++++++++++++++++++++++++++++++ 3 files changed, 868 insertions(+) create mode 100644 src/svg-icons/index-generator.js create mode 100644 src/svg-icons/index.js diff --git a/package.json b/package.json index c1976598c2141d..49bc6507ab39a8 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "react-hot-loader": "^1.2.8", "react-router": "^1.0.0-rc1", "react-tap-event-plugin": "^0.2.0", + "recursive-readdir-sync": "^1.0.6", "rimraf": "^2.4.3", "sinon": "^1.15.4", "sinon-chai": "^2.8.0", diff --git a/src/svg-icons/index-generator.js b/src/svg-icons/index-generator.js new file mode 100644 index 00000000000000..5c6eaf2b92c1eb --- /dev/null +++ b/src/svg-icons/index-generator.js @@ -0,0 +1,40 @@ +const fs = require('fs'); +const rrs = require('recursive-readdir-sync'); + +var outArray = []; +outArray.push('module.exports = {\n'); + +rrs('./').forEach(function(file) { + if(file !== 'index-generator.js' && file !== 'index.js') + { + var fileLines = fs.readFileSync(file, 'utf8').split('\n'); + var index = 0, found = false; + + while(found === false && index < fileLines.length) + { + if(fileLines[index].indexOf('module.exports') > -1) + { + var moduleName = fileLines[index].split('=')[1].replace(';','').trim(); + + outArray.push('\t'); + outArray.push(moduleName); + outArray.push(': require(\'./'); + outArray.push(file.substring(0, file.length - 4)); + outArray.push('\'),\n'); + + found = true; + } + + else + { + index++; + } + } + } +}); + +outArray.push('\n};') + +// console.log(outArray.join('')); + +fs.writeFileSync('index.js', outArray.join('')); \ No newline at end of file diff --git a/src/svg-icons/index.js b/src/svg-icons/index.js new file mode 100644 index 00000000000000..1782572b59f672 --- /dev/null +++ b/src/svg-icons/index.js @@ -0,0 +1,827 @@ +module.exports = { + ActionAccessibility: require('./action/accessibility'), + ActionAccountBalanceWallet: require('./action/account-balance-wallet'), + ActionAccountBalance: require('./action/account-balance'), + ActionAccountBox: require('./action/account-box'), + ActionAccountCircle: require('./action/account-circle'), + ActionAddShoppingCart: require('./action/add-shopping-cart'), + ActionAlarmAdd: require('./action/alarm-add'), + ActionAlarmOff: require('./action/alarm-off'), + ActionAlarmOn: require('./action/alarm-on'), + ActionAlarm: require('./action/alarm'), + ActionAndroid: require('./action/android'), + ActionAnnouncement: require('./action/announcement'), + ActionAspectRatio: require('./action/aspect-ratio'), + ActionAssessment: require('./action/assessment'), + ActionAssignmentInd: require('./action/assignment-ind'), + ActionAssignmentLate: require('./action/assignment-late'), + ActionAssignmentReturn: require('./action/assignment-return'), + ActionAssignmentReturned: require('./action/assignment-returned'), + ActionAssignmentTurnedIn: require('./action/assignment-turned-in'), + ActionAssignment: require('./action/assignment'), + ActionAutorenew: require('./action/autorenew'), + ActionBackup: require('./action/backup'), + ActionBook: require('./action/book'), + ActionBookmarkBorder: require('./action/bookmark-border'), + ActionBookmark: require('./action/bookmark'), + ActionBugReport: require('./action/bug-report'), + ActionBuild: require('./action/build'), + ActionCached: require('./action/cached'), + ActionCameraEnhance: require('./action/camera-enhance'), + ActionCardGiftcard: require('./action/card-giftcard'), + ActionCardMembership: require('./action/card-membership'), + ActionCardTravel: require('./action/card-travel'), + ActionChangeHistory: require('./action/change-history'), + ActionCheckCircle: require('./action/check-circle'), + ActionChromeReaderMode: require('./action/chrome-reader-mode'), + ActionClass: require('./action/class'), + ActionCode: require('./action/code'), + ActionCreditCard: require('./action/credit-card'), + ActionDashboard: require('./action/dashboard'), + ActionDelete: require('./action/delete'), + ActionDescription: require('./action/description'), + ActionDns: require('./action/dns'), + ActionDoneAll: require('./action/done-all'), + ActionDone: require('./action/done'), + ActionEject: require('./action/eject'), + ActionEventSeat: require('./action/event-seat'), + ActionEvent: require('./action/event'), + ActionExitToApp: require('./action/exit-to-app'), + ActionExplore: require('./action/explore'), + ActionExtension: require('./action/extension'), + ActionFace: require('./action/face'), + ActionFavoriteBorder: require('./action/favorite-border'), + ActionFavorite: require('./action/favorite'), + ActionFeedback: require('./action/feedback'), + ActionFindInPage: require('./action/find-in-page'), + ActionFindReplace: require('./action/find-replace'), + ActionFlightLand: require('./action/flight-land'), + ActionFlightTakeoff: require('./action/flight-takeoff'), + ActionFlipToBack: require('./action/flip-to-back'), + ActionFlipToFront: require('./action/flip-to-front'), + ActionGetApp: require('./action/get-app'), + ActionGif: require('./action/gif'), + ActionGrade: require('./action/grade'), + ActionGroupWork: require('./action/group-work'), + ActionHelpOutline: require('./action/help-outline'), + ActionHelp: require('./action/help'), + ActionHighlightOff: require('./action/highlight-off'), + ActionHistory: require('./action/history'), + ActionHome: require('./action/home'), + ActionHourglassEmpty: require('./action/hourglass-empty'), + ActionHourglassFull: require('./action/hourglass-full'), + ActionHttp: require('./action/http'), + ActionHttps: require('./action/https'), + ActionInfoOutline: require('./action/info-outline'), + ActionInfo: require('./action/info'), + ActionInput: require('./action/input'), + ActionInvertColors: require('./action/invert-colors'), + ActionLabelOutline: require('./action/label-outline'), + ActionLabel: require('./action/label'), + ActionLanguage: require('./action/language'), + ActionLaunch: require('./action/launch'), + ActionList: require('./action/list'), + ActionLockOpen: require('./action/lock-open'), + ActionLockOutline: require('./action/lock-outline'), + ActionLock: require('./action/lock'), + ActionLoyalty: require('./action/loyalty'), + ActionMarkunreadMailbox: require('./action/markunread-mailbox'), + ActionNoteAdd: require('./action/note-add'), + ActionOfflinePin: require('./action/offline-pin'), + ActionOpenInBrowser: require('./action/open-in-browser'), + ActionOpenInNew: require('./action/open-in-new'), + ActionOpenWith: require('./action/open-with'), + ActionPageview: require('./action/pageview'), + ActionPayment: require('./action/payment'), + ActionPermCameraMic: require('./action/perm-camera-mic'), + ActionPermContactCalendar: require('./action/perm-contact-calendar'), + ActionPermDataSetting: require('./action/perm-data-setting'), + ActionPermDeviceInformation: require('./action/perm-device-information'), + ActionPermIdentity: require('./action/perm-identity'), + ActionPermMedia: require('./action/perm-media'), + ActionPermPhoneMsg: require('./action/perm-phone-msg'), + ActionPermScanWifi: require('./action/perm-scan-wifi'), + ActionPictureInPicture: require('./action/picture-in-picture'), + ActionPlayForWork: require('./action/play-for-work'), + ActionPolymer: require('./action/polymer'), + ActionPowerSettingsNew: require('./action/power-settings-new'), + ActionPrint: require('./action/print'), + ActionQueryBuilder: require('./action/query-builder'), + ActionQuestionAnswer: require('./action/question-answer'), + ActionReceipt: require('./action/receipt'), + ActionRedeem: require('./action/redeem'), + ActionReorder: require('./action/reorder'), + ActionReportProblem: require('./action/report-problem'), + ActionRestore: require('./action/restore'), + ActionRoom: require('./action/room'), + ActionSchedule: require('./action/schedule'), + ActionSearch: require('./action/search'), + ActionSettingsApplications: require('./action/settings-applications'), + ActionSettingsBackupRestore: require('./action/settings-backup-restore'), + ActionSettingsBluetooth: require('./action/settings-bluetooth'), + ActionSettingsBrightness: require('./action/settings-brightness'), + ActionSettingsCell: require('./action/settings-cell'), + ActionSettingsEthernet: require('./action/settings-ethernet'), + ActionSettingsInputAntenna: require('./action/settings-input-antenna'), + ActionSettingsInputComponent: require('./action/settings-input-component'), + ActionSettingsInputComposite: require('./action/settings-input-composite'), + ActionSettingsInputHdmi: require('./action/settings-input-hdmi'), + ActionSettingsInputSvideo: require('./action/settings-input-svideo'), + ActionSettingsOverscan: require('./action/settings-overscan'), + ActionSettingsPhone: require('./action/settings-phone'), + ActionSettingsPower: require('./action/settings-power'), + ActionSettingsRemote: require('./action/settings-remote'), + ActionSettingsVoice: require('./action/settings-voice'), + ActionSettings: require('./action/settings'), + ActionShopTwo: require('./action/shop-two'), + ActionShop: require('./action/shop'), + ActionShoppingBasket: require('./action/shopping-basket'), + ActionShoppingCart: require('./action/shopping-cart'), + ActionSpeakerNotes: require('./action/speaker-notes'), + ActionSpellcheck: require('./action/spellcheck'), + ActionStars: require('./action/stars'), + ActionStore: require('./action/store'), + ActionSubject: require('./action/subject'), + ActionSupervisorAccount: require('./action/supervisor-account'), + ActionSwapHoriz: require('./action/swap-horiz'), + ActionSwapVert: require('./action/swap-vert'), + ActionSwapVerticalCircle: require('./action/swap-vertical-circle'), + ActionSystemUpdateAlt: require('./action/system-update-alt'), + ActionTabUnselected: require('./action/tab-unselected'), + ActionTab: require('./action/tab'), + ActionTheaters: require('./action/theaters'), + ActionThreeDRotation: require('./action/three-d-rotation'), + ActionThumbDown: require('./action/thumb-down'), + ActionThumbUp: require('./action/thumb-up'), + ActionThumbsUpDown: require('./action/thumbs-up-down'), + ActionToc: require('./action/toc'), + ActionToday: require('./action/today'), + ActionToll: require('./action/toll'), + ActionTrackChanges: require('./action/track-changes'), + ActionTranslate: require('./action/translate'), + ActionTrendingDown: require('./action/trending-down'), + ActionTrendingFlat: require('./action/trending-flat'), + ActionTrendingUp: require('./action/trending-up'), + ActionTurnedInNot: require('./action/turned-in-not'), + ActionTurnedIn: require('./action/turned-in'), + ActionVerifiedUser: require('./action/verified-user'), + ActionViewAgenda: require('./action/view-agenda'), + ActionViewArray: require('./action/view-array'), + ActionViewCarousel: require('./action/view-carousel'), + ActionViewColumn: require('./action/view-column'), + ActionViewDay: require('./action/view-day'), + ActionViewHeadline: require('./action/view-headline'), + ActionViewList: require('./action/view-list'), + ActionViewModule: require('./action/view-module'), + ActionViewQuilt: require('./action/view-quilt'), + ActionViewStream: require('./action/view-stream'), + ActionViewWeek: require('./action/view-week'), + ActionVisibilityOff: require('./action/visibility-off'), + ActionVisibility: require('./action/visibility'), + ActionWork: require('./action/work'), + ActionYoutubeSearchedFor: require('./action/youtube-searched-for'), + ActionZoomIn: require('./action/zoom-in'), + ActionZoomOut: require('./action/zoom-out'), + AlertAddAlert: require('./alert/add-alert'), + AlertErrorOutline: require('./alert/error-outline'), + AlertError: require('./alert/error'), + AlertWarning: require('./alert/warning'), + AvAirplay: require('./av/airplay'), + AvAlbum: require('./av/album'), + AvAvTimer: require('./av/av-timer'), + AvClosedCaption: require('./av/closed-caption'), + AvEqualizer: require('./av/equalizer'), + AvExplicit: require('./av/explicit'), + AvFastForward: require('./av/fast-forward'), + AvFastRewind: require('./av/fast-rewind'), + AvForward10: require('./av/forward-10'), + AvForward30: require('./av/forward-30'), + AvForward5: require('./av/forward-5'), + AvGames: require('./av/games'), + AvHd: require('./av/hd'), + AvHearing: require('./av/hearing'), + AvHighQuality: require('./av/high-quality'), + AvLibraryAdd: require('./av/library-add'), + AvLibraryBooks: require('./av/library-books'), + AvLibraryMusic: require('./av/library-music'), + AvLoop: require('./av/loop'), + AvMicNone: require('./av/mic-none'), + AvMicOff: require('./av/mic-off'), + AvMic: require('./av/mic'), + AvMovie: require('./av/movie'), + AvNewReleases: require('./av/new-releases'), + AvNotInterested: require('./av/not-interested'), + AvPauseCircleFilled: require('./av/pause-circle-filled'), + AvPauseCircleOutline: require('./av/pause-circle-outline'), + AvPause: require('./av/pause'), + AvPlayArrow: require('./av/play-arrow'), + AvPlayCircleFilled: require('./av/play-circle-filled'), + AvPlayCircleOutline: require('./av/play-circle-outline'), + AvPlaylistAdd: require('./av/playlist-add'), + AvQueueMusic: require('./av/queue-music'), + AvQueue: require('./av/queue'), + AvRadio: require('./av/radio'), + AvRecentActors: require('./av/recent-actors'), + AvRepeatOne: require('./av/repeat-one'), + AvRepeat: require('./av/repeat'), + AvReplay10: require('./av/replay-10'), + AvReplay30: require('./av/replay-30'), + AvReplay5: require('./av/replay-5'), + AvReplay: require('./av/replay'), + AvShuffle: require('./av/shuffle'), + AvSkipNext: require('./av/skip-next'), + AvSkipPrevious: require('./av/skip-previous'), + AvSnooze: require('./av/snooze'), + AvSortByAlpha: require('./av/sort-by-alpha'), + AvStop: require('./av/stop'), + AvSubtitles: require('./av/subtitles'), + AvSurroundSound: require('./av/surround-sound'), + AvVideoLibrary: require('./av/video-library'), + AvVideocamOff: require('./av/videocam-off'), + AvVideocam: require('./av/videocam'), + AvVolumeDown: require('./av/volume-down'), + AvVolumeMute: require('./av/volume-mute'), + AvVolumeOff: require('./av/volume-off'), + AvVolumeUp: require('./av/volume-up'), + AvWeb: require('./av/web'), + CommunicationBusiness: require('./communication/business'), + CommunicationCallEnd: require('./communication/call-end'), + CommunicationCallMade: require('./communication/call-made'), + CommunicationCallMerge: require('./communication/call-merge'), + CommunicationCallMissed: require('./communication/call-missed'), + CommunicationCallReceived: require('./communication/call-received'), + CommunicationCallSplit: require('./communication/call-split'), + CommunicationCall: require('./communication/call'), + CommunicationChatBubbleOutline: require('./communication/chat-bubble-outline'), + CommunicationChatBubble: require('./communication/chat-bubble'), + CommunicationChat: require('./communication/chat'), + CommunicationClearAll: require('./communication/clear-all'), + CommunicationComment: require('./communication/comment'), + CommunicationContactPhone: require('./communication/contact-phone'), + CommunicationContacts: require('./communication/contacts'), + CommunicationDialerSip: require('./communication/dialer-sip'), + CommunicationDialpad: require('./communication/dialpad'), + CommunicationEmail: require('./communication/email'), + CommunicationForum: require('./communication/forum'), + CommunicationImportExport: require('./communication/import-export'), + CommunicationInvertColorsOff: require('./communication/invert-colors-off'), + CommunicationLiveHelp: require('./communication/live-help'), + CommunicationLocationOff: require('./communication/location-off'), + CommunicationLocationOn: require('./communication/location-on'), + CommunicationMessage: require('./communication/message'), + CommunicationNoSim: require('./communication/no-sim'), + CommunicationPhone: require('./communication/phone'), + CommunicationPhonelinkErase: require('./communication/phonelink-erase'), + CommunicationPhonelinkLock: require('./communication/phonelink-lock'), + CommunicationPhonelinkRing: require('./communication/phonelink-ring'), + CommunicationPhonelinkSetup: require('./communication/phonelink-setup'), + CommunicationPortableWifiOff: require('./communication/portable-wifi-off'), + CommunicationPresentToAll: require('./communication/present-to-all'), + CommunicationRingVolume: require('./communication/ring-volume'), + CommunicationSpeakerPhone: require('./communication/speaker-phone'), + CommunicationStayCurrentLandscape: require('./communication/stay-current-landscape'), + CommunicationStayCurrentPortrait: require('./communication/stay-current-portrait'), + CommunicationStayPrimaryLandscape: require('./communication/stay-primary-landscape'), + CommunicationStayPrimaryPortrait: require('./communication/stay-primary-portrait'), + CommunicationSwapCalls: require('./communication/swap-calls'), + CommunicationTactMail: require('./communication/tact-mail'), + CommunicationTextsms: require('./communication/textsms'), + CommunicationVoicemail: require('./communication/voicemail'), + CommunicationVpnKey: require('./communication/vpn-key'), + ContentAddBox: require('./content/add-box'), + ContentAddCircleOutline: require('./content/add-circle-outline'), + ContentAddCircle: require('./content/add-circle'), + ContentAdd: require('./content/add'), + ContentArchive: require('./content/archive'), + ContentBackspace: require('./content/backspace'), + ContentBlock: require('./content/block'), + ContentClear: require('./content/clear'), + ContentContentCopy: require('./content/content-copy'), + ContentContentCut: require('./content/content-cut'), + ContentContentPaste: require('./content/content-paste'), + ContentCreate: require('./content/create'), + ContentDrafts: require('./content/drafts'), + ContentFilterList: require('./content/filter-list'), + ContentFlag: require('./content/flag'), + ContentFontDownload: require('./content/font-download'), + ContentForward: require('./content/forward'), + ContentGesture: require('./content/gesture'), + ContentInbox: require('./content/inbox'), + ContentLink: require('./content/link'), + ContentMail: require('./content/mail'), + ContentMarkunread: require('./content/markunread'), + ContentRedo: require('./content/redo'), + ContentRemoveCircleOutline: require('./content/remove-circle-outline'), + ContentRemoveCircle: require('./content/remove-circle'), + ContentRemove: require('./content/remove'), + ContentReplyAll: require('./content/reply-all'), + ContentReply: require('./content/reply'), + ContentReport: require('./content/report'), + ContentSave: require('./content/save'), + ContentSelectAll: require('./content/select-all'), + ContentSend: require('./content/send'), + ContentSort: require('./content/sort'), + ContentTextFormat: require('./content/text-format'), + ContentUndo: require('./content/undo'), + DeviceAccessAlarm: require('./device/access-alarm'), + DeviceAccessAlarms: require('./device/access-alarms'), + DeviceAccessTime: require('./device/access-time'), + DeviceAddAlarm: require('./device/add-alarm'), + DeviceAirplanemodeActive: require('./device/airplanemode-active'), + DeviceAirplanemodeInactive: require('./device/airplanemode-inactive'), + DeviceBattery20: require('./device/battery-20'), + DeviceBattery30: require('./device/battery-30'), + DeviceBattery50: require('./device/battery-50'), + DeviceBattery60: require('./device/battery-60'), + DeviceBattery80: require('./device/battery-80'), + DeviceBattery90: require('./device/battery-90'), + DeviceBatteryAlert: require('./device/battery-alert'), + DeviceBatteryCharging20: require('./device/battery-charging-20'), + DeviceBatteryCharging30: require('./device/battery-charging-30'), + DeviceBatteryCharging50: require('./device/battery-charging-50'), + DeviceBatteryCharging60: require('./device/battery-charging-60'), + DeviceBatteryCharging80: require('./device/battery-charging-80'), + DeviceBatteryCharging90: require('./device/battery-charging-90'), + DeviceBatteryChargingFull: require('./device/battery-charging-full'), + DeviceBatteryFull: require('./device/battery-full'), + DeviceBatteryStd: require('./device/battery-std'), + DeviceBatteryUnknown: require('./device/battery-unknown'), + DeviceBluetoothConnected: require('./device/bluetooth-connected'), + DeviceBluetoothDisabled: require('./device/bluetooth-disabled'), + DeviceBluetoothSearching: require('./device/bluetooth-searching'), + DeviceBluetooth: require('./device/bluetooth'), + DeviceBrightnessAuto: require('./device/brightness-auto'), + DeviceBrightnessHigh: require('./device/brightness-high'), + DeviceBrightnessLow: require('./device/brightness-low'), + DeviceBrightnessMedium: require('./device/brightness-medium'), + DeviceDataUsage: require('./device/data-usage'), + DeviceDeveloperMode: require('./device/developer-mode'), + DeviceDevices: require('./device/devices'), + DeviceDvr: require('./device/dvr'), + DeviceGpsFixed: require('./device/gps-fixed'), + DeviceGpsNotFixed: require('./device/gps-not-fixed'), + DeviceGpsOff: require('./device/gps-off'), + DeviceGraphicEq: require('./device/graphic-eq'), + DeviceLocationDisabled: require('./device/location-disabled'), + DeviceLocationSearching: require('./device/location-searching'), + DeviceNetworkCell: require('./device/network-cell'), + DeviceNetworkWifi: require('./device/network-wifi'), + DeviceNfc: require('./device/nfc'), + DeviceScreenLockLandscape: require('./device/screen-lock-landscape'), + DeviceScreenLockPortrait: require('./device/screen-lock-portrait'), + DeviceScreenLockRotation: require('./device/screen-lock-rotation'), + DeviceScreenRotation: require('./device/screen-rotation'), + DeviceSdStorage: require('./device/sd-storage'), + DeviceSettingsSystemDaydream: require('./device/settings-system-daydream'), + DeviceSignalCellular0Bar: require('./device/signal-cellular-0-bar'), + DeviceSignalCellular1Bar: require('./device/signal-cellular-1-bar'), + DeviceSignalCellular2Bar: require('./device/signal-cellular-2-bar'), + DeviceSignalCellular3Bar: require('./device/signal-cellular-3-bar'), + DeviceSignalCellular4Bar: require('./device/signal-cellular-4-bar'), + DeviceSignalCellularConnectedNoInternet0Bar: require('./device/signal-cellular-connected-no-internet-0-bar'), + DeviceSignalCellularConnectedNoInternet1Bar: require('./device/signal-cellular-connected-no-internet-1-bar'), + DeviceSignalCellularConnectedNoInternet2Bar: require('./device/signal-cellular-connected-no-internet-2-bar'), + DeviceSignalCellularConnectedNoInternet3Bar: require('./device/signal-cellular-connected-no-internet-3-bar'), + DeviceSignalCellularConnectedNoInternet4Bar: require('./device/signal-cellular-connected-no-internet-4-bar'), + DeviceSignalCellularNoSim: require('./device/signal-cellular-no-sim'), + DeviceSignalCellularNull: require('./device/signal-cellular-null'), + DeviceSignalCellularOff: require('./device/signal-cellular-off'), + DeviceSignalWifi0Bar: require('./device/signal-wifi-0-bar'), + DeviceSignalWifi1BarLock: require('./device/signal-wifi-1-bar-lock'), + DeviceSignalWifi1Bar: require('./device/signal-wifi-1-bar'), + DeviceSignalWifi2BarLock: require('./device/signal-wifi-2-bar-lock'), + DeviceSignalWifi2Bar: require('./device/signal-wifi-2-bar'), + DeviceSignalWifi3BarLock: require('./device/signal-wifi-3-bar-lock'), + DeviceSignalWifi3Bar: require('./device/signal-wifi-3-bar'), + DeviceSignalWifi4BarLock: require('./device/signal-wifi-4-bar-lock'), + DeviceSignalWifi4Bar: require('./device/signal-wifi-4-bar'), + DeviceSignalWifiOff: require('./device/signal-wifi-off'), + DeviceStorage: require('./device/storage'), + DeviceUsb: require('./device/usb'), + DeviceWallpaper: require('./device/wallpaper'), + DeviceWidgets: require('./device/widgets'), + DeviceWifiLock: require('./device/wifi-lock'), + DeviceWifiTethering: require('./device/wifi-tethering'), + EditorAttachFile: require('./editor/attach-file'), + EditorAttachMoney: require('./editor/attach-money'), + EditorBorderAll: require('./editor/border-all'), + EditorBorderBottom: require('./editor/border-bottom'), + EditorBorderClear: require('./editor/border-clear'), + EditorBorderColor: require('./editor/border-color'), + EditorBorderHorizontal: require('./editor/border-horizontal'), + EditorBorderInner: require('./editor/border-inner'), + EditorBorderLeft: require('./editor/border-left'), + EditorBorderOuter: require('./editor/border-outer'), + EditorBorderRight: require('./editor/border-right'), + EditorBorderStyle: require('./editor/border-style'), + EditorBorderTop: require('./editor/border-top'), + EditorBorderVertical: require('./editor/border-vertical'), + EditorFormatAlignCenter: require('./editor/format-align-center'), + EditorFormatAlignJustify: require('./editor/format-align-justify'), + EditorFormatAlignLeft: require('./editor/format-align-left'), + EditorFormatAlignRight: require('./editor/format-align-right'), + EditorFormatBold: require('./editor/format-bold'), + EditorFormatClear: require('./editor/format-clear'), + EditorFormatColorFill: require('./editor/format-color-fill'), + EditorFormatColorReset: require('./editor/format-color-reset'), + EditorFormatColorText: require('./editor/format-color-text'), + EditorFormatIndentDecrease: require('./editor/format-indent-decrease'), + EditorFormatIndentIncrease: require('./editor/format-indent-increase'), + EditorFormatItalic: require('./editor/format-italic'), + EditorFormatLineSpacing: require('./editor/format-line-spacing'), + EditorFormatListBulleted: require('./editor/format-list-bulleted'), + EditorFormatListNumbered: require('./editor/format-list-numbered'), + EditorFormatPaint: require('./editor/format-paint'), + EditorFormatQuote: require('./editor/format-quote'), + EditorFormatSize: require('./editor/format-size'), + EditorFormatStrikethrough: require('./editor/format-strikethrough'), + EditorFormatTextdirectionLToR: require('./editor/format-textdirection-l-to-r'), + EditorFormatTextdirectionRToL: require('./editor/format-textdirection-r-to-l'), + EditorFormatUnderlined: require('./editor/format-underlined'), + EditorFunctions: require('./editor/functions'), + EditorInsertChart: require('./editor/insert-chart'), + EditorInsertComment: require('./editor/insert-comment'), + EditorInsertDriveFile: require('./editor/insert-drive-file'), + EditorInsertEmoticon: require('./editor/insert-emoticon'), + EditorInsertInvitation: require('./editor/insert-invitation'), + EditorInsertLink: require('./editor/insert-link'), + EditorInsertPhoto: require('./editor/insert-photo'), + EditorMergeType: require('./editor/merge-type'), + EditorModeComment: require('./editor/mode-comment'), + EditorModeEdit: require('./editor/mode-edit'), + EditorMoneyOff: require('./editor/money-off'), + EditorPublish: require('./editor/publish'), + EditorSpaceBar: require('./editor/space-bar'), + EditorStrikethroughS: require('./editor/strikethrough-s'), + EditorVerticalAlignBottom: require('./editor/vertical-align-bottom'), + EditorVerticalAlignCenter: require('./editor/vertical-align-center'), + EditorVerticalAlignTop: require('./editor/vertical-align-top'), + EditorWrapText: require('./editor/wrap-text'), + FileAttachment: require('./file/attachment'), + FileCloudCircle: require('./file/cloud-circle'), + FileCloudDone: require('./file/cloud-done'), + FileCloudDownload: require('./file/cloud-download'), + FileCloudOff: require('./file/cloud-off'), + FileCloudQueue: require('./file/cloud-queue'), + FileCloudUpload: require('./file/cloud-upload'), + FileCloud: require('./file/cloud'), + FileFileDownload: require('./file/file-download'), + FileFileUpload: require('./file/file-upload'), + FileFolderOpen: require('./file/folder-open'), + FileFolderShared: require('./file/folder-shared'), + FileFolder: require('./file/folder'), + HardwareCastConnected: require('./hardware/cast-connected'), + HardwareCast: require('./hardware/cast'), + HardwareComputer: require('./hardware/computer'), + HardwareDesktopMac: require('./hardware/desktop-mac'), + HardwareDesktopWindows: require('./hardware/desktop-windows'), + HardwareDeveloperBoard: require('./hardware/developer-board'), + HardwareDeviceHub: require('./hardware/device-hub'), + HardwareDock: require('./hardware/dock'), + HardwareGamepad: require('./hardware/gamepad'), + HardwareHeadsetMic: require('./hardware/headset-mic'), + HardwareHeadset: require('./hardware/headset'), + HardwareKeyboardArrowDown: require('./hardware/keyboard-arrow-down'), + HardwareKeyboardArrowLeft: require('./hardware/keyboard-arrow-left'), + HardwareKeyboardArrowRight: require('./hardware/keyboard-arrow-right'), + HardwareKeyboardArrowUp: require('./hardware/keyboard-arrow-up'), + HardwareKeyboardBackspace: require('./hardware/keyboard-backspace'), + HardwareKeyboardCapslock: require('./hardware/keyboard-capslock'), + HardwareKeyboardHide: require('./hardware/keyboard-hide'), + HardwareKeyboardReturn: require('./hardware/keyboard-return'), + HardwareKeyboardTab: require('./hardware/keyboard-tab'), + HardwareKeyboardVoice: require('./hardware/keyboard-voice'), + HardwareKeyboard: require('./hardware/keyboard'), + HardwareLaptopChromebook: require('./hardware/laptop-chromebook'), + HardwareLaptopMac: require('./hardware/laptop-mac'), + HardwareLaptopWindows: require('./hardware/laptop-windows'), + HardwareLaptop: require('./hardware/laptop'), + HardwareMemory: require('./hardware/memory'), + HardwareMouse: require('./hardware/mouse'), + HardwarePhoneAndroid: require('./hardware/phone-android'), + HardwarePhoneIphone: require('./hardware/phone-iphone'), + HardwarePhonelinkOff: require('./hardware/phonelink-off'), + HardwarePhonelink: require('./hardware/phonelink'), + HardwarePowerInput: require('./hardware/power-input'), + HardwareRouter: require('./hardware/router'), + HardwareScanner: require('./hardware/scanner'), + HardwareSecurity: require('./hardware/security'), + HardwareSimCard: require('./hardware/sim-card'), + HardwareSmartphone: require('./hardware/smartphone'), + HardwareSpeakerGroup: require('./hardware/speaker-group'), + HardwareSpeaker: require('./hardware/speaker'), + HardwareTabletAndroid: require('./hardware/tablet-android'), + HardwareTabletMac: require('./hardware/tablet-mac'), + HardwareTablet: require('./hardware/tablet'), + HardwareToys: require('./hardware/toys'), + HardwareTv: require('./hardware/tv'), + HardwareWatch: require('./hardware/watch'), + ImageAddToPhotos: require('./image/add-to-photos'), + ImageAdjust: require('./image/adjust'), + ImageAssistantPhoto: require('./image/assistant-photo'), + ImageAssistant: require('./image/assistant'), + ImageAudiotrack: require('./image/audiotrack'), + ImageBlurCircular: require('./image/blur-circular'), + ImageBlurLinear: require('./image/blur-linear'), + ImageBlurOff: require('./image/blur-off'), + ImageBlurOn: require('./image/blur-on'), + ImageBrightness1: require('./image/brightness-1'), + ImageBrightness2: require('./image/brightness-2'), + ImageBrightness3: require('./image/brightness-3'), + ImageBrightness4: require('./image/brightness-4'), + ImageBrightness5: require('./image/brightness-5'), + ImageBrightness6: require('./image/brightness-6'), + ImageBrightness7: require('./image/brightness-7'), + ImageBrokenImage: require('./image/broken-image'), + ImageBrush: require('./image/brush'), + ImageCameraAlt: require('./image/camera-alt'), + ImageCameraFront: require('./image/camera-front'), + ImageCameraRear: require('./image/camera-rear'), + ImageCameraRoll: require('./image/camera-roll'), + ImageCamera: require('./image/camera'), + ImageCenterFocusStrong: require('./image/center-focus-strong'), + ImageCenterFocusWeak: require('./image/center-focus-weak'), + ImageCollectionsBookmark: require('./image/collections-bookmark'), + ImageCollections: require('./image/collections'), + ImageColorLens: require('./image/color-lens'), + ImageColorize: require('./image/colorize'), + ImageCompare: require('./image/compare'), + ImageControlPointDuplicate: require('./image/control-point-duplicate'), + ImageControlPoint: require('./image/control-point'), + ImageCrop169: require('./image/crop-16-9'), + ImageCrop32: require('./image/crop-3-2'), + ImageCrop54: require('./image/crop-5-4'), + ImageCrop75: require('./image/crop-7-5'), + ImageCropDin: require('./image/crop-din'), + ImageCropFree: require('./image/crop-free'), + ImageCropLandscape: require('./image/crop-landscape'), + ImageCropOriginal: require('./image/crop-original'), + ImageCropPortrait: require('./image/crop-portrait'), + ImageCropSquare: require('./image/crop-square'), + ImageCrop: require('./image/crop'), + ImageDehaze: require('./image/dehaze'), + ImageDetails: require('./image/details'), + ImageEdit: require('./image/edit'), + ImageExposureNeg1: require('./image/exposure-neg-1'), + ImageExposureNeg2: require('./image/exposure-neg-2'), + ImageExposurePlus1: require('./image/exposure-plus-1'), + ImageExposurePlus2: require('./image/exposure-plus-2'), + ImageExposureZero: require('./image/exposure-zero'), + ImageExposure: require('./image/exposure'), + ImageFilter1: require('./image/filter-1'), + ImageFilter2: require('./image/filter-2'), + ImageFilter3: require('./image/filter-3'), + ImageFilter4: require('./image/filter-4'), + ImageFilter5: require('./image/filter-5'), + ImageFilter6: require('./image/filter-6'), + ImageFilter7: require('./image/filter-7'), + ImageFilter8: require('./image/filter-8'), + ImageFilter9Plus: require('./image/filter-9-plus'), + ImageFilter9: require('./image/filter-9'), + ImageFilterBAndW: require('./image/filter-b-and-w'), + ImageFilterCenterFocus: require('./image/filter-center-focus'), + ImageFilterDrama: require('./image/filter-drama'), + ImageFilterFrames: require('./image/filter-frames'), + ImageFilterHdr: require('./image/filter-hdr'), + ImageFilterNone: require('./image/filter-none'), + ImageFilterTiltShift: require('./image/filter-tilt-shift'), + ImageFilterVintage: require('./image/filter-vintage'), + ImageFilter: require('./image/filter'), + ImageFlare: require('./image/flare'), + ImageFlashAuto: require('./image/flash-auto'), + ImageFlashOff: require('./image/flash-off'), + ImageFlashOn: require('./image/flash-on'), + ImageFlip: require('./image/flip'), + ImageGradient: require('./image/gradient'), + ImageGrain: require('./image/grain'), + ImageGridOff: require('./image/grid-off'), + ImageGridOn: require('./image/grid-on'), + ImageHdrOff: require('./image/hdr-off'), + ImageHdrOn: require('./image/hdr-on'), + ImageHdrStrong: require('./image/hdr-strong'), + ImageHdrWeak: require('./image/hdr-weak'), + ImageHealing: require('./image/healing'), + ImageImageAspectRatio: require('./image/image-aspect-ratio'), + ImageImage: require('./image/image'), + ImageIso: require('./image/iso'), + ImageLandscape: require('./image/landscape'), + ImageLeakAdd: require('./image/leak-add'), + ImageLeakRemove: require('./image/leak-remove'), + ImageLens: require('./image/lens'), + ImageLooks3: require('./image/looks-3'), + ImageLooks4: require('./image/looks-4'), + ImageLooks5: require('./image/looks-5'), + ImageLooks6: require('./image/looks-6'), + ImageLooksOne: require('./image/looks-one'), + ImageLooksTwo: require('./image/looks-two'), + ImageLooks: require('./image/looks'), + ImageLoupe: require('./image/loupe'), + ImageMonochromePhotos: require('./image/monochrome-photos'), + ImageMovieCreation: require('./image/movie-creation'), + ImageMusicNote: require('./image/music-note'), + ImageNaturePeople: require('./image/nature-people'), + ImageNature: require('./image/nature'), + ImageNavigateBefore: require('./image/navigate-before'), + ImageNavigateNext: require('./image/navigate-next'), + ImagePalette: require('./image/palette'), + ImagePanoramaFishEye: require('./image/panorama-fish-eye'), + ImagePanoramaHorizontal: require('./image/panorama-horizontal'), + ImagePanoramaVertical: require('./image/panorama-vertical'), + ImagePanoramaWideAngle: require('./image/panorama-wide-angle'), + ImagePanorama: require('./image/panorama'), + ImagePhotoAlbum: require('./image/photo-album'), + ImagePhotoCamera: require('./image/photo-camera'), + ImagePhotoLibrary: require('./image/photo-library'), + ImagePhotoSizeSelectActual: require('./image/photo-size-select-actual'), + ImagePhotoSizeSelectLarge: require('./image/photo-size-select-large'), + ImagePhotoSizeSelectSmall: require('./image/photo-size-select-small'), + ImagePhoto: require('./image/photo'), + ImagePictureAsPdf: require('./image/picture-as-pdf'), + ImagePortrait: require('./image/portrait'), + ImageRemoveRedEye: require('./image/remove-red-eye'), + ImageRotate90DegreesCcw: require('./image/rotate-90-degrees-ccw'), + ImageRotateLeft: require('./image/rotate-left'), + ImageRotateRight: require('./image/rotate-right'), + ImageSlideshow: require('./image/slideshow'), + ImageStraighten: require('./image/straighten'), + ImageStyle: require('./image/style'), + ImageSwitchCamera: require('./image/switch-camera'), + ImageSwitchVideo: require('./image/switch-video'), + ImageTagFaces: require('./image/tag-faces'), + ImageTexture: require('./image/texture'), + ImageTimelapse: require('./image/timelapse'), + ImageTimer10: require('./image/timer-10'), + ImageTimer3: require('./image/timer-3'), + ImageTimerOff: require('./image/timer-off'), + ImageTimer: require('./image/timer'), + ImageTonality: require('./image/tonality'), + ImageTransform: require('./image/transform'), + ImageTune: require('./image/tune'), + ImageViewComfy: require('./image/view-comfy'), + ImageViewCompact: require('./image/view-compact'), + ImageVignette: require('./image/vignette'), + ImageWbAuto: require('./image/wb-auto'), + ImageWbCloudy: require('./image/wb-cloudy'), + ImageWbIncandescent: require('./image/wb-incandescent'), + ImageWbIridescent: require('./image/wb-iridescent'), + ImageWbSunny: require('./image/wb-sunny'), + MapsBeenhere: require('./maps/beenhere'), + MapsDirectionsBike: require('./maps/directions-bike'), + MapsDirectionsBoat: require('./maps/directions-boat'), + MapsDirectionsBus: require('./maps/directions-bus'), + MapsDirectionsCar: require('./maps/directions-car'), + MapsDirectionsRailway: require('./maps/directions-railway'), + MapsDirectionsRun: require('./maps/directions-run'), + MapsDirectionsSubway: require('./maps/directions-subway'), + MapsDirectionsTransit: require('./maps/directions-transit'), + MapsDirectionsWalk: require('./maps/directions-walk'), + MapsDirections: require('./maps/directions'), + MapsFlight: require('./maps/flight'), + MapsHotel: require('./maps/hotel'), + MapsLayersClear: require('./maps/layers-clear'), + MapsLayers: require('./maps/layers'), + MapsLocalActivity: require('./maps/local-activity'), + MapsLocalAirport: require('./maps/local-airport'), + MapsLocalAtm: require('./maps/local-atm'), + MapsLocalBar: require('./maps/local-bar'), + MapsLocalCafe: require('./maps/local-cafe'), + MapsLocalCarWash: require('./maps/local-car-wash'), + MapsLocalConvenienceStore: require('./maps/local-convenience-store'), + MapsLocalDining: require('./maps/local-dining'), + MapsLocalDrink: require('./maps/local-drink'), + MapsLocalFlorist: require('./maps/local-florist'), + MapsLocalGasStation: require('./maps/local-gas-station'), + MapsLocalGroceryStore: require('./maps/local-grocery-store'), + MapsLocalHospital: require('./maps/local-hospital'), + MapsLocalHotel: require('./maps/local-hotel'), + MapsLocalLaundryService: require('./maps/local-laundry-service'), + MapsLocalLibrary: require('./maps/local-library'), + MapsLocalMall: require('./maps/local-mall'), + MapsLocalMovies: require('./maps/local-movies'), + MapsLocalOffer: require('./maps/local-offer'), + MapsLocalParking: require('./maps/local-parking'), + MapsLocalPharmacy: require('./maps/local-pharmacy'), + MapsLocalPhone: require('./maps/local-phone'), + MapsLocalPizza: require('./maps/local-pizza'), + MapsLocalPlay: require('./maps/local-play'), + MapsLocalPostOffice: require('./maps/local-post-office'), + MapsLocalPrintshop: require('./maps/local-printshop'), + MapsLocalSee: require('./maps/local-see'), + MapsLocalShipping: require('./maps/local-shipping'), + MapsLocalTaxi: require('./maps/local-taxi'), + MapsMap: require('./maps/map'), + MapsMyLocation: require('./maps/my-location'), + MapsNavigation: require('./maps/navigation'), + MapsPersonPin: require('./maps/person-pin'), + MapsPinDrop: require('./maps/pin-drop'), + MapsPlace: require('./maps/place'), + MapsRateReview: require('./maps/rate-review'), + MapsRestaurantMenu: require('./maps/restaurant-menu'), + MapsSatellite: require('./maps/satellite'), + MapsStoreMallDirectory: require('./maps/store-mall-directory'), + MapsTerrain: require('./maps/terrain'), + MapsTraffic: require('./maps/traffic'), + NavigationApps: require('./navigation/apps'), + NavigationArrowBack: require('./navigation/arrow-back'), + NavigationArrowDropDownCircle: require('./navigation/arrow-drop-down-circle'), + NavigationArrowDropDown: require('./navigation/arrow-drop-down'), + NavigationArrowDropUp: require('./navigation/arrow-drop-up'), + NavigationArrowForward: require('./navigation/arrow-forward'), + NavigationCancel: require('./navigation/cancel'), + NavigationCheck: require('./navigation/check'), + NavigationChevronLeft: require('./navigation/chevron-left'), + NavigationChevronRight: require('./navigation/chevron-right'), + NavigationClose: require('./navigation/close'), + NavigationExpandLess: require('./navigation/expand-less'), + NavigationExpandMore: require('./navigation/expand-more'), + NavigationFullscreenExit: require('./navigation/fullscreen-exit'), + NavigationFullscreen: require('./navigation/fullscreen'), + NavigationMenu: require('./navigation/menu'), + NavigationMoreHoriz: require('./navigation/more-horiz'), + NavigationMoreVert: require('./navigation/more-vert'), + NavigationRefresh: require('./navigation/refresh'), + NavigationUnfoldLess: require('./navigation/unfold-less'), + NavigationUnfoldMore: require('./navigation/unfold-more'), + NavigationArrowDropRight: require('./navigation-arrow-drop-right'), + NotificationAdb: require('./notification/adb'), + NotificationAirlineSeatFlatAngled: require('./notification/airline-seat-flat-angled'), + NotificationAirlineSeatFlat: require('./notification/airline-seat-flat'), + NotificationAirlineSeatIndividualSuite: require('./notification/airline-seat-individual-suite'), + NotificationAirlineSeatLegroomExtra: require('./notification/airline-seat-legroom-extra'), + NotificationAirlineSeatLegroomNormal: require('./notification/airline-seat-legroom-normal'), + NotificationAirlineSeatLegroomReduced: require('./notification/airline-seat-legroom-reduced'), + NotificationAirlineSeatReclineExtra: require('./notification/airline-seat-recline-extra'), + NotificationAirlineSeatReclineNormal: require('./notification/airline-seat-recline-normal'), + NotificationBluetoothAudio: require('./notification/bluetooth-audio'), + NotificationConfirmationNumber: require('./notification/confirmation-number'), + NotificationDiscFull: require('./notification/disc-full'), + NotificationDoNotDisturbAlt: require('./notification/do-not-disturb-alt'), + NotificationDoNotDisturb: require('./notification/do-not-disturb'), + NotificationDriveEta: require('./notification/drive-eta'), + NotificationEventAvailable: require('./notification/event-available'), + NotificationEventBusy: require('./notification/event-busy'), + NotificationEventNote: require('./notification/event-note'), + NotificationFolderSpecial: require('./notification/folder-special'), + NotificationLiveTv: require('./notification/live-tv'), + NotificationMms: require('./notification/mms'), + NotificationMore: require('./notification/more'), + NotificationNetworkLocked: require('./notification/network-locked'), + NotificationOndemandVideo: require('./notification/ondemand-video'), + NotificationPersonalVideo: require('./notification/personal-video'), + NotificationPhoneBluetoothSpeaker: require('./notification/phone-bluetooth-speaker'), + NotificationPhoneForwarded: require('./notification/phone-forwarded'), + NotificationPhoneInTalk: require('./notification/phone-in-talk'), + NotificationPhoneLocked: require('./notification/phone-locked'), + NotificationPhoneMissed: require('./notification/phone-missed'), + NotificationPhonePaused: require('./notification/phone-paused'), + NotificationPower: require('./notification/power'), + NotificationSdCard: require('./notification/sd-card'), + NotificationSimCardAlert: require('./notification/sim-card-alert'), + NotificationSmsFailed: require('./notification/sms-failed'), + NotificationSms: require('./notification/sms'), + NotificationSyncDisabled: require('./notification/sync-disabled'), + NotificationSyncProblem: require('./notification/sync-problem'), + NotificationSync: require('./notification/sync'), + NotificationSystemUpdate: require('./notification/system-update'), + NotificationTapAndPlay: require('./notification/tap-and-play'), + NotificationTimeToLeave: require('./notification/time-to-leave'), + NotificationVibration: require('./notification/vibration'), + NotificationVoiceChat: require('./notification/voice-chat'), + NotificationVpnLock: require('./notification/vpn-lock'), + NotificationWc: require('./notification/wc'), + NotificationWifi: require('./notification/wifi'), + SocialCake: require('./social/cake'), + SocialDomain: require('./social/domain'), + SocialGroupAdd: require('./social/group-add'), + SocialGroup: require('./social/group'), + SocialLocationCity: require('./social/location-city'), + SocialMoodBad: require('./social/mood-bad'), + SocialMood: require('./social/mood'), + SocialNotificationsActive: require('./social/notifications-active'), + SocialNotificationsNone: require('./social/notifications-none'), + SocialNotificationsOff: require('./social/notifications-off'), + SocialNotificationsPaused: require('./social/notifications-paused'), + SocialNotifications: require('./social/notifications'), + SocialPages: require('./social/pages'), + SocialPartyMode: require('./social/party-mode'), + SocialPeopleOutline: require('./social/people-outline'), + SocialPeople: require('./social/people'), + SocialPersonAdd: require('./social/person-add'), + SocialPersonOutline: require('./social/person-outline'), + SocialPerson: require('./social/person'), + SocialPlusOne: require('./social/plus-one'), + SocialPoll: require('./social/poll'), + SocialPublic: require('./social/public'), + SocialSchool: require('./social/school'), + SocialShare: require('./social/share'), + SocialWhatshot: require('./social/whatshot'), + ToggleCheckBoxOutlineBlank: require('./toggle/check-box-outline-blank'), + ToggleCheckBox: require('./toggle/check-box'), + ToggleIndeterminateCheckBox: require('./toggle/indeterminate-check-box'), + ToggleRadioButtonChecked: require('./toggle/radio-button-checked'), + ToggleRadioButtonUnchecked: require('./toggle/radio-button-unchecked'), + ToggleStarBorder: require('./toggle/star-border'), + ToggleStarHalf: require('./toggle/star-half'), + ToggleStar: require('./toggle/star'), + +}; \ No newline at end of file From 5fcd97e095e6ccf93b67073bb3813d9885e0093e Mon Sep 17 00:00:00 2001 From: Shaurya Arora Date: Wed, 21 Oct 2015 17:01:05 -0500 Subject: [PATCH 2/3] Minor code cleanup --- src/svg-icons/index-generator.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/svg-icons/index-generator.js b/src/svg-icons/index-generator.js index 5c6eaf2b92c1eb..6df3dd5c9f9323 100644 --- a/src/svg-icons/index-generator.js +++ b/src/svg-icons/index-generator.js @@ -35,6 +35,4 @@ rrs('./').forEach(function(file) { outArray.push('\n};') -// console.log(outArray.join('')); - fs.writeFileSync('index.js', outArray.join('')); \ No newline at end of file From f39790f8775c82107bfc9531fec0d1a503d4f630 Mon Sep 17 00:00:00 2001 From: Shaurya Arora Date: Wed, 21 Oct 2015 17:17:56 -0500 Subject: [PATCH 3/3] Adding newlines to end And some other minor changes --- src/svg-icons/index-generator.js | 6 +++--- src/svg-icons/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/svg-icons/index-generator.js b/src/svg-icons/index-generator.js index 6df3dd5c9f9323..f75c444f02f760 100644 --- a/src/svg-icons/index-generator.js +++ b/src/svg-icons/index-generator.js @@ -1,7 +1,7 @@ const fs = require('fs'); const rrs = require('recursive-readdir-sync'); -var outArray = []; +const outArray = []; outArray.push('module.exports = {\n'); rrs('./').forEach(function(file) { @@ -33,6 +33,6 @@ rrs('./').forEach(function(file) { } }); -outArray.push('\n};') +outArray.push('\n};\n') -fs.writeFileSync('index.js', outArray.join('')); \ No newline at end of file +fs.writeFileSync('index.js', outArray.join('')); diff --git a/src/svg-icons/index.js b/src/svg-icons/index.js index 1782572b59f672..b2cf285651eb28 100644 --- a/src/svg-icons/index.js +++ b/src/svg-icons/index.js @@ -824,4 +824,4 @@ module.exports = { ToggleStarHalf: require('./toggle/star-half'), ToggleStar: require('./toggle/star'), -}; \ No newline at end of file +};