Compare commits
43 Commits
jawayria/d
...
v3.2.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02d081dd26 | ||
|
|
468acc80f0 | ||
|
|
90fdd13fbc | ||
|
|
faf1b8522a | ||
|
|
e8a28b09bc | ||
|
|
c611df3f69 | ||
|
|
ab371f1c3a | ||
|
|
fb2002a004 | ||
|
|
f955ec4434 | ||
|
|
d529e00d7b | ||
|
|
e0cbbf7da1 | ||
|
|
ba209fd050 | ||
|
|
ae7004e95d | ||
|
|
bf64a829cc | ||
|
|
1e1b06dfa5 | ||
|
|
469a93bd9c | ||
|
|
0645761f05 | ||
|
|
20e9881546 | ||
|
|
42b347058f | ||
|
|
b097535580 | ||
|
|
d06929ca2b | ||
|
|
0a9316c407 | ||
|
|
d7704799fe | ||
|
|
cc26f750e8 | ||
|
|
8ac22515a6 | ||
|
|
b4a8d0afdc | ||
|
|
c131842139 | ||
|
|
acf5398b31 | ||
|
|
871e35d53a | ||
|
|
c8fb2ded56 | ||
|
|
01ffe0b945 | ||
|
|
092c61dada | ||
|
|
cc43299932 | ||
|
|
9086b96313 | ||
|
|
86b9d4a061 | ||
|
|
36fd9cb89a | ||
|
|
5aec913cd6 | ||
|
|
5da9cc3ce4 | ||
|
|
97e8c69345 | ||
|
|
a410ec8ed6 | ||
|
|
7e197e2315 | ||
|
|
6373bc726f | ||
|
|
1ccf3214f0 |
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -2,16 +2,16 @@ 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
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [12, 14, 16]
|
node: [16]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -29,6 +29,8 @@ 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
|
||||||
|
|||||||
2
.github/workflows/commitlint.yml
vendored
2
.github/workflows/commitlint.yml
vendored
@@ -7,4 +7,4 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
commitlint:
|
commitlint:
|
||||||
uses: edx/.github/.github/workflows/commitlint.yml@master
|
uses: openedx/.github/.github/workflows/commitlint.yml@master
|
||||||
|
|||||||
60
.github/workflows/release.yml
vendored
60
.github/workflows/release.yml
vendored
@@ -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: 12
|
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 }}
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -50,7 +50,7 @@ push_translations:
|
|||||||
|
|
||||||
# Pulls translations from Transifex.
|
# Pulls translations from Transifex.
|
||||||
pull_translations:
|
pull_translations:
|
||||||
tx pull -f --mode reviewed --languages=$(transifex_langs)
|
tx pull -t -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:
|
||||||
|
|||||||
@@ -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/edx/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/openedx/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/edx/frontend-template-application/blob/3355bb3a96232390e9056f35b06ffa8f105ed7ca/src/index.jsx#L21>`_
|
* `An example of component and messages usage. <https://github.com/openedx/frontend-template-application/blob/3355bb3a96232390e9056f35b06ffa8f105ed7ca/src/index.jsx#L21>`_
|
||||||
* `An example of SCSS file usage. <https://github.com/edx/frontend-template-application/blob/3cd5485bf387b8c479baf6b02bf59e3061dc3465/src/index.scss#L8>`_
|
* `An example of SCSS file usage. <https://github.com/openedx/frontend-template-application/blob/3cd5485bf387b8c479baf6b02bf59e3061dc3465/src/index.scss#L8>`_
|
||||||
|
|
||||||
|
|
||||||
***********
|
***********
|
||||||
|
|||||||
8164
package-lock.json
generated
8164
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@@ -24,19 +24,19 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/edx/frontend-component-header.git"
|
"url": "git+https://github.com/openedx/frontend-component-header.git"
|
||||||
},
|
},
|
||||||
"author": "edX",
|
"author": "edX",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/edx/frontend-component-header/issues"
|
"url": "https://github.com/openedx/frontend-component-header/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/edx/frontend-component-header#readme",
|
"homepage": "https://github.com/openedx/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": "9.2.2",
|
"@edx/frontend-build": "11.0.2",
|
||||||
"@edx/frontend-platform": "1.15.1",
|
"@edx/frontend-platform": "2.6.2",
|
||||||
"@edx/paragon": "19.20.0",
|
"@edx/paragon": "19.25.3",
|
||||||
"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.8",
|
"react-redux": "7.2.9",
|
||||||
"react-router-dom": "5.3.1",
|
"react-router-dom": "5.3.4",
|
||||||
"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": "7.31.2",
|
"@testing-library/dom": "8.18.1",
|
||||||
"@testing-library/jest-dom": "5.16.4",
|
"@testing-library/jest-dom": "5.16.5",
|
||||||
"jest": "27.5.1",
|
"jest": "28.1.3",
|
||||||
"jest-chain": "1.1.5",
|
"jest-chain": "1.1.6",
|
||||||
"@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.2",
|
"react-transition-group": "4.4.5",
|
||||||
"@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.1.14"
|
"@fortawesome/react-fontawesome": "^0.2.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@edx/frontend-platform": "^1.8.0",
|
"@edx/frontend-platform": "^2.0.0",
|
||||||
"@edx/paragon": ">= 7.0.0 < 20.0.0",
|
"@edx/paragon": ">= 7.0.0 < 21.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"
|
||||||
|
|||||||
@@ -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": "Studio Home",
|
"header.user.menu.studio.home": "صفحة الاستوديو الرئيسية",
|
||||||
"header.user.menu.studio.maintenance": "Maintenance",
|
"header.user.menu.studio.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": "App",
|
"header.label.app.nav": "تطبيق",
|
||||||
"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": "تسجيل الخروج"
|
||||||
}
|
}
|
||||||
@@ -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": "Studio Home",
|
"header.user.menu.studio.home": "Inicio Studio",
|
||||||
"header.user.menu.studio.maintenance": "Maintenance",
|
"header.user.menu.studio.maintenance": "Mantenimiento",
|
||||||
"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": "App",
|
"header.label.app.nav": "Aplicación",
|
||||||
"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",
|
||||||
|
|||||||
Reference in New Issue
Block a user