mirror of
https://github.com/kmvan/x-prober.git
synced 2026-04-24 19:58:59 +08:00
remove blank line
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
.container {
|
||||
display: grid;
|
||||
gap: var(--x-gutter);
|
||||
padding: 0 var(--x-gutter);
|
||||
// padding: 0 var(--x-gutter-sm);
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import type { FC, ReactNode } from 'react';
|
||||
import { ModuleArrow } from '@/Components/Module/components/arrow.tsx';
|
||||
import styles from './item.module.scss';
|
||||
|
||||
const ModuleItemTitle: FC<{
|
||||
import styles from './item.module.scss';const ModuleItemTitle: FC<{
|
||||
id: string;
|
||||
title: string;
|
||||
}> = ({ id, title }) => {
|
||||
|
||||
@@ -9,9 +9,7 @@ import { PingLoader } from '@/Components/Ping/components/loader.ts';
|
||||
import { ServerBenchmarkLoader } from '@/Components/ServerBenchmark/components/loader.ts';
|
||||
import { ServerInfoLoader } from '@/Components/ServerInfo/components/loader.ts';
|
||||
import { ServerStatusLoader } from '@/Components/ServerStatus/components/loader.ts';
|
||||
import { TemperatureSensorLoader } from '@/Components/TemperatureSensor/components/loader.ts';
|
||||
|
||||
export const ModulePreset = {
|
||||
import { TemperatureSensorLoader } from '@/Components/TemperatureSensor/components/loader.ts';export const ModulePreset = {
|
||||
items: [
|
||||
NodesLoader,
|
||||
TemperatureSensorLoader,
|
||||
|
||||
@@ -9,9 +9,7 @@ import { PhpInfoConstants } from '../../PhpInfo/components/constants.ts';
|
||||
import { ServerBenchmarkConstants } from '../../ServerBenchmark/components/constants.ts';
|
||||
import { ServerInfoConstants } from '../../ServerInfo/components/constants.ts';
|
||||
import { ServerStatusConstants } from '../../ServerStatus/components/constants.ts';
|
||||
import { TemperatureSensorConstants } from '../../TemperatureSensor/components/constants.ts';
|
||||
|
||||
export const ModulePriority = [
|
||||
import { TemperatureSensorConstants } from '../../TemperatureSensor/components/constants.ts';export const ModulePriority = [
|
||||
NodesConstants.id,
|
||||
TemperatureSensorConstants.id,
|
||||
ServerStatusConstants.id,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import type { StoragePriorityItemProps } from './store.ts';
|
||||
|
||||
const STORAGE_KEY = 'module-priority';
|
||||
import type { StoragePriorityItemProps } from './store.ts';const STORAGE_KEY = 'module-priority';
|
||||
export const ModuleStorage = {
|
||||
getItems(): Record<string, number> {
|
||||
const items = localStorage.getItem(STORAGE_KEY);
|
||||
|
||||
@@ -4,9 +4,7 @@ import { PollStore } from '@/Components/Poll/components/store.ts';
|
||||
import type { PollDataProps } from '@/Components/Poll/components/typings.ts';
|
||||
import { ModulePreset } from './preset.ts';
|
||||
import { ModuleStorage } from './storage.ts';
|
||||
import type { ModuleProps, SortedModuleProps } from './typings.ts';
|
||||
|
||||
configure({
|
||||
import type { ModuleProps, SortedModuleProps } from './typings.ts';configure({
|
||||
enforceActions: 'observed',
|
||||
});
|
||||
export interface StoragePriorityItemProps {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import type { FC } from 'react';
|
||||
|
||||
export interface ModuleProps {
|
||||
import type { FC } from 'react';export interface ModuleProps {
|
||||
id: string;
|
||||
content: FC;
|
||||
nav: FC;
|
||||
|
||||
Reference in New Issue
Block a user