mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-30 00:48:52 +00:00
feat(ui): supported github star popup on ui (#13933)
* supported github star popup on ui * localization keys * changes as per figma design * file path change * icon change * icon change * support closing on ESC button
This commit is contained in:
parent
0209770e9a
commit
2f4d3fe9eb
@ -1,3 +1,3 @@
|
||||
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.81134 0.877748C6.609 0.913295 6.36017 1.05275 6.22619 1.20587C6.14689 1.29611 5.90353 1.76642 5.41134 2.76173C5.0258 3.5465 4.6922 4.20822 4.66759 4.23009C4.64025 4.25744 4.1508 4.33947 3.04611 4.5008C2.17384 4.62658 1.40822 4.74962 1.33986 4.7715C1.07189 4.86173 0.844938 5.09142 0.735563 5.384C0.689078 5.50704 0.680875 5.58361 0.689078 5.78322C0.705485 6.22892 0.686344 6.20431 2.04806 7.53048C2.69611 8.16212 3.22658 8.69533 3.22658 8.7172C3.22658 8.73908 3.109 9.44181 2.96408 10.2785C2.68791 11.8672 2.66603 12.0805 2.74533 12.3047C2.84923 12.5945 3.10353 12.8488 3.38791 12.9473C3.54923 13.002 3.91564 12.9992 4.07697 12.9391C4.14806 12.9145 4.83166 12.5617 5.60002 12.1598L6.99455 11.427L7.18322 11.5199C7.28439 11.5719 7.9215 11.9055 8.59689 12.261C9.27228 12.6164 9.88205 12.9254 9.95041 12.95C10.1992 13.0348 10.5875 12.9883 10.8172 12.8488C10.9485 12.7695 11.1508 12.5371 11.2164 12.3949C11.2547 12.3074 11.2766 12.1871 11.2848 12.0313C11.2957 11.8289 11.2629 11.602 11.036 10.2785C10.891 9.44455 10.7735 8.74181 10.7735 8.7172C10.7735 8.69259 11.3039 8.15939 11.952 7.53048C13.3137 6.20431 13.2945 6.22892 13.311 5.78322C13.3192 5.58361 13.311 5.50704 13.2645 5.384C13.1524 5.08869 12.9281 4.86173 12.6547 4.7715C12.5836 4.74689 11.8152 4.62384 10.9485 4.49806C9.66056 4.30939 9.35978 4.26017 9.32423 4.21915C9.29689 4.19181 8.9715 3.54923 8.59962 2.78908C8.22502 2.02892 7.88595 1.35626 7.8422 1.29611C7.69455 1.07462 7.44845 0.924232 7.16134 0.875014C7.06564 0.861342 6.98088 0.850404 6.97267 0.850404C6.96447 0.853139 6.89337 0.864076 6.81134 0.877748Z" fill="#0968da"/>
|
||||
<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M6.81134 0.877748C6.609 0.913295 6.36017 1.05275 6.22619 1.20587C6.14689 1.29611 5.90353 1.76642 5.41134 2.76173C5.0258 3.5465 4.6922 4.20822 4.66759 4.23009C4.64025 4.25744 4.1508 4.33947 3.04611 4.5008C2.17384 4.62658 1.40822 4.74962 1.33986 4.7715C1.07189 4.86173 0.844938 5.09142 0.735563 5.384C0.689078 5.50704 0.680875 5.58361 0.689078 5.78322C0.705485 6.22892 0.686344 6.20431 2.04806 7.53048C2.69611 8.16212 3.22658 8.69533 3.22658 8.7172C3.22658 8.73908 3.109 9.44181 2.96408 10.2785C2.68791 11.8672 2.66603 12.0805 2.74533 12.3047C2.84923 12.5945 3.10353 12.8488 3.38791 12.9473C3.54923 13.002 3.91564 12.9992 4.07697 12.9391C4.14806 12.9145 4.83166 12.5617 5.60002 12.1598L6.99455 11.427L7.18322 11.5199C7.28439 11.5719 7.9215 11.9055 8.59689 12.261C9.27228 12.6164 9.88205 12.9254 9.95041 12.95C10.1992 13.0348 10.5875 12.9883 10.8172 12.8488C10.9485 12.7695 11.1508 12.5371 11.2164 12.3949C11.2547 12.3074 11.2766 12.1871 11.2848 12.0313C11.2957 11.8289 11.2629 11.602 11.036 10.2785C10.891 9.44455 10.7735 8.74181 10.7735 8.7172C10.7735 8.69259 11.3039 8.15939 11.952 7.53048C13.3137 6.20431 13.2945 6.22892 13.311 5.78322C13.3192 5.58361 13.311 5.50704 13.2645 5.384C13.1524 5.08869 12.9281 4.86173 12.6547 4.7715C12.5836 4.74689 11.8152 4.62384 10.9485 4.49806C9.66056 4.30939 9.35978 4.26017 9.32423 4.21915C9.29689 4.19181 8.9715 3.54923 8.59962 2.78908C8.22502 2.02892 7.88595 1.35626 7.8422 1.29611C7.69455 1.07462 7.44845 0.924232 7.16134 0.875014C7.06564 0.861342 6.98088 0.850404 6.97267 0.850404C6.96447 0.853139 6.89337 0.864076 6.81134 0.877748Z" fill="currentColor"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1,4 @@
|
||||
|
||||
<svg viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7.99992 0.25C8.13993 0.24991 8.27718 0.289014 8.39612 0.362887C8.51506 0.43676 8.61094 0.542452 8.67292 0.668L10.5549 4.483L14.7649 5.095C14.9034 5.11511 15.0335 5.17355 15.1404 5.26372C15.2474 5.35388 15.3271 5.47218 15.3703 5.60523C15.4136 5.73829 15.4188 5.8808 15.3853 6.01665C15.3519 6.1525 15.2811 6.27628 15.1809 6.374L12.1349 9.344L12.8539 13.536C12.8772 13.6738 12.8616 13.8154 12.8088 13.9449C12.756 14.0743 12.6681 14.1865 12.5551 14.2687C12.442 14.3509 12.3082 14.3999 12.1688 14.4102C12.0294 14.4205 11.8898 14.3917 11.7659 14.327L7.99992 12.347L4.23392 14.327C4.11011 14.392 3.97059 14.4211 3.83111 14.411C3.69163 14.4009 3.55776 14.352 3.4446 14.2699C3.33144 14.1877 3.24351 14.0755 3.19073 13.946C3.13796 13.8165 3.12243 13.6749 3.14592 13.537L3.86592 9.343L0.81792 6.374C0.717487 6.27632 0.64642 6.15247 0.612772 6.01647C0.579125 5.88047 0.584242 5.73777 0.627545 5.60453C0.670847 5.47129 0.750604 5.35284 0.857776 5.26261C0.964948 5.17238 1.09525 5.11397 1.23392 5.094L5.44392 4.483L7.32692 0.668C7.3889 0.542452 7.48479 0.43676 7.60372 0.362887C7.72266 0.289014 7.85991 0.24991 7.99992 0.25ZM7.99992 2.695L6.61492 5.5C6.56114 5.6089 6.48171 5.70311 6.38346 5.77453C6.28522 5.84595 6.1711 5.89244 6.05092 5.91L2.95392 6.36L5.19392 8.544C5.28107 8.62886 5.34628 8.73365 5.38391 8.84933C5.42154 8.96501 5.43046 9.0881 5.40992 9.208L4.88192 12.292L7.65092 10.836C7.75855 10.7794 7.87832 10.7499 7.99992 10.7499C8.12152 10.7499 8.24129 10.7794 8.34892 10.836L11.1189 12.292L10.5889 9.208C10.5684 9.0881 10.5773 8.96501 10.6149 8.84933C10.6526 8.73365 10.7178 8.62886 10.8049 8.544L13.0449 6.361L9.94892 5.911C9.82874 5.89344 9.71462 5.84695 9.61638 5.77553C9.51813 5.70411 9.4387 5.6099 9.38492 5.501L7.99992 2.695Z" fill="#24292F"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,93 @@
|
||||
|
||||
<svg viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M31.3002 7.65717L37.8715 20.9857C37.9572 21.1714 38.143 21.3 38.343 21.3286L53.043 23.4714C54.2287 23.6429 54.7002 25.1 53.843 25.943L43.5145 36C43.1715 36.3285 43.0145 36.8142 43.1002 37.2857L45.543 51.5C45.743 52.6857 44.5002 53.5857 43.443 53.0285L30.286 46.1142C30.1002 46.0142 29.886 46.0142 29.7002 46.1142L16.543 53.0285C15.4859 53.5857 14.243 52.6857 14.443 51.5L16.9716 36.8572C17.0002 36.6572 16.943 36.443 16.7859 36.3L6.15732 25.9285C5.30019 25.0857 5.77162 23.6286 6.95732 23.4572L21.6573 21.3143C21.8573 21.2857 22.043 21.1572 22.1288 20.9714L28.7002 7.64287C29.2287 6.58575 30.7715 6.58575 31.3002 7.65717Z" fill="url(#paint0_radial_7133_65409)"/>
|
||||
<path d="M13.8716 30.457C11.1145 27.7 7.21447 24.5571 8.02877 23.3142L6.95732 23.4714C5.77162 23.6428 5.30019 25.1 6.15732 25.9428L16.8002 36.3143C16.943 36.457 17.0145 36.6713 16.9859 36.8713C17.3573 34.2713 16.6287 33.2 13.8716 30.457Z" fill="url(#paint1_radial_7133_65409)"/>
|
||||
<path d="M46.1286 30.457C48.8859 27.7 52.7859 24.5571 51.9714 23.3142L53.0429 23.4714C54.2286 23.6428 54.7001 25.1 53.8429 25.9428L43.2001 36.3143C43.0571 36.457 42.9859 36.6713 43.0144 36.8713C42.6429 34.2713 43.3714 33.2 46.1286 30.457Z" fill="url(#paint2_radial_7133_65409)"/>
|
||||
<path d="M53.0431 23.4717L38.3431 21.3289C38.1431 21.3003 37.9573 21.1717 37.8716 20.986L31.3001 7.65747C31.3001 7.65747 30.7001 8.40032 32.0573 11.2289C32.9431 13.0717 35.2716 18.1575 36.5431 20.786C37.2573 22.2717 38.3431 22.3003 39.9858 22.5146L50.8431 23.9003C50.8288 23.9146 52.0288 24.0146 53.0431 23.4717Z" fill="url(#paint3_radial_7133_65409)"/>
|
||||
<path d="M31.3002 7.65717L37.8715 20.9857C37.9572 21.1714 38.143 21.3 38.343 21.3286L53.043 23.4714C54.2287 23.6429 54.7002 25.1 53.843 25.943L43.5145 36C43.1715 36.3285 43.0145 36.8142 43.1002 37.2857L45.543 51.5C45.743 52.6857 44.5002 53.5857 43.443 53.0285L30.286 46.1142C30.1002 46.0142 29.886 46.0142 29.7002 46.1142L16.543 53.0285C15.4859 53.5857 14.243 52.6857 14.443 51.5L16.9716 36.8572C17.0002 36.6572 16.943 36.443 16.7859 36.3L6.15732 25.9285C5.30019 25.0857 5.77162 23.6286 6.95732 23.4572L21.6573 21.3143C21.8573 21.2857 22.043 21.1572 22.1288 20.9714L28.7002 7.64287C29.2287 6.58575 30.7715 6.58575 31.3002 7.65717Z" fill="url(#paint4_radial_7133_65409)"/>
|
||||
<path d="M31.3002 7.65717L37.8715 20.9857C37.9572 21.1714 38.143 21.3 38.343 21.3286L53.043 23.4714C54.2287 23.6429 54.7002 25.1 53.843 25.943L43.5145 36C43.1715 36.3285 43.0145 36.8142 43.1002 37.2857L45.543 51.5C45.743 52.6857 44.5002 53.5857 43.443 53.0285L30.286 46.1142C30.1002 46.0142 29.886 46.0142 29.7002 46.1142L16.543 53.0285C15.4859 53.5857 14.243 52.6857 14.443 51.5L16.9716 36.8572C17.0002 36.6572 16.943 36.443 16.7859 36.3L6.15732 25.9285C5.30019 25.0857 5.77162 23.6286 6.95732 23.4572L21.6573 21.3143C21.8573 21.2857 22.043 21.1572 22.1288 20.9714L28.7002 7.64287C29.2287 6.58575 30.7715 6.58575 31.3002 7.65717Z" fill="url(#paint5_radial_7133_65409)"/>
|
||||
<path d="M28.7002 7.65717L22.1288 20.9857C22.043 21.1714 21.8573 21.3 21.6573 21.3286L6.95732 23.4714C5.77162 23.6429 5.30019 25.1 6.15732 25.943L16.4859 36C16.8288 36.3285 16.9859 36.8142 16.9002 37.2857L14.4573 51.5C14.2573 52.6857 15.5002 53.5857 16.5573 53.0285L29.7145 46.1142C29.9002 46.0142 30.1145 46.0142 30.3002 46.1142L43.4572 53.0285C44.5145 53.5857 45.7572 52.6857 45.5572 51.5L43.0287 36.8572C43.0002 36.6572 43.0572 36.443 43.2145 36.3L53.8572 25.9285C54.7145 25.0857 54.243 23.6286 53.0572 23.4572L38.3572 21.3143C38.1572 21.2857 37.9715 21.1572 37.886 20.9714L31.3145 7.64287C30.7715 6.58575 29.2287 6.58575 28.7002 7.65717Z" fill="url(#paint6_radial_7133_65409)"/>
|
||||
<path d="M28.7002 7.65717L22.1288 20.9857C22.043 21.1714 21.8573 21.3 21.6573 21.3286L6.95732 23.4714C5.77162 23.6429 5.30019 25.1 6.15732 25.943L16.4859 36C16.8288 36.3285 16.9859 36.8142 16.9002 37.2857L14.4573 51.5C14.2573 52.6857 15.5002 53.5857 16.5573 53.0285L29.7145 46.1142C29.9002 46.0142 30.1145 46.0142 30.3002 46.1142L43.4572 53.0285C44.5145 53.5857 45.7572 52.6857 45.5572 51.5L43.0287 36.8572C43.0002 36.6572 43.0572 36.443 43.2145 36.3L53.8572 25.9285C54.7145 25.0857 54.243 23.6286 53.0572 23.4572L38.3572 21.3143C38.1572 21.2857 37.9715 21.1572 37.886 20.9714L31.3145 7.64287C30.7715 6.58575 29.2287 6.58575 28.7002 7.65717Z" fill="url(#paint7_radial_7133_65409)"/>
|
||||
<path opacity="0.24" d="M28.7002 7.65717L22.1288 20.9857C22.043 21.1714 21.8573 21.3 21.6573 21.3286L6.95732 23.4714C5.77162 23.6429 5.30019 25.1 6.15732 25.943L16.4859 36C16.8288 36.3285 16.9859 36.8142 16.9002 37.2857L14.4573 51.5C14.2573 52.6857 15.5002 53.5857 16.5573 53.0285L29.7145 46.1142C29.9002 46.0142 30.1145 46.0142 30.3002 46.1142L43.4572 53.0285C44.5145 53.5857 45.7572 52.6857 45.5572 51.5L43.0287 36.8572C43.0002 36.6572 43.0572 36.443 43.2145 36.3L53.8572 25.9285C54.7145 25.0857 54.243 23.6286 53.0572 23.4572L38.3572 21.3143C38.1572 21.2857 37.9715 21.1572 37.886 20.9714L31.3145 7.64287C30.7715 6.58575 29.2287 6.58575 28.7002 7.65717Z" fill="url(#paint8_radial_7133_65409)"/>
|
||||
<path opacity="0.24" d="M28.7002 7.65717L22.1288 20.9857C22.043 21.1714 21.8573 21.3 21.6573 21.3286L6.95732 23.4714C5.77162 23.6429 5.30019 25.1 6.15732 25.943L16.4859 36C16.8288 36.3285 16.9859 36.8142 16.9002 37.2857L14.4573 51.5C14.2573 52.6857 15.5002 53.5857 16.5573 53.0285L29.7145 46.1142C29.9002 46.0142 30.1145 46.0142 30.3002 46.1142L43.4572 53.0285C44.5145 53.5857 45.7572 52.6857 45.5572 51.5L43.0287 36.8572C43.0002 36.6572 43.0572 36.443 43.2145 36.3L53.8572 25.9285C54.7145 25.0857 54.243 23.6286 53.0572 23.4572L38.3572 21.3143C38.1572 21.2857 37.9715 21.1572 37.886 20.9714L31.3145 7.64287C30.7715 6.58575 29.2287 6.58575 28.7002 7.65717Z" fill="url(#paint9_radial_7133_65409)"/>
|
||||
<path d="M6.95654 23.4717L21.6566 21.3289C21.8566 21.3003 22.0423 21.1717 22.128 20.986L28.6995 7.65747C28.6995 7.65747 29.2995 8.40032 27.9423 11.2289C27.0565 13.0717 24.728 18.1575 23.4566 20.786C22.7423 22.2717 21.6566 22.3003 20.0137 22.5146L9.15654 23.9003C9.17084 23.9146 7.97084 24.0146 6.95654 23.4717Z" fill="url(#paint10_radial_7133_65409)"/>
|
||||
<path opacity="0.5" d="M31.3002 7.65717L37.8715 20.9857C37.9572 21.1714 38.143 21.3 38.343 21.3286L53.043 23.4714C54.2287 23.6429 54.7002 25.1 53.843 25.943L43.5145 36C43.1715 36.3285 43.0145 36.8142 43.1002 37.2857L45.543 51.5C45.743 52.6857 44.5002 53.5857 43.443 53.0285L30.286 46.1142C30.1002 46.0142 29.886 46.0142 29.7002 46.1142L16.543 53.0285C15.4859 53.5857 14.243 52.6857 14.443 51.5L16.9716 36.8572C17.0002 36.6572 16.943 36.443 16.7859 36.3L6.15732 25.9285C5.30019 25.0857 5.77162 23.6286 6.95732 23.4572L21.6573 21.3143C21.8573 21.2857 22.043 21.1572 22.1288 20.9714L28.7002 7.64287C29.2287 6.58575 30.7715 6.58575 31.3002 7.65717Z" fill="url(#paint11_radial_7133_65409)"/>
|
||||
<path d="M45.543 51.5002L43.1002 37.286C43.0145 36.8145 43.1715 36.3432 43.5145 36.0002L53.843 25.929C54.7002 25.086 54.2287 23.6289 53.043 23.4574L38.343 21.3146C38.143 21.286 37.9572 21.1574 37.8715 20.9717L31.3002 7.64317C30.7715 6.57174 29.243 6.57174 28.7002 7.64317L22.1288 20.9717C22.043 21.1574 21.8573 21.286 21.6573 21.3146L6.95732 23.4574C5.77162 23.6289 5.30019 25.086 6.15732 25.929L16.8002 36.3002C16.943 36.4432 17.0145 36.6575 16.9859 36.8575L14.4573 51.5002C14.2573 52.686 15.5002 53.586 16.5573 53.029L29.7145 46.1145C29.9002 46.0145 30.1145 46.0145 30.3002 46.1145L43.4572 53.029C44.5002 53.586 45.743 52.686 45.543 51.5002ZM44.486 52.2432C44.386 52.3145 44.143 52.4575 43.8287 52.286L30.686 45.3717C30.4715 45.2575 30.243 45.2002 30.0145 45.2002C29.786 45.2002 29.5572 45.2575 29.343 45.3717L16.2002 52.286C15.8859 52.4432 15.643 52.3002 15.543 52.2432C15.443 52.1717 15.2288 51.9717 15.3002 51.629L17.7859 37.0002C17.8716 36.529 17.7145 36.0575 17.3716 35.7145L6.72877 25.3432C6.47162 25.1002 6.52877 24.8146 6.57162 24.7003C6.61447 24.586 6.72877 24.3289 7.07162 24.2717L21.7716 22.1289C22.243 22.0574 22.6573 21.7574 22.8573 21.3432L29.4287 8.01459C29.586 7.70032 29.8715 7.67174 29.986 7.67174C30.1002 7.67174 30.386 7.70032 30.543 8.01459L37.1145 21.3432C37.3287 21.7717 37.7287 22.0717 38.2002 22.1289L52.9002 24.2717C53.243 24.3289 53.3715 24.586 53.4002 24.7003C53.443 24.8146 53.5002 25.1002 53.243 25.3432L42.9145 35.4145C42.386 35.929 42.143 36.686 42.2572 37.4145L44.7002 51.629C44.786 51.986 44.5715 52.186 44.486 52.2432Z" fill="url(#paint12_radial_7133_65409)"/>
|
||||
<defs>
|
||||
<radialGradient id="paint0_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(28.7925 25.1942) scale(23.7334 23.7334)">
|
||||
<stop stop-color="#FFE343"/>
|
||||
<stop offset="0.5492" stop-color="#FFE241"/>
|
||||
<stop offset="0.7469" stop-color="#FFDF3A"/>
|
||||
<stop offset="0.8874" stop-color="#FEDA2F"/>
|
||||
<stop offset="1" stop-color="#FED31E"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint1_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(11.2402 34.5613) rotate(-39.4857) scale(4.38948 11.8195)">
|
||||
<stop stop-color="#D86D00"/>
|
||||
<stop offset="0.3292" stop-color="#DC6C0A" stop-opacity="0.6708"/>
|
||||
<stop offset="0.8792" stop-color="#E86823" stop-opacity="0.1208"/>
|
||||
<stop offset="1" stop-color="#EB672A" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint2_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(48.2031 35.203) rotate(-140.514) scale(4.38948 11.8195)">
|
||||
<stop stop-color="#D86D00"/>
|
||||
<stop offset="0.3292" stop-color="#DC6C0A" stop-opacity="0.6708"/>
|
||||
<stop offset="0.8792" stop-color="#E86823" stop-opacity="0.1208"/>
|
||||
<stop offset="1" stop-color="#EB672A" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint3_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(45.0711 11.734) rotate(46.8275) scale(17.189 11.8311)">
|
||||
<stop stop-color="#ED9900"/>
|
||||
<stop offset="1" stop-color="#ED9900" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint4_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(28.1562 22.6787) rotate(-41.4123) scale(13.6551 7.48297)">
|
||||
<stop stop-color="#FFEC5F"/>
|
||||
<stop offset="1" stop-color="#FFEC5F" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint5_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(24.0605 53.1742) rotate(-26.3216) scale(13.0497 6.18462)">
|
||||
<stop stop-color="#D86D00"/>
|
||||
<stop offset="0.3292" stop-color="#DC6C0A" stop-opacity="0.6708"/>
|
||||
<stop offset="0.8792" stop-color="#E86823" stop-opacity="0.1208"/>
|
||||
<stop offset="1" stop-color="#EB672A" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint6_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(35.795 53.542) rotate(-153.678) scale(13.0497 6.18462)">
|
||||
<stop stop-color="#D86D00"/>
|
||||
<stop offset="0.3292" stop-color="#DC6C0A" stop-opacity="0.6708"/>
|
||||
<stop offset="0.8792" stop-color="#E86823" stop-opacity="0.1208"/>
|
||||
<stop offset="1" stop-color="#EB672A" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint7_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(29.9872 60.4912) rotate(177.226) scale(17.2629 17.6984)">
|
||||
<stop stop-color="#D86D00"/>
|
||||
<stop offset="0.3292" stop-color="#DC6C0A" stop-opacity="0.6708"/>
|
||||
<stop offset="0.8792" stop-color="#E86823" stop-opacity="0.1208"/>
|
||||
<stop offset="1" stop-color="#EB672A" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint8_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(35.8135 41.39) rotate(158.456) scale(18.2418 13.7898)">
|
||||
<stop stop-color="#D86D00"/>
|
||||
<stop offset="0.3292" stop-color="#DC6C0A" stop-opacity="0.6708"/>
|
||||
<stop offset="0.8792" stop-color="#E86823" stop-opacity="0.1208"/>
|
||||
<stop offset="1" stop-color="#EB672A" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint9_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(28.0972 24.6158) rotate(158.456) scale(10.9909 8.3085)">
|
||||
<stop stop-color="white"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint10_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(14.9292 11.7322) rotate(133.173) scale(17.189 11.8311)">
|
||||
<stop stop-color="#ED9900"/>
|
||||
<stop offset="1" stop-color="#ED9900" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint11_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(30.2685 31.2327) scale(28.2967)">
|
||||
<stop stop-color="#FF8000" stop-opacity="0"/>
|
||||
<stop offset="0.5434" stop-color="#FD7F00" stop-opacity="0.5434"/>
|
||||
<stop offset="0.7391" stop-color="#F67C00" stop-opacity="0.7391"/>
|
||||
<stop offset="0.8781" stop-color="#EB7600" stop-opacity="0.8781"/>
|
||||
<stop offset="0.9903" stop-color="#DA6E00" stop-opacity="0.9903"/>
|
||||
<stop offset="1" stop-color="#D86D00"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="paint12_radial_7133_65409" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(30.0002 32.146) scale(24.4518)">
|
||||
<stop stop-color="#A3541E" stop-opacity="0.5"/>
|
||||
<stop offset="0.5109" stop-color="#A5551D" stop-opacity="0.7555"/>
|
||||
<stop offset="0.695" stop-color="#AC5819" stop-opacity="0.8475"/>
|
||||
<stop offset="0.8261" stop-color="#B75E12" stop-opacity="0.9131"/>
|
||||
<stop offset="0.9315" stop-color="#C86609" stop-opacity="0.9657"/>
|
||||
<stop offset="1" stop-color="#D86D00"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,168 @@
|
||||
/*
|
||||
* Copyright 2023 Collate.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { Button, Card, Modal, Skeleton, Typography } from 'antd';
|
||||
import { CookieStorage } from 'cookie-storage';
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import { ReactComponent as CloseIcon } from '../../../assets/svg/close.svg';
|
||||
import { ReactComponent as StarGithubIcon } from '../../../assets/svg/ic-star-github.svg';
|
||||
import { ReactComponent as StarIcon } from '../../../assets/svg/ic-start-filled-github.svg';
|
||||
|
||||
import Icon from '@ant-design/icons/lib/components/Icon';
|
||||
import ButtonGroup from 'antd/lib/button/button-group';
|
||||
import {
|
||||
ROUTES,
|
||||
STAR_OMD_USER,
|
||||
TEXT_GREY_MUTED,
|
||||
} from '../../../constants/constants';
|
||||
import { getRepositoryData } from '../../../rest/commonAPI';
|
||||
import { getReleaseVersionExpiry } from '../../../utils/WhatsNewModal.util';
|
||||
import { useAuthContext } from '../../Auth/AuthProviders/AuthProvider';
|
||||
import './github-star-modal.style.less';
|
||||
|
||||
const cookieStorage = new CookieStorage();
|
||||
|
||||
const GithubStarModal = () => {
|
||||
const { t } = useTranslation();
|
||||
const location = useLocation();
|
||||
const { currentUser } = useAuthContext();
|
||||
const [showGithubStarPopup, setShowGithubStarPopup] = useState(false);
|
||||
const [starredCount, setStarredCount] = useState<number>(0);
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true);
|
||||
|
||||
const loggedInUserName = useMemo(() => currentUser?.name, [currentUser]);
|
||||
|
||||
const userCookieName = useMemo(
|
||||
() => `${STAR_OMD_USER}_${loggedInUserName}`,
|
||||
[loggedInUserName]
|
||||
);
|
||||
|
||||
const isHomePage = useMemo(
|
||||
() => location.pathname.includes(ROUTES.MY_DATA),
|
||||
[location.pathname]
|
||||
);
|
||||
|
||||
const usernameExistsInCookie = useMemo(
|
||||
() => Boolean(cookieStorage.getItem(userCookieName)),
|
||||
[userCookieName]
|
||||
);
|
||||
|
||||
const fetchOpenMetaData = async () => {
|
||||
try {
|
||||
const res = await getRepositoryData();
|
||||
setStarredCount(res.stargazers_count);
|
||||
} catch (err) {
|
||||
// Error
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const updateGithubPopup = useCallback(
|
||||
(show: boolean) => {
|
||||
if (loggedInUserName && show) {
|
||||
fetchOpenMetaData();
|
||||
cookieStorage.setItem(userCookieName, 'true', {
|
||||
expires: getReleaseVersionExpiry(),
|
||||
});
|
||||
}
|
||||
setShowGithubStarPopup(show);
|
||||
},
|
||||
[
|
||||
loggedInUserName,
|
||||
usernameExistsInCookie,
|
||||
userCookieName,
|
||||
getReleaseVersionExpiry,
|
||||
]
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
updateGithubPopup(!usernameExistsInCookie);
|
||||
|
||||
return () => setShowGithubStarPopup(false);
|
||||
}, [usernameExistsInCookie, updateGithubPopup]);
|
||||
|
||||
return (
|
||||
<>
|
||||
{showGithubStarPopup && isHomePage && (
|
||||
<Modal
|
||||
centered
|
||||
destroyOnClose
|
||||
keyboard
|
||||
open
|
||||
className="github-star-popup-modal"
|
||||
closeIcon={
|
||||
<CloseIcon
|
||||
color={TEXT_GREY_MUTED}
|
||||
data-testid="github-star-popup-close-button"
|
||||
height={12}
|
||||
width={12}
|
||||
onClick={() => setShowGithubStarPopup(false)}
|
||||
/>
|
||||
}
|
||||
data-testid="github-star-popup-modal"
|
||||
footer={null}
|
||||
maskClosable={false}
|
||||
width={440}
|
||||
onCancel={() => setShowGithubStarPopup(false)}>
|
||||
<Card
|
||||
className="github-star-popup-card"
|
||||
data-testid="github-star-popup-card">
|
||||
<StarIcon className="github-star-icon" />
|
||||
|
||||
<Typography.Text className="github-star-popup-header">
|
||||
{t('label.star-us-on-github')}
|
||||
</Typography.Text>
|
||||
|
||||
<Typography.Paragraph className="github-star-popup-description">
|
||||
{t('message.star-on-github-description')}
|
||||
</Typography.Paragraph>
|
||||
|
||||
<ButtonGroup className="github-action-button-group">
|
||||
<Link
|
||||
component={Typography.Link}
|
||||
target="_blank"
|
||||
to={{
|
||||
pathname: 'https://github.com/open-metadata/OpenMetadata',
|
||||
}}>
|
||||
<Button
|
||||
className="github-star-button github-modal-action-button"
|
||||
icon={<Icon component={StarGithubIcon} size={12} />}>
|
||||
{t('label.star')}
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
component={Typography.Link}
|
||||
target="_blank"
|
||||
to={{
|
||||
pathname: 'https://github.com/open-metadata/OpenMetadata',
|
||||
}}>
|
||||
<Button className="github-modal-action-button">
|
||||
{isLoading ? (
|
||||
<Skeleton.Button active size="small" />
|
||||
) : (
|
||||
starredCount
|
||||
)}
|
||||
</Button>
|
||||
</Link>
|
||||
</ButtonGroup>
|
||||
</Card>
|
||||
</Modal>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default GithubStarModal;
|
||||
@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2023 Collate.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
@import (reference) url('../../../styles/variables.less');
|
||||
|
||||
.github-star-popup-modal {
|
||||
.github-star-popup-card {
|
||||
border: none;
|
||||
text-align: center;
|
||||
|
||||
.github-star-icon {
|
||||
display: block;
|
||||
margin: 24px auto;
|
||||
width: 50px;
|
||||
color: @yellow-2;
|
||||
}
|
||||
|
||||
.github-star-popup-header {
|
||||
color: @primary-color;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.github-star-popup-description {
|
||||
margin-top: 10px;
|
||||
color: @text-grey-muted;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.github-action-button-group {
|
||||
border-radius: 4px;
|
||||
border: @global-border;
|
||||
overflow: hidden;
|
||||
|
||||
.github-star-button {
|
||||
background: linear-gradient(0.5turn, rgba(0, 0, 0, 0.2), transparent);
|
||||
border-right: @global-border !important;
|
||||
}
|
||||
|
||||
.github-modal-action-button {
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
color: initial;
|
||||
border: none;
|
||||
}
|
||||
&:focus {
|
||||
color: initial;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -74,6 +74,7 @@ import BrandImage from '../common/BrandImage/BrandImage';
|
||||
import CmdKIcon from '../common/CmdKIcon/CmdKIcon.component';
|
||||
import { useDomainProvider } from '../Domain/DomainProvider/DomainProvider';
|
||||
import { useGlobalSearchProvider } from '../GlobalSearchProvider/GlobalSearchProvider';
|
||||
import GithubStarModal from '../Modals/GithubStarModal/GithubStarModal.component';
|
||||
import WhatsNewAlert from '../Modals/WhatsNewModal/WhatsNewAlert/WhatsNewAlert.component';
|
||||
import WhatsNewModal from '../Modals/WhatsNewModal/WhatsNewModal';
|
||||
import NotificationBox from '../NotificationBox/NotificationBox.component';
|
||||
@ -519,6 +520,8 @@ const NavBar = ({
|
||||
onCancel={handleModalCancel}
|
||||
/>
|
||||
<WhatsNewAlert />
|
||||
|
||||
<GithubStarModal />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@ -86,6 +86,7 @@ export const imageTypes = {
|
||||
export const NO_DATA_PLACEHOLDER = '--';
|
||||
export const PIPE_SYMBOL = '|';
|
||||
export const NO_DATA = '-';
|
||||
export const STAR_OMD_USER = 'STAR_OMD_USER';
|
||||
|
||||
export const TOUR_SEARCH_TERM = 'dim_a';
|
||||
export const ERROR500 = t('message.something-went-wrong');
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "SQL-Abfrage",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Speicherort der Bühnendatei",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Sterne uns auf Github",
|
||||
"start-date-time-zone": "Startdatum ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Abfragen, die eine oder mehrere Zeilen zurückgeben, führen dazu, dass der Test fehlschlägt.",
|
||||
"sso-provider-not-supported": "SSO-Provider {{provider}} wird nicht unterstützt.",
|
||||
"stage-file-location-message": "Temporärer Dateiname zum Speichern der Abfrageprotokolle vor der Verarbeitung. Es wird ein absoluter Dateipfad benötigt.",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "Wenn Sie immer noch auf Probleme stoßen, kontaktieren Sie uns bitte über Slack.",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> wurde {{entityStatus}} und erfolgreich bereitgestellt",
|
||||
"successfully-completed-the-tour": "Sie haben die Tour erfolgreich abgeschlossen.",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "SQL Query",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Stage File Location",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Star us on Github",
|
||||
"start-date-time-zone": "Start Date: ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Queries returning one or more rows will result in the test failing.",
|
||||
"sso-provider-not-supported": "SSO Provider {{provider}} is not supported.",
|
||||
"stage-file-location-message": "Temporary file name to store the query logs before processing. Absolute file path required.",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "If you are still running into issues, please reach out to us on slack.",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> has been {{entityStatus}} and deployed successfully",
|
||||
"successfully-completed-the-tour": "You’ve successfully completed the tour.",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "Consulta SQL",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Ubicación del Archivo de Etapa",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Danos una Estrella en Github",
|
||||
"start-date-time-zone": "Fecha de Inicio: ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Las consultas que devuelvan una o varias filas provocarán el fallo del test.",
|
||||
"sso-provider-not-supported": "No se admite el proveedor SSO {{provider}}.",
|
||||
"stage-file-location-message": "Nombre de archivo temporal para almacenar los registros de consulta antes del procesamiento. Se requiere una ruta de archivo absoluta.",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "Si todavía tienes problemas, contáctanos en Slack.",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> se ha {{entityStatus}} y desplegado con éxito",
|
||||
"successfully-completed-the-tour": "Has completado el recorrido con éxito.",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "Requête SQL",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Emplacement du Fichier de Staging",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Étoilez-nous sur Github",
|
||||
"start-date-time-zone": "Date de Début ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Requête avec 1 ligne ou plus entraînera l'échec du test.",
|
||||
"sso-provider-not-supported": "Le fournisseur SSO {{provider}} n’est pas pris en charge.",
|
||||
"stage-file-location-message": "Nom du fichier temporaire pour stocker les journaux de requête avant le traitement. Chemin de fichier absolu requis.",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "Si vous rencontrez toujours des problèmes, veuillez nous contacter sur slack.",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> a été {{entityStatus}} et déployé avec succès",
|
||||
"successfully-completed-the-tour": "Vous avez fini la visite avec succès.",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "SQL Query",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Stage File Location",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Githubプロジェクトにスターを付ける",
|
||||
"start-date-time-zone": "開始日: ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Queries returning one or more rows will result in the test failing.",
|
||||
"sso-provider-not-supported": "SSO Provider {{provider}} is not supported.",
|
||||
"stage-file-location-message": "処理前のクエリログを保存するための一時ファイルの名前です。絶対パスである必要があります。",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "まだ問題が発生している場合は, Slackでご連絡ください。",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> has been {{entityStatus}} and deployed successfully",
|
||||
"successfully-completed-the-tour": "あなたは無事ツアーを終了しました。",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "Consulta SQL",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Localização de Arquivo de Estágio",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Nos avalie no Github",
|
||||
"start-date-time-zone": "Data de Início: ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Consultas que retornam uma ou mais linhas resultarão na falha do teste.",
|
||||
"sso-provider-not-supported": "O provedor SSO {{provider}} não é suportado.",
|
||||
"stage-file-location-message": "Nome do arquivo temporário para armazenar os logs de consulta antes do processamento. É necessário um caminho absoluto para o arquivo.",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "Se você ainda estiver enfrentando problemas, entre em contato conosco no Slack.",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> foi {{entityStatus}} e implantado com sucesso",
|
||||
"successfully-completed-the-tour": "Você concluiu o tour com sucesso.",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "SQL Запрос",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Расположение файла",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "Пометить на Github",
|
||||
"start-date-time-zone": "Дата начала: ({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "Запросы, возвращающие одну или несколько строк, приведут к сбою теста.",
|
||||
"sso-provider-not-supported": "Поставщик единого входа {{provider}} не поддерживается.",
|
||||
"stage-file-location-message": "Имя временного файла для хранения журналов запросов перед обработкой. Требуется абсолютный путь к файлу.",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "Если у вас по-прежнему возникают проблемы, свяжитесь с нами в Slack.",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0> был {{entityStatus}} и успешно развернут",
|
||||
"successfully-completed-the-tour": "Вы успешно завершили экскурсию.",
|
||||
|
||||
@ -957,6 +957,7 @@
|
||||
"sql-uppercase-query": "SQL查询",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "临时文件位置",
|
||||
"star": "Star",
|
||||
"star-open-metadata": "Star OpenMetadata",
|
||||
"star-us-on-github": "在 Github 上给我们点赞",
|
||||
"start-date-time-zone": "开始日期:({{timeZone}})",
|
||||
@ -1561,6 +1562,7 @@
|
||||
"sql-query-tooltip": "返回一行或多行的查询将导致测试失败",
|
||||
"sso-provider-not-supported": "不支持 SSO 提供程序{{provider}}",
|
||||
"stage-file-location-message": "临时文件名用于存储处理前的查询日志,需要使用绝对文件路径",
|
||||
"star-on-github-description": "Spread the word to help data enthusiasts discover OpenMetadata. Show your support by contributing to the open-source project with Stars!",
|
||||
"still-running-into-issue": "如果您仍然遇到问题,请在 slack 上与我们联系",
|
||||
"success-status-for-entity-deploy": "<0>{{entity}}</0>已{{entityStatus}}并成功部署",
|
||||
"successfully-completed-the-tour": "您已成功完成导览",
|
||||
|
||||
28
openmetadata-ui/src/main/resources/ui/src/rest/commonAPI.ts
Normal file
28
openmetadata-ui/src/main/resources/ui/src/rest/commonAPI.ts
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2023 Collate.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import axios from 'axios';
|
||||
|
||||
// type created based on used data, you can add types as per your requirement and api response
|
||||
export interface RepositoryData {
|
||||
stargazers_count: number;
|
||||
}
|
||||
|
||||
// api will provide us the OpenMetadata Repository Data
|
||||
export const getRepositoryData = async () => {
|
||||
const response = await axios.get(
|
||||
'https://api.github.com/repos/open-metadata/OpenMetadata'
|
||||
);
|
||||
|
||||
return response.data as RepositoryData;
|
||||
};
|
||||
@ -11,6 +11,5 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export const getReleaseVersionExpiry = () => {
|
||||
return new Date(Date.now() + 60 * 60 * 24 * 31 * 1000);
|
||||
};
|
||||
export const getReleaseVersionExpiry = () =>
|
||||
new Date(Date.now() + 60 * 60 * 24 * 31 * 1000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user