Compare commits
3 Commits
ccaadf06ca
...
ed329c6299
Author | SHA1 | Date | |
---|---|---|---|
ed329c6299 | |||
305d418f5f | |||
a040913e88 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
coverage/
|
coverage/
|
||||||
|
public/
|
6
build.sh
Executable file
6
build.sh
Executable 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
3
deploy.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
./build.sh
|
||||||
|
rsync -r public/ root@melch.pro:/var/www/dump.melch.pro --delete
|
@ -18,7 +18,7 @@ export function alignChild(parent, child, container, alignments, containment) {
|
|||||||
if (containment.invertH && overflows.h) {
|
if (containment.invertH && overflows.h) {
|
||||||
alignments = invertH(alignments)
|
alignments = invertH(alignments)
|
||||||
}
|
}
|
||||||
if (containment.inoverV && overflows.v) {
|
if (containment.invertV && overflows.v) {
|
||||||
alignments = invertV(alignments)
|
alignments = invertV(alignments)
|
||||||
}
|
}
|
||||||
childRect = calculatePosition(parentRect, childRect, alignments)
|
childRect = calculatePosition(parentRect, childRect, alignments)
|
||||||
|
@ -11,7 +11,6 @@ makeDragable(parent)
|
|||||||
let options = getOptions()
|
let options = getOptions()
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
console.log(options)
|
|
||||||
const { alignments, boxSizes, containment } = options
|
const { alignments, boxSizes, containment } = options
|
||||||
parent.style.width = boxSizes.parentWidth
|
parent.style.width = boxSizes.parentWidth
|
||||||
parent.style.height = boxSizes.parentHeight
|
parent.style.height = boxSizes.parentHeight
|
||||||
|
Loading…
x
Reference in New Issue
Block a user