Skip to content

Commit

Permalink
Change ekaterinburg.io → ekaterinburg.city
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin authored Sep 10, 2023
1 parent 17d6416 commit c6bd28a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions client/api/articles/articles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { fetchApi } from 'api/utils/fetch';

export const articlesApi = {
getArticles: () =>
fetchApi('https://transport-cms.ekaterinburg.io/api/articles?fields=slug', {
fetchApi('https://transport-cms.ekaterinburg.city/api/articles?fields=slug', {
dataField: 'data',
}),
getArticle: (slug: string) =>
fetchApi(
`https://transport-cms.ekaterinburg.io/api/articles?filters[slug][$eq]=${encodeURIComponent(
`https://transport-cms.ekaterinburg.city/api/articles?filters[slug][$eq]=${encodeURIComponent(
slug,
)}`,
{ dataField: 'data' },
Expand Down
4 changes: 2 additions & 2 deletions client/api/main-page/main-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fetchApi } from 'api/utils/fetch';
export const MainPageApi = {
getCards: async () => {
return await fetchApi(
'https://transport-cms.ekaterinburg.io/api/cards/?populate=backgroundImage',
'https://transport-cms.ekaterinburg.city/api/cards/?populate=backgroundImage',
{ dataField: 'data' },
);
},
Expand Down Expand Up @@ -35,7 +35,7 @@ export const MainPageApi = {
},

getMarqueeItems: async () => {
return await fetchApi('https://transport-cms.ekaterinburg.io/api/marquees', {
return await fetchApi('https://transport-cms.ekaterinburg.city/api/marquees', {
dataField: 'data',
});
}
Expand Down
2 changes: 1 addition & 1 deletion client/components/MainPage/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function Card({
"--CardTitleBgrColor": titleBackground,
"--CardTitleUnderlineColor": titleColor && hexToRgb(titleColor),
"--CardBgrColor": backgroundColor,
"--CardBgrImage": backgroundImage && `url(https://transport-cms.ekaterinburg.io${backgroundImage})`,
"--CardBgrImage": backgroundImage && `url(https://transport-cms.ekaterinburg.city${backgroundImage})`,
"--CardSubtitleColor": titleColor
} as React.CSSProperties}
>
Expand Down
2 changes: 1 addition & 1 deletion client/components/Map/MainContainer/MapMainContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { MapWelcomeMessage } from 'components/Map/WelcomeMessage/MapWelcomeMessa
import styles from './MapMainContainer.module.css';
import 'leaflet/dist/leaflet.css';

const tileServerUrl = `https://tiles.ekaterinburg.io/styles/basic-white/{z}/{x}/{y}${
const tileServerUrl = `https://tiles.ekaterinburg.city/styles/basic-white/{z}/{x}/{y}${
devicePixelRatio > 1 ? '@2x' : ''
}.png`;

Expand Down
4 changes: 2 additions & 2 deletions client/pages/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default function Map() {
<>
<Head>
<title>Карта транспорта Екатеринбурга</title>
<link rel="preconnect" href="https://tiles.ekaterinburg.io" />
<link rel="preconnect" href="https://map-api.ekaterinburg.io" />
<link rel="preconnect" href="https://tiles.ekaterinburg.city" />
<link rel="preconnect" href="https://map-api.ekaterinburg.city" />
</Head>

<MapComponent />
Expand Down
2 changes: 1 addition & 1 deletion common/strapi/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/strapi/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const STRAPI_URL = 'https://transport-cms.ekaterinburg.io';
export const STRAPI_URL = 'https://transport-cms.ekaterinburg.city';
// email of Authenticated User
export const EMAIL = process.env.STRAPI_EMAIL;
// password of Authenticated User
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "transport",
"version": "1.0.0",
"homepage": "https://transport.ekaterinburg.io",
"homepage": "https://transport.ekaterinburg.city",
"license": "MIT",
"private": true,
"scripts": {
Expand Down

0 comments on commit c6bd28a

Please sign in to comment.