diff --git a/.esdoc.json b/.esdoc.json index 4d236594..99f1efa6 100644 --- a/.esdoc.json +++ b/.esdoc.json @@ -35,7 +35,7 @@ "title": "Coriolis", "description": "Coriolis Shipyard for Elite Dangerous", "repository": "https://github.com/EDCD/coriolis", - "site": "https://coriolis.edcd.io", + "site": "https://coriolis.io", "author": "https://github.com/edcd", "image": "./src/images/logo/192x192.png" } @@ -81,7 +81,7 @@ "title": "Coriolis", "description": "Coriolis Shipyard for Elite Dangerous", "repository": "https://github.com/EDCD/coriolis", - "site": "https://coriolis.edcd.io", + "site": "https://coriolis.io", "author": "https://github.com/edcd", "image": "./src/images/logo/192x192.png" } @@ -100,4 +100,4 @@ } } ] -} \ No newline at end of file +} diff --git a/package.json b/package.json index a507a9ff..f937daee 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/EDCD/coriolis" }, - "homepage": "https://coriolis.edcd.io", + "homepage": "https://coriolis.io", "bugs": "https://github.com/EDCD/coriolis/issues", "private": true, "engine": "node >= 4.8.1", diff --git a/src/app/i18n/en.json b/src/app/i18n/en.json index a5a7d71b..1d45fcb9 100644 --- a/src/app/i18n/en.json +++ b/src/app/i18n/en.json @@ -238,6 +238,7 @@ "rof": "Rate of fire", "angle": "Scan angle", "scanrate": "Scan rate", + "proberadius": "Probe Radius", "scantime": "Scan time", "shield": "Shield", "armour": "Armour", diff --git a/src/app/pages/Page.jsx b/src/app/pages/Page.jsx index 57f17ae2..37174da9 100644 --- a/src/app/pages/Page.jsx +++ b/src/app/pages/Page.jsx @@ -70,6 +70,13 @@ export default class Page extends React.Component { document.title = this.state.title || 'Coriolis'; } + /** + * Update the window title upon mount + */ + componentDidMount() { + document.title = this.state.title || 'Coriolis'; + } + /** * Updates the title upon change * @param {Object} newProps Incoming properties diff --git a/src/app/shipyard/Serializer.js b/src/app/shipyard/Serializer.js index 566d5c30..d7b7836f 100644 --- a/src/app/shipyard/Serializer.js +++ b/src/app/shipyard/Serializer.js @@ -85,12 +85,12 @@ export function toDetailedBuild(buildName, ship) { code = ship.toString(); let data = { - $schema: 'https://coriolis.edcd.io/schemas/ship-loadout/4.json#', + $schema: 'https://coriolis.io/schemas/ship-loadout/4.json#', name: buildName, ship: ship.name, references: [{ name: 'Coriolis.io', - url: 'https://coriolis.edcd.io' + outfitURL(ship.id, code, buildName), + url: 'https://coriolis.io' + outfitURL(ship.id, code, buildName), code, shipId: ship.id }], diff --git a/src/app/shipyard/StatsFormatting.js b/src/app/shipyard/StatsFormatting.js index 8effaa36..3cbb66fd 100644 --- a/src/app/shipyard/StatsFormatting.js +++ b/src/app/shipyard/StatsFormatting.js @@ -78,5 +78,6 @@ export const STATS_FORMATTING = { 'thermres': { 'format': 'pct' }, 'wepcap': { 'format': 'round1', 'unit': 'MJ' }, 'weprate': { 'format': 'round1', 'unit': 'MW' }, - 'jumpboost': { 'format': 'round1', 'unit': 'LY' } + 'jumpboost': { 'format': 'round1', 'unit': 'LY' }, + 'proberadius': { 'format': 'pct1', 'unit': 'pct' }, }; diff --git a/src/schemas/ship-loadout/1.json b/src/schemas/ship-loadout/1.json index 375b233c..497e1f49 100644 --- a/src/schemas/ship-loadout/1.json +++ b/src/schemas/ship-loadout/1.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://coriolis.edcd.io/schemas/ship-loadout/1.json#", + "id": "https://coriolis.io/schemas/ship-loadout/1.json#", "title": "Ship Loadout", "type": "object", "description": "The details for a specific ship build/loadout. DEPRECATED in favor of Version 3", diff --git a/src/schemas/ship-loadout/2.json b/src/schemas/ship-loadout/2.json index e24d1651..981ff460 100644 --- a/src/schemas/ship-loadout/2.json +++ b/src/schemas/ship-loadout/2.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://coriolis.edcd.io/schemas/ship-loadout/2.json#", + "id": "https://coriolis.io/schemas/ship-loadout/2.json#", "title": "Ship Loadout", "type": "object", "description": "The details for a specific ship build/loadout. DEPRECATED in favor of Version 3", diff --git a/src/schemas/ship-loadout/3.json b/src/schemas/ship-loadout/3.json index 516d14db..15a919b8 100644 --- a/src/schemas/ship-loadout/3.json +++ b/src/schemas/ship-loadout/3.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://coriolis.edcd.io/schemas/ship-loadout/3.json#", + "id": "https://coriolis.io/schemas/ship-loadout/3.json#", "title": "Ship Loadout", "type": "object", "description": "The details for a specific ship build/loadout", diff --git a/src/schemas/ship-loadout/4.json b/src/schemas/ship-loadout/4.json index 7dcc1987..6766d3ac 100644 --- a/src/schemas/ship-loadout/4.json +++ b/src/schemas/ship-loadout/4.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "id": "https://coriolis.edcd.io/schemas/ship-loadout/4.json#", + "id": "https://coriolis.io/schemas/ship-loadout/4.json#", "title": "Ship Loadout", "type": "object", "description": "The details for a specific ship build/loadout",