Просмотр исходного кода

Move assets/icons to dedicated folder (#4850)

Nafis Reza 1 год назад
Родитель
Сommit
975e75531d
35 измененных файлов с 19 добавлено и 19 удалено
  1. 1 1
      frontend/src/components/attach-image-label.tsx
  2. 1 1
      frontend/src/components/chat-input.tsx
  3. 1 1
      frontend/src/components/chat-interface.tsx
  4. 1 1
      frontend/src/components/image-preview.tsx
  5. 1 1
      frontend/src/components/modals/LoadingProject.tsx
  6. 1 1
      frontend/src/components/project-menu/ProjectMenuCard.tsx
  7. 1 1
      frontend/src/components/project-menu/project-menu-details-placeholder.tsx
  8. 1 1
      frontend/src/components/project-menu/project-menu-details.tsx
  9. 1 1
      frontend/src/components/scroll-to-bottom-button.tsx
  10. 2 2
      frontend/src/components/suggestion-bubble.tsx
  11. 1 1
      frontend/src/components/upload-image-input.tsx
  12. 1 1
      frontend/src/components/user-avatar.tsx
  13. 0 0
      frontend/src/icons/arrow-send.svg
  14. 0 0
      frontend/src/icons/build-it.svg
  15. 0 0
      frontend/src/icons/clip.svg
  16. 0 0
      frontend/src/icons/clipboard.svg
  17. 0 0
      frontend/src/icons/close.svg
  18. 0 0
      frontend/src/icons/cloud-connection.svg
  19. 0 0
      frontend/src/icons/code.svg
  20. 0 0
      frontend/src/icons/default-user.svg
  21. 0 0
      frontend/src/icons/docs.svg
  22. 0 0
      frontend/src/icons/ellipsis-h.svg
  23. 0 0
      frontend/src/icons/external-link.svg
  24. 0 0
      frontend/src/icons/globe.svg
  25. 0 0
      frontend/src/icons/lightbulb.svg
  26. 0 0
      frontend/src/icons/list-type-number.svg
  27. 0 0
      frontend/src/icons/loading-outer.svg
  28. 0 0
      frontend/src/icons/message.svg
  29. 0 0
      frontend/src/icons/new-project.svg
  30. 0 0
      frontend/src/icons/play.svg
  31. 0 0
      frontend/src/icons/refresh.svg
  32. 0 0
      frontend/src/icons/send.svg
  33. 1 1
      frontend/src/routes/_oh._index/hero-heading.tsx
  34. 3 3
      frontend/src/routes/_oh.app.tsx
  35. 2 2
      frontend/src/routes/_oh.tsx

+ 1 - 1
frontend/src/components/attach-image-label.tsx

@@ -1,4 +1,4 @@
-import Clip from "#/assets/clip.svg?react";
+import Clip from "#/icons/clip.svg?react";
 
 export function AttachImageLabel() {
   return (

+ 1 - 1
frontend/src/components/chat-input.tsx

@@ -1,6 +1,6 @@
 import React from "react";
 import TextareaAutosize from "react-textarea-autosize";
-import ArrowSendIcon from "#/assets/arrow-send.svg?react";
+import ArrowSendIcon from "#/icons/arrow-send.svg?react";
 import { cn } from "#/utils/utils";
 
 interface ChatInputProps {

+ 1 - 1
frontend/src/components/chat-interface.tsx

@@ -21,7 +21,7 @@ import { ContinueButton } from "./continue-button";
 import { ScrollToBottomButton } from "./scroll-to-bottom-button";
 import { Suggestions } from "./suggestions";
 import { SUGGESTIONS } from "#/utils/suggestions";
-import BuildIt from "#/assets/build-it.svg?react";
+import BuildIt from "#/icons/build-it.svg?react";
 
 const isErrorMessage = (
   message: Message | ErrorMessage,

+ 1 - 1
frontend/src/components/image-preview.tsx

@@ -1,4 +1,4 @@
-import CloseIcon from "#/assets/close.svg?react";
+import CloseIcon from "#/icons/close.svg?react";
 import { cn } from "#/utils/utils";
 
 interface ImagePreviewProps {

+ 1 - 1
frontend/src/components/modals/LoadingProject.tsx

@@ -1,5 +1,5 @@
 import { useTranslation } from "react-i18next";
-import LoadingSpinnerOuter from "#/assets/loading-outer.svg?react";
+import LoadingSpinnerOuter from "#/icons/loading-outer.svg?react";
 import { cn } from "#/utils/utils";
 import ModalBody from "./ModalBody";
 import { I18nKey } from "#/i18n/declaration";

+ 1 - 1
frontend/src/components/project-menu/ProjectMenuCard.tsx

@@ -2,7 +2,7 @@ import React from "react";
 import { useDispatch } from "react-redux";
 import toast from "react-hot-toast";
 import posthog from "posthog-js";
-import EllipsisH from "#/assets/ellipsis-h.svg?react";
+import EllipsisH from "#/icons/ellipsis-h.svg?react";
 import { ModalBackdrop } from "../modals/modal-backdrop";
 import { ConnectToGitHubModal } from "../modals/connect-to-github-modal";
 import { addUserMessage } from "#/state/chatSlice";

+ 1 - 1
frontend/src/components/project-menu/project-menu-details-placeholder.tsx

@@ -1,6 +1,6 @@
 import { useTranslation } from "react-i18next";
 import { cn } from "#/utils/utils";
-import CloudConnection from "#/assets/cloud-connection.svg?react";
+import CloudConnection from "#/icons/cloud-connection.svg?react";
 import { I18nKey } from "#/i18n/declaration";
 
 interface ProjectMenuDetailsPlaceholderProps {

+ 1 - 1
frontend/src/components/project-menu/project-menu-details.tsx

@@ -1,5 +1,5 @@
 import { useTranslation } from "react-i18next";
-import ExternalLinkIcon from "#/assets/external-link.svg?react";
+import ExternalLinkIcon from "#/icons/external-link.svg?react";
 import { formatTimeDelta } from "#/utils/format-time-delta";
 import { I18nKey } from "#/i18n/declaration";
 

+ 1 - 1
frontend/src/components/scroll-to-bottom-button.tsx

@@ -1,4 +1,4 @@
-import ArrowSendIcon from "#/assets/arrow-send.svg?react";
+import ArrowSendIcon from "#/icons/arrow-send.svg?react";
 
 interface ScrollToBottomButtonProps {
   onClick: () => void;

+ 2 - 2
frontend/src/components/suggestion-bubble.tsx

@@ -1,5 +1,5 @@
-import Lightbulb from "#/assets/lightbulb.svg?react";
-import Refresh from "#/assets/refresh.svg?react";
+import Lightbulb from "#/icons/lightbulb.svg?react";
+import Refresh from "#/icons/refresh.svg?react";
 
 interface SuggestionBubbleProps {
   suggestion: string;

+ 1 - 1
frontend/src/components/upload-image-input.tsx

@@ -1,4 +1,4 @@
-import Clip from "#/assets/clip.svg?react";
+import Clip from "#/icons/clip.svg?react";
 
 interface UploadImageInputProps {
   onUpload: (files: File[]) => void;

+ 1 - 1
frontend/src/components/user-avatar.tsx

@@ -1,5 +1,5 @@
 import { LoadingSpinner } from "./modals/LoadingProject";
-import DefaultUserAvatar from "#/assets/default-user.svg?react";
+import DefaultUserAvatar from "#/icons/default-user.svg?react";
 import { cn } from "#/utils/utils";
 
 interface UserAvatarProps {

+ 0 - 0
frontend/src/assets/arrow-send.svg → frontend/src/icons/arrow-send.svg


+ 0 - 0
frontend/src/assets/build-it.svg → frontend/src/icons/build-it.svg


+ 0 - 0
frontend/src/assets/clip.svg → frontend/src/icons/clip.svg


+ 0 - 0
frontend/src/assets/clipboard.svg → frontend/src/icons/clipboard.svg


+ 0 - 0
frontend/src/assets/close.svg → frontend/src/icons/close.svg


+ 0 - 0
frontend/src/assets/cloud-connection.svg → frontend/src/icons/cloud-connection.svg


+ 0 - 0
frontend/src/assets/code.svg → frontend/src/icons/code.svg


+ 0 - 0
frontend/src/assets/default-user.svg → frontend/src/icons/default-user.svg


+ 0 - 0
frontend/src/assets/docs.svg → frontend/src/icons/docs.svg


+ 0 - 0
frontend/src/assets/ellipsis-h.svg → frontend/src/icons/ellipsis-h.svg


+ 0 - 0
frontend/src/assets/external-link.svg → frontend/src/icons/external-link.svg


+ 0 - 0
frontend/src/assets/globe.svg → frontend/src/icons/globe.svg


+ 0 - 0
frontend/src/assets/lightbulb.svg → frontend/src/icons/lightbulb.svg


+ 0 - 0
frontend/src/assets/list-type-number.svg → frontend/src/icons/list-type-number.svg


+ 0 - 0
frontend/src/assets/loading-outer.svg → frontend/src/icons/loading-outer.svg


+ 0 - 0
frontend/src/assets/message.svg → frontend/src/icons/message.svg


+ 0 - 0
frontend/src/assets/new-project.svg → frontend/src/icons/new-project.svg


+ 0 - 0
frontend/src/assets/play.svg → frontend/src/icons/play.svg


+ 0 - 0
frontend/src/assets/refresh.svg → frontend/src/icons/refresh.svg


+ 0 - 0
frontend/src/assets/send.svg → frontend/src/icons/send.svg


+ 1 - 1
frontend/src/routes/_oh._index/hero-heading.tsx

@@ -1,4 +1,4 @@
-import BuildIt from "#/assets/build-it.svg?react";
+import BuildIt from "#/icons/build-it.svg?react";
 
 export function HeroHeading() {
   return (

+ 3 - 3
frontend/src/routes/_oh.app.tsx

@@ -30,9 +30,9 @@ import {
 } from "#/services/terminalService";
 import { clearTerminal } from "#/state/commandSlice";
 import { useEffectOnce } from "#/utils/use-effect-once";
-import CodeIcon from "#/assets/code.svg?react";
-import GlobeIcon from "#/assets/globe.svg?react";
-import ListIcon from "#/assets/list-type-number.svg?react";
+import CodeIcon from "#/icons/code.svg?react";
+import GlobeIcon from "#/icons/globe.svg?react";
+import ListIcon from "#/icons/list-type-number.svg?react";
 import { createChatMessage } from "#/services/chatService";
 import {
   clearFiles,

+ 2 - 2
frontend/src/routes/_oh.tsx

@@ -25,8 +25,8 @@ import { useSocket } from "#/context/socket";
 import i18n from "#/i18n";
 import { getSettings, settingsAreUpToDate } from "#/services/settings";
 import AllHandsLogo from "#/assets/branding/all-hands-logo.svg?react";
-import NewProjectIcon from "#/assets/new-project.svg?react";
-import DocsIcon from "#/assets/docs.svg?react";
+import NewProjectIcon from "#/icons/new-project.svg?react";
+import DocsIcon from "#/icons/docs.svg?react";
 import { userIsAuthenticated } from "#/utils/user-is-authenticated";
 import { generateGitHubAuthUrl } from "#/utils/generate-github-auth-url";
 import { WaitlistModal } from "#/components/waitlist-modal";