Skip to content

Commit f1cd70b

Browse files
committed
Everything works except @courselit/web build
1 parent 3e08e88 commit f1cd70b

84 files changed

Lines changed: 1313 additions & 2988 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
module.exports = {
2-
"env": {
3-
"node": true,
4-
"jest": true
2+
env: {
3+
node: true,
4+
jest: true,
55
},
6-
"plugins": ["unused-imports"],
7-
"rules": {
8-
"no-console": ["error", {"allow": ["warn", "error"]}],
9-
"unused-imports/no-unused-imports": "error"
10-
}
11-
};
6+
plugins: ["unused-imports"],
7+
rules: {
8+
"no-console": ["error", { allow: ["warn", "error"] }],
9+
"unused-imports/no-unused-imports": "error",
10+
"@typescript-eslint/ban-ts-comment": "off",
11+
},
12+
};

LICENSE.md

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,23 @@ produce it from the Program, in the form of source code under the
204204
terms of section 4, provided that you also meet all of these
205205
conditions:
206206

207-
- a) The work must carry prominent notices stating that you modified
208-
it, and giving a relevant date.
209-
- b) The work must carry prominent notices stating that it is
210-
released under this License and any conditions added under
211-
section 7. This requirement modifies the requirement in section 4
212-
to "keep intact all notices".
213-
- c) You must license the entire work, as a whole, under this
214-
License to anyone who comes into possession of a copy. This
215-
License will therefore apply, along with any applicable section 7
216-
additional terms, to the whole of the work, and all its parts,
217-
regardless of how they are packaged. This License gives no
218-
permission to license the work in any other way, but it does not
219-
invalidate such permission if you have separately received it.
220-
- d) If the work has interactive user interfaces, each must display
221-
Appropriate Legal Notices; however, if the Program has interactive
222-
interfaces that do not display Appropriate Legal Notices, your
223-
work need not make them do so.
207+
- a) The work must carry prominent notices stating that you modified
208+
it, and giving a relevant date.
209+
- b) The work must carry prominent notices stating that it is
210+
released under this License and any conditions added under
211+
section 7. This requirement modifies the requirement in section 4
212+
to "keep intact all notices".
213+
- c) You must license the entire work, as a whole, under this
214+
License to anyone who comes into possession of a copy. This
215+
License will therefore apply, along with any applicable section 7
216+
additional terms, to the whole of the work, and all its parts,
217+
regardless of how they are packaged. This License gives no
218+
permission to license the work in any other way, but it does not
219+
invalidate such permission if you have separately received it.
220+
- d) If the work has interactive user interfaces, each must display
221+
Appropriate Legal Notices; however, if the Program has interactive
222+
interfaces that do not display Appropriate Legal Notices, your
223+
work need not make them do so.
224224

225225
A compilation of a covered work with other separate and independent
226226
works, which are not by their nature extensions of the covered work,
@@ -239,42 +239,42 @@ sections 4 and 5, provided that you also convey the machine-readable
239239
Corresponding Source under the terms of this License, in one of these
240240
ways:
241241

242-
- a) Convey the object code in, or embodied in, a physical product
243-
(including a physical distribution medium), accompanied by the
244-
Corresponding Source fixed on a durable physical medium
245-
customarily used for software interchange.
246-
- b) Convey the object code in, or embodied in, a physical product
247-
(including a physical distribution medium), accompanied by a
248-
written offer, valid for at least three years and valid for as
249-
long as you offer spare parts or customer support for that product
250-
model, to give anyone who possesses the object code either (1) a
251-
copy of the Corresponding Source for all the software in the
252-
product that is covered by this License, on a durable physical
253-
medium customarily used for software interchange, for a price no
254-
more than your reasonable cost of physically performing this
255-
conveying of source, or (2) access to copy the Corresponding
256-
Source from a network server at no charge.
257-
- c) Convey individual copies of the object code with a copy of the
258-
written offer to provide the Corresponding Source. This
259-
alternative is allowed only occasionally and noncommercially, and
260-
only if you received the object code with such an offer, in accord
261-
with subsection 6b.
262-
- d) Convey the object code by offering access from a designated
263-
place (gratis or for a charge), and offer equivalent access to the
264-
Corresponding Source in the same way through the same place at no
265-
further charge. You need not require recipients to copy the
266-
Corresponding Source along with the object code. If the place to
267-
copy the object code is a network server, the Corresponding Source
268-
may be on a different server (operated by you or a third party)
269-
that supports equivalent copying facilities, provided you maintain
270-
clear directions next to the object code saying where to find the
271-
Corresponding Source. Regardless of what server hosts the
272-
Corresponding Source, you remain obligated to ensure that it is
273-
available for as long as needed to satisfy these requirements.
274-
- e) Convey the object code using peer-to-peer transmission,
275-
provided you inform other peers where the object code and
276-
Corresponding Source of the work are being offered to the general
277-
public at no charge under subsection 6d.
242+
- a) Convey the object code in, or embodied in, a physical product
243+
(including a physical distribution medium), accompanied by the
244+
Corresponding Source fixed on a durable physical medium
245+
customarily used for software interchange.
246+
- b) Convey the object code in, or embodied in, a physical product
247+
(including a physical distribution medium), accompanied by a
248+
written offer, valid for at least three years and valid for as
249+
long as you offer spare parts or customer support for that product
250+
model, to give anyone who possesses the object code either (1) a
251+
copy of the Corresponding Source for all the software in the
252+
product that is covered by this License, on a durable physical
253+
medium customarily used for software interchange, for a price no
254+
more than your reasonable cost of physically performing this
255+
conveying of source, or (2) access to copy the Corresponding
256+
Source from a network server at no charge.
257+
- c) Convey individual copies of the object code with a copy of the
258+
written offer to provide the Corresponding Source. This
259+
alternative is allowed only occasionally and noncommercially, and
260+
only if you received the object code with such an offer, in accord
261+
with subsection 6b.
262+
- d) Convey the object code by offering access from a designated
263+
place (gratis or for a charge), and offer equivalent access to the
264+
Corresponding Source in the same way through the same place at no
265+
further charge. You need not require recipients to copy the
266+
Corresponding Source along with the object code. If the place to
267+
copy the object code is a network server, the Corresponding Source
268+
may be on a different server (operated by you or a third party)
269+
that supports equivalent copying facilities, provided you maintain
270+
clear directions next to the object code saying where to find the
271+
Corresponding Source. Regardless of what server hosts the
272+
Corresponding Source, you remain obligated to ensure that it is
273+
available for as long as needed to satisfy these requirements.
274+
- e) Convey the object code using peer-to-peer transmission,
275+
provided you inform other peers where the object code and
276+
Corresponding Source of the work are being offered to the general
277+
public at no charge under subsection 6d.
278278

279279
A separable portion of the object code, whose source code is excluded
280280
from the Corresponding Source as a System Library, need not be
@@ -350,23 +350,23 @@ Notwithstanding any other provision of this License, for material you
350350
add to a covered work, you may (if authorized by the copyright holders
351351
of that material) supplement the terms of this License with terms:
352352

353-
- a) Disclaiming warranty or limiting liability differently from the
354-
terms of sections 15 and 16 of this License; or
355-
- b) Requiring preservation of specified reasonable legal notices or
356-
author attributions in that material or in the Appropriate Legal
357-
Notices displayed by works containing it; or
358-
- c) Prohibiting misrepresentation of the origin of that material,
359-
or requiring that modified versions of such material be marked in
360-
reasonable ways as different from the original version; or
361-
- d) Limiting the use for publicity purposes of names of licensors
362-
or authors of the material; or
363-
- e) Declining to grant rights under trademark law for use of some
364-
trade names, trademarks, or service marks; or
365-
- f) Requiring indemnification of licensors and authors of that
366-
material by anyone who conveys the material (or modified versions
367-
of it) with contractual assumptions of liability to the recipient,
368-
for any liability that these contractual assumptions directly
369-
impose on those licensors and authors.
353+
- a) Disclaiming warranty or limiting liability differently from the
354+
terms of sections 15 and 16 of this License; or
355+
- b) Requiring preservation of specified reasonable legal notices or
356+
author attributions in that material or in the Appropriate Legal
357+
Notices displayed by works containing it; or
358+
- c) Prohibiting misrepresentation of the origin of that material,
359+
or requiring that modified versions of such material be marked in
360+
reasonable ways as different from the original version; or
361+
- d) Limiting the use for publicity purposes of names of licensors
362+
or authors of the material; or
363+
- e) Declining to grant rights under trademark law for use of some
364+
trade names, trademarks, or service marks; or
365+
- f) Requiring indemnification of licensors and authors of that
366+
material by anyone who conveys the material (or modified versions
367+
of it) with contractual assumptions of liability to the recipient,
368+
for any liability that these contractual assumptions directly
369+
impose on those licensors and authors.
370370

371371
All other non-permissive additional terms are considered "further
372372
restrictions" within the meaning of section 10. If the Program as you

apps/docs/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ npm create astro@latest -- --template docs
1010

1111
## Features
1212

13-
- **Full Markdown support**
14-
- **Responsive mobile-friendly design**
15-
- **Sidebar navigation**
16-
- **Search (powered by Algolia)**
17-
- **Multi-language i18n**
18-
- **Automatic table of contents**
19-
- **Automatic list of contributors**
20-
- ✅ (and, best of all) **dark mode**
13+
-**Full Markdown support**
14+
-**Responsive mobile-friendly design**
15+
-**Sidebar navigation**
16+
-**Search (powered by Algolia)**
17+
-**Multi-language i18n**
18+
-**Automatic table of contents**
19+
-**Automatic list of contributors**
20+
- ✅ (and, best of all) **dark mode**
2121

2222
## Commands Cheatsheet
2323

apps/docs/src/pages/en/communities/create.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Once you are signed in using an admin account, go to the dashboard by clicking o
3636

3737
If you are creating a paid community, you can set up various pricing plans:
3838

39-
- **Yearly**: Set a yearly subscription fee.
40-
- **Monthly**: Set a monthly subscription fee.
41-
- **One Time**: Offer a one-time payment option.
39+
- **Yearly**: Set a yearly subscription fee.
40+
- **Monthly**: Set a monthly subscription fee.
41+
- **One Time**: Offer a one-time payment option.
4242

4343
### Step 6: Save and Create
4444

@@ -49,9 +49,9 @@ If you are creating a paid community, you can set up various pricing plans:
4949

5050
Once your community is created, you can:
5151

52-
- **Add Members**: Invite or accept new members.
53-
- **Share Content**: Post updates, announcements, and multimedia content.
54-
- **Monitor Activity**: Keep track of member interactions and reported content.
52+
- **Add Members**: Invite or accept new members.
53+
- **Share Content**: Post updates, announcements, and multimedia content.
54+
- **Monitor Activity**: Keep track of member interactions and reported content.
5555

5656
## Stuck somewhere?
5757

apps/docs/src/pages/en/communities/manage-member-permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Managing member permissions is essential for controlling what actions members ca
2525
2626
### Important Notes
2727

28-
- **Review Regularly**: Regularly review and update user permissions to maintain a secure and well-managed community environment.
28+
- **Review Regularly**: Regularly review and update user permissions to maintain a secure and well-managed community environment.
2929

3030
## Stuck somewhere?
3131

apps/docs/src/pages/en/communities/manage-members.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Managing members in your community is essential for maintaining an active and en
5050

5151
## Membership Details
5252

53-
- **Subscription ID**: Unique identifier for the member's subscription (if available).
54-
- **Subscription Method**: The payment method used by the member (if available, e.g., Stripe).
55-
- **Status**: Current status of the member (Active, Pending, Rejected).
53+
- **Subscription ID**: Unique identifier for the member's subscription (if available).
54+
- **Subscription Method**: The payment method used by the member (if available, e.g., Stripe).
55+
- **Status**: Current status of the member (Active, Pending, Rejected).
5656

5757
## Stuck somewhere?
5858

apps/docs/src/pages/en/developers/manage-users.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ POST /api/user
2525

2626
### Request Headers
2727

28-
- `Content-Type: application/json`
29-
- `domain`: Your domain name
28+
- `Content-Type: application/json`
29+
- `domain`: Your domain name
3030

3131
### Request Body
3232

@@ -44,25 +44,25 @@ POST /api/user
4444

4545
Here are the possible values for the `permissions` array:
4646

47-
- `course:manage`
48-
- `course:manage_any`
49-
- `course:publish`
50-
- `course:enroll`
51-
- `media:manage`
52-
- `site:manage`
53-
- `setting:manage`
54-
- `user:manage`
55-
- `community:post`
56-
- `community:comment`
57-
- `community:manage`
47+
- `course:manage`
48+
- `course:manage_any`
49+
- `course:publish`
50+
- `course:enroll`
51+
- `media:manage`
52+
- `site:manage`
53+
- `setting:manage`
54+
- `user:manage`
55+
- `community:post`
56+
- `community:comment`
57+
- `community:manage`
5858

5959
### Response
6060

61-
- **200 OK**: User created successfully.
62-
- **400 Bad Request**: Missing or invalid parameters.
63-
- **401 Unauthorized**: Invalid API key.
64-
- **404 Not Found**: Domain not found.
65-
- **500 Internal Server Error**: An error occurred on the server.
61+
- **200 OK**: User created successfully.
62+
- **400 Bad Request**: Missing or invalid parameters.
63+
- **401 Unauthorized**: Invalid API key.
64+
- **404 Not Found**: Domain not found.
65+
- **500 Internal Server Error**: An error occurred on the server.
6666

6767
### Example
6868

apps/docs/src/pages/en/products/invite-customers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ layout: ../../../layouts/MainLayout.astro
66

77
You can invite customers to your published products. This comes in handy in certain situations, such as:
88

9-
- You collect the payments manually (or outside of CourseLit) and want to add customers manually afterward.
10-
- You want to gift a product to a customer.
9+
- You collect the payments manually (or outside of CourseLit) and want to add customers manually afterward.
10+
- You want to gift a product to a customer.
1111

1212
## Invite a customer
1313

apps/docs/src/pages/en/schools/set-up-payments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Receiving payments is effortless in CourseLit, and you get to keep 100% of what
88

99
CourseLit offers integrations with the following payment platforms:
1010

11-
- [Stripe](https://stripe.com)
12-
- [Razorpay](https://razorpay.com)
13-
- [Lemonsqueezy](https://lemonsqueezy.com) (Experimental)
11+
- [Stripe](https://stripe.com)
12+
- [Razorpay](https://razorpay.com)
13+
- [Lemonsqueezy](https://lemonsqueezy.com) (Experimental)
1414

1515
> A school can only have a single payment platform activated at a time.
1616

apps/docs/src/pages/en/self-hosting/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CourseLit is an open-source software and we make sure that hosting it is as easy
1212

1313
You should self host CourseLit, if you:
1414

15-
- want complete control of your data
16-
- want to host it behind a firewall for internal use
15+
- want complete control of your data
16+
- want to host it behind a firewall for internal use
1717

1818
### Self host CourseLit
1919

0 commit comments

Comments
 (0)