|
143 | 143 | </a-select>
|
144 | 144 | </a-col>
|
145 | 145 | </a-row>
|
146 |
| - <setting-list-item type="switch" title='{{ i18n "pages.xray.outboundTraffic"}}' desc='{{ i18n "pages.xray.outboundTrafficDesc"}}' v-model="outboundTraffic"></setting-list-item> |
| 146 | + </a-list-item> |
| 147 | + </a-collapse-panel> |
| 148 | + <a-collapse-panel header='{{ i18n "pages.xray.statistics" }}'> |
| 149 | + <a-list-item> |
| 150 | + <setting-list-item type="switch" title='{{ i18n "pages.xray.statsInboundUplink" }}' desc='{{ i18n "pages.xray.statsInboundUplinkDesc" }}' style="padding-top: 0 !important;" v-model="statsInboundUplink"></setting-list-item> |
| 151 | + <setting-list-item type="switch" title='{{ i18n "pages.xray.statsInboundDownlink" }}' desc='{{ i18n "pages.xray.statsInboundDownlinkDesc" }}' v-model="statsInboundDownlink"></setting-list-item> |
| 152 | + <setting-list-item type="switch" title='{{ i18n "pages.xray.statsOutboundUplink" }}' desc='{{ i18n "pages.xray.statsOutboundUplinkDesc" }}' v-model="statsOutboundUplink"></setting-list-item> |
| 153 | + <setting-list-item type="switch" title='{{ i18n "pages.xray.statsOutboundDownlink" }}' desc='{{ i18n "pages.xray.statsOutboundDownlinkDesc" }}' v-model="statsOutboundDownlink"></setting-list-item> |
147 | 154 | </a-list-item>
|
148 | 155 | </a-collapse-panel>
|
149 | 156 | <a-collapse-panel header='{{ i18n "pages.xray.logConfigs" }}'>
|
|
1882 | 1889 | this.templateSettings = newTemplateSettings;
|
1883 | 1890 | }
|
1884 | 1891 | },
|
1885 |
| - outboundTraffic: { |
| 1892 | + statsInboundUplink: { |
| 1893 | + get: function () { |
| 1894 | + if (!this.templateSettings || !this.templateSettings.policy.system || !this.templateSettings.policy.system.statsInboundUplink) return false; |
| 1895 | + return this.templateSettings.policy.system.statsInboundUplink; |
| 1896 | + }, |
| 1897 | + set: function (newValue) { |
| 1898 | + newTemplateSettings = this.templateSettings; |
| 1899 | + newTemplateSettings.policy.system.statsInboundUplink = newValue; |
| 1900 | + this.templateSettings = newTemplateSettings; |
| 1901 | + } |
| 1902 | + }, |
| 1903 | + statsInboundDownlink: { |
| 1904 | + get: function () { |
| 1905 | + if (!this.templateSettings || !this.templateSettings.policy.system || !this.templateSettings.policy.system.statsInboundDownlink) return false; |
| 1906 | + return this.templateSettings.policy.system.statsInboundDownlink; |
| 1907 | + }, |
| 1908 | + set: function (newValue) { |
| 1909 | + newTemplateSettings = this.templateSettings; |
| 1910 | + newTemplateSettings.policy.system.statsInboundDownlink = newValue; |
| 1911 | + this.templateSettings = newTemplateSettings; |
| 1912 | + } |
| 1913 | + }, |
| 1914 | + statsOutboundUplink: { |
| 1915 | + get: function () { |
| 1916 | + if (!this.templateSettings || !this.templateSettings.policy.system || !this.templateSettings.policy.system.statsOutboundUplink) return false; |
| 1917 | + return this.templateSettings.policy.system.statsOutboundUplink; |
| 1918 | + }, |
| 1919 | + set: function (newValue) { |
| 1920 | + newTemplateSettings = this.templateSettings; |
| 1921 | + newTemplateSettings.policy.system.statsOutboundUplink = newValue; |
| 1922 | + this.templateSettings = newTemplateSettings; |
| 1923 | + } |
| 1924 | + }, |
| 1925 | + statsOutboundDownlink: { |
1886 | 1926 | get: function () {
|
1887 | 1927 | if (!this.templateSettings || !this.templateSettings.policy.system || !this.templateSettings.policy.system.statsOutboundDownlink) return false;
|
1888 | 1928 | return this.templateSettings.policy.system.statsOutboundDownlink;
|
1889 | 1929 | },
|
1890 | 1930 | set: function (newValue) {
|
1891 | 1931 | newTemplateSettings = this.templateSettings;
|
1892 | 1932 | newTemplateSettings.policy.system.statsOutboundDownlink = newValue;
|
1893 |
| - newTemplateSettings.policy.system.statsOutboundUplink = newValue; |
1894 | 1933 | this.templateSettings = newTemplateSettings;
|
1895 | 1934 | }
|
1896 | 1935 | },
|
|
0 commit comments