Chore: add organize imports to pre-commit (#5104)
Some checks failed
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Crowdin Action / Crowdin Sync (push) Has been cancelled

This commit is contained in:
shamoon
2025-03-30 21:40:03 -07:00
committed by GitHub
parent 954ab54493
commit eda06965fa
285 changed files with 601 additions and 576 deletions

View File

@@ -1,5 +1,5 @@
import path from "path";
import fs from "fs";
import path from "path";
import { CONF_DIR } from "utils/config/config";
import createLogger from "utils/logger";

View File

@@ -1,6 +1,6 @@
import { join } from "path";
import { createHash } from "crypto";
import { readFileSync } from "fs";
import { join } from "path";
import checkAndCopyConfig, { CONF_DIR } from "utils/config/config";

View File

@@ -1,5 +1,5 @@
import { cachedRequest } from "utils/proxy/http";
import createLogger from "utils/logger";
import { cachedRequest } from "utils/proxy/http";
const logger = createLogger("releases");

View File

@@ -1,8 +1,8 @@
import { searchProviders } from "components/widgets/search/search";
import { getSettings } from "utils/config/config";
import { cachedRequest } from "utils/proxy/http";
import { widgetsFromConfig } from "utils/config/widget-helpers";
import { cachedRequest } from "utils/proxy/http";
export default async function handler(req, res) {
const { query, providerName } = req.query;

View File

@@ -1,9 +1,9 @@
import { formatApiCall } from "utils/proxy/api-helpers";
import createLogger from "utils/logger";
import genericProxyHandler from "utils/proxy/handlers/generic";
import widgets from "widgets/widgets";
import calendarProxyHandler from "widgets/calendar/proxy";
import getServiceWidget from "utils/config/service-helpers";
import createLogger from "utils/logger";
import { formatApiCall } from "utils/proxy/api-helpers";
import genericProxyHandler from "utils/proxy/handlers/generic";
import calendarProxyHandler from "widgets/calendar/proxy";
import widgets from "widgets/widgets";
const logger = createLogger("servicesProxy");

View File

@@ -1,6 +1,6 @@
import { httpProxy } from "utils/proxy/http";
import createLogger from "utils/logger";
import { getPrivateWidgetOptions } from "utils/config/widget-helpers";
import createLogger from "utils/logger";
import { httpProxy } from "utils/proxy/http";
const logger = createLogger("glances");

View File

@@ -1,6 +1,6 @@
import { httpProxy } from "../../../utils/proxy/http";
import createLogger from "../../../utils/logger";
import { getSettings } from "../../../utils/config/config";
import createLogger from "../../../utils/logger";
import { httpProxy } from "../../../utils/proxy/http";
const logger = createLogger("longhorn");

View File

@@ -1,6 +1,6 @@
import { cachedRequest } from "utils/proxy/http";
import { getSettings } from "utils/config/config";
import { getPrivateWidgetOptions } from "utils/config/widget-helpers";
import { cachedRequest } from "utils/proxy/http";
export default async function handler(req, res) {
const { latitude, longitude, units, provider, cache, lang, index } = req.query;

View File

@@ -1,6 +1,6 @@
import { cachedRequest } from "utils/proxy/http";
import { getSettings } from "utils/config/config";
import createLogger from "utils/logger";
import { cachedRequest } from "utils/proxy/http";
const logger = createLogger("stocks");

View File

@@ -1,6 +1,6 @@
import { cachedRequest } from "utils/proxy/http";
import { getSettings } from "utils/config/config";
import { getPrivateWidgetOptions } from "utils/config/widget-helpers";
import { cachedRequest } from "utils/proxy/http";
export default async function handler(req, res) {
const { latitude, longitude, provider, cache, lang, index } = req.query;