This was a lot... things are mostly working again. The changing of id_random properties caused some problems. The hosted_file_hash_sha256 is not working? There are other issues as well... This will take some time.
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
// *** Import Aether specific variables and functions
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
// import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
import Element_data_store from '$lib/elements/element_data_store_v2.svelte';
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ import { onMount } from 'svelte';
|
||||
|
||||
|
||||
// import { api } from '$lib/api.js';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
|
||||
|
||||
import Element_manage_hosted_file_li_wrap from '$lib/elements/element_manage_hosted_file_li_all.svelte';
|
||||
@@ -133,54 +133,7 @@ onMount(() => {
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
{#if 1===2}
|
||||
|
||||
<div class="border border-gray-200 p-2 rounded-lg hidden">
|
||||
<h2 class="h2">Convert mp3 to mp4</h2>
|
||||
<p>This AV utility will take an mp3 audio file and a static image template and create a mp4 video file. This process may take a few seconds to a handful of minutes. Please be patient while it is processing.</p>
|
||||
<form onsubmit={handle_submit_form} class="av_util_mp3_to_mp4 space-y-4">
|
||||
|
||||
<input type="text" name="title_part_1" value="Title Part 1" placeholder="Title Part 1" class="input" />
|
||||
<input type="text" name="title_part_2" value="Title Part 2" placeholder="Title Part 2" class="input" />
|
||||
|
||||
<input type="text" name="subtitle_part_1" value="Sub-Title Part 1" placeholder="Sub-Title Part 1" class="input" />
|
||||
<input type="text" name="subtitle_part_2" value="Sub-Title Part 2" placeholder="Sub-Title Part 2" class="input" />
|
||||
|
||||
<input type="text" name="font_color" value="black" placeholder="Font color" class="input w-32" />
|
||||
|
||||
<!-- File type extension is limited to mp3 only -->
|
||||
<label class="label">
|
||||
<div>Audio file (mp3)</div>
|
||||
<input type="file" name="audio_file" accept="audio/*" class="input w-96" />
|
||||
</label>
|
||||
|
||||
<!-- File type extension is limited to png only -->
|
||||
<label class="label">
|
||||
<div>Static image template (png)</div>
|
||||
<input type="file" name="title_image" accept="image/*" class="input w-96" />
|
||||
</label>
|
||||
|
||||
<button type="submit" class="btn preset-filled-warning-500 mx-1">
|
||||
<span class="fas fa-upload mx-1"></span>
|
||||
Submit
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
<hr />
|
||||
|
||||
{#await file_uploads_post_promise}
|
||||
<p class="highlight">Converting... This may take a few minutes.</p>
|
||||
{:then}
|
||||
{#if file_uploads_post_promise}
|
||||
<a href={download_src} download={download_filename} class="ae_btn btn_lg btn_primary"><span class="fas fa-download"></span> Ready to Download</a>
|
||||
{:else}
|
||||
<p>Fill out the form and select the audio file and static image template file.</p>
|
||||
{/if}
|
||||
{/await}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ import { onMount } from 'svelte';
|
||||
|
||||
|
||||
// import { api } from '$lib/api.js';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
|
||||
import Comp_hosted_files_upload from '$lib/ae_core/ae_comp__hosted_files_upload.svelte';
|
||||
import Comp_hosted_files_clip_video from '$lib/ae_core/ae_comp__hosted_files_clip_video.svelte';
|
||||
@@ -263,54 +263,7 @@ onMount(() => {
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
{#if 1===2}
|
||||
|
||||
<div class="border border-gray-200 p-2 rounded-lg hidden">
|
||||
<h2 class="h2">Convert mp3 to mp4</h2>
|
||||
<p>This AV utility will take an mp3 audio file and a static image template and create a mp4 video file. This process may take a few seconds to a handful of minutes. Please be patient while it is processing.</p>
|
||||
<form onsubmit={handle_submit_form} class="av_util_mp3_to_mp4 space-y-4">
|
||||
|
||||
<input type="text" name="title_part_1" value="Title Part 1" placeholder="Title Part 1" class="input" />
|
||||
<input type="text" name="title_part_2" value="Title Part 2" placeholder="Title Part 2" class="input" />
|
||||
|
||||
<input type="text" name="subtitle_part_1" value="Sub-Title Part 1" placeholder="Sub-Title Part 1" class="input" />
|
||||
<input type="text" name="subtitle_part_2" value="Sub-Title Part 2" placeholder="Sub-Title Part 2" class="input" />
|
||||
|
||||
<input type="text" name="font_color" value="black" placeholder="Font color" class="input w-32" />
|
||||
|
||||
<!-- File type extension is limited to mp3 only -->
|
||||
<label class="label">
|
||||
<div>Audio file (mp3)</div>
|
||||
<input type="file" name="audio_file" accept="audio/*" class="input w-96" />
|
||||
</label>
|
||||
|
||||
<!-- File type extension is limited to png only -->
|
||||
<label class="label">
|
||||
<div>Static image template (png)</div>
|
||||
<input type="file" name="title_image" accept="image/*" class="input w-96" />
|
||||
</label>
|
||||
|
||||
<button type="submit" class="btn preset-filled-warning-500 mx-1">
|
||||
<span class="fas fa-upload mx-1"></span>
|
||||
Submit
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
<hr />
|
||||
|
||||
{#await file_uploads_post_promise}
|
||||
<p class="highlight">Converting... This may take a few minutes.</p>
|
||||
{:then}
|
||||
{#if file_uploads_post_promise}
|
||||
<a href={download_src} download={download_filename} class="ae_btn btn_lg btn_primary"><span class="fas fa-download"></span> Ready to Download</a>
|
||||
{:else}
|
||||
<p>Fill out the form and select the audio file and static image template file.</p>
|
||||
{/if}
|
||||
{/await}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script lang="ts">
|
||||
|
||||
// import { api } from '$lib/api.js';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
|
||||
import Comp_hosted_files_upload from '$lib/ae_core/ae_comp__hosted_files_upload.svelte';
|
||||
import Comp_hosted_files_clip_video from '$lib/ae_core/ae_comp__hosted_files_clip_video.svelte';
|
||||
@@ -231,54 +231,7 @@ let hosted_file_clip: key_val = $state({
|
||||
</div>
|
||||
|
||||
|
||||
{#if 1===2}
|
||||
|
||||
<div class="border border-gray-200 p-2 rounded-lg hidden">
|
||||
<h2 class="h2">Convert mp3 to mp4</h2>
|
||||
<p>This AV utility will take an mp3 audio file and a static image template and create a mp4 video file. This process may take a few seconds to a handful of minutes. Please be patient while it is processing.</p>
|
||||
<form onsubmit={handle_submit_form} class="av_util_mp3_to_mp4 space-y-4">
|
||||
|
||||
<input type="text" name="title_part_1" value="Title Part 1" placeholder="Title Part 1" class="input" />
|
||||
<input type="text" name="title_part_2" value="Title Part 2" placeholder="Title Part 2" class="input" />
|
||||
|
||||
<input type="text" name="subtitle_part_1" value="Sub-Title Part 1" placeholder="Sub-Title Part 1" class="input" />
|
||||
<input type="text" name="subtitle_part_2" value="Sub-Title Part 2" placeholder="Sub-Title Part 2" class="input" />
|
||||
|
||||
<input type="text" name="font_color" value="black" placeholder="Font color" class="input w-32" />
|
||||
|
||||
<!-- File type extension is limited to mp3 only -->
|
||||
<label class="label">
|
||||
<div>Audio file (mp3)</div>
|
||||
<input type="file" name="audio_file" accept="audio/*" class="input w-96" />
|
||||
</label>
|
||||
|
||||
<!-- File type extension is limited to png only -->
|
||||
<label class="label">
|
||||
<div>Static image template (png)</div>
|
||||
<input type="file" name="title_image" accept="image/*" class="input w-96" />
|
||||
</label>
|
||||
|
||||
<button type="submit" class="btn preset-filled-warning-500 mx-1">
|
||||
<span class="fas fa-upload mx-1"></span>
|
||||
Submit
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
<hr />
|
||||
|
||||
{#await file_uploads_post_promise}
|
||||
<p class="highlight">Converting... This may take a few minutes.</p>
|
||||
{:then}
|
||||
{#if file_uploads_post_promise}
|
||||
<a href={download_src} download={download_filename} class="ae_btn btn_lg btn_primary"><span class="fas fa-download"></span> Ready to Download</a>
|
||||
{:else}
|
||||
<p>Fill out the form and select the audio file and static image template file.</p>
|
||||
{/if}
|
||||
{/await}
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user