Refine and clean files and variables (#10)
This commit is contained in:
1 parent
0e6018e9b2
commit
6e980c7c34
45 files changed
+98
-522
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 70 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 61 KiB |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-v-2cb57da0="" version="1.0" viewBox="0 0 340.000000 250.000000" preserveAspectRatio="xMidYMid meet" color-interpolation-filters="sRGB" style="width: 356px;height: 197px;"> <g data-v-2cb57da0="" class="iconmbgsvg" transform="" style=" transform: scale(2.3333) translate(-21px, 0px); "><g fill="#cfe2f3" hollow-target="textRect"><g mask="url(#ad7efdae-2c7e-4fea-9fed-3d684c16950b)" opacity="1" transform="matrix(1,0,0,1,0,0)"><g><rect fill="#cfe2f3" fill-opacity="0" stroke-width="2" x="0" y="0" width="150" height="105.60182479953254" class="image-rect"/> <svg x="0" y="0" width="150" height="105.60182479953254" filtersec="colorsb4534076794" class="image-svg-svg primary" style="overflow: visible;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 334.6099853515625 235.57000732421875"><path d="M103.19 175.1l13.62 10-69.51 50.47 26.62-81.9 13.65 10-9.7 29.84zM334.61 90H153.08l-11.67 16.08zM123.84 52V0L94.66 89.82l11.62 16.23z" fill="#cfe2f3"/><path d="M123.84 52V0l29.24 90-11.67 16.08zm28.42 87.45l17.56 54.05-120.36-87.45h56.82L94.66 89.82v.16H0l200.38 145.59-48.12-96.12" fill="#1891db"/></svg></svg> <!----></g></g> <g transform="translate(57.30999755859375,54.056854248046875)"><g data-gra="path-name" fill-rule="" class="tp-name" transform="matrix(1,0,0,1,0,0)" opacity="1"><g transform="scale(1)"><g><path d="M23.42 0.44L27.88-31.12 26.26-32.98 44.88-32.98 40.18 0.44 23.42 0.44ZM15.39-34.84L13.96-32.05 25.23-32.05 24.55-27.39 21.27-27.39 18.42-20.87 24.6-20.87 23.91-16.22 16.37-16.22 15.53-14.36 19.01-14.36 22.49 0.44 14.11 0.44 12.35-7.11 9.02 0.44 0.15 0.44 7.5-16.22 1.57-16.22 2.25-20.87 9.55-20.87 12.45-27.39 11.61-27.39 10.19-24.6 2.74-24.6 7.25-33.47 6.08-34.84 15.39-34.84ZM31.56-4.12L33.42-4.12 36.8-28.32 34.94-28.32 31.56-4.12ZM79.58 0.44L76.83-5.05 73.06 0.44 57.23 0.44 56.01-0.69 54.44 0.44 45.13 0.44 51.84-4.46 48.17-7.84 48.8-12.5 46.99-12.5 47.63-17.15 49.44-17.15 49.69-18.72 56.2-18.72 55.96-17.15 60.61-17.15 60.86-18.72 67.38-18.72 67.13-17.15 69.04-17.15 68.4-12.5 66.49-12.5 65.86-7.84 61.2-4.46 65.95-0.05 73.7-11.32 69.43-19.94 76.88-19.94 78.06-17.59 79.67-19.94 79.67-19.99 80.56-26.46 78.79-26.46 77.13-21.8 69.68-21.8 73.89-33.71 72.96-34.84 81.78-34.84 80.46-31.12 90.06-31.12 89.42-26.46 88-26.46 87.12-19.99 81.14-11.32 87.02 0.44 79.58 0.44ZM47.87-19.01L51.45-24.6 48.66-24.6 49.34-29.25 56.79-29.25 57.33-33.03 56.5-34.84 64.09-34.84 63.31-29.25 70.76-29.25 70.07-24.6 67.03-24.6 69.29-19.01 63.7-19.01 62.33-22.39 61.84-19.01 55.32-19.01 55.86-22.74 53.46-19.01 47.87-19.01ZM64.34-30.18L65.81-33.91 71.39-33.91 69.92-30.18 64.34-30.18ZM55.57-33.91L55.96-30.18 50.37-30.18 49.98-33.91 55.57-33.91ZM57.09-8.23L59.68-10.14 59.98-12.5 55.32-12.5 55.03-10.14 57.09-8.23ZM117.5-14.5L126.17-14.5 129.12 0.34 120.44 0.34 120.1-1.27 92.17 0 92.85-5.05 102.02-17.69 91.83-17.69 92.46-22.39 133.53-22.39 132.89-17.69 112.26-17.69 103.63-5.59 119.12-6.32 117.5-14.5ZM97.75-33.96L132.3-33.96 131.61-29.16 97.07-29.16 97.75-33.96Z" transform="translate(-0.15000000596046448, 34.84000015258789)" style=" fill: white; "/></g> <!----> <!----> <!----> <!----> <!----> <!----> <!----></g></g> <g data-gra="path-slogan" fill-rule="" class="tp-slogan" fill="#1891db" transform="matrix(1,0,0,1,12.950004577636719,40.279998779296875)" opacity="1"><!----> <!----> <g transform="scale(1, 1)"><g transform="scale(1)"><path d="M1.59-0.95L6.45-0.95L6.45 0L0.26 0L0.26-0.86L5.07-6.96L0.60-6.96L0.60-7.86L6.45-7.86L6.45-6.96L1.59-0.95ZM9.55-4.64L13.68-4.64L13.68-7.86L14.75-7.86L14.75 0L13.68 0L13.68-3.65L9.55-3.65L9.55 0L8.48 0L8.48-7.86L9.55-7.86L9.55-4.64ZM17.55-7.86L18.63-7.86L18.63 0L17.55 0L17.55-7.86ZM27.19-5.59L27.19-5.59L26.20-5.59Q26.12-7.09 24.23-7.18L24.23-7.18Q22.46-7.13 22.46-5.80L22.46-5.80Q22.46-4.94 23.41-4.81L23.41-4.81L25.64-4.30Q27.41-3.87 27.41-2.15L27.41-2.15Q27.36 0.04 24.31 0.13L24.31 0.13Q22.64 0.13 21.95-0.56L21.95-0.56Q21.09-1.20 21.13-2.54L21.13-2.54L22.16-2.54Q22.21-0.73 24.31-0.69L24.31-0.69Q26.38-0.73 26.42-2.02L26.42-2.02Q26.59-3.09 24.70-3.44L24.70-3.44L23.07-3.78Q21.39-4.25 21.39-5.67L21.39-5.67Q21.52-7.99 24.14-8.08L24.14-8.08Q27.11-8.08 27.19-5.59ZM30.81-4.64L34.94-4.64L34.94-7.86L36.01-7.86L36.01 0L34.94 0L34.94-3.65L30.81-3.65L30.81 0L29.74 0L29.74-7.86L30.81-7.86L30.81-4.64ZM43.84-2.92L43.84-7.86L44.92-7.86L44.92-2.79Q44.79 0.04 41.70 0.13L41.70 0.13Q38.82 0.04 38.69-2.62L38.69-2.62L38.69-7.86L39.76-7.86L39.76-2.92Q39.80-0.77 41.74-0.73L41.74-0.73Q43.84-0.77 43.84-2.92L43.84-2.92ZM53.91-7.86L50.95-3.18L50.95 0L49.87 0L49.87-3.18L46.91-7.86L48.15-7.86L50.39-4.08L52.66-7.86L53.91-7.86ZM61.05-2.92L61.05-7.86L62.13-7.86L62.13-2.79Q62 0.04 58.91 0.13L58.91 0.13Q56.03 0.04 55.90-2.62L55.90-2.62L55.90-7.86L56.97-7.86L56.97-2.92Q57.02-0.77 58.95-0.73L58.95-0.73Q61.05-0.77 61.05-2.92L61.05-2.92ZM66.05-7.86L70.00-1.50L70.00-7.86L71.04-7.86L71.04 0L69.83 0L65.84-6.36L65.79-6.36L65.79 0L64.76 0L64.76-7.86L66Line truncated
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-v-2cb57da0="" version="1.0" viewBox="0 0 340.000000 250.000000" preserveAspectRatio="xMidYMid meet" color-interpolation-filters="sRGB" style="width: 356px;height: 197px;"> <g data-v-2cb57da0="" class="iconmbgsvg" transform="" style=" transform: scale(2.3333) translate(-21px, 0px); "><g fill="#cfe2f3" hollow-target="textRect"><g mask="url(#ad7efdae-2c7e-4fea-9fed-3d684c16950b)" opacity="1" transform="matrix(1,0,0,1,0,0)"><g><rect fill="#cfe2f3" fill-opacity="0" stroke-width="2" x="0" y="0" width="150" height="105.60182479953254" class="image-rect"/> <svg x="0" y="0" width="150" height="105.60182479953254" filtersec="colorsb4534076794" class="image-svg-svg primary" style="overflow: visible;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 334.6099853515625 235.57000732421875"><path d="M103.19 175.1l13.62 10-69.51 50.47 26.62-81.9 13.65 10-9.7 29.84zM334.61 90H153.08l-11.67 16.08zM123.84 52V0L94.66 89.82l11.62 16.23z" fill="#cfe2f3"/><path d="M123.84 52V0l29.24 90-11.67 16.08zm28.42 87.45l17.56 54.05-120.36-87.45h56.82L94.66 89.82v.16H0l200.38 145.59-48.12-96.12" fill="#1891db"/></svg></svg> <!----></g></g> <g transform="translate(57.30999755859375,54.056854248046875)"><g data-gra="path-name" fill-rule="" class="tp-name" transform="matrix(1,0,0,1,0,0)" opacity="1"><g transform="scale(1)"><g><path d="M23.42 0.44L27.88-31.12 26.26-32.98 44.88-32.98 40.18 0.44 23.42 0.44ZM15.39-34.84L13.96-32.05 25.23-32.05 24.55-27.39 21.27-27.39 18.42-20.87 24.6-20.87 23.91-16.22 16.37-16.22 15.53-14.36 19.01-14.36 22.49 0.44 14.11 0.44 12.35-7.11 9.02 0.44 0.15 0.44 7.5-16.22 1.57-16.22 2.25-20.87 9.55-20.87 12.45-27.39 11.61-27.39 10.19-24.6 2.74-24.6 7.25-33.47 6.08-34.84 15.39-34.84ZM31.56-4.12L33.42-4.12 36.8-28.32 34.94-28.32 31.56-4.12ZM79.58 0.44L76.83-5.05 73.06 0.44 57.23 0.44 56.01-0.69 54.44 0.44 45.13 0.44 51.84-4.46 48.17-7.84 48.8-12.5 46.99-12.5 47.63-17.15 49.44-17.15 49.69-18.72 56.2-18.72 55.96-17.15 60.61-17.15 60.86-18.72 67.38-18.72 67.13-17.15 69.04-17.15 68.4-12.5 66.49-12.5 65.86-7.84 61.2-4.46 65.95-0.05 73.7-11.32 69.43-19.94 76.88-19.94 78.06-17.59 79.67-19.94 79.67-19.99 80.56-26.46 78.79-26.46 77.13-21.8 69.68-21.8 73.89-33.71 72.96-34.84 81.78-34.84 80.46-31.12 90.06-31.12 89.42-26.46 88-26.46 87.12-19.99 81.14-11.32 87.02 0.44 79.58 0.44ZM47.87-19.01L51.45-24.6 48.66-24.6 49.34-29.25 56.79-29.25 57.33-33.03 56.5-34.84 64.09-34.84 63.31-29.25 70.76-29.25 70.07-24.6 67.03-24.6 69.29-19.01 63.7-19.01 62.33-22.39 61.84-19.01 55.32-19.01 55.86-22.74 53.46-19.01 47.87-19.01ZM64.34-30.18L65.81-33.91 71.39-33.91 69.92-30.18 64.34-30.18ZM55.57-33.91L55.96-30.18 50.37-30.18 49.98-33.91 55.57-33.91ZM57.09-8.23L59.68-10.14 59.98-12.5 55.32-12.5 55.03-10.14 57.09-8.23ZM117.5-14.5L126.17-14.5 129.12 0.34 120.44 0.34 120.1-1.27 92.17 0 92.85-5.05 102.02-17.69 91.83-17.69 92.46-22.39 133.53-22.39 132.89-17.69 112.26-17.69 103.63-5.59 119.12-6.32 117.5-14.5ZM97.75-33.96L132.3-33.96 131.61-29.16 97.07-29.16 97.75-33.96Z" transform="translate(-0.15000000596046448, 34.84000015258789)" style=" fill: #606060; "/></g> <!----> <!----> <!----> <!----> <!----> <!----> <!----></g></g> <g data-gra="path-slogan" fill-rule="" class="tp-slogan" fill="#1891db" transform="matrix(1,0,0,1,12.950004577636719,40.279998779296875)" opacity="1"><!----> <!----> <g transform="scale(1, 1)"><g transform="scale(1)"><path d="M1.59-0.95L6.45-0.95L6.45 0L0.26 0L0.26-0.86L5.07-6.96L0.60-6.96L0.60-7.86L6.45-7.86L6.45-6.96L1.59-0.95ZM9.55-4.64L13.68-4.64L13.68-7.86L14.75-7.86L14.75 0L13.68 0L13.68-3.65L9.55-3.65L9.55 0L8.48 0L8.48-7.86L9.55-7.86L9.55-4.64ZM17.55-7.86L18.63-7.86L18.63 0L17.55 0L17.55-7.86ZM27.19-5.59L27.19-5.59L26.20-5.59Q26.12-7.09 24.23-7.18L24.23-7.18Q22.46-7.13 22.46-5.80L22.46-5.80Q22.46-4.94 23.41-4.81L23.41-4.81L25.64-4.30Q27.41-3.87 27.41-2.15L27.41-2.15Q27.36 0.04 24.31 0.13L24.31 0.13Q22.64 0.13 21.95-0.56L21.95-0.56Q21.09-1.20 21.13-2.54L21.13-2.54L22.16-2.54Q22.21-0.73 24.31-0.69L24.31-0.69Q26.38-0.73 26.42-2.02L26.42-2.02Q26.59-3.09 24.70-3.44L24.70-3.44L23.07-3.78Q21.39-4.25 21.39-5.67L21.39-5.67Q21.52-7.99 24.14-8.08L24.14-8.08Q27.11-8.08 27.19-5.59ZM30.81-4.64L34.94-4.64L34.94-7.86L36.01-7.86L36.01 0L34.94 0L34.94-3.65L30.81-3.65L30.81 0L29.74 0L29.74-7.86L30.81-7.86L30.81-4.64ZM43.84-2.92L43.84-7.86L44.92-7.86L44.92-2.79Q44.79 0.04 41.70 0.13L41.70 0.13Q38.82 0.04 38.69-2.62L38.69-2.62L38.69-7.86L39.76-7.86L39.76-2.92Q39.80-0.77 41.74-0.73L41.74-0.73Q43.84-0.77 43.84-2.92L43.84-2.92ZM53.91-7.86L50.95-3.18L50.95 0L49.87 0L49.87-3.18L46.91-7.86L48.15-7.86L50.39-4.08L52.66-7.86L53.91-7.86ZM61.05-2.92L61.05-7.86L62.13-7.86L62.13-2.79Q62 0.04 58.91 0.13L58.91 0.13Q56.03 0.04 55.90-2.62L55.90-2.62L55.90-7.86L56.97-7.86L56.97-2.92Q57.02-0.77 58.95-0.73L58.95-0.73Q61.05-0.77 61.05-2.92L61.05-2.92ZM66.05-7.86L70.00-1.50L70.00-7.86L71.04-7.86L71.04 0L69.83 0L65.84-6.36L65.79-6.36L65.79 0L64.76 0L64.76-7.86LLine truncated
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-v-2cb57da0="" version="1.0" viewBox="0 0 340.000000 250.000000" preserveAspectRatio="xMidYMid meet" color-interpolation-filters="sRGB" style="width: 356px;height: 197px;"> <g data-v-2cb57da0="" class="iconmbgsvg" transform="" style=" transform: scale(2.3333) translate(-21px, 0px); "><g fill="#cfe2f3" hollow-target="textRect"><g mask="url(#ad7efdae-2c7e-4fea-9fed-3d684c16950b)" opacity="1" transform="matrix(1,0,0,1,0,0)"><g><rect fill="#cfe2f3" fill-opacity="0" stroke-width="2" x="0" y="0" width="150" height="105.60182479953254" class="image-rect"/> <svg x="0" y="0" width="150" height="105.60182479953254" filtersec="colorsb4534076794" class="image-svg-svg primary" style="overflow: visible;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 334.6099853515625 235.57000732421875"><path d="M103.19 175.1l13.62 10-69.51 50.47 26.62-81.9 13.65 10-9.7 29.84zM334.61 90H153.08l-11.67 16.08zM123.84 52V0L94.66 89.82l11.62 16.23z" fill="#cfe2f3"/><path d="M123.84 52V0l29.24 90-11.67 16.08zm28.42 87.45l17.56 54.05-120.36-87.45h56.82L94.66 89.82v.16H0l200.38 145.59-48.12-96.12" fill="#1891db"/></svg></svg> <!----></g></g> <g transform="translate(57.30999755859375,54.056854248046875)"><g data-gra="path-name" fill-rule="" class="tp-name" transform="matrix(1,0,0,1,0,0)" opacity="1"><g transform="scale(1)"><g><path d="M23.42 0.44L27.88-31.12 26.26-32.98 44.88-32.98 40.18 0.44 23.42 0.44ZM15.39-34.84L13.96-32.05 25.23-32.05 24.55-27.39 21.27-27.39 18.42-20.87 24.6-20.87 23.91-16.22 16.37-16.22 15.53-14.36 19.01-14.36 22.49 0.44 14.11 0.44 12.35-7.11 9.02 0.44 0.15 0.44 7.5-16.22 1.57-16.22 2.25-20.87 9.55-20.87 12.45-27.39 11.61-27.39 10.19-24.6 2.74-24.6 7.25-33.47 6.08-34.84 15.39-34.84ZM31.56-4.12L33.42-4.12 36.8-28.32 34.94-28.32 31.56-4.12ZM79.58 0.44L76.83-5.05 73.06 0.44 57.23 0.44 56.01-0.69 54.44 0.44 45.13 0.44 51.84-4.46 48.17-7.84 48.8-12.5 46.99-12.5 47.63-17.15 49.44-17.15 49.69-18.72 56.2-18.72 55.96-17.15 60.61-17.15 60.86-18.72 67.38-18.72 67.13-17.15 69.04-17.15 68.4-12.5 66.49-12.5 65.86-7.84 61.2-4.46 65.95-0.05 73.7-11.32 69.43-19.94 76.88-19.94 78.06-17.59 79.67-19.94 79.67-19.99 80.56-26.46 78.79-26.46 77.13-21.8 69.68-21.8 73.89-33.71 72.96-34.84 81.78-34.84 80.46-31.12 90.06-31.12 89.42-26.46 88-26.46 87.12-19.99 81.14-11.32 87.02 0.44 79.58 0.44ZM47.87-19.01L51.45-24.6 48.66-24.6 49.34-29.25 56.79-29.25 57.33-33.03 56.5-34.84 64.09-34.84 63.31-29.25 70.76-29.25 70.07-24.6 67.03-24.6 69.29-19.01 63.7-19.01 62.33-22.39 61.84-19.01 55.32-19.01 55.86-22.74 53.46-19.01 47.87-19.01ZM64.34-30.18L65.81-33.91 71.39-33.91 69.92-30.18 64.34-30.18ZM55.57-33.91L55.96-30.18 50.37-30.18 49.98-33.91 55.57-33.91ZM57.09-8.23L59.68-10.14 59.98-12.5 55.32-12.5 55.03-10.14 57.09-8.23ZM117.5-14.5L126.17-14.5 129.12 0.34 120.44 0.34 120.1-1.27 92.17 0 92.85-5.05 102.02-17.69 91.83-17.69 92.46-22.39 133.53-22.39 132.89-17.69 112.26-17.69 103.63-5.59 119.12-6.32 117.5-14.5ZM97.75-33.96L132.3-33.96 131.61-29.16 97.07-29.16 97.75-33.96Z" transform="translate(-0.15000000596046448, 34.84000015258789)" style=" fill: #606060; "/></g> <!----> <!----> <!----> <!----> <!----> <!----> <!----></g></g> <g data-gra="path-slogan" fill-rule="" class="tp-slogan" fill="#1891db" transform="matrix(1,0,0,1,12.950004577636719,40.279998779296875)" opacity="1"><!----> <!----> <g transform="scale(1, 1)"><g transform="scale(1)"><path d="M1.59-0.95L6.45-0.95L6.45 0L0.26 0L0.26-0.86L5.07-6.96L0.60-6.96L0.60-7.86L6.45-7.86L6.45-6.96L1.59-0.95ZM9.55-4.64L13.68-4.64L13.68-7.86L14.75-7.86L14.75 0L13.68 0L13.68-3.65L9.55-3.65L9.55 0L8.48 0L8.48-7.86L9.55-7.86L9.55-4.64ZM17.55-7.86L18.63-7.86L18.63 0L17.55 0L17.55-7.86ZM27.19-5.59L27.19-5.59L26.20-5.59Q26.12-7.09 24.23-7.18L24.23-7.18Q22.46-7.13 22.46-5.80L22.46-5.80Q22.46-4.94 23.41-4.81L23.41-4.81L25.64-4.30Q27.41-3.87 27.41-2.15L27.41-2.15Q27.36 0.04 24.31 0.13L24.31 0.13Q22.64 0.13 21.95-0.56L21.95-0.56Q21.09-1.20 21.13-2.54L21.13-2.54L22.16-2.54Q22.21-0.73 24.31-0.69L24.31-0.69Q26.38-0.73 26.42-2.02L26.42-2.02Q26.59-3.09 24.70-3.44L24.70-3.44L23.07-3.78Q21.39-4.25 21.39-5.67L21.39-5.67Q21.52-7.99 24.14-8.08L24.14-8.08Q27.11-8.08 27.19-5.59ZM30.81-4.64L34.94-4.64L34.94-7.86L36.01-7.86L36.01 0L34.94 0L34.94-3.65L30.81-3.65L30.81 0L29.74 0L29.74-7.86L30.81-7.86L30.81-4.64ZM43.84-2.92L43.84-7.86L44.92-7.86L44.92-2.79Q44.79 0.04 41.70 0.13L41.70 0.13Q38.82 0.04 38.69-2.62L38.69-2.62L38.69-7.86L39.76-7.86L39.76-2.92Q39.80-0.77 41.74-0.73L41.74-0.73Q43.84-0.77 43.84-2.92L43.84-2.92ZM53.91-7.86L50.95-3.18L50.95 0L49.87 0L49.87-3.18L46.91-7.86L48.15-7.86L50.39-4.08L52.66-7.86L53.91-7.86ZM61.05-2.92L61.05-7.86L62.13-7.86L62.13-2.79Q62 0.04 58.91 0.13L58.91 0.13Q56.03 0.04 55.90-2.62L55.90-2.62L55.90-7.86L56.97-7.86L56.97-2.92Q57.02-0.77 58.95-0.73L58.95-0.73Q61.05-0.77 61.05-2.92L61.05-2.92ZM66.05-7.86L70.00-1.50L70.00-7.86L71.04-7.86L71.04 0L69.83 0L65.84-6.36L65.79-6.36L65.79 0L64.76 0L64.76-7.86LLine truncated
|
||||
|
Before Width: | Height: | Size: 11 KiB |
@@ -86,7 +86,7 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
onLogout() {
|
||||
this.$store.dispatch('common/resetToken');
|
||||
this.$store.dispatch('resetToken');
|
||||
this.$router.push({ name: ROUTE_AUTH_LOGIN });
|
||||
},
|
||||
onConsole() {
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
<template>
|
||||
<el-dialog :model-value="visible" width="400px" @close="$emit('close')">
|
||||
<h2 class="title">{{ $t('common.nav.setting') }}</h2>
|
||||
<el-form label-width="120px">
|
||||
<el-form-item :label="$t('setting.field.stream')">
|
||||
<el-switch v-model="stream" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('setting.field.endpoint')">
|
||||
<el-select v-model="endpoint">
|
||||
<el-option v-for="(item, itemIndex) in endpoints" :key="itemIndex" :value="item" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElDialog, ElForm, ElFormItem, ElOption, ElSelect, ElSwitch } from 'element-plus';
|
||||
import { ENDPOINT, ENDPOINT2 } from '@/constants/endpoint';
|
||||
export default defineComponent({
|
||||
name: 'SettingPanel',
|
||||
components: {
|
||||
ElDialog,
|
||||
ElForm,
|
||||
ElFormItem,
|
||||
ElOption,
|
||||
ElSelect,
|
||||
ElSwitch
|
||||
},
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
emits: ['close'],
|
||||
data() {
|
||||
return {
|
||||
endpoints: [ENDPOINT, ENDPOINT2]
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
stream: {
|
||||
get() {
|
||||
return this.$store.getters['common/setting'].stream;
|
||||
},
|
||||
set(value: boolean) {
|
||||
this.$store.dispatch('common/setSetting', {
|
||||
stream: value
|
||||
});
|
||||
}
|
||||
},
|
||||
endpoint: {
|
||||
get() {
|
||||
return this.$store.getters['common/setting'].endpoint;
|
||||
},
|
||||
set(value: string) {
|
||||
this.$store.dispatch('common/setSetting', {
|
||||
endpoint: value
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.title {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="side-panel">
|
||||
<div>
|
||||
<img src="@/assets/images/logo2.svg" class="logo" @click="onHome" />
|
||||
<img src="@/assets/images/logo.svg" class="logo" @click="onHome" />
|
||||
</div>
|
||||
<div class="links">
|
||||
<a
|
||||
@@ -109,7 +109,6 @@ $padding-left: 10px;
|
||||
padding-left: $padding-left;
|
||||
width: $width;
|
||||
padding-top: 50px;
|
||||
// border-right: 1px solid var(--el-border-color);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
export const ENDPOINT = 'https://api.zhishuyun.com';
|
||||
export const ENDPOINT2 = 'https://api2.zhishuyun.com';
|
||||
export const BASE_URL_DATA = 'https://data.zhishuyun.com';
|
||||
export const BASE_URL_HUB = 'https://hub.zhishuyun.com';
|
||||
export const BASE_URL_AUTH = 'https://auth.zhishuyun.com';
|
||||
export const BASE_URL_API = 'https://api.zhishuyun.com';
|
||||
export const BASE_URL_API2 = 'https://api2.zhishuyun.com';
|
||||
@@ -1,4 +0,0 @@
|
||||
import chatgptAvatar from '@/assets/images/chatgpt.png';
|
||||
import userAvatar from '@/assets/images/avatar.png';
|
||||
|
||||
export { chatgptAvatar, userAvatar };
|
||||
@@ -1,5 +1,3 @@
|
||||
export * from './errorCode';
|
||||
export * from './env';
|
||||
export * from './endpoint';
|
||||
export * from './image';
|
||||
// export * from './api';
|
||||
Vendored
-2
@@ -13,5 +13,3 @@ declare module '*.vue' {
|
||||
const component: DefineComponent<{}, {}, {}>;
|
||||
export default component;
|
||||
}
|
||||
|
||||
declare module 'vue-plyr';
|
||||
@@ -11,19 +11,12 @@ export default {
|
||||
question1: '写一段 JavaScript 代码,输出 Hello World',
|
||||
question2: '写一封邮件给晓伟,告诉他我刚刚搬家了',
|
||||
question3: '用简单的术语解释量子计算的基本原理',
|
||||
question4: '数字媒体和虚拟现实对艺术创作和表现形式产生了怎样的影响?',
|
||||
question5: '在数字时代,隐私保护和数据安全如何影响法律实践?',
|
||||
question6: '作为一名会计师,如何应对复杂的税务法规变化?',
|
||||
question4: '虚拟现实对艺术创作产生了怎样的影响?',
|
||||
question5: '隐私保护和数据安全如何影响法律实践?',
|
||||
question6: '如何应对复杂的税务法规变化?',
|
||||
question7: '如何结合不同地区的文化背景创作独特美食?',
|
||||
question8: '如何通过旅行体验汲取文学创作灵感,塑造丰富故事?',
|
||||
question9: '如何从不同行业的成功案例中获取商业创意,创新经营策略?',
|
||||
rememberHistory: '可以记住用户说过的话',
|
||||
supportStream: '支持流式数据传输',
|
||||
rejectInvalidPrompt: '可以拒绝回答不恰当的提问',
|
||||
generateInCorrect: '可能偶尔产生不正确的信息',
|
||||
generateHarmfulInfo: '可能偶尔产生有害的指令或有偏见的内容',
|
||||
onlyKnowBefore2021: '对2021年之后的世界和事件了解有限',
|
||||
errorBusy: 'Worker正在忙碌中,请稍后重试',
|
||||
question8: '如何通过旅行体验汲取文学创作灵感?',
|
||||
question9: '如何从不同行业的成功案例中获取商业创意?',
|
||||
errorApiError: '回答失败,请稍后重试',
|
||||
errorBadRequest: '请求内容不规范,请重新提问',
|
||||
errorNoConversation: '对话内容不存在或者已经过期,请发起新的会话',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
export default {
|
||||
orderDescription: '知数云课程订单',
|
||||
documentIntroduction: '文档介绍',
|
||||
placeholderOfSelect: '请选择',
|
||||
placeholderOfInput: '请填写',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export default {
|
||||
deltaPriceForNextLevel: '距离下一级别还差',
|
||||
developingWithDrawal: '提现功能正在加急开发中,敬请期待!',
|
||||
howToWithdrawal: '请添加客服处理提现,提现需扣除 5% 的所得税,提供发票可进行抵扣',
|
||||
technicalDetail: '技术细节',
|
||||
distributionQrDescription: '分销二维码(内容同链接)',
|
||||
|
||||
@@ -5,6 +5,5 @@ export default {
|
||||
free: '免费',
|
||||
buyInExternalUrl: '请在外部链接完成付款',
|
||||
updateFailed: '修改失败',
|
||||
updateSuccessfully: '修改成功',
|
||||
confirmFinish: '此操作将手动将订单设置为支付状态且完成分销处理,无法撤销,请确认客户已经完成付款,是否继续?'
|
||||
updateSuccessfully: '修改成功'
|
||||
};
|
||||
@@ -13,7 +13,6 @@ import hl from 'highlight.js';
|
||||
import 'highlight.js/styles/night-owl.css';
|
||||
import copyToClipboard from 'copy-to-clipboard';
|
||||
|
||||
console.debug('start to create app');
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(router);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { httpClient } from '../instance';
|
||||
import { ITokenResponse, IToken, IOAuthTokenRequest, IOAuthTokenResponse } from './models';
|
||||
import { getBaseUrlAuth } from '@/utils';
|
||||
|
||||
class AuthOperator {
|
||||
async refreshToken(payload: IToken): Promise<AxiosResponse<ITokenResponse>> {
|
||||
@@ -11,7 +12,7 @@ class AuthOperator {
|
||||
class OAuthOperator {
|
||||
async token(payload: IOAuthTokenRequest): Promise<AxiosResponse<IOAuthTokenResponse>> {
|
||||
return httpClient.post('/token', payload, {
|
||||
baseURL: '/oauth2/v1'
|
||||
baseURL: `${getBaseUrlAuth()}/oauth2/v1`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import axios, { AxiosResponse } from 'axios';
|
||||
import axios, { AxiosProgressEvent, AxiosResponse } from 'axios';
|
||||
import {
|
||||
IChatAskOptions,
|
||||
IChatAskRequest,
|
||||
@@ -18,7 +18,7 @@ class ChatOperator {
|
||||
},
|
||||
baseURL: options.endpoint,
|
||||
responseType: 'stream',
|
||||
onDownloadProgress: (event) => {
|
||||
onDownloadProgress: (event: AxiosProgressEvent) => {
|
||||
const response = event.target.response;
|
||||
const lines = response.split('\r\n').filter((line: string) => !!line);
|
||||
const lastLine = lines[lines.length - 1];
|
||||
|
||||
@@ -6,3 +6,4 @@ export * from './midjourney';
|
||||
export * from './usage';
|
||||
export * from './api';
|
||||
export * from './order';
|
||||
export * from './distribution';
|
||||
@@ -1,10 +1,11 @@
|
||||
import router, { ROUTE_AUTH_LOGIN } from '@/router';
|
||||
import store from '@/store';
|
||||
import { getBaseUrlData } from '@/utils';
|
||||
import axios, { AxiosInstance } from 'axios';
|
||||
import qs from 'qs';
|
||||
|
||||
const httpClient: AxiosInstance = axios.create({
|
||||
baseURL: '/api/v1',
|
||||
baseURL: `${getBaseUrlData()}/api/v1`,
|
||||
headers: {
|
||||
'Content-type': 'application/json',
|
||||
Accept: 'application/json'
|
||||
@@ -31,7 +32,7 @@ httpClient.interceptors.response.use(
|
||||
},
|
||||
(error) => {
|
||||
if (error?.response?.status === 401) {
|
||||
store.dispatch('common/resetAuth');
|
||||
store.dispatch('resetToken');
|
||||
router.push({
|
||||
name: ROUTE_AUTH_LOGIN,
|
||||
query: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export interface IUser {
|
||||
id: string;
|
||||
id?: string;
|
||||
username?: string;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
|
||||
@@ -38,10 +38,10 @@ export default defineComponent({
|
||||
const user = await this.$store.dispatch('getUser');
|
||||
this.user = user;
|
||||
if (this.redirect) {
|
||||
this.$router.push(this.redirect);
|
||||
await this.$router.push(this.redirect);
|
||||
}
|
||||
} else {
|
||||
this.$router.push({ name: ROUTE_AUTH_LOGIN });
|
||||
await this.$router.push({ name: ROUTE_AUTH_LOGIN });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { getAuthBaseUrl, getHubBaseUrl } from '@/utils';
|
||||
import { getBaseUrlAuth, getBaseUrlHub } from '@/utils';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
interface IData {
|
||||
@@ -14,8 +14,8 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
const hubBaseUrl = getHubBaseUrl();
|
||||
const authBaseUrl = getAuthBaseUrl();
|
||||
const hubBaseUrl = getBaseUrlHub();
|
||||
const authBaseUrl = getBaseUrlAuth();
|
||||
// callback url used to init access token and then redirect back of `redirect`
|
||||
const callbackUrl = `${hubBaseUrl}/auth/callback?redirect=${this.redirect}`;
|
||||
// redirect to auth service to get access token then redirect back
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<div class="card">
|
||||
<h2 class="title">{{ $t('chat.title.chat') }}</h2>
|
||||
<p class="description">{{ $t('chat.message.startNewChat') }}</p>
|
||||
<el-button type="primary" @click="onStart">{{ $t('common.button.new') }}</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElButton } from 'element-plus';
|
||||
import { ROUTE_CHAT_CONVERSATION_NEW } from '@/router/constants';
|
||||
|
||||
interface IData {
|
||||
model: string;
|
||||
question: string;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ChatIndex',
|
||||
components: {
|
||||
ElButton
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
model: 'chatgpt',
|
||||
question: ''
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
onStart() {
|
||||
this.$router.push({
|
||||
name: ROUTE_CHAT_CONVERSATION_NEW
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.card {
|
||||
width: 200px;
|
||||
height: 150px;
|
||||
text-align: center;
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.description {
|
||||
font-size: 14px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.el-button {
|
||||
border-radius: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -70,7 +70,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import Pagination from '@/components/common/Pagination.vue';
|
||||
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
|
||||
import { ElRow, ElCol, ElTable, ElTableColumn, ElButton, ElTag, ElCard } from 'element-plus';
|
||||
import { ElRow, ElCol, ElTable, ElTableColumn, ElCard } from 'element-plus';
|
||||
import { distributionHistoryOperator, IDistributionHistory, IDistributionStatus } from '@/operators/distribution';
|
||||
|
||||
interface IData {
|
||||
|
||||
@@ -184,7 +184,6 @@ import {
|
||||
ElButton,
|
||||
ElCard,
|
||||
ElDivider,
|
||||
ElInput,
|
||||
ElTooltip,
|
||||
ElSkeleton
|
||||
} from 'element-plus';
|
||||
@@ -193,7 +192,7 @@ import {
|
||||
distributionStatusOperator,
|
||||
IDistributionLevel,
|
||||
IDistributionStatus
|
||||
} from '@/operators/distribution';
|
||||
} from '@/operators';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
import { ROUTE_CONSOLE_DISTRIBUTION_HISTORY, ROUTE_CONSOLE_DISTRIBUTION_INVITEES } from '@/router';
|
||||
import { IUser, userOperator } from '@/operators';
|
||||
|
||||
@@ -4,6 +4,12 @@ export default {
|
||||
path: '/chat',
|
||||
component: () => import('@/layouts/Chat.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
redirect: {
|
||||
name: ROUTE_CHAT_CONVERSATION_NEW
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'conversation',
|
||||
name: ROUTE_CHAT_CONVERSATION_NEW,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IApplication, IUser } from '@/operators';
|
||||
import { IUser } from '@/operators';
|
||||
import { IMidjourneyState } from '../midjourney/models';
|
||||
import { IChatState } from '../chat/models';
|
||||
|
||||
@@ -14,18 +14,15 @@ export interface IToken {
|
||||
expiration?: number;
|
||||
}
|
||||
|
||||
export interface ISetting {
|
||||
stream?: boolean;
|
||||
endpoint?: string;
|
||||
}
|
||||
export interface ISetting {}
|
||||
|
||||
export interface ICommonState {
|
||||
token: IToken;
|
||||
user: IUser;
|
||||
setting: ISetting;
|
||||
setting?: ISetting;
|
||||
}
|
||||
|
||||
export interface IRootState extends ICommonState {
|
||||
midjourney?: IMidjourneyState;
|
||||
chat?: IChatState;
|
||||
midjourney: IMidjourneyState;
|
||||
chat: IChatState;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ENDPOINT } from '@/constants';
|
||||
import { IRootState } from './models';
|
||||
import chatState from '../chat/state';
|
||||
import midjourneyState from '../midjourney/state';
|
||||
|
||||
export default (): IRootState => {
|
||||
return {
|
||||
@@ -9,9 +10,7 @@ export default (): IRootState => {
|
||||
refresh: undefined,
|
||||
expiration: undefined
|
||||
},
|
||||
setting: {
|
||||
endpoint: ENDPOINT,
|
||||
stream: false
|
||||
}
|
||||
chat: chatState(),
|
||||
midjourney: midjourneyState()
|
||||
};
|
||||
};
|
||||
+20
-22
@@ -1,36 +1,34 @@
|
||||
import { ENV_LOCAL, ENV_TEST } from '@/constants';
|
||||
import { getEnv } from './env';
|
||||
import { BASE_URL_AUTH, BASE_URL_DATA, BASE_URL_HUB } from '@/constants';
|
||||
|
||||
/**
|
||||
* Get base url of app
|
||||
* Get base url of data app
|
||||
* @returns
|
||||
*/
|
||||
export const getDataBaseUrl = () => {
|
||||
const env = getEnv();
|
||||
if (env === ENV_LOCAL) {
|
||||
return 'https://data.local.zhishuyun.com';
|
||||
} else if (env === ENV_TEST) {
|
||||
return 'https://data.test.zhishuyun.com';
|
||||
} else {
|
||||
return 'https://data.zhishuyun.com';
|
||||
export const getBaseUrlData = () => {
|
||||
if (import.meta.env.VITE_BASE_URL_DATA) {
|
||||
return import.meta.env.VITE_BASE_URL_DATA;
|
||||
}
|
||||
return BASE_URL_DATA;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get base url of app
|
||||
* Get base url of hub app
|
||||
* @returns
|
||||
*/
|
||||
export const getHubBaseUrl = () => {
|
||||
return window.location.origin;
|
||||
export const getBaseUrlHub = () => {
|
||||
if (import.meta.env.VITE_BASE_URL_HUB) {
|
||||
return import.meta.env.VITE_BASE_URL_HUB;
|
||||
}
|
||||
return BASE_URL_HUB;
|
||||
};
|
||||
|
||||
export const getAuthBaseUrl = () => {
|
||||
const env = getEnv();
|
||||
if (env === ENV_LOCAL) {
|
||||
return 'https://auth.test.zhishuyun.com';
|
||||
} else if (env === ENV_TEST) {
|
||||
return 'https://auth.test.zhishuyun.com';
|
||||
} else {
|
||||
return 'https://auth.zhishuyun.com';
|
||||
/**
|
||||
* Get base url of auth app
|
||||
* @returns
|
||||
*/
|
||||
export const getBaseUrlAuth = () => {
|
||||
if (import.meta.env.VITE_BASE_URL_AUTH) {
|
||||
return import.meta.env.VITE_BASE_URL_AUTH;
|
||||
}
|
||||
return BASE_URL_AUTH;
|
||||
};
|
||||
@@ -1,13 +0,0 @@
|
||||
import { removeCookie } from 'typescript-cookie';
|
||||
|
||||
export const removeCookies = () => {
|
||||
const host = window.location.host;
|
||||
// process test env and prod env, for example:
|
||||
// auth.zhishuyun.com -> .zhishuyun.com
|
||||
// auth.test.zhishuyun.com -> .zhishuyun.com
|
||||
const domain = host.replace(/^\S+?\.(test\.|local\.)?/, '.');
|
||||
const path = '/';
|
||||
// remove tokens from cookies
|
||||
removeCookie('ACCESS_TOKEN', { domain, path });
|
||||
removeCookie('REFRESH_TOKEN', { domain, path });
|
||||
};
|
||||
@@ -1,19 +0,0 @@
|
||||
import { ENV_LOCAL, ENV_PRODUCTION, ENV_TEST } from '@/constants';
|
||||
|
||||
const PATTERN_TEST_ENV = '.test.zhishuyun.com';
|
||||
const PATTERN_LOCAL_ENV = '.local.zhishuyun.com';
|
||||
|
||||
/**
|
||||
* Get env of App, return local, test, production
|
||||
* @returns
|
||||
*/
|
||||
export const getEnv = () => {
|
||||
const host = window.location.host;
|
||||
if (host.indexOf(PATTERN_LOCAL_ENV) > 0) {
|
||||
return ENV_LOCAL;
|
||||
}
|
||||
if (host.indexOf(PATTERN_TEST_ENV) > 0) {
|
||||
return ENV_TEST;
|
||||
}
|
||||
return ENV_PRODUCTION;
|
||||
};
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
export * from './baseUrl';
|
||||
export * from './env';
|
||||
export * from './mode';
|
||||
export * from './verification';
|
||||
export * from './log';
|
||||
@@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Log function name and arguments
|
||||
* @param func
|
||||
* @param arg
|
||||
*/
|
||||
export const log = (func: Function, ...arg: any) => {
|
||||
console.debug(`${func.name}`, ...arg);
|
||||
};
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Get mode of App, return development or production
|
||||
* Get mode of app, return development or production
|
||||
* @returns
|
||||
*/
|
||||
export const getMode = () => {
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Get verification url
|
||||
* @returns
|
||||
*/
|
||||
|
||||
import { getAuthBaseUrl } from './baseUrl';
|
||||
|
||||
export const getVerificationUrl = () => {
|
||||
const baseUrl = getAuthBaseUrl();
|
||||
const targetUrl = `${baseUrl}/user/verify?redirect=` + window.location.href;
|
||||
return targetUrl;
|
||||
};
|
||||
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { Store } from 'vuex';
|
||||
import { IState } from './store/models';
|
||||
import { IRootState } from './store/common/models';
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
$store: Store<IState>;
|
||||
$store: Store<IRootState>;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user