mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 02:56:10 +00:00
Changed topic config UI on topic details page (#443)
This commit is contained in:
parent
fe15afdb99
commit
87e382edba
@ -1,8 +1,6 @@
|
||||
<svg width="15" height="14" viewBox="0 0 15 14" fill="#6b7280" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.000269763 8.11034H1.96745V12.069H13.0328V8.11034H15V14H0.000269763V8.11034Z" />
|
||||
<path d="M2.95076 0H4.91794V11.1034H2.95076V0Z" />
|
||||
<path d="M6.51135 0H8.47853V11.1034H6.51135V0Z" />
|
||||
<path d="M10.0719 0H12.0391V11.1034H10.0719V0Z" />
|
||||
<path d="M0 2.89655L1.28982e-07 5.7931L1.96718 4.31586L0 2.89655Z" />
|
||||
<path d="M13.0227 2.89655V5.7931L14.9899 4.31586L13.0227 2.89655Z" />
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="14" viewBox="0 0 17 14" fill="#6b7280">
|
||||
<path d="M9.34493 14C9.33943 13.993 9.33452 13.9839 9.32903 13.9768C9.2782 13.9079 9.22872 13.835 9.18028 13.7566C9.1727 13.7441 9.16541 13.7304 9.15769 13.718C9.11578 13.6469 9.07462 13.5722 9.0345 13.4942L9.00166 13.4306C8.95722 13.3408 8.91398 13.2479 8.87193 13.1494L8.8483 13.0913C8.81234 13.0048 8.77757 12.9157 8.74383 12.8238L8.71619 12.7486C8.678 12.641 8.64115 12.5302 8.60534 12.4159L8.5823 12.3389C8.55184 12.2394 8.52346 12.138 8.49522 12.0346C8.48794 12.0073 8.48036 11.9805 8.47323 11.953C8.44099 11.8313 8.41067 11.7059 8.38199 11.5766C8.37501 11.5461 8.36862 11.5157 8.36193 11.4852C8.33696 11.3733 8.31304 11.2595 8.29016 11.1439L8.27396 11.0629C8.24795 10.9281 8.22358 10.7911 8.20055 10.6517C8.19475 10.618 8.1897 10.5835 8.1842 10.5495C8.16444 10.4278 8.14557 10.3027 8.12788 10.1769L8.11718 10.1017C8.09697 9.9576 8.07884 9.81183 8.0628 9.66471L8.05061 9.554C8.0359 9.41922 8.02238 9.2837 8.00975 9.14713L8.00454 9.09171C7.99117 8.93954 7.98002 8.78737 7.96962 8.6352L7.96115 8.52197C7.95194 8.37708 7.94406 8.23205 7.93738 8.08672L7.93559 8.05061C7.92891 7.89532 7.92371 7.74003 7.92029 7.58459L7.91791 7.47077C7.91479 7.31414 7.91271 7.15737 7.91271 7.00089C7.91271 6.84456 7.91479 6.68779 7.91791 6.53101L7.92029 6.41719C7.924 6.2616 7.92906 6.10631 7.93559 5.95132L7.93738 5.91506C7.94406 5.76958 7.95194 5.62455 7.96115 5.47981L7.96873 5.36598C7.97898 5.21381 7.99028 5.06165 8.00365 4.90948L8.00885 4.8542C8.02119 4.71764 8.03486 4.58196 8.04972 4.44718L8.0619 4.33647C8.07885 4.18951 8.09697 4.04388 8.11629 3.89944L8.1258 3.82306C8.14334 3.69734 8.16221 3.57356 8.18197 3.45052C8.18747 3.41649 8.19267 3.38201 8.19847 3.34828C8.22165 3.20904 8.24602 3.07203 8.27188 2.9371L8.28793 2.85611C8.31081 2.7405 8.33488 2.62667 8.35985 2.51477C8.36654 2.48431 8.37293 2.45385 8.37991 2.42339C8.40904 2.29499 8.4395 2.16957 8.47115 2.04698C8.47814 2.01964 8.48571 1.99274 8.49314 1.9654C8.52138 1.86138 8.55036 1.76003 8.58008 1.66106L8.60326 1.58409C8.63892 1.46966 8.67592 1.35881 8.71397 1.25137L8.74175 1.17633C8.77534 1.08434 8.81026 0.995181 8.84607 0.908695L8.86985 0.850592C8.9119 0.752664 8.955 0.659194 8.99943 0.569439L9.03242 0.505838C9.07254 0.427823 9.11355 0.353671 9.15561 0.282045C9.16319 0.269711 9.17047 0.255891 9.1782 0.243409C9.22649 0.164948 9.27612 0.0912415 9.32695 0.0231822C9.33244 0.0161979 9.33735 0.0069847 9.34284 4.4125e-07L6.0867 2.98919e-07C5.32438 2.65597e-07 4.26069 2.66293 4.26069 6.9997C4.26069 11.3365 5.32438 13.9994 6.0867 13.9994L9.34493 14Z" />
|
||||
<path d="M5.08424 14C5.07874 13.993 5.07383 13.9839 5.06834 13.9768C5.01751 13.9079 4.96803 13.835 4.91959 13.7566C4.91201 13.7441 4.90473 13.7304 4.897 13.718C4.85509 13.6469 4.81393 13.5722 4.77381 13.4942L4.74097 13.4306C4.69654 13.3408 4.65329 13.2479 4.61124 13.1494L4.58761 13.0913C4.55165 13.0048 4.51688 12.9157 4.48315 12.8238L4.45551 12.7486C4.41732 12.641 4.38046 12.5302 4.34465 12.4159L4.32162 12.3389C4.29115 12.2394 4.26277 12.138 4.23454 12.0346C4.22725 12.0073 4.21968 11.9805 4.21254 11.953C4.1803 11.8313 4.14998 11.7059 4.1213 11.5766C4.11432 11.5461 4.10793 11.5157 4.10124 11.4852C4.07628 11.3733 4.05235 11.2595 4.02947 11.1439L4.01327 11.0629C3.98756 10.9281 3.96304 10.7911 3.93986 10.6517C3.93406 10.618 3.92901 10.5835 3.92351 10.5495C3.90375 10.4278 3.88488 10.3027 3.86719 10.1769L3.85649 10.1017C3.83628 9.9576 3.81816 9.81183 3.80211 9.66471L3.78992 9.554C3.77521 9.41922 3.76169 9.2837 3.74906 9.14713L3.74385 9.09171C3.73048 8.93954 3.71934 8.78737 3.70893 8.6352L3.70046 8.52197C3.69125 8.37708 3.68337 8.23205 3.67669 8.08672L3.6749 8.05061C3.66822 7.89532 3.66302 7.74003 3.6596 7.58459L3.65722 7.47077C3.6541 7.31414 3.65202 7.15737 3.65202 7.00089C3.65202 6.84456 3.6541 6.68779 3.65722 6.53101L3.6596 6.41718C3.66331 6.2616 3.66837 6.10631 3.6749 5.95132L3.67669 5.91506C3.68337 5.76958 3.69125 5.62455 3.70046 5.47981L3.70804 5.36598C3.7183 5.21381 3.72959 5.06165 3.74296 4.90948L3.74816 4.8542C3.7605 4.71764 3.77417 4.58196 3.78903 4.44718L3.80122 4.33647C3.81816 4.18951 3.83628 4.04388 3.8556 3.89944L3.86511 3.82306C3.88265 3.69734 3.90152 3.57356 3.92128 3.45051C3.92678 3.41649 3.93198 3.38201 3.93778 3.34828C3.96096 3.20904 3.98533 3.07203 4.01119 2.9371L4.02724 2.85611C4.04997 2.7405 4.0739 2.62667 4.09916 2.51477C4.10585 2.48431 4.11224 2.45385 4.11922 2.42338C4.14835 2.29499 4.17881 2.16957 4.21046 2.04698C4.21745 2.01964 4.22503 1.99274 4.23246 1.9654C4.26069 1.86138 4.28967 1.76003 4.31939 1.66106L4.34257 1.58409C4.37808 1.46966 4.41494 1.35881 4.45328 1.25137L4.48107 1.17633C4.51465 1.08434 4.54957 0.995181 4.58538 0.908695L4.60916 0.850592C4.65121 0.752664 4.69431 0.659194 4.73874 0.569439L4.77173 0.505838C4.81185 0.427822 4.85287 0.35367 4.89492 0.282045C4.9025 0.269711 4.90978 0.255891 4.91751 0.243409C4.9658 0.164947 5.01543 0.0912412 5.06626 0.0231819C5.07175 0.0161976 5.07666 0.0069844 5.08216 1.42331e-07L1.82601 0C1.06369 -3.33222e-08 1.89566e-07 2.66293 0 6.9997C-1.89566e-07 11.3365 1.06369 13.9994 1.82601 13.9994L5.08424 14Z" />
|
||||
<path d="M13.6056 14C13.6001 13.993 13.5952 13.9839 13.5897 13.9768C13.5389 13.9079 13.4894 13.835 13.441 13.7566C13.4334 13.7441 13.4261 13.7304 13.4184 13.718C13.3765 13.6469 13.3353 13.5722 13.2967 13.4942L13.2638 13.4306C13.2194 13.3408 13.1762 13.2479 13.1343 13.1494L13.1105 13.0913C13.0745 13.0048 13.0397 12.9157 13.006 12.8238L12.9784 12.7486C12.9402 12.641 12.9033 12.5302 12.8675 12.4159L12.8445 12.3389C12.814 12.2394 12.7858 12.138 12.7574 12.0346C12.7501 12.0073 12.7425 11.9805 12.7356 11.953C12.7033 11.8313 12.6728 11.7059 12.6442 11.5766C12.6372 11.5461 12.6308 11.5157 12.6241 11.4852C12.5991 11.3733 12.5752 11.2595 12.5523 11.1439L12.5361 11.0629C12.5101 10.9281 12.4858 10.7911 12.4629 10.6517C12.4571 10.618 12.4519 10.5835 12.4464 10.5495C12.4266 10.4278 12.4077 10.3027 12.3901 10.1769L12.3794 10.1017C12.3591 9.9576 12.341 9.81183 12.325 9.66471L12.3128 9.554C12.2982 9.41922 12.2846 9.2837 12.2721 9.14713L12.2669 9.09171C12.2535 8.93954 12.2422 8.78737 12.2318 8.6352L12.2218 8.52197C12.2126 8.37708 12.2048 8.23205 12.1981 8.08672L12.1963 8.05061C12.1896 7.89532 12.1844 7.74003 12.181 7.58459L12.1786 7.47077C12.1755 7.31414 12.1734 7.15737 12.1734 7.00089C12.1734 6.84456 12.1755 6.68779 12.1786 6.53101L12.181 6.41719C12.1847 6.2616 12.1897 6.10631 12.1963 5.95132L12.1981 5.91506C12.2048 5.76958 12.2126 5.62455 12.2218 5.47981L12.2294 5.36598C12.2397 5.21381 12.251 5.06165 12.2643 4.90948L12.2695 4.8542C12.2819 4.71764 12.2955 4.58196 12.3104 4.44718L12.3226 4.33647C12.3395 4.18951 12.3577 4.04388 12.377 3.89944L12.3865 3.82306C12.404 3.69734 12.4229 3.57356 12.4427 3.45052C12.4482 3.41649 12.4534 3.38201 12.4592 3.34828C12.4823 3.20904 12.5067 3.07203 12.5326 2.9371L12.5486 2.85611C12.5715 2.7405 12.5956 2.62667 12.6205 2.51478C12.6272 2.48431 12.6336 2.45385 12.6406 2.42339C12.6697 2.29499 12.7002 2.16957 12.7318 2.04698C12.7388 2.01964 12.7464 1.99274 12.7538 1.9654C12.7821 1.86138 12.811 1.76003 12.8408 1.66106L12.8639 1.58409C12.8996 1.46966 12.9366 1.35881 12.9747 1.25137L13.0024 1.17633C13.036 1.08434 13.0709 0.995181 13.1068 0.908696L13.1305 0.850593C13.1726 0.752665 13.2157 0.659195 13.2601 0.56944L13.2931 0.505838C13.3332 0.427823 13.3742 0.353671 13.4148 0.282045C13.4224 0.269712 13.4297 0.255892 13.4372 0.243409C13.4857 0.164948 13.5353 0.0912418 13.5861 0.0231825C13.5916 0.0161982 13.5964 0.006985 13.6019 7.40097e-07L10.3474 5.97838e-07C9.58655 5.64581e-07 8.52138 2.66293 8.52138 6.9997C8.52138 11.3365 9.58655 13.9994 10.3474 13.9994L13.6056 14Z" />
|
||||
<path d="M14.6081 14C15.6165 14 16.4341 10.8662 16.4341 7.0003C16.4341 3.13444 15.6165 0.000596472 14.6081 0.000596427C13.5997 0.000596383 12.7821 3.13444 12.7821 7.0003C12.7821 10.8662 13.5997 14 14.6081 14Z" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 530 B After Width: | Height: | Size: 7.7 KiB |
@ -1,8 +1,6 @@
|
||||
<svg width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.000269763 8.11034H1.96745V12.069H13.0328V8.11034H15V14H0.000269763V8.11034Z" fill="#B02AAC"/>
|
||||
<path d="M2.95076 0H4.91794V11.1034H2.95076V0Z" fill="#B02AAC"/>
|
||||
<path d="M6.51135 0H8.47853V11.1034H6.51135V0Z" fill="#B02AAC"/>
|
||||
<path d="M10.0719 0H12.0391V11.1034H10.0719V0Z" fill="#B02AAC"/>
|
||||
<path d="M0 2.89655L1.28982e-07 5.7931L1.96718 4.31586L0 2.89655Z" fill="#B02AAC"/>
|
||||
<path d="M13.0227 2.89655V5.7931L14.9899 4.31586L13.0227 2.89655Z" fill="#B02AAC"/>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="14" viewBox="0 0 17 14" fill="none">
|
||||
<path d="M9.34493 14C9.33943 13.993 9.33452 13.9839 9.32903 13.9768C9.2782 13.9079 9.22872 13.835 9.18028 13.7566C9.1727 13.7441 9.16541 13.7304 9.15769 13.718C9.11578 13.6469 9.07462 13.5722 9.0345 13.4942L9.00166 13.4306C8.95722 13.3408 8.91398 13.2479 8.87193 13.1494L8.8483 13.0913C8.81234 13.0048 8.77757 12.9157 8.74383 12.8238L8.71619 12.7486C8.678 12.641 8.64115 12.5302 8.60534 12.4159L8.5823 12.3389C8.55184 12.2394 8.52346 12.138 8.49522 12.0346C8.48794 12.0073 8.48036 11.9805 8.47323 11.953C8.44099 11.8313 8.41067 11.7059 8.38199 11.5766C8.37501 11.5461 8.36862 11.5157 8.36193 11.4852C8.33696 11.3733 8.31304 11.2595 8.29016 11.1439L8.27396 11.0629C8.24795 10.9281 8.22358 10.7911 8.20055 10.6517C8.19475 10.618 8.1897 10.5835 8.1842 10.5495C8.16444 10.4278 8.14557 10.3027 8.12788 10.1769L8.11718 10.1017C8.09697 9.9576 8.07884 9.81183 8.0628 9.66471L8.05061 9.554C8.0359 9.41922 8.02238 9.2837 8.00975 9.14713L8.00454 9.09171C7.99117 8.93954 7.98002 8.78737 7.96962 8.6352L7.96115 8.52197C7.95194 8.37708 7.94406 8.23205 7.93738 8.08672L7.93559 8.05061C7.92891 7.89532 7.92371 7.74003 7.92029 7.58459L7.91791 7.47077C7.91479 7.31414 7.91271 7.15737 7.91271 7.00089C7.91271 6.84456 7.91479 6.68779 7.91791 6.53101L7.92029 6.41719C7.924 6.2616 7.92906 6.10631 7.93559 5.95132L7.93738 5.91506C7.94406 5.76958 7.95194 5.62455 7.96115 5.47981L7.96873 5.36598C7.97898 5.21381 7.99028 5.06165 8.00365 4.90948L8.00885 4.8542C8.02119 4.71764 8.03486 4.58196 8.04972 4.44718L8.0619 4.33647C8.07885 4.18951 8.09697 4.04388 8.11629 3.89944L8.1258 3.82306C8.14334 3.69734 8.16221 3.57356 8.18197 3.45052C8.18747 3.41649 8.19267 3.38201 8.19847 3.34828C8.22165 3.20904 8.24602 3.07203 8.27188 2.9371L8.28793 2.85611C8.31081 2.7405 8.33488 2.62667 8.35985 2.51477C8.36654 2.48431 8.37293 2.45385 8.37991 2.42339C8.40904 2.29499 8.4395 2.16957 8.47115 2.04698C8.47814 2.01964 8.48571 1.99274 8.49314 1.9654C8.52138 1.86138 8.55036 1.76003 8.58008 1.66106L8.60326 1.58409C8.63892 1.46966 8.67592 1.35881 8.71397 1.25137L8.74175 1.17633C8.77534 1.08434 8.81026 0.995181 8.84607 0.908695L8.86985 0.850592C8.9119 0.752664 8.955 0.659194 8.99943 0.569439L9.03242 0.505838C9.07254 0.427823 9.11355 0.353671 9.15561 0.282045C9.16319 0.269711 9.17047 0.255891 9.1782 0.243409C9.22649 0.164948 9.27612 0.0912415 9.32695 0.0231822C9.33244 0.0161979 9.33735 0.0069847 9.34284 4.4125e-07L6.0867 2.98919e-07C5.32438 2.65597e-07 4.26069 2.66293 4.26069 6.9997C4.26069 11.3365 5.32438 13.9994 6.0867 13.9994L9.34493 14Z" fill="#B02AAC"/>
|
||||
<path d="M5.08424 14C5.07874 13.993 5.07383 13.9839 5.06834 13.9768C5.01751 13.9079 4.96803 13.835 4.91959 13.7566C4.91201 13.7441 4.90473 13.7304 4.897 13.718C4.85509 13.6469 4.81393 13.5722 4.77381 13.4942L4.74097 13.4306C4.69654 13.3408 4.65329 13.2479 4.61124 13.1494L4.58761 13.0913C4.55165 13.0048 4.51688 12.9157 4.48315 12.8238L4.45551 12.7486C4.41732 12.641 4.38046 12.5302 4.34465 12.4159L4.32162 12.3389C4.29115 12.2394 4.26277 12.138 4.23454 12.0346C4.22725 12.0073 4.21968 11.9805 4.21254 11.953C4.1803 11.8313 4.14998 11.7059 4.1213 11.5766C4.11432 11.5461 4.10793 11.5157 4.10124 11.4852C4.07628 11.3733 4.05235 11.2595 4.02947 11.1439L4.01327 11.0629C3.98756 10.9281 3.96304 10.7911 3.93986 10.6517C3.93406 10.618 3.92901 10.5835 3.92351 10.5495C3.90375 10.4278 3.88488 10.3027 3.86719 10.1769L3.85649 10.1017C3.83628 9.9576 3.81816 9.81183 3.80211 9.66471L3.78992 9.554C3.77521 9.41922 3.76169 9.2837 3.74906 9.14713L3.74385 9.09171C3.73048 8.93954 3.71934 8.78737 3.70893 8.6352L3.70046 8.52197C3.69125 8.37708 3.68337 8.23205 3.67669 8.08672L3.6749 8.05061C3.66822 7.89532 3.66302 7.74003 3.6596 7.58459L3.65722 7.47077C3.6541 7.31414 3.65202 7.15737 3.65202 7.00089C3.65202 6.84456 3.6541 6.68779 3.65722 6.53101L3.6596 6.41718C3.66331 6.2616 3.66837 6.10631 3.6749 5.95132L3.67669 5.91506C3.68337 5.76958 3.69125 5.62455 3.70046 5.47981L3.70804 5.36598C3.7183 5.21381 3.72959 5.06165 3.74296 4.90948L3.74816 4.8542C3.7605 4.71764 3.77417 4.58196 3.78903 4.44718L3.80122 4.33647C3.81816 4.18951 3.83628 4.04388 3.8556 3.89944L3.86511 3.82306C3.88265 3.69734 3.90152 3.57356 3.92128 3.45051C3.92678 3.41649 3.93198 3.38201 3.93778 3.34828C3.96096 3.20904 3.98533 3.07203 4.01119 2.9371L4.02724 2.85611C4.04997 2.7405 4.0739 2.62667 4.09916 2.51477C4.10585 2.48431 4.11224 2.45385 4.11922 2.42338C4.14835 2.29499 4.17881 2.16957 4.21046 2.04698C4.21745 2.01964 4.22503 1.99274 4.23246 1.9654C4.26069 1.86138 4.28967 1.76003 4.31939 1.66106L4.34257 1.58409C4.37808 1.46966 4.41494 1.35881 4.45328 1.25137L4.48107 1.17633C4.51465 1.08434 4.54957 0.995181 4.58538 0.908695L4.60916 0.850592C4.65121 0.752664 4.69431 0.659194 4.73874 0.569439L4.77173 0.505838C4.81185 0.427822 4.85287 0.35367 4.89492 0.282045C4.9025 0.269711 4.90978 0.255891 4.91751 0.243409C4.9658 0.164947 5.01543 0.0912412 5.06626 0.0231819C5.07175 0.0161976 5.07666 0.0069844 5.08216 1.42331e-07L1.82601 0C1.06369 -3.33222e-08 1.89566e-07 2.66293 0 6.9997C-1.89566e-07 11.3365 1.06369 13.9994 1.82601 13.9994L5.08424 14Z" fill="#B02AAC"/>
|
||||
<path d="M13.6056 14C13.6001 13.993 13.5952 13.9839 13.5897 13.9768C13.5389 13.9079 13.4894 13.835 13.441 13.7566C13.4334 13.7441 13.4261 13.7304 13.4184 13.718C13.3765 13.6469 13.3353 13.5722 13.2967 13.4942L13.2638 13.4306C13.2194 13.3408 13.1762 13.2479 13.1343 13.1494L13.1105 13.0913C13.0745 13.0048 13.0397 12.9157 13.006 12.8238L12.9784 12.7486C12.9402 12.641 12.9033 12.5302 12.8675 12.4159L12.8445 12.3389C12.814 12.2394 12.7858 12.138 12.7574 12.0346C12.7501 12.0073 12.7425 11.9805 12.7356 11.953C12.7033 11.8313 12.6728 11.7059 12.6442 11.5766C12.6372 11.5461 12.6308 11.5157 12.6241 11.4852C12.5991 11.3733 12.5752 11.2595 12.5523 11.1439L12.5361 11.0629C12.5101 10.9281 12.4858 10.7911 12.4629 10.6517C12.4571 10.618 12.4519 10.5835 12.4464 10.5495C12.4266 10.4278 12.4077 10.3027 12.3901 10.1769L12.3794 10.1017C12.3591 9.9576 12.341 9.81183 12.325 9.66471L12.3128 9.554C12.2982 9.41922 12.2846 9.2837 12.2721 9.14713L12.2669 9.09171C12.2535 8.93954 12.2422 8.78737 12.2318 8.6352L12.2218 8.52197C12.2126 8.37708 12.2048 8.23205 12.1981 8.08672L12.1963 8.05061C12.1896 7.89532 12.1844 7.74003 12.181 7.58459L12.1786 7.47077C12.1755 7.31414 12.1734 7.15737 12.1734 7.00089C12.1734 6.84456 12.1755 6.68779 12.1786 6.53101L12.181 6.41719C12.1847 6.2616 12.1897 6.10631 12.1963 5.95132L12.1981 5.91506C12.2048 5.76958 12.2126 5.62455 12.2218 5.47981L12.2294 5.36598C12.2397 5.21381 12.251 5.06165 12.2643 4.90948L12.2695 4.8542C12.2819 4.71764 12.2955 4.58196 12.3104 4.44718L12.3226 4.33647C12.3395 4.18951 12.3577 4.04388 12.377 3.89944L12.3865 3.82306C12.404 3.69734 12.4229 3.57356 12.4427 3.45052C12.4482 3.41649 12.4534 3.38201 12.4592 3.34828C12.4823 3.20904 12.5067 3.07203 12.5326 2.9371L12.5486 2.85611C12.5715 2.7405 12.5956 2.62667 12.6205 2.51478C12.6272 2.48431 12.6336 2.45385 12.6406 2.42339C12.6697 2.29499 12.7002 2.16957 12.7318 2.04698C12.7388 2.01964 12.7464 1.99274 12.7538 1.9654C12.7821 1.86138 12.811 1.76003 12.8408 1.66106L12.8639 1.58409C12.8996 1.46966 12.9366 1.35881 12.9747 1.25137L13.0024 1.17633C13.036 1.08434 13.0709 0.995181 13.1068 0.908696L13.1305 0.850593C13.1726 0.752665 13.2157 0.659195 13.2601 0.56944L13.2931 0.505838C13.3332 0.427823 13.3742 0.353671 13.4148 0.282045C13.4224 0.269712 13.4297 0.255892 13.4372 0.243409C13.4857 0.164948 13.5353 0.0912418 13.5861 0.0231825C13.5916 0.0161982 13.5964 0.006985 13.6019 7.40097e-07L10.3474 5.97838e-07C9.58655 5.64581e-07 8.52138 2.66293 8.52138 6.9997C8.52138 11.3365 9.58655 13.9994 10.3474 13.9994L13.6056 14Z" fill="#B02AAC"/>
|
||||
<path d="M14.6081 14C15.6165 14 16.4341 10.8662 16.4341 7.0003C16.4341 3.13444 15.6165 0.000596472 14.6081 0.000596427C13.5997 0.000596383 12.7821 3.13444 12.7821 7.0003C12.7821 10.8662 13.5997 14 14.6081 14Z" fill="#B02AAC"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 611 B After Width: | Height: | Size: 7.7 KiB |
@ -26,6 +26,7 @@ import {
|
||||
getUserTeams,
|
||||
} from '../../utils/CommonUtils';
|
||||
import { serviceTypeLogo } from '../../utils/ServiceUtils';
|
||||
import { bytesToSize } from '../../utils/StringsUtils';
|
||||
import {
|
||||
getOwnerFromId,
|
||||
getTagsWithoutTier,
|
||||
@ -292,12 +293,22 @@ const MyTopicDetailPage = () => {
|
||||
return [
|
||||
{ key: 'Partitions', value: partitions },
|
||||
{ key: 'Replication Factor', value: replicationFactor },
|
||||
{ key: 'Retention Size', value: retentionSize.toLocaleString() },
|
||||
{ key: 'CleanUp Policies', value: cleanupPolicies.join() },
|
||||
{ key: 'Retention Size', value: bytesToSize(retentionSize) },
|
||||
{ key: 'CleanUp Policies', value: cleanupPolicies.join(',') },
|
||||
{ key: 'Max Message Size', value: maximumMessageSize },
|
||||
];
|
||||
};
|
||||
|
||||
const getConfigObject = () => {
|
||||
return {
|
||||
Partitions: partitions,
|
||||
'Replication Factor': replicationFactor,
|
||||
'Retention Size': retentionSize,
|
||||
'CleanUp Policies': cleanupPolicies,
|
||||
'Max Message Size': maximumMessageSize,
|
||||
};
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
fetchTopicDetail(topicFQN);
|
||||
}, [topicFQN]);
|
||||
@ -317,6 +328,7 @@ const MyTopicDetailPage = () => {
|
||||
extraInfo={[
|
||||
{ key: 'Owner', value: owner?.name || '' },
|
||||
{ key: 'Tier', value: tier ? tier.split('.')[1] : '' },
|
||||
...getConfigDetails(),
|
||||
]}
|
||||
followers={followers}
|
||||
followHandler={followTopic}
|
||||
@ -365,16 +377,7 @@ const MyTopicDetailPage = () => {
|
||||
/>
|
||||
)}
|
||||
{activeTab === 3 && (
|
||||
<div className="tw-grid tw-grid-cols-5 tw-gap-2 ">
|
||||
{getConfigDetails().map((config, index) => (
|
||||
<div
|
||||
className="tw-card tw-py-2 tw-px-3 tw-group"
|
||||
key={index}>
|
||||
<p className="tw-text-grey-muted">{config.key}</p>
|
||||
<p className="tw-text-lg">{config.value}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<SchemaEditor value={JSON.stringify(getConfigObject())} />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -63,3 +63,20 @@ export const isValidJSONString = (data?: string): boolean => {
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
export const bytesToSize = (bytes: number) => {
|
||||
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
||||
if (bytes === 0) {
|
||||
return `${bytes} ${sizes[0]}`;
|
||||
} else {
|
||||
const i = parseInt(
|
||||
Math.floor(Math.log(bytes) / Math.log(1024)).toString(),
|
||||
10
|
||||
);
|
||||
if (i === 0) {
|
||||
return `${bytes} ${sizes[i]}`;
|
||||
} else {
|
||||
return `${(bytes / 1024 ** i).toFixed(2)} ${sizes[i]}`;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user