mirror of
				https://github.com/LiteyukiStudio/LiteyukiBot.git
				synced 2025-10-31 19:36:24 +00:00 
			
		
		
		
	✨ Add sign status for Lagrange.Core
This commit is contained in:
		| @@ -24,7 +24,7 @@ data.forEach((item) => { | ||||
|             }, | ||||
|             xAxis: { | ||||
|                 type: 'category', | ||||
|                 data: item["times"], | ||||
|                 data: item["times"].map(timestampToTime), | ||||
|             }, | ||||
|             yAxis: { | ||||
|                 type: 'value', | ||||
| @@ -38,4 +38,16 @@ data.forEach((item) => { | ||||
|             ] | ||||
|         } | ||||
|     ) | ||||
| }) | ||||
| }) | ||||
|  | ||||
|  | ||||
| function timestampToTime(timestamp) { | ||||
|     let date = new Date(timestamp * 1000) | ||||
|     let Y = date.getFullYear() + '-' | ||||
|     let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-' | ||||
|     let D = date.getDate() + ' ' | ||||
|     let h = date.getHours() + ':' | ||||
|     let m = date.getMinutes() + ':' | ||||
|     let s = date.getSeconds() | ||||
|     return M + D + h + m + s | ||||
| } | ||||
		Reference in New Issue
	
	Block a user