From e4385576afb7b68814d8dec96320d31726b6e3f3 Mon Sep 17 00:00:00 2001 From: evie-8 Date: Fri, 6 Sep 2024 18:35:52 +0300 Subject: [PATCH] editing worklow file --- .github/workflows/deployment.yml | 8 +++---- package-lock.json | 26 +---------------------- src/components/Translate/index.js | 2 +- src/components/TranslateTextArea/index.js | 5 ++--- 4 files changed, 8 insertions(+), 33 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 64bdf07..6006c43 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -1,4 +1,4 @@ -name: Build and Deploy +name: Build-and-Deploy on: push: @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v4 - name: Install Packages - run: npm ci + run: npm i - name: Build env: @@ -27,8 +27,8 @@ jobs: REACT_APP_GA4_MEASUREMENT_ID: ${{ secrets.REACT_APP_GA4_MEASUREMENT_ID }} REACT_APP_FEEDBACK_URL: $ {{ secrets.REACT_APP_FEEDBACK_URL }} - run: npm run build - - name: Deploy 🚀 + run: CI=false npm run build + - name: Deploy uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages diff --git a/package-lock.json b/package-lock.json index d775055..e13b1bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6075,25 +6075,6 @@ "lodash.uniq": "^4.5.0" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001587", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz", - "integrity": "sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, "node_modules/case-sensitive-paths-webpack-plugin": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", @@ -23685,11 +23666,6 @@ "lodash.uniq": "^4.5.0" } }, - "caniuse-lite": { - "version": "1.0.30001587", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz", - "integrity": "sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA==" - }, "case-sensitive-paths-webpack-plugin": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", @@ -33477,4 +33453,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/src/components/Translate/index.js b/src/components/Translate/index.js index d2175bb..69a34a5 100644 --- a/src/components/Translate/index.js +++ b/src/components/Translate/index.js @@ -7,7 +7,7 @@ import { import TranslateTextArea from "../TranslateTextArea"; import { useEffect, useRef, useState, useCallback } from "react"; import { debounce } from "lodash"; -import { languageId, translateSB, sendFeedback } from "../../API"; +import { languageId, translateSB } from "../../API"; import SamplePhrases from "../SamplePhrases"; const localLangOptions = [ diff --git a/src/components/TranslateTextArea/index.js b/src/components/TranslateTextArea/index.js index 65fb7e4..8bf6de5 100644 --- a/src/components/TranslateTextArea/index.js +++ b/src/components/TranslateTextArea/index.js @@ -19,9 +19,8 @@ import LinearProgress from "@mui/material/LinearProgress"; import Feedback from "../Feedback"; import FeedbackImage from "../../images/feedback2.png"; // import Typewriter from "../Typewriter"; -import { ContentCopy, Feedback as FeedbackIcon } from "@mui/icons-material"; -import React, { useState, useEffect, useCallback } from "react"; -import { debounce } from "lodash"; +import { ContentCopy } from "@mui/icons-material"; +import React, { useState, useEffect } from "react"; const languageNames = { eng: "English",