mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	update placeholder blocks
This commit is contained in:
		
							parent
							
								
									a0ffb46a6f
								
							
						
					
					
						commit
						9d10de9949
					
				@ -40,7 +40,7 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 | 
				
			|||||||
@ -52,13 +52,13 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const diskData = data.find((item) => item.disk_name === diskName);
 | 
					  const diskData = data.find((item) => item.disk_name === diskName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!diskData) {
 | 
					  if (!diskData) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const diskRates = calculateRates(dataPoints);
 | 
					  const diskRates = calculateRates(dataPoints);
 | 
				
			||||||
 | 
				
			|||||||
@ -45,14 +45,14 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // eslint-disable-next-line eqeqeq
 | 
					  // eslint-disable-next-line eqeqeq
 | 
				
			||||||
  const gpuData = data.find((item) => item[item.key] == gpuName);
 | 
					  const gpuData = data.find((item) => item[item.key] == gpuName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!gpuData) {
 | 
					  if (!gpuData) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 | 
				
			|||||||
@ -38,7 +38,7 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 | 
				
			|||||||
@ -44,13 +44,13 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const interfaceData = data.find((item) => item[item.key] === interfaceName);
 | 
					  const interfaceData = data.find((item) => item[item.key] === interfaceName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!interfaceData) {
 | 
					  if (!interfaceData) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  data.splice(5);
 | 
					  data.splice(5);
 | 
				
			||||||
 | 
				
			|||||||
@ -41,13 +41,13 @@ export default function Component({ service }) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!data) {
 | 
					  if (!data) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const sensorData = data.find((item) => item.label === sensorName);
 | 
					  const sensorData = data.find((item) => item.label === sensorName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!sensorData) {
 | 
					  if (!sensorData) {
 | 
				
			||||||
    return <Container><Block position={{bottom: 2, left: 2}}>-</Block></Container>;
 | 
					    return <Container><Block position="bottom-3 left-3">-</Block></Container>;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user