-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from ssciwr/new-custom-types
Implement a bunch of new custom data types
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script> | ||
import { fieldData } from "../../lib/easydbHelpers"; | ||
import { A } from "flowbite-svelte"; | ||
import { ArrowUpRightFromSquareOutline } from "flowbite-svelte-icons"; | ||
export let data; | ||
export let table; | ||
export let field; | ||
const fdata = fieldData(data, table, field); | ||
</script> | ||
|
||
<span class="easydb-custom-gnd"> | ||
{fdata.conceptName} | ||
<A href={fdata.conceptURI}> | ||
<ArrowUpRightFromSquareOutline class="w-4 h-4"/> | ||
</A> | ||
</span> |
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,7 @@ | ||
<script> | ||
import { easydbInstanceStore, systemidStore } from "../../lib/stores"; | ||
import { A } from "flowbite-svelte"; | ||
</script> | ||
|
||
MapBox visualization is not implemented in this viewer. Look at it in the <A href="{$easydbInstanceStore}/#/details/{$systemidStore.at(-1)}">EasyDB instance</A> instead. |
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,20 @@ | ||
<script> | ||
import { fieldData } from "../../lib/easydbHelpers"; | ||
import { A } from "flowbite-svelte"; | ||
import { ArrowUpRightFromSquareOutline } from "flowbite-svelte-icons"; | ||
export let data; | ||
export let table; | ||
export let field; | ||
const fdata = fieldData(data, table, field); | ||
</script> | ||
|
||
<span class="easydb-custom-getty"> | ||
{fdata.conceptName} | ||
<A href={fdata.conceptURI}> | ||
<ArrowUpRightFromSquareOutline class="w-4 h-4"/> | ||
</A> | ||
</span> | ||
|
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,16 @@ | ||
<script> | ||
import { fieldData } from "../../lib/easydbHelpers"; | ||
import { MapPinAltSolid } from "flowbite-svelte-icons"; | ||
export let data; | ||
export let table; | ||
export let field; | ||
const fdata = fieldData(data, table, field); | ||
</script> | ||
|
||
<div class="easydb-custom-location flex items-center"> | ||
<MapPinAltSolid class="w-12 h-12"/> | ||
{fdata.mapPosition.position.lat}, {fdata.mapPosition.position.lng} | ||
</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