Refactoring rrweb-player (#26)

* enable drag and drop in controller

* setup svelte v3 workflow and entry point

* add ts eslint config and do compatibility fallbacks in API

* rewrite replayer in svelte v3

* fix css import

* fix fullscreen API
This commit is contained in:
yz-yu
2020-08-09 13:35:25 +08:00
committed by GitHub
parent d92bc733df
commit 7aa760e731
16 changed files with 2436 additions and 645 deletions

View File

@@ -1,12 +1,9 @@
<div class="switch" class:disabled="disabled">
<input
type="checkbox"
id="{id}"
bind:checked="checked"
disabled="{disabled}"
/>
<label for="{id}"></label> <span class="label">{label}</span>
</div>
<script lang="ts">
export let disabled: boolean;
export let checked: boolean;
export let id: string;
export let label: string;
</script>
<style>
.switch {
@@ -74,3 +71,9 @@
left: 1.1em;
}
</style>
<div class="switch" class:disabled>
<input type="checkbox" {id} bind:checked {disabled} />
<label for={id} />
<span class="label">{label}</span>
</div>