Skip to content

Commit

Permalink
Merge branch 'dev', v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Apr 7, 2023
2 parents 7093887 + 5e570c4 commit eb16e30
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ implemented as a single page application (SPA) for ease of development and to
limit the overall number of catalog reads necessary when browsing (as catalogs
may be nested and do not necessarily contain references to their parents).

Version: **3.0.0-rc.1** (supports all STAC versions between 0.6.0 and 1.0.0)
Version: **3.0.0** (supports all STAC versions between 0.6.0 and 1.0.0)

This package has also been published to npm as [`@radiantearth/stac-browser`](https://www.npmjs.com/package/@radiantearth/stac-browser).

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@radiantearth/stac-browser",
"version": "3.0.0-rc.1",
"version": "3.0.0",
"description": "A full-fledged UI in Vue for browsing and searching static STAC catalogs and STAC APIs.",
"main": "src/main.js",
"scripts": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^10.1.0",
"@musement/iso-duration": "^1.0.0",
"@radiantearth/stac-fields": "1.0.0-rc.2",
"@radiantearth/stac-fields": "1.0.0",
"@radiantearth/stac-migrate": "~1.2.0",
"axios": "^1.2.0",
"bootstrap-vue": "^2.21.2",
Expand Down
4 changes: 3 additions & 1 deletion src/StacBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ export default {
}
// All other parameters should be appended to the main STAC requests
else {
params.localRequest = Utils.isObject(params.request) ? params.request : {};
if (!Utils.isObject(params.localRequest)) {
params.localRequest = {};
}
params.localRequest[key] = value;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/Catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export default {
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
overflow-wrap: anywhere;
text-align: left;
}
Expand Down Expand Up @@ -150,6 +151,7 @@ export default {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
overflow-wrap: anywhere;
text-align: left;
margin-bottom: 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default {
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
overflow-wrap: anywhere;
margin-bottom: 0.5rem;
}
Expand Down
6 changes: 6 additions & 0 deletions src/components/QueryableInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ export default {
methods: {
updateValue(evt) {
let val = Utils.isObject(evt) && 'target' in evt ? evt.target.value : evt;
if (typeof val === "string" && this.schemaTypes.includes('integer')) {
val = parseInt(val, 10);
}
else if (typeof val === "string" && this.schemaTypes.includes('number')) {
val = parseFloat(val);
}
this.$emit('update:value', val);
},
updateOperator(evt) {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/de/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"Path Template": "Pfad-Vorlage",
"Pending (waiting for activation)": "Ausstehend (wartet auf Aktivierung)",
"Percentage of valid pixels": "Prozentsatz der gültigen Pixel",
"Planet Labs Inc.": "Planet Labs Inc.",
"Planet Labs PBC": "Planet Labs PBC",
"Platform": "Plattform",
"Platform Altitude": "Höhe der Plattform",
"Point (at pixel center)": "Punkt (im Pixelzentrum)",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"Path Template": "Path Template",
"Pending (waiting for activation)": "Pending (waiting for activation)",
"Percentage of valid pixels": "Percentage of valid pixels",
"Planet Labs Inc.": "Planet Labs Inc.",
"Planet Labs PBC": "Planet Labs PBC",
"Platform": "Platform",
"Platform Altitude": "Platform Altitude",
"Point (at pixel center)": "Point (at pixel center)",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"Path Template": "Plantilla de la ruta (path)",
"Pending (waiting for activation)": "Pendiente (esperando activación)",
"Percentage of valid pixels": "Porcentaje de pixels válidos",
"Planet Labs Inc.": "Planet Labs Inc.",
"Planet Labs PBC": "Planet Labs PBC",
"Platform": "Plataforma",
"Platform Altitude": "Altitud de la plataforma",
"Point (at pixel center)": "Punto (en el centro del pixel)",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"Path Template": "Modèle de chemin d'accès",
"Pending (waiting for activation)": "En attente (en attente d'activation)",
"Percentage of valid pixels": "Pourcentage de pixels valides",
"Planet Labs Inc.": "Planet Labs Inc.",
"Planet Labs PBC": "Planet Labs PBC",
"Platform": "Plateforme",
"Platform Altitude": "Altitude de la plateforme",
"Point (at pixel center)": "Point (au centre du pixel)",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/it/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"Path Template": "Modello del percorso (path)",
"Pending (waiting for activation)": "In attesa di attivazione",
"Percentage of valid pixels": "Percentuale di pixel validi",
"Planet Labs Inc.": "Planet Labs Inc.",
"Planet Labs PBC": "Planet Labs PBC",
"Platform": "Piattaforma",
"Platform Altitude": "Altitudine della piattaforma",
"Point (at pixel center)": "Punto (al centro del pixel)",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/ro/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
"Path Template": "Șablon traseu",
"Pending (waiting for activation)": "În așteptare (se așteaptă activarea)",
"Percentage of valid pixels": "Procentul de pixeli valizi",
"Planet Labs Inc.": "Planet Labs Inc.",
"Planet Labs PBC": "Planet Labs PBC",
"Platform": "Platformă",
"Platform Altitude": "Altitudinea platformei",
"Point (at pixel center)": "Punct (în centrul pixelului)",
Expand Down
4 changes: 2 additions & 2 deletions src/rels.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const stacPagination = [
'previous',
];

// Queryables (old and new)
// Queryables
export const ogcQueryables = [
'queryables',
'queryables', // Old way in STAC (deprecated)
'http://www.opengis.net/def/rel/ogc/1.0/queryables',
];

Expand Down

0 comments on commit eb16e30

Please sign in to comment.