mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-30 20:02:51 +00:00 
			
		
		
		
	 bea19a263d
			
		
	
	
		bea19a263d
		
			
		
	
	
	
	
		
			
			* refactor: use vue inline styles in entire application * refactor: setting row in dashboard page * refactor: use blob for download file in text modal * refactor: move all html templates in `web/html` folder * refactor: `DeviceUtils` -> `MediaQueryMixin` The transition to mixins has been made, as they can update themselves. * chore: pretty right buttons in `outbounds` tab in xray settings * refactor: add translations for system status * refactor: adjust gutter spacing in setting list item * refactor: use native `a-input-password` for password field * chore: return old system status with new translations * chore: add missing translation
		
			
				
	
	
		
			42 lines
		
	
	
		
			No EOL
		
	
	
		
			867 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			No EOL
		
	
	
		
			867 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{define "component/customStatistic"}}
 | |
| <template>
 | |
|     <a-statistic :title="title" :value="value">
 | |
|         <template #prefix>
 | |
|             <slot name="prefix"></slot>
 | |
|         </template>
 | |
|         <template #suffix>
 | |
|             <slot name="suffix"></slot>
 | |
|         </template>
 | |
|     </a-statistic>
 | |
| </template>
 | |
| {{end}}
 | |
| 
 | |
| {{define "component/aCustomStatistic"}}
 | |
| <style>
 | |
|   .dark .ant-statistic-content {
 | |
|     color: var(--dark-color-text-primary)
 | |
|   }
 | |
|   .dark .ant-statistic-title {
 | |
|     color: rgba(255, 255, 255, 0.55)
 | |
|   }
 | |
|   .ant-statistic-content {
 | |
|     font-size: 16px;
 | |
|   }
 | |
| </style>
 | |
| 
 | |
| <script>
 | |
|   Vue.component('a-custom-statistic', {
 | |
|     props: {
 | |
|       'title': {
 | |
|         type: String,
 | |
|         required: false,
 | |
|       },
 | |
|       'value': {
 | |
|         type: String,
 | |
|         required: false
 | |
|       }
 | |
|     },
 | |
|     template: `{{template "component/customStatistic"}}`,
 | |
|   });
 | |
| </script>
 | |
| {{end}} |