Skip to content

Commit

Permalink
[Library] Filigran-icon add Icon at the end of the React Component
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkha committed May 3, 2024
1 parent 0b27ae2 commit 8e0b5ec
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 65 deletions.
2 changes: 1 addition & 1 deletion packages/filigran-icon/assets/case-incident.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/filigran-icon/index-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
function defaultIndexTemplate(filePaths) {
const exportEntries = filePaths.map(({ path: filePath, originalPath }) => {
const basename = path.basename(filePath, path.extname(filePath));
const componentName = /^\d/.test(basename) ? `Svg${basename}` : basename;
const componentName = /^\d/.test(basename) ? `Svg${basename}Icon` : `${basename}Icon`;
return `export const ${componentName} = lazy(() => import('./${basename}'))`;
});
return [`import { lazy } from 'react';`,...exportEntries].join('\n');
Expand Down
128 changes: 65 additions & 63 deletions packages/filigran-icon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,66 +1,68 @@
import { lazy } from "react";
export const AdministrativeArea = lazy(() => import("./AdministrativeArea"));
export const Assignment = lazy(() => import("./Assignment"));
export const AttackPattern = lazy(() => import("./AttackPattern"));
export const Attribute = lazy(() => import("./Attribute"));
export const Binoculars1 = lazy(() => import("./Binoculars1"));
export const CalendarViewMonth = lazy(() => import("./CalendarViewMonth"));
export const Campaign = lazy(() => import("./Campaign"));
export const CaseIncident = lazy(() => import("./CaseIncident"));
export const CaseRfi = lazy(() => import("./CaseRfi"));
export const CaseRft = lazy(() => import("./CaseRft"));
export const Channel = lazy(() => import("./Channel"));
export const Chevron = lazy(() => import("./Chevron"));
export const City = lazy(() => import("./City"));
export const Construction = lazy(() => import("./Construction"));
export const Country = lazy(() => import("./Country"));
export const CourseOfAction = lazy(() => import("./CourseOfAction"));
export const Dashboard = lazy(() => import("./Dashboard"));
export const DataSource = lazy(() => import("./DataSource"));
export const DatabaseOutline1 = lazy(() => import("./DatabaseOutline1"));
export const Event = lazy(() => import("./Event"));
export const ExternalReference = lazy(() => import("./ExternalReference"));
export const GlobeLine1 = lazy(() => import("./GlobeLine1"));
export const Group5 = lazy(() => import("./Group5"));
export const Grouping = lazy(() => import("./Grouping"));
export const Incident = lazy(() => import("./Incident"));
export const Indicator = lazy(() => import("./Indicator"));
export const Individual = lazy(() => import("./Individual"));
export const Infrastructure = lazy(() => import("./Infrastructure"));
export const IntrusionSet = lazy(() => import("./IntrusionSet"));
export const KillChainPhase = lazy(() => import("./KillChainPhase"));
export const Label = lazy(() => import("./Label"));
export const Language = lazy(() => import("./Language"));
export const LayersBlack = lazy(() => import("./LayersBlack"));
export const LittleArrow = lazy(() => import("./LittleArrow"));
export const LogoFiligran = lazy(() => import("./LogoFiligran"));
export const MalwareAnalysis = lazy(() => import("./MalwareAnalysis"));
export const Malware = lazy(() => import("./Malware"));
export const Map = lazy(() => import("./Map"));
export const MarkingDefinition = lazy(() => import("./MarkingDefinition"));
export const Narrative = lazy(() => import("./Narrative"));
export const Note = lazy(() => import("./Note"));
export const ObservedData = lazy(() => import("./ObservedData"));
export const Opinion = lazy(() => import("./Opinion"));
export const Organization = lazy(() => import("./Organization"));
export const PolarArea = lazy(() => import("./PolarArea"));
export const Polygon5 = lazy(() => import("./Polygon5"));
export const Position = lazy(() => import("./Position"));
export const Relationship = lazy(() => import("./Relationship"));
export const Report = lazy(() => import("./Report"));
export const Schedule = lazy(() => import("./Schedule"));
export const Science = lazy(() => import("./Science"));
export const Sector = lazy(() => import("./Sector"));
export const Settings = lazy(() => import("./Settings"));
export const System = lazy(() => import("./System"));
export const Task = lazy(() => import("./Task"));
export const TextSnippet = lazy(() => import("./TextSnippet"));
export const ThreatActorGroup = lazy(() => import("./ThreatActorGroup"));
export const ThreatActorIndividual = lazy(
export const AdministrativeAreaIcon = lazy(
() => import("./AdministrativeArea"),
);
export const AssignmentIcon = lazy(() => import("./Assignment"));
export const AttackPatternIcon = lazy(() => import("./AttackPattern"));
export const AttributeIcon = lazy(() => import("./Attribute"));
export const Binoculars1Icon = lazy(() => import("./Binoculars1"));
export const CalendarViewMonthIcon = lazy(() => import("./CalendarViewMonth"));
export const CampaignIcon = lazy(() => import("./Campaign"));
export const CaseIncidentIcon = lazy(() => import("./CaseIncident"));
export const CaseRfiIcon = lazy(() => import("./CaseRfi"));
export const CaseRftIcon = lazy(() => import("./CaseRft"));
export const ChannelIcon = lazy(() => import("./Channel"));
export const ChevronIcon = lazy(() => import("./Chevron"));
export const CityIcon = lazy(() => import("./City"));
export const ConstructionIcon = lazy(() => import("./Construction"));
export const CountryIcon = lazy(() => import("./Country"));
export const CourseOfActionIcon = lazy(() => import("./CourseOfAction"));
export const DashboardIcon = lazy(() => import("./Dashboard"));
export const DataSourceIcon = lazy(() => import("./DataSource"));
export const DatabaseOutline1Icon = lazy(() => import("./DatabaseOutline1"));
export const EventIcon = lazy(() => import("./Event"));
export const ExternalReferenceIcon = lazy(() => import("./ExternalReference"));
export const GlobeLine1Icon = lazy(() => import("./GlobeLine1"));
export const Group5Icon = lazy(() => import("./Group5"));
export const GroupingIcon = lazy(() => import("./Grouping"));
export const IncidentIcon = lazy(() => import("./Incident"));
export const IndicatorIcon = lazy(() => import("./Indicator"));
export const IndividualIcon = lazy(() => import("./Individual"));
export const InfrastructureIcon = lazy(() => import("./Infrastructure"));
export const IntrusionSetIcon = lazy(() => import("./IntrusionSet"));
export const KillChainPhaseIcon = lazy(() => import("./KillChainPhase"));
export const LabelIcon = lazy(() => import("./Label"));
export const LanguageIcon = lazy(() => import("./Language"));
export const LayersBlackIcon = lazy(() => import("./LayersBlack"));
export const LittleArrowIcon = lazy(() => import("./LittleArrow"));
export const LogoFiligranIcon = lazy(() => import("./LogoFiligran"));
export const MalwareAnalysisIcon = lazy(() => import("./MalwareAnalysis"));
export const MalwareIcon = lazy(() => import("./Malware"));
export const MapIcon = lazy(() => import("./Map"));
export const MarkingDefinitionIcon = lazy(() => import("./MarkingDefinition"));
export const NarrativeIcon = lazy(() => import("./Narrative"));
export const NoteIcon = lazy(() => import("./Note"));
export const ObservedDataIcon = lazy(() => import("./ObservedData"));
export const OpinionIcon = lazy(() => import("./Opinion"));
export const OrganizationIcon = lazy(() => import("./Organization"));
export const PolarAreaIcon = lazy(() => import("./PolarArea"));
export const Polygon5Icon = lazy(() => import("./Polygon5"));
export const PositionIcon = lazy(() => import("./Position"));
export const RelationshipIcon = lazy(() => import("./Relationship"));
export const ReportIcon = lazy(() => import("./Report"));
export const ScheduleIcon = lazy(() => import("./Schedule"));
export const ScienceIcon = lazy(() => import("./Science"));
export const SectorIcon = lazy(() => import("./Sector"));
export const SettingsIcon = lazy(() => import("./Settings"));
export const SystemIcon = lazy(() => import("./System"));
export const TaskIcon = lazy(() => import("./Task"));
export const TextSnippetIcon = lazy(() => import("./TextSnippet"));
export const ThreatActorGroupIcon = lazy(() => import("./ThreatActorGroup"));
export const ThreatActorIndividualIcon = lazy(
() => import("./ThreatActorIndividual"),
);
export const Tool = lazy(() => import("./Tool"));
export const Unknown = lazy(() => import("./Unknown"));
export const Vulnerability = lazy(() => import("./Vulnerability"));
export const WorkEmpty = lazy(() => import("./WorkEmpty"));
export const WorkFull = lazy(() => import("./WorkFull"));
export const ToolIcon = lazy(() => import("./Tool"));
export const UnknownIcon = lazy(() => import("./Unknown"));
export const VulnerabilityIcon = lazy(() => import("./Vulnerability"));
export const WorkEmptyIcon = lazy(() => import("./WorkEmpty"));
export const WorkFullIcon = lazy(() => import("./WorkFull"));

0 comments on commit 8e0b5ec

Please sign in to comment.