Compare commits

..

2 Commits

Author SHA1 Message Date
Jawayria
916848577e fix: update release workflow 2022-05-13 18:21:44 +05:00
Jawayria
eb1eb84f56 chore!: Dropped support for Node 12 2022-05-13 18:20:27 +05:00
9 changed files with 3768 additions and 4562 deletions

View File

@@ -2,10 +2,10 @@ name: Default CI
on: on:
push: push:
branches: branches:
- master - 'master'
pull_request: pull_request:
branches: branches:
- '**' - '**'
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -29,8 +29,6 @@ jobs:
run: npm run lint run: npm run lint
- name: Test - name: Test
run: npm run test run: npm run test
- name: Build
run: npm run build
- name: i18n_extract - name: i18n_extract
run: npm run i18n_extract run: npm run i18n_extract
- name: Coverage - name: Coverage

View File

@@ -7,4 +7,4 @@ on:
jobs: jobs:
commitlint: commitlint:
uses: openedx/.github/.github/workflows/commitlint.yml@master uses: edx/.github/.github/workflows/commitlint.yml@master

View File

@@ -2,38 +2,38 @@ name: Release CI
on: on:
push: push:
branches: branches:
- master - master
jobs: jobs:
release: release:
name: Release name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Validate package-lock.json changes - name: Validate package-lock.json changes
run: make validate-no-uncommitted-package-lock-changes run: make validate-no-uncommitted-package-lock-changes
- name: Lint - name: Lint
run: npm run lint run: npm run lint
- name: Test - name: Test
run: npm run test run: npm run test
- name: i18n_extract - name: i18n_extract
run: npm run i18n_extract run: npm run i18n_extract
- name: Coverage - name: Coverage
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v2
- name: Build - name: Build
run: npm run build run: npm run build
- name: Release - name: Release
uses: cycjimmy/semantic-release-action@v2 uses: cycjimmy/semantic-release-action@v2
with: with:
semantic_version: 16 semantic_version: 16
env: env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}

View File

@@ -50,7 +50,7 @@ push_translations:
# Pulls translations from Transifex. # Pulls translations from Transifex.
pull_translations: pull_translations:
tx pull -t -f --mode reviewed --languages=$(transifex_langs) tx pull -f --mode reviewed --languages=$(transifex_langs)
# This target is used by Travis. # This target is used by Travis.
validate-no-uncommitted-package-lock-changes: validate-no-uncommitted-package-lock-changes:

View File

@@ -14,7 +14,7 @@ A generic header for Open edX micro-frontend applications.
Requirements Requirements
************ ************
This component uses ``@edx/frontend-platform`` services such as i18n, analytics, configuration, and the ``AppContext`` React component, and expects that it has been loaded into a micro-frontend that has been properly initialized via ``@edx/frontend-platform``'s ``initialize`` function. `Please visit the frontend template application to see an example. <https://github.com/openedx/frontend-template-application/blob/master/src/index.jsx>`_ This component uses ``@edx/frontend-platform`` services such as i18n, analytics, configuration, and the ``AppContext`` React component, and expects that it has been loaded into a micro-frontend that has been properly initialized via ``@edx/frontend-platform``'s ``initialize`` function. `Please visit the frontend template application to see an example. <https://github.com/edx/frontend-template-application/blob/master/src/index.jsx>`_
Environment Variables Environment Variables
===================== =====================
@@ -53,8 +53,8 @@ This library has the following exports:
Examples Examples
======== ========
* `An example of component and messages usage. <https://github.com/openedx/frontend-template-application/blob/3355bb3a96232390e9056f35b06ffa8f105ed7ca/src/index.jsx#L21>`_ * `An example of component and messages usage. <https://github.com/edx/frontend-template-application/blob/3355bb3a96232390e9056f35b06ffa8f105ed7ca/src/index.jsx#L21>`_
* `An example of SCSS file usage. <https://github.com/openedx/frontend-template-application/blob/3cd5485bf387b8c479baf6b02bf59e3061dc3465/src/index.scss#L8>`_ * `An example of SCSS file usage. <https://github.com/edx/frontend-template-application/blob/3cd5485bf387b8c479baf6b02bf59e3061dc3465/src/index.scss#L8>`_
*********** ***********

8182
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -24,19 +24,19 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/openedx/frontend-component-header.git" "url": "git+https://github.com/edx/frontend-component-header.git"
}, },
"author": "edX", "author": "edX",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"bugs": { "bugs": {
"url": "https://github.com/openedx/frontend-component-header/issues" "url": "https://github.com/edx/frontend-component-header/issues"
}, },
"homepage": "https://github.com/openedx/frontend-component-header#readme", "homepage": "https://github.com/edx/frontend-component-header#readme",
"devDependencies": { "devDependencies": {
"@edx/brand": "npm:@edx/brand-openedx@1.1.0", "@edx/brand": "npm:@edx/brand-openedx@1.1.0",
"@edx/frontend-build": "11.0.2", "@edx/frontend-build": "9.2.2",
"@edx/frontend-platform": "2.6.2", "@edx/frontend-platform": "1.15.1",
"@edx/paragon": "19.25.3", "@edx/paragon": "19.20.0",
"codecov": "3.8.3", "codecov": "3.8.3",
"enzyme": "3.11.0", "enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6", "enzyme-adapter-react-16": "1.15.6",
@@ -44,31 +44,31 @@
"prop-types": "15.8.1", "prop-types": "15.8.1",
"react": "16.14.0", "react": "16.14.0",
"react-dom": "16.14.0", "react-dom": "16.14.0",
"react-redux": "7.2.9", "react-redux": "7.2.8",
"react-router-dom": "5.3.4", "react-router-dom": "5.3.1",
"react-test-renderer": "16.14.0", "react-test-renderer": "16.14.0",
"reactifex": "1.1.1", "reactifex": "1.1.1",
"redux": "4.2.0", "redux": "4.2.0",
"redux-saga": "1.1.3", "redux-saga": "1.1.3",
"@testing-library/dom": "8.18.1", "@testing-library/dom": "7.31.2",
"@testing-library/jest-dom": "5.16.5", "@testing-library/jest-dom": "5.16.4",
"jest": "28.1.3", "jest": "27.5.1",
"jest-chain": "1.1.6", "jest-chain": "1.1.5",
"@testing-library/react": "10.4.9" "@testing-library/react": "10.4.9"
}, },
"dependencies": { "dependencies": {
"babel-polyfill": "6.26.0", "babel-polyfill": "6.26.0",
"react-responsive": "8.2.0", "react-responsive": "8.2.0",
"react-transition-group": "4.4.5", "react-transition-group": "4.4.2",
"@fortawesome/fontawesome-svg-core": "1.2.36", "@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-brands-svg-icons": "5.15.4", "@fortawesome/free-brands-svg-icons": "5.15.4",
"@fortawesome/free-regular-svg-icons": "5.15.4", "@fortawesome/free-regular-svg-icons": "5.15.4",
"@fortawesome/free-solid-svg-icons": "5.15.4", "@fortawesome/free-solid-svg-icons": "5.15.4",
"@fortawesome/react-fontawesome": "^0.2.0" "@fortawesome/react-fontawesome": "^0.1.14"
}, },
"peerDependencies": { "peerDependencies": {
"@edx/frontend-platform": "^2.0.0", "@edx/frontend-platform": "^1.8.0",
"@edx/paragon": ">= 7.0.0 < 21.0.0", "@edx/paragon": ">= 7.0.0 < 20.0.0",
"prop-types": "^15.5.10", "prop-types": "^15.5.10",
"react": "^16.9.0", "react": "^16.9.0",
"react-dom": "^16.9.0" "react-dom": "^16.9.0"

View File

@@ -1,33 +1,33 @@
{ {
"general.register.sentenceCase": "التسجيل", "general.register.sentenceCase": "التسجيل",
"general.signIn.sentenceCase": "تسجيل الدخول", "general.signIn.sentenceCase": "تسجيل الدخول",
"header.links.courses": "المساقات", "header.links.courses": "مساقات",
"header.links.programs": "البرامج", "header.links.programs": "برامج",
"header.links.content.search": "اكتشف الجديد", "header.links.content.search": "استكشف الجديد",
"header.links.schools": "المدارس و الشركاء", "header.links.schools": "المدارس والشركاء",
"header.user.menu.dashboard": "لوحة المعلومات", "header.user.menu.dashboard": "لوحة المعلومات",
"header.user.menu.profile": "الملف الشخصي", "header.user.menu.profile": "الملف الشخصي",
"header.user.menu.account.settings": "الحساب", "header.user.menu.account.settings": "حساب",
"header.user.menu.order.history": "سجل الطلبيات", "header.user.menu.order.history": "سجل الطلبات",
"header.user.menu.logout": "تسجيل الخروج", "header.user.menu.logout": "تسجيل الخروج",
"header.user.menu.login": "تسجيل الدخول", "header.user.menu.login": "تسجيل الدخول",
"header.user.menu.register": "التسجيل", "header.user.menu.register": "تسجيل ",
"header.user.menu.studio.home": "صفحة الاستوديو الرئيسية", "header.user.menu.studio.home": "Studio Home",
"header.user.menu.studio.maintenance": "الصيانة", "header.user.menu.studio.maintenance": "Maintenance",
"header.label.account.nav": "الحساب", "header.label.account.nav": "حساب",
"header.label.account.menu": "قائمة الحساب", "header.label.account.menu": "قائمة الحساب",
"header.label.account.menu.for": "قائمة حساب المستخدم {username}", "header.label.account.menu.for": "قائمة الحساب للمستخدم {username}",
"header.label.main.nav": "القا|مة الرئيسية", "header.label.main.nav": "الرئيسية",
"header.label.main.menu": "القائمة الرئيسية", "header.label.main.menu": "القائمة الرئيسية",
"header.label.main.header": "الرئيسية", "header.label.main.header": "الرئيسية",
"header.label.secondary.nav": "القائمة الثانوية", "header.label.secondary.nav": "فرعي",
"header.label.skip.nav": "التخطي إلى المحتوى الرئيسي", "header.label.skip.nav": "التخطي إلى المحتوى الرئيسي",
"header.label.app.nav": "تطبيق", "header.label.app.nav": "App",
"header.menu.dashboard.label": "لوحة المعلومات", "header.menu.dashboard.label": "لوحة المعلومات",
"header.help.label": "المساعدة", "header.help.label": "مساعدة",
"header.menu.profile.label": "الملف الشخصي", "header.menu.profile.label": "الملف الشخصي",
"header.menu.account.label": "الحساب", "header.menu.account.label": "حساب",
"header.menu.orderHistory.label": "سجل الطلبيات", "header.menu.orderHistory.label": "سجل الطلبات",
"header.navigation.skipNavLink": "التخطي إلى المحتوى الرئيسي", "header.navigation.skipNavLink": "التخطي إلى المحتوى الرئيسي",
"header.menu.signOut.label": "تسجيل الخروج" "header.menu.signOut.label": "تسجيل الخروج"
} }

View File

@@ -12,8 +12,8 @@
"header.user.menu.logout": "Cerrar sesión", "header.user.menu.logout": "Cerrar sesión",
"header.user.menu.login": "Login", "header.user.menu.login": "Login",
"header.user.menu.register": "Registrarse", "header.user.menu.register": "Registrarse",
"header.user.menu.studio.home": "Inicio Studio", "header.user.menu.studio.home": "Studio Home",
"header.user.menu.studio.maintenance": "Mantenimiento", "header.user.menu.studio.maintenance": "Maintenance",
"header.label.account.nav": "Cuenta", "header.label.account.nav": "Cuenta",
"header.label.account.menu": "Menú de la cuenta", "header.label.account.menu": "Menú de la cuenta",
"header.label.account.menu.for": "Menú de la cuenta para {username}", "header.label.account.menu.for": "Menú de la cuenta para {username}",
@@ -22,7 +22,7 @@
"header.label.main.header": "Principal", "header.label.main.header": "Principal",
"header.label.secondary.nav": "Secondary", "header.label.secondary.nav": "Secondary",
"header.label.skip.nav": "Ir al contenido principal", "header.label.skip.nav": "Ir al contenido principal",
"header.label.app.nav": "Aplicación", "header.label.app.nav": "App",
"header.menu.dashboard.label": "Panel de Control", "header.menu.dashboard.label": "Panel de Control",
"header.help.label": "Ayuda", "header.help.label": "Ayuda",
"header.menu.profile.label": "Perfil", "header.menu.profile.label": "Perfil",