Skip to content

Commit 896d9e5

Browse files
committed
Update ohm domain
1 parent 4acc659 commit 896d9e5

File tree

4 files changed

+28
-31
lines changed

4 files changed

+28
-31
lines changed

src/components/changeset/open_in.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { isMobile } from '../../utils';
66
function openEditor(selected, camera) {
77
let baseUrl;
88
if (selected && selected[0].value === 'iD') {
9-
baseUrl = 'https://www.openstreetmap.org/edit?editor=id&';
9+
baseUrl = 'https://www.openhistoricalmap.org/edit?editor=id&';
1010
}
1111
if (selected && selected[0].value === 'Rapid') {
1212
baseUrl = 'https://rapideditor.org/edit?';
@@ -39,7 +39,7 @@ export function OpenIn({ display, changesetId, camera, className }) {
3939
{
4040
label: 'JOSM',
4141
value: 'JOSM',
42-
href: `http://127.0.0.1:8111/import?url=https://www.openstreetmap.org/api/0.6/changeset/${changesetId}/download`
42+
href: `http://127.0.0.1:8111/import?url=https://www.openhistoricalmap.org/api/0.6/changeset/${changesetId}/download`
4343
},
4444
{
4545
label: 'Level0',
@@ -65,15 +65,15 @@ export function OpenIn({ display, changesetId, camera, className }) {
6565
options.unshift({
6666
label: 'OSM.org',
6767
value: 'OSM.org',
68-
href: `https://www.openstreetmap.org/changeset/${changesetId}`
68+
href: `https://www.openhistoricalmap.org/changeset/${changesetId}`
6969
});
7070
}
7171

7272
return (
7373
<div className={`select-container ${className}`}>
7474
<Dropdown
75-
onAdd={() => {}}
76-
onRemove={() => {}}
75+
onAdd={() => { }}
76+
onRemove={() => { }}
7777
value={[]}
7878
onChange={value => openEditor(value, camera)}
7979
options={options}

src/components/element_info.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function ElementInfo({ changeset, action, token, setHighlight }) {
3636
return (
3737
<div className="element-info">
3838
<h2>
39-
<a href={`https://www.openstreetmap.org/${id}`}>{id}</a>
39+
<a href={`https://www.openhistoricalmap.org/${id}`}>{id}</a>
4040
{' was '}
4141
{actionPhrase}
4242
</h2>
@@ -70,7 +70,7 @@ function HistoryDropdown({ id }) {
7070
let options = [
7171
{
7272
label: 'OSM',
73-
href: `https://www.openstreetmap.org/${id}/history`
73+
href: `https://www.openhistoricalmap.org/${id}/history`
7474
},
7575
{
7676
label: 'Deep History',
@@ -97,11 +97,11 @@ function OpenInDropdown({ id }) {
9797
let options = [
9898
{
9999
label: 'OSM',
100-
href: `https://www.openstreetmap.org/${id}`
100+
href: `https://www.openhistoricalmap.org/${id}`
101101
},
102102
{
103103
label: 'iD',
104-
href: `https://www.openstreetmap.org/edit?editor=id&${id.replace(
104+
href: `https://www.openhistoricalmap.org/edit?editor=id&${id.replace(
105105
'/',
106106
'='
107107
)}`

src/views/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const OPENSTREETMAP_CARTO_STYLE = {
4747
],
4848
tileSize: 256,
4949
attribution:
50-
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
50+
'© <a href="https://www.openhistoricalmap.org/copyright">OpenStreetMap</a> contributors'
5151
}
5252
},
5353
layers: [

src/views/navbar_changeset.js

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type propsType = {
3535
username: ?string,
3636
lastKeyStroke: Map<string, *>,
3737
handleChangesetModifyTag: (number, Map<string, *>, Object, boolean) => mixed,
38-
handleChangesetModifyHarmful: (number, Map<string, *>, boolean | -1) => mixed
38+
handleChangesetModifyHarmful: (number, Map < string, *>, boolean | -1) => mixed
3939
};
4040

4141
class NavbarChangeset extends React.PureComponent<void, propsType, *> {
@@ -70,7 +70,7 @@ class NavbarChangeset extends React.PureComponent<void, propsType, *> {
7070
}
7171
case OPEN_IN_JOSM.label: {
7272
if (!this.props.changesetId) return;
73-
const url = `http://127.0.0.1:8111/import?url=https://www.openstreetmap.org/api/0.6/changeset/${this.props.changesetId}/download`;
73+
const url = `http://127.0.0.1:8111/import?url=https://www.openhistoricalmap.org/api/0.6/changeset/${this.props.changesetId}/download`;
7474
window.open(url, '_blank');
7575
break;
7676
}
@@ -84,14 +84,14 @@ class NavbarChangeset extends React.PureComponent<void, propsType, *> {
8484
]);
8585
if (!coordinates) return;
8686

87-
let url = `https://www.openstreetmap.org/edit?changeset=${this.props.changesetId}`;
87+
let url = `https://www.openhistoricalmap.org/edit?changeset=${this.props.changesetId}`;
8888
url += `#map=15/${coordinates.get('0')}/${coordinates.get('1')}`;
8989
window.open(url, '_blank');
9090
break;
9191
}
9292
case OPEN_IN_OSM.label: {
9393
if (!this.props.changesetId) return;
94-
const url = `https://www.openstreetmap.org/changeset/${this.props.changesetId}`;
94+
const url = `https://www.openhistoricalmap.org/changeset/${this.props.changesetId}`;
9595
window.open(url, '_blank');
9696
break;
9797
}
@@ -151,14 +151,12 @@ class NavbarChangeset extends React.PureComponent<void, propsType, *> {
151151

152152
return (
153153
<Navbar
154-
className={`bg-gray-faint color-gray border-b border--gray-light border--1 ${
155-
mobile ? '' : 'px30'
156-
}`}
154+
className={`bg-gray-faint color-gray border-b border--gray-light border--1 ${mobile ? '' : 'px30'
155+
}`}
157156
title={
158157
<div
159-
className={`flex-parent flex-parent--row flex-parent--wrap ${
160-
mobile ? 'align-items--center' : ''
161-
}`}
158+
className={`flex-parent flex-parent--row flex-parent--wrap ${mobile ? 'align-items--center' : ''
159+
}`}
162160
>
163161
{mobile && (
164162
<Link
@@ -194,7 +192,7 @@ class NavbarChangeset extends React.PureComponent<void, propsType, *> {
194192
</svg>
195193
</span>
196194
<a
197-
href={`https://www.openstreetmap.org/changeset/${this.props.changesetId}`}
195+
href={`https://www.openhistoricalmap.org/changeset/${this.props.changesetId}`}
198196
target="_blank"
199197
rel="noopener noreferrer"
200198
title="See on OSM"
@@ -211,9 +209,8 @@ class NavbarChangeset extends React.PureComponent<void, propsType, *> {
211209
changesetId={this.props.changesetId}
212210
display={
213211
mobile
214-
? `${this.isChecked() ? '' : 'Changeset'} ${
215-
this.props.changesetId
216-
}`
212+
? `${this.isChecked() ? '' : 'Changeset'} ${this.props.changesetId
213+
}`
217214
: 'Open with'
218215
}
219216
camera={this.props.camera}
@@ -228,13 +225,13 @@ class NavbarChangeset extends React.PureComponent<void, propsType, *> {
228225
'properties',
229226
'check_user'
230227
]) && (
231-
<Tags
232-
changesetId={this.props.changesetId}
233-
currentChangeset={this.props.currentChangeset}
234-
disabled={false}
235-
handleChangesetModifyTag={this.props.handleChangesetModifyTag}
236-
/>
237-
)}
228+
<Tags
229+
changesetId={this.props.changesetId}
230+
currentChangeset={this.props.currentChangeset}
231+
disabled={false}
232+
handleChangesetModifyTag={this.props.handleChangesetModifyTag}
233+
/>
234+
)}
238235
<Verify
239236
changeset={this.props.currentChangeset}
240237
placeholder="Verify"

0 commit comments

Comments
 (0)