diff --git a/.github/ISSUE_TEMPLATE/data-portal-request.md b/.github/ISSUE_TEMPLATE/data-portal-request.md index 4dd79811..492c68de 100644 --- a/.github/ISSUE_TEMPLATE/data-portal-request.md +++ b/.github/ISSUE_TEMPLATE/data-portal-request.md @@ -1,3 +1,12 @@ +--- +name: Data Portal Application +about: Request to add a portal to your project on the DDE. +title: Data Portal Application +labels: feature +assignees: marcodarko + +--- + dde ### Data Discovery Engine | Data Portal Application diff --git a/nuxt-app/assets/css/bootstrap.css b/nuxt-app/assets/css/bootstrap.css index b6fce3e9..203e5934 100644 --- a/nuxt-app/assets/css/bootstrap.css +++ b/nuxt-app/assets/css/bootstrap.css @@ -328,7 +328,7 @@ h3, h4, h5, h6 { - font-family: "Poppins" !important; + font-family: "Poppins" sans-serif !important; margin-bottom: 0.5rem; font-weight: 500; line-height: 1.2; diff --git a/nuxt-app/assets/css/styles.css b/nuxt-app/assets/css/styles.css index ed19c492..ded60ab8 100644 --- a/nuxt-app/assets/css/styles.css +++ b/nuxt-app/assets/css/styles.css @@ -1424,13 +1424,13 @@ pre code { vertical-align: middle; } .table-striped-main tbody tr:nth-of-type(odd) { - background-color: rgba(81, 187, 187, 0.2); + background-color: rgba(118, 100, 219, 0.2); } .table-striped-main tbody tr:nth-of-type(even) { background-color: rgba(187, 187, 187, 0.1); } .table-striped-sec tbody tr:nth-of-type(odd) { - background-color: rgba(169, 82, 187, 0.1); + background-color: rgba(112, 64, 189, 0.1); } .table-striped-sec tbody tr:nth-of-type(even) { background-color: rgba(187, 187, 187, 0.1); diff --git a/nuxt-app/components/QueryBox.vue b/nuxt-app/components/QueryBox.vue index fbf905c1..c81aba88 100644 --- a/nuxt-app/components/QueryBox.vue +++ b/nuxt-app/components/QueryBox.vue @@ -1,7 +1,7 @@
-
+
- - - + + ( - - + )
+
+ + + + + + + - + +
NameDescriptionExpected Type
-

- -

- Expected Type: @@ -148,8 +162,8 @@

@@ -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(() => {
-
+
Change View @@ -441,7 +443,7 @@
-
+
@@ -459,21 +461,6 @@ class="text-light fa-stack-1x" /> -
- -
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