Skip to content

Commit 9778b38

Browse files
committed
replace stacindex with a freva instances list
1 parent 8f717cc commit 9778b38

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

.freva/catalogs.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"id": 1,
4+
"url": "https://www.freva.dkrz.de/stac/api/",
5+
"slug": "freva-dev",
6+
"title": "Freva Development Instance",
7+
"summary": "This is a development instance of the Freva STAC API. It is used for testing and development purposes.",
8+
"access": "public",
9+
"created": "2020-09-02T19:21:50.464Z",
10+
"updated": "2020-09-02T19:21:50.464Z",
11+
"isPrivate": false,
12+
"isApi": true,
13+
"accessInfo": null
14+
}
15+
]

.github/workflows/actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
node-version: 'lts/*'
1313
- uses: actions/checkout@v4
1414
- run: npm install
15-
- run: npm run build -- --catalogUrl="https://www.freva.dkrz.de/stac/api/" --pathPrefix="/stac-browser-freva/" --historyMode=hash
15+
- run: npm run build -- --pathPrefix="/stac-browser-freva/" --historyMode=hash
1616
- uses: peaceiris/actions-gh-pages@v3
1717
with:
1818
github_token: ${{ secrets.GITHUB_TOKEN }}

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const TITLE = "Free Evaluation System Framework (Freva) - STAC API";
22
module.exports = {
33
catalogUrl: "https://www.freva.dkrz.de/",
44
catalogTitle: TITLE,
5-
allowExternalAccess: false,
5+
allowExternalAccess: true,
66
allowedDomains: [
77
"dkrz.de"
88
],

src/locales/en/texts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"api": "API",
135135
"catalog": "Catalog",
136136
"load": "Load",
137-
"selectStacIndex": "... or select one from {stacIndex}:",
137+
"selectStacIndex": "... or select one Freva instance from the following list:",
138138
"specifyCatalog": "Please specify a STAC Catalog or API...",
139139
"urlInvalid": "The URL is invalid.",
140140
"urlMissingHost": "The URL is missing a host.",

src/views/SelectDataSource.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default {
8585
this.$store.commit('resetCatalog', true);
8686
// Load entries from STAC Index
8787
try {
88-
let response = await axios.get('https://stacindex.org/api/catalogs');
88+
let response = await axios.get('https://raw.githubusercontent.com/FREVA-CLINT/stac-browser-freva/refs/heads/deployment/.freva/catalogs.json');
8989
if(Array.isArray(response.data)) {
9090
this.stacIndex = response.data;
9191
}

0 commit comments

Comments
 (0)