Skip to content

Commit 72381a7

Browse files
authored
chore: remove UnitTranslationPlugin (#1352)
* chore: remove UnitTranslationPlugin * chore: add plugin slot for sequence
1 parent 75f56ea commit 72381a7

36 files changed

+9
-1937
lines changed

.env

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
NODE_ENV='production'
55

66
ACCESS_TOKEN_COOKIE_NAME=''
7-
AI_TRANSLATIONS_URL=''
87
BASE_URL=''
98
CONTACT_URL=''
109
CREDENTIALS_BASE_URL=''

.env.development

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
NODE_ENV='development'
55

66
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
7-
AI_TRANSLATIONS_URL='http://localhost:18760'
87
BASE_URL='http://localhost:2000'
98
CONTACT_URL='http://localhost:18000/contact'
109
CREDENTIALS_BASE_URL='http://localhost:18150'

.env.test

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
NODE_ENV='test'
55

66
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
7-
AI_TRANSLATIONS_URL='http://localhost:18760'
87
BASE_URL='http://localhost:2000'
98
CONTACT_URL='http://localhost:18000/contact'
109
CREDENTIALS_BASE_URL='http://localhost:18150'

example.env.config.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import UnitTranslationPlugin from '@plugins/UnitTranslationPlugin';
1+
import UnitTranslationPlugin from '@edx/unit-translation-selector-plugin';
22
import { PLUGIN_OPERATIONS, DIRECT_PLUGIN } from '@openedx/frontend-plugin-framework';
33

44
// Load environment variables from .env file

jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const config = createConfig('jest', {
1515
// See https://stackoverflow.com/questions/72382316/jest-encountered-an-unexpected-token-react-markdown
1616
'react-markdown': '<rootDir>/node_modules/react-markdown/react-markdown.min.js',
1717
'@src/(.*)': '<rootDir>/src/$1',
18-
'@plugins/(.*)': '<rootDir>/plugins/$1',
1918
},
2019
testTimeout: 30000,
2120
globalSetup: "./global-setup.js",

plugins/README.md

-17
This file was deleted.

plugins/UnitTranslationPlugin/__snapshots__/index.test.jsx.snap

-29
This file was deleted.

plugins/UnitTranslationPlugin/data/api.js

-90
This file was deleted.

plugins/UnitTranslationPlugin/data/api.test.js

-125
This file was deleted.

0 commit comments

Comments
 (0)