mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 23:26:02 +00:00
replaced "pro-duotone" icons with "pro-solid" icons to eas page load
This commit is contained in:
1 parent
6fee59731d
commit
049fe8b785
7 files changed
+9
-11
No files matched your search
@@ -10,7 +10,6 @@
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
||||
"@fortawesome/free-brands-svg-icons": "^6.2.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
||||
"@fortawesome/pro-duotone-svg-icons": "^6.2.1",
|
||||
"@fortawesome/pro-regular-svg-icons": "^6.2.1",
|
||||
"@fortawesome/pro-solid-svg-icons": "^6.2.1",
|
||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
faStar,
|
||||
faStarHalfAlt,
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import { faStarExclamation } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { faStarExclamation } from "@fortawesome/pro-solid-svg-icons";
|
||||
import { prettyNum, ROUNDING_MODE } from "pretty-num";
|
||||
import { useLocalize } from "hooks";
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ import {
|
||||
faArrowRightArrowLeft,
|
||||
faFilm,
|
||||
faLips,
|
||||
faCube,
|
||||
faStarShooting,
|
||||
} from "@fortawesome/pro-solid-svg-icons";
|
||||
import Accordion from "components/common/Accordion";
|
||||
import DataTable from "components/common/DataTable";
|
||||
@@ -50,7 +52,6 @@ import { DeleteFeaturedItem } from "@storyteller/components/src/api/featured_ite
|
||||
import { mediaTypeLabels } from "utils/mediaTypeLabels";
|
||||
import { EngineMediaPanel } from "./components/EngineMediaPanel/EngineMediaPanel";
|
||||
import { GetMediaFileTitle } from "common/GetMediaFileTitle";
|
||||
import { faCube, faStarShooting } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { usePrefixedDocumentTitle } from "common/UsePrefixedDocumentTitle";
|
||||
import { GetWebsiteLink } from "@storyteller/components/src/env/GetWebsiteLink";
|
||||
import { AITools } from "components/marketing";
|
||||
|
||||
@@ -23,12 +23,11 @@ import { ActionButtonProps, Container, Modal } from "components/common";
|
||||
import MediaPage from "./MediaPage";
|
||||
import VideoMediaPage from "./VideoMediaPage";
|
||||
|
||||
import { faStarShooting } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { faStarShooting, faThumbsUp } from "@fortawesome/pro-solid-svg-icons";
|
||||
import { faStarShooting as faStarShootingOutline } from "@fortawesome/pro-regular-svg-icons";
|
||||
|
||||
import "./MediaPage.scss";
|
||||
import { usePrefixedDocumentTitle } from "common/UsePrefixedDocumentTitle";
|
||||
import { faThumbsUp } from "@fortawesome/pro-solid-svg-icons";
|
||||
import { faThumbsUp as faThumbsUpOutline } from "@fortawesome/pro-regular-svg-icons";
|
||||
|
||||
type AnimationOptions = AnimationType | null;
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { TtsCategoryType } from "../../../../../../AppWrapper";
|
||||
import { TtsModelListItem } from "@storyteller/components/src/api/tts/ListTtsModels";
|
||||
import { ExploreVoicesTray } from "./components/ExploreVoicesTray";
|
||||
import { faChevronDown, faChevronUp } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { faChevronDown, faChevronUp } from "@fortawesome/pro-solid-svg-icons";
|
||||
import { ScopedVoiceModelOptions } from "./components/ScopedVoiceModelOptions";
|
||||
import { VoiceCountLabel } from "./components/VoiceCountLabel";
|
||||
import { Analytics } from "../../../../../../common/Analytics";
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@ import { SearchFieldClass } from "./SearchFieldClass";
|
||||
import { FastReactSelectOption } from "../../../../../_common/react_select/FastReactSelectOption";
|
||||
import { Analytics } from "../../../../../../../common/Analytics";
|
||||
import { FixedSingleValueSelectOption } from "../../../../../_common/react_select/FixedSingleValueSelectOption";
|
||||
import { faMicrophone } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { faMicrophone } from "@fortawesome/pro-solid-svg-icons";
|
||||
|
||||
interface Props {
|
||||
allTtsCategories: TtsCategoryType[];
|
||||
@@ -66,7 +66,7 @@ export function ScopedVoiceModelOptions(props: Props) {
|
||||
}
|
||||
|
||||
let options: DropdownOption[] = leafiestCategoryModels
|
||||
.filter((ttsModel) => {
|
||||
.filter(ttsModel => {
|
||||
// Scope to currently selected language
|
||||
if (props.selectedTtsLanguageScope === "*") {
|
||||
return true; // NB: Sentinel value of "*" means all languages.
|
||||
@@ -75,7 +75,7 @@ export function ScopedVoiceModelOptions(props: Props) {
|
||||
ttsModel.ietf_primary_language_subtag === props.selectedTtsLanguageScope
|
||||
);
|
||||
})
|
||||
.map((ttsModel) => {
|
||||
.map(ttsModel => {
|
||||
return {
|
||||
label: ttsModel.title,
|
||||
value: ttsModel.model_token,
|
||||
@@ -85,7 +85,7 @@ export function ScopedVoiceModelOptions(props: Props) {
|
||||
});
|
||||
|
||||
let selectedOption = options.find(
|
||||
(option) => option.value === maybeSelectedTtsModel?.model_token
|
||||
option => option.value === maybeSelectedTtsModel?.model_token
|
||||
);
|
||||
|
||||
if (selectedOption === undefined && options.length > 0) {
|
||||
|
||||
@@ -4396,7 +4396,6 @@ __metadata:
|
||||
"@fortawesome/fontawesome-svg-core": ^6.2.1
|
||||
"@fortawesome/free-brands-svg-icons": ^6.2.1
|
||||
"@fortawesome/free-solid-svg-icons": ^6.2.1
|
||||
"@fortawesome/pro-duotone-svg-icons": ^6.2.1
|
||||
"@fortawesome/pro-regular-svg-icons": ^6.2.1
|
||||
"@fortawesome/pro-solid-svg-icons": ^6.2.1
|
||||
"@fortawesome/react-fontawesome": ^0.2.0
|
||||
|
||||
Reference in new issue
Block a user