From 86159c71dc05c5919bde20bfa1efc036b54ea84d Mon Sep 17 00:00:00 2001 From: Shak Date: Fri, 31 Jul 2026 03:58:17 +0330 Subject: [PATCH 1/5] fix: rename explorer.pge.tsx to explorer.page.tsx Co-Authored-By: Claude Sonnet 5 --- src/pages/explorer/{explorer.pge.tsx => explorer.page.tsx} | 0 src/pages/root.tsx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/pages/explorer/{explorer.pge.tsx => explorer.page.tsx} (100%) diff --git a/src/pages/explorer/explorer.pge.tsx b/src/pages/explorer/explorer.page.tsx similarity index 100% rename from src/pages/explorer/explorer.pge.tsx rename to src/pages/explorer/explorer.page.tsx diff --git a/src/pages/root.tsx b/src/pages/root.tsx index 1f21f763..5c475800 100644 --- a/src/pages/root.tsx +++ b/src/pages/root.tsx @@ -14,7 +14,7 @@ import { Page, usePage } from '@/context/page.context' import { AnimatePresence, motion, MotionConfig } from 'framer-motion' import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' import { MiniAppPage } from './mini-apps/mini-app.page' -import { ExplorerPage } from './explorer/explorer.pge' +import { ExplorerPage } from './explorer/explorer.page' import { HomePage } from './home/home.page' import { useEffect } from 'react' import { useWallpaperApply } from '@/layouts/setting/tabs/wallpapers/hooks/use-wallpaper-apply' From 35ac565d29221af6a8569e67c146e6d283d9f24b Mon Sep 17 00:00:00 2001 From: Shak Date: Fri, 31 Jul 2026 04:01:50 +0330 Subject: [PATCH 2/5] refactor: merge src/utils into src/common/utils Co-Authored-By: Claude Sonnet 5 --- src/common/toast.tsx | 2 +- src/{ => common}/utils/translate-error.ts | 0 src/{ => common}/utils/validators.ts | 0 src/components/user/user-card.tsx | 2 +- src/context/appearance.context.tsx | 2 +- src/context/notes.context.tsx | 2 +- src/context/wallpaper.context.tsx | 2 +- src/layouts/bookmark/context/bookmark.context.tsx | 2 +- .../friends/components/activity-card/activity-card.tsx | 2 +- .../components/activity-card/manage-activity.bottomSheet.tsx | 2 +- src/layouts/friends/components/add-friend.bottomSheet.tsx | 2 +- src/layouts/friends/friends.tsx | 2 +- .../market-coins/components/coin-package-purchase-modal.tsx | 2 +- .../other-items/components/market-item-purchase-modal.tsx | 2 +- src/layouts/search/image/image-search.portal.tsx | 2 +- src/layouts/setting/tabs/account/auth-form/auth-otp.tsx | 4 ++-- src/layouts/setting/tabs/account/auth-form/auth-password.tsx | 4 ++-- .../tabs/account/auth-form/components/login-google.button.tsx | 2 +- .../setting/tabs/account/auth-form/components/otp-input.tsx | 2 +- .../tabs/account/components/modals/add-email.modal.tsx | 4 ++-- .../tabs/account/components/modals/add-phone.modal.tsx | 4 ++-- .../setting/tabs/account/components/modals/edit-username.tsx | 2 +- .../setting/tabs/account/tabs/user-profile/user-profile.tsx | 2 +- .../tabs/appearance/components/browserTitle-selector.tsx | 2 +- src/layouts/setting/tabs/general/components/select-city.tsx | 2 +- src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx | 2 +- src/layouts/widgets/habit/components/habit-form.modal.tsx | 2 +- src/layouts/widgets/habit/components/item/habit.item.tsx | 2 +- src/layouts/widgets/todos/expandable-todo-input.tsx | 2 +- src/layouts/widgets/todos/todo.item.tsx | 2 +- wxt.config.ts | 1 - 31 files changed, 32 insertions(+), 33 deletions(-) rename src/{ => common}/utils/translate-error.ts (100%) rename src/{ => common}/utils/validators.ts (100%) diff --git a/src/common/toast.tsx b/src/common/toast.tsx index cb7668e6..7b93fdd0 100644 --- a/src/common/toast.tsx +++ b/src/common/toast.tsx @@ -1,7 +1,7 @@ import React, { ReactNode } from 'react' import toast from 'react-hot-toast' import { playAlarm } from './playAlarm' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { Icon } from '../icons' type ToastType = 'success' | 'error' | 'info' | 'warning' diff --git a/src/utils/translate-error.ts b/src/common/utils/translate-error.ts similarity index 100% rename from src/utils/translate-error.ts rename to src/common/utils/translate-error.ts diff --git a/src/utils/validators.ts b/src/common/utils/validators.ts similarity index 100% rename from src/utils/validators.ts rename to src/common/utils/validators.ts diff --git a/src/components/user/user-card.tsx b/src/components/user/user-card.tsx index 7485eabd..f126551c 100644 --- a/src/components/user/user-card.tsx +++ b/src/components/user/user-card.tsx @@ -1,6 +1,6 @@ import { useAuth } from '@/context/auth.context' import { useSendFriendRequest } from '@/services/hooks/friends/friendService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { AvatarComponent } from '../avatar.component' import { Button } from '../button/button' import type { UserCardUser } from './user-card-portal' diff --git a/src/context/appearance.context.tsx b/src/context/appearance.context.tsx index 0b549fad..5f3a61d5 100644 --- a/src/context/appearance.context.tsx +++ b/src/context/appearance.context.tsx @@ -6,7 +6,7 @@ import { useChangeFont, useChangeUI } from '@/services/hooks/extension/updateSet import { useAuth } from './auth.context' import { safeAwait } from '@/services/api' import { showToast } from '@/common/toast' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { listenEvent } from '@/common/utils/call-event' export enum UI { diff --git a/src/context/notes.context.tsx b/src/context/notes.context.tsx index 160b4426..e21f8cbc 100644 --- a/src/context/notes.context.tsx +++ b/src/context/notes.context.tsx @@ -10,7 +10,7 @@ import { import Analytics from '@/analytics' import { getFromStorage, setToStorage } from '@/common/storage' import { safeAwait } from '@/services/api' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { useGetNotes } from '@/services/hooks/note/get-notes.hook' import { useAuth } from './auth.context' diff --git a/src/context/wallpaper.context.tsx b/src/context/wallpaper.context.tsx index 0eb2514e..16b9cfdc 100644 --- a/src/context/wallpaper.context.tsx +++ b/src/context/wallpaper.context.tsx @@ -5,7 +5,7 @@ import { callEvent, listenEvent } from '@/common/utils/call-event' import type { StoredWallpaper, Wallpaper } from '@/common/wallpaper.interface' import { safeAwait } from '@/services/api' import { useChangeWallpaper } from '@/services/hooks/extension/updateSetting.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import Analytics from '@/analytics' import { showToast } from '@/common/toast' import { useQueryClient } from '@tanstack/react-query' diff --git a/src/layouts/bookmark/context/bookmark.context.tsx b/src/layouts/bookmark/context/bookmark.context.tsx index 76ef2a76..ec813878 100644 --- a/src/layouts/bookmark/context/bookmark.context.tsx +++ b/src/layouts/bookmark/context/bookmark.context.tsx @@ -6,7 +6,7 @@ import { callEvent, listenEvent } from '@/common/utils/call-event' import type { Bookmark, BrowserImportNode } from '@/layouts/bookmark/types/bookmark.types' import { safeAwait } from '@/services/api' import { useRemoveBookmark } from '@/services/hooks/bookmark/remove-bookmark.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { useAuth } from '@/context/auth.context' import { useAddBookmark } from '@/services/hooks/bookmark/add-bookmark.hook' import { useImportBrowserBookmarks } from '@/services/hooks/bookmark/import-browser-bookmarks.hook' diff --git a/src/layouts/friends/components/activity-card/activity-card.tsx b/src/layouts/friends/components/activity-card/activity-card.tsx index 350238b5..0b4a0760 100644 --- a/src/layouts/friends/components/activity-card/activity-card.tsx +++ b/src/layouts/friends/components/activity-card/activity-card.tsx @@ -9,7 +9,7 @@ import { import { useEffect, useState } from 'react' import { GetContentFromReactions, RenderReactionContent } from './activity-reaction' import { safeAwait } from '@/services/api' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { playAlarm } from '@/common/playAlarm' diff --git a/src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx b/src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx index d514515f..564dde9e 100644 --- a/src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx +++ b/src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx @@ -3,7 +3,7 @@ import { Button } from '@/components/button/button' import { showToast } from '@/common/toast' import Modal from '@/components/modal' import { useRemoveActivity, useSetActivity } from '@/services/hooks/user/userService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { playAlarm } from '@/common/playAlarm' import { type AttachmentReaction, diff --git a/src/layouts/friends/components/add-friend.bottomSheet.tsx b/src/layouts/friends/components/add-friend.bottomSheet.tsx index bcf617bb..3e32e74c 100644 --- a/src/layouts/friends/components/add-friend.bottomSheet.tsx +++ b/src/layouts/friends/components/add-friend.bottomSheet.tsx @@ -3,7 +3,7 @@ import { Button } from '@/components/button/button' import { TextInput } from '@/components/text-input' import { useAuth } from '@/context/auth.context' import { useSendFriendRequest } from '@/services/hooks/friends/friendService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import Modal from '@/components/modal' import { Icon } from '@/src/icons' diff --git a/src/layouts/friends/friends.tsx b/src/layouts/friends/friends.tsx index acfafa48..7046d169 100644 --- a/src/layouts/friends/friends.tsx +++ b/src/layouts/friends/friends.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' import { type Friend, useRemoveFriend } from '@/services/hooks/friends/friendService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { RemoveFriendButton } from './components/remove-button' import { FriendsList } from './components/friends-List' diff --git a/src/layouts/market/market-coins/components/coin-package-purchase-modal.tsx b/src/layouts/market/market-coins/components/coin-package-purchase-modal.tsx index 3f974da6..37b93e66 100644 --- a/src/layouts/market/market-coins/components/coin-package-purchase-modal.tsx +++ b/src/layouts/market/market-coins/components/coin-package-purchase-modal.tsx @@ -1,7 +1,7 @@ import Analytics from '@/analytics' import { Button } from '@/components/button/button' import Modal from '@/components/modal' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { ConfigKey } from '@/common/constant/config.key' import type { CoinPackage } from '@/services/hooks/market/market-coins.interface' diff --git a/src/layouts/market/other-items/components/market-item-purchase-modal.tsx b/src/layouts/market/other-items/components/market-item-purchase-modal.tsx index b5361d80..d545de43 100644 --- a/src/layouts/market/other-items/components/market-item-purchase-modal.tsx +++ b/src/layouts/market/other-items/components/market-item-purchase-modal.tsx @@ -4,7 +4,7 @@ import { ItemPrice } from '@/components/item-price/item-price' import Modal from '@/components/modal' import type { MarketItem } from '@/services/hooks/market/market.interface' import { usePurchaseMarketItem } from '@/services/hooks/market/purchaseMarketItem.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { RenderPreview } from './renderPreview' import { Icon } from '@/src/icons' diff --git a/src/layouts/search/image/image-search.portal.tsx b/src/layouts/search/image/image-search.portal.tsx index febf59f3..edbcdc3b 100644 --- a/src/layouts/search/image/image-search.portal.tsx +++ b/src/layouts/search/image/image-search.portal.tsx @@ -5,7 +5,7 @@ import { TextInput } from '@/components/text-input' import Analytics from '@/analytics' import { RequireAuth } from '@/components/auth/require-auth' import { getMainClient } from '@/services/api' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { Portal } from '@/components/portal/Portal' import { Icon } from '@/src/icons' diff --git a/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx b/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx index 92031516..6baa6420 100644 --- a/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx +++ b/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx @@ -6,9 +6,9 @@ import { useRequestOtp, useVerifyOtp, } from '@/services/hooks/auth/authService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { useAuth } from '@/context/auth.context' -import { isEmpty, isEmail, isLessThan } from '@/utils/validators' +import { isEmpty, isEmail, isLessThan } from '@/common/utils/validators' import InputTextError from './components/input-text-error' import OtpInput from './components/otp-input' import { callEvent } from '@/common/utils/call-event' diff --git a/src/layouts/setting/tabs/account/auth-form/auth-password.tsx b/src/layouts/setting/tabs/account/auth-form/auth-password.tsx index aa563d2c..87eec97e 100644 --- a/src/layouts/setting/tabs/account/auth-form/auth-password.tsx +++ b/src/layouts/setting/tabs/account/auth-form/auth-password.tsx @@ -4,9 +4,9 @@ import { Button } from '@/components/button/button' import { TextInput } from '@/components/text-input' import { useAuth } from '@/context/auth.context' import { useSignIn } from '@/services/hooks/auth/authService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import InputTextError from './components/input-text-error' -import { isEmail, isEmpty, isLessThan } from '@/utils/validators' +import { isEmail, isEmpty, isLessThan } from '@/common/utils/validators' import { Icon } from '@/src/icons' export default function AuthPassword() { diff --git a/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx b/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx index 333bb52f..6cfee5ad 100644 --- a/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx +++ b/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx @@ -8,7 +8,7 @@ import { useState } from 'react' import { safeAwait } from '@/services/api' import type { AxiosError } from 'axios' import { showToast } from '@/common/toast' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import Analytics from '@/analytics' import { callEvent } from '@/common/utils/call-event' import { sleep } from '@/common/utils/timeout' diff --git a/src/layouts/setting/tabs/account/auth-form/components/otp-input.tsx b/src/layouts/setting/tabs/account/auth-form/components/otp-input.tsx index 1e2c6050..b8957f6a 100644 --- a/src/layouts/setting/tabs/account/auth-form/components/otp-input.tsx +++ b/src/layouts/setting/tabs/account/auth-form/components/otp-input.tsx @@ -1,5 +1,5 @@ import { useRef, useEffect, useState } from 'react' -import { isNumber } from '@/utils/validators' +import { isNumber } from '@/common/utils/validators' type OtpInputProps = { otp: string diff --git a/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx b/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx index 2e9b6163..1ad1a5c9 100644 --- a/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx +++ b/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx @@ -1,13 +1,13 @@ import Modal from '@/components/modal' import { TextInput } from '@/components/text-input' -import { isEmpty, isLessThan } from '@/utils/validators' +import { isEmpty, isLessThan } from '@/common/utils/validators' import { Button } from '@/components/button/button' import { useChangeEmailRequest, useChangeEmailVerify, } from '@/services/hooks/user/userService.hook' import { safeAwait } from '@/services/api' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import InputTextError from '../../auth-form/components/input-text-error' import OtpInput from '../../auth-form/components/otp-input' diff --git a/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx b/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx index a8491df1..adc7415c 100644 --- a/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx +++ b/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx @@ -1,6 +1,6 @@ import Modal from '@/components/modal' import { TextInput } from '@/components/text-input' -import { isEmpty, isLessThan } from '@/utils/validators' +import { isEmpty, isLessThan } from '@/common/utils/validators' import InputTextError from '../../auth-form/components/input-text-error' import { Button } from '@/components/button/button' import OtpInput from '../../auth-form/components/otp-input' @@ -9,7 +9,7 @@ import { useChangePhoneVerify, } from '@/services/hooks/user/userService.hook' import { safeAwait } from '@/services/api' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' interface AddPhoneProp { diff --git a/src/layouts/setting/tabs/account/components/modals/edit-username.tsx b/src/layouts/setting/tabs/account/components/modals/edit-username.tsx index 3a2cd2d7..e49a8465 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-username.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-username.tsx @@ -5,7 +5,7 @@ import { TextInput } from '@/components/text-input' import { safeAwait } from '@/services/api' import { useUpdateUsername } from '@/services/hooks/auth/authService.hook' import type { UserProfile } from '@/services/hooks/user/userService.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import type { AxiosError } from 'axios' import { useState } from 'react' import { FooterButtons } from './footer-buttons' diff --git a/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx b/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx index b2059aef..dc6c9248 100644 --- a/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx +++ b/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx @@ -11,7 +11,7 @@ import { AccountVerificationStatus } from '../../components/account-verification import { ProfileDisplay } from '../../components/profile-display' import { ReferralCodeSection } from '../rewards/components/ReferralCodeSection' import { showToast } from '@/common/toast' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { ConfirmationModal } from '@/components/modal/confirmation-modal' import { Icon } from '@/src/icons' diff --git a/src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx b/src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx index 95832dbc..b901c100 100644 --- a/src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx +++ b/src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx @@ -9,7 +9,7 @@ import { SectionPanel } from '@/components/section-panel' import { safeAwait } from '@/services/api' import { useChangeBrowserTitle } from '@/services/hooks/extension/updateSetting.hook' import type { UserInventoryItem } from '@/services/hooks/market/market.interface' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { Icon } from '@/src/icons' diff --git a/src/layouts/setting/tabs/general/components/select-city.tsx b/src/layouts/setting/tabs/general/components/select-city.tsx index f6a6426f..3e955b2d 100644 --- a/src/layouts/setting/tabs/general/components/select-city.tsx +++ b/src/layouts/setting/tabs/general/components/select-city.tsx @@ -9,7 +9,7 @@ import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' import { useSetCity } from '@/services/hooks/user/userService.hook' import { TextInput } from '@/components/text-input' import { showToast } from '@/common/toast' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { Icon } from '@/src/icons' interface SelectedCity { diff --git a/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx b/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx index 7c362a29..32d724e9 100644 --- a/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx +++ b/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx @@ -5,7 +5,7 @@ import { callEvent, listenEvent } from '@/common/utils/call-event' import type { StoredWallpaper, Wallpaper } from '@/common/wallpaper.interface' import { safeAwait } from '@/services/api' import { useChangeWallpaper } from '@/services/hooks/extension/updateSetting.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import Analytics from '../../../../../analytics' import { showToast } from '@/common/toast' import { useQueryClient } from '@tanstack/react-query' diff --git a/src/layouts/widgets/habit/components/habit-form.modal.tsx b/src/layouts/widgets/habit/components/habit-form.modal.tsx index 4296c7a7..0a2b488d 100644 --- a/src/layouts/widgets/habit/components/habit-form.modal.tsx +++ b/src/layouts/widgets/habit/components/habit-form.modal.tsx @@ -22,7 +22,7 @@ import { HabitUnit, } from '@/services/hooks/habit/habit.interface' import { useUpdateHabit } from '@/services/hooks/habit/update-habit.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import Tooltip from '@/components/toolTip' import type { HabitIcon } from '@/services/hooks/habit/get-habits.hook' import { Motion as motion, Presence } from '@/common/motion' diff --git a/src/layouts/widgets/habit/components/item/habit.item.tsx b/src/layouts/widgets/habit/components/item/habit.item.tsx index 001fc9bd..08bca9f9 100644 --- a/src/layouts/widgets/habit/components/item/habit.item.tsx +++ b/src/layouts/widgets/habit/components/item/habit.item.tsx @@ -7,7 +7,7 @@ import type { WidgetifyDate } from '@/layouts/widgets/calendar/utils' import { safeAwait } from '@/services/api' import { HabitComparison, type Habit } from '@/services/hooks/habit/habit.interface' import { useLogHabitProgress } from '@/services/hooks/habit/log-habit-progress.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { formatHabitGoal } from '../../utils' import { SegmentedProgressRing } from './button.progress-ring' import { SimpleProgressRing } from './button.simple-progress-ring' diff --git a/src/layouts/widgets/todos/expandable-todo-input.tsx b/src/layouts/widgets/todos/expandable-todo-input.tsx index d3aa9217..c6364a78 100644 --- a/src/layouts/widgets/todos/expandable-todo-input.tsx +++ b/src/layouts/widgets/todos/expandable-todo-input.tsx @@ -16,7 +16,7 @@ import { PriorityDropdown } from './components/priority.dropdown' import type { FetchedTodo, TodoPriority } from '@/services/hooks/todo/todo.interface' import { type TodoCreationPayload, useAddTodo } from '@/services/hooks/todo/add-todo.hook' import { useUpdateTodo } from '@/services/hooks/todo/update-todo.hook' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import type { Friend } from '@/services/hooks/friends/friendService.hook' import { TodoSelectFriends } from './components/select-friends.todo' diff --git a/src/layouts/widgets/todos/todo.item.tsx b/src/layouts/widgets/todos/todo.item.tsx index 06c5070d..aa11fe72 100644 --- a/src/layouts/widgets/todos/todo.item.tsx +++ b/src/layouts/widgets/todos/todo.item.tsx @@ -7,7 +7,7 @@ import { useAuth } from '@/context/auth.context' import { showToast } from '@/common/toast' import { useRemoveTodo } from '@/services/hooks/todo/remove-todo.hook' import { safeAwait } from '@/services/api' -import { translateError } from '@/utils/translate-error' +import { translateError } from '@/common/utils/translate-error' import { validate } from 'uuid' import Analytics from '@/analytics' import { IconLoading } from '@/components/loading/icon-loading' diff --git a/wxt.config.ts b/wxt.config.ts index 908dd16a..98825304 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -36,7 +36,6 @@ export default defineConfig({ '@/context': './src/context', '@/hooks': './src/hooks', '@/styles': './src/styles', - '@/utils': './src/utils', '@/layouts': './src/layouts', '@/pages': './src/pages', '@/assets': './src/assets', From eca0661f973f6ad4f14639c01d4142cd5f6affcc Mon Sep 17 00:00:00 2001 From: Shak Date: Fri, 31 Jul 2026 04:02:12 +0330 Subject: [PATCH 3/5] refactor: rename PascalCase components to kebab-case Co-Authored-By: Claude Sonnet 5 --- .../auth/{AuthRequiredModal.tsx => auth-required-modal.tsx} | 0 ...dateReleaseNotesModal.tsx => update-release-notes-modal.tsx} | 0 src/layouts/bookmark/bookmark-grid.tsx | 2 +- src/layouts/bookmark/bookmarks.tsx | 2 +- src/layouts/navbar/friends-list/friends.navbar.tsx | 2 +- src/layouts/setting/setting-modal.tsx | 2 +- .../{ReferralCodeSection.tsx => referral-code-section.tsx} | 0 src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx | 2 +- .../setting/tabs/account/tabs/user-profile/user-profile.tsx | 2 +- src/layouts/setting/tabs/general/components/select-city.tsx | 2 +- src/pages/home/home.page.tsx | 2 +- src/pages/root.tsx | 2 +- 12 files changed, 9 insertions(+), 9 deletions(-) rename src/components/auth/{AuthRequiredModal.tsx => auth-required-modal.tsx} (100%) rename src/components/{UpdateReleaseNotesModal.tsx => update-release-notes-modal.tsx} (100%) rename src/layouts/setting/tabs/account/tabs/rewards/components/{ReferralCodeSection.tsx => referral-code-section.tsx} (100%) diff --git a/src/components/auth/AuthRequiredModal.tsx b/src/components/auth/auth-required-modal.tsx similarity index 100% rename from src/components/auth/AuthRequiredModal.tsx rename to src/components/auth/auth-required-modal.tsx diff --git a/src/components/UpdateReleaseNotesModal.tsx b/src/components/update-release-notes-modal.tsx similarity index 100% rename from src/components/UpdateReleaseNotesModal.tsx rename to src/components/update-release-notes-modal.tsx diff --git a/src/layouts/bookmark/bookmark-grid.tsx b/src/layouts/bookmark/bookmark-grid.tsx index 7839a271..895be759 100644 --- a/src/layouts/bookmark/bookmark-grid.tsx +++ b/src/layouts/bookmark/bookmark-grid.tsx @@ -12,7 +12,7 @@ import { SortableBookmarkItem } from './components/sortable-bookmark-item' import { useBookmarkStore } from './context/bookmark.context' import { validate } from 'uuid' import { useAuth } from '@/context/auth.context' -import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' +import { AuthRequiredModal } from '@/components/auth/auth-required-modal' import { showToast } from '@/common/toast' import { Icon } from '@/src/icons' diff --git a/src/layouts/bookmark/bookmarks.tsx b/src/layouts/bookmark/bookmarks.tsx index da1dd949..d6cc97f4 100644 --- a/src/layouts/bookmark/bookmarks.tsx +++ b/src/layouts/bookmark/bookmarks.tsx @@ -15,7 +15,7 @@ import type { Bookmark, FolderPathItem } from './types/bookmark.types' import { BookmarkGrid } from './bookmark-grid' import { useBookmarkStore } from './context/bookmark.context' import { useAuth } from '@/context/auth.context' -import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' +import { AuthRequiredModal } from '@/components/auth/auth-required-modal' import { showToast } from '@/common/toast' import { useUpdateBookmarkOrder } from '@/services/hooks/bookmark/update-bookmark-order.hook' diff --git a/src/layouts/navbar/friends-list/friends.navbar.tsx b/src/layouts/navbar/friends-list/friends.navbar.tsx index 28512feb..1112e927 100644 --- a/src/layouts/navbar/friends-list/friends.navbar.tsx +++ b/src/layouts/navbar/friends-list/friends.navbar.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' +import { AuthRequiredModal } from '@/components/auth/auth-required-modal' import { useAuth } from '@/context/auth.context' import { BottomSheet } from '@/components/bottom-sheet/bottom-sheet' import { ActiveFriendsHorizontal } from '@/layouts/friends/components/activities' diff --git a/src/layouts/setting/setting-modal.tsx b/src/layouts/setting/setting-modal.tsx index 64c2b0e5..484c77ee 100644 --- a/src/layouts/setting/setting-modal.tsx +++ b/src/layouts/setting/setting-modal.tsx @@ -2,7 +2,7 @@ import Analytics from '@/analytics' import { callEvent } from '@/common/utils/call-event' import Modal from '@/components/modal' import { type TabItem, TabManager } from '@/components/tab-manager' -import { UpdateReleaseNotesModal } from '@/components/UpdateReleaseNotesModal' +import { UpdateReleaseNotesModal } from '@/components/update-release-notes-modal' import { AboutUsTab } from './tabs/about-us/about-us' import { AppearanceSettingTab } from './tabs/appearance/appearance' import { GeneralSettingTab } from './tabs/general/general' diff --git a/src/layouts/setting/tabs/account/tabs/rewards/components/ReferralCodeSection.tsx b/src/layouts/setting/tabs/account/tabs/rewards/components/referral-code-section.tsx similarity index 100% rename from src/layouts/setting/tabs/account/tabs/rewards/components/ReferralCodeSection.tsx rename to src/layouts/setting/tabs/account/tabs/rewards/components/referral-code-section.tsx diff --git a/src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx b/src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx index 8c37102f..17109596 100644 --- a/src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx +++ b/src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx @@ -1,7 +1,7 @@ import { ConfigKey } from '@/common/constant/config.key' import { SectionPanel } from '@/components/section-panel' import { useGetReferrals } from '@/services/hooks/user/referralsService.hook' -import { ReferralCodeSection } from './components/ReferralCodeSection' +import { ReferralCodeSection } from './components/referral-code-section' import { RewardTasks } from './components/tasks' import { RequireVerification } from '@/components/auth/require-verification' import { useAuth } from '@/context/auth.context' diff --git a/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx b/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx index dc6c9248..b665e321 100644 --- a/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx +++ b/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx @@ -9,7 +9,7 @@ import { } from '@/services/hooks/user/userService.hook' import { AccountVerificationStatus } from '../../components/account-verification-status' import { ProfileDisplay } from '../../components/profile-display' -import { ReferralCodeSection } from '../rewards/components/ReferralCodeSection' +import { ReferralCodeSection } from '../rewards/components/referral-code-section' import { showToast } from '@/common/toast' import { translateError } from '@/common/utils/translate-error' import { ConfirmationModal } from '@/components/modal/confirmation-modal' diff --git a/src/layouts/setting/tabs/general/components/select-city.tsx b/src/layouts/setting/tabs/general/components/select-city.tsx index 3e955b2d..496684fb 100644 --- a/src/layouts/setting/tabs/general/components/select-city.tsx +++ b/src/layouts/setting/tabs/general/components/select-city.tsx @@ -5,7 +5,7 @@ import Modal from '@/components/modal' import { SectionPanel } from '@/components/section-panel' import { useGetCitiesList } from '@/services/hooks/cities/getCitiesList' import { useAuth } from '@/context/auth.context' -import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' +import { AuthRequiredModal } from '@/components/auth/auth-required-modal' import { useSetCity } from '@/services/hooks/user/userService.hook' import { TextInput } from '@/components/text-input' import { showToast } from '@/common/toast' diff --git a/src/pages/home/home.page.tsx b/src/pages/home/home.page.tsx index 9a8a3f1b..9cd04c42 100644 --- a/src/pages/home/home.page.tsx +++ b/src/pages/home/home.page.tsx @@ -5,7 +5,7 @@ import { getFromStorage, setToStorage } from '@/common/storage' import { ConfigKey } from '@/common/constant/config.key' import { ExtensionInstalledModal } from '@/components/extension-installed-modal' import { Joyride, type Step } from 'react-joyride' -import { UpdateReleaseNotesModal } from '@/components/UpdateReleaseNotesModal' +import { UpdateReleaseNotesModal } from '@/components/update-release-notes-modal' import Analytics from '@/analytics' import { DialogChecker } from './dialog/dialog' const steps: Step[] = [ diff --git a/src/pages/root.tsx b/src/pages/root.tsx index 5c475800..6efcabfb 100644 --- a/src/pages/root.tsx +++ b/src/pages/root.tsx @@ -12,7 +12,7 @@ import type { WidgetTabKeys } from '@/layouts/widgets-settings/constant/tab-keys import { WidgetSettingsModal } from '@/layouts/widgets-settings/widget-settings-modal' import { Page, usePage } from '@/context/page.context' import { AnimatePresence, motion, MotionConfig } from 'framer-motion' -import { AuthRequiredModal } from '@/components/auth/AuthRequiredModal' +import { AuthRequiredModal } from '@/components/auth/auth-required-modal' import { MiniAppPage } from './mini-apps/mini-app.page' import { ExplorerPage } from './explorer/explorer.page' import { HomePage } from './home/home.page' From 5b43b6f7a67de027d1e3da38fb0397a98df7c0cc Mon Sep 17 00:00:00 2001 From: Shak Date: Tue, 11 Aug 2026 16:20:42 +0330 Subject: [PATCH 4/5] refactor: rename remaining camelCase files and directories to kebab-case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend the kebab-case convention to the files and directories the original PascalCase-component pass didn't cover: hooks (useXxx.tsx), service hooks (getXxx.hook.ts, xxxService.hook.ts), a few components and utils, and the wigiArz/wigiPad/comboWidget/moodLog/topUsers/ allFriends/marketWallpaper directories. 97 files renamed; all import paths (relative and @/ alias, including CSS) updated to match. Runtime identifiers, enum values, and object keys (e.g. WidgetKeys.wigiPad) are untouched — only filenames changed. --- src/{App.tsx => app.tsx} | 0 src/common/constant/store.key.ts | 12 ++++++------ src/common/{playAlarm.ts => play-alarm.ts} | 0 src/common/toast.tsx | 2 +- src/common/utils/call-event.ts | 4 ++-- .../utils/{getFirstname.ts => get-firstname.ts} | 0 .../utils/{preloadImages.ts => preload-images.ts} | 0 src/components/blur-mode/blur-mode.button.tsx | 2 +- src/components/bottom-sheet/bottom-sheet.tsx | 2 +- .../{clickableTooltip.tsx => clickable-tooltip.tsx} | 0 ...Menu.component.tsx => context-menu.component.tsx} | 0 src/components/dropdown/dropdown.tsx | 4 ++-- .../dropdown/{useDropdown.tsx => use-dropdown.tsx} | 0 src/components/filter-tooltip/filter-tooltip.tsx | 4 ++-- src/components/loading/icon-loading.tsx | 2 +- ...{getItemTypeEmoji.tsx => get-item-type-emoji.tsx} | 0 ...poverColorPicker.tsx => popover-color-picker.tsx} | 0 src/components/portal/{Portal.tsx => portal.tsx} | 0 src/components/{toolTip.tsx => tool-tip.tsx} | 0 src/components/user/user-card.tsx | 2 +- src/components/welcome-wizard.tsx | 4 ++-- src/context/appearance.context.tsx | 2 +- src/context/auth.context.tsx | 2 +- src/context/general-setting.context.tsx | 4 ++-- src/context/theme.context.tsx | 2 +- src/context/wallpaper.context.tsx | 4 ++-- src/context/widget-visibility.context.tsx | 4 ++-- ...irthdayConfetti.tsx => use-birthday-confetti.tsx} | 0 ...rastTextColor.tsx => use-contrast-text-color.tsx} | 0 ...useDebouncedValue.tsx => use-debounced-value.tsx} | 0 ...ageMainColor.tsx => use-get-image-main-color.tsx} | 0 ...useInfiniteScroll.tsx => use-infinite-scroll.tsx} | 0 .../{usePreviewHandler.ts => use-preview-handler.ts} | 2 +- src/layouts/bookmark/bookmark-grid.tsx | 4 ++-- ...ookmark-emptySlot.tsx => bookmark-empty-slot.tsx} | 0 .../bookmark/components/bookmark-suggestions.tsx | 2 +- src/layouts/bookmark/components/folder-header.tsx | 2 +- .../bookmark/components/modal/advanced.modal.tsx | 2 +- .../components/modal/bookmark-context-menu.tsx | 2 +- src/layouts/bookmark/context/bookmark.context.tsx | 2 +- .../bookmark/utils/{tabManager.ts => tab-manager.ts} | 0 src/layouts/friends/components/activities.tsx | 4 ++-- .../components/activity-card/activity-card.tsx | 4 ++-- .../components/activity-card/activity-reaction.tsx | 2 +- ...tomSheet.tsx => manage-activity.bottom-sheet.tsx} | 8 ++++---- ...d.bottomSheet.tsx => add-friend.bottom-sheet.tsx} | 2 +- .../components/buttons/friend-requests.button.tsx | 2 +- ...tomSheet.tsx => friend-requests.bottom-sheet.tsx} | 4 ++-- .../{friends-List.tsx => friends-list.tsx} | 4 ++-- src/layouts/friends/components/remove-button.tsx | 2 +- .../friends/components/select-friend.layout.tsx | 2 +- src/layouts/friends/friends.tsx | 6 +++--- src/layouts/market/market-container.tsx | 2 +- .../{marketWallpaper => market-wallpaper}/index.tsx | 4 ++-- .../other-items/components/market-item-card.tsx | 4 ++-- .../components/market-item-purchase-modal.tsx | 4 ++-- .../{renderPreview.tsx => render-preview.tsx} | 2 +- src/layouts/market/other-items/index.tsx | 4 ++-- .../components/{navButton.tsx => nav-button.tsx} | 0 .../{settingsDropdown.tsx => settings-dropdown.tsx} | 0 src/layouts/navbar/navbar.layout.tsx | 10 +++++----- src/layouts/navbar/profile/profile.tsx | 2 +- .../search/browser-bookmark/browser-bookmark.tsx | 4 ++-- src/layouts/search/history.portal.tsx | 6 +++--- .../{useSearchHistory.ts => use-search-history.ts} | 0 src/layouts/search/image/image-search.button.tsx | 2 +- src/layouts/search/image/image-search.portal.tsx | 2 +- src/layouts/search/search.tsx | 4 ++-- src/layouts/search/select-engine/engine-selector.tsx | 4 ++-- .../search/suggestion/autocomplete-consent.modal.tsx | 2 +- .../voice/{useVoiceSearch.ts => use-voice-search.ts} | 0 src/layouts/search/voice/voice-search.button.tsx | 2 +- src/layouts/search/voice/voice-search.portal.tsx | 4 ++-- src/layouts/setting/setting-modal.tsx | 2 +- .../setting/tabs/account/auth-form/auth-otp.tsx | 2 +- .../setting/tabs/account/auth-form/auth-password.tsx | 2 +- .../auth-form/components/login-google.button.tsx | 2 +- .../tabs/account/components/interests-selector.tsx | 4 ++-- .../account/components/modals/add-email.modal.tsx | 2 +- .../account/components/modals/add-phone.modal.tsx | 2 +- .../account/components/modals/avatar/edit.avatar.tsx | 2 +- .../tabs/account/components/modals/edit-birthday.tsx | 2 +- .../tabs/account/components/modals/edit-gender.tsx | 2 +- .../account/components/modals/edit-interests.tsx | 4 ++-- .../tabs/account/components/modals/edit-name.tsx | 2 +- .../account/components/modals/edit-occupation.tsx | 4 ++-- .../tabs/account/components/modals/edit-username.tsx | 4 ++-- .../tabs/account/components/occupation-selector.tsx | 4 ++-- .../tabs/account/components/profile-date-picker.tsx | 2 +- .../setting/tabs/account/components/user-coin.tsx | 2 +- .../friendsTab.tsx => all-friends/friends-tab.tsx} | 0 .../{connectionsTab.tsx => connections-tab.tsx} | 0 src/layouts/setting/tabs/account/tabs/index.ts | 4 ++-- .../tabs/account/tabs/rewards/components/tasks.tsx | 2 +- .../tabs/rewards/{rewardsTab.tsx => rewards-tab.tsx} | 2 +- .../tabs/user-profile/connections/connections.tsx | 2 +- .../tabs/account/tabs/user-profile/user-profile.tsx | 4 ++-- src/layouts/setting/tabs/appearance/appearance.tsx | 4 ++-- ...Title-selector.tsx => browser-title-selector.tsx} | 2 +- .../setting/tabs/general/components/select-city.tsx | 4 ++-- .../tabs/general/components/timezone-settings.tsx | 2 +- .../components/search-autocomplete.switch.tsx | 2 +- .../tabs/wallpapers/hooks/use-wallpaper-apply.tsx | 2 +- .../setting/tabs/wallpapers/hooks/use-wallpaper.tsx | 4 ++-- .../gallery/components/category/category-view.tsx | 2 +- .../components/wallpaper-item/wallpaper-item.tsx | 2 +- .../components/wallpaper-item/wallpaper-view.tsx | 8 ++++---- src/layouts/simplify/widgets/arz-simplify.tsx | 2 +- src/layouts/simplify/wigipad-simplify.tsx | 8 ++++---- src/layouts/widgetify-card/daily-mood.tsx | 4 ++-- .../components/notification-item.tsx | 2 +- .../notification-center/notification-center.tsx | 2 +- .../widgets-settings/widget-settings-modal.tsx | 4 ++-- .../widgets/calendar/components/calendar-grid.tsx | 8 ++++---- src/layouts/widgets/calendar/components/day/day.tsx | 6 +++--- .../day/{toolTipContent.tsx => tool-tip-content.tsx} | 6 +++--- .../google-calendar/google-calendar-view.tsx | 2 +- .../components/google-calendar/google-event.item.tsx | 2 +- src/layouts/widgets/calendar/utils.ts | 4 ++-- .../combo-widget.layout.tsx | 2 +- .../widgets/habit/components/habit-form.modal.tsx | 2 +- .../widgets/habit/components/item/habit.item.tsx | 2 +- src/layouts/widgets/habit/habits.layout.tsx | 2 +- .../widgets/network/components/network-ip-card.tsx | 2 +- .../widgets/network/components/network-ping-card.tsx | 2 +- src/layouts/widgets/network/network.layout.tsx | 2 +- src/layouts/widgets/news/rss-feed.tsx | 2 +- src/layouts/widgets/news/rss.interface.ts | 2 +- src/layouts/widgets/notes/components/note-editor.tsx | 2 +- .../widgets/notes/components/note-navigation.tsx | 2 +- .../widgets/todos/components/friend-item.todo.tsx | 2 +- .../widgets/todos/components/select-friends.todo.tsx | 2 +- src/layouts/widgets/todos/expandable-todo-input.tsx | 4 ++-- src/layouts/widgets/todos/todo.item.tsx | 4 ++-- src/layouts/widgets/todos/todos.tsx | 2 +- .../widgets/tools/currency/currency-converter.tsx | 4 ++-- src/layouts/widgets/tools/events/utils.ts | 4 ++-- ...tion-modal.tsx => request-notification-modal.tsx} | 0 .../widgets/tools/pomodoro/pomodoro-timer.tsx | 10 +++++----- .../{topUsers => top-users}/top-user-item.tsx | 2 +- .../pomodoro/{topUsers => top-users}/top-users.tsx | 2 +- .../widgets/tools/religious/religious-time.tsx | 2 +- .../widgets/weather/current/current-box.weather.tsx | 4 ++-- src/layouts/widgets/weather/forecast/forecast.tsx | 2 +- .../weather/{unitSymbols.ts => unit-symbols.ts} | 0 src/layouts/widgets/weather/weather.layout.tsx | 2 +- .../{wigiArz => wigi-arz}/components/arz-header.tsx | 0 .../components/currency-box.tsx | 6 +++--- .../components/currency-chart.tsx | 2 +- .../components/currency-modal.tsx | 2 +- .../components/sortable-currency-box.tsx | 0 .../getPrice.tsx => wigi-arz/utils/get-price.tsx} | 2 +- .../wigi-arz-setting.interface.ts} | 0 .../wigi-arz-setting.tsx} | 4 ++-- .../{wigiArz => wigi-arz}/wigi_arz.layout.tsx | 0 .../clock-display/clock-display.tsx | 0 .../clock-display/clock-setting.interface.ts | 0 .../clock-display/clock-setting.tsx | 0 .../clock-display/clocks/analog.clock.tsx | 2 +- .../clock-display/clocks/digital.clock.tsx | 2 +- .../clock-display/clocks/simple-digital-clock.tsx} | 2 +- .../date-display/components/holiday.badge.tsx | 0 .../date-display/date-setting.interface.ts | 0 .../date-display/date-setting.tsx | 0 .../date-display/date.display.tsx | 0 .../date-display/dates/gregorian.date.tsx | 0 .../date-display/dates/jalali.date.tsx | 4 ++-- .../info-panel/components/ann-item.tsx | 2 +- .../{wigiPad => wigi-pad}/weather/simple-weather.tsx | 0 .../wigi-pad-setting.tsx} | 0 .../wigi-pad.layout.tsx} | 2 +- src/main.tsx | 2 +- src/pages/home/dialog/dialog.tsx | 2 +- src/pages/home/ui/content-section.tsx | 2 +- .../{authService.hook.ts => auth-service.hook.ts} | 0 .../{getBookmarks.hook.ts => get-bookmarks.hook.ts} | 0 ...alendarData.hook.ts => get-calendar-data.hook.ts} | 2 +- .../cities/{getCitiesList.ts => get-cities-list.ts} | 0 ...cyByCode.hook.ts => get-currency-by-code.hook.ts} | 0 ...encies.hook.ts => get-support-currencies.hook.ts} | 0 .../date/{getEvents.hook.ts => get-events.hook.ts} | 0 ...ts.hook.ts => get-google-calendar-events.hook.ts} | 0 ...igiousTime.hook.ts => get-religious-time.hook.ts} | 0 ...tifications.hook.ts => get-notifications.hook.ts} | 0 ...{updateSetting.hook.ts => update-setting.hook.ts} | 0 ...{friendService.hook.ts => friend-service.hook.ts} | 0 ...ailyMessage.hook.ts => get-daily-message.hook.ts} | 0 ...tMarketItems.hook.ts => get-market-items.hook.ts} | 0 ...rInventory.hook.ts => get-user-inventory.hook.ts} | 0 ...rketItem.hook.ts => purchase-market-item.hook.ts} | 0 .../hooks/{moodLog => mood-log}/get-moods.hook.ts | 0 .../upsert-mood-log.hook.ts} | 0 .../hooks/news/{getNews.hook.ts => get-news.hook.ts} | 0 ...{createSession.hook.ts => create-session.hook.ts} | 0 .../{getTopUsers.hook.ts => get-top-users.hook.ts} | 0 ...tProfileMeta.hook.ts => get-profile-meta.hook.ts} | 0 ...gestSearch.hook.ts => get-suggest-search.hook.ts} | 0 .../{getTimezones.hook.ts => get-timezones.hook.ts} | 0 src/services/hooks/translate/index.ts | 2 +- .../{translateService.ts => translate-service.ts} | 0 src/services/hooks/translate/translate.hook.ts | 2 +- .../hooks/trends/{getTrends.ts => get-trends.ts} | 0 ...ralsService.hook.ts => referrals-service.hook.ts} | 0 .../{userService.hook.ts => user-service.hook.ts} | 0 ...ries.hook.ts => get-wallpaper-categories.hook.ts} | 0 ...Url.hook.ts => get-wallpaper-preview-url.hook.ts} | 0 ...yLatLon.ts => get-forecast-weather-by-lat-lon.ts} | 0 .../{getRelatedCities.ts => get-related-cities.ts} | 0 ...tWeatherByLatLon.ts => get-weather-by-lat-lon.ts} | 0 209 files changed, 212 insertions(+), 212 deletions(-) rename src/{App.tsx => app.tsx} (100%) rename src/common/{playAlarm.ts => play-alarm.ts} (100%) rename src/common/utils/{getFirstname.ts => get-firstname.ts} (100%) rename src/common/utils/{preloadImages.ts => preload-images.ts} (100%) rename src/components/{clickableTooltip.tsx => clickable-tooltip.tsx} (100%) rename src/components/{contextMenu.component.tsx => context-menu.component.tsx} (100%) rename src/components/dropdown/{useDropdown.tsx => use-dropdown.tsx} (100%) rename src/components/market/{getItemTypeEmoji.tsx => get-item-type-emoji.tsx} (100%) rename src/components/{PopoverColorPicker.tsx => popover-color-picker.tsx} (100%) rename src/components/portal/{Portal.tsx => portal.tsx} (100%) rename src/components/{toolTip.tsx => tool-tip.tsx} (100%) rename src/hooks/{useBirthdayConfetti.tsx => use-birthday-confetti.tsx} (100%) rename src/hooks/{useContrastTextColor.tsx => use-contrast-text-color.tsx} (100%) rename src/hooks/{useDebouncedValue.tsx => use-debounced-value.tsx} (100%) rename src/hooks/{useGetImageMainColor.tsx => use-get-image-main-color.tsx} (100%) rename src/hooks/{useInfiniteScroll.tsx => use-infinite-scroll.tsx} (100%) rename src/hooks/{usePreviewHandler.ts => use-preview-handler.ts} (98%) rename src/layouts/bookmark/components/{bookmark-emptySlot.tsx => bookmark-empty-slot.tsx} (100%) rename src/layouts/bookmark/utils/{tabManager.ts => tab-manager.ts} (100%) rename src/layouts/friends/components/activity-card/{manage-activity.bottomSheet.tsx => manage-activity.bottom-sheet.tsx} (98%) rename src/layouts/friends/components/{add-friend.bottomSheet.tsx => add-friend.bottom-sheet.tsx} (99%) rename src/layouts/friends/components/{friend-requests.bottomSheet.tsx => friend-requests.bottom-sheet.tsx} (95%) rename src/layouts/friends/components/{friends-List.tsx => friends-list.tsx} (97%) rename src/layouts/market/{marketWallpaper => market-wallpaper}/index.tsx (95%) rename src/layouts/market/other-items/components/{renderPreview.tsx => render-preview.tsx} (95%) rename src/layouts/navbar/components/{navButton.tsx => nav-button.tsx} (100%) rename src/layouts/navbar/components/{settingsDropdown.tsx => settings-dropdown.tsx} (100%) rename src/layouts/search/hooks/{useSearchHistory.ts => use-search-history.ts} (100%) rename src/layouts/search/voice/{useVoiceSearch.ts => use-voice-search.ts} (100%) rename src/layouts/setting/tabs/account/tabs/{allFriends/friendsTab.tsx => all-friends/friends-tab.tsx} (100%) rename src/layouts/setting/tabs/account/tabs/connection/{connectionsTab.tsx => connections-tab.tsx} (100%) rename src/layouts/setting/tabs/account/tabs/rewards/{rewardsTab.tsx => rewards-tab.tsx} (99%) rename src/layouts/setting/tabs/appearance/components/{browserTitle-selector.tsx => browser-title-selector.tsx} (99%) rename src/layouts/widgets/calendar/components/day/{toolTipContent.tsx => tool-tip-content.tsx} (97%) rename src/layouts/widgets/{comboWidget => combo-widget}/combo-widget.layout.tsx (97%) rename src/layouts/widgets/tools/pomodoro/components/{requestNotification-modal.tsx => request-notification-modal.tsx} (100%) rename src/layouts/widgets/tools/pomodoro/{topUsers => top-users}/top-user-item.tsx (96%) rename src/layouts/widgets/tools/pomodoro/{topUsers => top-users}/top-users.tsx (95%) rename src/layouts/widgets/weather/{unitSymbols.ts => unit-symbols.ts} (100%) rename src/layouts/widgets/{wigiArz => wigi-arz}/components/arz-header.tsx (100%) rename src/layouts/widgets/{wigiArz => wigi-arz}/components/currency-box.tsx (96%) rename src/layouts/widgets/{wigiArz => wigi-arz}/components/currency-chart.tsx (98%) rename src/layouts/widgets/{wigiArz => wigi-arz}/components/currency-modal.tsx (99%) rename src/layouts/widgets/{wigiArz => wigi-arz}/components/sortable-currency-box.tsx (100%) rename src/layouts/widgets/{wigiArz/utils/getPrice.tsx => wigi-arz/utils/get-price.tsx} (95%) rename src/layouts/widgets/{wigiArz/wigiArz-setting.interface.ts => wigi-arz/wigi-arz-setting.interface.ts} (100%) rename src/layouts/widgets/{wigiArz/wigiArz-setting.tsx => wigi-arz/wigi-arz-setting.tsx} (99%) rename src/layouts/widgets/{wigiArz => wigi-arz}/wigi_arz.layout.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/clock-display/clock-display.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/clock-display/clock-setting.interface.ts (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/clock-display/clock-setting.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/clock-display/clocks/analog.clock.tsx (99%) rename src/layouts/widgets/{wigiPad => wigi-pad}/clock-display/clocks/digital.clock.tsx (99%) rename src/layouts/widgets/{wigiPad/clock-display/clocks/simple-digitalClock.tsx => wigi-pad/clock-display/clocks/simple-digital-clock.tsx} (98%) rename src/layouts/widgets/{wigiPad => wigi-pad}/date-display/components/holiday.badge.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/date-display/date-setting.interface.ts (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/date-display/date-setting.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/date-display/date.display.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/date-display/dates/gregorian.date.tsx (100%) rename src/layouts/widgets/{wigiPad => wigi-pad}/date-display/dates/jalali.date.tsx (95%) rename src/layouts/widgets/{wigiPad => wigi-pad}/info-panel/components/ann-item.tsx (99%) rename src/layouts/widgets/{wigiPad => wigi-pad}/weather/simple-weather.tsx (100%) rename src/layouts/widgets/{wigiPad/wigiPad-setting.tsx => wigi-pad/wigi-pad-setting.tsx} (100%) rename src/layouts/widgets/{wigiPad/wigiPad.layout.tsx => wigi-pad/wigi-pad.layout.tsx} (97%) rename src/services/hooks/auth/{authService.hook.ts => auth-service.hook.ts} (100%) rename src/services/hooks/bookmark/{getBookmarks.hook.ts => get-bookmarks.hook.ts} (100%) rename src/services/hooks/calendar/{get-calendarData.hook.ts => get-calendar-data.hook.ts} (92%) rename src/services/hooks/cities/{getCitiesList.ts => get-cities-list.ts} (100%) rename src/services/hooks/currency/{getCurrencyByCode.hook.ts => get-currency-by-code.hook.ts} (100%) rename src/services/hooks/currency/{getSupportCurrencies.hook.ts => get-support-currencies.hook.ts} (100%) rename src/services/hooks/date/{getEvents.hook.ts => get-events.hook.ts} (100%) rename src/services/hooks/date/{getGoogleCalendarEvents.hook.ts => get-google-calendar-events.hook.ts} (100%) rename src/services/hooks/date/{getReligiousTime.hook.ts => get-religious-time.hook.ts} (100%) rename src/services/hooks/extension/{getNotifications.hook.ts => get-notifications.hook.ts} (100%) rename src/services/hooks/extension/{updateSetting.hook.ts => update-setting.hook.ts} (100%) rename src/services/hooks/friends/{friendService.hook.ts => friend-service.hook.ts} (100%) rename src/services/hooks/{getDailyMessage.hook.ts => get-daily-message.hook.ts} (100%) rename src/services/hooks/market/{getMarketItems.hook.ts => get-market-items.hook.ts} (100%) rename src/services/hooks/market/{getUserInventory.hook.ts => get-user-inventory.hook.ts} (100%) rename src/services/hooks/market/{purchaseMarketItem.hook.ts => purchase-market-item.hook.ts} (100%) rename src/services/hooks/{moodLog => mood-log}/get-moods.hook.ts (100%) rename src/services/hooks/{moodLog/upsert-moodLog.hook.ts => mood-log/upsert-mood-log.hook.ts} (100%) rename src/services/hooks/news/{getNews.hook.ts => get-news.hook.ts} (100%) rename src/services/hooks/pomodoro/{createSession.hook.ts => create-session.hook.ts} (100%) rename src/services/hooks/pomodoro/{getTopUsers.hook.ts => get-top-users.hook.ts} (100%) rename src/services/hooks/profile/{getProfileMeta.hook.ts => get-profile-meta.hook.ts} (100%) rename src/services/hooks/search/{getSuggestSearch.hook.ts => get-suggest-search.hook.ts} (100%) rename src/services/hooks/timezone/{getTimezones.hook.ts => get-timezones.hook.ts} (100%) rename src/services/hooks/translate/{translateService.ts => translate-service.ts} (100%) rename src/services/hooks/trends/{getTrends.ts => get-trends.ts} (100%) rename src/services/hooks/user/{referralsService.hook.ts => referrals-service.hook.ts} (100%) rename src/services/hooks/user/{userService.hook.ts => user-service.hook.ts} (100%) rename src/services/hooks/wallpapers/{getWallpaperCategories.hook.ts => get-wallpaper-categories.hook.ts} (100%) rename src/services/hooks/wallpapers/{getWallpaperPreviewUrl.hook.ts => get-wallpaper-preview-url.hook.ts} (100%) rename src/services/hooks/weather/{getForecastWeatherByLatLon.ts => get-forecast-weather-by-lat-lon.ts} (100%) rename src/services/hooks/weather/{getRelatedCities.ts => get-related-cities.ts} (100%) rename src/services/hooks/weather/{getWeatherByLatLon.ts => get-weather-by-lat-lon.ts} (100%) diff --git a/src/App.tsx b/src/app.tsx similarity index 100% rename from src/App.tsx rename to src/app.tsx diff --git a/src/common/constant/store.key.ts b/src/common/constant/store.key.ts index bc853293..bf1832b6 100644 --- a/src/common/constant/store.key.ts +++ b/src/common/constant/store.key.ts @@ -2,7 +2,7 @@ import type { CurrencyColorMode } from '@/context/currency.context' import type { WidgetItem } from '@/context/widget-visibility.context' import type { Bookmark } from '@/layouts/bookmark/types/bookmark.types' import type { PetSettings } from '@/layouts/widgetify-card/pets/pet.context' -import type { ComboTabType } from '@/layouts/widgets/comboWidget/combo-widget.layout' +import type { ComboTabType } from '@/layouts/widgets/combo-widget/combo-widget.layout' import type { WigiNewsSetting } from '@/layouts/widgets/news/rss.interface' import type { PomodoroSession, @@ -14,12 +14,12 @@ import type { FetchedWeather, WeatherSettings, } from '@/layouts/widgets/weather/weather.interface' -import type { ClockSettings } from '@/layouts/widgets/wigiPad/clock-display/clock-setting.interface' -import type { WigiPadDateSetting } from '@/layouts/widgets/wigiPad/date-display/date-setting.interface' +import type { ClockSettings } from '@/layouts/widgets/wigi-pad/clock-display/clock-setting.interface' +import type { WigiPadDateSetting } from '@/layouts/widgets/wigi-pad/date-display/date-setting.interface' import type { ExtensionConfigResponse } from '@/services/config-data/config_data-api' -import type { FetchedCurrency } from '@/services/hooks/currency/getCurrencyByCode.hook' -import type { RecommendedSite, TrendItem } from '@/services/hooks/trends/getTrends' -import type { UserProfile } from '@/services/hooks/user/userService.hook' +import type { FetchedCurrency } from '@/services/hooks/currency/get-currency-by-code.hook' +import type { RecommendedSite, TrendItem } from '@/services/hooks/trends/get-trends' +import type { UserProfile } from '@/services/hooks/user/user-service.hook' import type { StoredWallpaper, Wallpaper } from '../wallpaper.interface' import type { Todo } from '@/services/hooks/todo/todo.interface' diff --git a/src/common/playAlarm.ts b/src/common/play-alarm.ts similarity index 100% rename from src/common/playAlarm.ts rename to src/common/play-alarm.ts diff --git a/src/common/toast.tsx b/src/common/toast.tsx index 7b93fdd0..6c442edb 100644 --- a/src/common/toast.tsx +++ b/src/common/toast.tsx @@ -1,6 +1,6 @@ import React, { ReactNode } from 'react' import toast from 'react-hot-toast' -import { playAlarm } from './playAlarm' +import { playAlarm } from './play-alarm' import { translateError } from '@/common/utils/translate-error' import { Icon } from '../icons' diff --git a/src/common/utils/call-event.ts b/src/common/utils/call-event.ts index 4295d9c8..5a0f5ffa 100644 --- a/src/common/utils/call-event.ts +++ b/src/common/utils/call-event.ts @@ -3,8 +3,8 @@ import type { Bookmark } from '@/layouts/bookmark/types/bookmark.types' import type { PetTypes } from '@/layouts/widgetify-card/pets/pet.context' import type { WigiNewsSetting } from '@/layouts/widgets/news/rss.interface' import type { WeatherSettings } from '@/layouts/widgets/weather/weather.interface' -import type { ClockSettings } from '@/layouts/widgets/wigiPad/clock-display/clock-setting.interface' -import type { WigiPadDateSetting } from '@/layouts/widgets/wigiPad/date-display/date-setting.interface' +import type { ClockSettings } from '@/layouts/widgets/wigi-pad/clock-display/clock-setting.interface' +import type { WigiPadDateSetting } from '@/layouts/widgets/wigi-pad/date-display/date-setting.interface' import type { WidgetTabKeys } from '@/layouts/widgets-settings/constant/tab-keys' import type { StoredWallpaper } from '../wallpaper.interface' import type { Todo } from '@/services/hooks/todo/todo.interface' diff --git a/src/common/utils/getFirstname.ts b/src/common/utils/get-firstname.ts similarity index 100% rename from src/common/utils/getFirstname.ts rename to src/common/utils/get-firstname.ts diff --git a/src/common/utils/preloadImages.ts b/src/common/utils/preload-images.ts similarity index 100% rename from src/common/utils/preloadImages.ts rename to src/common/utils/preload-images.ts diff --git a/src/components/blur-mode/blur-mode.button.tsx b/src/components/blur-mode/blur-mode.button.tsx index 05a58d6d..d31a4522 100644 --- a/src/components/blur-mode/blur-mode.button.tsx +++ b/src/components/blur-mode/blur-mode.button.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' import { useGeneralSetting } from '@/context/general-setting.context' -import Tooltip from '../toolTip' +import Tooltip from '../tool-tip' import { Icon } from '@/src/icons' import { ConfirmationModal } from '../modal/confirmation-modal' import Analytics from '@/analytics' diff --git a/src/components/bottom-sheet/bottom-sheet.tsx b/src/components/bottom-sheet/bottom-sheet.tsx index d1787262..066f6018 100644 --- a/src/components/bottom-sheet/bottom-sheet.tsx +++ b/src/components/bottom-sheet/bottom-sheet.tsx @@ -1,6 +1,6 @@ import { useState, type ReactNode } from 'react' import { Presence, Motion as motion } from '@/common/motion' -import { Portal } from '../portal/Portal' +import { Portal } from '../portal/portal' import { Icon } from '@/src/icons' type SheetSize = 'small' | 'medium' | 'large' | 'full' | 'screen' diff --git a/src/components/clickableTooltip.tsx b/src/components/clickable-tooltip.tsx similarity index 100% rename from src/components/clickableTooltip.tsx rename to src/components/clickable-tooltip.tsx diff --git a/src/components/contextMenu.component.tsx b/src/components/context-menu.component.tsx similarity index 100% rename from src/components/contextMenu.component.tsx rename to src/components/context-menu.component.tsx diff --git a/src/components/dropdown/dropdown.tsx b/src/components/dropdown/dropdown.tsx index 5eb42564..735c1e5e 100644 --- a/src/components/dropdown/dropdown.tsx +++ b/src/components/dropdown/dropdown.tsx @@ -1,6 +1,6 @@ import type { ReactNode } from 'react' -import { Portal } from '../portal/Portal' -import { useDropdown } from './useDropdown' +import { Portal } from '../portal/portal' +import { useDropdown } from './use-dropdown' import { useState, useLayoutEffect, useRef } from 'react' export interface DropdownOption { diff --git a/src/components/dropdown/useDropdown.tsx b/src/components/dropdown/use-dropdown.tsx similarity index 100% rename from src/components/dropdown/useDropdown.tsx rename to src/components/dropdown/use-dropdown.tsx diff --git a/src/components/filter-tooltip/filter-tooltip.tsx b/src/components/filter-tooltip/filter-tooltip.tsx index d335022a..c666cd14 100644 --- a/src/components/filter-tooltip/filter-tooltip.tsx +++ b/src/components/filter-tooltip/filter-tooltip.tsx @@ -1,6 +1,6 @@ import { useState, useRef, type ReactNode } from 'react' -import { ClickableTooltip } from '@/components/clickableTooltip' -import Tooltip from '../toolTip' +import { ClickableTooltip } from '@/components/clickable-tooltip' +import Tooltip from '../tool-tip' import { Button } from '../button/button' export interface FilterOption { diff --git a/src/components/loading/icon-loading.tsx b/src/components/loading/icon-loading.tsx index 8eccd78f..3f885630 100644 --- a/src/components/loading/icon-loading.tsx +++ b/src/components/loading/icon-loading.tsx @@ -1,5 +1,5 @@ import { Icon } from '@/src/icons' -import Tooltip from '../toolTip' +import Tooltip from '../tool-tip' interface IconLoadingProps { title?: string diff --git a/src/components/market/getItemTypeEmoji.tsx b/src/components/market/get-item-type-emoji.tsx similarity index 100% rename from src/components/market/getItemTypeEmoji.tsx rename to src/components/market/get-item-type-emoji.tsx diff --git a/src/components/PopoverColorPicker.tsx b/src/components/popover-color-picker.tsx similarity index 100% rename from src/components/PopoverColorPicker.tsx rename to src/components/popover-color-picker.tsx diff --git a/src/components/portal/Portal.tsx b/src/components/portal/portal.tsx similarity index 100% rename from src/components/portal/Portal.tsx rename to src/components/portal/portal.tsx diff --git a/src/components/toolTip.tsx b/src/components/tool-tip.tsx similarity index 100% rename from src/components/toolTip.tsx rename to src/components/tool-tip.tsx diff --git a/src/components/user/user-card.tsx b/src/components/user/user-card.tsx index f126551c..8686c091 100644 --- a/src/components/user/user-card.tsx +++ b/src/components/user/user-card.tsx @@ -1,5 +1,5 @@ import { useAuth } from '@/context/auth.context' -import { useSendFriendRequest } from '@/services/hooks/friends/friendService.hook' +import { useSendFriendRequest } from '@/services/hooks/friends/friend-service.hook' import { translateError } from '@/common/utils/translate-error' import { AvatarComponent } from '../avatar.component' import { Button } from '../button/button' diff --git a/src/components/welcome-wizard.tsx b/src/components/welcome-wizard.tsx index 95333790..e2fd175e 100644 --- a/src/components/welcome-wizard.tsx +++ b/src/components/welcome-wizard.tsx @@ -4,12 +4,12 @@ import { Button } from '@/components/button/button' import { useGetOccupations, useGetInterests, -} from '@/services/hooks/profile/getProfileMeta.hook' +} from '@/services/hooks/profile/get-profile-meta.hook' import { TextInput } from '@/components/text-input' import { sleep } from '@/common/utils/timeout' import { Chip } from '@/components/chip.component' import { ItemSelector } from './item-selector' -import { useSetupWizard } from '@/services/hooks/auth/authService.hook' +import { useSetupWizard } from '@/services/hooks/auth/auth-service.hook' import { showToast } from '@/common/toast' import { safeAwait } from '@/services/api' import Analytics from '@/analytics' diff --git a/src/context/appearance.context.tsx b/src/context/appearance.context.tsx index 5f3a61d5..3a121bbe 100644 --- a/src/context/appearance.context.tsx +++ b/src/context/appearance.context.tsx @@ -2,7 +2,7 @@ import type React from 'react' import { createContext, useContext, useEffect, useState } from 'react' import Analytics from '@/analytics' import { getMultipleFromStorage, setToStorage } from '@/common/storage' -import { useChangeFont, useChangeUI } from '@/services/hooks/extension/updateSetting.hook' +import { useChangeFont, useChangeUI } from '@/services/hooks/extension/update-setting.hook' import { useAuth } from './auth.context' import { safeAwait } from '@/services/api' import { showToast } from '@/common/toast' diff --git a/src/context/auth.context.tsx b/src/context/auth.context.tsx index 71612dcd..8314b288 100644 --- a/src/context/auth.context.tsx +++ b/src/context/auth.context.tsx @@ -5,7 +5,7 @@ import { listenEvent } from '@/common/utils/call-event' import { type UserProfile, useGetUserProfile, -} from '@/services/hooks/user/userService.hook' +} from '@/services/hooks/user/user-service.hook' interface AuthContextType { isAuthenticated: boolean diff --git a/src/context/general-setting.context.tsx b/src/context/general-setting.context.tsx index 6d4bd5c3..1ddca2c0 100644 --- a/src/context/general-setting.context.tsx +++ b/src/context/general-setting.context.tsx @@ -2,11 +2,11 @@ import type React from 'react' import { createContext, useContext, useEffect, useState } from 'react' import Analytics from '@/analytics' import { getFromStorage, setToStorage } from '@/common/storage' -import { useUpdateExtensionSettings } from '@/services/hooks/extension/updateSetting.hook' +import { useUpdateExtensionSettings } from '@/services/hooks/extension/update-setting.hook' import { type FetchedTimezone, getTimezones, -} from '@/services/hooks/timezone/getTimezones.hook' +} from '@/services/hooks/timezone/get-timezones.hook' import { useAuth } from './auth.context' export interface GeneralData { diff --git a/src/context/theme.context.tsx b/src/context/theme.context.tsx index 3aa50d70..4082b7ec 100644 --- a/src/context/theme.context.tsx +++ b/src/context/theme.context.tsx @@ -3,7 +3,7 @@ import { createContext, useContext, useEffect, useState } from 'react' import Analytics from '@/analytics' import { getFromStorage, setToStorage } from '@/common/storage' import { listenEvent } from '@/common/utils/call-event' -import { useChangeTheme } from '@/services/hooks/extension/updateSetting.hook' +import { useChangeTheme } from '@/services/hooks/extension/update-setting.hook' import { useAuth } from './auth.context' interface ThemeContextType { diff --git a/src/context/wallpaper.context.tsx b/src/context/wallpaper.context.tsx index 16b9cfdc..db6a856e 100644 --- a/src/context/wallpaper.context.tsx +++ b/src/context/wallpaper.context.tsx @@ -4,12 +4,12 @@ import { getFromStorage, setToStorage } from '@/common/storage' import { callEvent, listenEvent } from '@/common/utils/call-event' import type { StoredWallpaper, Wallpaper } from '@/common/wallpaper.interface' import { safeAwait } from '@/services/api' -import { useChangeWallpaper } from '@/services/hooks/extension/updateSetting.hook' +import { useChangeWallpaper } from '@/services/hooks/extension/update-setting.hook' import { translateError } from '@/common/utils/translate-error' import Analytics from '@/analytics' import { showToast } from '@/common/toast' import { useQueryClient } from '@tanstack/react-query' -import { playAlarm } from '@/common/playAlarm' +import { playAlarm } from '@/common/play-alarm' import { useAuth } from '@/context/auth.context' interface WallpaperContextValue { diff --git a/src/context/widget-visibility.context.tsx b/src/context/widget-visibility.context.tsx index 3267b534..611308d7 100644 --- a/src/context/widget-visibility.context.tsx +++ b/src/context/widget-visibility.context.tsx @@ -9,12 +9,12 @@ import { import Analytics from '@/analytics' import { getFromStorage, setToStorage } from '@/common/storage' import CalendarLayout from '@/layouts/widgets/calendar/calendar' -import { ComboWidget } from '@/layouts/widgets/comboWidget/combo-widget.layout' +import { ComboWidget } from '@/layouts/widgets/combo-widget/combo-widget.layout' import { NetworkLayout } from '@/layouts/widgets/network/network.layout' import { NewsLayout } from '@/layouts/widgets/news/news.layout' import { ToolsLayout } from '@/layouts/widgets/tools/tools.layout' import { WeatherLayout } from '@/layouts/widgets/weather/weather.layout' -import { WigiArzLayout } from '@/layouts/widgets/wigiArz/wigi_arz.layout' +import { WigiArzLayout } from '@/layouts/widgets/wigi-arz/wigi_arz.layout' import { useAuth } from './auth.context' import { CurrencyProvider } from './currency.context' import { showToast } from '@/common/toast' diff --git a/src/hooks/useBirthdayConfetti.tsx b/src/hooks/use-birthday-confetti.tsx similarity index 100% rename from src/hooks/useBirthdayConfetti.tsx rename to src/hooks/use-birthday-confetti.tsx diff --git a/src/hooks/useContrastTextColor.tsx b/src/hooks/use-contrast-text-color.tsx similarity index 100% rename from src/hooks/useContrastTextColor.tsx rename to src/hooks/use-contrast-text-color.tsx diff --git a/src/hooks/useDebouncedValue.tsx b/src/hooks/use-debounced-value.tsx similarity index 100% rename from src/hooks/useDebouncedValue.tsx rename to src/hooks/use-debounced-value.tsx diff --git a/src/hooks/useGetImageMainColor.tsx b/src/hooks/use-get-image-main-color.tsx similarity index 100% rename from src/hooks/useGetImageMainColor.tsx rename to src/hooks/use-get-image-main-color.tsx diff --git a/src/hooks/useInfiniteScroll.tsx b/src/hooks/use-infinite-scroll.tsx similarity index 100% rename from src/hooks/useInfiniteScroll.tsx rename to src/hooks/use-infinite-scroll.tsx diff --git a/src/hooks/usePreviewHandler.ts b/src/hooks/use-preview-handler.ts similarity index 98% rename from src/hooks/usePreviewHandler.ts rename to src/hooks/use-preview-handler.ts index f6320ada..1d479c56 100644 --- a/src/hooks/usePreviewHandler.ts +++ b/src/hooks/use-preview-handler.ts @@ -6,7 +6,7 @@ import { Theme } from '@/context/theme.context' import { MarketItemType, type MarketItem } from '@/services/hooks/market/market.interface' import { autoFormatErrorToast, showPreviewToast } from '@/common/toast' import type { StoredWallpaper } from '@/common/wallpaper.interface' -import { fetchWallpaperPreviewUrl } from '@/services/hooks/wallpapers/getWallpaperPreviewUrl.hook' +import { fetchWallpaperPreviewUrl } from '@/services/hooks/wallpapers/get-wallpaper-preview-url.hook' export interface PreviewState { toastId: string diff --git a/src/layouts/bookmark/bookmark-grid.tsx b/src/layouts/bookmark/bookmark-grid.tsx index 895be759..62b784b1 100644 --- a/src/layouts/bookmark/bookmark-grid.tsx +++ b/src/layouts/bookmark/bookmark-grid.tsx @@ -4,8 +4,8 @@ import Analytics from '@/analytics' import { ConfirmationModal } from '@/components/modal/confirmation-modal' import { useGeneralSetting } from '@/context/general-setting.context' import type { Bookmark, FolderPathItem } from './types/bookmark.types' -import { openBookmarksOptimized } from './utils/tabManager' -import { EmptyBookmarkSlot } from './components/bookmark-emptySlot' +import { openBookmarksOptimized } from './utils/tab-manager' +import { EmptyBookmarkSlot } from './components/bookmark-empty-slot' import { BookmarkContextMenu } from './components/modal/bookmark-context-menu' import { EditBookmarkModal } from './components/modal/edit-bookmark.modal' import { SortableBookmarkItem } from './components/sortable-bookmark-item' diff --git a/src/layouts/bookmark/components/bookmark-emptySlot.tsx b/src/layouts/bookmark/components/bookmark-empty-slot.tsx similarity index 100% rename from src/layouts/bookmark/components/bookmark-emptySlot.tsx rename to src/layouts/bookmark/components/bookmark-empty-slot.tsx diff --git a/src/layouts/bookmark/components/bookmark-suggestions.tsx b/src/layouts/bookmark/components/bookmark-suggestions.tsx index 3958664d..334bbb8b 100644 --- a/src/layouts/bookmark/components/bookmark-suggestions.tsx +++ b/src/layouts/bookmark/components/bookmark-suggestions.tsx @@ -2,7 +2,7 @@ import { SectionPanel } from '@/components/section-panel' import { type BookmarkSuggestion, useGetSuggestedBookmarks, -} from '@/services/hooks/bookmark/getBookmarks.hook' +} from '@/services/hooks/bookmark/get-bookmarks.hook' interface BookmarkSuggestionsProps { onSelect: (suggestion: BookmarkSuggestion) => void diff --git a/src/layouts/bookmark/components/folder-header.tsx b/src/layouts/bookmark/components/folder-header.tsx index a2109f00..e162f602 100644 --- a/src/layouts/bookmark/components/folder-header.tsx +++ b/src/layouts/bookmark/components/folder-header.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import Analytics from '@/analytics' import { Button } from '@/components/button/button' import Modal from '@/components/modal' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import type { FolderPathItem } from '../types/bookmark.types' import { FolderPath } from './folder-path' import { Icon } from '@/src/icons' diff --git a/src/layouts/bookmark/components/modal/advanced.modal.tsx b/src/layouts/bookmark/components/modal/advanced.modal.tsx index 317396f0..85e42d42 100644 --- a/src/layouts/bookmark/components/modal/advanced.modal.tsx +++ b/src/layouts/bookmark/components/modal/advanced.modal.tsx @@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react' import Analytics from '@/analytics' import { Button } from '@/components/button/button' import Modal from '@/components/modal' -import PopoverColorPicker from '@/components/PopoverColorPicker' +import PopoverColorPicker from '@/components/popover-color-picker' import { TextInput } from '@/components/text-input' import { getEmojiList } from '@/services/emoji/emoji-api' import { BookmarkItem } from '../bookmark-item' diff --git a/src/layouts/bookmark/components/modal/bookmark-context-menu.tsx b/src/layouts/bookmark/components/modal/bookmark-context-menu.tsx index cf7a4bc1..52901a10 100644 --- a/src/layouts/bookmark/components/modal/bookmark-context-menu.tsx +++ b/src/layouts/bookmark/components/modal/bookmark-context-menu.tsx @@ -1,4 +1,4 @@ -import { ContextMenu } from '@/components/contextMenu.component' +import { ContextMenu } from '@/components/context-menu.component' import { Icon } from '@/src/icons' interface BookmarkContextMenuProps { diff --git a/src/layouts/bookmark/context/bookmark.context.tsx b/src/layouts/bookmark/context/bookmark.context.tsx index ec813878..1950dbd2 100644 --- a/src/layouts/bookmark/context/bookmark.context.tsx +++ b/src/layouts/bookmark/context/bookmark.context.tsx @@ -19,7 +19,7 @@ import { autoFormatErrorToast, showToast } from '@/common/toast' import { type FetchedBookmark, useGetBookmarks, -} from '@/services/hooks/bookmark/getBookmarks.hook' +} from '@/services/hooks/bookmark/get-bookmarks.hook' const MAX_ICON_SIZE = 1 * 1024 * 1024 // 1 MB diff --git a/src/layouts/bookmark/utils/tabManager.ts b/src/layouts/bookmark/utils/tab-manager.ts similarity index 100% rename from src/layouts/bookmark/utils/tabManager.ts rename to src/layouts/bookmark/utils/tab-manager.ts diff --git a/src/layouts/friends/components/activities.tsx b/src/layouts/friends/components/activities.tsx index 5e8a97b7..6587f34e 100644 --- a/src/layouts/friends/components/activities.tsx +++ b/src/layouts/friends/components/activities.tsx @@ -1,8 +1,8 @@ import { useState } from 'react' -import { useGetActivities } from '@/services/hooks/friends/friendService.hook' +import { useGetActivities } from '@/services/hooks/friends/friend-service.hook' import { useAuth } from '@/context/auth.context' import { ActivityCard } from './activity-card/activity-card' -import { ManageActivityBottomSheet } from './activity-card/manage-activity.bottomSheet' +import { ManageActivityBottomSheet } from './activity-card/manage-activity.bottom-sheet' import { EmptyActivityCard } from './activity-card/empty-activity-card' import { Dropdown } from '@/components/dropdown' diff --git a/src/layouts/friends/components/activity-card/activity-card.tsx b/src/layouts/friends/components/activity-card/activity-card.tsx index 0b4a0760..ef21a11f 100644 --- a/src/layouts/friends/components/activity-card/activity-card.tsx +++ b/src/layouts/friends/components/activity-card/activity-card.tsx @@ -5,13 +5,13 @@ import { type ReactionKey, useGetActivityReactions, useUpsertActivityReaction, -} from '@/services/hooks/friends/friendService.hook' +} from '@/services/hooks/friends/friend-service.hook' import { useEffect, useState } from 'react' import { GetContentFromReactions, RenderReactionContent } from './activity-reaction' import { safeAwait } from '@/services/api' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' -import { playAlarm } from '@/common/playAlarm' +import { playAlarm } from '@/common/play-alarm' interface ActivityCardProps { id: string diff --git a/src/layouts/friends/components/activity-card/activity-reaction.tsx b/src/layouts/friends/components/activity-card/activity-reaction.tsx index 06cf9d09..4264d2e2 100644 --- a/src/layouts/friends/components/activity-card/activity-reaction.tsx +++ b/src/layouts/friends/components/activity-card/activity-reaction.tsx @@ -1,4 +1,4 @@ -import type { AttachmentReaction } from '@/services/hooks/friends/friendService.hook' +import type { AttachmentReaction } from '@/services/hooks/friends/friend-service.hook' export function GetContentFromReactions( reactionId: string | undefined, diff --git a/src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx b/src/layouts/friends/components/activity-card/manage-activity.bottom-sheet.tsx similarity index 98% rename from src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx rename to src/layouts/friends/components/activity-card/manage-activity.bottom-sheet.tsx index 564dde9e..645060c2 100644 --- a/src/layouts/friends/components/activity-card/manage-activity.bottomSheet.tsx +++ b/src/layouts/friends/components/activity-card/manage-activity.bottom-sheet.tsx @@ -2,20 +2,20 @@ import { useState } from 'react' import { Button } from '@/components/button/button' import { showToast } from '@/common/toast' import Modal from '@/components/modal' -import { useRemoveActivity, useSetActivity } from '@/services/hooks/user/userService.hook' +import { useRemoveActivity, useSetActivity } from '@/services/hooks/user/user-service.hook' import { translateError } from '@/common/utils/translate-error' -import { playAlarm } from '@/common/playAlarm' +import { playAlarm } from '@/common/play-alarm' import { type AttachmentReaction, useGetActivityReactions, -} from '@/services/hooks/friends/friendService.hook' +} from '@/services/hooks/friends/friend-service.hook' import { MakeSkeletonFriendItem } from '../friend-item/friend-item.skeleton' import { GetContentFromReactions, RenderReactionContent } from './activity-reaction' import { AvatarComponent } from '@/components/avatar.component' import { callEvent } from '@/common/utils/call-event' import { Chip } from '@/components/chip.component' import { SelectBox } from '@/components/selectbox/selectbox' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { Icon } from '@/src/icons' interface ManageActivityBottomSheetProps { diff --git a/src/layouts/friends/components/add-friend.bottomSheet.tsx b/src/layouts/friends/components/add-friend.bottom-sheet.tsx similarity index 99% rename from src/layouts/friends/components/add-friend.bottomSheet.tsx rename to src/layouts/friends/components/add-friend.bottom-sheet.tsx index 3e32e74c..d12a40eb 100644 --- a/src/layouts/friends/components/add-friend.bottomSheet.tsx +++ b/src/layouts/friends/components/add-friend.bottom-sheet.tsx @@ -2,7 +2,7 @@ import { useState } from 'react' import { Button } from '@/components/button/button' import { TextInput } from '@/components/text-input' import { useAuth } from '@/context/auth.context' -import { useSendFriendRequest } from '@/services/hooks/friends/friendService.hook' +import { useSendFriendRequest } from '@/services/hooks/friends/friend-service.hook' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import Modal from '@/components/modal' diff --git a/src/layouts/friends/components/buttons/friend-requests.button.tsx b/src/layouts/friends/components/buttons/friend-requests.button.tsx index 3a822448..de9f5cba 100644 --- a/src/layouts/friends/components/buttons/friend-requests.button.tsx +++ b/src/layouts/friends/components/buttons/friend-requests.button.tsx @@ -1,4 +1,4 @@ -import { FriendRequestsBottomSheet } from '../friend-requests.bottomSheet' +import { FriendRequestsBottomSheet } from '../friend-requests.bottom-sheet' import { Icon } from '@/src/icons' interface Prop { diff --git a/src/layouts/friends/components/friend-requests.bottomSheet.tsx b/src/layouts/friends/components/friend-requests.bottom-sheet.tsx similarity index 95% rename from src/layouts/friends/components/friend-requests.bottomSheet.tsx rename to src/layouts/friends/components/friend-requests.bottom-sheet.tsx index 4c17c558..eb4785d8 100644 --- a/src/layouts/friends/components/friend-requests.bottomSheet.tsx +++ b/src/layouts/friends/components/friend-requests.bottom-sheet.tsx @@ -1,10 +1,10 @@ import { type Friend, useHandleFriendRequest, -} from '@/services/hooks/friends/friendService.hook' +} from '@/services/hooks/friends/friend-service.hook' import { RemoveFriendButton } from './remove-button' -import { FriendsList } from './friends-List' +import { FriendsList } from './friends-list' import { Button } from '@/components/button/button' import { showToast } from '@/common/toast' import Modal from '@/components/modal' diff --git a/src/layouts/friends/components/friends-List.tsx b/src/layouts/friends/components/friends-list.tsx similarity index 97% rename from src/layouts/friends/components/friends-List.tsx rename to src/layouts/friends/components/friends-list.tsx index b8f36b18..1f2ebc88 100644 --- a/src/layouts/friends/components/friends-List.tsx +++ b/src/layouts/friends/components/friends-list.tsx @@ -1,6 +1,6 @@ import { AvatarComponent } from '@/components/avatar.component' -import { type Friend, useGetFriends } from '@/services/hooks/friends/friendService.hook' -import { useInfiniteScroll } from '@/hooks/useInfiniteScroll' +import { type Friend, useGetFriends } from '@/services/hooks/friends/friend-service.hook' +import { useInfiniteScroll } from '@/hooks/use-infinite-scroll' import { FriendEmptyList } from './empty-list.friend' interface PaginatedFriendsListProps { diff --git a/src/layouts/friends/components/remove-button.tsx b/src/layouts/friends/components/remove-button.tsx index 3b79e942..52bb8bd7 100644 --- a/src/layouts/friends/components/remove-button.tsx +++ b/src/layouts/friends/components/remove-button.tsx @@ -1,5 +1,5 @@ import { Button } from '@/components/button/button' -import type { Friend } from '@/services/hooks/friends/friendService.hook' +import type { Friend } from '@/services/hooks/friends/friend-service.hook' import { Icon } from '@/src/icons' type Props = { diff --git a/src/layouts/friends/components/select-friend.layout.tsx b/src/layouts/friends/components/select-friend.layout.tsx index 74af22b6..16f9ca7c 100644 --- a/src/layouts/friends/components/select-friend.layout.tsx +++ b/src/layouts/friends/components/select-friend.layout.tsx @@ -1,5 +1,5 @@ import { AvatarComponent } from '@/components/avatar.component' -import { useGetFriends, type Friend } from '@/services/hooks/friends/friendService.hook' +import { useGetFriends, type Friend } from '@/services/hooks/friends/friend-service.hook' import { FriendEmptyList } from './empty-list.friend' interface SelectFriendBottomSheetProps { diff --git a/src/layouts/friends/friends.tsx b/src/layouts/friends/friends.tsx index 7046d169..f4cbe8ce 100644 --- a/src/layouts/friends/friends.tsx +++ b/src/layouts/friends/friends.tsx @@ -1,10 +1,10 @@ import { useState } from 'react' -import { type Friend, useRemoveFriend } from '@/services/hooks/friends/friendService.hook' +import { type Friend, useRemoveFriend } from '@/services/hooks/friends/friend-service.hook' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' import { RemoveFriendButton } from './components/remove-button' -import { FriendsList } from './components/friends-List' -import { AddFriendBottomSheet } from './components/add-friend.bottomSheet' +import { FriendsList } from './components/friends-list' +import { AddFriendBottomSheet } from './components/add-friend.bottom-sheet' import { ConfirmationModal } from '@/components/modal/confirmation-modal' import { FriendRequestsButton } from './components/buttons/friend-requests.button' import { useAuth } from '@/context/auth.context' diff --git a/src/layouts/market/market-container.tsx b/src/layouts/market/market-container.tsx index a72841ad..23a111c2 100644 --- a/src/layouts/market/market-container.tsx +++ b/src/layouts/market/market-container.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react' import { useAuth } from '@/context/auth.context' -import { MarketWallpaper } from './marketWallpaper' +import { MarketWallpaper } from './market-wallpaper' import { MarketOtherItems } from './other-items' import { UserCoin } from '../setting/tabs/account/components/user-coin' import Analytics from '@/analytics' diff --git a/src/layouts/market/marketWallpaper/index.tsx b/src/layouts/market/market-wallpaper/index.tsx similarity index 95% rename from src/layouts/market/marketWallpaper/index.tsx rename to src/layouts/market/market-wallpaper/index.tsx index b0768242..b4a57eb5 100644 --- a/src/layouts/market/marketWallpaper/index.tsx +++ b/src/layouts/market/market-wallpaper/index.tsx @@ -2,9 +2,9 @@ import { useState } from 'react' import Analytics from '@/analytics' import { Pagination } from '@/components/pagination' import { WallpaperItem } from '@/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-item' -import { useGetWallpapers } from '@/services/hooks/wallpapers/getWallpaperCategories.hook' +import { useGetWallpapers } from '@/services/hooks/wallpapers/get-wallpaper-categories.hook' import { useWallpaperContext } from '@/context/wallpaper.context' -import { usePreviewHandler } from '@/hooks/usePreviewHandler' +import { usePreviewHandler } from '@/hooks/use-preview-handler' import type { Wallpaper } from '@/common/wallpaper.interface' import { MarketItemType } from '@/services/hooks/market/market.interface' diff --git a/src/layouts/market/other-items/components/market-item-card.tsx b/src/layouts/market/other-items/components/market-item-card.tsx index bc6c9bf9..61efc80b 100644 --- a/src/layouts/market/other-items/components/market-item-card.tsx +++ b/src/layouts/market/other-items/components/market-item-card.tsx @@ -1,9 +1,9 @@ import { Button } from '@/components/button/button' import { ItemPrice } from '@/components/item-price/item-price' -import { getItemTypeEmoji } from '@/components/market/getItemTypeEmoji' +import { getItemTypeEmoji } from '@/components/market/get-item-type-emoji' import { type MarketItem, MarketItemType } from '@/services/hooks/market/market.interface' import { showToast } from '@/common/toast' -import { RenderPreview } from './renderPreview' +import { RenderPreview } from './render-preview' import { Icon } from '@/src/icons' interface MarketItemCardProps { diff --git a/src/layouts/market/other-items/components/market-item-purchase-modal.tsx b/src/layouts/market/other-items/components/market-item-purchase-modal.tsx index d545de43..427e485f 100644 --- a/src/layouts/market/other-items/components/market-item-purchase-modal.tsx +++ b/src/layouts/market/other-items/components/market-item-purchase-modal.tsx @@ -3,10 +3,10 @@ import { Button } from '@/components/button/button' import { ItemPrice } from '@/components/item-price/item-price' import Modal from '@/components/modal' import type { MarketItem } from '@/services/hooks/market/market.interface' -import { usePurchaseMarketItem } from '@/services/hooks/market/purchaseMarketItem.hook' +import { usePurchaseMarketItem } from '@/services/hooks/market/purchase-market-item.hook' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' -import { RenderPreview } from './renderPreview' +import { RenderPreview } from './render-preview' import { Icon } from '@/src/icons' interface MarketItemPurchaseModalProps { diff --git a/src/layouts/market/other-items/components/renderPreview.tsx b/src/layouts/market/other-items/components/render-preview.tsx similarity index 95% rename from src/layouts/market/other-items/components/renderPreview.tsx rename to src/layouts/market/other-items/components/render-preview.tsx index 39df4822..e93333e8 100644 --- a/src/layouts/market/other-items/components/renderPreview.tsx +++ b/src/layouts/market/other-items/components/render-preview.tsx @@ -1,4 +1,4 @@ -import { getItemTypeEmoji } from '@/components/market/getItemTypeEmoji' +import { getItemTypeEmoji } from '@/components/market/get-item-type-emoji' import { renderBrowserTitlePreview } from '@/components/market/title/title-render-preview' import type { MarketItem } from '@/services/hooks/market/market.interface' diff --git a/src/layouts/market/other-items/index.tsx b/src/layouts/market/other-items/index.tsx index 482a2293..7e6861c6 100644 --- a/src/layouts/market/other-items/index.tsx +++ b/src/layouts/market/other-items/index.tsx @@ -4,14 +4,14 @@ import { callEvent } from '@/common/utils/call-event' import { Pagination } from '@/components/pagination' import { useAuth } from '@/context/auth.context' import { useTheme } from '@/context/theme.context' -import { useGetMarketItems } from '@/services/hooks/market/getMarketItems.hook' +import { useGetMarketItems } from '@/services/hooks/market/get-market-items.hook' import { MarketItemType, type MarketItem } from '@/services/hooks/market/market.interface' import { MarketItemCard } from './components/market-item-card' import { MarketItemPurchaseModal } from './components/market-item-purchase-modal' import { showToast } from '@/common/toast' import { Chip } from '@/components/chip.component' import { useAppearanceSetting } from '@/context/appearance.context' -import { usePreviewHandler } from '@/hooks/usePreviewHandler' +import { usePreviewHandler } from '@/hooks/use-preview-handler' import { Icon } from '@/src/icons' const FILTER_OPTIONS = [ diff --git a/src/layouts/navbar/components/navButton.tsx b/src/layouts/navbar/components/nav-button.tsx similarity index 100% rename from src/layouts/navbar/components/navButton.tsx rename to src/layouts/navbar/components/nav-button.tsx diff --git a/src/layouts/navbar/components/settingsDropdown.tsx b/src/layouts/navbar/components/settings-dropdown.tsx similarity index 100% rename from src/layouts/navbar/components/settingsDropdown.tsx rename to src/layouts/navbar/components/settings-dropdown.tsx diff --git a/src/layouts/navbar/navbar.layout.tsx b/src/layouts/navbar/navbar.layout.tsx index 59441118..33955683 100644 --- a/src/layouts/navbar/navbar.layout.tsx +++ b/src/layouts/navbar/navbar.layout.tsx @@ -2,7 +2,7 @@ import { type JSX, useCallback, useEffect, useState } from 'react' import { getFromStorage, setToStorage } from '@/common/storage' import { callEvent, listenEvent } from '@/common/utils/call-event' import { SettingModal } from '../setting/setting-modal' -import { SettingsDropdown } from './components/settingsDropdown' +import { SettingsDropdown } from './components/settings-dropdown' import { FriendsListNavbar } from './friends-list/friends.navbar' import { ProfileNav } from './profile/profile' import { useAppearanceSetting } from '@/context/appearance.context' @@ -11,13 +11,13 @@ import Analytics from '@/analytics' import { Page, usePage } from '@/context/page.context' import { useAuth } from '@/context/auth.context' import { BlurModeButton } from '@/components/blur-mode/blur-mode.button' -import type { UserProfile } from '@/services/hooks/user/userService.hook' -import Tooltip from '@/components/toolTip' +import type { UserProfile } from '@/services/hooks/user/user-service.hook' +import Tooltip from '@/components/tool-tip' import { SyncAccount } from './sync' import { getCurrentDate } from '../widgets/calendar/utils' -import { useBirthdayConfetti } from '@/hooks/useBirthdayConfetti' +import { useBirthdayConfetti } from '@/hooks/use-birthday-confetti' import { Icon } from '@/src/icons' -import { GetUserFirstName } from '@/common/utils/getFirstname' +import { GetUserFirstName } from '@/common/utils/get-firstname' const WIDGETIFY_URLS = { website: 'https://widgetify.ir', diff --git a/src/layouts/navbar/profile/profile.tsx b/src/layouts/navbar/profile/profile.tsx index 66206e7d..6677e944 100644 --- a/src/layouts/navbar/profile/profile.tsx +++ b/src/layouts/navbar/profile/profile.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react' import { listenEvent } from '@/common/utils/call-event' import { AvatarComponent } from '@/components/avatar.component' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useAuth } from '@/context/auth.context' import { UserAccountModal } from '../../setting/tabs/account/user-account.modal' import { WelcomeWizard } from '@/components/welcome-wizard' diff --git a/src/layouts/search/browser-bookmark/browser-bookmark.tsx b/src/layouts/search/browser-bookmark/browser-bookmark.tsx index acaded29..66551c94 100644 --- a/src/layouts/search/browser-bookmark/browser-bookmark.tsx +++ b/src/layouts/search/browser-bookmark/browser-bookmark.tsx @@ -1,7 +1,7 @@ import { useState, useRef, useEffect, useCallback } from 'react' -import { useGetSearchboxData } from '@/services/hooks/trends/getTrends' +import { useGetSearchboxData } from '@/services/hooks/trends/get-trends' import { getFaviconFromUrl } from '@/common/utils/icon' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { BookmarkPopover } from './bookmark-popover' import { Page, usePage } from '@/context/page.context' import Analytics from '@/analytics' diff --git a/src/layouts/search/history.portal.tsx b/src/layouts/search/history.portal.tsx index 2a95a0b5..ec8c7463 100644 --- a/src/layouts/search/history.portal.tsx +++ b/src/layouts/search/history.portal.tsx @@ -1,10 +1,10 @@ import { useState, useMemo } from 'react' -import { useSearchSuggestions } from '@/services/hooks/search/getSuggestSearch.hook' +import { useSearchSuggestions } from '@/services/hooks/search/get-suggest-search.hook' import { SuggestionSkeleton } from './suggestion/suggestion.skeleton' import { useAuth } from '@/context/auth.context' import { AutocompleteConsentModal } from './suggestion/autocomplete-consent.modal' -import { Portal } from '@/components/portal/Portal' -import { useSearchHistory } from './hooks/useSearchHistory' +import { Portal } from '@/components/portal/portal' +import { useSearchHistory } from './hooks/use-search-history' import { Suggestions } from './suggestion/suggestions' import { Icon } from '@/src/icons' diff --git a/src/layouts/search/hooks/useSearchHistory.ts b/src/layouts/search/hooks/use-search-history.ts similarity index 100% rename from src/layouts/search/hooks/useSearchHistory.ts rename to src/layouts/search/hooks/use-search-history.ts diff --git a/src/layouts/search/image/image-search.button.tsx b/src/layouts/search/image/image-search.button.tsx index 88876b40..1c7397d1 100644 --- a/src/layouts/search/image/image-search.button.tsx +++ b/src/layouts/search/image/image-search.button.tsx @@ -1,5 +1,5 @@ import Analytics from '@/analytics' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' export function ImageSearchButton({ onClick }: { onClick: () => void }) { const onClickHandle = () => { diff --git a/src/layouts/search/image/image-search.portal.tsx b/src/layouts/search/image/image-search.portal.tsx index edbcdc3b..b5ac74a4 100644 --- a/src/layouts/search/image/image-search.portal.tsx +++ b/src/layouts/search/image/image-search.portal.tsx @@ -6,7 +6,7 @@ import Analytics from '@/analytics' import { RequireAuth } from '@/components/auth/require-auth' import { getMainClient } from '@/services/api' import { translateError } from '@/common/utils/translate-error' -import { Portal } from '@/components/portal/Portal' +import { Portal } from '@/components/portal/portal' import { Icon } from '@/src/icons' interface ImageSearchPortalProps { diff --git a/src/layouts/search/search.tsx b/src/layouts/search/search.tsx index 251951b5..3d58f687 100644 --- a/src/layouts/search/search.tsx +++ b/src/layouts/search/search.tsx @@ -7,8 +7,8 @@ import { VoiceSearchPortal } from './voice/voice-search.portal' import { ImageSearchButton } from './image/image-search.button' import { EngineSelector } from './select-engine/engine-selector' import { SearchHistoryPortal } from './history.portal' -import type { EngineMeta } from '@/services/hooks/trends/getTrends' -import { useSearchHistory } from './hooks/useSearchHistory' +import type { EngineMeta } from '@/services/hooks/trends/get-trends' +import { useSearchHistory } from './hooks/use-search-history' import { useAuth } from '@/context/auth.context' import { Icon } from '@/src/icons' diff --git a/src/layouts/search/select-engine/engine-selector.tsx b/src/layouts/search/select-engine/engine-selector.tsx index b4798fb0..6019dc6b 100644 --- a/src/layouts/search/select-engine/engine-selector.tsx +++ b/src/layouts/search/select-engine/engine-selector.tsx @@ -2,8 +2,8 @@ import { getFromStorage, setToStorage } from '@/common/storage' import { callEvent } from '@/common/utils/call-event' import { Dropdown } from '@/components/dropdown' import { useAuth } from '@/context/auth.context' -import { useChangeSearchEngine } from '@/services/hooks/extension/updateSetting.hook' -import { type EngineMeta, useGetSearchboxData } from '@/services/hooks/trends/getTrends' +import { useChangeSearchEngine } from '@/services/hooks/extension/update-setting.hook' +import { type EngineMeta, useGetSearchboxData } from '@/services/hooks/trends/get-trends' import { Icon } from '@/src/icons' import type { ReactNode } from 'react' import { useState, useEffect, useMemo } from 'react' diff --git a/src/layouts/search/suggestion/autocomplete-consent.modal.tsx b/src/layouts/search/suggestion/autocomplete-consent.modal.tsx index a034677b..70b2d205 100644 --- a/src/layouts/search/suggestion/autocomplete-consent.modal.tsx +++ b/src/layouts/search/suggestion/autocomplete-consent.modal.tsx @@ -2,7 +2,7 @@ import { autoFormatErrorToast } from '@/common/toast' import { Button } from '@/components/button/button' import Modal from '@/components/modal' import { safeAwait } from '@/services/api' -import { useUpdateSearchAutocomplete } from '@/services/hooks/extension/updateSetting.hook' +import { useUpdateSearchAutocomplete } from '@/services/hooks/extension/update-setting.hook' export function AutocompleteConsentModal({ isOpen, diff --git a/src/layouts/search/voice/useVoiceSearch.ts b/src/layouts/search/voice/use-voice-search.ts similarity index 100% rename from src/layouts/search/voice/useVoiceSearch.ts rename to src/layouts/search/voice/use-voice-search.ts diff --git a/src/layouts/search/voice/voice-search.button.tsx b/src/layouts/search/voice/voice-search.button.tsx index bdb732ec..f801dcfd 100644 --- a/src/layouts/search/voice/voice-search.button.tsx +++ b/src/layouts/search/voice/voice-search.button.tsx @@ -1,5 +1,5 @@ import Analytics from '@/analytics' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' export function VoiceSearchButton({ onClick }: { onClick: () => void }) { const onClickHandle = () => { diff --git a/src/layouts/search/voice/voice-search.portal.tsx b/src/layouts/search/voice/voice-search.portal.tsx index b7e02eda..7bf6f8b2 100644 --- a/src/layouts/search/voice/voice-search.portal.tsx +++ b/src/layouts/search/voice/voice-search.portal.tsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react' -import { useVoiceSearch } from './useVoiceSearch' -import { Portal } from '@/components/portal/Portal' +import { useVoiceSearch } from './use-voice-search' +import { Portal } from '@/components/portal/portal' import { Icon } from '@/src/icons' interface VoiceSearchPortalProps { diff --git a/src/layouts/setting/setting-modal.tsx b/src/layouts/setting/setting-modal.tsx index 484c77ee..9b57d268 100644 --- a/src/layouts/setting/setting-modal.tsx +++ b/src/layouts/setting/setting-modal.tsx @@ -11,7 +11,7 @@ import { ShortcutsTab } from './tabs/shortcuts/shortcuts' import { WallpaperSetting } from './tabs/wallpapers/wallpapers' import { AccountTab } from './tabs/account/account' import { AllFriendsTab, RewardsTab } from './tabs/account/tabs' -import { ConnectionPlatformsTab } from './tabs/account/tabs/connection/connectionsTab' +import { ConnectionPlatformsTab } from './tabs/account/tabs/connection/connections-tab' import { Icon } from '@/src/icons' interface SettingModalProps { diff --git a/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx b/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx index 6baa6420..a5e7a933 100644 --- a/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx +++ b/src/layouts/setting/tabs/account/auth-form/auth-otp.tsx @@ -5,7 +5,7 @@ import { useGetAuthStatus, useRequestOtp, useVerifyOtp, -} from '@/services/hooks/auth/authService.hook' +} from '@/services/hooks/auth/auth-service.hook' import { translateError } from '@/common/utils/translate-error' import { useAuth } from '@/context/auth.context' import { isEmpty, isEmail, isLessThan } from '@/common/utils/validators' diff --git a/src/layouts/setting/tabs/account/auth-form/auth-password.tsx b/src/layouts/setting/tabs/account/auth-form/auth-password.tsx index 87eec97e..fc085348 100644 --- a/src/layouts/setting/tabs/account/auth-form/auth-password.tsx +++ b/src/layouts/setting/tabs/account/auth-form/auth-password.tsx @@ -3,7 +3,7 @@ import Analytics from '@/analytics' import { Button } from '@/components/button/button' import { TextInput } from '@/components/text-input' import { useAuth } from '@/context/auth.context' -import { useSignIn } from '@/services/hooks/auth/authService.hook' +import { useSignIn } from '@/services/hooks/auth/auth-service.hook' import { translateError } from '@/common/utils/translate-error' import InputTextError from './components/input-text-error' import { isEmail, isEmpty, isLessThan } from '@/common/utils/validators' diff --git a/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx b/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx index 6cfee5ad..f8c6c3a9 100644 --- a/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx +++ b/src/layouts/setting/tabs/account/auth-form/components/login-google.button.tsx @@ -3,7 +3,7 @@ import { useAuth } from '@/context/auth.context' import { type AuthResponse, useGoogleSignIn, -} from '@/services/hooks/auth/authService.hook' +} from '@/services/hooks/auth/auth-service.hook' import { useState } from 'react' import { safeAwait } from '@/services/api' import type { AxiosError } from 'axios' diff --git a/src/layouts/setting/tabs/account/components/interests-selector.tsx b/src/layouts/setting/tabs/account/components/interests-selector.tsx index eed75f2a..5a2b7910 100644 --- a/src/layouts/setting/tabs/account/components/interests-selector.tsx +++ b/src/layouts/setting/tabs/account/components/interests-selector.tsx @@ -1,6 +1,6 @@ import { useState, useRef } from 'react' -import { ClickableTooltip } from '@/components/clickableTooltip' -import type { ProfileMetaItem } from '@/services/hooks/profile/getProfileMeta.hook' +import { ClickableTooltip } from '@/components/clickable-tooltip' +import type { ProfileMetaItem } from '@/services/hooks/profile/get-profile-meta.hook' import { Button } from '@/components/button/button' import { Icon } from '@/src/icons' import { Chip } from '@/components/chip.component' diff --git a/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx b/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx index 1ad1a5c9..4aba128a 100644 --- a/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx +++ b/src/layouts/setting/tabs/account/components/modals/add-email.modal.tsx @@ -5,7 +5,7 @@ import { Button } from '@/components/button/button' import { useChangeEmailRequest, useChangeEmailVerify, -} from '@/services/hooks/user/userService.hook' +} from '@/services/hooks/user/user-service.hook' import { safeAwait } from '@/services/api' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' diff --git a/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx b/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx index adc7415c..06122deb 100644 --- a/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx +++ b/src/layouts/setting/tabs/account/components/modals/add-phone.modal.tsx @@ -7,7 +7,7 @@ import OtpInput from '../../auth-form/components/otp-input' import { useChangePhoneRequest, useChangePhoneVerify, -} from '@/services/hooks/user/userService.hook' +} from '@/services/hooks/user/user-service.hook' import { safeAwait } from '@/services/api' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' diff --git a/src/layouts/setting/tabs/account/components/modals/avatar/edit.avatar.tsx b/src/layouts/setting/tabs/account/components/modals/avatar/edit.avatar.tsx index 44144816..2e408c8e 100644 --- a/src/layouts/setting/tabs/account/components/modals/avatar/edit.avatar.tsx +++ b/src/layouts/setting/tabs/account/components/modals/avatar/edit.avatar.tsx @@ -4,7 +4,7 @@ import { AvatarComponent } from '@/components/avatar.component' import Modal from '@/components/modal' import { SectionPanel } from '@/components/section-panel' import { useAuth } from '@/context/auth.context' -import { useUpdateUserProfile } from '@/services/hooks/auth/authService.hook' +import { useUpdateUserProfile } from '@/services/hooks/auth/auth-service.hook' import { useRef, useState } from 'react' import { FooterButtons } from '../footer-buttons' import { Icon } from '@/src/icons' diff --git a/src/layouts/setting/tabs/account/components/modals/edit-birthday.tsx b/src/layouts/setting/tabs/account/components/modals/edit-birthday.tsx index da1762a0..e7a2d3f6 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-birthday.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-birthday.tsx @@ -1,5 +1,5 @@ import Modal from '@/components/modal' -import { useUpdateUserProfile } from '@/services/hooks/auth/authService.hook' +import { useUpdateUserProfile } from '@/services/hooks/auth/auth-service.hook' import { useEffect, useState } from 'react' import JalaliDatePicker from '../profile-date-picker' import moment from 'jalali-moment' diff --git a/src/layouts/setting/tabs/account/components/modals/edit-gender.tsx b/src/layouts/setting/tabs/account/components/modals/edit-gender.tsx index 0e3c1c19..3d1c8143 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-gender.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-gender.tsx @@ -1,6 +1,6 @@ import Modal from '@/components/modal' import { SectionPanel } from '@/components/section-panel' -import { useUpdateUserProfile } from '@/services/hooks/auth/authService.hook' +import { useUpdateUserProfile } from '@/services/hooks/auth/auth-service.hook' import { useState } from 'react' import { FooterButtons } from './footer-buttons' diff --git a/src/layouts/setting/tabs/account/components/modals/edit-interests.tsx b/src/layouts/setting/tabs/account/components/modals/edit-interests.tsx index 24e795ee..ba93747c 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-interests.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-interests.tsx @@ -1,8 +1,8 @@ import Modal from '@/components/modal' -import { useUpdateUserProfile } from '@/services/hooks/auth/authService.hook' +import { useUpdateUserProfile } from '@/services/hooks/auth/auth-service.hook' import { useEffect, useState } from 'react' import { InterestsSelector } from '../interests-selector' -import { useGetInterests } from '@/services/hooks/profile/getProfileMeta.hook' +import { useGetInterests } from '@/services/hooks/profile/get-profile-meta.hook' import { SectionPanel } from '@/components/section-panel' import { FooterButtons } from './footer-buttons' diff --git a/src/layouts/setting/tabs/account/components/modals/edit-name.tsx b/src/layouts/setting/tabs/account/components/modals/edit-name.tsx index efc7750c..358e9a75 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-name.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-name.tsx @@ -1,7 +1,7 @@ import Modal from '@/components/modal' import { SectionPanel } from '@/components/section-panel' import { TextInput } from '@/components/text-input' -import { useUpdateUserProfile } from '@/services/hooks/auth/authService.hook' +import { useUpdateUserProfile } from '@/services/hooks/auth/auth-service.hook' import { useState } from 'react' import { FooterButtons } from './footer-buttons' diff --git a/src/layouts/setting/tabs/account/components/modals/edit-occupation.tsx b/src/layouts/setting/tabs/account/components/modals/edit-occupation.tsx index 656bf0c4..7f2c98a4 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-occupation.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-occupation.tsx @@ -1,8 +1,8 @@ import Modal from '@/components/modal' -import { useUpdateUserProfile } from '@/services/hooks/auth/authService.hook' +import { useUpdateUserProfile } from '@/services/hooks/auth/auth-service.hook' import { useState } from 'react' import { OccupationSelector } from '../occupation-selector' -import { useGetOccupations } from '@/services/hooks/profile/getProfileMeta.hook' +import { useGetOccupations } from '@/services/hooks/profile/get-profile-meta.hook' import { SectionPanel } from '@/components/section-panel' import { Icon } from '@/src/icons' import { FooterButtons } from './footer-buttons' diff --git a/src/layouts/setting/tabs/account/components/modals/edit-username.tsx b/src/layouts/setting/tabs/account/components/modals/edit-username.tsx index e49a8465..fc4e164c 100644 --- a/src/layouts/setting/tabs/account/components/modals/edit-username.tsx +++ b/src/layouts/setting/tabs/account/components/modals/edit-username.tsx @@ -3,8 +3,8 @@ import Modal from '@/components/modal' import { SectionPanel } from '@/components/section-panel' import { TextInput } from '@/components/text-input' import { safeAwait } from '@/services/api' -import { useUpdateUsername } from '@/services/hooks/auth/authService.hook' -import type { UserProfile } from '@/services/hooks/user/userService.hook' +import { useUpdateUsername } from '@/services/hooks/auth/auth-service.hook' +import type { UserProfile } from '@/services/hooks/user/user-service.hook' import { translateError } from '@/common/utils/translate-error' import type { AxiosError } from 'axios' import { useState } from 'react' diff --git a/src/layouts/setting/tabs/account/components/occupation-selector.tsx b/src/layouts/setting/tabs/account/components/occupation-selector.tsx index 99bf1279..2350d984 100644 --- a/src/layouts/setting/tabs/account/components/occupation-selector.tsx +++ b/src/layouts/setting/tabs/account/components/occupation-selector.tsx @@ -1,6 +1,6 @@ import { useState, useRef } from 'react' -import { ClickableTooltip } from '@/components/clickableTooltip' -import type { ProfileMetaItem } from '@/services/hooks/profile/getProfileMeta.hook' +import { ClickableTooltip } from '@/components/clickable-tooltip' +import type { ProfileMetaItem } from '@/services/hooks/profile/get-profile-meta.hook' import { Button } from '@/components/button/button' import { Icon } from '@/src/icons' import { Chip } from '@/components/chip.component' diff --git a/src/layouts/setting/tabs/account/components/profile-date-picker.tsx b/src/layouts/setting/tabs/account/components/profile-date-picker.tsx index 7143d6c1..f621724b 100644 --- a/src/layouts/setting/tabs/account/components/profile-date-picker.tsx +++ b/src/layouts/setting/tabs/account/components/profile-date-picker.tsx @@ -1,5 +1,5 @@ import { Button } from '@/components/button/button' -import { ClickableTooltip } from '@/components/clickableTooltip' +import { ClickableTooltip } from '@/components/clickable-tooltip' import { Icon } from '@/src/icons' import { useRef, useState, useEffect } from 'react' diff --git a/src/layouts/setting/tabs/account/components/user-coin.tsx b/src/layouts/setting/tabs/account/components/user-coin.tsx index cfbe4bba..9dd38ac8 100644 --- a/src/layouts/setting/tabs/account/components/user-coin.tsx +++ b/src/layouts/setting/tabs/account/components/user-coin.tsx @@ -1,5 +1,5 @@ import { ConfigKey } from '@/common/constant/config.key' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' interface Prop { coins: number diff --git a/src/layouts/setting/tabs/account/tabs/allFriends/friendsTab.tsx b/src/layouts/setting/tabs/account/tabs/all-friends/friends-tab.tsx similarity index 100% rename from src/layouts/setting/tabs/account/tabs/allFriends/friendsTab.tsx rename to src/layouts/setting/tabs/account/tabs/all-friends/friends-tab.tsx diff --git a/src/layouts/setting/tabs/account/tabs/connection/connectionsTab.tsx b/src/layouts/setting/tabs/account/tabs/connection/connections-tab.tsx similarity index 100% rename from src/layouts/setting/tabs/account/tabs/connection/connectionsTab.tsx rename to src/layouts/setting/tabs/account/tabs/connection/connections-tab.tsx diff --git a/src/layouts/setting/tabs/account/tabs/index.ts b/src/layouts/setting/tabs/account/tabs/index.ts index 8d9cbd54..56d77af7 100644 --- a/src/layouts/setting/tabs/account/tabs/index.ts +++ b/src/layouts/setting/tabs/account/tabs/index.ts @@ -1,2 +1,2 @@ -export { AllFriendsTab } from './allFriends/friendsTab' -export { RewardsTab } from './rewards/rewardsTab' +export { AllFriendsTab } from './all-friends/friends-tab' +export { RewardsTab } from './rewards/rewards-tab' diff --git a/src/layouts/setting/tabs/account/tabs/rewards/components/tasks.tsx b/src/layouts/setting/tabs/account/tabs/rewards/components/tasks.tsx index c1514ef5..4fddaeba 100644 --- a/src/layouts/setting/tabs/account/tabs/rewards/components/tasks.tsx +++ b/src/layouts/setting/tabs/account/tabs/rewards/components/tasks.tsx @@ -1,6 +1,6 @@ import { ConfigKey } from '@/common/constant/config.key' import { SectionPanel } from '@/components/section-panel' -import type { Task } from '@/services/hooks/user/referralsService.hook' +import type { Task } from '@/services/hooks/user/referrals-service.hook' import { Icon } from '@/src/icons' interface Prop { diff --git a/src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx b/src/layouts/setting/tabs/account/tabs/rewards/rewards-tab.tsx similarity index 99% rename from src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx rename to src/layouts/setting/tabs/account/tabs/rewards/rewards-tab.tsx index 17109596..363c9aad 100644 --- a/src/layouts/setting/tabs/account/tabs/rewards/rewardsTab.tsx +++ b/src/layouts/setting/tabs/account/tabs/rewards/rewards-tab.tsx @@ -1,6 +1,6 @@ import { ConfigKey } from '@/common/constant/config.key' import { SectionPanel } from '@/components/section-panel' -import { useGetReferrals } from '@/services/hooks/user/referralsService.hook' +import { useGetReferrals } from '@/services/hooks/user/referrals-service.hook' import { ReferralCodeSection } from './components/referral-code-section' import { RewardTasks } from './components/tasks' import { RequireVerification } from '@/components/auth/require-verification' diff --git a/src/layouts/setting/tabs/account/tabs/user-profile/connections/connections.tsx b/src/layouts/setting/tabs/account/tabs/user-profile/connections/connections.tsx index 587f5ebe..b3b97eba 100644 --- a/src/layouts/setting/tabs/account/tabs/user-profile/connections/connections.tsx +++ b/src/layouts/setting/tabs/account/tabs/user-profile/connections/connections.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react' import Analytics from '@/analytics' import { getMainClient } from '@/services/api' -import { useGetUserProfile } from '@/services/hooks/user/userService.hook' +import { useGetUserProfile } from '@/services/hooks/user/user-service.hook' import { ConnectionModal } from './components/connection-modal' import type { Platform } from './components/platform-config.js' import { PLATFORM_CONFIGS } from './components/platform-data' diff --git a/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx b/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx index b665e321..4bb46033 100644 --- a/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx +++ b/src/layouts/setting/tabs/account/tabs/user-profile/user-profile.tsx @@ -2,11 +2,11 @@ import { useEffect } from 'react' import { Button } from '@/components/button/button' import { SectionPanel } from '@/components/section-panel' import { useAuth } from '@/context/auth.context' -import { useGetOrCreateReferralCode } from '@/services/hooks/user/referralsService.hook' +import { useGetOrCreateReferralCode } from '@/services/hooks/user/referrals-service.hook' import { useGetUserProfile, useSendVerificationEmail, -} from '@/services/hooks/user/userService.hook' +} from '@/services/hooks/user/user-service.hook' import { AccountVerificationStatus } from '../../components/account-verification-status' import { ProfileDisplay } from '../../components/profile-display' import { ReferralCodeSection } from '../rewards/components/referral-code-section' diff --git a/src/layouts/setting/tabs/appearance/appearance.tsx b/src/layouts/setting/tabs/appearance/appearance.tsx index a0225bbe..15f9ddc3 100644 --- a/src/layouts/setting/tabs/appearance/appearance.tsx +++ b/src/layouts/setting/tabs/appearance/appearance.tsx @@ -1,6 +1,6 @@ import { useAuth } from '@/context/auth.context' -import { useGetUserInventory } from '@/services/hooks/market/getUserInventory.hook' -import { BrowserTitleSelector } from './components/browserTitle-selector' +import { useGetUserInventory } from '@/services/hooks/market/get-user-inventory.hook' +import { BrowserTitleSelector } from './components/browser-title-selector' import { FontSelector } from './components/font-selector' import { ThemeSelector } from './components/theme-selector' import { UISelector } from './components/ui-selector' diff --git a/src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx b/src/layouts/setting/tabs/appearance/components/browser-title-selector.tsx similarity index 99% rename from src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx rename to src/layouts/setting/tabs/appearance/components/browser-title-selector.tsx index b901c100..86bb4266 100644 --- a/src/layouts/setting/tabs/appearance/components/browserTitle-selector.tsx +++ b/src/layouts/setting/tabs/appearance/components/browser-title-selector.tsx @@ -7,7 +7,7 @@ import { ItemSelector } from '@/components/item-selector' import { renderBrowserTitlePreview } from '@/components/market/title/title-render-preview' import { SectionPanel } from '@/components/section-panel' import { safeAwait } from '@/services/api' -import { useChangeBrowserTitle } from '@/services/hooks/extension/updateSetting.hook' +import { useChangeBrowserTitle } from '@/services/hooks/extension/update-setting.hook' import type { UserInventoryItem } from '@/services/hooks/market/market.interface' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' diff --git a/src/layouts/setting/tabs/general/components/select-city.tsx b/src/layouts/setting/tabs/general/components/select-city.tsx index 496684fb..eedb8fe8 100644 --- a/src/layouts/setting/tabs/general/components/select-city.tsx +++ b/src/layouts/setting/tabs/general/components/select-city.tsx @@ -3,10 +3,10 @@ import Analytics from '@/analytics' import { IconLoading } from '@/components/loading/icon-loading' import Modal from '@/components/modal' import { SectionPanel } from '@/components/section-panel' -import { useGetCitiesList } from '@/services/hooks/cities/getCitiesList' +import { useGetCitiesList } from '@/services/hooks/cities/get-cities-list' import { useAuth } from '@/context/auth.context' import { AuthRequiredModal } from '@/components/auth/auth-required-modal' -import { useSetCity } from '@/services/hooks/user/userService.hook' +import { useSetCity } from '@/services/hooks/user/user-service.hook' import { TextInput } from '@/components/text-input' import { showToast } from '@/common/toast' import { translateError } from '@/common/utils/translate-error' diff --git a/src/layouts/setting/tabs/general/components/timezone-settings.tsx b/src/layouts/setting/tabs/general/components/timezone-settings.tsx index 412934f1..4587524b 100644 --- a/src/layouts/setting/tabs/general/components/timezone-settings.tsx +++ b/src/layouts/setting/tabs/general/components/timezone-settings.tsx @@ -1,6 +1,6 @@ import { SectionPanel } from '@/components/section-panel' import { useGeneralSetting } from '@/context/general-setting.context' -import { useTimezones } from '@/services/hooks/timezone/getTimezones.hook' +import { useTimezones } from '@/services/hooks/timezone/get-timezones.hook' export function TimezoneSettings() { const { selected_timezone: timezone, setTimezone } = useGeneralSetting() diff --git a/src/layouts/setting/tabs/privacy/components/search-autocomplete.switch.tsx b/src/layouts/setting/tabs/privacy/components/search-autocomplete.switch.tsx index 997a6530..6e5010a0 100644 --- a/src/layouts/setting/tabs/privacy/components/search-autocomplete.switch.tsx +++ b/src/layouts/setting/tabs/privacy/components/search-autocomplete.switch.tsx @@ -2,7 +2,7 @@ import { autoFormatErrorToast } from '@/common/toast' import { ToggleSwitch } from '@/components/toggle-switch.component' import { useAuth } from '@/context/auth.context' import { safeAwait } from '@/services/api' -import { useUpdateSearchAutocomplete } from '@/services/hooks/extension/updateSetting.hook' +import { useUpdateSearchAutocomplete } from '@/services/hooks/extension/update-setting.hook' export function SearchAutocompleteSwitch() { const { isAuthenticated, user } = useAuth() diff --git a/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper-apply.tsx b/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper-apply.tsx index 58f4fdd5..0e9ed6fe 100644 --- a/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper-apply.tsx +++ b/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper-apply.tsx @@ -2,7 +2,7 @@ import { useEffect } from 'react' import { getFromStorage, setToStorage } from '@/common/storage' import { listenEvent } from '@/common/utils/call-event' import type { StoredWallpaper, Wallpaper } from '@/common/wallpaper.interface' -import { getRandomWallpaper } from '@/services/hooks/wallpapers/getWallpaperCategories.hook' +import { getRandomWallpaper } from '@/services/hooks/wallpapers/get-wallpaper-categories.hook' import { safeAwait } from '@/services/api' import { SwEventType } from '@/common/types/sw-events' diff --git a/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx b/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx index 32d724e9..9ca93a4d 100644 --- a/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx +++ b/src/layouts/setting/tabs/wallpapers/hooks/use-wallpaper.tsx @@ -4,12 +4,12 @@ import { getFromStorage, setToStorage } from '@/common/storage' import { callEvent, listenEvent } from '@/common/utils/call-event' import type { StoredWallpaper, Wallpaper } from '@/common/wallpaper.interface' import { safeAwait } from '@/services/api' -import { useChangeWallpaper } from '@/services/hooks/extension/updateSetting.hook' +import { useChangeWallpaper } from '@/services/hooks/extension/update-setting.hook' import { translateError } from '@/common/utils/translate-error' import Analytics from '../../../../../analytics' import { showToast } from '@/common/toast' import { useQueryClient } from '@tanstack/react-query' -import { playAlarm } from '@/common/playAlarm' +import { playAlarm } from '@/common/play-alarm' import { useAuth } from '@/context/auth.context' export function useWallpaper(fetchedWallpapers: Wallpaper[] | undefined) { diff --git a/src/layouts/setting/tabs/wallpapers/tab/gallery/components/category/category-view.tsx b/src/layouts/setting/tabs/wallpapers/tab/gallery/components/category/category-view.tsx index 59820318..fa3d7d81 100644 --- a/src/layouts/setting/tabs/wallpapers/tab/gallery/components/category/category-view.tsx +++ b/src/layouts/setting/tabs/wallpapers/tab/gallery/components/category/category-view.tsx @@ -1,6 +1,6 @@ import type { Category } from '@/common/wallpaper.interface' import { Pagination } from '@/components/pagination' -import { useGetWallpaperCategoriesPaginated } from '@/services/hooks/wallpapers/getWallpaperCategories.hook' +import { useGetWallpaperCategoriesPaginated } from '@/services/hooks/wallpapers/get-wallpaper-categories.hook' import { CategoryFolder } from './category-folder.component' interface CategoryGridProps { diff --git a/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-item.tsx b/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-item.tsx index 1b593801..cec2a8a1 100644 --- a/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-item.tsx +++ b/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-item.tsx @@ -3,7 +3,7 @@ import type { Wallpaper } from '@/common/wallpaper.interface' import { UserCoin } from '@/layouts/setting/tabs/account/components/user-coin' import { CoinPurchaseModal } from '@/layouts/setting/tabs/wallpapers/components/coin-purchase-modal' import { useLazyLoad } from '../../../../hooks/use-lazy-load' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { HoverPlayVideo } from '../hover-play-video' import { Icon } from '@/src/icons' import { UI } from '@/context/appearance.context' diff --git a/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-view.tsx b/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-view.tsx index 0431001f..ebd78092 100644 --- a/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-view.tsx +++ b/src/layouts/setting/tabs/wallpapers/tab/gallery/components/wallpaper-item/wallpaper-view.tsx @@ -1,12 +1,12 @@ import { useEffect } from 'react' -import { preloadImages } from '@/common/utils/preloadImages' +import { preloadImages } from '@/common/utils/preload-images' import type { Category, Wallpaper } from '@/common/wallpaper.interface' import { FolderPath } from '@/layouts/bookmark/components/folder-path' -import { useGetWallpapersInfiniteQuery } from '@/services/hooks/wallpapers/getWallpaperCategories.hook' +import { useGetWallpapersInfiniteQuery } from '@/services/hooks/wallpapers/get-wallpaper-categories.hook' import { useWallpaperContext } from '@/context/wallpaper.context' -import { useInfiniteScroll } from '@/hooks/useInfiniteScroll' +import { useInfiniteScroll } from '@/hooks/use-infinite-scroll' import { WallpaperItem } from './wallpaper-item' -import { usePreviewHandler } from '@/hooks/usePreviewHandler' +import { usePreviewHandler } from '@/hooks/use-preview-handler' import { MarketItemType } from '@/services/hooks/market/market.interface' import Analytics from '@/analytics' diff --git a/src/layouts/simplify/widgets/arz-simplify.tsx b/src/layouts/simplify/widgets/arz-simplify.tsx index 75ff8b88..745fea46 100644 --- a/src/layouts/simplify/widgets/arz-simplify.tsx +++ b/src/layouts/simplify/widgets/arz-simplify.tsx @@ -1,4 +1,4 @@ -import { WigiArzLayout } from '@/layouts/widgets/wigiArz/wigi_arz.layout' +import { WigiArzLayout } from '@/layouts/widgets/wigi-arz/wigi_arz.layout' export function ArzSimplify() { return ( diff --git a/src/layouts/simplify/wigipad-simplify.tsx b/src/layouts/simplify/wigipad-simplify.tsx index 94683e8e..283ea68d 100644 --- a/src/layouts/simplify/wigipad-simplify.tsx +++ b/src/layouts/simplify/wigipad-simplify.tsx @@ -1,9 +1,9 @@ import { WidgetContainer } from '../widgets/widget-container' import { NotificationCenter } from '../widgetify-card/notification-center/notification-center' -import { useGetNotifications } from '@/services/hooks/extension/getNotifications.hook' -import { RenderWigiPadItem } from '../widgets/wigiPad/info-panel/components/ann-item' -import { DateDisplay } from '../widgets/wigiPad/date-display/date.display' -import { ClockDisplay } from '../widgets/wigiPad/clock-display/clock-display' +import { useGetNotifications } from '@/services/hooks/extension/get-notifications.hook' +import { RenderWigiPadItem } from '../widgets/wigi-pad/info-panel/components/ann-item' +import { DateDisplay } from '../widgets/wigi-pad/date-display/date.display' +import { ClockDisplay } from '../widgets/wigi-pad/clock-display/clock-display' export function SimplifyYadkar() { const { data: fetchedData } = useGetNotifications() diff --git a/src/layouts/widgetify-card/daily-mood.tsx b/src/layouts/widgetify-card/daily-mood.tsx index a9a20ac1..e2b77cf9 100644 --- a/src/layouts/widgetify-card/daily-mood.tsx +++ b/src/layouts/widgetify-card/daily-mood.tsx @@ -2,14 +2,14 @@ import Analytics from '@/analytics' import { moodOptions } from '@/common/constant/moods' import { autoFormatErrorToast, showToast } from '@/common/toast' import { callEvent } from '@/common/utils/call-event' -import { GetUserFirstName } from '@/common/utils/getFirstname' +import { GetUserFirstName } from '@/common/utils/get-firstname' import { useAuth } from '@/context/auth.context' import { useDate } from '@/context/date.context' import { safeAwait } from '@/services/api' import { type MoodType, useUpsertMoodLog, -} from '@/services/hooks/moodLog/upsert-moodLog.hook' +} from '@/services/hooks/mood-log/upsert-mood-log.hook' import { Icon } from '@/src/icons' import { useIsMutating, useQueryClient } from '@tanstack/react-query' import type { AxiosError } from 'axios' diff --git a/src/layouts/widgetify-card/notification-center/components/notification-item.tsx b/src/layouts/widgetify-card/notification-center/components/notification-item.tsx index 6d2dd856..73f87b81 100644 --- a/src/layouts/widgetify-card/notification-center/components/notification-item.tsx +++ b/src/layouts/widgetify-card/notification-center/components/notification-item.tsx @@ -1,7 +1,7 @@ import { callEvent } from '@/common/utils/call-event' import { useState } from 'react' import Analytics from '@/analytics' -import type { NotificationItem } from '@/services/hooks/extension/getNotifications.hook' +import type { NotificationItem } from '@/services/hooks/extension/get-notifications.hook' import { Icon } from '@/src/icons' interface NotificationItemProps { diff --git a/src/layouts/widgetify-card/notification-center/notification-center.tsx b/src/layouts/widgetify-card/notification-center/notification-center.tsx index a63500a6..5d6b8972 100644 --- a/src/layouts/widgetify-card/notification-center/notification-center.tsx +++ b/src/layouts/widgetify-card/notification-center/notification-center.tsx @@ -6,7 +6,7 @@ import { type NotificationItem, useGetNotifications, useNotifyAsSeen, -} from '@/services/hooks/extension/getNotifications.hook' +} from '@/services/hooks/extension/get-notifications.hook' import Analytics from '@/analytics' import { useAuth } from '@/context/auth.context' import { DailyMoodNotification } from '../daily-mood' diff --git a/src/layouts/widgets-settings/widget-settings-modal.tsx b/src/layouts/widgets-settings/widget-settings-modal.tsx index 833e13a7..1ab3d0e9 100644 --- a/src/layouts/widgets-settings/widget-settings-modal.tsx +++ b/src/layouts/widgets-settings/widget-settings-modal.tsx @@ -5,8 +5,8 @@ import { type TabItem, TabManager } from '@/components/tab-manager' import { PetSettings } from '../widgetify-card/pets/setting/pet-setting' import { RssFeedSetting } from '../widgets/news/rss-feed-setting' import { WeatherSetting } from '../widgets/weather/weather-setting' -import { WigiArzSetting } from '../widgets/wigiArz/wigiArz-setting' -import { WigiPadSetting } from '../widgets/wigiPad/wigiPad-setting' +import { WigiArzSetting } from '../widgets/wigi-arz/wigi-arz-setting' +import { WigiPadSetting } from '../widgets/wigi-pad/wigi-pad-setting' import { WidgetTabKeys } from './constant/tab-keys' import { ManageWidgets } from './manage-widgets/manage-widgets' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/calendar/components/calendar-grid.tsx b/src/layouts/widgets/calendar/components/calendar-grid.tsx index 2edc774a..3b60e216 100644 --- a/src/layouts/widgets/calendar/components/calendar-grid.tsx +++ b/src/layouts/widgets/calendar/components/calendar-grid.tsx @@ -1,13 +1,13 @@ import { useAuth } from '@/context/auth.context' import { useGeneralSetting } from '@/context/general-setting.context' -import { useGetEvents } from '@/services/hooks/date/getEvents.hook' +import { useGetEvents } from '@/services/hooks/date/get-events.hook' import type React from 'react' import { useState } from 'react' import { type WidgetifyDate, formatDateStr } from '../utils' import { DayItem } from './day/day' -import { ClickableTooltip } from '@/components/clickableTooltip' -import { CalendarDayDetails } from './day/toolTipContent' -import { useGetCalendarData } from '@/services/hooks/calendar/get-calendarData.hook' +import { ClickableTooltip } from '@/components/clickable-tooltip' +import { CalendarDayDetails } from './day/tool-tip-content' +import { useGetCalendarData } from '@/services/hooks/calendar/get-calendar-data.hook' const WEEKDAYS = ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'] diff --git a/src/layouts/widgets/calendar/components/day/day.tsx b/src/layouts/widgets/calendar/components/day/day.tsx index d6ab9f6a..0483d410 100644 --- a/src/layouts/widgets/calendar/components/day/day.tsx +++ b/src/layouts/widgets/calendar/components/day/day.tsx @@ -1,9 +1,9 @@ import jalaliMoment from 'jalali-moment' import { useRef } from 'react' import Analytics from '@/analytics' -import type { FetchedAllEvents } from '@/services/hooks/date/getEvents.hook' -import type { GoogleCalendarEvent } from '@/services/hooks/date/getGoogleCalendarEvents.hook' -import type { MoodEntry } from '@/services/hooks/moodLog/get-moods.hook' +import type { FetchedAllEvents } from '@/services/hooks/date/get-events.hook' +import type { GoogleCalendarEvent } from '@/services/hooks/date/get-google-calendar-events.hook' +import type { MoodEntry } from '@/services/hooks/mood-log/get-moods.hook' import { formatDateStr, getCurrentDate, diff --git a/src/layouts/widgets/calendar/components/day/toolTipContent.tsx b/src/layouts/widgets/calendar/components/day/tool-tip-content.tsx similarity index 97% rename from src/layouts/widgets/calendar/components/day/toolTipContent.tsx rename to src/layouts/widgets/calendar/components/day/tool-tip-content.tsx index f17de791..1f176fd2 100644 --- a/src/layouts/widgets/calendar/components/day/toolTipContent.tsx +++ b/src/layouts/widgets/calendar/components/day/tool-tip-content.tsx @@ -1,5 +1,5 @@ import { useState } from 'react' -import type { FetchedAllEvents } from '@/services/hooks/date/getEvents.hook' +import type { FetchedAllEvents } from '@/services/hooks/date/get-events.hook' import { getGregorianEvents, getHijriEvents, @@ -12,12 +12,12 @@ import { useAuth } from '@/context/auth.context' import { type MoodType, useUpsertMoodLog, -} from '@/services/hooks/moodLog/upsert-moodLog.hook' +} from '@/services/hooks/mood-log/upsert-mood-log.hook' import { safeAwait } from '@/services/api' import type { AxiosError } from 'axios' import { useIsMutating } from '@tanstack/react-query' import { autoFormatErrorToast, showToast } from '@/common/toast' -import type { MoodEntry } from '@/services/hooks/moodLog/get-moods.hook' +import type { MoodEntry } from '@/services/hooks/mood-log/get-moods.hook' import Analytics from '@/analytics' import { moodOptions } from '@/common/constant/moods' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/calendar/components/google-calendar/google-calendar-view.tsx b/src/layouts/widgets/calendar/components/google-calendar/google-calendar-view.tsx index 7b286494..506c002e 100644 --- a/src/layouts/widgets/calendar/components/google-calendar/google-calendar-view.tsx +++ b/src/layouts/widgets/calendar/components/google-calendar/google-calendar-view.tsx @@ -1,7 +1,7 @@ import type React from 'react' import { useState, useEffect } from 'react' import Analytics from '@/analytics' -import { useGetGoogleCalendarEvents } from '@/services/hooks/date/getGoogleCalendarEvents.hook' +import { useGetGoogleCalendarEvents } from '@/services/hooks/date/get-google-calendar-events.hook' import { useDate } from '@/context/date.context' import { CalendarEvent } from './google-event.item' import { useAuth } from '@/context/auth.context' diff --git a/src/layouts/widgets/calendar/components/google-calendar/google-event.item.tsx b/src/layouts/widgets/calendar/components/google-calendar/google-event.item.tsx index 70fbb477..fa543002 100644 --- a/src/layouts/widgets/calendar/components/google-calendar/google-event.item.tsx +++ b/src/layouts/widgets/calendar/components/google-calendar/google-event.item.tsx @@ -1,4 +1,4 @@ -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { Icon } from '@/src/icons' interface CalendarEventProps { diff --git a/src/layouts/widgets/calendar/utils.ts b/src/layouts/widgets/calendar/utils.ts index f1074378..4b34b51a 100644 --- a/src/layouts/widgets/calendar/utils.ts +++ b/src/layouts/widgets/calendar/utils.ts @@ -1,8 +1,8 @@ import jalaliMoment from 'jalali-moment' import hijriMoment from 'moment-hijri' import momentTz from 'moment-timezone' -import type { FetchedAllEvents, FetchedEvent } from '@/services/hooks/date/getEvents.hook' -import type { GoogleCalendarEvent } from '@/services/hooks/date/getGoogleCalendarEvents.hook' +import type { FetchedAllEvents, FetchedEvent } from '@/services/hooks/date/get-events.hook' +import type { GoogleCalendarEvent } from '@/services/hooks/date/get-google-calendar-events.hook' export const formatDateStr = (date: jalaliMoment.Moment) => { return `${date.jYear()}-${(date.jMonth() + 1).toString().padStart(2, '0')}-${date.jDate().toString().padStart(2, '0')}` } diff --git a/src/layouts/widgets/comboWidget/combo-widget.layout.tsx b/src/layouts/widgets/combo-widget/combo-widget.layout.tsx similarity index 97% rename from src/layouts/widgets/comboWidget/combo-widget.layout.tsx rename to src/layouts/widgets/combo-widget/combo-widget.layout.tsx index 4056d3f0..a27f3be0 100644 --- a/src/layouts/widgets/comboWidget/combo-widget.layout.tsx +++ b/src/layouts/widgets/combo-widget/combo-widget.layout.tsx @@ -6,7 +6,7 @@ import { Button } from '@/components/button/button' import { WidgetTabKeys } from '@/layouts/widgets-settings/constant/tab-keys' import { NewsLayout } from '../news/news.layout' import { WidgetContainer } from '../widget-container' -import { WigiArzLayout } from '../wigiArz/wigi_arz.layout' +import { WigiArzLayout } from '../wigi-arz/wigi_arz.layout' import { TabNavigation } from '@/components/tab-navigation' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/habit/components/habit-form.modal.tsx b/src/layouts/widgets/habit/components/habit-form.modal.tsx index 0a2b488d..16d70bbc 100644 --- a/src/layouts/widgets/habit/components/habit-form.modal.tsx +++ b/src/layouts/widgets/habit/components/habit-form.modal.tsx @@ -23,7 +23,7 @@ import { } from '@/services/hooks/habit/habit.interface' import { useUpdateHabit } from '@/services/hooks/habit/update-habit.hook' import { translateError } from '@/common/utils/translate-error' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import type { HabitIcon } from '@/services/hooks/habit/get-habits.hook' import { Motion as motion, Presence } from '@/common/motion' diff --git a/src/layouts/widgets/habit/components/item/habit.item.tsx b/src/layouts/widgets/habit/components/item/habit.item.tsx index 08bca9f9..9dc94ec9 100644 --- a/src/layouts/widgets/habit/components/item/habit.item.tsx +++ b/src/layouts/widgets/habit/components/item/habit.item.tsx @@ -1,7 +1,7 @@ import Analytics from '@/analytics' import { getContrastingTextColor } from '@/common/color' import { HABIT_UNIT_STEP } from '@/common/constant/habit-options' -import { playAlarm } from '@/common/playAlarm' +import { playAlarm } from '@/common/play-alarm' import { showToast } from '@/common/toast' import type { WidgetifyDate } from '@/layouts/widgets/calendar/utils' import { safeAwait } from '@/services/api' diff --git a/src/layouts/widgets/habit/habits.layout.tsx b/src/layouts/widgets/habit/habits.layout.tsx index c1d0a4e0..75890774 100644 --- a/src/layouts/widgets/habit/habits.layout.tsx +++ b/src/layouts/widgets/habit/habits.layout.tsx @@ -3,7 +3,7 @@ import Analytics from '@/analytics' import { autoFormatErrorToast, showToast } from '@/common/toast' import { Button } from '@/components/button/button' import { ConfirmationModal } from '@/components/modal/confirmation-modal' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useAuth } from '@/context/auth.context' import { useDate } from '@/context/date.context' import { useGeneralSetting } from '@/context/general-setting.context' diff --git a/src/layouts/widgets/network/components/network-ip-card.tsx b/src/layouts/widgets/network/components/network-ip-card.tsx index 9ad6e0d4..0d926db8 100644 --- a/src/layouts/widgets/network/components/network-ip-card.tsx +++ b/src/layouts/widgets/network/components/network-ip-card.tsx @@ -1,4 +1,4 @@ -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { showToast } from '@/common/toast' interface NetworkIPCardProps { diff --git a/src/layouts/widgets/network/components/network-ping-card.tsx b/src/layouts/widgets/network/components/network-ping-card.tsx index b4f6443e..cc76c4e6 100644 --- a/src/layouts/widgets/network/components/network-ping-card.tsx +++ b/src/layouts/widgets/network/components/network-ping-card.tsx @@ -5,7 +5,7 @@ import { MdOutlineSignalCellularAlt2Bar, MdRouter, } from 'react-icons/md' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' interface NetworkPingCardProps { ping: number | null diff --git a/src/layouts/widgets/network/network.layout.tsx b/src/layouts/widgets/network/network.layout.tsx index c9ba0456..5ba48237 100644 --- a/src/layouts/widgets/network/network.layout.tsx +++ b/src/layouts/widgets/network/network.layout.tsx @@ -4,7 +4,7 @@ import Analytics from '@/analytics' import { RequireAuth } from '@/components/auth/require-auth' import { AvatarComponent } from '@/components/avatar.component' import { Button } from '@/components/button/button' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useAuth } from '@/context/auth.context' import { useGeneralSetting } from '@/context/general-setting.context' import { getMainClient, safeAwait } from '@/services/api' diff --git a/src/layouts/widgets/news/rss-feed.tsx b/src/layouts/widgets/news/rss-feed.tsx index 44fa026a..361e5cee 100644 --- a/src/layouts/widgets/news/rss-feed.tsx +++ b/src/layouts/widgets/news/rss-feed.tsx @@ -1,5 +1,5 @@ import Analytics from '@/analytics' -import { useGetRss } from '../../../services/hooks/news/getNews.hook' +import { useGetRss } from '../../../services/hooks/news/get-news.hook' import { NewsItem } from './components/news-item' interface Prop { diff --git a/src/layouts/widgets/news/rss.interface.ts b/src/layouts/widgets/news/rss.interface.ts index d46490af..d9898608 100644 --- a/src/layouts/widgets/news/rss.interface.ts +++ b/src/layouts/widgets/news/rss.interface.ts @@ -1,4 +1,4 @@ -import type { FetchedRssItem } from '@/services/hooks/news/getNews.hook' +import type { FetchedRssItem } from '@/services/hooks/news/get-news.hook' export interface RssFeed { id: string diff --git a/src/layouts/widgets/notes/components/note-editor.tsx b/src/layouts/widgets/notes/components/note-editor.tsx index ffc61595..250fd55b 100644 --- a/src/layouts/widgets/notes/components/note-editor.tsx +++ b/src/layouts/widgets/notes/components/note-editor.tsx @@ -2,7 +2,7 @@ import { PRIORITY_BG_COLORS, PRIORITY_OPTIONS } from '@/common/constant/priority import { Button } from '@/components/button/button' import { IconLoading } from '@/components/loading/icon-loading' import { TextInput } from '@/components/text-input' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useNotes } from '@/context/notes.context' import type { FetchedNote } from '@/services/hooks/note/note.interface' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/notes/components/note-navigation.tsx b/src/layouts/widgets/notes/components/note-navigation.tsx index 0f9e4807..d5cd1500 100644 --- a/src/layouts/widgets/notes/components/note-navigation.tsx +++ b/src/layouts/widgets/notes/components/note-navigation.tsx @@ -1,6 +1,6 @@ import { useMemo } from 'react' import { Button } from '@/components/button/button' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useNotes } from '@/context/notes.context' import { useAuth } from '@/context/auth.context' import Analytics from '@/analytics' diff --git a/src/layouts/widgets/todos/components/friend-item.todo.tsx b/src/layouts/widgets/todos/components/friend-item.todo.tsx index c4a3c242..355a7684 100644 --- a/src/layouts/widgets/todos/components/friend-item.todo.tsx +++ b/src/layouts/widgets/todos/components/friend-item.todo.tsx @@ -1,5 +1,5 @@ import { AvatarComponent } from '@/components/avatar.component' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { Icon } from '@/src/icons' interface UserItemProp { diff --git a/src/layouts/widgets/todos/components/select-friends.todo.tsx b/src/layouts/widgets/todos/components/select-friends.todo.tsx index 33a6b323..0f54f508 100644 --- a/src/layouts/widgets/todos/components/select-friends.todo.tsx +++ b/src/layouts/widgets/todos/components/select-friends.todo.tsx @@ -2,7 +2,7 @@ import { callEvent } from '@/common/utils/call-event' import { Button } from '@/components/button/button' import { Dropdown } from '@/components/dropdown' import { SelectFriendLayout } from '@/layouts/friends/components/select-friend.layout' -import type { Friend } from '@/services/hooks/friends/friendService.hook' +import type { Friend } from '@/services/hooks/friends/friend-service.hook' import { Icon } from '@/src/icons' interface Prop { diff --git a/src/layouts/widgets/todos/expandable-todo-input.tsx b/src/layouts/widgets/todos/expandable-todo-input.tsx index c6364a78..73da3557 100644 --- a/src/layouts/widgets/todos/expandable-todo-input.tsx +++ b/src/layouts/widgets/todos/expandable-todo-input.tsx @@ -4,7 +4,7 @@ import { useEffect, useRef, useState, useCallback } from 'react' import { Button } from '@/components/button/button' import { TextInput } from '@/components/text-input' import { IconLoading } from '@/components/loading/icon-loading' -import { ClickableTooltip } from '@/components/clickableTooltip' +import { ClickableTooltip } from '@/components/clickable-tooltip' import jalaliMoment from 'jalali-moment' import Analytics from '@/analytics' import { Chip } from '@/components/chip.component' @@ -18,7 +18,7 @@ import { type TodoCreationPayload, useAddTodo } from '@/services/hooks/todo/add- import { useUpdateTodo } from '@/services/hooks/todo/update-todo.hook' import { translateError } from '@/common/utils/translate-error' import { showToast } from '@/common/toast' -import type { Friend } from '@/services/hooks/friends/friendService.hook' +import type { Friend } from '@/services/hooks/friends/friend-service.hook' import { TodoSelectFriends } from './components/select-friends.todo' import { callEvent } from '@/common/utils/call-event' import { twMerge } from 'tailwind-merge' diff --git a/src/layouts/widgets/todos/todo.item.tsx b/src/layouts/widgets/todos/todo.item.tsx index aa11fe72..0891358b 100644 --- a/src/layouts/widgets/todos/todo.item.tsx +++ b/src/layouts/widgets/todos/todo.item.tsx @@ -13,8 +13,8 @@ import Analytics from '@/analytics' import { IconLoading } from '@/components/loading/icon-loading' import { parseTodoDate } from './tools/parse-date' import { useUpdateTodo } from '@/services/hooks/todo/update-todo.hook' -import { playAlarm } from '@/common/playAlarm' -import Tooltip from '@/components/toolTip' +import { playAlarm } from '@/common/play-alarm' +import Tooltip from '@/components/tool-tip' import { TodoFriends } from './components/friends.todo' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/todos/todos.tsx b/src/layouts/widgets/todos/todos.tsx index 54c392b3..e1992510 100644 --- a/src/layouts/widgets/todos/todos.tsx +++ b/src/layouts/widgets/todos/todos.tsx @@ -9,7 +9,7 @@ import type { Todo } from '@/services/hooks/todo/todo.interface' import { getFromStorage, setToStorage } from '@/common/storage' import { useGeneralSetting } from '@/context/general-setting.context' import { Button } from '@/components/button/button' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useGetTodos } from '@/services/hooks/todo/get-todos.hook' import { TodoItem } from './todo.item' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/tools/currency/currency-converter.tsx b/src/layouts/widgets/tools/currency/currency-converter.tsx index 4d3e6235..deef28c8 100644 --- a/src/layouts/widgets/tools/currency/currency-converter.tsx +++ b/src/layouts/widgets/tools/currency/currency-converter.tsx @@ -3,8 +3,8 @@ import type React from 'react' import { useEffect, useState } from 'react' import { SelectBox } from '@/components/selectbox/selectbox' import { TextInput } from '@/components/text-input' -import { useGetCurrencyByCode } from '@/services/hooks/currency/getCurrencyByCode.hook' -import { useGetSupportCurrencies } from '@/services/hooks/currency/getSupportCurrencies.hook' +import { useGetCurrencyByCode } from '@/services/hooks/currency/get-currency-by-code.hook' +import { useGetSupportCurrencies } from '@/services/hooks/currency/get-support-currencies.hook' import { Icon } from '@/src/icons' export const CurrencyConverter: React.FC = () => { diff --git a/src/layouts/widgets/tools/events/utils.ts b/src/layouts/widgets/tools/events/utils.ts index a1a1c474..2d06ff8c 100644 --- a/src/layouts/widgets/tools/events/utils.ts +++ b/src/layouts/widgets/tools/events/utils.ts @@ -1,5 +1,5 @@ -import type { FetchedAllEvents } from '@/services/hooks/date/getEvents.hook' -import type { GoogleCalendarEvent } from '@/services/hooks/date/getGoogleCalendarEvents.hook' +import type { FetchedAllEvents } from '@/services/hooks/date/get-events.hook' +import type { GoogleCalendarEvent } from '@/services/hooks/date/get-google-calendar-events.hook' import { type WidgetifyDate, filterGoogleEventsByDate, diff --git a/src/layouts/widgets/tools/pomodoro/components/requestNotification-modal.tsx b/src/layouts/widgets/tools/pomodoro/components/request-notification-modal.tsx similarity index 100% rename from src/layouts/widgets/tools/pomodoro/components/requestNotification-modal.tsx rename to src/layouts/widgets/tools/pomodoro/components/request-notification-modal.tsx diff --git a/src/layouts/widgets/tools/pomodoro/pomodoro-timer.tsx b/src/layouts/widgets/tools/pomodoro/pomodoro-timer.tsx index 209aac4a..683accc4 100644 --- a/src/layouts/widgets/tools/pomodoro/pomodoro-timer.tsx +++ b/src/layouts/widgets/tools/pomodoro/pomodoro-timer.tsx @@ -3,15 +3,15 @@ import { useEffect, useMemo, useState } from 'react' import Analytics from '@/analytics' import { getFromStorage, removeFromStorage, setToStorage } from '@/common/storage' import { SelectBox } from '@/components/selectbox/selectbox' -import Tooltip from '@/components/toolTip' +import Tooltip from '@/components/tool-tip' import { useAuth } from '@/context/auth.context' -import { useCreatePomodoroSession } from '@/services/hooks/pomodoro/createSession.hook' -import { TopUsersType } from '@/services/hooks/pomodoro/getTopUsers.hook' +import { useCreatePomodoroSession } from '@/services/hooks/pomodoro/create-session.hook' +import { TopUsersType } from '@/services/hooks/pomodoro/get-top-users.hook' import { ControlButton } from './components/control-button' -import { RequestNotificationModal } from './components/requestNotification-modal' +import { RequestNotificationModal } from './components/request-notification-modal' import { PomodoroSettingsPanel } from './components/settings-panel' import { TimerDisplay } from './components/timer-display' -import { TopUsersTab } from './topUsers/top-users' +import { TopUsersTab } from './top-users/top-users' import type { PomodoroSettings, TimerMode } from './types' import { TabNavigation } from '@/components/tab-navigation' import { Button } from '@/components/button/button' diff --git a/src/layouts/widgets/tools/pomodoro/topUsers/top-user-item.tsx b/src/layouts/widgets/tools/pomodoro/top-users/top-user-item.tsx similarity index 96% rename from src/layouts/widgets/tools/pomodoro/topUsers/top-user-item.tsx rename to src/layouts/widgets/tools/pomodoro/top-users/top-user-item.tsx index 4eda4bc9..085a54f3 100644 --- a/src/layouts/widgets/tools/pomodoro/topUsers/top-user-item.tsx +++ b/src/layouts/widgets/tools/pomodoro/top-users/top-user-item.tsx @@ -1,6 +1,6 @@ import { AvatarComponent } from '@/components/avatar.component' import { UserCardPortal } from '@/components/user/user-card-portal' -import type { TopUser } from '@/services/hooks/pomodoro/getTopUsers.hook' +import type { TopUser } from '@/services/hooks/pomodoro/get-top-users.hook' import { Icon } from '@/src/icons' interface TopUserItemProps { diff --git a/src/layouts/widgets/tools/pomodoro/topUsers/top-users.tsx b/src/layouts/widgets/tools/pomodoro/top-users/top-users.tsx similarity index 95% rename from src/layouts/widgets/tools/pomodoro/topUsers/top-users.tsx rename to src/layouts/widgets/tools/pomodoro/top-users/top-users.tsx index 121f71e7..6e4ae547 100644 --- a/src/layouts/widgets/tools/pomodoro/topUsers/top-users.tsx +++ b/src/layouts/widgets/tools/pomodoro/top-users/top-users.tsx @@ -2,7 +2,7 @@ import type React from 'react' import { type TopUsersType, useGetTopUsers, -} from '@/services/hooks/pomodoro/getTopUsers.hook' +} from '@/services/hooks/pomodoro/get-top-users.hook' import { TopUserItem } from './top-user-item' interface TopUsersTabProps { diff --git a/src/layouts/widgets/tools/religious/religious-time.tsx b/src/layouts/widgets/tools/religious/religious-time.tsx index 71319a0e..dd100d72 100644 --- a/src/layouts/widgets/tools/religious/religious-time.tsx +++ b/src/layouts/widgets/tools/religious/religious-time.tsx @@ -1,6 +1,6 @@ import { useEffect } from 'react' import { FiClock, FiMoon, FiSun, FiSunrise, FiSunset } from 'react-icons/fi' -import { useReligiousTime } from '@/services/hooks/date/getReligiousTime.hook' +import { useReligiousTime } from '@/services/hooks/date/get-religious-time.hook' import { useAuth } from '@/context/auth.context' const DAILY_LIST = [ diff --git a/src/layouts/widgets/weather/current/current-box.weather.tsx b/src/layouts/widgets/weather/current/current-box.weather.tsx index c5d99cf7..f998281e 100644 --- a/src/layouts/widgets/weather/current/current-box.weather.tsx +++ b/src/layouts/widgets/weather/current/current-box.weather.tsx @@ -1,6 +1,6 @@ import type { FetchedWeather } from '@/layouts/widgets/weather/weather.interface' -import { unitsFlag } from '../unitSymbols' -import Tooltip from '@/components/toolTip' +import { unitsFlag } from '../unit-symbols' +import Tooltip from '@/components/tool-tip' import { Icon } from '@/src/icons' interface CurrentWeatherBoxProps { diff --git a/src/layouts/widgets/weather/forecast/forecast.tsx b/src/layouts/widgets/weather/forecast/forecast.tsx index 172f38b9..0b0f760e 100644 --- a/src/layouts/widgets/weather/forecast/forecast.tsx +++ b/src/layouts/widgets/weather/forecast/forecast.tsx @@ -1,6 +1,6 @@ import type { FetchedWeather } from '@/layouts/widgets/weather/weather.interface' -import { unitsFlag } from '../unitSymbols' +import { unitsFlag } from '../unit-symbols' import moment from 'jalali-moment' interface WeatherLayoutProps { diff --git a/src/layouts/widgets/weather/unitSymbols.ts b/src/layouts/widgets/weather/unit-symbols.ts similarity index 100% rename from src/layouts/widgets/weather/unitSymbols.ts rename to src/layouts/widgets/weather/unit-symbols.ts diff --git a/src/layouts/widgets/weather/weather.layout.tsx b/src/layouts/widgets/weather/weather.layout.tsx index 7d1d28be..b0594db3 100644 --- a/src/layouts/widgets/weather/weather.layout.tsx +++ b/src/layouts/widgets/weather/weather.layout.tsx @@ -5,7 +5,7 @@ import type { WeatherSettings } from '@/layouts/widgets/weather/weather.interfac import { WidgetContainer } from '../widget-container' import { Forecast } from './forecast/forecast' import { CurrentWeatherBox } from './current/current-box.weather' -import { useGetWeatherByLatLon } from '@/services/hooks/weather/getWeatherByLatLon' +import { useGetWeatherByLatLon } from '@/services/hooks/weather/get-weather-by-lat-lon' export function WeatherLayout() { const [weatherSettings, setWeatherSettings] = useState(null) diff --git a/src/layouts/widgets/wigiArz/components/arz-header.tsx b/src/layouts/widgets/wigi-arz/components/arz-header.tsx similarity index 100% rename from src/layouts/widgets/wigiArz/components/arz-header.tsx rename to src/layouts/widgets/wigi-arz/components/arz-header.tsx diff --git a/src/layouts/widgets/wigiArz/components/currency-box.tsx b/src/layouts/widgets/wigi-arz/components/currency-box.tsx similarity index 96% rename from src/layouts/widgets/wigiArz/components/currency-box.tsx rename to src/layouts/widgets/wigi-arz/components/currency-box.tsx index 29c73333..b6a2043d 100644 --- a/src/layouts/widgets/wigiArz/components/currency-box.tsx +++ b/src/layouts/widgets/wigi-arz/components/currency-box.tsx @@ -3,12 +3,12 @@ import toast from 'react-hot-toast' import Analytics from '@/analytics' import { getFromStorage, setToStorage } from '@/common/storage' import { CurrencyColorMode } from '@/context/currency.context' -import { useGetImageMainColor } from '@/hooks/useGetImageMainColor' +import { useGetImageMainColor } from '@/hooks/use-get-image-main-color' import { type FetchedCurrency, useGetCurrencyByCode, -} from '@/services/hooks/currency/getCurrencyByCode.hook' -import { GetPrice } from '../utils/getPrice' +} from '@/services/hooks/currency/get-currency-by-code.hook' +import { GetPrice } from '../utils/get-price' import { CurrencyModalComponent } from './currency-modal' import { showToast } from '@/common/toast' import { Icon } from '@/src/icons' diff --git a/src/layouts/widgets/wigiArz/components/currency-chart.tsx b/src/layouts/widgets/wigi-arz/components/currency-chart.tsx similarity index 98% rename from src/layouts/widgets/wigiArz/components/currency-chart.tsx rename to src/layouts/widgets/wigi-arz/components/currency-chart.tsx index 69eef1ab..dc35c498 100644 --- a/src/layouts/widgets/wigiArz/components/currency-chart.tsx +++ b/src/layouts/widgets/wigi-arz/components/currency-chart.tsx @@ -1,4 +1,4 @@ -import type { PriceHistory } from '@/services/hooks/currency/getCurrencyByCode.hook' +import type { PriceHistory } from '@/services/hooks/currency/get-currency-by-code.hook' import { CategoryScale, type ChartData, diff --git a/src/layouts/widgets/wigiArz/components/currency-modal.tsx b/src/layouts/widgets/wigi-arz/components/currency-modal.tsx similarity index 99% rename from src/layouts/widgets/wigiArz/components/currency-modal.tsx rename to src/layouts/widgets/wigi-arz/components/currency-modal.tsx index 694b6bb1..a7bc068a 100644 --- a/src/layouts/widgets/wigiArz/components/currency-modal.tsx +++ b/src/layouts/widgets/wigi-arz/components/currency-modal.tsx @@ -3,7 +3,7 @@ import Analytics from '@/analytics' import Modal from '@/components/modal' import { TextInput } from '@/components/text-input' import { CurrencyColorMode } from '@/context/currency.context' -import { GetPrice } from '../utils/getPrice' +import { GetPrice } from '../utils/get-price' import { Icon } from '@/src/icons' interface CurrencyModalComponentProps { diff --git a/src/layouts/widgets/wigiArz/components/sortable-currency-box.tsx b/src/layouts/widgets/wigi-arz/components/sortable-currency-box.tsx similarity index 100% rename from src/layouts/widgets/wigiArz/components/sortable-currency-box.tsx rename to src/layouts/widgets/wigi-arz/components/sortable-currency-box.tsx diff --git a/src/layouts/widgets/wigiArz/utils/getPrice.tsx b/src/layouts/widgets/wigi-arz/utils/get-price.tsx similarity index 95% rename from src/layouts/widgets/wigiArz/utils/getPrice.tsx rename to src/layouts/widgets/wigi-arz/utils/get-price.tsx index 50547827..7cc73889 100644 --- a/src/layouts/widgets/wigiArz/utils/getPrice.tsx +++ b/src/layouts/widgets/wigi-arz/utils/get-price.tsx @@ -1,5 +1,5 @@ import type React from 'react' -import type { FetchedCurrency } from '@/services/hooks/currency/getCurrencyByCode.hook' +import type { FetchedCurrency } from '@/services/hooks/currency/get-currency-by-code.hook' export interface GetPriceResult { price: number label: string | React.ReactNode diff --git a/src/layouts/widgets/wigiArz/wigiArz-setting.interface.ts b/src/layouts/widgets/wigi-arz/wigi-arz-setting.interface.ts similarity index 100% rename from src/layouts/widgets/wigiArz/wigiArz-setting.interface.ts rename to src/layouts/widgets/wigi-arz/wigi-arz-setting.interface.ts diff --git a/src/layouts/widgets/wigiArz/wigiArz-setting.tsx b/src/layouts/widgets/wigi-arz/wigi-arz-setting.tsx similarity index 99% rename from src/layouts/widgets/wigiArz/wigiArz-setting.tsx rename to src/layouts/widgets/wigi-arz/wigi-arz-setting.tsx index f5f26f8d..cbbd0d33 100644 --- a/src/layouts/widgets/wigiArz/wigiArz-setting.tsx +++ b/src/layouts/widgets/wigi-arz/wigi-arz-setting.tsx @@ -9,8 +9,8 @@ import { TextInput } from '@/components/text-input' import { useAuth } from '@/context/auth.context' import { CurrencyColorMode } from '@/context/currency.context' import { WidgetSettingWrapper } from '@/layouts/widgets-settings/widget-settings-wrapper' -import { useGetSupportCurrencies } from '@/services/hooks/currency/getSupportCurrencies.hook' -import { CurrenciesType, type SupportedCurrencies } from './wigiArz-setting.interface' +import { useGetSupportCurrencies } from '@/services/hooks/currency/get-support-currencies.hook' +import { CurrenciesType, type SupportedCurrencies } from './wigi-arz-setting.interface' export function WigiArzSetting() { const { data: supportCurrencies } = useGetSupportCurrencies() diff --git a/src/layouts/widgets/wigiArz/wigi_arz.layout.tsx b/src/layouts/widgets/wigi-arz/wigi_arz.layout.tsx similarity index 100% rename from src/layouts/widgets/wigiArz/wigi_arz.layout.tsx rename to src/layouts/widgets/wigi-arz/wigi_arz.layout.tsx diff --git a/src/layouts/widgets/wigiPad/clock-display/clock-display.tsx b/src/layouts/widgets/wigi-pad/clock-display/clock-display.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/clock-display/clock-display.tsx rename to src/layouts/widgets/wigi-pad/clock-display/clock-display.tsx diff --git a/src/layouts/widgets/wigiPad/clock-display/clock-setting.interface.ts b/src/layouts/widgets/wigi-pad/clock-display/clock-setting.interface.ts similarity index 100% rename from src/layouts/widgets/wigiPad/clock-display/clock-setting.interface.ts rename to src/layouts/widgets/wigi-pad/clock-display/clock-setting.interface.ts diff --git a/src/layouts/widgets/wigiPad/clock-display/clock-setting.tsx b/src/layouts/widgets/wigi-pad/clock-display/clock-setting.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/clock-display/clock-setting.tsx rename to src/layouts/widgets/wigi-pad/clock-display/clock-setting.tsx diff --git a/src/layouts/widgets/wigiPad/clock-display/clocks/analog.clock.tsx b/src/layouts/widgets/wigi-pad/clock-display/clocks/analog.clock.tsx similarity index 99% rename from src/layouts/widgets/wigiPad/clock-display/clocks/analog.clock.tsx rename to src/layouts/widgets/wigi-pad/clock-display/clocks/analog.clock.tsx index 7e1fa08e..b0a56670 100644 --- a/src/layouts/widgets/wigiPad/clock-display/clocks/analog.clock.tsx +++ b/src/layouts/widgets/wigi-pad/clock-display/clocks/analog.clock.tsx @@ -1,4 +1,4 @@ -import type { FetchedTimezone } from '@/services/hooks/timezone/getTimezones.hook' +import type { FetchedTimezone } from '@/services/hooks/timezone/get-timezones.hook' import type { ClockSettings } from '../clock-setting.interface' import { useGeneralSetting } from '@/context/general-setting.context' diff --git a/src/layouts/widgets/wigiPad/clock-display/clocks/digital.clock.tsx b/src/layouts/widgets/wigi-pad/clock-display/clocks/digital.clock.tsx similarity index 99% rename from src/layouts/widgets/wigiPad/clock-display/clocks/digital.clock.tsx rename to src/layouts/widgets/wigi-pad/clock-display/clocks/digital.clock.tsx index f30e2513..5e269305 100644 --- a/src/layouts/widgets/wigiPad/clock-display/clocks/digital.clock.tsx +++ b/src/layouts/widgets/wigi-pad/clock-display/clocks/digital.clock.tsx @@ -1,4 +1,4 @@ -import type { FetchedTimezone } from '@/services/hooks/timezone/getTimezones.hook' +import type { FetchedTimezone } from '@/services/hooks/timezone/get-timezones.hook' import type { ClockSettings } from '../clock-setting.interface' import { useGeneralSetting } from '@/context/general-setting.context' diff --git a/src/layouts/widgets/wigiPad/clock-display/clocks/simple-digitalClock.tsx b/src/layouts/widgets/wigi-pad/clock-display/clocks/simple-digital-clock.tsx similarity index 98% rename from src/layouts/widgets/wigiPad/clock-display/clocks/simple-digitalClock.tsx rename to src/layouts/widgets/wigi-pad/clock-display/clocks/simple-digital-clock.tsx index 68dad6f5..0ea6863b 100644 --- a/src/layouts/widgets/wigiPad/clock-display/clocks/simple-digitalClock.tsx +++ b/src/layouts/widgets/wigi-pad/clock-display/clocks/simple-digital-clock.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react' -import type { FetchedTimezone } from '@/services/hooks/timezone/getTimezones.hook' +import type { FetchedTimezone } from '@/services/hooks/timezone/get-timezones.hook' interface SimpleDigitalClockProps { timezone: FetchedTimezone diff --git a/src/layouts/widgets/wigiPad/date-display/components/holiday.badge.tsx b/src/layouts/widgets/wigi-pad/date-display/components/holiday.badge.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/date-display/components/holiday.badge.tsx rename to src/layouts/widgets/wigi-pad/date-display/components/holiday.badge.tsx diff --git a/src/layouts/widgets/wigiPad/date-display/date-setting.interface.ts b/src/layouts/widgets/wigi-pad/date-display/date-setting.interface.ts similarity index 100% rename from src/layouts/widgets/wigiPad/date-display/date-setting.interface.ts rename to src/layouts/widgets/wigi-pad/date-display/date-setting.interface.ts diff --git a/src/layouts/widgets/wigiPad/date-display/date-setting.tsx b/src/layouts/widgets/wigi-pad/date-display/date-setting.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/date-display/date-setting.tsx rename to src/layouts/widgets/wigi-pad/date-display/date-setting.tsx diff --git a/src/layouts/widgets/wigiPad/date-display/date.display.tsx b/src/layouts/widgets/wigi-pad/date-display/date.display.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/date-display/date.display.tsx rename to src/layouts/widgets/wigi-pad/date-display/date.display.tsx diff --git a/src/layouts/widgets/wigiPad/date-display/dates/gregorian.date.tsx b/src/layouts/widgets/wigi-pad/date-display/dates/gregorian.date.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/date-display/dates/gregorian.date.tsx rename to src/layouts/widgets/wigi-pad/date-display/dates/gregorian.date.tsx diff --git a/src/layouts/widgets/wigiPad/date-display/dates/jalali.date.tsx b/src/layouts/widgets/wigi-pad/date-display/dates/jalali.date.tsx similarity index 95% rename from src/layouts/widgets/wigiPad/date-display/dates/jalali.date.tsx rename to src/layouts/widgets/wigi-pad/date-display/dates/jalali.date.tsx index 465e6da4..30e1ade1 100644 --- a/src/layouts/widgets/wigiPad/date-display/dates/jalali.date.tsx +++ b/src/layouts/widgets/wigi-pad/date-display/dates/jalali.date.tsx @@ -1,9 +1,9 @@ import { useDate } from '@/context/date.context' import { combineAndSortEvents } from '@/layouts/widgets/tools/events/utils' -import { useGetEvents } from '@/services/hooks/date/getEvents.hook' +import { useGetEvents } from '@/services/hooks/date/get-events.hook' import { HolidayBadge } from '../components/holiday.badge' import { hijriMonthNames } from '@/layouts/widgets/calendar/utils' -import { useGetWeatherByLatLon } from '@/services/hooks/weather/getWeatherByLatLon' +import { useGetWeatherByLatLon } from '@/services/hooks/weather/get-weather-by-lat-lon' import { InlineWeather } from '../../weather/simple-weather' export function JalaliDate() { diff --git a/src/layouts/widgets/wigiPad/info-panel/components/ann-item.tsx b/src/layouts/widgets/wigi-pad/info-panel/components/ann-item.tsx similarity index 99% rename from src/layouts/widgets/wigiPad/info-panel/components/ann-item.tsx rename to src/layouts/widgets/wigi-pad/info-panel/components/ann-item.tsx index e592fa31..ae3dfd2e 100644 --- a/src/layouts/widgets/wigiPad/info-panel/components/ann-item.tsx +++ b/src/layouts/widgets/wigi-pad/info-panel/components/ann-item.tsx @@ -1,7 +1,7 @@ import Analytics from '@/analytics' import { getContrastingTextColor } from '@/common/color' import { callEvent } from '@/common/utils/call-event' -import type { NotificationItem } from '@/services/hooks/extension/getNotifications.hook' +import type { NotificationItem } from '@/services/hooks/extension/get-notifications.hook' interface NotificationItemProps { notification: NotificationItem diff --git a/src/layouts/widgets/wigiPad/weather/simple-weather.tsx b/src/layouts/widgets/wigi-pad/weather/simple-weather.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/weather/simple-weather.tsx rename to src/layouts/widgets/wigi-pad/weather/simple-weather.tsx diff --git a/src/layouts/widgets/wigiPad/wigiPad-setting.tsx b/src/layouts/widgets/wigi-pad/wigi-pad-setting.tsx similarity index 100% rename from src/layouts/widgets/wigiPad/wigiPad-setting.tsx rename to src/layouts/widgets/wigi-pad/wigi-pad-setting.tsx diff --git a/src/layouts/widgets/wigiPad/wigiPad.layout.tsx b/src/layouts/widgets/wigi-pad/wigi-pad.layout.tsx similarity index 97% rename from src/layouts/widgets/wigiPad/wigiPad.layout.tsx rename to src/layouts/widgets/wigi-pad/wigi-pad.layout.tsx index a1c0650e..ef6f5878 100644 --- a/src/layouts/widgets/wigiPad/wigiPad.layout.tsx +++ b/src/layouts/widgets/wigi-pad/wigi-pad.layout.tsx @@ -1,7 +1,7 @@ import { WidgetContainer } from '../widget-container' import { ClockDisplay } from './clock-display/clock-display' import { DateDisplay } from './date-display/date.display' -import { useGetNotifications } from '@/services/hooks/extension/getNotifications.hook' +import { useGetNotifications } from '@/services/hooks/extension/get-notifications.hook' import { RenderWigiPadItem } from './info-panel/components/ann-item' export function WigiPadWidget() { diff --git a/src/main.tsx b/src/main.tsx index 9bf0bd89..01f50b13 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -2,7 +2,7 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './fonts.css' import './index.css' -import App from './App' +import App from './app' createRoot(document.getElementById('root')!).render( diff --git a/src/pages/home/dialog/dialog.tsx b/src/pages/home/dialog/dialog.tsx index c0cb6dbf..ba4f938e 100644 --- a/src/pages/home/dialog/dialog.tsx +++ b/src/pages/home/dialog/dialog.tsx @@ -8,7 +8,7 @@ import { safeAwait } from '@/services/api' import { useGetNotifications, useNotifyAsSeen, -} from '@/services/hooks/extension/getNotifications.hook' +} from '@/services/hooks/extension/get-notifications.hook' export function DialogChecker() { const { isAuthenticated } = useAuth() diff --git a/src/pages/home/ui/content-section.tsx b/src/pages/home/ui/content-section.tsx index ea005112..1f9eee16 100644 --- a/src/pages/home/ui/content-section.tsx +++ b/src/pages/home/ui/content-section.tsx @@ -15,7 +15,7 @@ import { useWidgetVisibility, type WidgetItem } from '@/context/widget-visibilit import { BookmarksList } from '@/layouts/bookmark/bookmarks' import { SearchLayout } from '@/layouts/search/search' import { WidgetifyLayout } from '@/layouts/widgetify-card/widgetify.layout' -import { WigiPadWidget } from '@/layouts/widgets/wigiPad/wigiPad.layout' +import { WigiPadWidget } from '@/layouts/widgets/wigi-pad/wigi-pad.layout' import { BookmarkProvider } from '@/layouts/bookmark/context/bookmark.context' function SortableWidget({ widget }: { widget: WidgetItem }) { diff --git a/src/services/hooks/auth/authService.hook.ts b/src/services/hooks/auth/auth-service.hook.ts similarity index 100% rename from src/services/hooks/auth/authService.hook.ts rename to src/services/hooks/auth/auth-service.hook.ts diff --git a/src/services/hooks/bookmark/getBookmarks.hook.ts b/src/services/hooks/bookmark/get-bookmarks.hook.ts similarity index 100% rename from src/services/hooks/bookmark/getBookmarks.hook.ts rename to src/services/hooks/bookmark/get-bookmarks.hook.ts diff --git a/src/services/hooks/calendar/get-calendarData.hook.ts b/src/services/hooks/calendar/get-calendar-data.hook.ts similarity index 92% rename from src/services/hooks/calendar/get-calendarData.hook.ts rename to src/services/hooks/calendar/get-calendar-data.hook.ts index 74ac6ee1..6bf21800 100644 --- a/src/services/hooks/calendar/get-calendarData.hook.ts +++ b/src/services/hooks/calendar/get-calendar-data.hook.ts @@ -1,6 +1,6 @@ import { getMainClient } from '@/services/api' import { useQuery } from '@tanstack/react-query' -import type { GoogleCalendarEvent } from '../date/getGoogleCalendarEvents.hook' +import type { GoogleCalendarEvent } from '../date/get-google-calendar-events.hook' export interface FetchedUserMood { mood: 'sad' | 'normal' | 'happy' | 'excited' diff --git a/src/services/hooks/cities/getCitiesList.ts b/src/services/hooks/cities/get-cities-list.ts similarity index 100% rename from src/services/hooks/cities/getCitiesList.ts rename to src/services/hooks/cities/get-cities-list.ts diff --git a/src/services/hooks/currency/getCurrencyByCode.hook.ts b/src/services/hooks/currency/get-currency-by-code.hook.ts similarity index 100% rename from src/services/hooks/currency/getCurrencyByCode.hook.ts rename to src/services/hooks/currency/get-currency-by-code.hook.ts diff --git a/src/services/hooks/currency/getSupportCurrencies.hook.ts b/src/services/hooks/currency/get-support-currencies.hook.ts similarity index 100% rename from src/services/hooks/currency/getSupportCurrencies.hook.ts rename to src/services/hooks/currency/get-support-currencies.hook.ts diff --git a/src/services/hooks/date/getEvents.hook.ts b/src/services/hooks/date/get-events.hook.ts similarity index 100% rename from src/services/hooks/date/getEvents.hook.ts rename to src/services/hooks/date/get-events.hook.ts diff --git a/src/services/hooks/date/getGoogleCalendarEvents.hook.ts b/src/services/hooks/date/get-google-calendar-events.hook.ts similarity index 100% rename from src/services/hooks/date/getGoogleCalendarEvents.hook.ts rename to src/services/hooks/date/get-google-calendar-events.hook.ts diff --git a/src/services/hooks/date/getReligiousTime.hook.ts b/src/services/hooks/date/get-religious-time.hook.ts similarity index 100% rename from src/services/hooks/date/getReligiousTime.hook.ts rename to src/services/hooks/date/get-religious-time.hook.ts diff --git a/src/services/hooks/extension/getNotifications.hook.ts b/src/services/hooks/extension/get-notifications.hook.ts similarity index 100% rename from src/services/hooks/extension/getNotifications.hook.ts rename to src/services/hooks/extension/get-notifications.hook.ts diff --git a/src/services/hooks/extension/updateSetting.hook.ts b/src/services/hooks/extension/update-setting.hook.ts similarity index 100% rename from src/services/hooks/extension/updateSetting.hook.ts rename to src/services/hooks/extension/update-setting.hook.ts diff --git a/src/services/hooks/friends/friendService.hook.ts b/src/services/hooks/friends/friend-service.hook.ts similarity index 100% rename from src/services/hooks/friends/friendService.hook.ts rename to src/services/hooks/friends/friend-service.hook.ts diff --git a/src/services/hooks/getDailyMessage.hook.ts b/src/services/hooks/get-daily-message.hook.ts similarity index 100% rename from src/services/hooks/getDailyMessage.hook.ts rename to src/services/hooks/get-daily-message.hook.ts diff --git a/src/services/hooks/market/getMarketItems.hook.ts b/src/services/hooks/market/get-market-items.hook.ts similarity index 100% rename from src/services/hooks/market/getMarketItems.hook.ts rename to src/services/hooks/market/get-market-items.hook.ts diff --git a/src/services/hooks/market/getUserInventory.hook.ts b/src/services/hooks/market/get-user-inventory.hook.ts similarity index 100% rename from src/services/hooks/market/getUserInventory.hook.ts rename to src/services/hooks/market/get-user-inventory.hook.ts diff --git a/src/services/hooks/market/purchaseMarketItem.hook.ts b/src/services/hooks/market/purchase-market-item.hook.ts similarity index 100% rename from src/services/hooks/market/purchaseMarketItem.hook.ts rename to src/services/hooks/market/purchase-market-item.hook.ts diff --git a/src/services/hooks/moodLog/get-moods.hook.ts b/src/services/hooks/mood-log/get-moods.hook.ts similarity index 100% rename from src/services/hooks/moodLog/get-moods.hook.ts rename to src/services/hooks/mood-log/get-moods.hook.ts diff --git a/src/services/hooks/moodLog/upsert-moodLog.hook.ts b/src/services/hooks/mood-log/upsert-mood-log.hook.ts similarity index 100% rename from src/services/hooks/moodLog/upsert-moodLog.hook.ts rename to src/services/hooks/mood-log/upsert-mood-log.hook.ts diff --git a/src/services/hooks/news/getNews.hook.ts b/src/services/hooks/news/get-news.hook.ts similarity index 100% rename from src/services/hooks/news/getNews.hook.ts rename to src/services/hooks/news/get-news.hook.ts diff --git a/src/services/hooks/pomodoro/createSession.hook.ts b/src/services/hooks/pomodoro/create-session.hook.ts similarity index 100% rename from src/services/hooks/pomodoro/createSession.hook.ts rename to src/services/hooks/pomodoro/create-session.hook.ts diff --git a/src/services/hooks/pomodoro/getTopUsers.hook.ts b/src/services/hooks/pomodoro/get-top-users.hook.ts similarity index 100% rename from src/services/hooks/pomodoro/getTopUsers.hook.ts rename to src/services/hooks/pomodoro/get-top-users.hook.ts diff --git a/src/services/hooks/profile/getProfileMeta.hook.ts b/src/services/hooks/profile/get-profile-meta.hook.ts similarity index 100% rename from src/services/hooks/profile/getProfileMeta.hook.ts rename to src/services/hooks/profile/get-profile-meta.hook.ts diff --git a/src/services/hooks/search/getSuggestSearch.hook.ts b/src/services/hooks/search/get-suggest-search.hook.ts similarity index 100% rename from src/services/hooks/search/getSuggestSearch.hook.ts rename to src/services/hooks/search/get-suggest-search.hook.ts diff --git a/src/services/hooks/timezone/getTimezones.hook.ts b/src/services/hooks/timezone/get-timezones.hook.ts similarity index 100% rename from src/services/hooks/timezone/getTimezones.hook.ts rename to src/services/hooks/timezone/get-timezones.hook.ts diff --git a/src/services/hooks/translate/index.ts b/src/services/hooks/translate/index.ts index 10ae2910..ae7f2126 100644 --- a/src/services/hooks/translate/index.ts +++ b/src/services/hooks/translate/index.ts @@ -1,4 +1,4 @@ export * from './translate.hook' export * from './translate.types' export * from './translate.utils' -export * from './translateService' +export * from './translate-service' diff --git a/src/services/hooks/translate/translateService.ts b/src/services/hooks/translate/translate-service.ts similarity index 100% rename from src/services/hooks/translate/translateService.ts rename to src/services/hooks/translate/translate-service.ts diff --git a/src/services/hooks/translate/translate.hook.ts b/src/services/hooks/translate/translate.hook.ts index 63016f29..3338b902 100644 --- a/src/services/hooks/translate/translate.hook.ts +++ b/src/services/hooks/translate/translate.hook.ts @@ -4,7 +4,7 @@ import type { TranslateRequestInput, TranslateResponse, } from './translate.types' -import { getAvailableLanguages, translateText } from './translateService' +import { getAvailableLanguages, translateText } from './translate-service' export function useTranslate() { return useMutation({ diff --git a/src/services/hooks/trends/getTrends.ts b/src/services/hooks/trends/get-trends.ts similarity index 100% rename from src/services/hooks/trends/getTrends.ts rename to src/services/hooks/trends/get-trends.ts diff --git a/src/services/hooks/user/referralsService.hook.ts b/src/services/hooks/user/referrals-service.hook.ts similarity index 100% rename from src/services/hooks/user/referralsService.hook.ts rename to src/services/hooks/user/referrals-service.hook.ts diff --git a/src/services/hooks/user/userService.hook.ts b/src/services/hooks/user/user-service.hook.ts similarity index 100% rename from src/services/hooks/user/userService.hook.ts rename to src/services/hooks/user/user-service.hook.ts diff --git a/src/services/hooks/wallpapers/getWallpaperCategories.hook.ts b/src/services/hooks/wallpapers/get-wallpaper-categories.hook.ts similarity index 100% rename from src/services/hooks/wallpapers/getWallpaperCategories.hook.ts rename to src/services/hooks/wallpapers/get-wallpaper-categories.hook.ts diff --git a/src/services/hooks/wallpapers/getWallpaperPreviewUrl.hook.ts b/src/services/hooks/wallpapers/get-wallpaper-preview-url.hook.ts similarity index 100% rename from src/services/hooks/wallpapers/getWallpaperPreviewUrl.hook.ts rename to src/services/hooks/wallpapers/get-wallpaper-preview-url.hook.ts diff --git a/src/services/hooks/weather/getForecastWeatherByLatLon.ts b/src/services/hooks/weather/get-forecast-weather-by-lat-lon.ts similarity index 100% rename from src/services/hooks/weather/getForecastWeatherByLatLon.ts rename to src/services/hooks/weather/get-forecast-weather-by-lat-lon.ts diff --git a/src/services/hooks/weather/getRelatedCities.ts b/src/services/hooks/weather/get-related-cities.ts similarity index 100% rename from src/services/hooks/weather/getRelatedCities.ts rename to src/services/hooks/weather/get-related-cities.ts diff --git a/src/services/hooks/weather/getWeatherByLatLon.ts b/src/services/hooks/weather/get-weather-by-lat-lon.ts similarity index 100% rename from src/services/hooks/weather/getWeatherByLatLon.ts rename to src/services/hooks/weather/get-weather-by-lat-lon.ts From 910492c70e2847f71d2f341632b1d052cb47259b Mon Sep 17 00:00:00 2001 From: Shak Date: Wed, 12 Aug 2026 16:27:34 +0330 Subject: [PATCH 5/5] fix(tsconfig): set noEmit directly so tsc never writes .js next to sources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tsconfig.json only got noEmit via extending .wxt/tsconfig.json, which is gitignored and generated by `wxt prepare` (run through postinstall). Anyone who ran tsc directly — before install finished, or via an editor's own compile action instead of `bun run compile` — hit a missing-extends error and fell back to bare tsc defaults: no noEmit, no outDir, emitting a .js file beside every .ts/.tsx it touched. Setting noEmit in tsconfig.json's own compilerOptions closes that gap regardless of whether the extended config resolves. Verified by removing .wxt/ and running bare tsc: previously produced ~450 stray .js files across src/, background/, and entrypoints/; with this fix, zero. --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 3302ddb1..365b0fd4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "jsx": "react-jsx" + "jsx": "react-jsx", + "noEmit": true }, "extends": "./.wxt/tsconfig.json" }