From 6694dae66aaf7a38207804503b88cda7d46cd95b Mon Sep 17 00:00:00 2001 From: gitea Date: Thu, 1 Aug 2024 09:00:50 +0000 Subject: [PATCH] revert cff05d1fb509f32ad2c7ab76111eadb8c02338fe revert fix(prod): unavailbale text into prod --- .drone.yml | 55 +----------------------- src/components/UnavailableText/index.tsx | 11 +---- src/features/App/index.tsx | 6 +-- 3 files changed, 5 insertions(+), 67 deletions(-) diff --git a/.drone.yml b/.drone.yml index fdac538f..e0fc8e13 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1059,57 +1059,4 @@ steps: - aws s3 sync build_insport_live s3://insports-live --delete - aws cloudfront create-invalidation --distribution-id E1LBC88VYP6XVB --paths "/*" depends_on: - - make-insport-live - ---- -kind: pipeline -type: docker -name: deploy insports.tv - -concurrency: - limit: 1 - -platform: - os: linux - arch: amd64 - -trigger: - ref: - - refs/heads/insports.tv - -steps: - - name: npm-install - image: node:16-alpine - environment: - REACT_APP_STRIPE_PK: - from_secret: REACT_APP_STRIPE_PK - commands: - - apk add --no-cache make - - npm install --legacy-peer-deps - - - name: make-prod - image: node:16-alpine - environment: - REACT_APP_STRIPE_PK: - from_secret: REACT_APP_STRIPE_PK - commands: - - apk add --no-cache make - - make prod - depends_on: - - npm-install - - - name: deploy-prod - image: amazon/aws-cli:latest - environment: - AWS_ACCESS_KEY_ID: - from_secret: AWS_ACCESS_KEY_ID - AWS_SECRET_ACCESS_KEY: - from_secret: AWS_SECRET_ACCESS_KEY - AWS_DEFAULT_REGION: - from_secret: AWS_DEFAULT_REGION - AWS_MAX_ATTEMPTS: 10 - commands: - - aws s3 sync build s3://insports-prod --delete - - aws cloudfront create-invalidation --distribution-id E3KY6BCU3AYHEW --paths "/*" - depends_on: - - make-prod \ No newline at end of file + - make-insport-live \ No newline at end of file diff --git a/src/components/UnavailableText/index.tsx b/src/components/UnavailableText/index.tsx index d9ab7494..e2cc3500 100644 --- a/src/components/UnavailableText/index.tsx +++ b/src/components/UnavailableText/index.tsx @@ -1,4 +1,3 @@ -/* eslint-disable max-len */ import styled from 'styled-components/macro' const Info = styled.p` @@ -9,18 +8,12 @@ const Info = styled.p` font-size: 1.5rem; ` -const EmailLink = styled.a` - margin-left: 10px; - color: white; -` - export const UnavailableText = () => ( - {/* The site is temporarily unavailable + The site is temporarily unavailable
El sitio está temporalmente fuera de servicio
- Сайт временно не доступен */} - The inSports TV streaming platform is discontinued. For queries, contact us at support@insports.tv + Сайт временно не доступен
) diff --git a/src/features/App/index.tsx b/src/features/App/index.tsx index 4348dd6d..21812be1 100644 --- a/src/features/App/index.tsx +++ b/src/features/App/index.tsx @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unused-vars */ import { Suspense, useEffect, @@ -73,11 +72,10 @@ const OTTApp = () => ( - {/* {isAvailable + {isAvailable && (date.getTime() < new Date(startDate).getTime() || date.getTime() > new Date(stopDate).getTime()) - ? (
) : ()} */} - + ? (
) : ()}