Compare commits

...

3 Commits

Author SHA1 Message Date
ed329c6299 fix property name 2020-04-20 08:54:26 +02:00
305d418f5f Add build and deploy script 2020-04-20 08:50:21 +02:00
a040913e88 remove console log 2020-04-20 08:43:29 +02:00
5 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules/
coverage/
public/

6
build.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
rm -rf public
mkdir -p public
cp index.html public
cp style.css public
cp -r src/ public

3
deploy.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
./build.sh
rsync -r public/ root@melch.pro:/var/www/dump.melch.pro --delete

View File

@ -18,7 +18,7 @@ export function alignChild(parent, child, container, alignments, containment) {
if (containment.invertH && overflows.h) {
alignments = invertH(alignments)
}
if (containment.inoverV && overflows.v) {
if (containment.invertV && overflows.v) {
alignments = invertV(alignments)
}
childRect = calculatePosition(parentRect, childRect, alignments)

View File

@ -11,7 +11,6 @@ makeDragable(parent)
let options = getOptions()
function render() {
console.log(options)
const { alignments, boxSizes, containment } = options
parent.style.width = boxSizes.parentWidth
parent.style.height = boxSizes.parentHeight