@omnsight/osint-entity-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +76 -0
- package/package.json +82 -0
- package/src/App.tsx +245 -0
- package/src/assets/icons/generated/basil-document-solid.tsx +8 -0
- package/src/assets/icons/generated/boxicons-announcement.tsx +8 -0
- package/src/assets/icons/generated/boxicons-book.tsx +8 -0
- package/src/assets/icons/generated/codicon-organization.tsx +8 -0
- package/src/assets/icons/generated/emojione-monotone-ship.tsx +8 -0
- package/src/assets/icons/generated/fa-solid-ship.tsx +8 -0
- package/src/assets/icons/generated/flowbite-truck-solid.tsx +8 -0
- package/src/assets/icons/generated/fluent-emoji-high-contrast-broken-chain.tsx +8 -0
- package/src/assets/icons/generated/fluent-emoji-high-contrast-military-helmet.tsx +8 -0
- package/src/assets/icons/generated/game-icons-bombing-run.tsx +8 -0
- package/src/assets/icons/generated/game-icons-missile-launcher.tsx +8 -0
- package/src/assets/icons/generated/game-icons-pistol-gun.tsx +8 -0
- package/src/assets/icons/generated/gg-website.tsx +8 -0
- package/src/assets/icons/generated/hugeicons-trade-up.tsx +8 -0
- package/src/assets/icons/generated/ic-sharp-oil-barrel.tsx +8 -0
- package/src/assets/icons/generated/ion-train-sharp.tsx +8 -0
- package/src/assets/icons/generated/mdi-account-school.tsx +8 -0
- package/src/assets/icons/generated/mdi-account-tie-hat.tsx +8 -0
- package/src/assets/icons/generated/mdi-account-tie.tsx +19 -0
- package/src/assets/icons/generated/mdi-airplane.tsx +8 -0
- package/src/assets/icons/generated/mdi-factory.tsx +19 -0
- package/src/assets/icons/generated/mdi-forum.tsx +8 -0
- package/src/assets/icons/generated/mdi-handcuffs.tsx +8 -0
- package/src/assets/icons/generated/mdi-tank.tsx +19 -0
- package/src/assets/icons/generated/mingcute-government-line.tsx +25 -0
- package/src/assets/icons/generated/mingcute-phone-call-fill.tsx +8 -0
- package/src/assets/icons/generated/pixel-technology.tsx +8 -0
- package/src/assets/icons/generated/ri-exchange-box-fill.tsx +8 -0
- package/src/assets/icons/generated/ri-seedling-line.tsx +8 -0
- package/src/assets/icons/generated/ri-spy-fill.tsx +8 -0
- package/src/assets/icons/generated/streamline-cyber-newspaper-2.tsx +8 -0
- package/src/assets/icons/generated/streamline-flex-deepfake-technology-1-solid.tsx +8 -0
- package/src/assets/icons/generated/uit-social-media-logo.tsx +8 -0
- package/src/avatars/EmptyAvatar.tsx +12 -0
- package/src/avatars/EventAvatar.tsx +40 -0
- package/src/avatars/OrganizationAvatar.tsx +43 -0
- package/src/avatars/PersonAvatar.tsx +41 -0
- package/src/avatars/SourceAvatar.tsx +67 -0
- package/src/avatars/WebsiteAvatar.tsx +40 -0
- package/src/avatars/index.ts +12 -0
- package/src/avatars/layouts/AvatarDropdown.tsx +48 -0
- package/src/avatars/layouts/AvatarRowList.tsx +23 -0
- package/src/avatars/layouts/AvatarSpan.tsx +11 -0
- package/src/avatars/layouts/EntityStyles.css +10 -0
- package/src/avatars/layouts/RelationTooltip.tsx +75 -0
- package/src/cards/EventCard.tsx +46 -0
- package/src/cards/OrganizationCard.tsx +38 -0
- package/src/cards/PersonCard.tsx +46 -0
- package/src/cards/SourceCard.tsx +63 -0
- package/src/cards/WebsiteCard.tsx +63 -0
- package/src/cards/index.ts +5 -0
- package/src/env.d.ts +2 -0
- package/src/i18n.ts +22 -0
- package/src/icons/Event/Icon.tsx +32 -0
- package/src/icons/Event/Select.tsx +61 -0
- package/src/icons/Event/icons.ts +118 -0
- package/src/icons/Organization/Icon.tsx +41 -0
- package/src/icons/Organization/Select.tsx +61 -0
- package/src/icons/Organization/icons.ts +53 -0
- package/src/icons/Person/Icon.tsx +34 -0
- package/src/icons/Person/Select.tsx +55 -0
- package/src/icons/Person/icons.ts +27 -0
- package/src/icons/Source/Icon.tsx +35 -0
- package/src/icons/Source/Select.tsx +61 -0
- package/src/icons/Source/icons.ts +40 -0
- package/src/icons/Website/Icon.tsx +39 -0
- package/src/icons/Website/Select.tsx +61 -0
- package/src/icons/Website/icons.ts +35 -0
- package/src/icons/index.ts +10 -0
- package/src/index.tsx +3 -0
- package/src/locales/en.json +75 -0
- package/src/locales/zh.json +76 -0
- package/src/main.tsx +22 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Omni OSINT Entity Components
|
|
2
|
+
|
|
3
|
+
This package contains a collection of React components for rendering OSINT entities, such as People, Organizations, Events, and more. It is designed to be used within the Omni OSINT ecosystem.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
To install the package, run the following command:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @omnsight/osint-entity-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer Dependencies
|
|
14
|
+
|
|
15
|
+
This library has peer dependencies that need to be installed in your project. Please ensure you have the following packages installed:
|
|
16
|
+
|
|
17
|
+
- `react`
|
|
18
|
+
- `react-dom`
|
|
19
|
+
- `@mantine/core`
|
|
20
|
+
- `react-i18next`
|
|
21
|
+
- `i18next`
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
Below is an example of how to import and use a component from this library. This example demonstrates how to use the `PersonCard` component and set up internationalization with the provided locale files.
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
import { MantineProvider } from '@mantine/core';
|
|
29
|
+
import { PersonCard } from '@omnsight/osint-entity-components/cards';
|
|
30
|
+
import { I18nextProvider } from 'react-i18next';
|
|
31
|
+
import i18n from 'i18next';
|
|
32
|
+
import en from '@omnsight/osint-entity-components/locales/en';
|
|
33
|
+
|
|
34
|
+
// Initialize i18n
|
|
35
|
+
i18n.init({
|
|
36
|
+
resources: {
|
|
37
|
+
en: {
|
|
38
|
+
translation: en,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
lng: 'en',
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
function MyApp() {
|
|
45
|
+
const person = {
|
|
46
|
+
_id: "person-1",
|
|
47
|
+
name: "John Doe",
|
|
48
|
+
role: "professional",
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<MantineProvider>
|
|
53
|
+
<I18nextProvider i18n={i18n}>
|
|
54
|
+
<PersonCard person={person} />
|
|
55
|
+
</I18nextProvider>
|
|
56
|
+
</MantineProvider>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Submodule Exports
|
|
62
|
+
|
|
63
|
+
You can import components from the following submodules:
|
|
64
|
+
|
|
65
|
+
- `@omnsight/osint-entity-components/avatars`
|
|
66
|
+
- `@omnsight/osint-entity-components/cards`
|
|
67
|
+
- `@omnsight/osint-entity-components/icons`
|
|
68
|
+
|
|
69
|
+
## Development
|
|
70
|
+
|
|
71
|
+
To publish a new version to npm, follow these steps:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm login
|
|
75
|
+
npm publish
|
|
76
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@omnsight/osint-entity-components",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=24.0.0"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"src"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./avatars": {
|
|
25
|
+
"import": "./src/avatars/index.ts",
|
|
26
|
+
"types": "./src/avatars/index.ts"
|
|
27
|
+
},
|
|
28
|
+
"./cards": {
|
|
29
|
+
"import": "./src/cards/index.ts",
|
|
30
|
+
"types": "./src/cards/index.ts"
|
|
31
|
+
},
|
|
32
|
+
"./icons": {
|
|
33
|
+
"import": "./src/icons/index.ts",
|
|
34
|
+
"types": "./src/icons/index.ts"
|
|
35
|
+
},
|
|
36
|
+
"./locales/en": {
|
|
37
|
+
"import": "./src/locales/en.json"
|
|
38
|
+
},
|
|
39
|
+
"./locales/zh": {
|
|
40
|
+
"import": "./src/locales/zh.json"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"dev": "vite",
|
|
45
|
+
"build": "tsc -b && vite build",
|
|
46
|
+
"lint": "eslint .",
|
|
47
|
+
"sync": "node scripts/sync-icons.mjs",
|
|
48
|
+
"preview": "vite preview",
|
|
49
|
+
"clean": "rm -rf node_modules package-lock.json dist"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@heroicons/react": "^2.2.0",
|
|
53
|
+
"@mantine/core": "^8.3.18",
|
|
54
|
+
"@mantine/hooks": "^8.3.18",
|
|
55
|
+
"@svgr/plugin-jsx": "^8.1.0",
|
|
56
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
57
|
+
"omni-osint-crud-client": "latest",
|
|
58
|
+
"react": "^19.2.4",
|
|
59
|
+
"react-dom": "^19.2.4",
|
|
60
|
+
"react-i18next": "^16.6.6"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@eslint/js": "^9.39.4",
|
|
64
|
+
"@iconify/utils": "^3.1.0",
|
|
65
|
+
"@svgr/core": "^8.1.0",
|
|
66
|
+
"@types/node": "^24.12.0",
|
|
67
|
+
"@types/react": "^19.2.14",
|
|
68
|
+
"@types/react-dom": "^19.2.3",
|
|
69
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
70
|
+
"eslint": "^9.39.4",
|
|
71
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
72
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
73
|
+
"glob": "^13.0.6",
|
|
74
|
+
"globals": "^17.4.0",
|
|
75
|
+
"postcss": "^8.5.6",
|
|
76
|
+
"postcss-preset-mantine": "^1.18.0",
|
|
77
|
+
"postcss-simple-vars": "^7.0.1",
|
|
78
|
+
"typescript": "~5.9.3",
|
|
79
|
+
"typescript-eslint": "^8.57.0",
|
|
80
|
+
"vite": "^8.0.1"
|
|
81
|
+
}
|
|
82
|
+
}
|
package/src/App.tsx
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ActionIcon,
|
|
3
|
+
Button,
|
|
4
|
+
Card,
|
|
5
|
+
Group,
|
|
6
|
+
ScrollArea,
|
|
7
|
+
SimpleGrid,
|
|
8
|
+
Stack,
|
|
9
|
+
Text,
|
|
10
|
+
useMantineColorScheme,
|
|
11
|
+
} from "@mantine/core";
|
|
12
|
+
import { useState } from "react";
|
|
13
|
+
import { useTranslation } from "react-i18next";
|
|
14
|
+
import {
|
|
15
|
+
AvatarDropdown,
|
|
16
|
+
AvatarRowList,
|
|
17
|
+
AvatarSpan,
|
|
18
|
+
EmptyAvatar,
|
|
19
|
+
EventAvatar,
|
|
20
|
+
OrganizationAvatar,
|
|
21
|
+
PersonAvatar,
|
|
22
|
+
SourceAvatar,
|
|
23
|
+
WebsiteAvatar,
|
|
24
|
+
} from "./avatars";
|
|
25
|
+
import {
|
|
26
|
+
EventIcon,
|
|
27
|
+
EventIconSelect,
|
|
28
|
+
OrganizationIcon,
|
|
29
|
+
OrganizationIconSelect,
|
|
30
|
+
PersonIcon,
|
|
31
|
+
PersonIconSelect,
|
|
32
|
+
SourceIcon,
|
|
33
|
+
SourceIconSelect,
|
|
34
|
+
WebsiteIcon,
|
|
35
|
+
WebsiteIconSelect,
|
|
36
|
+
} from "./icons";
|
|
37
|
+
import type {
|
|
38
|
+
Person,
|
|
39
|
+
Organization,
|
|
40
|
+
Event,
|
|
41
|
+
Source,
|
|
42
|
+
Website,
|
|
43
|
+
Relation,
|
|
44
|
+
} from "omni-osint-crud-client";
|
|
45
|
+
import {
|
|
46
|
+
EventCard,
|
|
47
|
+
OrganizationCard,
|
|
48
|
+
PersonCard,
|
|
49
|
+
SourceCard,
|
|
50
|
+
WebsiteCard,
|
|
51
|
+
} from "./cards";
|
|
52
|
+
import { ArrowRightIcon } from "@heroicons/react/24/solid";
|
|
53
|
+
|
|
54
|
+
function App() {
|
|
55
|
+
const { i18n } = useTranslation();
|
|
56
|
+
const { colorScheme, setColorScheme } = useMantineColorScheme();
|
|
57
|
+
const [person, setPerson] = useState<Person>({
|
|
58
|
+
_id: "person-1",
|
|
59
|
+
name: "John Doe",
|
|
60
|
+
role: "professional",
|
|
61
|
+
aliases: ["John", "Johnny"],
|
|
62
|
+
tags: ["tag1", "tag2"],
|
|
63
|
+
});
|
|
64
|
+
const [organization, setOrganization] = useState<Organization>({
|
|
65
|
+
_id: "org-1",
|
|
66
|
+
name: "Acme Inc.",
|
|
67
|
+
tags: ["company", "software"],
|
|
68
|
+
});
|
|
69
|
+
const [event, setEvent] = useState<Event>({
|
|
70
|
+
_id: "event-1",
|
|
71
|
+
title: "New Product Launch",
|
|
72
|
+
description: "The launch of a new product",
|
|
73
|
+
happened_at: new Date().getTime() / 1000,
|
|
74
|
+
tags: ["new-product", "launch"],
|
|
75
|
+
});
|
|
76
|
+
const [source, setSource] = useState<Source>({
|
|
77
|
+
_id: "source-1",
|
|
78
|
+
name: "News Article",
|
|
79
|
+
url: "https://example.com/article",
|
|
80
|
+
description: "A news article about something.",
|
|
81
|
+
tags: ["news", "article"],
|
|
82
|
+
});
|
|
83
|
+
const [website, setWebsite] = useState<Website>({
|
|
84
|
+
_id: "website-1",
|
|
85
|
+
url: "https://example.com",
|
|
86
|
+
title: "Example Website",
|
|
87
|
+
description: "An example website.",
|
|
88
|
+
tags: ["website", "example"],
|
|
89
|
+
});
|
|
90
|
+
const [relation] = useState<Relation>({
|
|
91
|
+
_id: "relation-1",
|
|
92
|
+
_from: "person-1",
|
|
93
|
+
_to: "org-1",
|
|
94
|
+
label: "相关人物/组织",
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const cardStyle = {
|
|
98
|
+
height: 500,
|
|
99
|
+
width: 400,
|
|
100
|
+
display: "flex",
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
justifyContent: "center",
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<>
|
|
107
|
+
<Group>
|
|
108
|
+
<Button
|
|
109
|
+
onClick={() =>
|
|
110
|
+
i18n.changeLanguage(i18n.language === "en" ? "zh" : "en")
|
|
111
|
+
}
|
|
112
|
+
>
|
|
113
|
+
Toggle Language
|
|
114
|
+
</Button>
|
|
115
|
+
<Button onClick={() => setColorScheme(colorScheme === "dark" ? "light" : "dark")}>Toggle Theme</Button>
|
|
116
|
+
</Group>
|
|
117
|
+
<ScrollArea style={{ height: "100vh" }}>
|
|
118
|
+
<SimpleGrid
|
|
119
|
+
cols={{ base: 1, sm: 2, md: 3, lg: 4, xl: 5 }}
|
|
120
|
+
spacing="lg"
|
|
121
|
+
p="lg"
|
|
122
|
+
>
|
|
123
|
+
<Card withBorder style={cardStyle}>
|
|
124
|
+
<Text>Avatar List</Text>
|
|
125
|
+
<AvatarRowList>
|
|
126
|
+
<EventAvatar data={event} relation={relation} key={1} />
|
|
127
|
+
<OrganizationAvatar
|
|
128
|
+
data={organization}
|
|
129
|
+
relation={relation}
|
|
130
|
+
key={2}
|
|
131
|
+
/>
|
|
132
|
+
<PersonAvatar data={person} relation={relation} key={3} />
|
|
133
|
+
<SourceAvatar data={source} relation={relation} key={4} />
|
|
134
|
+
<WebsiteAvatar data={website} relation={relation} key={5} />
|
|
135
|
+
<EmptyAvatar />
|
|
136
|
+
</AvatarRowList>
|
|
137
|
+
</Card>
|
|
138
|
+
<Card withBorder style={cardStyle}>
|
|
139
|
+
<Text>Avatar Dropdown</Text>
|
|
140
|
+
<AvatarDropdown
|
|
141
|
+
avatarOnOpen={<Text>+</Text>}
|
|
142
|
+
avatarOnClose={<Text>-</Text>}
|
|
143
|
+
>
|
|
144
|
+
<SourceAvatar data={source} relation={relation} key={1} />
|
|
145
|
+
<SourceAvatar data={source} relation={relation} key={2} />
|
|
146
|
+
<SourceAvatar data={source} relation={relation} key={3} />
|
|
147
|
+
</AvatarDropdown>
|
|
148
|
+
</Card>
|
|
149
|
+
<Card withBorder style={cardStyle}>
|
|
150
|
+
<Text>Avatar Span</Text>
|
|
151
|
+
<AvatarSpan>
|
|
152
|
+
<EventAvatar data={event} relation={relation} key={1} />
|
|
153
|
+
<OrganizationAvatar
|
|
154
|
+
data={organization}
|
|
155
|
+
relation={relation}
|
|
156
|
+
key={2}
|
|
157
|
+
/>
|
|
158
|
+
<PersonAvatar data={person} relation={relation} key={3} />
|
|
159
|
+
<SourceAvatar data={source} relation={relation} key={4} />
|
|
160
|
+
<WebsiteAvatar data={website} relation={relation} key={5} />
|
|
161
|
+
<EmptyAvatar />
|
|
162
|
+
</AvatarSpan>
|
|
163
|
+
</Card>
|
|
164
|
+
|
|
165
|
+
<Card withBorder style={cardStyle}>
|
|
166
|
+
<Text>Avatars: </Text>
|
|
167
|
+
<EmptyAvatar />
|
|
168
|
+
<EventAvatar data={event} />
|
|
169
|
+
<OrganizationAvatar data={organization} />
|
|
170
|
+
<PersonAvatar data={person} />
|
|
171
|
+
<SourceAvatar data={source} />
|
|
172
|
+
<WebsiteAvatar data={website} />
|
|
173
|
+
</Card>
|
|
174
|
+
|
|
175
|
+
<Card withBorder style={cardStyle}>
|
|
176
|
+
<Text>Icons</Text>
|
|
177
|
+
<EventIcon event={event} />
|
|
178
|
+
<OrganizationIcon organization={organization} />
|
|
179
|
+
<PersonIcon person={person} />
|
|
180
|
+
<SourceIcon source={source} />
|
|
181
|
+
<WebsiteIcon website={website} />
|
|
182
|
+
</Card>
|
|
183
|
+
|
|
184
|
+
<Card withBorder style={cardStyle}>
|
|
185
|
+
<Text>Icon Select</Text>
|
|
186
|
+
<Text>Person:</Text>
|
|
187
|
+
<PersonIconSelect value={person} onChange={setPerson} />
|
|
188
|
+
<Text>Organization:</Text>
|
|
189
|
+
<OrganizationIconSelect
|
|
190
|
+
value={organization}
|
|
191
|
+
onChange={setOrganization}
|
|
192
|
+
/>
|
|
193
|
+
<Text>Event:</Text>
|
|
194
|
+
<EventIconSelect value={event} onChange={setEvent} />
|
|
195
|
+
<Text>Source:</Text>
|
|
196
|
+
<SourceIconSelect value={source} onChange={setSource} />
|
|
197
|
+
<Text>Website:</Text>
|
|
198
|
+
<WebsiteIconSelect value={website} onChange={setWebsite} />
|
|
199
|
+
</Card>
|
|
200
|
+
|
|
201
|
+
<Card withBorder style={cardStyle}>
|
|
202
|
+
<Text>Cards</Text>
|
|
203
|
+
<ScrollArea w={350} h={400}>
|
|
204
|
+
<Stack>
|
|
205
|
+
<EventCard
|
|
206
|
+
event={event}
|
|
207
|
+
action={
|
|
208
|
+
<ActionIcon
|
|
209
|
+
variant="subtle"
|
|
210
|
+
color="gray"
|
|
211
|
+
onClick={(e) => {
|
|
212
|
+
e.stopPropagation();
|
|
213
|
+
}}
|
|
214
|
+
>
|
|
215
|
+
<ArrowRightIcon style={{ width: 18, height: 18 }} />
|
|
216
|
+
</ActionIcon>
|
|
217
|
+
}
|
|
218
|
+
/>
|
|
219
|
+
<PersonCard person={person} />
|
|
220
|
+
<OrganizationCard organization={organization} />
|
|
221
|
+
<SourceCard source={source} />
|
|
222
|
+
<WebsiteCard website={website} />
|
|
223
|
+
</Stack>
|
|
224
|
+
</ScrollArea>
|
|
225
|
+
</Card>
|
|
226
|
+
|
|
227
|
+
<Card withBorder style={cardStyle}>
|
|
228
|
+
<Text>Empty Cards</Text>
|
|
229
|
+
<ScrollArea w={350} h={400}>
|
|
230
|
+
<Stack>
|
|
231
|
+
<EventCard event={{}} />
|
|
232
|
+
<PersonCard person={{}} />
|
|
233
|
+
<OrganizationCard organization={{}} />
|
|
234
|
+
<SourceCard source={{}} />
|
|
235
|
+
<WebsiteCard website={{}} />
|
|
236
|
+
</Stack>
|
|
237
|
+
</ScrollArea>
|
|
238
|
+
</Card>
|
|
239
|
+
</SimpleGrid>
|
|
240
|
+
</ScrollArea>
|
|
241
|
+
</>
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export default App;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// From: https://icon-sets.iconify.design/basil/document-solid
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export const IconBasilDocumentSolid = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
...props
|
|
6
|
+
}: SVGProps<SVGSVGElement> & {
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}) => <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width={size} height={size} {...props}><path fillRule="evenodd" d="M14.25 2.5a.25.25 0 0 0-.25-.25H7A2.75 2.75 0 0 0 4.25 5v14A2.75 2.75 0 0 0 7 21.75h10A2.75 2.75 0 0 0 19.75 19V9.147a.25.25 0 0 0-.25-.25H15a.75.75 0 0 1-.75-.75zm.75 9.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5z" clipRule="evenodd" /><path d="M15.75 2.824c0-.184.193-.301.336-.186q.182.147.323.342l3.013 4.197c.068.096-.006.22-.124.22H16a.25.25 0 0 1-.25-.25z" /></svg>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// From: https://icon-sets.iconify.design/boxicons/announcement
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export const IconBoxiconsAnnouncement = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
...props
|
|
6
|
+
}: SVGProps<SVGSVGElement> & {
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}) => <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width={size} height={size} {...props}><path d="M18.5 10H22v2h-3.5zm.05-1.17 1.5-1 1.5-1L21 6l-.55-.83-1.5 1-1.5 1L18 8zm0 4.34L18 14l-.55.83 1.5 1 1.5 1L21 16l.55-.83-1.5-1zM15 8.18V4c0-.37-.2-.71-.53-.88s-.72-.15-1.03.05L7.69 7h-1.7c-2.21 0-4 1.79-4 4 0 1.52.86 2.82 2.1 3.5l1.94 6.77 1.92-.55-1.64-5.73h1.37l5.75 3.83c.17.11.36.17.55.17.16 0 .32-.04.47-.12.33-.17.53-.51.53-.88v-4.18c1.16-.41 2-1.51 2-2.82s-.84-2.4-2-2.82Zm-2 7.95-4.45-2.96A1 1 0 0 0 8 13H6c-1.1 0-2-.9-2-2s.9-2 2-2h2c.2 0 .39-.06.55-.17L13 5.87z" /></svg>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// From: https://icon-sets.iconify.design/boxicons/book
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export const IconBoxiconsBook = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
...props
|
|
6
|
+
}: SVGProps<SVGSVGElement> & {
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}) => <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width={size} height={size} {...props}><path d="M8 6h9v2H8z" /><path d="M20 2H6C4.35 2 3 3.35 3 5v14c0 1.65 1.35 3 3 3h15v-2H6c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-6 14H6c-.35 0-.69.07-1 .18V5c0-.55.45-1 1-1h13v12z" /></svg>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// From: https://icon-sets.iconify.design/codicon/organization
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export const IconCodiconOrganization = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
...props
|
|
6
|
+
}: SVGProps<SVGSVGElement> & {
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}) => <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16" width={size} height={size} {...props}><path d="M6.002 4a1.998 1.998 0 1 1 3.996 0 1.998 1.998 0 0 1-3.996 0M8 3.002a.998.998 0 1 0 0 1.996.998.998 0 0 0 0-1.996M11 4.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m1.5-.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1m-9-1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M3 4.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0M4.268 7A2 2 0 0 0 4 8H2v2.5a1.5 1.5 0 0 0 2.096 1.377c.074.331.19.647.34.942A2.5 2.5 0 0 1 1 10.5V8a1 1 0 0 1 1-1zm7.296 5.819A2.5 2.5 0 0 0 15 10.5V8a1 1 0 0 0-1-1h-2.268c.17.294.268.635.268 1h2v2.5a1.5 1.5 0 0 1-2.096 1.377 4 4 0 0 1-.34.942M6 6.999a1 1 0 0 0-1 1V11a3 3 0 1 0 6 0V8a1 1 0 0 0-1-1zm0 1h4V11a2 2 0 1 1-4 0z" /></svg>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// From: https://icon-sets.iconify.design/emojione-monotone/ship
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export const IconEmojioneMonotoneShip = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
...props
|
|
6
|
+
}: SVGProps<SVGSVGElement> & {
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}) => <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 64 64" width={size} height={size} {...props}><path d="M25.755 34.964h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451m5.365 0h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451M20 29.04h1.327v2.722H20zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.367 0h1.326v2.722h-1.326zm3.363 0h1.327v2.722h-1.327zm3.365 0h1.327v2.722h-1.327zM13.604 13.073a7 7 0 0 1-.882-.88l-.348-.431-.542.09c-.929.157-1.818.15-2.7-.121a5.6 5.6 0 0 1-1.315-.605c-.443-.262-.856-.597-1.288-.984.056.591.309 1.139.634 1.649.344.495.788.954 1.332 1.284.932.594 2.081.771 3.149.66.303.299.613.534.967.759.487.308 1.03.534 1.597.663 1.138.254 2.363.009 3.186-.686-1.073-.027-1.963-.237-2.722-.668a6.4 6.4 0 0 1-1.068-.73m11.543 3.474a2.9 2.9 0 0 1-.761-.484 3.2 3.2 0 0 1-.53-.604 3.7 3.7 0 0 1-.361-.659l-.288-.771-.782.173c-.75.165-1.463.257-2.158.16-.693-.091-1.417-.401-2.113-1.055-.023.983.674 1.954 1.638 2.434.744.37 1.566.459 2.338.385.123.178.258.339.416.503.332.329.744.596 1.191.741.907.298 1.848.084 2.465-.458-.4-.122-.752-.216-1.055-.365" /><path d="M56.561 51.763c.12-3.085.999-4.501 2.327-6.646l.32-.517c2.471-4.02 3.308-7.156 2.486-9.325-.564-1.493-1.703-1.989-2.018-2.101-1.518-.654-3.778-1.002-6.539-1.002-1.209 0-3.064.078-5.445.402v-5.809h-3.649v-2.674h-8.006l-2.777-5.6c-.109-.047-.223-.081-.334-.123a3.2 3.2 0 0 0-1.767-2.534 5.03 5.03 0 0 0-3.091-4.452 5.83 5.83 0 0 0-5.444-3.752q-.665.001-1.31.152a6.72 6.72 0 0 0-4.742-2.177C15.187 3.391 12.739 2 10.106 2 5.892 2 2.463 5.456 2.463 9.704c0 4.246 3.428 7.702 7.643 7.702a7.5 7.5 0 0 0 1.525-.157 6.66 6.66 0 0 0 4.734 1.959 6.66 6.66 0 0 0 3.058-.739c.938.62 2.03.958 3.168.965a4.9 4.9 0 0 0 2.449 1.433l-.402 3.227H20.88l-4.46 1.53v2.87l-2.737 1.257v5.185h2.683v2.225l-6.259 3.153v6.14c-3.893 1.11-6.329 1.449-6.378 1.455l-.803.106v3.753H2V62h59.077V51.767H56.56zM23.21 17.979c-.193.026-.385.06-.585.06a4.44 4.44 0 0 1-3.101-1.268 5.32 5.32 0 0 1-3.159 1.042 5.34 5.34 0 0 1-4.264-2.134 6.2 6.2 0 0 1-1.995.332c-3.457 0-6.258-2.823-6.258-6.307s2.801-6.309 6.258-6.309c2.51 0 4.668 1.491 5.666 3.64a5.35 5.35 0 0 1 5.059 2.376 4.4 4.4 0 0 1 1.794-.384c2.113 0 3.872 1.481 4.34 3.467a3.594 3.594 0 0 1 2.813 3.517c0 .318-.053.62-.131.914.045-.003.087-.013.131-.013.711 0 1.318.421 1.607 1.025a9 9 0 0 0-1.607-.153c-1.414 0-3.281.341-4.471.932l-.094.755a3.6 3.6 0 0 1-2.003-1.492m-5.056 9.717h28.615v5.018a47 47 0 0 0-2.218.391H18.154zm15.234 8.781a73 73 0 0 0-7.457 3.506 82 82 0 0 1-5.094 2.521v-8.469h19.787a63 63 0 0 0-3.764 1.151.44.44 0 0 0-.375-.222h-2.683a.45.45 0 0 0-.446.451v.901q.001.086.032.161M17.26 40.261c0-.248.184-.535.405-.642l1.873-.88c.223-.106.404.011.404.259v2.043a.7.7 0 0 1-.418.608l-1.845.694c-.231.087-.42-.045-.42-.293zm-3.13 1.471c0-.248.184-.537.406-.642l1.426-.67c.222-.105.404.012.404.26v1.706a.7.7 0 0 1-.418.608l-1.397.526c-.23.086-.42-.046-.42-.294v-1.494zM11 43.202c0-.248.184-.535.406-.64l1.426-.671c.222-.105.404.012.404.26v1.414a.7.7 0 0 1-.418.608l-1.397.525c-.23.086-.42-.045-.42-.293v-1.203zm-6.229 6.424c2.654-.458 11.47-2.302 22.031-8.003 12.682-6.85 22.642-7.589 26.336-7.589 2.496 0 4.57.307 5.84.864l.107.038c.005.002.59.22.885 1.001.096.252.174.612.178 1.094a6.5 6.5 0 0 0-1.75-1.079c-5.538-1.563-18.201-.427-32.242 7.156C16.114 48.53 7.52 49.816 4.771 50.103zm49.813 6.507c-3.188.634-16.266 3.075-28.256 3.075-6.394 0-11.487-.687-15.141-2.04-1.406-.521-3.584-1.54-6.416-4.384v-1.779c2.787-.285 11.582-1.581 21.806-7.102 13.619-7.354 26.186-8.55 31.494-7.112.564.229 1.369.665 1.961 1.384-.238 1.25-.895 3.008-2.395 5.446l-.314.511c-1.379 2.223-2.468 3.98-2.606 7.546a98 98 0 0 0-.133 4.455" /></svg>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// From: https://icon-sets.iconify.design/fa-solid/ship
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export const IconFaSolidShip = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
...props
|
|
6
|
+
}: SVGProps<SVGSVGElement> & {
|
|
7
|
+
size?: number | string;
|
|
8
|
+
}) => <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 512 512" width={size} height={size} {...props}><path d="m496.616 372.639 70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361M192 128h256v87.531l-118.208-37.995a32 32 0 0 0-19.584 0L192 215.531z" /></svg>;
|