From b652b037b960684f331d1b7894ccd4fd83d2d9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=82=D1=8C=D1=8F=D0=BD=D0=B0=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B5=D0=B2=D0=B0?= Date: Sun, 2 Jun 2024 21:06:38 +0300 Subject: [PATCH] add index.html --- index.html | 6 +++--- src/app.js | 1 + src/index.js | 1 - src/utils.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index ac0adef..101078e 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + RSS-agregator - +
@@ -26,7 +26,7 @@

RSS агрегатор

-

Пример: https://lorem-rss.hexlet.app/feed

+

Пример: https://lorem-rss.hexlet.app/feed

diff --git a/src/app.js b/src/app.js index a16564d..b1c0a57 100644 --- a/src/app.js +++ b/src/app.js @@ -1,4 +1,5 @@ import i18next from 'i18next'; +import 'bootstrap'; import * as yup from 'yup'; import axios from 'axios'; import validate, { createLink } from './utils.js'; diff --git a/src/index.js b/src/index.js index 0a1f3d8..d591786 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,4 @@ import './styles.scss'; -import 'bootstrap'; import app from './app.js'; app(); diff --git a/src/utils.js b/src/utils.js index 8482b63..2c3621b 100644 --- a/src/utils.js +++ b/src/utils.js @@ -15,6 +15,6 @@ export const createLink = (url) => { const originsUrl = new URL('https://allorigins.hexlet.app/get?'); originsUrl.searchParams.set('disableCache', 'true'); originsUrl.searchParams.set('url', url); - return originsUrl; + return originsUrl.toString(); }; export default validate;