separate authenticated endpoints to user.js
This commit is contained in:
parent
04a0b0b8a8
commit
ebf7040662
36 changed files with 1082 additions and 1055 deletions
|
|
@ -4,7 +4,7 @@ import { useBookmarkFoldersStore } from 'src/stores/bookmark_folders.js'
|
|||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { fetchBookmarkFolders } from 'src/services/api/api.service.js'
|
||||
import { fetchBookmarkFolders } from 'src/services/api/user.js'
|
||||
|
||||
const BookmarkFolderEdit = {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import {
|
|||
chatMessages,
|
||||
getOrCreateChat,
|
||||
sendChatMessage,
|
||||
} from 'src/services/api/api.service.js'
|
||||
} from 'src/services/api/chats.js'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { faChevronDown, faChevronLeft } from '@fortawesome/free-solid-svg-icons'
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import UserAvatar from 'src/components/user_avatar/user_avatar.vue'
|
|||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { chats } from 'src/services/api/api.service.js'
|
||||
import { chats } from 'src/services/api/chats.js'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { faChevronLeft, faSearch } from '@fortawesome/free-solid-svg-icons'
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import BasicUserCard from '../basic_user_card/basic_user_card.vue'
|
|||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { approveUser, denyUser } from 'src/services/api/api.service.js'
|
||||
import { approveUser, denyUser } from 'src/services/api/user.js'
|
||||
|
||||
const FollowRequestCard = {
|
||||
props: ['user'],
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
|||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import { useUserHighlightStore } from 'src/stores/user_highlight.js'
|
||||
|
||||
import { approveUser, denyUser } from 'src/services/api/api.service.js'
|
||||
import { approveUser, denyUser } from 'src/services/api/user.js'
|
||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import { useInstanceStore } from 'src/stores/instance.js'
|
|||
import { normalizeThemeData, useInterfaceStore } from 'src/stores/interface.js'
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { updateProfileImages } from 'src/services/api/api.service.js'
|
||||
import { updateProfileImages } from 'src/services/api/user.js'
|
||||
import { newImporter } from 'src/services/export_import/export_import.js'
|
||||
import {
|
||||
adoptStyleSheets,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
|||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
|
||||
import { updateProfile } from 'src/services/api/api.service.js'
|
||||
import { updateProfile } from 'src/services/api/user.js'
|
||||
import localeService from 'src/services/locale/locale.service.js'
|
||||
import { cacheKey, clearCache, emojiCacheKey } from 'src/services/sw/sw.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import {
|
|||
importFollows,
|
||||
importMutes,
|
||||
listBackups,
|
||||
} from 'src/services/api/api.service.js'
|
||||
} from 'src/services/api/user.js'
|
||||
|
||||
const DataImportExportTab = {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
|||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
|
||||
import { updateProfile } from 'src/services/api/api.service.js'
|
||||
import { updateProfile } from 'src/services/api/user.js'
|
||||
import localeService from 'src/services/locale/locale.service.js'
|
||||
|
||||
const GeneralTab = {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { useInstanceStore } from 'src/stores/instance.js'
|
|||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import { useOAuthTokensStore } from 'src/stores/oauth_tokens.js'
|
||||
|
||||
import { importBlocks, importFollows } from 'src/services/api/api.service.js'
|
||||
import { importBlocks, importFollows } from 'src/services/api/user.js'
|
||||
|
||||
const MutesAndBlocks = {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import SharedComputedObject from '../helpers/shared_computed_object.js'
|
|||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { updateNotificationSettings } from 'src/services/api/api.service.js'
|
||||
import { updateNotificationSettings } from 'src/services/api/user.js'
|
||||
|
||||
const NotificationsTab = {
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import SharedComputedObject from '../helpers/shared_computed_object.js'
|
|||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { updateProfile } from 'src/services/api/api.service.js'
|
||||
import { updateProfile } from 'src/services/api/user.js'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
mfaConfirmOTP,
|
||||
mfaSetupOTP,
|
||||
settingsMFA,
|
||||
} from 'src/services/api/api.service.js'
|
||||
} from 'src/services/api/user.js'
|
||||
|
||||
const Mfa = {
|
||||
data: () => ({
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import Confirm from './confirm.vue'
|
|||
|
||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
|
||||
import { mfaDisableOTP } from 'src/services/api/api.service.js'
|
||||
import { mfaDisableOTP } from 'src/services/api/user.js'
|
||||
|
||||
export default {
|
||||
props: ['settings'],
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import {
|
|||
deleteAlias,
|
||||
listAliases,
|
||||
moveAccount,
|
||||
} from 'src/services/api/api.service.js'
|
||||
} from 'src/services/api/user.js'
|
||||
import localeService from 'src/services/locale/locale.service.js'
|
||||
|
||||
const SecurityTab = {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import { useOAuthStore } from 'src/stores/oauth.js'
|
|||
import { usePostStatusStore } from 'src/stores/post_status'
|
||||
import { useUserHighlightStore } from 'src/stores/user_highlight.js'
|
||||
|
||||
import { updateProfile } from 'src/services/api/api.service.js'
|
||||
import { updateProfile } from 'src/services/api/user.js'
|
||||
import { propsToNative } from 'src/services/attributes_helper/attributes_helper.service.js'
|
||||
import localeService from 'src/services/locale/locale.service.js'
|
||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import UserLink from 'src/components/user_link/user_link.vue'
|
|||
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||
import { useReportsStore } from 'src/stores/reports.js'
|
||||
|
||||
import { reportUser } from 'src/services/api/api.service.js'
|
||||
import { reportUser } from 'src/services/api/user.js'
|
||||
|
||||
const UserReportingModal = {
|
||||
components: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue