-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'library-authoring/master' into rpenido/…
…fal-3600-merge-library-authoring
- Loading branch information
Showing
153 changed files
with
12,586 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,10 @@ LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' | |
LMS_BASE_URL='http://localhost:18000' | ||
LEARNING_BASE_URL='http://localhost:2000' | ||
LOGIN_URL='http://localhost:18000/login' | ||
LOGOUT_URL='http://localhost:18000/logout' | ||
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg | ||
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg | ||
LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg | ||
LOGOUT_URL='http://localhost:18000/logout' | ||
MARKETING_SITE_BASE_URL='http://localhost:18000' | ||
TERMS_OF_SERVICE_URL= | ||
PRIVACY_POLICY_URL= | ||
|
@@ -43,3 +43,7 @@ HOTJAR_VERSION=6 | |
HOTJAR_DEBUG=true | ||
INVITE_STUDENTS_EMAIL_TO="[email protected]" | ||
AI_TRANSLATIONS_BASE_URL='http://localhost:18760' | ||
SECURE_ORIGIN_XBLOCK_BOOTSTRAP_HTML_URL=/xblock-bootstrap.html | ||
BLOCKSTORE_COLLECTION_UUID=11111111-2111-4111-8111-111111111111 | ||
LIBRARY_LISTING_PAGINATION_PAGE_SIZE=50 | ||
ENABLE_ACCESSIBILITY_PAGE=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,9 @@ ENABLE_VIDEO_UPLOAD_PAGE_LINK_IN_CONTENT_DROPDOWN = true | |
ENABLE_TAGGING_TAXONOMY_PAGES = true | ||
BBB_LEARN_MORE_URL='' | ||
INVITE_STUDENTS_EMAIL_TO="[email protected]" | ||
SECURE_ORIGIN_XBLOCK_BOOTSTRAP_HTML_URL=/xblock-bootstrap.html | ||
BLOCKSTORE_COLLECTION_UUID=null | ||
LIBRARY_LISTING_PAGINATION_PAGE_SIZE=50 | ||
TERMS_OF_SERVICE_URL= | ||
PRIVACY_POLICY_URL= | ||
ENABLE_ACCESSIBILITY_PAGE=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: node_js CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Nodejs Env | ||
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV | ||
- name: Setup Nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VER }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Package lock check | ||
run: make validate-no-uncommitted-package-lock-changes | ||
|
||
- name: Extract i18n | ||
run: npm run i18n_extract | ||
|
||
- name: Lint | ||
run: npm run lint -- --max-warnings 0 | ||
|
||
- name: Test | ||
run: npm run test | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run Coverage | ||
uses: codecov/codecov-action@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# The following users are the maintainers of all frontend-app-library-authoring files | ||
* @openedx/teaching-and-learning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file records information about this repo. Its use is described in OEP-55: | ||
# https://open-edx-proposals.readthedocs.io/en/latest/processes/oep-0055-proc-project-maintainers.html | ||
|
||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: 'frontend-app-library-authoring' | ||
description: "The frontend (MFE) for Open edX Content Library Authoring" | ||
links: | ||
- url: "https://github.com/openedx/frontend-app-library-authoring" | ||
title: "Frontend app library authoring" | ||
icon: "Web" | ||
annotations: | ||
openedx.org/arch-interest-groups: "" | ||
spec: | ||
owner: group:teaching-and-learning | ||
type: 'website' | ||
lifecycle: 'experimental' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
import { Col } from '@edx/paragon'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const LoadingPage = ({ loadingMessage }) => ( | ||
<Col | ||
xs={12} | ||
className="justify-content-center d-flex" | ||
style={{ | ||
height: '50vh', | ||
}} | ||
> | ||
<div className="spinner-border text-primary text-center align-self-center" role="status"> | ||
{loadingMessage && ( | ||
<span className="sr-only"> | ||
{loadingMessage} | ||
</span> | ||
)} | ||
</div> | ||
</Col> | ||
); | ||
|
||
LoadingPage.propTypes = { | ||
loadingMessage: PropTypes.string.isRequired, | ||
}; | ||
|
||
export const LoadGuard = ({ condition, children, loadingMessage }) => ( | ||
<> | ||
{condition && children()} | ||
{condition || <LoadingPage loadingMessage={loadingMessage} />} | ||
</> | ||
); | ||
|
||
export default LoadingPage; | ||
|
||
LoadGuard.propTypes = { | ||
loadingMessage: PropTypes.string.isRequired, | ||
children: PropTypes.func.isRequired, | ||
// eslint-disable-next-line react/forbid-prop-types | ||
condition: PropTypes.any.isRequired, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { FormattedMessage } from '@edx/frontend-platform/i18n'; | ||
|
||
const NotFoundPage = () => ( | ||
<div className="container-fluid d-flex py-5 justify-content-center align-items-start text-center"> | ||
<p className="my-0 py-5 text-muted" style={{ maxWidth: '32em' }}> | ||
<FormattedMessage | ||
id="error.notfound.message" | ||
defaultMessage="The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again." | ||
description="error message when a page does not exist" | ||
/> | ||
</p> | ||
</div> | ||
); | ||
|
||
export default NotFoundPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as LoadingPage } from './LoadingPage'; | ||
export { default as NotFoundPage } from './NotFoundPage'; |
Oops, something went wrong.