Skip to content

Commit

Permalink
move note about describo desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolarosa committed Jan 10, 2024
1 parent bbb96da commit 14ddd77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
29 changes: 8 additions & 21 deletions src/components/Dashboard.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
</a>
</el-card>

<div class="bg-slate-200 rounded-lg px-6 py-10 text-center">
For a more full featured environment have a look at Describo Desktop:
<a href="https://describo.github.io/desktop" target="_blank" class="text-blue-800">
https://describo.github.io/desktop
</a>
</div>

<el-card>
<template #header> Select a folder of data to describe </template>
<div class="p-4 my-2">
Expand All @@ -34,32 +41,12 @@

<script setup>
import { ElCard, ElButton } from "element-plus";
import { loadFile as loadFileHandler, loadFolder as loadFolderHandler } from "./lib";
import { loadFolder as loadFolderHandler } from "./lib";
import { useStore } from "vuex";
import { useRouter } from "vue-router";
const $store = useStore();
const $router = useRouter();
// async function loadFile() {
// try {
// let { fileHandle, crate } = await loadFileHandler();
// if (!has(crate, "@context") || !has(crate, "@graph")) {
// console.log("not a crate file");
// throw new Error(`Not an RO Crate file`);
// }
// $store.commit("setFolder", { fileHandle });
// $store.commit("setCrate", crate);
// $router.push("/describe");
// } catch (error) {
// ElMessage({
// type: "error",
// message: `That doesn't look like an RO Crate file`,
// duration: 5000,
// center: true,
// });
// }
// }
async function loadFolder() {
try {
let { folderHandle, fileHandle, crate } = await loadFolderHandler();
Expand Down
12 changes: 0 additions & 12 deletions src/components/Navbar.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@
</a> -->
<img :src="describoLogo" class="h-20" />
</div>
<div class="bg-slate-100 py-2 px-8 rounded">
<div>
Try Describo Desktop:
<a
href="https://describo.github.io/#/desktop"
target="_blank"
class="text-blue-800"
>
https://describo.github.io/#/desktop
</a>
</div>
</div>

<div class="flex-grow"></div>
<div class="flex flex-col space-y-2 items-end">
Expand Down

0 comments on commit 14ddd77

Please sign in to comment.