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> <script>
import Counter from './lib/Counter.svelte' import FileViewer from './lib/FileViewer.svelte'
import logo from './assets/logo.webp' import logo from './assets/logo.webp'
</script> </script>
@ -14,7 +14,7 @@
</a> </a>
</header> </header>
<main> <main>
<Counter /> <FileViewer />
</main> </main>
<footer> <footer>
<p>Copyright © 2022 <a href="https://leomurca.xyz" target="_blank" rel="noreferrer" >Leonardo Murça</a>.</p> <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> <script>
import { startFileRead } from './main'; import { startFileRead } from '../utils/main';
let files; let files;
const acceptedFiles = [".pes"]; const acceptedFiles = [".pes"];
@ -9,7 +9,6 @@ function onSubmitHandler(evt) {
evt.stopPropagation(); evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
for (var i = 0, file; (file = files[i]); i++) { for (var i = 0, file; (file = files[i]); i++) {
const canvasContainer = document.getElementById("canvas-container") const canvasContainer = document.getElementById("canvas-container")
const canvasCard = document.createElement(`div`) const canvasCard = document.createElement(`div`)

View file

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