@@ -161,13 +175,21 @@
+
+
+
This class does not define any validation rules.
+
+
diff --git a/nuxt-app/components/SchemaRegistryItem.vue b/nuxt-app/components/SchemaRegistryItem.vue
index 19d1afe4..98f35c95 100644
--- a/nuxt-app/components/SchemaRegistryItem.vue
+++ b/nuxt-app/components/SchemaRegistryItem.vue
@@ -136,7 +136,7 @@ export default {
} else {
// View and send analytics
if (item && item.namespace && item.name) {
- this.$router.push("/view/" + item.namespace + "/" + item.name);
+ this.$router.push("/ns/" + item.namespace + "/" + item.name);
} else {
this.$swal.fire("Oops!", "Action not available for this item");
}
diff --git a/nuxt-app/pages/best-practices/index.vue b/nuxt-app/pages/best-practices/index.vue
index a5009fa3..604338f3 100644
--- a/nuxt-app/pages/best-practices/index.vue
+++ b/nuxt-app/pages/best-practices/index.vue
@@ -178,7 +178,7 @@
rel="nonreferrer"
>CD2H
) biomedical dataset metadata based on this
-
schema
structure.
@@ -240,7 +240,7 @@
Schema
- DatasetN3C ) dataset metadata based on this
- schema
structure.
@@ -327,7 +327,7 @@
Schema
|
- DatasetOutbreak.info
) COVID-19 epidimiology dataset metadata based on this
- schema
structure.
@@ -416,7 +416,7 @@
Schema
|
- DatasetNIAID Systems Biology
) dataset metadata based on this
- schema
structure.
@@ -516,7 +516,7 @@
Schema
|
- Dataset
@@ -248,6 +249,31 @@
:class="[valid ? 'bg-success' : 'bg-danger']"
>
+
@@ -599,6 +625,7 @@ export default {
fieldsleftRegistration: "fieldsLeft",
userInfo: "userInfo",
loading: "loading",
+ expandedWide: "expandUI",
}),
},
watch: {
@@ -613,6 +640,9 @@ export default {
startBulk() {
this.$store.commit("toggleBeginBulkRegistration");
},
+ toggleUI() {
+ this.$store.commit("toggleExpandUI");
+ },
checkOverriddenID(id) {
let self = this;
axios
diff --git a/nuxt-app/pages/markup-generator/index.vue b/nuxt-app/pages/markup-generator/index.vue
index 3ead4b85..b6db96cb 100644
--- a/nuxt-app/pages/markup-generator/index.vue
+++ b/nuxt-app/pages/markup-generator/index.vue
@@ -16,6 +16,7 @@ let route = useRoute();
let schema_namespaces = computed(() => store.getters.validationSchemaOptions);
let validation = computed(() => store.getters.getValidation);
+let expandedWide = computed(() => store.getters.expandUI);
let json = ref({});
let searchTerm = ref("");
@@ -25,6 +26,10 @@ function updateEditor() {
json.value = store.getters.getPreview;
}
+function toggleUI() {
+ store.commit("toggleExpandUI");
+}
+
useHead({
title: "DDE | Markup Generator",
meta: [
@@ -137,10 +142,13 @@ onMounted(() => {
-
+
-
+
+
- (Temporary Namespace)
+ (Temporary Namespace)
-
+
-
+
@@ -459,21 +461,6 @@
class="text-light fa-stack-1x"
/>
-
-
- Expand Properties
-
-
-
Validation
diff --git a/nuxt-app/pages/registry/index.vue b/nuxt-app/pages/registry/index.vue
index f0aa91cf..ec125cb8 100644
--- a/nuxt-app/pages/registry/index.vue
+++ b/nuxt-app/pages/registry/index.vue
@@ -28,15 +28,9 @@
Classes
- Visualize (), extend () and compare () available schema classes.
@@ -104,7 +98,7 @@
>
{{ def.namespace }}
' +
+ 'ript type="application/ld+json" >\n' +
JSON.stringify(metadata.value, null, 2) +
- "";
fileType = "text/plain";
fileName = "meta-download.txt";
@@ -119,9 +119,9 @@ function getMetadata(id) {
let txt =
"' +
+ 'ion/ld+json">\n' +
JSON.stringify(o, null, 2) +
- "<" +
+ "\n<" +
"/script>";
metadata_pure.value = o;
metadata_html.value = txt;
@@ -227,10 +227,9 @@ function copyScript(id) {
});
}
-function copyJsonToClipboard() {
- const jsonString = JSON.stringify(metadata_pure.value, null, 2); // Convert JSON object to a pretty-printed string
+function copyHTML() {
navigator.clipboard
- .writeText(jsonString)
+ .writeText(metadata_html.value)
.then(() => {
new Notify({
status: "success",
@@ -240,7 +239,7 @@ function copyJsonToClipboard() {
});
})
.catch((err) => {
- console.error("Error copying JSON to clipboard: ", err);
+ console.error("Error copying HTML to clipboard: ", err);
});
}
@@ -286,7 +285,7 @@ const schemaLink = computed(() => {
metadata.value["@type"].includes(":")
) {
let parts = metadata.value["@type"].split(":");
- return "/view/" + parts[0] + "/" + parts[1];
+ return "/ns/" + parts[0] + "/" + parts[1];
}
return false;
});
@@ -451,17 +450,12 @@ getMetadata(id);
Download HTMLDownload
Download Metadata Alone
- Copy Metadata AloneCopy
diff --git a/nuxt-app/pages/validator/index.vue b/nuxt-app/pages/validator/index.vue
index 296286f9..70413e57 100644
--- a/nuxt-app/pages/validator/index.vue
+++ b/nuxt-app/pages/validator/index.vue
@@ -4,7 +4,6 @@ import { reactive, computed, ref, onMounted } from "vue";
import { useStore } from "vuex";
import Notify from "simple-notify";
import { useRouter, useRoute } from "vue-router";
-import validator_img from "../../assets/img/validator.svg";
const { $swal } = useNuxtApp();
const store = useStore();
@@ -14,13 +13,13 @@ const runtimeConfig = useRuntimeConfig();
let errors = ref(false);
let valid = ref(false);
let expanded = ref(false);
-let expandedWide = ref(false);
let router = useRouter();
let route = useRoute();
let schema_namespaces = computed(() => store.getters.validationSchemaOptions);
let userInfo = computed(() => store.getters.userInfo);
let metaToValidate = computed(() => store.getters.getValidationMetadata);
+let expandedWide = computed(() => store.getters.expandUI);
let searchTerm = ref("");
@@ -32,6 +31,10 @@ function handleSubmit() {
getClassValidation(searchTerm.value);
}
+function toggleUI() {
+ store.commit("toggleExpandUI");
+}
+
useHead({
title: "DDE | Metadata Validator",
meta: [
@@ -335,6 +338,7 @@ onMounted(() => {
>
| |