]> Untitled Git - lemmy-ui.git/commitdiff
update imports
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Tue, 20 Jun 2023 01:48:38 +0000 (21:48 -0400)
committerAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Tue, 20 Jun 2023 01:48:38 +0000 (21:48 -0400)
21 files changed:
src/shared/components/app/navbar.tsx
src/shared/components/common/markdown-textarea.tsx
src/shared/components/community/communities.tsx
src/shared/components/community/community.tsx
src/shared/components/community/sidebar.tsx
src/shared/components/home/home.tsx
src/shared/components/home/login.tsx
src/shared/components/home/signup.tsx
src/shared/components/modlog.tsx
src/shared/components/person/profile.tsx
src/shared/components/person/reports.tsx
src/shared/components/person/settings.tsx
src/shared/components/post/create-post.tsx
src/shared/components/post/post-form.tsx
src/shared/components/post/post-listing.tsx
src/shared/components/post/post.tsx
src/shared/components/search.tsx
src/shared/env.ts
src/shared/i18next.ts
src/shared/services/UserService.ts
src/shared/utils.ts

index d0943af2d56b072e1f78c5652d13abd25e7861e9..9f68656aa87f8f6aab365f5a78357029d1ac5ba2 100644 (file)
@@ -17,10 +17,10 @@ import {
   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";
 
index c03c68ebecd5443a5c3e53248e25434fa4258416..3670021476aa4fa67191b233237216a08152d08f 100644 (file)
@@ -20,7 +20,7 @@ import {
   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";
index eef064c7cede3f4f349696347a1a05cbd8a7d426..6a2ae6ad6ed5682ce73351fa94d6e0f049bf4c9a 100644 (file)
@@ -20,8 +20,8 @@ import {
   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";
index 54ecfcd7aa9b40e3fe0238e3bd81cc02ed8a26ed..42a77836b64e668cc25fbeb2eec31af85c65f1cd 100644 (file)
@@ -86,8 +86,8 @@ import {
   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";
index 508e5a0d7cc86ac55a808b6913f4601ac6d3debc..72c94c09df3dac99ef5cc15af9722e44cd651262 100644 (file)
@@ -16,15 +16,10 @@ import {
 } 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";
index 39753c48e698ee53f4729d827297815fa352edbe..4a1e9d702a65d1884fb006c0d2e5bf704556d1fd 100644 (file)
@@ -82,9 +82,9 @@ import {
   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";
index 6a270899d6c5acf67e3030eba22bde83b4c1e29c..e25222e0b61a03bb49694c96cecd1e3b8e103e6c 100644 (file)
@@ -4,7 +4,7 @@ import { i18n } from "../../i18next";
 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";
 
index c7306950b515df029f8dde68fb3e6d43a33e74bb..287bdb7bff49076f6c7a220b4648ad92c690112a 100644 (file)
@@ -20,7 +20,7 @@ import {
   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";
index 8538a4f5d2b5251a8ec9474e6a3df750e246f74c..3ea910c514271681b5d4c75ee816196f8bf5c97a 100644 (file)
@@ -44,11 +44,11 @@ import {
   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";
index c8060ce6a8adfe729aba2d2fad11b6193539a8fb..d99ab124512d8a9497d62c73a72795cef7d75607 100644 (file)
@@ -76,11 +76,11 @@ import {
   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";
index 0be753791d4bb192456a74f5188319d960852041..ce9d215af8cec9d2f59c06ca0bd9ae69816c5f3a 100644 (file)
@@ -31,7 +31,7 @@ import {
   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";
index 971ec8911a63d9915c5abcd1f791d17e5a4ca434..7cb9308c6478bad64f0d797c7f914b6804743c7e 100644 (file)
@@ -35,7 +35,7 @@ import {
   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";
index 7df628b2b2b0461439eb2846285c993ef6cf5c7d..4f36771290973db8b0ce98ea84486ce0c91ea00d 100644 (file)
@@ -24,7 +24,7 @@ import {
   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";
index c21a6e2b8e7c189e654f232fa3b4662f8f6cdb26..02a5906715cf289cf7935b74682fbee0cbc209f1 100644 (file)
@@ -32,7 +32,7 @@ import {
   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";
index 3c90c976ef10180ce4d4211e9010eec3a7e85a82..914c16d39daefe2e481f3219e9c69e3a6d565956 100644 (file)
@@ -42,16 +42,16 @@ import {
   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";
index 3dee31a7710c79440baef4123ff76d98ff790d57..8b10c058dcbf420ad619d289bf196fc77d1e8c26 100644 (file)
@@ -83,8 +83,8 @@ import {
   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";
index e56056acc01baa4abbc9b905b350f9c4acad786f..844737cc6578c1b0478af7ed41d376cb6759fc98 100644 (file)
@@ -46,9 +46,9 @@ import {
   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";
index 969f8761241d22e6d80141e4ff133a31434bb7aa..2f3a5cf14420fb6750c8f3fdd1e7c023c8261cf1 100644 (file)
@@ -1,4 +1,4 @@
-import { isBrowser } from "./utils/browser/is-browser";
+import isBrowser from "./utils/browser/is-browser";
 
 const testHost = "0.0.0.0:8536";
 
index 0a705ae6499460cdff0a97eaca004e0ab03e2ab0..d0a4e5874feb3a2e197f0b3ede010bd8bbf5970e 100644 (file)
@@ -31,7 +31,7 @@ import { sv } from "./translations/sv";
 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: "العربية" },
index 8f553aba2395aa1c57c8985c225a36b6ce6240a3..18d0804a96a1a849a7803dff6a92c9b5e7da8fe6 100644 (file)
@@ -5,7 +5,7 @@ import { LoginResponse, MyUserInfo } from "lemmy-js-client";
 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;
index be461dcd0145ab3fabdb9405407b210ebc2d5bd3..35e30a364529b1fbe6d28039288c407574156d39 100644 (file)
@@ -49,10 +49,10 @@ import {
   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()) {