mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 08:20:56 +01:00
refactor: use relative TS path
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ConfigAppType, IntegrationField, IntegrationType } from '../../types/app';
|
||||
import { ConfigAppType, IntegrationField, IntegrationType } from '~/types/app';
|
||||
|
||||
export const findAppProperty = (app: ConfigAppType, key: IntegrationField) =>
|
||||
app.integration?.properties.find((prop) => prop.field === key)?.value ?? '';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Consola from 'consola';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import { BackendConfigType, ConfigType } from '../../types/config';
|
||||
import { BackendConfigType, ConfigType } from '~/types/config';
|
||||
import { configExists } from './configExists';
|
||||
import { getFallbackConfig } from './getFallbackConfig';
|
||||
import { readConfig } from './readConfig';
|
||||
|
||||
@@ -3,7 +3,7 @@ import fs from 'fs';
|
||||
import { fetchCity } from '~/server/api/routers/weather';
|
||||
import { IntegrationField } from '~/types/app';
|
||||
|
||||
import { BackendConfigType, ConfigType } from '../../types/config';
|
||||
import { BackendConfigType, ConfigType } from '~/types/config';
|
||||
import { getConfig } from './getConfig';
|
||||
|
||||
export const getFrontendConfig = async (name: string): Promise<ConfigType> => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from 'fs';
|
||||
|
||||
import { BackendConfigType } from '../../types/config';
|
||||
import { BackendConfigType } from '~/types/config';
|
||||
import { generateConfigPath } from './generateConfigPath';
|
||||
|
||||
export function writeConfig(config: BackendConfigType) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { z } from 'zod';
|
||||
import { trimStringEnding } from '../../../shared/strings';
|
||||
import { trimStringEnding } from '~/tools/shared/strings';
|
||||
import {
|
||||
adGuardApiFilteringStatusSchema,
|
||||
adGuardApiStatsResponseSchema,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { trimStringEnding } from '../../../shared/strings';
|
||||
import { trimStringEnding } from '~/tools/shared/strings';
|
||||
import { PiHoleApiStatusChangeResponse, PiHoleApiSummaryResponse } from './piHole.type';
|
||||
|
||||
export class PiHoleClient {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Element, xml2js } from 'xml-js';
|
||||
import {
|
||||
GenericCurrentlyPlaying,
|
||||
GenericSessionInfo,
|
||||
} from '../../../../types/api/media-server/session-info';
|
||||
} from '~/types/api/media-server/session-info';
|
||||
|
||||
export class PlexClient {
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user