feat: Update user avatar

1. Update user avatar
2. Update module export

Change-Id: Icd270c2ff153ec51a9c382b372c87fc61da429ab
This commit is contained in:
Jingwei.Zhang 2021-09-14 14:40:26 +08:00
parent c1b971fbc0
commit 5acb43f7ee
2 changed files with 16 additions and 13 deletions

View File

@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg width="138px" height="138px" viewBox="0 0 138 138" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="138px" height="138px" viewBox="0 0 138 138" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>profile</title>
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g transform="translate(-308.000000, -123.000000)" fill-rule="nonzero"> <g transform="translate(-309.000000, -123.000000)" fill-rule="nonzero">
<g transform="translate(308.000000, 123.000000)"> <g transform="translate(309.000000, 123.000000)">
<path d="M69.0005616,0 C30.895271,0 0,30.977238 0,69.1836242 C0,92.7160781 11.7230202,113.502131 29.6301484,126 C33.1335216,113.76675 42.0095949,104.563661 54.082447,100.389447 C54.4651746,100.257724 54.8496696,100.131221 55.2358255,100.009973 C55.4200067,99.9519826 55.6019417,99.8923027 55.7872461,99.836564 C56.3590854,99.6642588 56.9343989,99.5037647 57.5128215,99.3551837 L57.5470748,99.3473015 C58.1243629,99.2013486 58.7045403,99.0671351 59.2872501,98.9447438 C59.4736773,98.9053325 59.6617892,98.8698624 59.8487781,98.8327033 C60.4825402,98.7061067 61.1188928,98.592915 61.7574119,98.4932035 C62.1915301,98.4260671 62.6265703,98.3650675 63.0624029,98.3102228 C63.2544455,98.286013 63.445365,98.2589882 63.6385306,98.2370305 C64.2680436,98.1634845 64.8989511,98.1024789 65.53088,98.0540497 L68.0296797,98.0540497 C68.2846134,98.0692511 68.5389855,98.0692511 68.7939193,98.0540497 L69.0005616,98.0540497 C51.0586186,98.0540497 36.5139202,83.4707633 36.5139202,65.4812193 C36.5139202,65.3100619 36.5240278,65.1411566 36.5268354,64.9711252 C36.3499541,44.3787501 55.6008187,31.9726535 69.0325687,32.8920615 C82.8169582,31.9506958 102.729303,44.973297 101.56694,66.4546771 C101.532687,66.4760718 101.495626,66.4923994 101.461373,66.5132309 C100.916129,84.0242097 86.5966033,98.0540497 69,98.0540497 L72.5016887,98.0540497 C73.1384615,98.1019061 73.7679345,98.1649641 74.3934765,98.2370305 C74.5872037,98.2589882 74.7786847,98.2860131 74.9707274,98.3102228 C75.6196609,98.3927923 76.2668609,98.4885249 76.9119296,98.5973619 C77.3370063,98.6694281 77.7581523,98.7482506 78.1770523,98.8315772 C78.3674104,98.8692994 78.5594529,98.9053325 78.7481262,98.9453068 C79.3162898,99.0649175 79.8820457,99.1957507 80.4450639,99.3377303 C80.4826863,99.3473016 80.5214317,99.3563098 80.559054,99.3664442 C81.1204896,99.5108569 81.6789501,99.6666571 82.2340921,99.8337489 C82.4323115,99.8928658 82.6266003,99.9570498 82.8225735,100.018419 C83.1937436,100.135526 83.5626674,100.256012 83.9287836,100.382128 C96.0061279,104.551275 104.887255,113.750422 108.396805,125.98142 C126.28821,113.4813 138,92.7048178 138,69.1836242 C138,30.976675 107.106414,0 69.0005616,0 L69.0005616,0 Z" fill="#A6D4AE"></path> <path d="M69.0005616,0 C30.895271,0 0,30.977238 0,69.1836242 C0,92.7160781 11.7230202,113.502131 29.6301484,126 C33.1335216,113.76675 42.0095949,104.563661 54.082447,100.389447 C54.4651746,100.257724 54.8496696,100.131221 55.2358255,100.009973 C55.4200067,99.9519826 55.6019417,99.8923027 55.7872461,99.836564 C56.3590854,99.6642588 56.9343989,99.5037647 57.5128215,99.3551837 L57.5470748,99.3473015 C58.1243629,99.2013486 58.7045403,99.0671351 59.2872501,98.9447438 C59.4736773,98.9053325 59.6617892,98.8698624 59.8487781,98.8327033 C60.4825402,98.7061067 61.1188928,98.592915 61.7574119,98.4932035 C62.1915301,98.4260671 62.6265703,98.3650675 63.0624029,98.3102228 C63.2544455,98.286013 63.445365,98.2589882 63.6385306,98.2370305 C64.2680436,98.1634845 64.8989511,98.1024789 65.53088,98.0540497 L68.0296797,98.0540497 C68.2846134,98.0692511 68.5389855,98.0692511 68.7939193,98.0540497 L69.0005616,98.0540497 C51.0586186,98.0540497 36.5139202,83.4707633 36.5139202,65.4812193 C36.5139202,65.3100619 36.5240278,65.1411566 36.5268354,64.9711252 C36.3499541,44.3787501 55.6008187,31.9726535 69.0325687,32.8920615 C82.8169582,31.9506958 102.729303,44.973297 101.56694,66.4546771 C101.532687,66.4760718 101.495626,66.4923994 101.461373,66.5132309 C100.916129,84.0242097 86.5966033,98.0540497 69,98.0540497 L72.5016887,98.0540497 C73.1384615,98.1019061 73.7679345,98.1649641 74.3934765,98.2370305 C74.5872037,98.2589882 74.7786847,98.2860131 74.9707274,98.3102228 C75.6196609,98.3927923 76.2668609,98.4885249 76.9119296,98.5973619 C77.3370063,98.6694281 77.7581523,98.7482506 78.1770523,98.8315772 C78.3674104,98.8692994 78.5594529,98.9053325 78.7481262,98.9453068 C79.3162898,99.0649175 79.8820457,99.1957507 80.4450639,99.3377303 C80.4826863,99.3473016 80.5214317,99.3563098 80.559054,99.3664442 C81.1204896,99.5108569 81.6789501,99.6666571 82.2340921,99.8337489 C82.4323115,99.8928658 82.6266003,99.9570498 82.8225735,100.018419 C83.1937436,100.135526 83.5626674,100.256012 83.9287836,100.382128 C96.0061279,104.551275 104.887255,113.750422 108.396805,125.98142 C126.28821,113.4813 138,92.7048178 138,69.1836242 C138,30.976675 107.106414,0 69.0005616,0 L69.0005616,0 Z" fill="#A7DDE7"></path>
<path d="M102,66.2979831 C92.4666142,72.1607624 72.8305595,62.0016298 69.5446772,48 C66.2632908,62.0519954 46.5260801,72.2388573 37.0477682,66.238563 C37.0250277,65.7418363 37.0134105,65.2446565 37.0129255,64.7474025 C37.0101156,64.9188718 37,65.0886434 37,65.2601127 C37,83.34192 51.5563404,98 69.5126445,98 C87.1233324,98.0005659 101.45432,83.8987708 102,66.2979831 L102,66.2979831 Z" fill="#FCE9EA"></path> <path d="M102,65.6639428 C92.3199468,71.6439776 72.3817989,61.2816624 69.0453645,47 C65.7134953,61.3330353 45.6726351,71.7236345 36.0485031,65.6033342 C36.0254127,65.096673 36.0136168,64.5895496 36.0131244,64.0823506 C36.0102712,64.2572493 36,64.4304162 36,64.605315 C36,83.0487584 50.7802841,98 69.012839,98 C86.8944605,98.0005772 101.445925,83.6167462 102,65.6639428 L102,65.6639428 Z" fill="#FCE9EA"></path>
<path d="M84.460406,100.138167 C84.5843064,100.180818 84.7070804,100.225153 84.8298544,100.268365 C84.4625059,101.307192 83.9892084,102.305738 83.4173903,103.24833 C85.7484067,106.793423 85.1655119,122.317302 81.6675791,119.865424 L75.5694284,115.601998 L69.4870468,111.338571 L69.8863439,111.057972 C69.7534326,111.061339 69.6210845,111.068073 69.4870468,111.068073 C69.3473773,111.068073 69.2099605,111.060778 69.0714173,111.057411 L69.4707144,111.338571 L63.3883329,115.601998 L57.2901821,119.865424 C53.8012605,122.320108 53.2121704,106.758628 55.5493819,103.235984 C54.9825162,102.299878 54.5126567,101.308753 54.1470551,100.277906 C54.272645,100.23301 54.398235,100.188114 54.5243879,100.144901 C42.415943,104.305629 33.5137017,113.479544 30,125.672709 C41.1994668,133.441383 54.8082324,138 69.4864836,138 C84.1765617,138 97.7960278,133.434087 109,125.654189 C105.48123,113.46327 96.5733564,104.293844 84.460406,100.138167 Z M63.5313814,98.0729558 C63.7239902,98.0488242 63.9154726,98.0218867 64.1092077,98 C63.9154726,98.0218867 63.7245533,98.0488243 63.5313814,98.0729558 Z M59.7450989,98.7054267 C59.9320757,98.6661428 60.1207422,98.6307873 60.3082823,98.5937482 C60.1207422,98.6307873 59.9320757,98.6661428 59.7450989,98.7054267 Z M57.965439,99.1139794 L57.9997932,99.1061226 C57.9885296,99.1094898 57.9767028,99.1117346 57.965439,99.1139794 Z M78.6917177,98.5926257 C78.8826369,98.6302261 79.0752457,98.6661428 79.2644753,98.7059879 C79.0752457,98.6661428 78.8826369,98.6302261 78.6917177,98.5926257 Z M82.7612815,99.5915595 C82.9600853,99.6504854 83.1549468,99.7144621 83.3514978,99.7756327 C83.1549468,99.7144621 82.9595221,99.6504854 82.7612815,99.5915595 Z M80.9664158,99.0971435 C81.0041492,99.1066839 81.0430088,99.115663 81.080742,99.1257646 C81.0430087,99.115663 81.0047123,99.1066839 80.9664158,99.0971435 Z M55.68173,99.7672147 C55.8664542,99.7094112 56.0489256,99.6499241 56.2347763,99.5943655 C56.0494889,99.6499243 55.8664543,99.7094112 55.68173,99.7672147 Z M74.8969874,98 C75.0912857,98.0218867 75.2833312,98.0488243 75.4759399,98.0729558 C75.2833312,98.0488242 75.0912856,98.0218867 74.8969874,98 Z" fill="#F08E83"></path> <path d="M84.460406,100.138167 C84.5843064,100.180818 84.7070804,100.225153 84.8298544,100.268365 C84.4625059,101.307192 83.9892084,102.305738 83.4173903,103.24833 C85.7484067,106.793423 85.1655119,122.317302 81.6675791,119.865424 L75.5694284,115.601998 L69.4870468,111.338571 L69.8863439,111.057972 C69.7534326,111.061339 69.6210845,111.068073 69.4870468,111.068073 C69.3473773,111.068073 69.2099605,111.060778 69.0714173,111.057411 L69.4707144,111.338571 L63.3883329,115.601998 L57.2901821,119.865424 C53.8012605,122.320108 53.2121704,106.758628 55.5493819,103.235984 C54.9825162,102.299878 54.5126567,101.308753 54.1470551,100.277906 C54.272645,100.23301 54.398235,100.188114 54.5243879,100.144901 C42.415943,104.305629 33.5137017,113.479544 30,125.672709 C41.1994668,133.441383 54.8082324,138 69.4864836,138 C84.1765617,138 97.7960278,133.434087 109,125.654189 C105.48123,113.46327 96.5733564,104.293844 84.460406,100.138167 Z M63.5313814,98.0729558 C63.7239902,98.0488242 63.9154726,98.0218867 64.1092077,98 C63.9154726,98.0218867 63.7245533,98.0488243 63.5313814,98.0729558 Z M59.7450989,98.7054267 C59.9320757,98.6661428 60.1207422,98.6307873 60.3082823,98.5937482 C60.1207422,98.6307873 59.9320757,98.6661428 59.7450989,98.7054267 Z M57.965439,99.1139794 L57.9997932,99.1061226 C57.9885296,99.1094898 57.9767028,99.1117346 57.965439,99.1139794 Z M78.6917177,98.5926257 C78.8826369,98.6302261 79.0752457,98.6661428 79.2644753,98.7059879 C79.0752457,98.6661428 78.8826369,98.6302261 78.6917177,98.5926257 Z M82.7612815,99.5915595 C82.9600853,99.6504854 83.1549468,99.7144621 83.3514978,99.7756327 C83.1549468,99.7144621 82.9595221,99.6504854 82.7612815,99.5915595 Z M80.9664158,99.0971435 C81.0041492,99.1066839 81.0430088,99.115663 81.080742,99.1257646 C81.0430087,99.115663 81.0047123,99.1066839 80.9664158,99.0971435 Z M55.68173,99.7672147 C55.8664542,99.7094112 56.0489256,99.6499241 56.2347763,99.5943655 C56.0494889,99.6499243 55.8664543,99.7094112 55.68173,99.7672147 Z M74.8969874,98 C75.0912857,98.0218867 75.2833312,98.0488243 75.4759399,98.0729558 C75.2833312,98.0488242 75.0912856,98.0218867 74.8969874,98 Z" fill="#404040"></path>
<path d="M55.4163071,103.315729 C55.885754,102.628621 56.4712824,102.405641 57.1751684,102.884635 L63.3365884,107.067296 L69.0780667,110.989539 C69.2180473,110.992843 69.3568897,111 69.4980084,111 C69.6334368,111 69.767158,110.993393 69.9014483,110.99009 L75.6434956,107.067296 L81.8049156,102.884635 C82.5122157,102.402888 83.1011582,102.630823 83.5728814,103.327842 C84.1507381,102.40316 84.6289514,101.42352 85,100.404328 C84.8753831,100.361935 84.7513354,100.31844 84.6267185,100.276597 C84.2546982,100.153254 83.8810046,100.034688 83.5057362,99.9209301 C83.3071459,99.8609183 83.1102627,99.7981536 82.9093963,99.7403439 C82.3468198,99.577018 81.7809032,99.4246635 81.21199,99.2833729 C81.1738652,99.2734627 81.1346023,99.2646537 81.0964776,99.255294 C80.525926,99.1165143 79.9526163,98.9885745 79.3768792,98.8715483 C79.1856863,98.8324581 78.9910792,98.7972218 78.7981791,98.7603337 C77.7217712,98.5529072 76.638029,98.3828563 75.5490372,98.2505082 C75.3538611,98.2268338 75.159823,98.2004066 74.964078,98.1789345 C74.3263456,98.1070411 73.6872032,98.0473846 73.0470273,98 L69.2891757,98 C69.0308376,98.0148653 68.7730686,98.0148653 68.5147305,98 L65.9825621,98 C65.3421992,98.047411 64.7028677,98.1070675 64.0649424,98.1789345 C63.8691973,98.2004066 63.6757282,98.2268339 63.4811211,98.2505082 C63.0378494,98.3050145 62.5962848,98.3639252 62.1587034,98.4294426 C61.5116905,98.5271403 60.8668443,98.6378282 60.2245819,98.7614349 C60.035096,98.7977723 59.8439031,98.8324581 59.6555553,98.8709978 C59.0650641,98.9906827 58.477139,99.1219282 57.8921419,99.2646535 L57.8574313,99.2723615 C57.271426,99.4181692 56.6884405,99.5751113 56.1088126,99.7430968 C55.9210338,99.797603 55.7361001,99.8559631 55.5500285,99.9126715 C55.1586333,100.030989 54.7690002,100.154696 54.3812478,100.283754 C54.2537859,100.326148 54.1268929,100.370193 54,100.414238 C54.3690737,101.425416 54.8436246,102.397596 55.4163071,103.315729 L55.4163071,103.315729 Z" fill="#FEFEFE"></path> <path d="M55.4163071,103.315729 C55.885754,102.628621 56.4712824,102.405641 57.1751684,102.884635 L63.3365884,107.067296 L69.0780667,110.989539 C69.2180473,110.992843 69.3568897,111 69.4980084,111 C69.6334368,111 69.767158,110.993393 69.9014483,110.99009 L75.6434956,107.067296 L81.8049156,102.884635 C82.5122157,102.402888 83.1011582,102.630823 83.5728814,103.327842 C84.1507381,102.40316 84.6289514,101.42352 85,100.404328 C84.8753831,100.361935 84.7513354,100.31844 84.6267185,100.276597 C84.2546982,100.153254 83.8810046,100.034688 83.5057362,99.9209301 C83.3071459,99.8609183 83.1102627,99.7981536 82.9093963,99.7403439 C82.3468198,99.577018 81.7809032,99.4246635 81.21199,99.2833729 C81.1738652,99.2734627 81.1346023,99.2646537 81.0964776,99.255294 C80.525926,99.1165143 79.9526163,98.9885745 79.3768792,98.8715483 C79.1856863,98.8324581 78.9910792,98.7972218 78.7981791,98.7603337 C77.7217712,98.5529072 76.638029,98.3828563 75.5490372,98.2505082 C75.3538611,98.2268338 75.159823,98.2004066 74.964078,98.1789345 C74.3263456,98.1070411 73.6872032,98.0473846 73.0470273,98 L69.2891757,98 C69.0308376,98.0148653 68.7730686,98.0148653 68.5147305,98 L65.9825621,98 C65.3421992,98.047411 64.7028677,98.1070675 64.0649424,98.1789345 C63.8691973,98.2004066 63.6757282,98.2268339 63.4811211,98.2505082 C63.0378494,98.3050145 62.5962848,98.3639252 62.1587034,98.4294426 C61.5116905,98.5271403 60.8668443,98.6378282 60.2245819,98.7614349 C60.035096,98.7977723 59.8439031,98.8324581 59.6555553,98.8709978 C59.0650641,98.9906827 58.477139,99.1219282 57.8921419,99.2646535 L57.8574313,99.2723615 C57.271426,99.4181692 56.6884405,99.5751113 56.1088126,99.7430968 C55.9210338,99.797603 55.7361001,99.8559631 55.5500285,99.9126715 C55.1586333,100.030989 54.7690002,100.154696 54.3812478,100.283754 C54.2537859,100.326148 54.1268929,100.370193 54,100.414238 C54.3690737,101.425416 54.8436246,102.397596 55.4163071,103.315729 L55.4163071,103.315729 Z" fill="#FEFEFE"></path>
<path d="M81.817452,102.266555 L75.6532449,106.629068 L69.9086002,110.720539 L69.5049779,111.007659 L75.6532449,115.370172 L81.817452,119.732685 C85.3538441,122.241546 85.9424838,106.356877 83.5862174,102.729394 C83.1148503,102.00183 82.5256413,101.764094 81.817452,102.266555 Z M57.1765638,102.266555 C56.4729288,101.766965 55.8865663,101.999533 55.4169069,102.716186 C53.0543784,106.320126 53.6498494,122.243843 57.1765638,119.732111 L63.3407708,115.369598 L69.4890378,111.007085 L69.0854155,110.71939 L63.3413401,106.628494 L57.1765638,102.266555 Z" fill="#CFE07D"></path> <path d="M81.9191254,102.281364 L75.9518473,106.886238 L70.2976622,111 L69.5,111.5 L75.9518473,116.11296 L81.9191254,120.717834 C85.3425398,123.366076 85.9123741,106.598926 83.6313838,102.769916 C83.1750755,102.001932 82.6046901,101.750988 81.9191254,102.281364 Z M57.0762696,102.281308 C56.3948506,101.753944 55.8270014,101.999441 55.3721707,102.755935 C53.0842346,106.560228 53.6609047,123.369188 57.0762696,120.717821 L63.0458532,116.112784 L69.5,111.5 L68.5644584,111 L63.0464045,106.885739 L57.0762696,102.281308 Z" fill="#7DB5E0"></path>
<path d="M69,48.3080856 L69,33.0473089 C55.3645209,32.137191 35.8216643,44.4173734 36.0012286,64.802231 C36.0052189,65.288779 36.0097792,65.7753271 36.0365714,66.2707924 C45.6509523,72.1790349 65.6715066,62.1471167 69,48.3080856 L69,48.3080856 Z" fill="#ADBE20"></path> <path d="M69,48.3080856 L69,33.0473089 C55.3645209,32.137191 35.8216643,44.4173734 36.0012286,64.802231 C36.0052189,65.288779 36.0097792,65.7753271 36.0365714,66.2707924 C45.6509523,72.1790349 65.6715066,62.1471167 69,48.3080856 L69,48.3080856 Z" fill="#DFBDA3"></path>
<path d="M69,48.3099473 C72.3252169,62.1010379 92.1963315,72.10741 101.84384,66.3327879 C101.878531,66.3121643 101.916065,66.2959999 101.950756,66.2748188 C103.127406,45.0079338 82.9605655,32.1153655 69.0005687,33.0473314 L69.0005687,48.3099473 L69,48.3099473 Z" fill="#7EA701"></path> <path d="M69,48.3099473 C72.3252169,62.1010379 92.1963315,72.10741 101.84384,66.3327879 C101.878531,66.3121643 101.916065,66.2959999 101.950756,66.2748188 C103.127406,45.0079338 82.9605655,32.1153655 69.0005687,33.0473314 L69.0005687,48.3099473 L69,48.3099473 Z" fill="#ECCBB2"></path>
</g> </g>
</g> </g>
</g> </g>

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -20,9 +20,7 @@ import globalSecurityGroupStore, {
import { emptyActionConfig } from 'utils/constants'; import { emptyActionConfig } from 'utils/constants';
import actionConfigs from './actions'; import actionConfigs from './actions';
@inject('rootStore') export class SecurityGroups extends Base {
@observer
export default class SecurityGroups extends Base {
init() { init() {
this.store = globalSecurityGroupStore; this.store = globalSecurityGroupStore;
this.downloadStore = new SecurityGroupStore(); this.downloadStore = new SecurityGroupStore();
@ -62,11 +60,15 @@ export default class SecurityGroups extends Base {
return true; return true;
} }
get detailLink() {
return `/network/${this.getUrl('security-group')}/detail`;
}
getColumns = () => [ getColumns = () => [
{ {
title: t('ID/Name'), title: t('ID/Name'),
dataIndex: 'name', dataIndex: 'name',
linkPrefix: `/network/${this.getUrl('security-group')}/detail`, linkPrefix: this.detailLink,
}, },
{ {
title: t('Project ID/Name'), title: t('Project ID/Name'),
@ -95,3 +97,5 @@ export default class SecurityGroups extends Base {
]; ];
} }
} }
export default inject('rootStore')(observer(SecurityGroups));