-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Merge branch 'main' of https://github.com/teambtcmap/…
…btcmap.org"" This reverts commit 3b1252f.
- Loading branch information
1 parent
3b1252f
commit fc738ab
Showing
68 changed files
with
1,669 additions
and
431 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script> | ||
export let click; | ||
export let icon; | ||
export let text; | ||
</script> | ||
|
||
<button | ||
on:click={click} | ||
class="flex h-20 w-24 items-center justify-center rounded-lg border border-primary py-1 !text-primary transition-colors hover:border-link hover:!text-link dark:border-mapBorder dark:!text-white dark:hover:border-link dark:hover:!text-link" | ||
> | ||
<div> | ||
<svg width="30px" height="30px" class="mx-auto"> | ||
<use width="30px" height="30px" href="/icons/popup/spritesheet.svg#{icon}" /> | ||
</svg> | ||
<span class="mt-1 block text-center text-xs font-semibold">{text}</span> | ||
</div> | ||
</button> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<script> | ||
import Time from 'svelte-time'; | ||
import { Tip } from '$comp'; | ||
export let action; | ||
export let user; | ||
export let time; | ||
export let latest; | ||
$: profile = user['osm_json'] && user['osm_json']; | ||
$: regexMatch = profile && profile.description.match('(lightning:[^)]+)'); | ||
$: lightning = regexMatch && regexMatch[0].slice(10); | ||
$: username = profile ? profile['display_name'] : user; | ||
</script> | ||
|
||
<div | ||
class="items-center space-y-2 p-5 text-center text-xl lg:flex lg:space-x-5 lg:space-y-0 lg:text-left" | ||
> | ||
<!-- dot --> | ||
<span class="relative mx-auto mb-2 flex h-3 w-3 lg:mx-0 lg:mb-0"> | ||
<span | ||
class="{latest | ||
? 'animate-ping' | ||
: ''} absolute inline-flex h-full w-full rounded-full {action === 'create' | ||
? 'bg-created' | ||
: action === 'delete' | ||
? 'bg-deleted' | ||
: 'bg-link'} opacity-75" | ||
/> | ||
<span | ||
class="relative inline-flex h-3 w-3 rounded-full {action === 'create' | ||
? 'bg-created' | ||
: action === 'delete' | ||
? 'bg-deleted' | ||
: 'bg-link'}" | ||
/> | ||
</span> | ||
|
||
<div class="w-full flex-wrap items-center justify-between space-y-2 lg:flex lg:space-y-0"> | ||
<!-- event information --> | ||
<div class="space-y-2 lg:space-y-0"> | ||
<span class="text-primary dark:text-white lg:mr-5"> | ||
<!-- action --> | ||
<strong>{action.charAt(0).toUpperCase() + action.slice(1, action.length)}d</strong> | ||
|
||
<!-- user --> | ||
{#if username.length} | ||
by <a | ||
href="/tagger/{user.id}" | ||
class="block break-all text-link transition-colors hover:text-hover lg:inline" | ||
>{username} | ||
</a> | ||
{/if} | ||
</span> | ||
|
||
<!-- time ago --> | ||
<span | ||
class="block text-center font-semibold text-taggerTime lg:inline {lightning | ||
? 'lg:mr-5' | ||
: ''}" | ||
> | ||
<Time live={3000} relative timestamp={time} /> | ||
</span> | ||
</div> | ||
|
||
<!-- lightning tip button --> | ||
{#if lightning} | ||
<Tip destination={lightning} style="block lg:inline mx-auto lg:mx-0" /> | ||
{/if} | ||
</div> | ||
</div> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script> | ||
export let link; | ||
export let icon; | ||
export let text; | ||
</script> | ||
|
||
<a | ||
href={link} | ||
target="_blank" | ||
rel="noreferrer" | ||
class="flex h-20 w-24 items-center justify-center rounded-lg border border-primary py-1 !text-primary transition-colors hover:border-link hover:!text-link dark:border-mapBorder dark:!text-white dark:hover:border-link dark:hover:!text-link" | ||
> | ||
<div> | ||
<svg width="30px" height="30px" class="mx-auto"> | ||
<use width="30px" height="30px" href="/icons/popup/spritesheet.svg#{icon}" /> | ||
</svg> | ||
<span class="mt-1 block text-center text-xs font-semibold">{text}</span> | ||
</div> | ||
</a> |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.