Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/NFDI4Chem/nmrxiv int…
Browse files Browse the repository at this point in the history
…o development
  • Loading branch information
CS76 committed Dec 8, 2023
2 parents f61f25c + c519798 commit e82cc08
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 26 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/DatasetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public function all(Request $request)

/**
* @OA\Get(
* path="/api/v1/dataset/?id={id}",
* path="/api/v1/dataset/{id}",
* summary="Fetch nmrXiv public datasets based on identifier",
* description="Fetch details of nmrXiv public dataset based on identifier.",
* operationId="publicDataset",
* tags={"public"},
*
* @OA\Parameter(
* name="id",
* in="query",
* in="path",
* description="Public dataset identifier e.g. D12",
* required=true,
*
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public function all(Request $request)

/**
* @OA\Get(
* path="/api/v1/project/?id={id}",
* path="/api/v1/project/{id}",
* summary="Fetch nmrXiv public project based on identifier",
* description="Fetch details of nmrXiv public project based on identifier.",
* operationId="publicProject",
* tags={"public"},
*
* @OA\Parameter(
* name="id",
* in="query",
* in="path",
* description="Public project identifier e.g. P12",
* required=true,
*
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/StudyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public function all(Request $request)

/**
* @OA\Get(
* path="/api/v1/sample/?id={id}",
* path="/api/v1/sample/{id}",
* summary="Fetch nmrXiv public samples based on identifier",
* description="Fetch details of nmrXiv public sample based on identifier.",
* operationId="publicSample",
* tags={"public"},
*
* @OA\Parameter(
* name="id",
* in="query",
* in="path",
* description="Public sample identifier e.g. S12",
* required=true,
*
Expand Down
26 changes: 12 additions & 14 deletions resources/js/Shared/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<div
v-if="currentRefinement"
class="border rounded-md"
>
>
<span
v-if="
index.hits
Expand Down Expand Up @@ -366,7 +366,9 @@ export default {
return {
open,
onSelect(item) {
window.location = item.url;
if(item.url && item.url !== undefined){
window.location = item.url;
}
},
};
},
Expand All @@ -375,20 +377,20 @@ export default {
projects: [],
recent: [],
quickActions: [
{
name: "Ask a question...",
icon: DocumentPlusIcon,
shortcut: "N",
url: this.mailTo,
},
{
{
name: "Learn Spectral analysis...",
icon: TagIcon,
shortcut: "F",
url: "https://docs.nmrxiv.org",
},
// { name: "Add hashtag...", icon: HashtagIcon, shortcut: "H", url: "#" },
// { name: "Add label...", icon: TagIcon, shortcut: "L", url: "#" },
{
name: "For queries/feedback write to us at [email protected]",
icon: DocumentPlusIcon,
shortcut: "N",
url: "https://docs.nmrxiv.org/FAQs.html#how-to-reach-to-you",
},
],
selected: null,
department: "all",
Expand All @@ -400,11 +402,7 @@ export default {
computed: {
index() {
return this.$page.props.SCOUT_PREFIX + "projects";
},
mailTo() {
return "mailto:" + String(this.$page.props.mailFromAddress);
return this.$page.props.SCOUT_PREFIX + "projects" ;
},
},
Expand Down
12 changes: 6 additions & 6 deletions storage/api-docs/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
}
}
},
"/api/v1/dataset/?id={id}": {
"/api/v1/dataset/{id}": {
"get": {
"tags": [
"public"
Expand All @@ -226,7 +226,7 @@
"parameters": [
{
"name": "id",
"in": "query",
"in": "path",
"description": "Public dataset identifier e.g. D12",
"required": true,
"schema": {
Expand Down Expand Up @@ -265,7 +265,7 @@
}
}
},
"/api/v1/project/?id={id}": {
"/api/v1/project/{id}": {
"get": {
"tags": [
"public"
Expand All @@ -276,7 +276,7 @@
"parameters": [
{
"name": "id",
"in": "query",
"in": "path",
"description": "Public project identifier e.g. P12",
"required": true,
"schema": {
Expand Down Expand Up @@ -511,7 +511,7 @@
}
}
},
"/api/v1/sample/?id={id}": {
"/api/v1/sample/{id}": {
"get": {
"tags": [
"public"
Expand All @@ -522,7 +522,7 @@
"parameters": [
{
"name": "id",
"in": "query",
"in": "path",
"description": "Public sample identifier e.g. S12",
"required": true,
"schema": {
Expand Down

0 comments on commit e82cc08

Please sign in to comment.