@edx/frontend-plugin-learner-dashboard 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.dockerignore ADDED
@@ -0,0 +1,10 @@
1
+ node_modules
2
+ npm-debug.log
3
+ README.rst
4
+ LICENSE
5
+ .babelrc
6
+ .eslintignore
7
+ .eslintrc.json
8
+ .gitignore
9
+ .npmignore
10
+ commitlint.config.js
package/.env ADDED
@@ -0,0 +1,22 @@
1
+ NODE_ENV='production'
2
+ ACCESS_TOKEN_COOKIE_NAME=''
3
+ BASE_URL=''
4
+ CREDENTIALS_BASE_URL=''
5
+ CSRF_TOKEN_API_PATH=''
6
+ ECOMMERCE_BASE_URL=''
7
+ LANGUAGE_PREFERENCE_COOKIE_NAME=''
8
+ LMS_BASE_URL=''
9
+ LOGIN_URL=''
10
+ LOGOUT_URL=''
11
+ LOGO_URL=''
12
+ LOGO_TRADEMARK_URL=''
13
+ LOGO_WHITE_URL=''
14
+ FAVICON_URL=''
15
+ MARKETING_SITE_BASE_URL=''
16
+ ORDER_HISTORY_URL=''
17
+ REFRESH_ACCESS_TOKEN_ENDPOINT=''
18
+ SEGMENT_KEY=''
19
+ SITE_NAME=''
20
+ USER_INFO_COOKIE_NAME=''
21
+ APP_ID=''
22
+ MFE_CONFIG_API_URL=''
@@ -0,0 +1,23 @@
1
+ NODE_ENV='development'
2
+ PORT=8080
3
+ ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
4
+ BASE_URL='http://localhost:8080'
5
+ CREDENTIALS_BASE_URL='http://localhost:18150'
6
+ CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
7
+ ECOMMERCE_BASE_URL='http://localhost:18130'
8
+ LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
9
+ LMS_BASE_URL='http://localhost:18000'
10
+ LOGIN_URL='http://localhost:18000/login'
11
+ LOGOUT_URL='http://localhost:18000/logout'
12
+ LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
13
+ LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
14
+ LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
15
+ FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
16
+ MARKETING_SITE_BASE_URL='http://localhost:18000'
17
+ ORDER_HISTORY_URL='http://localhost:1996/orders'
18
+ REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
19
+ SEGMENT_KEY=''
20
+ SITE_NAME=localhost
21
+ USER_INFO_COOKIE_NAME='edx-user-info'
22
+ APP_ID=''
23
+ MFE_CONFIG_API_URL=''
package/.env.test ADDED
@@ -0,0 +1,21 @@
1
+ ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
2
+ BASE_URL='http://localhost:1995'
3
+ CREDENTIALS_BASE_URL='http://localhost:18150'
4
+ CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
5
+ ECOMMERCE_BASE_URL='http://localhost:18130'
6
+ LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
7
+ LMS_BASE_URL='http://localhost:18000'
8
+ LOGIN_URL='http://localhost:18000/login'
9
+ LOGOUT_URL='http://localhost:18000/logout'
10
+ LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
11
+ LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
12
+ LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
13
+ FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
14
+ MARKETING_SITE_BASE_URL='http://localhost:18000'
15
+ ORDER_HISTORY_URL='http://localhost:1996/orders'
16
+ REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
17
+ SEGMENT_KEY=''
18
+ SITE_NAME=localhost
19
+ USER_INFO_COOKIE_NAME='edx-user-info'
20
+ APP_ID=''
21
+ MFE_CONFIG_API_URL=''
package/.eslintrc.js ADDED
@@ -0,0 +1,4 @@
1
+ // eslint-disable-next-line import/no-extraneous-dependencies
2
+ const { createConfig } = require('@openedx/frontend-build');
3
+
4
+ module.exports = createConfig('eslint');
@@ -0,0 +1,19 @@
1
+ # Run the workflow that adds new tickets that are either:
2
+ # - labelled "DEPR"
3
+ # - title starts with "[DEPR]"
4
+ # - body starts with "Proposal Date" (this is the first template field)
5
+ # to the org-wide DEPR project board
6
+
7
+ name: Add newly created DEPR issues to the DEPR project board
8
+
9
+ on:
10
+ issues:
11
+ types: [opened]
12
+
13
+ jobs:
14
+ routeissue:
15
+ uses: openedx/.github/.github/workflows/add-depr-ticket-to-depr-board.yml@master
16
+ secrets:
17
+ GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }}
18
+ GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }}
19
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}
@@ -0,0 +1,20 @@
1
+ # This workflow runs when a comment is made on the ticket
2
+ # If the comment starts with "label: " it tries to apply
3
+ # the label indicated in rest of comment.
4
+ # If the comment starts with "remove label: ", it tries
5
+ # to remove the indicated label.
6
+ # Note: Labels are allowed to have spaces and this script does
7
+ # not parse spaces (as often a space is legitimate), so the command
8
+ # "label: really long lots of words label" will apply the
9
+ # label "really long lots of words label"
10
+
11
+ name: Allows for the adding and removing of labels via comment
12
+
13
+ on:
14
+ issue_comment:
15
+ types: [created]
16
+
17
+ jobs:
18
+ add_remove_labels:
19
+ uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master
20
+
@@ -0,0 +1,31 @@
1
+ name: Default CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - 'main'
6
+ pull_request:
7
+ branches:
8
+ - '**'
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+ - name: Setup Nodejs
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version-file: '.nvmrc'
22
+ - name: Install dependencies
23
+ run: npm ci
24
+ - name: Lint
25
+ run: npm run lint
26
+ - name: Test
27
+ run: npm run test
28
+ - name: Build
29
+ run: npm run build
30
+ - name: i18n_extract
31
+ run: npm run i18n_extract
@@ -0,0 +1,10 @@
1
+ # Run commitlint on the commit messages in a pull request.
2
+
3
+ name: Lint Commit Messages
4
+
5
+ on:
6
+ - pull_request
7
+
8
+ jobs:
9
+ commitlint:
10
+ uses: openedx/.github/.github/workflows/commitlint.yml@master
@@ -0,0 +1,13 @@
1
+ #check package-lock file version
2
+
3
+ name: Lockfile Version check
4
+
5
+ on:
6
+ push:
7
+ branches:
8
+ - main
9
+ pull_request:
10
+
11
+ jobs:
12
+ version-check:
13
+ uses: openedx/.github/.github/workflows/lockfileversion-check-v3.yml@master
@@ -0,0 +1,27 @@
1
+ name: Release
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ jobs:
7
+ release:
8
+ name: Release
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v2
13
+
14
+ - name: Setup Node.js
15
+ uses: actions/setup-node@v4
16
+ with:
17
+ node-version-file: '.nvmrc'
18
+
19
+ - name: Install dependencies
20
+ run: npm ci
21
+ - name: Test
22
+ run: npm run test
23
+ - name: Release
24
+ env:
25
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
+ NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
27
+ run: npx semantic-release
@@ -0,0 +1,12 @@
1
+ # This workflow runs when a comment is made on the ticket
2
+ # If the comment starts with "assign me" it assigns the author to the
3
+ # ticket (case insensitive)
4
+
5
+ name: Assign comment author to ticket if they say "assign me"
6
+ on:
7
+ issue_comment:
8
+ types: [created]
9
+
10
+ jobs:
11
+ self_assign_by_comment:
12
+ uses: openedx/.github/.github/workflows/self-assign-issue.yml@master
@@ -0,0 +1,12 @@
1
+ name: Update Browserslist DB
2
+ on:
3
+ schedule:
4
+ - cron: '0 0 * * 1'
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ update-browserslist:
9
+ uses: openedx/.github/.github/workflows/update-browserslist-db.yml@master
10
+
11
+ secrets:
12
+ requirements_bot_github_token: ${{ secrets.requirements_bot_github_token }}
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 20
package/.releaserc ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "branches": [
3
+ "main"
4
+ ],
5
+ "tagFormat": "v${version}",
6
+ "verifyConditions": [
7
+ "@semantic-release/npm",
8
+ {
9
+ "path": "@semantic-release/github",
10
+ "assets": {
11
+ "path": "dist/*"
12
+ }
13
+ }
14
+ ],
15
+ "analyzeCommits": "@semantic-release/commit-analyzer",
16
+ "generateNotes": "@semantic-release/release-notes-generator",
17
+ "prepare": "@semantic-release/npm",
18
+ "publish": [
19
+ "@semantic-release/npm",
20
+ {
21
+ "path": "@semantic-release/github",
22
+ "assets": {
23
+ "path": "dist/*"
24
+ }
25
+ }
26
+ ],
27
+ "success": [],
28
+ "fail": []
29
+ }