This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Item from "./item"; | |
import Muuri from "."; | |
// Type this!!! | |
export type DraggerEvent = any; | |
export interface EventListeners { | |
synchronize(): any; | |
layoutStart(items: Item[]): any; | |
layoutEnd(items: Item[]): any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<!-- Drop box --> | |
<div class="dropzone" | |
@dragover.prevent | |
@dragleave="dragleave" | |
@dragenter="dragenter" | |
@drop="drop" | |
ref="dropzone" | |
> | |
<!-- Box Label --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IPBInt(ip) { | |
const iparr = ip.split("."); | |
let bip = 0n; | |
for(let i=0;i<iparr.length;i++) { | |
bip = bip << 8n; | |
bip += BigInt(iparr[i]); | |
} | |
return bip; | |
} |
NewerOlder