mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
xo: Fix n/file-extension-in-import, maybe.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -6,10 +6,10 @@ import {JsonDB} from "node-json-db";
|
||||
import {DataError} from "node-json-db/dist/lib/Errors";
|
||||
import type * as z from "zod";
|
||||
|
||||
import {configSchemata} from "./config-schemata";
|
||||
import * as EnterpriseUtil from "./enterprise-util";
|
||||
import Logger from "./logger-util";
|
||||
import {app, dialog} from "./remote";
|
||||
import {configSchemata} from "./config-schemata.js";
|
||||
import * as EnterpriseUtil from "./enterprise-util.js";
|
||||
import Logger from "./logger-util.js";
|
||||
import {app, dialog} from "./remote.js";
|
||||
|
||||
export type Config = {
|
||||
[Key in keyof typeof configSchemata]: z.output<typeof configSchemata[Key]>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import fs from "node:fs";
|
||||
|
||||
import {app} from "./remote";
|
||||
import {app} from "./remote.js";
|
||||
|
||||
let setupCompleted = false;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import process from "node:process";
|
||||
|
||||
import type * as z from "zod";
|
||||
|
||||
import type {dndSettingsSchemata} from "./config-schemata";
|
||||
import * as ConfigUtil from "./config-util";
|
||||
import type {dndSettingsSchemata} from "./config-schemata.js";
|
||||
import * as ConfigUtil from "./config-util.js";
|
||||
|
||||
export type DndSettings = {
|
||||
[Key in keyof typeof dndSettingsSchemata]: z.output<
|
||||
|
||||
@@ -4,8 +4,8 @@ import process from "node:process";
|
||||
|
||||
import * as z from "zod";
|
||||
|
||||
import {enterpriseConfigSchemata} from "./config-schemata";
|
||||
import Logger from "./logger-util";
|
||||
import {enterpriseConfigSchemata} from "./config-schemata.js";
|
||||
import Logger from "./logger-util.js";
|
||||
|
||||
type EnterpriseConfig = {
|
||||
[Key in keyof typeof enterpriseConfigSchemata]: z.output<
|
||||
|
||||
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
import {html} from "./html";
|
||||
import {html} from "./html.js";
|
||||
|
||||
export async function openBrowser(url: URL): Promise<void> {
|
||||
if (["http:", "https:", "mailto:"].includes(url.protocol)) {
|
||||
|
||||
@@ -3,8 +3,8 @@ import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import process from "node:process";
|
||||
|
||||
import {initSetUp} from "./default-util";
|
||||
import {app} from "./remote";
|
||||
import {initSetUp} from "./default-util.js";
|
||||
import {app} from "./remote.js";
|
||||
|
||||
type LoggerOptions = {
|
||||
file?: string;
|
||||
|
||||
@@ -2,7 +2,7 @@ import path from "node:path";
|
||||
|
||||
import i18n from "i18n";
|
||||
|
||||
import * as ConfigUtil from "./config-util";
|
||||
import * as ConfigUtil from "./config-util.js";
|
||||
|
||||
i18n.configure({
|
||||
directory: path.join(__dirname, "../translations/"),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type {DndSettings} from "./dnd-util";
|
||||
import type {MenuProps, ServerConf} from "./types";
|
||||
import type {DndSettings} from "./dnd-util.js";
|
||||
import type {MenuProps, ServerConf} from "./types.js";
|
||||
|
||||
export type MainMessage = {
|
||||
"clear-app-settings": () => void;
|
||||
|
||||
@@ -6,9 +6,9 @@ import log from "electron-log";
|
||||
import type {UpdateDownloadedEvent, UpdateInfo} from "electron-updater";
|
||||
import {autoUpdater} from "electron-updater";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
|
||||
import {linuxUpdateNotification} from "./linuxupdater"; // Required only in case of linux
|
||||
import {linuxUpdateNotification} from "./linuxupdater.js"; // Required only in case of linux
|
||||
|
||||
let quitting = false;
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import type {BrowserWindow} from "electron/main";
|
||||
import {app} from "electron/main";
|
||||
import process from "node:process";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
|
||||
import {send} from "./typed-ipc-main";
|
||||
import {send} from "./typed-ipc-main.js";
|
||||
|
||||
function showBadgeCount(messageCount: number, mainWindow: BrowserWindow): void {
|
||||
if (process.platform === "win32") {
|
||||
|
||||
@@ -8,10 +8,10 @@ import {Notification, app} from "electron/main";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import * as LinkUtil from "../common/link-util";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
import * as LinkUtil from "../common/link-util.js";
|
||||
|
||||
import {send} from "./typed-ipc-main";
|
||||
import {send} from "./typed-ipc-main.js";
|
||||
|
||||
function isUploadsUrl(server: string, url: URL): boolean {
|
||||
return url.origin === server && url.pathname.startsWith("/user_uploads/");
|
||||
|
||||
@@ -6,18 +6,18 @@ import process from "node:process";
|
||||
import * as remoteMain from "@electron/remote/main";
|
||||
import windowStateKeeper from "electron-window-state";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import type {RendererMessage} from "../common/typed-ipc";
|
||||
import type {MenuProps} from "../common/types";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
import type {RendererMessage} from "../common/typed-ipc.js";
|
||||
import type {MenuProps} from "../common/types.js";
|
||||
|
||||
import {appUpdater, shouldQuitForUpdate} from "./autoupdater";
|
||||
import * as BadgeSettings from "./badge-settings";
|
||||
import handleExternalLink from "./handle-external-link";
|
||||
import * as AppMenu from "./menu";
|
||||
import {_getServerSettings, _isOnline, _saveServerIcon} from "./request";
|
||||
import {sentryInit} from "./sentry";
|
||||
import {setAutoLaunch} from "./startup";
|
||||
import {ipcMain, send} from "./typed-ipc-main";
|
||||
import {appUpdater, shouldQuitForUpdate} from "./autoupdater.js";
|
||||
import * as BadgeSettings from "./badge-settings.js";
|
||||
import handleExternalLink from "./handle-external-link.js";
|
||||
import * as AppMenu from "./menu.js";
|
||||
import {_getServerSettings, _isOnline, _saveServerIcon} from "./request.js";
|
||||
import {sentryInit} from "./sentry.js";
|
||||
import {setAutoLaunch} from "./startup.js";
|
||||
import {ipcMain, send} from "./typed-ipc-main.js";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
const {GDK_BACKEND} = process.env;
|
||||
|
||||
@@ -5,7 +5,7 @@ import path from "node:path";
|
||||
import {JsonDB} from "node-json-db";
|
||||
import {DataError} from "node-json-db/dist/lib/Errors";
|
||||
|
||||
import Logger from "../common/logger-util";
|
||||
import Logger from "../common/logger-util.js";
|
||||
|
||||
const logger = new Logger({
|
||||
file: "linux-update-util.log",
|
||||
|
||||
@@ -5,11 +5,11 @@ import getStream from "get-stream";
|
||||
import * as semver from "semver";
|
||||
import * as z from "zod";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import Logger from "../common/logger-util";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
import Logger from "../common/logger-util.js";
|
||||
|
||||
import * as LinuxUpdateUtil from "./linux-update-util";
|
||||
import {fetchResponse} from "./request";
|
||||
import * as LinuxUpdateUtil from "./linux-update-util.js";
|
||||
import {fetchResponse} from "./request.js";
|
||||
|
||||
const logger = new Logger({
|
||||
file: "linux-update-util.log",
|
||||
|
||||
@@ -5,14 +5,14 @@ import process from "node:process";
|
||||
|
||||
import AdmZip from "adm-zip";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import * as DNDUtil from "../common/dnd-util";
|
||||
import * as t from "../common/translation-util";
|
||||
import type {RendererMessage} from "../common/typed-ipc";
|
||||
import type {MenuProps, TabData} from "../common/types";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
import * as DNDUtil from "../common/dnd-util.js";
|
||||
import * as t from "../common/translation-util.js";
|
||||
import type {RendererMessage} from "../common/typed-ipc.js";
|
||||
import type {MenuProps, TabData} from "../common/types.js";
|
||||
|
||||
import {appUpdater} from "./autoupdater";
|
||||
import {send} from "./typed-ipc-main";
|
||||
import {appUpdater} from "./autoupdater.js";
|
||||
import {send} from "./typed-ipc-main.js";
|
||||
|
||||
const appName = app.name;
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ import * as Sentry from "@sentry/electron";
|
||||
import getStream from "get-stream";
|
||||
import * as z from "zod";
|
||||
|
||||
import Logger from "../common/logger-util";
|
||||
import * as Messages from "../common/messages";
|
||||
import type {ServerConf} from "../common/types";
|
||||
import Logger from "../common/logger-util.js";
|
||||
import * as Messages from "../common/messages.js";
|
||||
import type {ServerConf} from "../common/types.js";
|
||||
|
||||
export async function fetchResponse(
|
||||
request: ClientRequest,
|
||||
|
||||
@@ -2,7 +2,7 @@ import {app} from "electron/main";
|
||||
|
||||
import * as Sentry from "@sentry/electron";
|
||||
|
||||
import {getConfigItem} from "../common/config-util";
|
||||
import {getConfigItem} from "../common/config-util.js";
|
||||
|
||||
export const sentryInit = (): void => {
|
||||
Sentry.init({
|
||||
|
||||
@@ -3,7 +3,7 @@ import process from "node:process";
|
||||
|
||||
import AutoLaunch from "auto-launch";
|
||||
|
||||
import * as ConfigUtil from "../common/config-util";
|
||||
import * as ConfigUtil from "../common/config-util.js";
|
||||
|
||||
export const setAutoLaunch = async (
|
||||
AutoLaunchValue: boolean,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type {Html} from "../../../common/html";
|
||||
import type {Html} from "../../../common/html.js";
|
||||
|
||||
export function generateNodeFromHtml(html: Html): Element {
|
||||
const wrapper = document.createElement("div");
|
||||
|
||||
@@ -8,7 +8,7 @@ import process from "node:process";
|
||||
|
||||
import {Menu} from "@electron/remote";
|
||||
|
||||
import * as t from "../../../common/translation-util";
|
||||
import * as t from "../../../common/translation-util.js";
|
||||
|
||||
export const contextMenu = (
|
||||
webContents: WebContents,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type {Html} from "../../../common/html";
|
||||
import {html} from "../../../common/html";
|
||||
import type {Html} from "../../../common/html.js";
|
||||
import {html} from "../../../common/html.js";
|
||||
|
||||
import {generateNodeFromHtml} from "./base";
|
||||
import type {TabProps} from "./tab";
|
||||
import Tab from "./tab";
|
||||
import {generateNodeFromHtml} from "./base.js";
|
||||
import type {TabProps} from "./tab.js";
|
||||
import Tab from "./tab.js";
|
||||
|
||||
export type FunctionalTabProps = {
|
||||
$view: Element;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import process from "node:process";
|
||||
|
||||
import type {Html} from "../../../common/html";
|
||||
import {html} from "../../../common/html";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import type {Html} from "../../../common/html.js";
|
||||
import {html} from "../../../common/html.js";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
|
||||
import {generateNodeFromHtml} from "./base";
|
||||
import type {TabProps} from "./tab";
|
||||
import Tab from "./tab";
|
||||
import type WebView from "./webview";
|
||||
import {generateNodeFromHtml} from "./base.js";
|
||||
import type {TabProps} from "./tab.js";
|
||||
import Tab from "./tab.js";
|
||||
import type WebView from "./webview.js";
|
||||
|
||||
export type ServerTabProps = {
|
||||
webview: Promise<WebView>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type {TabRole} from "../../../common/types";
|
||||
import type {TabRole} from "../../../common/types.js";
|
||||
|
||||
export type TabProps = {
|
||||
role: TabRole;
|
||||
|
||||
@@ -6,16 +6,16 @@ import process from "node:process";
|
||||
import * as remote from "@electron/remote";
|
||||
import {app, dialog} from "@electron/remote";
|
||||
|
||||
import * as ConfigUtil from "../../../common/config-util";
|
||||
import type {Html} from "../../../common/html";
|
||||
import {html} from "../../../common/html";
|
||||
import type {RendererMessage} from "../../../common/typed-ipc";
|
||||
import type {TabRole} from "../../../common/types";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import * as SystemUtil from "../utils/system-util";
|
||||
import * as ConfigUtil from "../../../common/config-util.js";
|
||||
import type {Html} from "../../../common/html.js";
|
||||
import {html} from "../../../common/html.js";
|
||||
import type {RendererMessage} from "../../../common/typed-ipc.js";
|
||||
import type {TabRole} from "../../../common/types.js";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
import * as SystemUtil from "../utils/system-util.js";
|
||||
|
||||
import {generateNodeFromHtml} from "./base";
|
||||
import {contextMenu} from "./context-menu";
|
||||
import {generateNodeFromHtml} from "./base.js";
|
||||
import {contextMenu} from "./context-menu.js";
|
||||
|
||||
const shouldSilentWebview = ConfigUtil.getConfigItem("silent", false);
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {EventEmitter} from "node:events";
|
||||
|
||||
import type {ClipboardDecrypter} from "./clipboard-decrypter";
|
||||
import {ClipboardDecrypterImpl} from "./clipboard-decrypter";
|
||||
import type {NotificationData} from "./notification";
|
||||
import {newNotification} from "./notification";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer";
|
||||
import type {ClipboardDecrypter} from "./clipboard-decrypter.js";
|
||||
import {ClipboardDecrypterImpl} from "./clipboard-decrypter.js";
|
||||
import type {NotificationData} from "./notification/index.js";
|
||||
import {newNotification} from "./notification/index.js";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer.js";
|
||||
|
||||
type ListenerType = (...args: any[]) => void;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
type ElectronBridge = import("./electron-bridge").ElectronBridge;
|
||||
type ElectronBridge = import("./electron-bridge.js").ElectronBridge;
|
||||
|
||||
type CompatElectronBridge = {
|
||||
readonly idle_on_system: boolean;
|
||||
|
||||
@@ -6,25 +6,25 @@ import {Menu, app, dialog, session} from "@electron/remote";
|
||||
import * as remote from "@electron/remote";
|
||||
import * as Sentry from "@sentry/electron";
|
||||
|
||||
import type {Config} from "../../common/config-util";
|
||||
import * as ConfigUtil from "../../common/config-util";
|
||||
import * as DNDUtil from "../../common/dnd-util";
|
||||
import type {DndSettings} from "../../common/dnd-util";
|
||||
import * as EnterpriseUtil from "../../common/enterprise-util";
|
||||
import * as LinkUtil from "../../common/link-util";
|
||||
import Logger from "../../common/logger-util";
|
||||
import * as Messages from "../../common/messages";
|
||||
import type {NavItem, ServerConf, TabData} from "../../common/types";
|
||||
import type {Config} from "../../common/config-util.js";
|
||||
import * as ConfigUtil from "../../common/config-util.js";
|
||||
import * as DNDUtil from "../../common/dnd-util.js";
|
||||
import type {DndSettings} from "../../common/dnd-util.js";
|
||||
import * as EnterpriseUtil from "../../common/enterprise-util.js";
|
||||
import * as LinkUtil from "../../common/link-util.js";
|
||||
import Logger from "../../common/logger-util.js";
|
||||
import * as Messages from "../../common/messages.js";
|
||||
import type {NavItem, ServerConf, TabData} from "../../common/types.js";
|
||||
|
||||
import FunctionalTab from "./components/functional-tab";
|
||||
import ServerTab from "./components/server-tab";
|
||||
import WebView from "./components/webview";
|
||||
import {AboutView} from "./pages/about";
|
||||
import {PreferenceView} from "./pages/preference/preference";
|
||||
import {initializeTray} from "./tray";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer";
|
||||
import * as DomainUtil from "./utils/domain-util";
|
||||
import ReconnectUtil from "./utils/reconnect-util";
|
||||
import FunctionalTab from "./components/functional-tab.js";
|
||||
import ServerTab from "./components/server-tab.js";
|
||||
import WebView from "./components/webview.js";
|
||||
import {AboutView} from "./pages/about.js";
|
||||
import {PreferenceView} from "./pages/preference/preference.js";
|
||||
import {initializeTray} from "./tray.js";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer.js";
|
||||
import * as DomainUtil from "./utils/domain-util.js";
|
||||
import ReconnectUtil from "./utils/reconnect-util.js";
|
||||
|
||||
Sentry.init({});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
|
||||
export type NotificationData = {
|
||||
close: () => void;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {app} from "@electron/remote";
|
||||
|
||||
import {html} from "../../../common/html";
|
||||
import {html} from "../../../common/html.js";
|
||||
|
||||
export class AboutView {
|
||||
readonly $view: HTMLElement;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
|
||||
export function init(
|
||||
$reconnectButton: Element,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {Html} from "../../../../common/html";
|
||||
import {html} from "../../../../common/html";
|
||||
import {generateNodeFromHtml} from "../../components/base";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import type {Html} from "../../../../common/html.js";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import {generateNodeFromHtml} from "../../components/base.js";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
|
||||
type BaseSectionProps = {
|
||||
$element: HTMLElement;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {html} from "../../../../common/html";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import * as DomainUtil from "../../utils/domain-util";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
import * as DomainUtil from "../../utils/domain-util.js";
|
||||
|
||||
import {reloadApp} from "./base-section";
|
||||
import {initFindAccounts} from "./find-accounts";
|
||||
import {initServerInfoForm} from "./server-info-form";
|
||||
import {reloadApp} from "./base-section.js";
|
||||
import {initFindAccounts} from "./find-accounts.js";
|
||||
import {initServerInfoForm} from "./server-info-form.js";
|
||||
|
||||
type ConnectedOrgSectionProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {html} from "../../../../common/html";
|
||||
import * as LinkUtil from "../../../../common/link-util";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import {generateNodeFromHtml} from "../../components/base";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as LinkUtil from "../../../../common/link-util.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import {generateNodeFromHtml} from "../../components/base.js";
|
||||
|
||||
type FindAccountsProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -9,14 +9,14 @@ import Tagify from "@yaireo/tagify";
|
||||
import ISO6391 from "iso-639-1";
|
||||
import * as z from "zod";
|
||||
|
||||
import * as ConfigUtil from "../../../../common/config-util";
|
||||
import * as EnterpriseUtil from "../../../../common/enterprise-util";
|
||||
import {html} from "../../../../common/html";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import * as ConfigUtil from "../../../../common/config-util.js";
|
||||
import * as EnterpriseUtil from "../../../../common/enterprise-util.js";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import supportedLocales from "../../../../translations/supported-locales.json";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
|
||||
import {generateSelectHtml, generateSettingOption} from "./base-section";
|
||||
import {generateSelectHtml, generateSettingOption} from "./base-section.js";
|
||||
|
||||
const currentBrowserWindow = remote.getCurrentWindow();
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type {Html} from "../../../../common/html";
|
||||
import {html} from "../../../../common/html";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import type {NavItem} from "../../../../common/types";
|
||||
import {generateNodeFromHtml} from "../../components/base";
|
||||
import type {Html} from "../../../../common/html.js";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import type {NavItem} from "../../../../common/types.js";
|
||||
import {generateNodeFromHtml} from "../../components/base.js";
|
||||
|
||||
type PreferenceNavProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as ConfigUtil from "../../../../common/config-util";
|
||||
import {html} from "../../../../common/html";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import * as ConfigUtil from "../../../../common/config-util.js";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
|
||||
import {generateSettingOption} from "./base-section";
|
||||
import {generateSettingOption} from "./base-section.js";
|
||||
|
||||
type NetworkSectionProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {dialog} from "@electron/remote";
|
||||
|
||||
import {html} from "../../../../common/html";
|
||||
import * as LinkUtil from "../../../../common/link-util";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import {generateNodeFromHtml} from "../../components/base";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import * as DomainUtil from "../../utils/domain-util";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as LinkUtil from "../../../../common/link-util.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import {generateNodeFromHtml} from "../../components/base.js";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
import * as DomainUtil from "../../utils/domain-util.js";
|
||||
|
||||
type NewServerFormProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import process from "node:process";
|
||||
|
||||
import type {DndSettings} from "../../../../common/dnd-util";
|
||||
import {html} from "../../../../common/html";
|
||||
import type {NavItem} from "../../../../common/types";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import type {DndSettings} from "../../../../common/dnd-util.js";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import type {NavItem} from "../../../../common/types.js";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
|
||||
import {initConnectedOrgSection} from "./connected-org-section";
|
||||
import {initGeneralSection} from "./general-section";
|
||||
import Nav from "./nav";
|
||||
import {initNetworkSection} from "./network-section";
|
||||
import {initServersSection} from "./servers-section";
|
||||
import {initShortcutsSection} from "./shortcuts-section";
|
||||
import {initConnectedOrgSection} from "./connected-org-section.js";
|
||||
import {initGeneralSection} from "./general-section.js";
|
||||
import Nav from "./nav.js";
|
||||
import {initNetworkSection} from "./network-section.js";
|
||||
import {initServersSection} from "./servers-section.js";
|
||||
import {initShortcutsSection} from "./shortcuts-section.js";
|
||||
|
||||
export class PreferenceView {
|
||||
readonly $view: HTMLElement;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {dialog} from "@electron/remote";
|
||||
|
||||
import {html} from "../../../../common/html";
|
||||
import * as Messages from "../../../../common/messages";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import type {ServerConf} from "../../../../common/types";
|
||||
import {generateNodeFromHtml} from "../../components/base";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer";
|
||||
import * as DomainUtil from "../../utils/domain-util";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as Messages from "../../../../common/messages.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
import type {ServerConf} from "../../../../common/types.js";
|
||||
import {generateNodeFromHtml} from "../../components/base.js";
|
||||
import {ipcRenderer} from "../../typed-ipc-renderer.js";
|
||||
import * as DomainUtil from "../../utils/domain-util.js";
|
||||
|
||||
type ServerInfoFormProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {html} from "../../../../common/html";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
|
||||
import {reloadApp} from "./base-section";
|
||||
import {initNewServerForm} from "./new-server-form";
|
||||
import {reloadApp} from "./base-section.js";
|
||||
import {initNewServerForm} from "./new-server-form.js";
|
||||
|
||||
type ServersSectionProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import process from "node:process";
|
||||
|
||||
import {html} from "../../../../common/html";
|
||||
import * as LinkUtil from "../../../../common/link-util";
|
||||
import * as t from "../../../../common/translation-util";
|
||||
import {html} from "../../../../common/html.js";
|
||||
import * as LinkUtil from "../../../../common/link-util.js";
|
||||
import * as t from "../../../../common/translation-util.js";
|
||||
|
||||
type ShortcutsSectionProps = {
|
||||
$root: Element;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {contextBridge, webFrame} from "electron/renderer";
|
||||
import fs from "node:fs";
|
||||
|
||||
import electron_bridge, {bridgeEvents} from "./electron-bridge";
|
||||
import * as NetworkError from "./pages/network";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer";
|
||||
import electron_bridge, {bridgeEvents} from "./electron-bridge.js";
|
||||
import * as NetworkError from "./pages/network.js";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer.js";
|
||||
|
||||
contextBridge.exposeInMainWorld("raw_electron_bridge", electron_bridge);
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@ import process from "node:process";
|
||||
|
||||
import {BrowserWindow, Menu, Tray} from "@electron/remote";
|
||||
|
||||
import * as ConfigUtil from "../../common/config-util";
|
||||
import type {RendererMessage} from "../../common/typed-ipc";
|
||||
import * as ConfigUtil from "../../common/config-util.js";
|
||||
import type {RendererMessage} from "../../common/typed-ipc.js";
|
||||
|
||||
import type {ServerManagerView} from "./main";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer";
|
||||
import type {ServerManagerView} from "./main.js";
|
||||
import {ipcRenderer} from "./typed-ipc-renderer.js";
|
||||
|
||||
let tray: ElectronTray | null = null;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
MainCall,
|
||||
MainMessage,
|
||||
RendererMessage,
|
||||
} from "../../common/typed-ipc";
|
||||
} from "../../common/typed-ipc.js";
|
||||
|
||||
type RendererListener<Channel extends keyof RendererMessage> =
|
||||
RendererMessage[Channel] extends (...args: infer Args) => void
|
||||
|
||||
@@ -7,11 +7,11 @@ import {JsonDB} from "node-json-db";
|
||||
import {DataError} from "node-json-db/dist/lib/Errors";
|
||||
import * as z from "zod";
|
||||
|
||||
import * as EnterpriseUtil from "../../../common/enterprise-util";
|
||||
import Logger from "../../../common/logger-util";
|
||||
import * as Messages from "../../../common/messages";
|
||||
import type {ServerConf} from "../../../common/types";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import * as EnterpriseUtil from "../../../common/enterprise-util.js";
|
||||
import Logger from "../../../common/logger-util.js";
|
||||
import * as Messages from "../../../common/messages.js";
|
||||
import type {ServerConf} from "../../../common/types.js";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
|
||||
const logger = new Logger({
|
||||
file: "domain-util.log",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as backoff from "backoff";
|
||||
|
||||
import {html} from "../../../common/html";
|
||||
import Logger from "../../../common/logger-util";
|
||||
import type WebView from "../components/webview";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import {html} from "../../../common/html.js";
|
||||
import Logger from "../../../common/logger-util.js";
|
||||
import type WebView from "../components/webview.js";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
|
||||
const logger = new Logger({
|
||||
file: "domain-util.log",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ipcRenderer} from "../typed-ipc-renderer";
|
||||
import {ipcRenderer} from "../typed-ipc-renderer.js";
|
||||
|
||||
export const connectivityError: string[] = [
|
||||
"ERR_INTERNET_DISCONNECTED",
|
||||
|
||||
34
package-lock.json
generated
34
package-lock.json
generated
@@ -39,7 +39,6 @@
|
||||
"electron": "^18.0.1",
|
||||
"electron-builder": "^23.0.3",
|
||||
"electron-notarize": "^1.0.0",
|
||||
"eslint-import-resolver-typescript": "^2.4.0",
|
||||
"htmlhint": "^1.1.2",
|
||||
"medium": "^1.2.0",
|
||||
"playwright-core": "^1.19.1",
|
||||
@@ -3169,26 +3168,6 @@
|
||||
"ms": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-import-resolver-typescript": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.7.1.tgz",
|
||||
"integrity": "sha512-00UbgGwV8bSgUv34igBDbTOtKhqoRMy9bFjNehT40bXg6585PNIct8HhXZ0SybqB9rWtXj9crcku8ndDn/gIqQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
"glob": "^7.2.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"resolve": "^1.22.0",
|
||||
"tsconfig-paths": "^3.14.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "*",
|
||||
"eslint-plugin-import": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-import-resolver-webpack": {
|
||||
"version": "0.13.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.2.tgz",
|
||||
@@ -12826,19 +12805,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-import-resolver-typescript": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.7.1.tgz",
|
||||
"integrity": "sha512-00UbgGwV8bSgUv34igBDbTOtKhqoRMy9bFjNehT40bXg6585PNIct8HhXZ0SybqB9rWtXj9crcku8ndDn/gIqQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "^4.3.4",
|
||||
"glob": "^7.2.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"resolve": "^1.22.0",
|
||||
"tsconfig-paths": "^3.14.1"
|
||||
}
|
||||
},
|
||||
"eslint-import-resolver-webpack": {
|
||||
"version": "0.13.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.2.tgz",
|
||||
|
||||
13
package.json
13
package.json
@@ -175,7 +175,6 @@
|
||||
"electron": "^18.0.1",
|
||||
"electron-builder": "^23.0.3",
|
||||
"electron-notarize": "^1.0.0",
|
||||
"eslint-import-resolver-typescript": "^2.4.0",
|
||||
"htmlhint": "^1.1.2",
|
||||
"medium": "^1.2.0",
|
||||
"playwright-core": "^1.19.1",
|
||||
@@ -199,15 +198,6 @@
|
||||
"rules": {
|
||||
"@typescript-eslint/no-dynamic-delete": "off",
|
||||
"arrow-body-style": "error",
|
||||
"import/extensions": [
|
||||
"error",
|
||||
"always",
|
||||
{
|
||||
"pattern": {
|
||||
"ts": "never"
|
||||
}
|
||||
}
|
||||
],
|
||||
"import/no-restricted-paths": [
|
||||
"error",
|
||||
{
|
||||
@@ -312,9 +302,6 @@
|
||||
}
|
||||
],
|
||||
"unicorn/no-await-expression-member": "off"
|
||||
},
|
||||
"settings": {
|
||||
"import/resolver": "typescript"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user