-
Notifications
You must be signed in to change notification settings - Fork 0
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 #14 from eodash/internal-widgets
Fix: Update Eodash
- Loading branch information
Showing
10 changed files
with
497 additions
and
647 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,27 @@ | ||
import { store } from "@eodash/eodash"; | ||
|
||
const { currentUrl } = store.states; | ||
/** | ||
* @type {import("@eodash/eodash").Widget} | ||
**/ | ||
export default { | ||
id: "Information", | ||
layout: { x: 9, y: 0, w: 3, h: 12 }, | ||
title: "Information", | ||
type: "web-component", | ||
widget: { | ||
link: () => import("@eox/stacinfo"), | ||
tagName: "eox-stacinfo", | ||
properties: { | ||
for: currentUrl, | ||
allowHtml: "true", | ||
styleOverride: | ||
"#properties li > .value {font-weight: normal !important;}", | ||
header: "[]", | ||
subheader: "[]", | ||
properties: '["description"]', | ||
featured: "[]", | ||
footer: "[]", | ||
}, | ||
}, | ||
}; |
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 was deleted.
Oops, something went wrong.
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,29 @@ | ||
<template> | ||
<v-card | ||
class="mx-auto d-flex flex-column overflow-auto fill-height" | ||
color="transparent" | ||
> | ||
<v-list lines="one" class="overflow-auto"> | ||
<v-list-item | ||
v-for="(link, idx) in stac" | ||
:key="idx" | ||
@click="getSelected(idx)" | ||
:title="link.title" | ||
> | ||
</v-list-item> | ||
</v-list> | ||
</v-card> | ||
</template> | ||
<script setup lang="ts"> | ||
import { store } from "@eodash/eodash"; | ||
import { storeToRefs } from "pinia"; | ||
const { stac, selectedStac } = storeToRefs(store.stac.useSTAcStore()); | ||
const { loadSelectedSTAC } = store.stac.useSTAcStore(); | ||
const getSelected = async (idx) => { | ||
const link = stac.value![idx]; | ||
await loadSelectedSTAC(link.href); | ||
console.log(selectedStac.value); | ||
}; | ||
</script> |
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