@@ -42,6 +42,7 @@ class Style {
4242 "selection-background" : "#fff" ,
4343 "main-color" : "#0FC6C2" ,
4444 "main-shadow" : "rgba(15, 198, 194, 0.2)" ,
45+ "text-shadow" : "rgba(15, 198, 194, 0.04)" ,
4546 "hover-color" : "#0A8A87" ,
4647 "shadow" : "rgba(145, 158, 171, 0.2)" ,
4748 "title-color" : "rgba(0, 0, 0, 0.5)" ,
@@ -68,6 +69,7 @@ class Style {
6869 "background" : "#181818" ,
6970 "main-color" : "#F4D1B4" ,
7071 "main-shadow" : "rgba(235, 187, 151, 0.2)" ,
72+ "text-shadow" : "rgba(235, 187, 151, 0.04)" ,
7173 "hover-color" : "#F6A37E" ,
7274 "selection-background" : "#232323" ,
7375 "shadow" : "none" ,
@@ -629,6 +631,40 @@ class Application {
629631 "background: var(--hover-color)" ,
630632 "color: var(--dark-color)"
631633 ] ,
634+ ".click-text" : [
635+ `display: inline-flex;
636+ -webkit-box-align: center;
637+ align-items: center;
638+ -webkit-box-pack: center;
639+ justify-content: center;
640+ position: relative;
641+ box-sizing: border-box;
642+ -webkit-tap-highlight-color: transparent;
643+ background-color: transparent;
644+ outline: 0px;
645+ border: 0px;
646+ margin: 0px -8px 0px 0px;
647+ cursor: pointer;
648+ user-select: none;
649+ vertical-align: middle;
650+ appearance: none;
651+ text-decoration: none;
652+ font-family: inherit;
653+ font-weight: 500;
654+ line-height: 1.75;
655+ text-transform: uppercase;
656+ min-width: 64px;
657+ padding: 0px 8px;
658+ border-radius: 4px;
659+ transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
660+ color: var(--main-color);
661+ box-shadow: none;
662+ font-size: 14px;`
663+ ] ,
664+ ".click-text:hover" : [
665+ `text-decoration: none;
666+ background-color: var(--text-shadow)`
667+ ]
632668 }
633669 this . $side = this . createElement ( "aside" ) . class ( "side" )
634670 this . $container = this . createElement ( "div" ) . class ( "main" ) . append (
@@ -2084,6 +2120,7 @@ $I18N.addLangs("zh_cn", {
20842120 "dashboard.cpu" : "CPU 负载" ,
20852121 "dashboard.memory" : "内存使用" ,
20862122 "dashboard.connections" : "连接数" ,
2123+ "dashboard.basic.summary" : "统计总结" ,
20872124 "see.more" : "查看更多" ,
20882125 "menu.dashboard" : "数据统计" ,
20892126 "menu.master" : "主控面板" ,
@@ -2783,11 +2820,13 @@ app.$Menu.add("dashboard", new class {
27832820 if ( index == 0 ) {
27842821 this . initBasic ( )
27852822 this . switch_pro_day . setStyle ( "display" , "none" )
2823+ this . summary_container . setStyle ( "display" , "" )
27862824 this . page [ 2 ] . append ( ...this . basic )
27872825 } else {
27882826 this . initPro ( )
27892827 this . switch_geo . select ( 0 )
27902828 this . switch_pro_day . setStyle ( "display" , "" )
2829+ this . summary_container . setStyle ( "display" , "none" )
27912830 this . switch_pro_day . select ( 0 )
27922831 this . page [ 2 ] . append ( ...this . pro )
27932832 this . get_globals_stats = true
@@ -2826,6 +2865,12 @@ app.$Menu.add("dashboard", new class {
28262865 $progress . set ( 100 )
28272866 }
28282867 } )
2868+ this . summary = app . createElement ( "button" ) . class ( "click-text" ) . setI18N ( "dashboard.basic.summary" ) . event ( "click" , ( ) => {
2869+ modal . open ( )
2870+ } )
2871+ this . summary_container = app . createElement ( "div" ) . append (
2872+ this . summary
2873+ ) . class ( "flex-jend" , "flex" , "flex-aligns-center" ) . style ( "margin-right: 12px" )
28292874 this . _be_qps = app . createEcharts ( ) . style ( "min-height: 162px;" )
28302875 this . _pe_qps = app . createEcharts ( ) . style ( "min-height: 162px;" )
28312876 this . _e_geo = app . createEcharts ( ) . style ( "min-height: 416px;" )
@@ -2895,7 +2940,8 @@ app.$Menu.add("dashboard", new class {
28952940 app . createElement ( "div" ) . class ( "panel nopadding" ) . style ( "margin-bottom: 0" ) . append (
28962941 app . createFlex ( true ) . class ( "flex-space-between" ) . child ( 2 ) . minWidth ( 512 ) . append (
28972942 this . switch ,
2898- this . switch_pro_day . class ( "flex-jend" )
2943+ this . switch_pro_day . class ( "flex-jend" ) ,
2944+ this . summary_container
28992945 )
29002946 ) ,
29012947 app . createElement ( "div" )
@@ -3056,7 +3102,9 @@ app.$Menu.add("dashboard", new class {
30563102 app . createElement ( "div" ) . class ( "panel" ) . append (
30573103 app . createElement ( "div" ) . class ( "title" , "flex-space-between" ) . append (
30583104 app . createElement ( "p" ) . class ( "title-color" ) . setI18N ( "dashboard.useragents" ) ,
3059- app . createElement ( "button" ) . class ( "click-text" ) . setI18N ( "see.more" )
3105+ app . createElement ( "button" ) . class ( "click-text" ) . setI18N ( "see.more" ) . event ( "click" , ( ) => {
3106+ modal . open ( )
3107+ } )
30603108 ) ,
30613109 app . createFlex ( true ) . minWidth ( 512 ) . childWidths ( 30 , 70 ) . append (
30623110 this . _e_ua ,
0 commit comments