You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>`_
18
37
38
+
19
39
Environment Variables
20
-
=====================
40
+
====================
21
41
22
42
* ``LMS_BASE_URL`` - The URL of the LMS of your Open edX instance.
23
43
* ``LOGOUT_URL`` - The URL of the API endpoint which performs a user logout.
@@ -32,19 +52,42 @@ Environment Variables
32
52
menu items when truthy. This is intended to be used in micro-frontends like
33
53
frontend-app-authentication in which these menus are considered distractions from the user's task.
34
54
35
-
************
36
55
Installation
37
-
************
56
+
============
38
57
39
58
To install this header into your Open edX micro-frontend, run the following command in your MFE:
40
59
41
60
``npm i --save @edx/frontend-component-header``
42
61
43
62
This will make the component available to be imported into your application.
The current version of the micro-frontend build scripts support node 18.
77
+
Using other major versions of node *may* work, but this is unsupported. For
78
+
convenience, this repository includes an .nvmrc file to help in setting the
79
+
correct node version via `nvm <https://github.com/nvm-sh/nvm>`_.
80
+
81
+
3. Install npm dependencies:
82
+
83
+
``cd frontend-component-header && npm ci``
84
+
85
+
4. Start the dev server:
86
+
87
+
``npm start``
88
+
46
89
Usage
47
-
*****
90
+
=====
48
91
49
92
This library has the following exports:
50
93
@@ -58,10 +101,8 @@ Examples
58
101
* `An example of component and messages usage. <https://github.com/openedx/frontend-template-application/blob/3355bb3a96232390e9056f35b06ffa8f105ed7ca/src/index.jsx#L21>`_
59
102
* `An example of SCSS file usage. <https://github.com/openedx/frontend-template-application/blob/3cd5485bf387b8c479baf6b02bf59e3061dc3465/src/index.scss#L8>`_
60
103
61
-
62
-
***********
63
104
Development
64
-
***********
105
+
===========
65
106
66
107
Install dependencies::
67
108
@@ -75,6 +116,63 @@ Build a production distribution::
75
116
76
117
npm run build
77
118
119
+
License
120
+
=======
121
+
122
+
The code in this repository is licensed under the AGPLv3 unless otherwise
123
+
noted.
124
+
125
+
Please see `LICENSE <LICENSE>`_ for details.
126
+
127
+
Contributing
128
+
============
129
+
130
+
Contributions are very welcome. Please read `How To Contribute`_ for details.
131
+
132
+
.. _How To Contribute: https://openedx.org/r/how-to-contribute
133
+
134
+
This project is currently accepting all types of contributions, bug fixes,
135
+
security fixes, maintenance work, or new features. However, please make sure
136
+
to have a discussion about your new feature idea with the maintainers prior to
137
+
beginning development to maximize the chances of your change being accepted.
138
+
You can start a conversation by creating a new issue on this repo summarizing
139
+
your idea.
140
+
141
+
Getting Help
142
+
===========
143
+
144
+
If you're having trouble, we have discussion forums at
145
+
https://discuss.openedx.org where you can connect with others in the community.
146
+
147
+
Our real-time conversations are on Slack. You can request a `Slack
148
+
invitation`_, then join our `community Slack workspace`_. Because this is a
149
+
frontend repository, the best place to discuss it would be in the `#wg-frontend
150
+
channel`_.
151
+
152
+
For anything non-trivial, the best path is to open an issue in this repository
153
+
with as many details about the issue you are facing as you can provide.
0 commit comments