rename: $lib/lemmy.svelte -> $lib/client/lemmy.svelte

This commit is contained in:
James Xylight committed 2025-09-02 16:30:07 -07:00
1 parent 2feea150da
commit 811b6b4944
87 files changed
+90 -88

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import {
isAdmin,
} from '$lib/components/lemmy/moderation/moderation.js'
import { DEFAULT_INSTANCE_URL } from '$lib/instance.svelte.js'
import { client, getClient } from '$lib/lemmy.svelte.js'
import { client, getClient } from '$lib/client/lemmy.svelte'
import { instanceToURL, moveItem } from '$lib/util.svelte'
import { MINIMUM_VERSION, versionIsSupported } from '$lib/version.js'
import {
-1
View File
@@ -1 +0,0 @@
A lot of the code in here was either inspired or modified from https://github.com/aeharding/threadiverse, which is licensed under the AGPL 3.0.
File renamed without changes.
@@ -1,6 +1,6 @@
<script lang="ts">
import Avatar from '$lib/components/ui/Avatar.svelte'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import type { Community, ListingType } from 'lemmy-js-client'
import { MenuButton, Search } from 'mono-svelte'
import { createEventDispatcher } from 'svelte'
+1 -1
View File
@@ -4,7 +4,7 @@
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import { t } from '$lib/i18n/translations'
import { instance } from '$lib/instance.svelte'
import { client } from '$lib/lemmy.svelte'
import { client } from '$lib/client/lemmy.svelte'
import { instanceToURL } from '$lib/util.svelte'
import type { LocalImage, Person } from 'lemmy-js-client'
import { action, Button, modal, toast } from 'mono-svelte'
@@ -9,7 +9,7 @@
formatRelativeDate,
} from '$lib/components/util/RelativeDate.svelte'
import { t } from '$lib/i18n/translations'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { settings } from '$lib/settings.svelte'
import { Button, Modal, toast } from 'mono-svelte'
@@ -3,7 +3,7 @@
import Markdown from '$lib/components/markdown/Markdown.svelte'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { t } from '$lib/i18n/translations'
import { getClient, site } from '$lib/lemmy.svelte.js'
import { getClient, site } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { placeholders } from '$lib/util.svelte.js'
import type { CommentResponse } from 'lemmy-js-client'
@@ -3,7 +3,7 @@
import { goto } from '$app/navigation'
import { page } from '$app/state'
import { t } from '$lib/i18n/translations'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import type { Post } from 'lemmy-js-client'
import { Button, toast } from 'mono-svelte'
@@ -2,7 +2,7 @@
import { profile } from '$lib/auth.svelte.js'
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
import { t } from '$lib/i18n/translations'
import { getClient } from '$lib/lemmy.svelte'
import { getClient } from '$lib/client/lemmy.svelte'
import { buttonColor, toast } from 'mono-svelte'
import { ChevronDown, ChevronUp, Icon } from 'svelte-hero-icons'
import { backOut } from 'svelte/easing'
@@ -77,7 +77,7 @@
import Expandable from '$lib/components/ui/Expandable.svelte'
import LabelStat from '$lib/components/ui/LabelStat.svelte'
import { t } from '$lib/i18n/translations'
import { client, getClient } from '$lib/lemmy.svelte.js'
import { client, getClient } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { userLink } from '$lib/lemmy/generic'
import { addSubscription } from '$lib/lemmy/user.js'
@@ -6,7 +6,7 @@
import Header from '$lib/components/ui/layout/pages/Header.svelte'
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import { t } from '$lib/i18n/translations'
import { getClient, site } from '$lib/lemmy.svelte.js'
import { getClient, site } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { addSubscription } from '$lib/lemmy/user.js'
import {
@@ -5,7 +5,7 @@
import LabelStat from '$lib/components/ui/LabelStat.svelte'
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
import { t } from '$lib/i18n/translations'
import { client } from '$lib/lemmy.svelte'
import { client } from '$lib/client/lemmy.svelte'
import { addSubscription } from '$lib/lemmy/user.js'
import { settings } from '$lib/settings.svelte'
import { fullCommunityName, isSubscribed } from '$lib/util.svelte.js'
@@ -4,7 +4,7 @@
import { profile } from '$lib/auth.svelte.js'
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { t } from '$lib/i18n/translations'
import type { Person } from 'lemmy-js-client'
import { Button, Modal, toast } from 'mono-svelte'
@@ -3,7 +3,7 @@
import Avatar from '$lib/components/ui/Avatar.svelte'
import type { Community, Person } from 'lemmy-js-client'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { toast } from 'mono-svelte'
import { profile } from '$lib/auth.svelte.js'
import { Button, Checkbox, Modal } from 'mono-svelte'
@@ -1,7 +1,7 @@
<script lang="ts">
import { profile } from '$lib/auth.svelte.js'
import { t } from '$lib/i18n/translations'
import { getClient } from '$lib/lemmy.svelte'
import { getClient } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { isCommentView, isPostView } from '$lib/lemmy/item.js'
import type { CommentView, PostView } from 'lemmy-js-client'
@@ -8,7 +8,7 @@
import Post from '$lib/components/lemmy/post/Post.svelte'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { t } from '$lib/i18n/translations'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { isCommentView, isPostView } from '$lib/lemmy/item.js'
import { settings } from '$lib/settings.svelte.js'
import { fullCommunityName } from '$lib/util.svelte.js'
@@ -6,7 +6,7 @@
import Post from '$lib/components/lemmy/post/Post.svelte'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { t } from '$lib/i18n/translations'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import type {
CommentView,
PostView,
@@ -1,6 +1,6 @@
<script lang="ts">
import { t } from '$lib/i18n/translations'
import { client } from '$lib/lemmy.svelte'
import { client } from '$lib/client/lemmy.svelte'
import { isCommentView, isPostView } from '$lib/lemmy/item'
import type { CommentView, PostView, VoteView } from 'lemmy-js-client'
import { Button, Modal, Spinner } from 'mono-svelte'
@@ -1,4 +1,4 @@
import { client } from '$lib/lemmy.svelte'
import { client } from '$lib/client/lemmy.svelte'
import type { SubmissionView } from '$lib/lemmy/contentview.js'
import type {
Comment,
@@ -19,7 +19,7 @@
import { profile } from '$lib/auth.svelte.js'
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
import { t } from '$lib/i18n/translations'
import { site } from '$lib/lemmy.svelte.js'
import { site } from '$lib/client/lemmy.svelte'
import { vote as voteItem } from '$lib/lemmy/contentview.js'
import { errorMessage } from '$lib/lemmy/error'
import { settings } from '$lib/settings.svelte'
@@ -5,7 +5,7 @@
import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte'
import Placeholder from '$lib/components/ui/Placeholder.svelte'
import { t } from '$lib/i18n/translations'
import { client } from '$lib/lemmy.svelte'
import { client } from '$lib/client/lemmy.svelte'
import {
postFeeds,
type PostFeed,
@@ -10,7 +10,7 @@
import Avatar from '$lib/components/ui/Avatar.svelte'
import Header from '$lib/components/ui/layout/pages/Header.svelte'
import { t } from '$lib/i18n/translations'
import { client, site } from '$lib/lemmy.svelte.js'
import { client, site } from '$lib/client/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import { getSessionStorage, setSessionStorage } from '$lib/session.js'
import { placeholders } from '$lib/util.svelte.js'
+1 -1
View File
@@ -1,5 +1,5 @@
import { instance } from '$lib/instance.svelte'
import { client } from '$lib/lemmy.svelte.js'
import { client } from '$lib/client/lemmy.svelte'
import { isImage, isVideo } from '$lib/ui/image'
import { canParseUrl, findClosestNumber } from '$lib/util.svelte'
import type { CommentView, PersonView, Post } from 'lemmy-js-client'
@@ -1,7 +1,7 @@
<script lang="ts">
import { profile } from '$lib/auth.svelte'
import Avatar from '$lib/components/ui/Avatar.svelte'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import type { ListingType, Person } from 'lemmy-js-client'
import { MenuButton, Search } from 'mono-svelte'
import { createEventDispatcher } from 'svelte'
+1 -1
View File
@@ -7,7 +7,7 @@
import Avatar from '$lib/components/ui/Avatar.svelte'
import { t } from '$lib/i18n/translations'
import { LINKED_INSTANCE_URL } from '$lib/instance.svelte'
import { site } from '$lib/lemmy.svelte.js'
import { site } from '$lib/client/lemmy.svelte'
import { Menu, Spinner } from 'mono-svelte'
import {
Bars3,
+1 -1
View File
@@ -8,7 +8,7 @@
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
import { t } from '$lib/i18n/translations'
import { site } from '$lib/lemmy.svelte'
import { site } from '$lib/client/lemmy.svelte'
import { settings } from '$lib/settings.svelte'
import { theme } from '$lib/ui/colors.svelte'
import {
+1 -1
View File
@@ -1,4 +1,4 @@
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { isComment, isCommentView } from '$lib/lemmy/item.js'
import type {
CommentView,
+1 -1
View File
@@ -1,6 +1,6 @@
import { browser } from '$app/environment'
import { instance } from '$lib/instance.svelte'
import { client } from '$lib/lemmy.svelte'
import { client } from '$lib/client/lemmy.svelte'
import type {
GetPosts,
GetPostsResponse,
+1 -1
View File
@@ -1,5 +1,5 @@
import { profile, type ProfileInfo } from '$lib/auth.svelte'
import { getClient } from '$lib/lemmy.svelte.js'
import { getClient } from '$lib/client/lemmy.svelte'
import { trycatch } from '$lib/util.svelte'
import type { Community, MyUserInfo } from 'lemmy-js-client'
+1 -1
View File
@@ -1,5 +1,5 @@
import { goto } from '$app/navigation'
import { client } from '$lib/lemmy.svelte.js'
import { client } from '$lib/client/lemmy.svelte'
import { settings } from '$lib/settings.svelte'
import type { SubscribedType } from 'lemmy-js-client'
import { toast } from 'mono-svelte'