This commit is contained in:
Sam Lavigne 2023-08-24 23:23:50 -04:00
parent 7eca60a425
commit a958ecc6b6
2 changed files with 0 additions and 40 deletions

View File

@ -12,8 +12,6 @@
"@sveltejs/vite-plugin-svelte": "^2.4.2", "@sveltejs/vite-plugin-svelte": "^2.4.2",
"@xyflow/svelte": "^0.0.12", "@xyflow/svelte": "^0.0.12",
"svelte": "^4.0.5", "svelte": "^4.0.5",
"svelte-dnd-action": "^0.9.25",
"svelvet": "^8.1.0",
"uuid": "^9.0.0", "uuid": "^9.0.0",
"vite": "^4.4.5" "vite": "^4.4.5"
}, },

View File

@ -14,7 +14,6 @@
import Graph from "./Graph.svelte"; import Graph from "./Graph.svelte";
import { FFmpeg } from "@ffmpeg/ffmpeg"; import { FFmpeg } from "@ffmpeg/ffmpeg";
import { fetchFile, toBlobURL } from "@ffmpeg/util"; import { fetchFile, toBlobURL } from "@ffmpeg/util";
import { dndzone } from "svelte-dnd-action";
const isChrome = navigator.userAgent.match(/chrome|chromium|crios/i); const isChrome = navigator.userAgent.match(/chrome|chromium|crios/i);
const baseURL = `https://unpkg.com/@ffmpeg/core${!isChrome ? "-mt" : ""}@0.12.2/dist/esm`; const baseURL = `https://unpkg.com/@ffmpeg/core${!isChrome ? "-mt" : ""}@0.12.2/dist/esm`;
@ -23,7 +22,6 @@
const ffmpeg = new FFmpeg(); const ffmpeg = new FFmpeg();
let command = "";
let videoValue = "/" + $inputs[0].name; let videoValue = "/" + $inputs[0].name;
let ffmpegLoaded = false; let ffmpegLoaded = false;
let rendering = false; let rendering = false;
@ -31,9 +29,6 @@
let logbox; let logbox;
let commandRef; let commandRef;
function newInput() {
addNode({ name: "punch.mp4" }, "input");
}
function render() { function render() {
transcode(); transcode();
@ -93,14 +88,6 @@
ffmpegLoaded = true; ffmpegLoaded = true;
} }
function handleFilterSort(e) {
filters.set(e.detail.items);
}
// inputs.subscribe(updateCommand);
// output.subscribe(updateCommand);
// filters.subscribe(updateCommand);
onMount(async () => { onMount(async () => {
loadFFmpeg(); loadFFmpeg();
}); });
@ -274,15 +261,6 @@
background-color: #fff; background-color: #fff;
} }
.filters-holder {
min-height: 500px;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
padding-left: 10px;
flex: 1;
align-content: start;
}
h1, h1,
h3 { h3 {
font-weight: normal; font-weight: normal;
@ -321,12 +299,6 @@
padding: 5px; padding: 5px;
height: 100%; height: 100%;
} }
.section-header {
display: flex;
}
.section-header h3 {
flex: 1;
}
.the-log { .the-log {
border: none; border: none;
resize: none; resize: none;
@ -358,9 +330,6 @@
} }
@media only screen and (max-width: 1400px) { @media only screen and (max-width: 1400px) {
.filters-holder {
grid-template-columns: repeat(2, 1fr);
}
} }
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
@ -392,12 +361,5 @@
height: 300px; height: 300px;
position: static; position: static;
} }
.filters-holder {
grid-template-columns: repeat(1, 1fr);
grid-gap: 10px;
flex: 1;
align-content: start;
padding: 0;
}
} }
</style> </style>