Move files to utils
This commit is contained in:
parent
ed45b6e545
commit
5eb7ea10ad
7 changed files with 6 additions and 7 deletions
|
@ -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 |
|
@ -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`)
|
|
@ -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;
|
Loading…
Reference in a new issue