Revert "xo: Fix import/extensions."

This reverts commit 5623ab3866.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-03-08 21:58:40 -08:00
parent bc59714192
commit 4151e020f6
45 changed files with 179 additions and 179 deletions

View File

@@ -1,6 +1,6 @@
import {app} from "@electron/remote";
import {html} from "../../../common/html.js";
import {html} from "../../../common/html";
export class AboutView {
readonly $view: HTMLElement;

View File

@@ -1,4 +1,4 @@
import {ipcRenderer} from "../typed-ipc-renderer.js";
import {ipcRenderer} from "../typed-ipc-renderer";
export function init(
$reconnectButton: Element,

View File

@@ -1,7 +1,7 @@
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";
import type {Html} from "../../../../common/html";
import {html} from "../../../../common/html";
import {generateNodeFromHtml} from "../../components/base";
import {ipcRenderer} from "../../typed-ipc-renderer";
interface BaseSectionProps {
$element: HTMLElement;

View File

@@ -1,11 +1,11 @@
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 {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 {reloadApp} from "./base-section.js";
import {initFindAccounts} from "./find-accounts.js";
import {initServerInfoForm} from "./server-info-form.js";
import {reloadApp} from "./base-section";
import {initFindAccounts} from "./find-accounts";
import {initServerInfoForm} from "./server-info-form";
interface ConnectedOrgSectionProps {
$root: Element;

View File

@@ -1,7 +1,7 @@
import {html} from "../../../../common/html.js";
import * as t from "../../../../common/translation-util.js";
import {generateNodeFromHtml} from "../../components/base.js";
import * as LinkUtil from "../../utils/link-util.js";
import {html} from "../../../../common/html";
import * as t from "../../../../common/translation-util";
import {generateNodeFromHtml} from "../../components/base";
import * as LinkUtil from "../../utils/link-util";
interface FindAccountsProps {
$root: Element;

View File

@@ -8,14 +8,14 @@ import Tagify from "@yaireo/tagify";
import ISO6391 from "iso-639-1";
import * as z from "zod";
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 * 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 supportedLocales from "../../../../translations/supported-locales.json";
import {ipcRenderer} from "../../typed-ipc-renderer.js";
import {ipcRenderer} from "../../typed-ipc-renderer";
import {generateSelectHtml, generateSettingOption} from "./base-section.js";
import {generateSelectHtml, generateSettingOption} from "./base-section";
const currentBrowserWindow = remote.getCurrentWindow();

View File

@@ -1,8 +1,8 @@
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";
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";
interface PreferenceNavProps {
$root: Element;

View File

@@ -1,9 +1,9 @@
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 * 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 {generateSettingOption} from "./base-section.js";
import {generateSettingOption} from "./base-section";
interface NetworkSectionProps {
$root: Element;

View File

@@ -1,11 +1,11 @@
import {dialog} from "@electron/remote";
import {html} from "../../../../common/html.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";
import * as LinkUtil from "../../utils/link-util.js";
import {html} from "../../../../common/html";
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 * as LinkUtil from "../../utils/link-util";
interface NewServerFormProps {
$root: Element;

View File

@@ -1,14 +1,14 @@
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 type {DndSettings} from "../../../../common/dnd-util";
import {html} from "../../../../common/html";
import type {NavItem} from "../../../../common/types";
import {ipcRenderer} from "../../typed-ipc-renderer";
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";
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";
export class PreferenceView {
readonly $view: HTMLElement;

View File

@@ -1,12 +1,12 @@
import {dialog} from "@electron/remote";
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";
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";
interface ServerInfoFormProps {
$root: Element;

View File

@@ -1,8 +1,8 @@
import {html} from "../../../../common/html.js";
import * as t from "../../../../common/translation-util.js";
import {html} from "../../../../common/html";
import * as t from "../../../../common/translation-util";
import {reloadApp} from "./base-section.js";
import {initNewServerForm} from "./new-server-form.js";
import {reloadApp} from "./base-section";
import {initNewServerForm} from "./new-server-form";
interface ServersSectionProps {
$root: Element;

View File

@@ -1,6 +1,6 @@
import {html} from "../../../../common/html.js";
import * as t from "../../../../common/translation-util.js";
import * as LinkUtil from "../../utils/link-util.js";
import {html} from "../../../../common/html";
import * as t from "../../../../common/translation-util";
import * as LinkUtil from "../../utils/link-util";
interface ShortcutsSectionProps {
$root: Element;