Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gatsby Theme Onegeo
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OneGeo Suite
Libs
Gatsby Theme Onegeo
Commits
f808852d
Commit
f808852d
authored
1 year ago
by
Julien MARGAIL
Browse files
Options
Downloads
Patches
Plain Diff
add OGS_EXPLORER_PATH for Data component
parent
d04ebfa9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Data.tsx
+4
-4
4 additions, 4 deletions
src/components/Data.tsx
with
4 additions
and
4 deletions
src/components/Data.tsx
+
4
−
4
View file @
f808852d
...
...
@@ -17,6 +17,8 @@ interface Idata {
options
?:
any
}
const
EXPLORER_PATH
=
process
.
env
.
OGS_EXPLORER_PATH
||
"
/explorer
"
const
Data
=
(
props
:
Idata
)
=>
{
const
{
title
,
action
,
anime
,
layout
=
"
row
"
,
size
=
"
xs
"
}
=
props
const
options
=
props
.
options
??
{}
...
...
@@ -24,10 +26,8 @@ const Data = (props: Idata) => {
const
[
data
,
setData
]
=
useState
<
any
[]
>
([])
const
HOST
=
process
.
env
.
PF_URL
||
""
useEffect
(()
=>
{
fetch
(
`
${
HOST
}
/fr/indexer/elastic/_search/?request_cache=true
`
,
{
fetch
(
"
/fr/indexer/elastic/_search/?request_cache=true
"
,
{
method
:
"
POST
"
,
headers
:
new
Headers
({
"
Content-Type
"
:
"
application/json; charset=UTF-8
"
,
...
...
@@ -84,7 +84,7 @@ const Data = (props: Idata) => {
name
:
md
.
display_name
,
description
:
md
.
description
,
image
:
md
.
thumbnail
,
url
:
`
/portail
/fr/jeux-de-donnees/
${
url
}
`
,
url
:
`
${
EXPLORER_PATH
}
/fr/jeux-de-donnees/
${
url
}
`
,
size
:
size
,
// url: `/geoportal/#/context/Admin/${item.id}`,
anime
:
anime
||
options
.
anime
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment