Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optics and vertical space savings #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions src/components/LDN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
<Card v-bind:class="{ margined: true, highlight: isHighlighted }">
<template #content>
<div>
<i class="text-primary">{{ uri }} </i>
<i >Representation of {{ uri }} :</i>
</div>
<Divider />
<span v-if="!error" style="white-space: pre-line">
{{ ldn }}
</span>
<pre v-if="!error" class="text-primary" >{{ ldn }}</pre>
<span v-else style="color: red">
{{ error }}
</span>
</template>
<template #footer>
<!--
<Button
icon="pi pi-times"
label="Delete"
class="p-button-text p-button-rounded p-button-raised"
class="p-button-text p-button-rounded p-button-danger p-button-raised"
@click="deleteResource(uri, authFetch)"
/>
-->
</template>
<!-- <template #footer>

</template> -->
</Card>
</template>

Expand Down Expand Up @@ -111,7 +112,7 @@ export default defineComponent({
/* add 'border-color: transparent' if you wish no border to show initially */
}
.highlight {
-webkit-animation: borderBlink 1s step-end 3;
animation: borderBlink 1s step-end 3;
-webkit-animation: borderBlink 0.3s step-end 3;
animation: borderBlink 0.3s step-end 3;
}
</style>
</style>
8 changes: 7 additions & 1 deletion src/components/Messenger.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="grid">
<div class="grid" v-if="!versteckt">
<div class="col lg:col-6 lg:col-offset-3">
<div class="p-inputgroup">
<!-- list go here -->
Expand All @@ -9,6 +9,7 @@
@keyup.enter="sub"
/>
<Button @click="sub"> watch </Button>
<Button v-on:click="versteckt = true" > hide </Button>
</div>
</div>
</div>
Expand Down Expand Up @@ -43,6 +44,11 @@ import LDN from "@/components/LDN.vue";
export default defineComponent({
name: "Messenger",
components: { LDN },
data: function() {
return {
versteckt: false
}
},
async setup() {
// const toast = useToast();
const { authFetch } = useSolidSession();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/n3Extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const toTTL = (

// n3Writer.addQuads(n3Store.getQuads(null, null, null, null))
n3Writer.end((error, text) => (result = text));
return `# Parsed from underlying RDF graph.\n ${result}`;
return `${result}`;
};

/*
Expand Down