Move files to utils

This commit is contained in:
Leonardo Murça 2022-11-11 10:45:57 -03:00
parent ed45b6e545
commit 5eb7ea10ad
7 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<script>
import Counter from './lib/Counter.svelte'
import FileViewer from './lib/FileViewer.svelte'
import logo from './assets/logo.webp'
</script>
@ -14,7 +14,7 @@
</a>
</header>
<main>
<Counter />
<FileViewer />
</main>
<footer>
<p>Copyright © 2022 <a href="https://leomurca.xyz" target="_blank" rel="noreferrer" >Leonardo Murça</a>.</p>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

View file

@ -1,5 +1,5 @@
<script>
import { startFileRead } from './main';
import { startFileRead } from '../utils/main';
let files;
const acceptedFiles = [".pes"];
@ -9,7 +9,6 @@ function onSubmitHandler(evt) {
evt.stopPropagation();
evt.preventDefault();
for (var i = 0, file; (file = files[i]); i++) {
const canvasContainer = document.getElementById("canvas-container")
const canvasCard = document.createElement(`div`)

View file

@ -1,6 +1,6 @@
import { jDataView } from "./jdataview";
import { pesRead } from "./pesformat";
import { Pattern } from "./pattern";
import { jDataView } from "../utils/jdataview";
import { pesRead } from "../utils/pesformat";
import { Pattern } from "../utils/pattern";
String.prototype.endsWith = function (suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;