wip on fixing spark

This commit is contained in:
Brandon Thomas committed 2025-11-20 11:54:41 -05:00
1 parent 64dbfd31fd
commit c1343ef178
6 files changed
+254 -111

No files matched your search

+4
View File
@@ -14,6 +14,10 @@
gtag('config', 'G-Y4Y8KMLPQ7');
</script>
<!-- This can't find three.js
<script src="https://sparkjs.dev/releases/spark/0.1.10/spark.module.js" />
-->
<!-- Microsoft Clarity -->
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
@@ -33,9 +33,9 @@ import { CloseButton } from "@storyteller/ui-close-button";
import { ActionReminderModal } from "@storyteller/ui-action-reminder-modal";
import { TaskMediaFileClass } from "@storyteller/api-enums";
import {
getThumbnailUrl,
//getThumbnailUrl,
THUMBNAIL_SIZES,
getPlaceholderForMediaClass,
//getPlaceholderForMediaClass,
} from "@storyteller/common";
type InProgressTask = {
@@ -137,9 +137,9 @@ const CompletedCard = ({
src={task.thumbnailUrl}
alt={task.title}
onError={(e) => {
e.currentTarget.src = getPlaceholderForMediaClass(
task.mediaFileClass,
);
//e.currentTarget.src = getPlaceholderForMediaClass(
// task.mediaFileClass,
//);
e.currentTarget.style.opacity = "0.3";
}}
className="h-full w-full object-cover"
@@ -291,11 +291,12 @@ export const TaskQueue = () => {
id: t.id,
...formatTitleParts(t),
thumbnailUrl:
getThumbnailUrl(
t.completed_item?.primary_media_file
?.maybe_thumbnail_url_template,
{ width: THUMBNAIL_SIZES.MEDIUM },
) || undefined,
//getThumbnailUrl(
// t.completed_item?.primary_media_file
// ?.maybe_thumbnail_url_template,
// { width: THUMBNAIL_SIZES.MEDIUM },
//) || undefined,
undefined,
imageUrls: t.completed_item?.primary_media_file?.cdn_url
? [t.completed_item?.primary_media_file?.cdn_url]
: [],
+2 -2
View File
@@ -16,7 +16,7 @@
"scripts": {
"build": "vite build",
"preview": "vite preview --port 8080",
"dev": "echo 'editor3d' && vite dev",
"dev": "echo 'editor3d' && NODE_OPTIONS=--max_http_header_size=128000 vite dev",
"production-preview": "echo 'editor3d dev with production preview' && vite build --debug --emptyOutDir --logLevel info && vite preview --port 5173",
"staging-build": "vite build",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint playground/* .",
@@ -41,7 +41,7 @@
"@remix-run/react": "^2.8.1",
"@remix-run/router": "^1.15.3",
"@remix-run/serve": "^2.8.1",
"@sparkjsdev/spark": "^0.1.10",
"@sparkjsdev/spark": "file:/Users/bt/dev/3rd/spark",
"@tauri-apps/plugin-http": "^2.4.3",
"@tweenjs/tween.js": "^18.6.4",
"@types/lodash": "^4.17.6",
+10 -7
View File
@@ -67,14 +67,11 @@
{
"path": "../../libs/components/loading-spinner"
},
{
"path": "../../libs/components/promptbox"
},
{
"path": "../../libs/components/tutorial-modal"
},
{
"path": "../../libs/common"
"path": "../../libs/components/promptbox"
},
{
"path": "../../libs/state/subscription"
@@ -103,6 +100,9 @@
{
"path": "../../libs/components/settings-modal"
},
{
"path": "../../libs/common"
},
{
"path": "../../libs/api-enums"
},
@@ -121,9 +121,6 @@
{
"path": "../../libs/components/popover"
},
{
"path": "../../libs/components/tooltip"
},
{
"path": "../../libs/components/gravatar"
},
@@ -148,6 +145,12 @@
{
"path": "../../libs/components/list-dropdown"
},
{
"path": "../../libs/components/tooltip"
},
{
"path": "../../libs/components/tab-selector"
},
{
"path": "../../libs/components/button"
},
+226 -91
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -17,7 +17,7 @@
"@preact/signals-react": "^3.0.1",
"@radix-ui/react-dialog": "^1.1.14",
"@remix-run/serve": "^2.15.0",
"@sparkjsdev/spark": "^0.1.10",
"@sparkjsdev/spark": "file:/Users/bt/dev/3rd/spark",
"dayjs": "^1.11.10",
"detect-gpu": "^5.0.38",
"embla-carousel-react": "^8.6.0",