icon-to-font 1.0.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 +21 -0
- package/README.md +230 -0
- package/bin/cli.js +11 -0
- package/bin/cli.ts +183 -0
- package/examples/uniapp-vue3/App.vue +17 -0
- package/examples/uniapp-vue3/index.html +20 -0
- package/examples/uniapp-vue3/main.js +22 -0
- package/examples/uniapp-vue3/manifest.json +72 -0
- package/examples/uniapp-vue3/pages/index/index.vue +33 -0
- package/examples/uniapp-vue3/pages.json +17 -0
- package/examples/uniapp-vue3/static/itf/test1.svg +1 -0
- package/examples/uniapp-vue3/static/itf/test2.svg +1 -0
- package/examples/uniapp-vue3/static/itf//346/265/213/350/257/225.svg +1 -0
- package/examples/uniapp-vue3/static/logo.png +0 -0
- package/examples/uniapp-vue3/uni.promisify.adaptor.js +13 -0
- package/examples/uniapp-vue3/uni.scss +76 -0
- package/examples/vite-react/README.md +73 -0
- package/examples/vite-react/eslint.config.js +23 -0
- package/examples/vite-react/index.html +13 -0
- package/examples/vite-react/package.json +30 -0
- package/examples/vite-react/pnpm-lock.yaml +2049 -0
- package/examples/vite-react/public/vite.svg +1 -0
- package/examples/vite-react/src/App.css +42 -0
- package/examples/vite-react/src/App.tsx +37 -0
- package/examples/vite-react/src/assets/itf/test1.svg +1 -0
- package/examples/vite-react/src/assets/itf/test2.svg +1 -0
- package/examples/vite-react/src/assets/itf//346/265/213/350/257/225.svg +1 -0
- package/examples/vite-react/src/assets/react.svg +1 -0
- package/examples/vite-react/src/index.css +68 -0
- package/examples/vite-react/src/main.tsx +10 -0
- package/examples/vite-react/tsconfig.app.json +28 -0
- package/examples/vite-react/tsconfig.json +7 -0
- package/examples/vite-react/tsconfig.node.json +26 -0
- package/examples/vite-react/vite.config.ts +7 -0
- package/examples/vite-vue3/.vscode/extensions.json +3 -0
- package/examples/vite-vue3/README.md +5 -0
- package/examples/vite-vue3/index.html +13 -0
- package/examples/vite-vue3/package.json +21 -0
- package/examples/vite-vue3/pnpm-lock.yaml +939 -0
- package/examples/vite-vue3/public/vite.svg +1 -0
- package/examples/vite-vue3/src/App.vue +30 -0
- package/examples/vite-vue3/src/assets/itf/test1.svg +1 -0
- package/examples/vite-vue3/src/assets/itf/test2.svg +1 -0
- package/examples/vite-vue3/src/assets/itf//346/265/213/350/257/225.svg +1 -0
- package/examples/vite-vue3/src/assets/vue.svg +1 -0
- package/examples/vite-vue3/src/components/HelloWorld.vue +41 -0
- package/examples/vite-vue3/src/main.ts +5 -0
- package/examples/vite-vue3/src/style.css +79 -0
- package/examples/vite-vue3/tsconfig.app.json +16 -0
- package/examples/vite-vue3/tsconfig.json +7 -0
- package/examples/vite-vue3/tsconfig.node.json +26 -0
- package/examples/vite-vue3/vite.config.ts +7 -0
- package/package.json +48 -0
- package/tsconfig.json +24 -0
- package/utils/command-line.ts +155 -0
- package/utils/component-generators/base-component-generator.abstract.ts +25 -0
- package/utils/component-generators/component-generator-factory.ts +32 -0
- package/utils/component-generators/component-generator.interface.ts +12 -0
- package/utils/component-generators/index.ts +11 -0
- package/utils/component-generators/react-component-generator.ts +69 -0
- package/utils/component-generators/uni-app-component-generator.ts +64 -0
- package/utils/component-generators/vue-component-generator.ts +65 -0
- package/utils/component-generators.ts +9 -0
- package/utils/css-generator.ts +47 -0
- package/utils/directory-structure.ts +139 -0
- package/utils/file-system.ts +83 -0
- package/utils/font-generator.ts +55 -0
- package/utils/project-detector.ts +145 -0
- package/utils/usage-generator.ts +77 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import HelloWorld from './components/HelloWorld.vue'
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<a href="https://vite.dev" target="_blank">
|
|
8
|
+
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://vuejs.org/" target="_blank">
|
|
11
|
+
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
|
12
|
+
</a>
|
|
13
|
+
</div>
|
|
14
|
+
<HelloWorld msg="Vite + Vue" />
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<style scoped>
|
|
18
|
+
.logo {
|
|
19
|
+
height: 6em;
|
|
20
|
+
padding: 1.5em;
|
|
21
|
+
will-change: filter;
|
|
22
|
+
transition: filter 300ms;
|
|
23
|
+
}
|
|
24
|
+
.logo:hover {
|
|
25
|
+
filter: drop-shadow(0 0 2em #646cffaa);
|
|
26
|
+
}
|
|
27
|
+
.logo.vue:hover {
|
|
28
|
+
filter: drop-shadow(0 0 2em #42b883aa);
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="44" height="44" viewBox="0 0 44 44" fill="none"><path d="M38.0696 4.09246C39.1137 3.67482 40.1578 4.73329 39.9849 6.03661L35.5746 38.5255C35.5657 38.5936 35.5533 38.6611 35.5372 38.7279C35.5212 38.7947 35.5017 38.8605 35.4787 38.9252C35.4557 38.99 35.4293 39.0534 35.3997 39.1153C35.3699 39.1772 35.337 39.2374 35.301 39.2959C35.2844 39.3233 35.267 39.35 35.2487 39.3762C35.2305 39.4025 35.2114 39.4281 35.1917 39.4531C35.1718 39.4782 35.1512 39.5026 35.1299 39.5264C35.1086 39.5502 35.0866 39.5733 35.0639 39.5957C35.0411 39.6182 35.0177 39.6399 34.9937 39.6608C34.9696 39.6818 34.9449 39.7021 34.9196 39.7215C34.8942 39.741 34.8683 39.7597 34.8419 39.7776C34.8154 39.7955 34.7884 39.8126 34.7609 39.8288C34.748 39.8363 34.735 39.8436 34.7218 39.8506C34.7086 39.8576 34.6953 39.8644 34.6819 39.871C34.6685 39.8776 34.655 39.8839 34.6414 39.89C34.6277 39.896 34.614 39.9019 34.6001 39.9075C34.5863 39.9131 34.5723 39.9184 34.5583 39.9236C34.5442 39.9287 34.5301 39.9336 34.5159 39.9381C34.5017 39.9428 34.4874 39.9471 34.4731 39.9512C34.4587 39.9553 34.4443 39.9592 34.4298 39.9627C34.4153 39.9664 34.4007 39.9697 34.3861 39.9728C34.3715 39.9759 34.3569 39.9787 34.3421 39.9812C34.3274 39.9838 34.3127 39.9861 34.2979 39.9881C34.2831 39.9902 34.2683 39.9919 34.2534 39.9935C34.2386 39.995 34.2237 39.9963 34.2088 39.9972C34.1939 39.9982 34.1789 39.999 34.164 39.9994C34.1491 39.9999 34.1342 40 34.1192 40C34.1043 39.9999 34.0894 39.9996 34.0744 39.999C34.0595 39.9984 34.0446 39.9976 34.0297 39.9964C34.0148 39.9953 34 39.9939 33.9851 39.9923C33.9703 39.9906 33.9555 39.9887 33.9407 39.9865C33.9259 39.9844 33.9112 39.9819 33.8965 39.9792C33.8818 39.9766 33.8672 39.9736 33.8526 39.9704C33.838 39.9672 33.8234 39.9637 33.809 39.96C33.7945 39.9563 33.7801 39.9523 33.7658 39.9481C33.7515 39.9439 33.7373 39.9394 33.7231 39.9347C33.7089 39.9299 33.6948 39.9249 33.6808 39.9197C33.6669 39.9144 33.653 39.909 33.6392 39.9033C33.6254 39.8975 33.6117 39.8916 33.5981 39.8853C33.5845 39.8792 33.5711 39.8727 33.5577 39.866C33.5443 39.8593 33.5311 39.8524 33.518 39.8452C33.5049 39.8381 33.4919 39.8307 33.479 39.8231C33.4662 39.8155 33.4535 39.8077 33.4409 39.7996C33.4283 39.7916 33.4159 39.7833 33.4037 39.7748L21.6667 31.865L16.3347 34.5904C16.3216 34.5972 16.3083 34.6038 16.2949 34.6101C16.2816 34.6165 16.2681 34.6226 16.2545 34.6285C16.2408 34.6344 16.2272 34.6401 16.2134 34.6454C16.1996 34.6508 16.1857 34.656 16.1717 34.6609C16.1577 34.6658 16.1436 34.6705 16.1295 34.6749C16.1154 34.6793 16.1012 34.6835 16.0869 34.6873C16.0726 34.6913 16.0582 34.6949 16.0438 34.6983C16.0294 34.7017 16.0149 34.7049 16.0004 34.7078C15.9858 34.7107 15.9713 34.7133 15.9566 34.7157C15.942 34.7181 15.9274 34.7202 15.9127 34.722C15.898 34.7239 15.8832 34.7255 15.8685 34.7268C15.8537 34.7282 15.839 34.7293 15.8242 34.7301C15.8094 34.7309 15.7946 34.7315 15.7798 34.7318C15.765 34.7321 15.7501 34.7322 15.7353 34.7319C15.7205 34.7317 15.7057 34.7312 15.6909 34.7304C15.6761 34.7297 15.6614 34.7287 15.6466 34.7274C15.6318 34.7262 15.6171 34.7246 15.6024 34.7228C15.5876 34.7211 15.573 34.719 15.5584 34.7167C15.5437 34.7144 15.5292 34.7119 15.5146 34.709C15.5001 34.7062 15.4855 34.7032 15.4711 34.6998C15.4567 34.6965 15.4423 34.6929 15.428 34.689C15.4137 34.6852 15.3994 34.6811 15.3853 34.6768C15.3711 34.6725 15.357 34.6679 15.343 34.663C15.329 34.6582 15.3151 34.6531 15.3013 34.6478C15.2875 34.6425 15.2737 34.6369 15.2601 34.6311C15.2465 34.6253 15.2329 34.6193 15.2195 34.6129C15.2061 34.6067 15.1928 34.6001 15.1797 34.5934C15.1665 34.5866 15.1534 34.5796 15.1405 34.5724C15.1275 34.5652 15.1147 34.5578 15.102 34.5501C15.0894 34.5424 15.0768 34.5345 15.0644 34.5264C15.052 34.5183 15.0398 34.51 15.0277 34.5014C15.0156 34.4929 15.0036 34.4842 14.9918 34.4752C14.9404 34.4369 14.8913 34.3959 14.8446 34.3519C14.798 34.3079 14.754 34.2614 14.7128 34.2123C14.6716 34.1632 14.6334 34.1118 14.5981 34.0582C14.5629 34.0047 14.5309 33.9493 14.5022 33.8919C14.4711 33.8305 14.4433 33.7675 14.4187 33.7032C14.3941 33.6389 14.3729 33.5734 14.355 33.5069C14.3372 33.4404 14.3228 33.3731 14.3119 33.3051C14.301 33.237 14.2936 33.1686 14.2898 33.0999L14.2898 32.9739L14.297 26.8966L4.74905 20.4593C3.67255 19.732 3.78776 17.8671 4.89305 17.3127L5.00464 17.2622L38.0696 4.09246ZM36.6943 8.34075L9.07656 19.3432L16.4896 24.3404C16.5165 24.3591 16.5428 24.3785 16.5686 24.3987C16.5943 24.4189 16.6194 24.4399 16.6439 24.4616C16.6684 24.4834 16.6922 24.5059 16.7153 24.529C16.7384 24.5522 16.7608 24.5761 16.7825 24.6006C16.8042 24.6252 16.8251 24.6504 16.8452 24.6762C16.8653 24.702 16.8847 24.7284 16.9032 24.7554C16.9218 24.7824 16.9395 24.8099 16.9564 24.838C16.9732 24.8661 16.9892 24.8946 17.0044 24.9237C17.0371 24.9857 17.0666 25.0492 17.0926 25.1142C17.1186 25.1794 17.1412 25.2457 17.1602 25.3131C17.1793 25.3806 17.1948 25.4488 17.2066 25.5179C17.2185 25.587 17.2267 25.6565 17.2312 25.7265L17.2348 25.8705L17.2276 30.3133L21.1771 28.2935C21.1999 28.2818 21.223 28.2708 21.2464 28.2604C21.2698 28.2501 21.2935 28.2405 21.3175 28.2316C21.3415 28.2228 21.3658 28.2146 21.3903 28.2072C21.4148 28.1998 21.4395 28.1931 21.4644 28.1872C21.4894 28.1813 21.5144 28.1761 21.5396 28.1717C21.5648 28.1673 21.5902 28.1637 21.6156 28.1608C21.641 28.158 21.6666 28.1559 21.6921 28.1546C21.7177 28.1533 21.7433 28.1527 21.7689 28.1529C21.7945 28.1532 21.8201 28.1542 21.8456 28.156C21.8711 28.1577 21.8966 28.1603 21.922 28.1636C21.9473 28.167 21.9726 28.1711 21.9978 28.1759C22.0229 28.1808 22.0478 28.1864 22.0727 28.1928C22.0975 28.1991 22.1221 28.2063 22.1464 28.2141C22.1707 28.222 22.1949 28.2306 22.2187 28.2399C22.2426 28.2492 22.2661 28.2593 22.2893 28.27C22.3126 28.2807 22.3355 28.2922 22.358 28.3043L22.4804 28.3763L33.0112 35.4796L36.6943 8.34075ZM32.3128 13.4136C32.5504 13.752 32.6728 14.184 32.6512 14.6232C32.6505 14.6497 32.6492 14.6761 32.6473 14.7024C32.6455 14.7288 32.6431 14.7551 32.6402 14.7813C32.6373 14.8076 32.6338 14.8338 32.6298 14.8599C32.6258 14.886 32.6213 14.912 32.6162 14.9379C32.6112 14.9639 32.6056 14.9897 32.5995 15.0154C32.5933 15.0411 32.5867 15.0667 32.5795 15.0921C32.5723 15.1175 32.5646 15.1428 32.5564 15.1679C32.5482 15.193 32.5395 15.2179 32.5302 15.2427C32.521 15.2674 32.5112 15.292 32.501 15.3163C32.4907 15.3407 32.48 15.3648 32.4688 15.3887C32.4575 15.4126 32.4458 15.4363 32.4335 15.4597C32.4213 15.4831 32.4086 15.5063 32.3955 15.5292C32.3823 15.5521 32.3686 15.5747 32.3545 15.5971C32.3404 15.6194 32.3258 15.6414 32.3109 15.6632C32.2958 15.6849 32.2804 15.7063 32.2645 15.7274C32.2486 15.7486 32.2323 15.7693 32.2156 15.7897L32.1255 15.8869L23.3085 24.6644C23.2917 24.6817 23.2745 24.6984 23.2569 24.7147C23.2392 24.731 23.2211 24.7468 23.2026 24.7621C23.1841 24.7775 23.1651 24.7922 23.1458 24.8065C23.1265 24.8208 23.1068 24.8345 23.0867 24.8477C23.0666 24.8609 23.0462 24.8735 23.0254 24.8856C23.0046 24.8977 22.9836 24.9092 22.9622 24.9201C22.9408 24.9311 22.9191 24.9414 22.8971 24.9511C22.8751 24.9609 22.8529 24.97 22.8304 24.9785C22.808 24.987 22.7853 24.995 22.7624 25.0022C22.7395 25.0095 22.7164 25.0162 22.6932 25.0222C22.6699 25.0282 22.6465 25.0336 22.6229 25.0383C22.5994 25.0431 22.5757 25.0471 22.5519 25.0506C22.5281 25.054 22.5043 25.0568 22.4803 25.0589C22.4564 25.0611 22.4324 25.0625 22.4084 25.0634C22.3844 25.0642 22.3604 25.0644 22.3363 25.0639C22.3123 25.0634 22.2883 25.0622 22.2644 25.0604C22.2402 25.0577 22.216 25.0544 22.1919 25.0504C22.1679 25.0464 22.144 25.0418 22.1202 25.0366C22.0963 25.0313 22.0727 25.0254 22.0492 25.0189C22.0257 25.0125 22.0023 25.0054 21.9792 24.9977C21.956 24.99 21.9331 24.9817 21.9104 24.9727C21.8877 24.9638 21.8653 24.9543 21.8431 24.9442C21.8209 24.9341 21.799 24.9234 21.7774 24.9122C21.7557 24.901 21.7344 24.8891 21.7134 24.8768C21.6923 24.8644 21.6717 24.8515 21.6513 24.838C21.631 24.8246 21.611 24.8107 21.5914 24.7962C21.5718 24.7816 21.5526 24.7667 21.5338 24.7511C21.5149 24.7356 21.4965 24.7196 21.4786 24.7032C21.4606 24.6867 21.443 24.6697 21.426 24.6524C21.4089 24.635 21.3922 24.6171 21.3761 24.5989C21.3599 24.5806 21.3443 24.5619 21.3291 24.5428C21.3139 24.5238 21.2993 24.5043 21.2851 24.4844C21.269 24.4625 21.2534 24.4402 21.2382 24.4177C21.223 24.3951 21.2083 24.3722 21.194 24.349C21.1798 24.3259 21.166 24.3024 21.1527 24.2786C21.1394 24.2548 21.1267 24.2308 21.1144 24.2065C21.1021 24.1822 21.0904 24.1577 21.0791 24.133C21.0678 24.1082 21.0571 24.0832 21.0469 24.0579C21.0367 24.0328 21.027 24.0074 21.0178 23.9817C21.0086 23.9561 21 23.9303 20.9919 23.9043C20.9838 23.8783 20.9762 23.8522 20.9692 23.8259C20.9622 23.7996 20.9557 23.7732 20.9498 23.7466C20.9439 23.72 20.9385 23.6934 20.9337 23.6666C20.9289 23.6398 20.9246 23.613 20.9209 23.586C20.9172 23.559 20.9141 23.532 20.9115 23.5049C20.909 23.4778 20.9069 23.4507 20.9054 23.4235C20.904 23.3963 20.9031 23.3692 20.9028 23.3419C20.9025 23.3148 20.9027 23.2875 20.9035 23.2603C20.9038 23.2333 20.9046 23.2062 20.906 23.1792C20.9074 23.1522 20.9094 23.1252 20.9119 23.0983C20.9145 23.0714 20.9176 23.0445 20.9212 23.0176C20.9249 22.9908 20.9291 22.9641 20.9339 22.9375C20.9387 22.9109 20.9441 22.8843 20.95 22.8579C20.9559 22.8315 20.9623 22.8053 20.9693 22.7791C20.9763 22.753 20.9839 22.727 20.992 22.7012C21.0001 22.6754 21.0087 22.6497 21.0179 22.6243C21.027 22.5988 21.0367 22.5735 21.047 22.5485C21.0573 22.5235 21.068 22.4987 21.0793 22.474C21.0905 22.4495 21.1023 22.4251 21.1146 22.401C21.1269 22.3769 21.1397 22.3531 21.153 22.3295C21.1663 22.3059 21.1801 22.2826 21.1944 22.2596C21.2087 22.2367 21.2234 22.214 21.2386 22.1916C21.2539 22.1692 21.2696 22.1472 21.2857 22.1255C21.3019 22.1038 21.3185 22.0824 21.3355 22.0614L21.4291 21.9642L30.2462 13.1903C30.2633 13.1725 30.2808 13.1552 30.2989 13.1383C30.3169 13.1215 30.3354 13.1052 30.3544 13.0894C30.3733 13.0736 30.3928 13.0583 30.4126 13.0436C30.4324 13.0289 30.4526 13.0148 30.4733 13.0012C30.4939 12.9876 30.5149 12.9746 30.5362 12.9622C30.5575 12.9499 30.5792 12.9381 30.6013 12.9269C30.6233 12.9158 30.6456 12.9052 30.6682 12.8953C30.6908 12.8855 30.7137 12.8762 30.7368 12.8675C30.76 12.8589 30.7833 12.851 30.8069 12.8437C30.8305 12.8364 30.8542 12.8298 30.8782 12.8238C30.9022 12.8178 30.9263 12.8125 30.9505 12.8079C30.9748 12.8034 30.9991 12.7994 31.0236 12.7962C31.0481 12.793 31.0727 12.7904 31.0973 12.7886C31.1219 12.7867 31.1465 12.7856 31.1712 12.7851C31.1959 12.7847 31.2205 12.7849 31.2452 12.7858C31.2699 12.7868 31.2945 12.7884 31.3191 12.7907C31.3441 12.7941 31.3689 12.798 31.3937 12.8027C31.4185 12.8074 31.443 12.8127 31.4676 12.8187C31.492 12.8247 31.5163 12.8313 31.5405 12.8385C31.5646 12.8458 31.5885 12.8537 31.6122 12.8622C31.6359 12.8708 31.6594 12.88 31.6826 12.8898C31.7058 12.8996 31.7287 12.91 31.7514 12.9211C31.774 12.9321 31.7964 12.9437 31.8184 12.9559C31.8404 12.9681 31.8621 12.981 31.8835 12.9943C31.9048 13.0077 31.9258 13.0216 31.9464 13.0362C31.967 13.0507 31.9872 13.0657 32.007 13.0813C32.0268 13.0969 32.0462 13.113 32.0652 13.1296C32.0841 13.1462 32.1026 13.1633 32.1206 13.1809C32.1386 13.1986 32.1562 13.2166 32.1732 13.2351C32.1903 13.2537 32.2068 13.2727 32.2229 13.2921C32.2389 13.3115 32.2545 13.3314 32.2694 13.3516C32.2844 13.3719 32.2989 13.3925 32.3128 13.4136Z" fill="#383838" ></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="44" height="44" viewBox="0 0 44 44" fill="none"><path d="M38.0696 4.09246C39.1137 3.67482 40.1578 4.73329 39.9849 6.03661L35.5746 38.5255C35.5657 38.5936 35.5533 38.6611 35.5372 38.7279C35.5212 38.7947 35.5017 38.8605 35.4787 38.9252C35.4557 38.99 35.4293 39.0534 35.3997 39.1153C35.3699 39.1772 35.337 39.2374 35.301 39.2959C35.2844 39.3233 35.267 39.35 35.2487 39.3762C35.2305 39.4025 35.2114 39.4281 35.1917 39.4531C35.1718 39.4782 35.1512 39.5026 35.1299 39.5264C35.1086 39.5502 35.0866 39.5733 35.0639 39.5957C35.0411 39.6182 35.0177 39.6399 34.9937 39.6608C34.9696 39.6818 34.9449 39.7021 34.9196 39.7215C34.8942 39.741 34.8683 39.7597 34.8419 39.7776C34.8154 39.7955 34.7884 39.8126 34.7609 39.8288C34.748 39.8363 34.735 39.8436 34.7218 39.8506C34.7086 39.8576 34.6953 39.8644 34.6819 39.871C34.6685 39.8776 34.655 39.8839 34.6414 39.89C34.6277 39.896 34.614 39.9019 34.6001 39.9075C34.5863 39.9131 34.5723 39.9184 34.5583 39.9236C34.5442 39.9287 34.5301 39.9336 34.5159 39.9381C34.5017 39.9428 34.4874 39.9471 34.4731 39.9512C34.4587 39.9553 34.4443 39.9592 34.4298 39.9627C34.4153 39.9664 34.4007 39.9697 34.3861 39.9728C34.3715 39.9759 34.3569 39.9787 34.3421 39.9812C34.3274 39.9838 34.3127 39.9861 34.2979 39.9881C34.2831 39.9902 34.2683 39.9919 34.2534 39.9935C34.2386 39.995 34.2237 39.9963 34.2088 39.9972C34.1939 39.9982 34.1789 39.999 34.164 39.9994C34.1491 39.9999 34.1342 40 34.1192 40C34.1043 39.9999 34.0894 39.9996 34.0744 39.999C34.0595 39.9984 34.0446 39.9976 34.0297 39.9964C34.0148 39.9953 34 39.9939 33.9851 39.9923C33.9703 39.9906 33.9555 39.9887 33.9407 39.9865C33.9259 39.9844 33.9112 39.9819 33.8965 39.9792C33.8818 39.9766 33.8672 39.9736 33.8526 39.9704C33.838 39.9672 33.8234 39.9637 33.809 39.96C33.7945 39.9563 33.7801 39.9523 33.7658 39.9481C33.7515 39.9439 33.7373 39.9394 33.7231 39.9347C33.7089 39.9299 33.6948 39.9249 33.6808 39.9197C33.6669 39.9144 33.653 39.909 33.6392 39.9033C33.6254 39.8975 33.6117 39.8916 33.5981 39.8853C33.5845 39.8792 33.5711 39.8727 33.5577 39.866C33.5443 39.8593 33.5311 39.8524 33.518 39.8452C33.5049 39.8381 33.4919 39.8307 33.479 39.8231C33.4662 39.8155 33.4535 39.8077 33.4409 39.7996C33.4283 39.7916 33.4159 39.7833 33.4037 39.7748L21.6667 31.865L16.3347 34.5904C16.3216 34.5972 16.3083 34.6038 16.2949 34.6101C16.2816 34.6165 16.2681 34.6226 16.2545 34.6285C16.2408 34.6344 16.2272 34.6401 16.2134 34.6454C16.1996 34.6508 16.1857 34.656 16.1717 34.6609C16.1577 34.6658 16.1436 34.6705 16.1295 34.6749C16.1154 34.6793 16.1012 34.6835 16.0869 34.6873C16.0726 34.6913 16.0582 34.6949 16.0438 34.6983C16.0294 34.7017 16.0149 34.7049 16.0004 34.7078C15.9858 34.7107 15.9713 34.7133 15.9566 34.7157C15.942 34.7181 15.9274 34.7202 15.9127 34.722C15.898 34.7239 15.8832 34.7255 15.8685 34.7268C15.8537 34.7282 15.839 34.7293 15.8242 34.7301C15.8094 34.7309 15.7946 34.7315 15.7798 34.7318C15.765 34.7321 15.7501 34.7322 15.7353 34.7319C15.7205 34.7317 15.7057 34.7312 15.6909 34.7304C15.6761 34.7297 15.6614 34.7287 15.6466 34.7274C15.6318 34.7262 15.6171 34.7246 15.6024 34.7228C15.5876 34.7211 15.573 34.719 15.5584 34.7167C15.5437 34.7144 15.5292 34.7119 15.5146 34.709C15.5001 34.7062 15.4855 34.7032 15.4711 34.6998C15.4567 34.6965 15.4423 34.6929 15.428 34.689C15.4137 34.6852 15.3994 34.6811 15.3853 34.6768C15.3711 34.6725 15.357 34.6679 15.343 34.663C15.329 34.6582 15.3151 34.6531 15.3013 34.6478C15.2875 34.6425 15.2737 34.6369 15.2601 34.6311C15.2465 34.6253 15.2329 34.6193 15.2195 34.6129C15.2061 34.6067 15.1928 34.6001 15.1797 34.5934C15.1665 34.5866 15.1534 34.5796 15.1405 34.5724C15.1275 34.5652 15.1147 34.5578 15.102 34.5501C15.0894 34.5424 15.0768 34.5345 15.0644 34.5264C15.052 34.5183 15.0398 34.51 15.0277 34.5014C15.0156 34.4929 15.0036 34.4842 14.9918 34.4752C14.9404 34.4369 14.8913 34.3959 14.8446 34.3519C14.798 34.3079 14.754 34.2614 14.7128 34.2123C14.6716 34.1632 14.6334 34.1118 14.5981 34.0582C14.5629 34.0047 14.5309 33.9493 14.5022 33.8919C14.4711 33.8305 14.4433 33.7675 14.4187 33.7032C14.3941 33.6389 14.3729 33.5734 14.355 33.5069C14.3372 33.4404 14.3228 33.3731 14.3119 33.3051C14.301 33.237 14.2936 33.1686 14.2898 33.0999L14.2898 32.9739L14.297 26.8966L4.74905 20.4593C3.67255 19.732 3.78776 17.8671 4.89305 17.3127L5.00464 17.2622L38.0696 4.09246ZM36.6943 8.34075L9.07656 19.3432L16.4896 24.3404C16.5165 24.3591 16.5428 24.3785 16.5686 24.3987C16.5943 24.4189 16.6194 24.4399 16.6439 24.4616C16.6684 24.4834 16.6922 24.5059 16.7153 24.529C16.7384 24.5522 16.7608 24.5761 16.7825 24.6006C16.8042 24.6252 16.8251 24.6504 16.8452 24.6762C16.8653 24.702 16.8847 24.7284 16.9032 24.7554C16.9218 24.7824 16.9395 24.8099 16.9564 24.838C16.9732 24.8661 16.9892 24.8946 17.0044 24.9237C17.0371 24.9857 17.0666 25.0492 17.0926 25.1142C17.1186 25.1794 17.1412 25.2457 17.1602 25.3131C17.1793 25.3806 17.1948 25.4488 17.2066 25.5179C17.2185 25.587 17.2267 25.6565 17.2312 25.7265L17.2348 25.8705L17.2276 30.3133L21.1771 28.2935C21.1999 28.2818 21.223 28.2708 21.2464 28.2604C21.2698 28.2501 21.2935 28.2405 21.3175 28.2316C21.3415 28.2228 21.3658 28.2146 21.3903 28.2072C21.4148 28.1998 21.4395 28.1931 21.4644 28.1872C21.4894 28.1813 21.5144 28.1761 21.5396 28.1717C21.5648 28.1673 21.5902 28.1637 21.6156 28.1608C21.641 28.158 21.6666 28.1559 21.6921 28.1546C21.7177 28.1533 21.7433 28.1527 21.7689 28.1529C21.7945 28.1532 21.8201 28.1542 21.8456 28.156C21.8711 28.1577 21.8966 28.1603 21.922 28.1636C21.9473 28.167 21.9726 28.1711 21.9978 28.1759C22.0229 28.1808 22.0478 28.1864 22.0727 28.1928C22.0975 28.1991 22.1221 28.2063 22.1464 28.2141C22.1707 28.222 22.1949 28.2306 22.2187 28.2399C22.2426 28.2492 22.2661 28.2593 22.2893 28.27C22.3126 28.2807 22.3355 28.2922 22.358 28.3043L22.4804 28.3763L33.0112 35.4796L36.6943 8.34075ZM32.3128 13.4136C32.5504 13.752 32.6728 14.184 32.6512 14.6232C32.6505 14.6497 32.6492 14.6761 32.6473 14.7024C32.6455 14.7288 32.6431 14.7551 32.6402 14.7813C32.6373 14.8076 32.6338 14.8338 32.6298 14.8599C32.6258 14.886 32.6213 14.912 32.6162 14.9379C32.6112 14.9639 32.6056 14.9897 32.5995 15.0154C32.5933 15.0411 32.5867 15.0667 32.5795 15.0921C32.5723 15.1175 32.5646 15.1428 32.5564 15.1679C32.5482 15.193 32.5395 15.2179 32.5302 15.2427C32.521 15.2674 32.5112 15.292 32.501 15.3163C32.4907 15.3407 32.48 15.3648 32.4688 15.3887C32.4575 15.4126 32.4458 15.4363 32.4335 15.4597C32.4213 15.4831 32.4086 15.5063 32.3955 15.5292C32.3823 15.5521 32.3686 15.5747 32.3545 15.5971C32.3404 15.6194 32.3258 15.6414 32.3109 15.6632C32.2958 15.6849 32.2804 15.7063 32.2645 15.7274C32.2486 15.7486 32.2323 15.7693 32.2156 15.7897L32.1255 15.8869L23.3085 24.6644C23.2917 24.6817 23.2745 24.6984 23.2569 24.7147C23.2392 24.731 23.2211 24.7468 23.2026 24.7621C23.1841 24.7775 23.1651 24.7922 23.1458 24.8065C23.1265 24.8208 23.1068 24.8345 23.0867 24.8477C23.0666 24.8609 23.0462 24.8735 23.0254 24.8856C23.0046 24.8977 22.9836 24.9092 22.9622 24.9201C22.9408 24.9311 22.9191 24.9414 22.8971 24.9511C22.8751 24.9609 22.8529 24.97 22.8304 24.9785C22.808 24.987 22.7853 24.995 22.7624 25.0022C22.7395 25.0095 22.7164 25.0162 22.6932 25.0222C22.6699 25.0282 22.6465 25.0336 22.6229 25.0383C22.5994 25.0431 22.5757 25.0471 22.5519 25.0506C22.5281 25.054 22.5043 25.0568 22.4803 25.0589C22.4564 25.0611 22.4324 25.0625 22.4084 25.0634C22.3844 25.0642 22.3604 25.0644 22.3363 25.0639C22.3123 25.0634 22.2883 25.0622 22.2644 25.0604C22.2402 25.0577 22.216 25.0544 22.1919 25.0504C22.1679 25.0464 22.144 25.0418 22.1202 25.0366C22.0963 25.0313 22.0727 25.0254 22.0492 25.0189C22.0257 25.0125 22.0023 25.0054 21.9792 24.9977C21.956 24.99 21.9331 24.9817 21.9104 24.9727C21.8877 24.9638 21.8653 24.9543 21.8431 24.9442C21.8209 24.9341 21.799 24.9234 21.7774 24.9122C21.7557 24.901 21.7344 24.8891 21.7134 24.8768C21.6923 24.8644 21.6717 24.8515 21.6513 24.838C21.631 24.8246 21.611 24.8107 21.5914 24.7962C21.5718 24.7816 21.5526 24.7667 21.5338 24.7511C21.5149 24.7356 21.4965 24.7196 21.4786 24.7032C21.4606 24.6867 21.443 24.6697 21.426 24.6524C21.4089 24.635 21.3922 24.6171 21.3761 24.5989C21.3599 24.5806 21.3443 24.5619 21.3291 24.5428C21.3139 24.5238 21.2993 24.5043 21.2851 24.4844C21.269 24.4625 21.2534 24.4402 21.2382 24.4177C21.223 24.3951 21.2083 24.3722 21.194 24.349C21.1798 24.3259 21.166 24.3024 21.1527 24.2786C21.1394 24.2548 21.1267 24.2308 21.1144 24.2065C21.1021 24.1822 21.0904 24.1577 21.0791 24.133C21.0678 24.1082 21.0571 24.0832 21.0469 24.0579C21.0367 24.0328 21.027 24.0074 21.0178 23.9817C21.0086 23.9561 21 23.9303 20.9919 23.9043C20.9838 23.8783 20.9762 23.8522 20.9692 23.8259C20.9622 23.7996 20.9557 23.7732 20.9498 23.7466C20.9439 23.72 20.9385 23.6934 20.9337 23.6666C20.9289 23.6398 20.9246 23.613 20.9209 23.586C20.9172 23.559 20.9141 23.532 20.9115 23.5049C20.909 23.4778 20.9069 23.4507 20.9054 23.4235C20.904 23.3963 20.9031 23.3692 20.9028 23.3419C20.9025 23.3148 20.9027 23.2875 20.9035 23.2603C20.9038 23.2333 20.9046 23.2062 20.906 23.1792C20.9074 23.1522 20.9094 23.1252 20.9119 23.0983C20.9145 23.0714 20.9176 23.0445 20.9212 23.0176C20.9249 22.9908 20.9291 22.9641 20.9339 22.9375C20.9387 22.9109 20.9441 22.8843 20.95 22.8579C20.9559 22.8315 20.9623 22.8053 20.9693 22.7791C20.9763 22.753 20.9839 22.727 20.992 22.7012C21.0001 22.6754 21.0087 22.6497 21.0179 22.6243C21.027 22.5988 21.0367 22.5735 21.047 22.5485C21.0573 22.5235 21.068 22.4987 21.0793 22.474C21.0905 22.4495 21.1023 22.4251 21.1146 22.401C21.1269 22.3769 21.1397 22.3531 21.153 22.3295C21.1663 22.3059 21.1801 22.2826 21.1944 22.2596C21.2087 22.2367 21.2234 22.214 21.2386 22.1916C21.2539 22.1692 21.2696 22.1472 21.2857 22.1255C21.3019 22.1038 21.3185 22.0824 21.3355 22.0614L21.4291 21.9642L30.2462 13.1903C30.2633 13.1725 30.2808 13.1552 30.2989 13.1383C30.3169 13.1215 30.3354 13.1052 30.3544 13.0894C30.3733 13.0736 30.3928 13.0583 30.4126 13.0436C30.4324 13.0289 30.4526 13.0148 30.4733 13.0012C30.4939 12.9876 30.5149 12.9746 30.5362 12.9622C30.5575 12.9499 30.5792 12.9381 30.6013 12.9269C30.6233 12.9158 30.6456 12.9052 30.6682 12.8953C30.6908 12.8855 30.7137 12.8762 30.7368 12.8675C30.76 12.8589 30.7833 12.851 30.8069 12.8437C30.8305 12.8364 30.8542 12.8298 30.8782 12.8238C30.9022 12.8178 30.9263 12.8125 30.9505 12.8079C30.9748 12.8034 30.9991 12.7994 31.0236 12.7962C31.0481 12.793 31.0727 12.7904 31.0973 12.7886C31.1219 12.7867 31.1465 12.7856 31.1712 12.7851C31.1959 12.7847 31.2205 12.7849 31.2452 12.7858C31.2699 12.7868 31.2945 12.7884 31.3191 12.7907C31.3441 12.7941 31.3689 12.798 31.3937 12.8027C31.4185 12.8074 31.443 12.8127 31.4676 12.8187C31.492 12.8247 31.5163 12.8313 31.5405 12.8385C31.5646 12.8458 31.5885 12.8537 31.6122 12.8622C31.6359 12.8708 31.6594 12.88 31.6826 12.8898C31.7058 12.8996 31.7287 12.91 31.7514 12.9211C31.774 12.9321 31.7964 12.9437 31.8184 12.9559C31.8404 12.9681 31.8621 12.981 31.8835 12.9943C31.9048 13.0077 31.9258 13.0216 31.9464 13.0362C31.967 13.0507 31.9872 13.0657 32.007 13.0813C32.0268 13.0969 32.0462 13.113 32.0652 13.1296C32.0841 13.1462 32.1026 13.1633 32.1206 13.1809C32.1386 13.1986 32.1562 13.2166 32.1732 13.2351C32.1903 13.2537 32.2068 13.2727 32.2229 13.2921C32.2389 13.3115 32.2545 13.3314 32.2694 13.3516C32.2844 13.3719 32.2989 13.3925 32.3128 13.4136Z" fill="#383838" ></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="44" height="44" viewBox="0 0 44 44" fill="none"><path d="M38.0696 4.09246C39.1137 3.67482 40.1578 4.73329 39.9849 6.03661L35.5746 38.5255C35.5657 38.5936 35.5533 38.6611 35.5372 38.7279C35.5212 38.7947 35.5017 38.8605 35.4787 38.9252C35.4557 38.99 35.4293 39.0534 35.3997 39.1153C35.3699 39.1772 35.337 39.2374 35.301 39.2959C35.2844 39.3233 35.267 39.35 35.2487 39.3762C35.2305 39.4025 35.2114 39.4281 35.1917 39.4531C35.1718 39.4782 35.1512 39.5026 35.1299 39.5264C35.1086 39.5502 35.0866 39.5733 35.0639 39.5957C35.0411 39.6182 35.0177 39.6399 34.9937 39.6608C34.9696 39.6818 34.9449 39.7021 34.9196 39.7215C34.8942 39.741 34.8683 39.7597 34.8419 39.7776C34.8154 39.7955 34.7884 39.8126 34.7609 39.8288C34.748 39.8363 34.735 39.8436 34.7218 39.8506C34.7086 39.8576 34.6953 39.8644 34.6819 39.871C34.6685 39.8776 34.655 39.8839 34.6414 39.89C34.6277 39.896 34.614 39.9019 34.6001 39.9075C34.5863 39.9131 34.5723 39.9184 34.5583 39.9236C34.5442 39.9287 34.5301 39.9336 34.5159 39.9381C34.5017 39.9428 34.4874 39.9471 34.4731 39.9512C34.4587 39.9553 34.4443 39.9592 34.4298 39.9627C34.4153 39.9664 34.4007 39.9697 34.3861 39.9728C34.3715 39.9759 34.3569 39.9787 34.3421 39.9812C34.3274 39.9838 34.3127 39.9861 34.2979 39.9881C34.2831 39.9902 34.2683 39.9919 34.2534 39.9935C34.2386 39.995 34.2237 39.9963 34.2088 39.9972C34.1939 39.9982 34.1789 39.999 34.164 39.9994C34.1491 39.9999 34.1342 40 34.1192 40C34.1043 39.9999 34.0894 39.9996 34.0744 39.999C34.0595 39.9984 34.0446 39.9976 34.0297 39.9964C34.0148 39.9953 34 39.9939 33.9851 39.9923C33.9703 39.9906 33.9555 39.9887 33.9407 39.9865C33.9259 39.9844 33.9112 39.9819 33.8965 39.9792C33.8818 39.9766 33.8672 39.9736 33.8526 39.9704C33.838 39.9672 33.8234 39.9637 33.809 39.96C33.7945 39.9563 33.7801 39.9523 33.7658 39.9481C33.7515 39.9439 33.7373 39.9394 33.7231 39.9347C33.7089 39.9299 33.6948 39.9249 33.6808 39.9197C33.6669 39.9144 33.653 39.909 33.6392 39.9033C33.6254 39.8975 33.6117 39.8916 33.5981 39.8853C33.5845 39.8792 33.5711 39.8727 33.5577 39.866C33.5443 39.8593 33.5311 39.8524 33.518 39.8452C33.5049 39.8381 33.4919 39.8307 33.479 39.8231C33.4662 39.8155 33.4535 39.8077 33.4409 39.7996C33.4283 39.7916 33.4159 39.7833 33.4037 39.7748L21.6667 31.865L16.3347 34.5904C16.3216 34.5972 16.3083 34.6038 16.2949 34.6101C16.2816 34.6165 16.2681 34.6226 16.2545 34.6285C16.2408 34.6344 16.2272 34.6401 16.2134 34.6454C16.1996 34.6508 16.1857 34.656 16.1717 34.6609C16.1577 34.6658 16.1436 34.6705 16.1295 34.6749C16.1154 34.6793 16.1012 34.6835 16.0869 34.6873C16.0726 34.6913 16.0582 34.6949 16.0438 34.6983C16.0294 34.7017 16.0149 34.7049 16.0004 34.7078C15.9858 34.7107 15.9713 34.7133 15.9566 34.7157C15.942 34.7181 15.9274 34.7202 15.9127 34.722C15.898 34.7239 15.8832 34.7255 15.8685 34.7268C15.8537 34.7282 15.839 34.7293 15.8242 34.7301C15.8094 34.7309 15.7946 34.7315 15.7798 34.7318C15.765 34.7321 15.7501 34.7322 15.7353 34.7319C15.7205 34.7317 15.7057 34.7312 15.6909 34.7304C15.6761 34.7297 15.6614 34.7287 15.6466 34.7274C15.6318 34.7262 15.6171 34.7246 15.6024 34.7228C15.5876 34.7211 15.573 34.719 15.5584 34.7167C15.5437 34.7144 15.5292 34.7119 15.5146 34.709C15.5001 34.7062 15.4855 34.7032 15.4711 34.6998C15.4567 34.6965 15.4423 34.6929 15.428 34.689C15.4137 34.6852 15.3994 34.6811 15.3853 34.6768C15.3711 34.6725 15.357 34.6679 15.343 34.663C15.329 34.6582 15.3151 34.6531 15.3013 34.6478C15.2875 34.6425 15.2737 34.6369 15.2601 34.6311C15.2465 34.6253 15.2329 34.6193 15.2195 34.6129C15.2061 34.6067 15.1928 34.6001 15.1797 34.5934C15.1665 34.5866 15.1534 34.5796 15.1405 34.5724C15.1275 34.5652 15.1147 34.5578 15.102 34.5501C15.0894 34.5424 15.0768 34.5345 15.0644 34.5264C15.052 34.5183 15.0398 34.51 15.0277 34.5014C15.0156 34.4929 15.0036 34.4842 14.9918 34.4752C14.9404 34.4369 14.8913 34.3959 14.8446 34.3519C14.798 34.3079 14.754 34.2614 14.7128 34.2123C14.6716 34.1632 14.6334 34.1118 14.5981 34.0582C14.5629 34.0047 14.5309 33.9493 14.5022 33.8919C14.4711 33.8305 14.4433 33.7675 14.4187 33.7032C14.3941 33.6389 14.3729 33.5734 14.355 33.5069C14.3372 33.4404 14.3228 33.3731 14.3119 33.3051C14.301 33.237 14.2936 33.1686 14.2898 33.0999L14.2898 32.9739L14.297 26.8966L4.74905 20.4593C3.67255 19.732 3.78776 17.8671 4.89305 17.3127L5.00464 17.2622L38.0696 4.09246ZM36.6943 8.34075L9.07656 19.3432L16.4896 24.3404C16.5165 24.3591 16.5428 24.3785 16.5686 24.3987C16.5943 24.4189 16.6194 24.4399 16.6439 24.4616C16.6684 24.4834 16.6922 24.5059 16.7153 24.529C16.7384 24.5522 16.7608 24.5761 16.7825 24.6006C16.8042 24.6252 16.8251 24.6504 16.8452 24.6762C16.8653 24.702 16.8847 24.7284 16.9032 24.7554C16.9218 24.7824 16.9395 24.8099 16.9564 24.838C16.9732 24.8661 16.9892 24.8946 17.0044 24.9237C17.0371 24.9857 17.0666 25.0492 17.0926 25.1142C17.1186 25.1794 17.1412 25.2457 17.1602 25.3131C17.1793 25.3806 17.1948 25.4488 17.2066 25.5179C17.2185 25.587 17.2267 25.6565 17.2312 25.7265L17.2348 25.8705L17.2276 30.3133L21.1771 28.2935C21.1999 28.2818 21.223 28.2708 21.2464 28.2604C21.2698 28.2501 21.2935 28.2405 21.3175 28.2316C21.3415 28.2228 21.3658 28.2146 21.3903 28.2072C21.4148 28.1998 21.4395 28.1931 21.4644 28.1872C21.4894 28.1813 21.5144 28.1761 21.5396 28.1717C21.5648 28.1673 21.5902 28.1637 21.6156 28.1608C21.641 28.158 21.6666 28.1559 21.6921 28.1546C21.7177 28.1533 21.7433 28.1527 21.7689 28.1529C21.7945 28.1532 21.8201 28.1542 21.8456 28.156C21.8711 28.1577 21.8966 28.1603 21.922 28.1636C21.9473 28.167 21.9726 28.1711 21.9978 28.1759C22.0229 28.1808 22.0478 28.1864 22.0727 28.1928C22.0975 28.1991 22.1221 28.2063 22.1464 28.2141C22.1707 28.222 22.1949 28.2306 22.2187 28.2399C22.2426 28.2492 22.2661 28.2593 22.2893 28.27C22.3126 28.2807 22.3355 28.2922 22.358 28.3043L22.4804 28.3763L33.0112 35.4796L36.6943 8.34075ZM32.3128 13.4136C32.5504 13.752 32.6728 14.184 32.6512 14.6232C32.6505 14.6497 32.6492 14.6761 32.6473 14.7024C32.6455 14.7288 32.6431 14.7551 32.6402 14.7813C32.6373 14.8076 32.6338 14.8338 32.6298 14.8599C32.6258 14.886 32.6213 14.912 32.6162 14.9379C32.6112 14.9639 32.6056 14.9897 32.5995 15.0154C32.5933 15.0411 32.5867 15.0667 32.5795 15.0921C32.5723 15.1175 32.5646 15.1428 32.5564 15.1679C32.5482 15.193 32.5395 15.2179 32.5302 15.2427C32.521 15.2674 32.5112 15.292 32.501 15.3163C32.4907 15.3407 32.48 15.3648 32.4688 15.3887C32.4575 15.4126 32.4458 15.4363 32.4335 15.4597C32.4213 15.4831 32.4086 15.5063 32.3955 15.5292C32.3823 15.5521 32.3686 15.5747 32.3545 15.5971C32.3404 15.6194 32.3258 15.6414 32.3109 15.6632C32.2958 15.6849 32.2804 15.7063 32.2645 15.7274C32.2486 15.7486 32.2323 15.7693 32.2156 15.7897L32.1255 15.8869L23.3085 24.6644C23.2917 24.6817 23.2745 24.6984 23.2569 24.7147C23.2392 24.731 23.2211 24.7468 23.2026 24.7621C23.1841 24.7775 23.1651 24.7922 23.1458 24.8065C23.1265 24.8208 23.1068 24.8345 23.0867 24.8477C23.0666 24.8609 23.0462 24.8735 23.0254 24.8856C23.0046 24.8977 22.9836 24.9092 22.9622 24.9201C22.9408 24.9311 22.9191 24.9414 22.8971 24.9511C22.8751 24.9609 22.8529 24.97 22.8304 24.9785C22.808 24.987 22.7853 24.995 22.7624 25.0022C22.7395 25.0095 22.7164 25.0162 22.6932 25.0222C22.6699 25.0282 22.6465 25.0336 22.6229 25.0383C22.5994 25.0431 22.5757 25.0471 22.5519 25.0506C22.5281 25.054 22.5043 25.0568 22.4803 25.0589C22.4564 25.0611 22.4324 25.0625 22.4084 25.0634C22.3844 25.0642 22.3604 25.0644 22.3363 25.0639C22.3123 25.0634 22.2883 25.0622 22.2644 25.0604C22.2402 25.0577 22.216 25.0544 22.1919 25.0504C22.1679 25.0464 22.144 25.0418 22.1202 25.0366C22.0963 25.0313 22.0727 25.0254 22.0492 25.0189C22.0257 25.0125 22.0023 25.0054 21.9792 24.9977C21.956 24.99 21.9331 24.9817 21.9104 24.9727C21.8877 24.9638 21.8653 24.9543 21.8431 24.9442C21.8209 24.9341 21.799 24.9234 21.7774 24.9122C21.7557 24.901 21.7344 24.8891 21.7134 24.8768C21.6923 24.8644 21.6717 24.8515 21.6513 24.838C21.631 24.8246 21.611 24.8107 21.5914 24.7962C21.5718 24.7816 21.5526 24.7667 21.5338 24.7511C21.5149 24.7356 21.4965 24.7196 21.4786 24.7032C21.4606 24.6867 21.443 24.6697 21.426 24.6524C21.4089 24.635 21.3922 24.6171 21.3761 24.5989C21.3599 24.5806 21.3443 24.5619 21.3291 24.5428C21.3139 24.5238 21.2993 24.5043 21.2851 24.4844C21.269 24.4625 21.2534 24.4402 21.2382 24.4177C21.223 24.3951 21.2083 24.3722 21.194 24.349C21.1798 24.3259 21.166 24.3024 21.1527 24.2786C21.1394 24.2548 21.1267 24.2308 21.1144 24.2065C21.1021 24.1822 21.0904 24.1577 21.0791 24.133C21.0678 24.1082 21.0571 24.0832 21.0469 24.0579C21.0367 24.0328 21.027 24.0074 21.0178 23.9817C21.0086 23.9561 21 23.9303 20.9919 23.9043C20.9838 23.8783 20.9762 23.8522 20.9692 23.8259C20.9622 23.7996 20.9557 23.7732 20.9498 23.7466C20.9439 23.72 20.9385 23.6934 20.9337 23.6666C20.9289 23.6398 20.9246 23.613 20.9209 23.586C20.9172 23.559 20.9141 23.532 20.9115 23.5049C20.909 23.4778 20.9069 23.4507 20.9054 23.4235C20.904 23.3963 20.9031 23.3692 20.9028 23.3419C20.9025 23.3148 20.9027 23.2875 20.9035 23.2603C20.9038 23.2333 20.9046 23.2062 20.906 23.1792C20.9074 23.1522 20.9094 23.1252 20.9119 23.0983C20.9145 23.0714 20.9176 23.0445 20.9212 23.0176C20.9249 22.9908 20.9291 22.9641 20.9339 22.9375C20.9387 22.9109 20.9441 22.8843 20.95 22.8579C20.9559 22.8315 20.9623 22.8053 20.9693 22.7791C20.9763 22.753 20.9839 22.727 20.992 22.7012C21.0001 22.6754 21.0087 22.6497 21.0179 22.6243C21.027 22.5988 21.0367 22.5735 21.047 22.5485C21.0573 22.5235 21.068 22.4987 21.0793 22.474C21.0905 22.4495 21.1023 22.4251 21.1146 22.401C21.1269 22.3769 21.1397 22.3531 21.153 22.3295C21.1663 22.3059 21.1801 22.2826 21.1944 22.2596C21.2087 22.2367 21.2234 22.214 21.2386 22.1916C21.2539 22.1692 21.2696 22.1472 21.2857 22.1255C21.3019 22.1038 21.3185 22.0824 21.3355 22.0614L21.4291 21.9642L30.2462 13.1903C30.2633 13.1725 30.2808 13.1552 30.2989 13.1383C30.3169 13.1215 30.3354 13.1052 30.3544 13.0894C30.3733 13.0736 30.3928 13.0583 30.4126 13.0436C30.4324 13.0289 30.4526 13.0148 30.4733 13.0012C30.4939 12.9876 30.5149 12.9746 30.5362 12.9622C30.5575 12.9499 30.5792 12.9381 30.6013 12.9269C30.6233 12.9158 30.6456 12.9052 30.6682 12.8953C30.6908 12.8855 30.7137 12.8762 30.7368 12.8675C30.76 12.8589 30.7833 12.851 30.8069 12.8437C30.8305 12.8364 30.8542 12.8298 30.8782 12.8238C30.9022 12.8178 30.9263 12.8125 30.9505 12.8079C30.9748 12.8034 30.9991 12.7994 31.0236 12.7962C31.0481 12.793 31.0727 12.7904 31.0973 12.7886C31.1219 12.7867 31.1465 12.7856 31.1712 12.7851C31.1959 12.7847 31.2205 12.7849 31.2452 12.7858C31.2699 12.7868 31.2945 12.7884 31.3191 12.7907C31.3441 12.7941 31.3689 12.798 31.3937 12.8027C31.4185 12.8074 31.443 12.8127 31.4676 12.8187C31.492 12.8247 31.5163 12.8313 31.5405 12.8385C31.5646 12.8458 31.5885 12.8537 31.6122 12.8622C31.6359 12.8708 31.6594 12.88 31.6826 12.8898C31.7058 12.8996 31.7287 12.91 31.7514 12.9211C31.774 12.9321 31.7964 12.9437 31.8184 12.9559C31.8404 12.9681 31.8621 12.981 31.8835 12.9943C31.9048 13.0077 31.9258 13.0216 31.9464 13.0362C31.967 13.0507 31.9872 13.0657 32.007 13.0813C32.0268 13.0969 32.0462 13.113 32.0652 13.1296C32.0841 13.1462 32.1026 13.1633 32.1206 13.1809C32.1386 13.1986 32.1562 13.2166 32.1732 13.2351C32.1903 13.2537 32.2068 13.2727 32.2229 13.2921C32.2389 13.3115 32.2545 13.3314 32.2694 13.3516C32.2844 13.3719 32.2989 13.3925 32.3128 13.4136Z" fill="#383838" ></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref } from 'vue'
|
|
3
|
+
|
|
4
|
+
defineProps<{ msg: string }>()
|
|
5
|
+
|
|
6
|
+
const count = ref(0)
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<h1>{{ msg }}</h1>
|
|
11
|
+
|
|
12
|
+
<div class="card">
|
|
13
|
+
<button type="button" @click="count++">count is {{ count }}</button>
|
|
14
|
+
<p>
|
|
15
|
+
Edit
|
|
16
|
+
<code>components/HelloWorld.vue</code> to test HMR
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<p>
|
|
21
|
+
Check out
|
|
22
|
+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
|
23
|
+
>create-vue</a
|
|
24
|
+
>, the official Vue + Vite starter
|
|
25
|
+
</p>
|
|
26
|
+
<p>
|
|
27
|
+
Learn more about IDE Support for Vue in the
|
|
28
|
+
<a
|
|
29
|
+
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
|
|
30
|
+
target="_blank"
|
|
31
|
+
>Vue Docs Scaling up Guide</a
|
|
32
|
+
>.
|
|
33
|
+
</p>
|
|
34
|
+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<style scoped>
|
|
38
|
+
.read-the-docs {
|
|
39
|
+
color: #888;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
+
line-height: 1.5;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
|
|
6
|
+
color-scheme: light dark;
|
|
7
|
+
color: rgba(255, 255, 255, 0.87);
|
|
8
|
+
background-color: #242424;
|
|
9
|
+
|
|
10
|
+
font-synthesis: none;
|
|
11
|
+
text-rendering: optimizeLegibility;
|
|
12
|
+
-webkit-font-smoothing: antialiased;
|
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a {
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
color: #646cff;
|
|
19
|
+
text-decoration: inherit;
|
|
20
|
+
}
|
|
21
|
+
a:hover {
|
|
22
|
+
color: #535bf2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
body {
|
|
26
|
+
margin: 0;
|
|
27
|
+
display: flex;
|
|
28
|
+
place-items: center;
|
|
29
|
+
min-width: 320px;
|
|
30
|
+
min-height: 100vh;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
h1 {
|
|
34
|
+
font-size: 3.2em;
|
|
35
|
+
line-height: 1.1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
button {
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
border: 1px solid transparent;
|
|
41
|
+
padding: 0.6em 1.2em;
|
|
42
|
+
font-size: 1em;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
font-family: inherit;
|
|
45
|
+
background-color: #1a1a1a;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
transition: border-color 0.25s;
|
|
48
|
+
}
|
|
49
|
+
button:hover {
|
|
50
|
+
border-color: #646cff;
|
|
51
|
+
}
|
|
52
|
+
button:focus,
|
|
53
|
+
button:focus-visible {
|
|
54
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.card {
|
|
58
|
+
padding: 2em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#app {
|
|
62
|
+
max-width: 1280px;
|
|
63
|
+
margin: 0 auto;
|
|
64
|
+
padding: 2rem;
|
|
65
|
+
text-align: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (prefers-color-scheme: light) {
|
|
69
|
+
:root {
|
|
70
|
+
color: #213547;
|
|
71
|
+
background-color: #ffffff;
|
|
72
|
+
}
|
|
73
|
+
a:hover {
|
|
74
|
+
color: #747bff;
|
|
75
|
+
}
|
|
76
|
+
button {
|
|
77
|
+
background-color: #f9f9f9;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
+
"types": ["vite/client"],
|
|
6
|
+
|
|
7
|
+
/* Linting */
|
|
8
|
+
"strict": true,
|
|
9
|
+
"noUnusedLocals": true,
|
|
10
|
+
"noUnusedParameters": true,
|
|
11
|
+
"erasableSyntaxOnly": true,
|
|
12
|
+
"noFallthroughCasesInSwitch": true,
|
|
13
|
+
"noUncheckedSideEffectImports": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
+
"target": "ES2023",
|
|
5
|
+
"lib": ["ES2023"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"types": ["node"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
|
|
10
|
+
/* Bundler mode */
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"erasableSyntaxOnly": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true,
|
|
23
|
+
"noUncheckedSideEffectImports": true
|
|
24
|
+
},
|
|
25
|
+
"include": ["vite.config.ts"]
|
|
26
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "icon-to-font",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "一个将 SVG 图标转换为字体的命令行工具,支持生成多种字体格式和对应的 CSS 文件",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "vitest",
|
|
9
|
+
"test:e2e": "node e2e-test.js"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"itf": "./bin/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://gitee.com/childqes/icon-to-font.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://gitee.com/childqes/icon-to-font#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://gitee.com/childqes/icon-to-font/issues"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"icon",
|
|
24
|
+
"font",
|
|
25
|
+
"svg",
|
|
26
|
+
"webfont",
|
|
27
|
+
"cli",
|
|
28
|
+
"tool",
|
|
29
|
+
"converter"
|
|
30
|
+
],
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "qeschild",
|
|
33
|
+
"email": "17806751969@163.com"
|
|
34
|
+
},
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"packageManager": "pnpm@10.28.0",
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@vusion/webfonts-generator": "^0.8.0",
|
|
39
|
+
"commander": "^14.0.3",
|
|
40
|
+
"glob": "^13.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/vusion__webfonts-generator": "^0.8.6",
|
|
44
|
+
"tsx": "^4.21.0",
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"vitest": "^4.0.18"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false,
|
|
12
|
+
"outDir": "./dist",
|
|
13
|
+
"rootDir": "./",
|
|
14
|
+
"moduleDetection": "force"
|
|
15
|
+
},
|
|
16
|
+
"include": [
|
|
17
|
+
"bin/**/*",
|
|
18
|
+
"utils/**/*"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"dist"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 命令行参数解析模块
|
|
3
|
+
* @description 用于解析和处理命令行参数
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { Command } from 'commander';
|
|
7
|
+
import { resolve } from 'path';
|
|
8
|
+
import { dirname } from 'path';
|
|
9
|
+
import { fileURLToPath } from 'url';
|
|
10
|
+
import { detectProjectType, ProjectType } from './project-detector';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 命令行选项接口
|
|
14
|
+
*/
|
|
15
|
+
export interface CommandLineOptions {
|
|
16
|
+
/** SVG 图标目录 */
|
|
17
|
+
iconsDir: string;
|
|
18
|
+
/** 输出目录 */
|
|
19
|
+
distDir: string;
|
|
20
|
+
/** 字体名称 */
|
|
21
|
+
fontName: string;
|
|
22
|
+
/** 要生成的组件框架类型 */
|
|
23
|
+
outType: string;
|
|
24
|
+
/** 是否显示帮助信息 */
|
|
25
|
+
help?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 解析命令行参数
|
|
30
|
+
* @param options 解析选项
|
|
31
|
+
* @param options.testMode 是否在测试模式下运行(测试模式下不会调用 process.exit())
|
|
32
|
+
* @returns 命令行选项对象
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* // 正常使用
|
|
36
|
+
* const options = parseCommandLine();
|
|
37
|
+
* console.log(options.iconsDir); // 输出 SVG 图标目录
|
|
38
|
+
*
|
|
39
|
+
* // 测试模式使用
|
|
40
|
+
* const options = parseCommandLine({ testMode: true });
|
|
41
|
+
* console.log(options.iconsDir); // 输出 SVG 图标目录,不会退出进程
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export function parseCommandLine(options?: {
|
|
45
|
+
testMode?: boolean;
|
|
46
|
+
}): CommandLineOptions {
|
|
47
|
+
const testMode = options?.testMode || false;
|
|
48
|
+
|
|
49
|
+
// 检查是否有 --version 参数
|
|
50
|
+
if (process.argv.includes('--version') || process.argv.includes('-V')) {
|
|
51
|
+
console.log('1.0.0');
|
|
52
|
+
if (!testMode) {
|
|
53
|
+
process.exit(0);
|
|
54
|
+
}
|
|
55
|
+
// 在测试模式下,返回一个默认的选项对象
|
|
56
|
+
return {
|
|
57
|
+
iconsDir: '',
|
|
58
|
+
distDir: '',
|
|
59
|
+
fontName: 'ItfIconFont',
|
|
60
|
+
outType: 'vue'
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// 检查是否有 --help 或 -h 参数
|
|
65
|
+
if (process.argv.includes('--help') || process.argv.includes('-h')) {
|
|
66
|
+
// 创建临时的 Command 实例来输出帮助信息
|
|
67
|
+
const helpProgram = new Command();
|
|
68
|
+
helpProgram
|
|
69
|
+
.name('icon-to-font')
|
|
70
|
+
.description('将 SVG 图标转换为字体文件')
|
|
71
|
+
.version('1.0.0')
|
|
72
|
+
.option(
|
|
73
|
+
'--icons-dir <path>',
|
|
74
|
+
'指定 SVG 图标目录',
|
|
75
|
+
'static/itf (uniapp) 或 ./bin/ift-icons (other)',
|
|
76
|
+
)
|
|
77
|
+
.option('--dist-dir <path>', '指定输出目录', 'components (uniapp) 或 ./bin/itf-out (other)')
|
|
78
|
+
.option('--font-name <name>', '指定字体名称', 'ItfIconFont')
|
|
79
|
+
.option('--out-type <type>', '指定要生成的组件框架类型,支持:vue, uniapp, react', 'vue')
|
|
80
|
+
.option('--help', '显示帮助信息');
|
|
81
|
+
|
|
82
|
+
helpProgram.outputHelp();
|
|
83
|
+
if (!testMode) {
|
|
84
|
+
process.exit(0);
|
|
85
|
+
}
|
|
86
|
+
// 在测试模式下,返回一个默认的选项对象
|
|
87
|
+
return {
|
|
88
|
+
iconsDir: '',
|
|
89
|
+
distDir: '',
|
|
90
|
+
fontName: 'ItfIconFont',
|
|
91
|
+
outType: 'vue'
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 获取当前文件路径
|
|
96
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
97
|
+
const __dirname = dirname(__filename);
|
|
98
|
+
|
|
99
|
+
// 创建命令行解析器
|
|
100
|
+
const program = new Command();
|
|
101
|
+
|
|
102
|
+
// 解析 outType 参数,用于设置默认目录
|
|
103
|
+
let outType = 'vue';
|
|
104
|
+
const outTypeIndex = process.argv.indexOf('--out-type');
|
|
105
|
+
if (outTypeIndex !== -1 && outTypeIndex + 1 < process.argv.length) {
|
|
106
|
+
outType = process.argv[outTypeIndex + 1];
|
|
107
|
+
} else {
|
|
108
|
+
// 未指定 --out-type 参数时,自动检测项目类型
|
|
109
|
+
const projectType = detectProjectType(process.cwd());
|
|
110
|
+
switch (projectType) {
|
|
111
|
+
case ProjectType.UNIAPP:
|
|
112
|
+
outType = 'uniapp';
|
|
113
|
+
break;
|
|
114
|
+
case ProjectType.REACT:
|
|
115
|
+
outType = 'react';
|
|
116
|
+
break;
|
|
117
|
+
case ProjectType.VUE:
|
|
118
|
+
default:
|
|
119
|
+
outType = 'vue';
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// 根据 outType 设置默认目录
|
|
125
|
+
let defaultIconsDir = resolve(__dirname, '../bin/ift-icons');
|
|
126
|
+
let defaultDistDir = resolve(__dirname, '../bin/itf-out');
|
|
127
|
+
|
|
128
|
+
if (outType === 'uniapp') {
|
|
129
|
+
// uniapp 项目的默认目录
|
|
130
|
+
defaultIconsDir = 'static/itf';
|
|
131
|
+
defaultDistDir = 'components';
|
|
132
|
+
} else if (outType === 'vue' || outType === 'react') {
|
|
133
|
+
// Vue 和 React 项目的默认目录(适用于 Vite 项目)
|
|
134
|
+
defaultIconsDir = 'src/assets/itf';
|
|
135
|
+
defaultDistDir = 'src/components';
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
program
|
|
139
|
+
.name('icon-to-font')
|
|
140
|
+
.description('将 SVG 图标转换为字体文件')
|
|
141
|
+
.option(
|
|
142
|
+
'--icons-dir <path>',
|
|
143
|
+
'指定 SVG 图标目录',
|
|
144
|
+
defaultIconsDir,
|
|
145
|
+
)
|
|
146
|
+
.option('--dist-dir <path>', '指定输出目录', defaultDistDir)
|
|
147
|
+
.option('--font-name <name>', '指定字体名称', 'ItfIconFont')
|
|
148
|
+
.option('--out-type <type>', '指定要生成的组件框架类型,支持:vue, uniapp, react');
|
|
149
|
+
|
|
150
|
+
// 解析命令行参数
|
|
151
|
+
program.parse(process.argv);
|
|
152
|
+
const parsedOptions = program.opts() as CommandLineOptions;
|
|
153
|
+
|
|
154
|
+
return parsedOptions;
|
|
155
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 基础组件生成器抽象类
|
|
3
|
+
*/
|
|
4
|
+
import { ComponentGenerator } from './component-generator.interface';
|
|
5
|
+
|
|
6
|
+
export abstract class BaseComponentGenerator implements ComponentGenerator {
|
|
7
|
+
/**
|
|
8
|
+
* 生成图标名称联合类型字符串
|
|
9
|
+
* @param {string[]} iconNames - 图标名称数组
|
|
10
|
+
* @returns {string} 联合类型字符串
|
|
11
|
+
* @protected
|
|
12
|
+
*/
|
|
13
|
+
protected generateIconNameUnion(iconNames: string[]): string {
|
|
14
|
+
return iconNames.map((name) => `'${name}'`).join(' | ');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 生成组件内容
|
|
19
|
+
* @param {string} fontName - 字体名称
|
|
20
|
+
* @param {string[]} iconNames - 图标名称数组
|
|
21
|
+
* @returns {string} 组件内容
|
|
22
|
+
* @abstract
|
|
23
|
+
*/
|
|
24
|
+
abstract generate(fontName: string, iconNames: string[]): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件生成器工厂类
|
|
3
|
+
*/
|
|
4
|
+
import { ComponentGenerator } from './component-generator.interface';
|
|
5
|
+
import { VueComponentGenerator } from './vue-component-generator';
|
|
6
|
+
import { UniAppComponentGenerator } from './uni-app-component-generator';
|
|
7
|
+
import { ReactComponentGenerator } from './react-component-generator';
|
|
8
|
+
|
|
9
|
+
export class ComponentGeneratorFactory {
|
|
10
|
+
/**
|
|
11
|
+
* 创建组件生成器
|
|
12
|
+
* @param {string} type - 组件类型 ('vue', 'uniapp', 'react')
|
|
13
|
+
* @returns {ComponentGenerator} 组件生成器实例
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const vueGenerator = ComponentGeneratorFactory.create('vue');
|
|
17
|
+
* const reactGenerator = ComponentGeneratorFactory.create('react');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
static create(type: 'vue' | 'uniapp' | 'react'): ComponentGenerator {
|
|
21
|
+
switch (type) {
|
|
22
|
+
case 'vue':
|
|
23
|
+
return new VueComponentGenerator();
|
|
24
|
+
case 'uniapp':
|
|
25
|
+
return new UniAppComponentGenerator();
|
|
26
|
+
case 'react':
|
|
27
|
+
return new ReactComponentGenerator();
|
|
28
|
+
default:
|
|
29
|
+
throw new Error(`Unsupported component type: ${type}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件生成器模块导出文件
|
|
3
|
+
* @description 导出所有组件生成器相关的类和接口
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export * from './component-generator.interface';
|
|
7
|
+
export * from './base-component-generator.abstract';
|
|
8
|
+
export * from './vue-component-generator';
|
|
9
|
+
export * from './uni-app-component-generator';
|
|
10
|
+
export * from './react-component-generator';
|
|
11
|
+
export * from './component-generator-factory';
|