toast,
updateUnreadCountsInterval,
} from "../../utils";
-import { isBrowser } from "../../utils/browser/is-browser";
-import { poll } from "../../utils/helpers/poll";
-import { amAdmin } from "../../utils/roles/am-admin";
-import { canCreateCommunity } from "../../utils/roles/can-create-community";
+import isBrowser from "../../utils/browser/is-browser";
+import poll from "../../utils/helpers/poll";
+import amAdmin from "../../utils/roles/am-admin";
+import canCreateCommunity from "../../utils/roles/can-create-community";
import { Icon } from "../common/icon";
import { PictrsImage } from "../common/pictrs-image";
setupTribute,
toast,
} from "../../utils";
-import { isBrowser } from "../../utils/browser/is-browser";
+import isBrowser from "../../utils/browser/is-browser";
import { EmojiPicker } from "./emoji-picker";
import { Icon, Spinner } from "./icon";
import { LanguageSelect } from "./language-select";
setIsoData,
showLocal,
} from "../../utils";
-import { getQueryParams } from "../../utils/helpers/get-query-params";
-import { getQueryString } from "../../utils/helpers/get-query-string";
+import getQueryParams from "../../utils/helpers/get-query-params";
+import getQueryString from "../../utils/helpers/get-query-string";
import type { QueryParams } from "../../utils/types/query-params";
import { HtmlTags } from "../common/html-tags";
import { Spinner } from "../common/icon";
updateCommunityBlock,
updatePersonBlock,
} from "../../utils";
-import { getQueryParams } from "../../utils/helpers/get-query-params";
-import { getQueryString } from "../../utils/helpers/get-query-string";
+import getQueryParams from "../../utils/helpers/get-query-params";
+import getQueryString from "../../utils/helpers/get-query-string";
import type { QueryParams } from "../../utils/types/query-params";
import { CommentNodes } from "../comment/comment-nodes";
import { BannerIconHeader } from "../common/banner-icon-header";
} from "lemmy-js-client";
import { i18n } from "../../i18next";
import { UserService } from "../../services";
-import {
- getUnixTime,
- hostname,
- mdToHtml,
- myAuthRequired,
-} from "../../utils";
-import { amAdmin } from "../../utils/roles/am-admin";
-import { amMod } from "../../utils/roles/am-mod";
-import { amTopMod } from "../../utils/roles/am-top-mod";
+import { getUnixTime, hostname, mdToHtml, myAuthRequired } from "../../utils";
+import amAdmin from "../../utils/roles/am-admin";
+import amMod from "../../utils/roles/am-mod";
+import amTopMod from "../../utils/roles/am-top-mod";
import { Badges } from "../common/badges";
import { BannerIconHeader } from "../common/banner-icon-header";
import { Icon, PurgeWarning, Spinner } from "../common/icon";
trendingFetchLimit,
updatePersonBlock,
} from "../../utils";
-import { getQueryParams } from "../../utils/helpers/get-query-params";
-import { getQueryString } from "../../utils/helpers/get-query-string";
-import { canCreateCommunity } from "../../utils/roles/can-create-community";
+import getQueryParams from "../../utils/helpers/get-query-params";
+import getQueryString from "../../utils/helpers/get-query-string";
+import canCreateCommunity from "../../utils/roles/can-create-community";
import type { QueryParams } from "../../utils/types/query-params";
import { CommentNodes } from "../comment/comment-nodes";
import { DataTypeSelect } from "../common/data-type-select";
import { UserService } from "../../services";
import { HttpService, RequestState } from "../../services/HttpService";
import { myAuth, setIsoData, toast, validEmail } from "../../utils";
-import { isBrowser } from "../../utils/browser/is-browser";
+import isBrowser from "../../utils/browser/is-browser";
import { HtmlTags } from "../common/html-tags";
import { Spinner } from "../common/icon";
toast,
validEmail,
} from "../../utils";
-import { isBrowser } from "../../utils/browser/is-browser";
+import isBrowser from "../../utils/browser/is-browser";
import { HtmlTags } from "../common/html-tags";
import { Icon, Spinner } from "../common/icon";
import { MarkdownTextArea } from "../common/markdown-textarea";
personToChoice,
setIsoData,
} from "../utils";
-import { debounce } from "../utils/helpers/debounce";
-import { getQueryParams } from "../utils/helpers/get-query-params";
-import { getQueryString } from "../utils/helpers/get-query-string";
-import { amAdmin } from "../utils/roles/am-admin";
-import { amMod } from "../utils/roles/am-mod";
+import debounce from "../utils/helpers/debounce";
+import getQueryParams from "../utils/helpers/get-query-params";
+import getQueryString from "../utils/helpers/get-query-string";
+import amAdmin from "../utils/roles/am-admin";
+import amMod from "../utils/roles/am-mod";
import type { QueryParams } from "../utils/types/query-params";
import { HtmlTags } from "./common/html-tags";
import { Icon, Spinner } from "./common/icon";
toast,
updatePersonBlock,
} from "../../utils";
-import { getQueryParams } from "../../utils/helpers/get-query-params";
-import { getQueryString } from "../../utils/helpers/get-query-string";
-import { canMod } from "../../utils/roles/can-mod";
-import { isAdmin } from "../../utils/roles/is-admin";
-import { isBanned } from "../../utils/roles/is-banned";
+import getQueryParams from "../../utils/helpers/get-query-params";
+import getQueryString from "../../utils/helpers/get-query-string";
+import canMod from "../../utils/roles/can-mod";
+import isAdmin from "../../utils/roles/is-admin";
+import isBanned from "../../utils/roles/is-banned";
import type { QueryParams } from "../../utils/types/query-params";
import { BannerIconHeader } from "../common/banner-icon-header";
import { HtmlTags } from "../common/html-tags";
myAuthRequired,
setIsoData,
} from "../../utils";
-import { amAdmin } from "../../utils/roles/am-admin";
+import amAdmin from "../../utils/roles/am-admin";
import { CommentReport } from "../comment/comment-report";
import { HtmlTags } from "../common/html-tags";
import { Spinner } from "../common/icon";
updateCommunityBlock,
updatePersonBlock,
} from "../../utils";
-import { debounce } from "../../utils/helpers/debounce";
+import debounce from "../../utils/helpers/debounce";
import { HtmlTags } from "../common/html-tags";
import { Icon, Spinner } from "../common/icon";
import { ImageUploadForm } from "../common/image-upload-form";
myAuth,
setIsoData,
} from "../../utils";
-import { getQueryParams } from "../../utils/helpers/get-query-params";
+import getQueryParams from "../../utils/helpers/get-query-params";
import type { QueryParams } from "../../utils/types/query-params";
import { HtmlTags } from "../common/html-tags";
import { Spinner } from "../common/icon";
validURL,
webArchiveUrl,
} from "../../utils";
-import { debounce } from "../../utils/helpers/debounce";
+import debounce from "../../utils/helpers/debounce";
import { Icon, Spinner } from "../common/icon";
import { LanguageSelect } from "../common/language-select";
import { MarkdownTextArea } from "../common/markdown-textarea";
setupTippy,
showScores,
} from "../../utils";
-import { canShare } from "../../utils/browser/can-share";
-import { share } from "../../utils/browser/share";
-import { amAdmin } from "../../utils/roles/am-admin";
-import { amCommunityCreator } from "../../utils/roles/am-community-creator";
-import { amMod } from "../../utils/roles/am-mod";
-import { canAdmin } from "../../utils/roles/can-admin";
-import { canMod } from "../../utils/roles/can-mod";
-import { isAdmin } from "../../utils/roles/is-admin";
-import { isBanned } from "../../utils/roles/is-banned";
-import { isMod } from "../../utils/roles/is-mod";
+import canShare from "../../utils/browser/can-share";
+import share from "../../utils/browser/share";
+import amAdmin from "../../utils/roles/am-admin";
+import amCommunityCreator from "../../utils/roles/am-community-creator";
+import amMod from "../../utils/roles/am-mod";
+import canAdmin from "../../utils/roles/can-admin";
+import canMod from "../../utils/roles/can-mod";
+import isAdmin from "../../utils/roles/is-admin";
+import isBanned from "../../utils/roles/is-banned";
+import isMod from "../../utils/roles/is-mod";
import { Icon, PurgeWarning, Spinner } from "../common/icon";
import { MomentTime } from "../common/moment-time";
import { PictrsImage } from "../common/pictrs-image";
updateCommunityBlock,
updatePersonBlock,
} from "../../utils";
-import { isBrowser } from "../../utils/browser/is-browser";
-import { debounce } from "../../utils/helpers/debounce";
+import isBrowser from "../../utils/browser/is-browser";
+import debounce from "../../utils/helpers/debounce";
import { CommentForm } from "../comment/comment-form";
import { CommentNodes } from "../comment/comment-nodes";
import { HtmlTags } from "../common/html-tags";
setIsoData,
showLocal,
} from "../utils";
-import { debounce } from "../utils/helpers/debounce";
-import { getQueryParams } from "../utils/helpers/get-query-params";
-import { getQueryString } from "../utils/helpers/get-query-string";
+import debounce from "../utils/helpers/debounce";
+import getQueryParams from "../utils/helpers/get-query-params";
+import getQueryString from "../utils/helpers/get-query-string";
import type { QueryParams } from "../utils/types/query-params";
import { CommentNodes } from "./comment/comment-nodes";
import { HtmlTags } from "./common/html-tags";
-import { isBrowser } from "./utils/browser/is-browser";
+import isBrowser from "./utils/browser/is-browser";
const testHost = "0.0.0.0:8536";
import { vi } from "./translations/vi";
import { zh } from "./translations/zh";
import { zh_Hant } from "./translations/zh_Hant";
-import { isBrowser } from "./utils/browser/is-browser";
+import isBrowser from "./utils/browser/is-browser";
export const languages = [
{ resource: ar, code: "ar", name: "العربية" },
import { isHttps } from "../env";
import { i18n } from "../i18next";
import { isAuthPath, toast } from "../utils";
-import { isBrowser } from "../utils/browser/is-browser";
+import isBrowser from "../utils/browser/is-browser";
interface Claims {
sub: number;
VoteType,
} from "./interfaces";
import { HttpService, UserService } from "./services";
-import { isBrowser } from "./utils/browser/is-browser";
-import { debounce } from "./utils/helpers/debounce";
-import { groupBy } from "./utils/helpers/group-by";
import { RequestState } from "./services/HttpService";
+import isBrowser from "./utils/browser/is-browser";
+import debounce from "./utils/helpers/debounce";
+import { groupBy } from "./utils/helpers/group-by";
let Tribute: any;
if (isBrowser()) {