From 11dc7feeb363e80ff100b15bd75ddcd711c41b65 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sun, 23 Nov 2025 14:09:29 +0300 Subject: [PATCH] Add and check licensing information --- .github/workflows/docker.yml | 4 + .github/workflows/lint.yml | 12 +- .gitignore | 6 +- CONTRIBUTING.md | 10 + Dockerfile | 8 + LICENSES/MPL-2.0.txt | 373 ++++++++++++++++++ README.md | 10 + REUSE.toml | 9 + docker-compose.yaml | 8 + entrypoint.sh | 8 + lewa/accounts/__init__.py | 7 + lewa/accounts/admin.py | 8 + lewa/accounts/apps.py | 8 + lewa/accounts/forms.py | 8 + lewa/accounts/migrations/__init__.py | 7 + lewa/accounts/models.py | 8 + lewa/accounts/tests.py | 8 + lewa/accounts/views.py | 8 + lewa/core/__init__.py | 7 + lewa/core/admin.py | 10 +- lewa/core/apps.py | 8 + lewa/core/migrations/0001_initial.py | 8 + lewa/core/migrations/__init__.py | 7 + lewa/core/models.py | 8 + lewa/core/templates/core/about.html | 10 + lewa/core/templates/core/index.html | 12 +- lewa/core/templates/core/languages.html | 10 + lewa/core/templates/core/leaderboard.html | 12 +- lewa/core/templates/core/pronunciation.html | 10 + lewa/core/templates/core/typing.html | 10 + lewa/core/templates/core/writing_systems.html | 10 + lewa/core/tests.py | 8 + lewa/core/urls.py | 8 + lewa/core/views.py | 10 +- lewa/lewa-data/languages/cm-bax.toml | 8 + lewa/lewa-data/languages/cm-ewo.toml | 8 + lewa/lewa-data/languages/cm-fmp.toml | 8 + lewa/lewa-data/languages/et-am.toml | 8 + lewa/lewa-data/writing_systems/bamun.toml | 8 + lewa/lewa-data/writing_systems/gacl.toml | 10 +- lewa/lewa-data/writing_systems/geez.toml | 10 +- lewa/lewa/__init__.py | 7 + lewa/lewa/asgi.py | 8 + lewa/lewa/settings.py | 8 + lewa/lewa/urls.py | 8 + lewa/lewa/wsgi.py | 8 + lewa/manage.py | 8 + lewa/static/core/css/style.css | 9 + lewa/static/core/js/base.js | 10 + lewa/static/core/js/keyboard.js | 10 + lewa/static/core/js/typing.js | 10 + .../core/layout/qwerty-latin.json.license | 3 + lewa/templates/403_csrf.html | 10 + lewa/templates/404.html | 10 + lewa/templates/500.html | 10 + lewa/templates/_base.html | 10 + lewa/templates/account/account_inactive.html | 10 + lewa/templates/account/base.html | 10 + lewa/templates/account/email.html | 10 + lewa/templates/account/email_confirm.html | 10 + lewa/templates/account/login.html | 10 + lewa/templates/account/logout.html | 10 + lewa/templates/account/password_change.html | 10 + lewa/templates/account/password_reset.html | 10 + .../account/password_reset_done.html | 10 + .../account/password_reset_from_key.html | 10 + .../account/password_reset_from_key_done.html | 10 + lewa/templates/account/password_set.html | 10 + lewa/templates/account/signup.html | 10 + lewa/templates/account/signup_closed.html | 10 + lewa/templates/account/verification_sent.html | 10 + .../account/verified_email_required.html | 10 + lewa/templates/base.html | 10 + nginx.conf | 8 + pyproject.toml | 6 + 75 files changed, 1023 insertions(+), 8 deletions(-) create mode 100644 LICENSES/MPL-2.0.txt create mode 100644 REUSE.toml create mode 100644 lewa/static/core/layout/qwerty-latin.json.license diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 669ddb9..664b69b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + name: CI docker on: workflow_dispatch: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2d96394..c6df4ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + name: CI lint on: workflow_dispatch: @@ -17,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ruff djlint + pip install ruff djlint scancode-toolkit # Update output format to enable automatic inline annotations. - name: Run Ruff run: | @@ -27,3 +31,9 @@ jobs: run: | djlint --lint lewa djlint --check lewa + - name: Run scancode-toolkit + run: | + scancode -n `nproc` --json-pp - --license --copyright . + - name: Run REUSE + run: | + reuse lint diff --git a/.gitignore b/.gitignore index 4c1d230..a840e38 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] @@ -175,4 +179,4 @@ cython_debug/ # Vim *.sw[pon] -staticfiles \ No newline at end of file +staticfiles diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dfc82b3..f6e4308 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,13 @@ + + # Contributing Thank you for help improving Lewa. All kinds of contributions are welcome. diff --git a/Dockerfile b/Dockerfile index 3bce95c..d5f1edd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + FROM python:3.13-slim-bookworm AS builder COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ diff --git a/LICENSES/MPL-2.0.txt b/LICENSES/MPL-2.0.txt new file mode 100644 index 0000000..a612ad9 --- /dev/null +++ b/LICENSES/MPL-2.0.txt @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/README.md b/README.md index d69e6f0..77ff949 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ + + lewa === diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..47a37b9 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,9 @@ +version = 1 + +# Computer generated file. +[[annotations]] +path = [ + "uv.lock", +] +SPDX-FileCopyrightText = "2025 Brady Fomegne and contributors" +SPDX-License-Identifier = "MPL-2.0" diff --git a/docker-compose.yaml b/docker-compose.yaml index e282cff..513f808 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + services: lewa-web: image: lewa diff --git a/entrypoint.sh b/entrypoint.sh index 47c36b6..aa6edd2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #!/usr/bin/sh PATH="$PATH:.venv/bin/" diff --git a/lewa/accounts/__init__.py b/lewa/accounts/__init__.py index e69de29..c37851d 100644 --- a/lewa/accounts/__init__.py +++ b/lewa/accounts/__init__.py @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. diff --git a/lewa/accounts/admin.py b/lewa/accounts/admin.py index 93afce1..0081a3c 100644 --- a/lewa/accounts/admin.py +++ b/lewa/accounts/admin.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + from django.contrib import admin from django.contrib.auth.admin import UserAdmin diff --git a/lewa/accounts/apps.py b/lewa/accounts/apps.py index ea6c7a3..4ca394e 100644 --- a/lewa/accounts/apps.py +++ b/lewa/accounts/apps.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + from django.apps import AppConfig diff --git a/lewa/accounts/forms.py b/lewa/accounts/forms.py index 489f44a..3013853 100644 --- a/lewa/accounts/forms.py +++ b/lewa/accounts/forms.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + from django.contrib.auth.forms import AdminUserCreationForm, UserChangeForm from .models import CustomUser diff --git a/lewa/accounts/migrations/__init__.py b/lewa/accounts/migrations/__init__.py index e69de29..c37851d 100644 --- a/lewa/accounts/migrations/__init__.py +++ b/lewa/accounts/migrations/__init__.py @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. diff --git a/lewa/accounts/models.py b/lewa/accounts/models.py index 7e2db39..0f1f68d 100644 --- a/lewa/accounts/models.py +++ b/lewa/accounts/models.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + from django.contrib.auth.models import AbstractUser diff --git a/lewa/accounts/tests.py b/lewa/accounts/tests.py index a39b155..da46be4 100644 --- a/lewa/accounts/tests.py +++ b/lewa/accounts/tests.py @@ -1 +1,9 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # Create your tests here. diff --git a/lewa/accounts/views.py b/lewa/accounts/views.py index 60f00ef..43ba1d3 100644 --- a/lewa/accounts/views.py +++ b/lewa/accounts/views.py @@ -1 +1,9 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # Create your views here. diff --git a/lewa/core/__init__.py b/lewa/core/__init__.py index e69de29..c37851d 100644 --- a/lewa/core/__init__.py +++ b/lewa/core/__init__.py @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. diff --git a/lewa/core/admin.py b/lewa/core/admin.py index 411819c..db71308 100644 --- a/lewa/core/admin.py +++ b/lewa/core/admin.py @@ -1,4 +1,12 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + from django.contrib import admin from .models import Score -admin.site.register(Score) \ No newline at end of file +admin.site.register(Score) diff --git a/lewa/core/apps.py b/lewa/core/apps.py index 8aac7c7..376907b 100644 --- a/lewa/core/apps.py +++ b/lewa/core/apps.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Django app configs""" from django.apps import AppConfig diff --git a/lewa/core/migrations/0001_initial.py b/lewa/core/migrations/0001_initial.py index c7c8107..cc8dc85 100644 --- a/lewa/core/migrations/0001_initial.py +++ b/lewa/core/migrations/0001_initial.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # Generated by Django 5.2.1 on 2025-11-22 21:02 import django.db.models.deletion diff --git a/lewa/core/migrations/__init__.py b/lewa/core/migrations/__init__.py index e69de29..c37851d 100644 --- a/lewa/core/migrations/__init__.py +++ b/lewa/core/migrations/__init__.py @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. diff --git a/lewa/core/models.py b/lewa/core/models.py index 376c6d3..1e29f78 100644 --- a/lewa/core/models.py +++ b/lewa/core/models.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Language/writing system data""" from django.db import models from django.conf import settings diff --git a/lewa/core/templates/core/about.html b/lewa/core/templates/core/about.html index 2b99f7a..22a4803 100644 --- a/lewa/core/templates/core/about.html +++ b/lewa/core/templates/core/about.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% block content %} diff --git a/lewa/core/templates/core/index.html b/lewa/core/templates/core/index.html index 25441f2..3056a1f 100644 --- a/lewa/core/templates/core/index.html +++ b/lewa/core/templates/core/index.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% block content %} @@ -247,4 +257,4 @@

Ready to Learn African Writing Systems?

-{% endblock content %} \ No newline at end of file +{% endblock content %} diff --git a/lewa/core/templates/core/languages.html b/lewa/core/templates/core/languages.html index 848f794..350bcce 100644 --- a/lewa/core/templates/core/languages.html +++ b/lewa/core/templates/core/languages.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% block content %}
diff --git a/lewa/core/templates/core/leaderboard.html b/lewa/core/templates/core/leaderboard.html index d78725a..d364f63 100644 --- a/lewa/core/templates/core/leaderboard.html +++ b/lewa/core/templates/core/leaderboard.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% block content %} @@ -70,4 +80,4 @@

Leaderboard

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/lewa/core/templates/core/pronunciation.html b/lewa/core/templates/core/pronunciation.html index 01a2078..02ec1d5 100644 --- a/lewa/core/templates/core/pronunciation.html +++ b/lewa/core/templates/core/pronunciation.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% block content %}
diff --git a/lewa/core/templates/core/typing.html b/lewa/core/templates/core/typing.html index c6cab2f..39364c1 100644 --- a/lewa/core/templates/core/typing.html +++ b/lewa/core/templates/core/typing.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% load static %} {% block content %} diff --git a/lewa/core/templates/core/writing_systems.html b/lewa/core/templates/core/writing_systems.html index 99ddcee..6c2e2db 100644 --- a/lewa/core/templates/core/writing_systems.html +++ b/lewa/core/templates/core/writing_systems.html @@ -1,3 +1,13 @@ + + {% extends "base.html" %} {% block content %}
diff --git a/lewa/core/tests.py b/lewa/core/tests.py index a79ca8b..c93915b 100644 --- a/lewa/core/tests.py +++ b/lewa/core/tests.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + # from django.test import TestCase # Create your tests here. diff --git a/lewa/core/urls.py b/lewa/core/urls.py index b1a83f6..566d1ea 100644 --- a/lewa/core/urls.py +++ b/lewa/core/urls.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """URL patterns to certain paths""" from django.urls import path from . import views diff --git a/lewa/core/views.py b/lewa/core/views.py index 2fcacf6..78c0fa7 100644 --- a/lewa/core/views.py +++ b/lewa/core/views.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Django views, you can find the templates at `templates/core/`.""" from django.shortcuts import render from .models import LewaData, Score @@ -54,4 +62,4 @@ def writing_systems(request, writing_system=None): def leaderboard_view(request): scores_list = Score.objects.all()[:10] - return render(request, 'core/leaderboard.html', {'scores': scores_list}) \ No newline at end of file + return render(request, 'core/leaderboard.html', {'scores': scores_list}) diff --git a/lewa/lewa-data/languages/cm-bax.toml b/lewa/lewa-data/languages/cm-bax.toml index dc5a75b..333520f 100644 --- a/lewa/lewa-data/languages/cm-bax.toml +++ b/lewa/lewa-data/languages/cm-bax.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "Bamun" country_code = "cm" diff --git a/lewa/lewa-data/languages/cm-ewo.toml b/lewa/lewa-data/languages/cm-ewo.toml index 3f57ac4..1accfff 100644 --- a/lewa/lewa-data/languages/cm-ewo.toml +++ b/lewa/lewa-data/languages/cm-ewo.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "Ewondo" country_code = "cm" diff --git a/lewa/lewa-data/languages/cm-fmp.toml b/lewa/lewa-data/languages/cm-fmp.toml index c6ee2ea..514bfdf 100644 --- a/lewa/lewa-data/languages/cm-fmp.toml +++ b/lewa/lewa-data/languages/cm-fmp.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "Feʼfeʼ" country_code = "cm" diff --git a/lewa/lewa-data/languages/et-am.toml b/lewa/lewa-data/languages/et-am.toml index 5a6a57c..27aca54 100644 --- a/lewa/lewa-data/languages/et-am.toml +++ b/lewa/lewa-data/languages/et-am.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "Amharic" country_code = "et" diff --git a/lewa/lewa-data/writing_systems/bamun.toml b/lewa/lewa-data/writing_systems/bamun.toml index e59ca47..f3d2ccf 100644 --- a/lewa/lewa-data/writing_systems/bamun.toml +++ b/lewa/lewa-data/writing_systems/bamun.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "Bamun" languages = ["cm-bax"] diff --git a/lewa/lewa-data/writing_systems/gacl.toml b/lewa/lewa-data/writing_systems/gacl.toml index 8058ff8..e8e1529 100644 --- a/lewa/lewa-data/writing_systems/gacl.toml +++ b/lewa/lewa-data/writing_systems/gacl.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "GACL" languages = ["cm-fmp", "cm-ewo"] @@ -11,4 +19,4 @@ en = "The General Alphabet of Cameroon Languages is an orthographic system creat [layout] row0 = ["q", "w", "e", "ɛ", "r", "t", "y", "u", "i", "o", "ɔ", "p"] row1 = ["a", "s", "d", "ɗ", "f", "g", "h", "j", "k", "l", "ŋ"] -row2 = ["z", "x", "c", "v", "b", "ɓ", "n", "ɲ", "m"] \ No newline at end of file +row2 = ["z", "x", "c", "v", "b", "ɓ", "n", "ɲ", "m"] diff --git a/lewa/lewa-data/writing_systems/geez.toml b/lewa/lewa-data/writing_systems/geez.toml index 43170ba..c5a6549 100644 --- a/lewa/lewa-data/writing_systems/geez.toml +++ b/lewa/lewa-data/writing_systems/geez.toml @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + [info] name = "Geez" languages = ["et-am"] @@ -11,4 +19,4 @@ en = "Geʽez is an ancient South Semitic language. The language originates from [layout] row0 = ["ሀ", "ለ", "ሐ", "መ", "ሠ", "ረ", "ሰ", "ሸ", "ቀ", "በ", "ተ",] row1 = ["ቸ", "ኀ", "ነ", "ኘ", "አ", "ከ", "ኸ", "ወ", "ዐ", "ዘ", "ዠ",] -row2 = ["የ", "ደ", "ጀ", "ገ", "ጠ", "ጨ", "ጰ", "ጸ", "ፀ", "ፈ", "ፐ"] \ No newline at end of file +row2 = ["የ", "ደ", "ጀ", "ገ", "ጠ", "ጨ", "ጰ", "ጸ", "ፀ", "ፈ", "ፐ"] diff --git a/lewa/lewa/__init__.py b/lewa/lewa/__init__.py index e69de29..c37851d 100644 --- a/lewa/lewa/__init__.py +++ b/lewa/lewa/__init__.py @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. diff --git a/lewa/lewa/asgi.py b/lewa/lewa/asgi.py index 209c100..c1421cd 100644 --- a/lewa/lewa/asgi.py +++ b/lewa/lewa/asgi.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """ ASGI config for lewa project. diff --git a/lewa/lewa/settings.py b/lewa/lewa/settings.py index afe5d25..ce9fe3d 100644 --- a/lewa/lewa/settings.py +++ b/lewa/lewa/settings.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """ Django settings for lewa project. diff --git a/lewa/lewa/urls.py b/lewa/lewa/urls.py index baf031a..66d3e5d 100644 --- a/lewa/lewa/urls.py +++ b/lewa/lewa/urls.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """ URL configuration for lewa project. diff --git a/lewa/lewa/wsgi.py b/lewa/lewa/wsgi.py index c4e2d4d..0b36584 100644 --- a/lewa/lewa/wsgi.py +++ b/lewa/lewa/wsgi.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """ WSGI config for lewa project. diff --git a/lewa/manage.py b/lewa/manage.py index 051ce59..6d23ca5 100644 --- a/lewa/manage.py +++ b/lewa/manage.py @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" diff --git a/lewa/static/core/css/style.css b/lewa/static/core/css/style.css index 052f461..cb466f9 100644 --- a/lewa/static/core/css/style.css +++ b/lewa/static/core/css/style.css @@ -1,3 +1,12 @@ +/* +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. +*/ @font-face { font-family: "nilus"; src: url("/static/core/fonts/Nilus_hint.ttf"); diff --git a/lewa/static/core/js/base.js b/lewa/static/core/js/base.js index 7559f61..c9fcbb9 100644 --- a/lewa/static/core/js/base.js +++ b/lewa/static/core/js/base.js @@ -1,3 +1,13 @@ +/* +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. +*/ + document.addEventListener('DOMContentLoaded', () => { // Get all "tab" elements const tabs = document.querySelectorAll('.tabs li'); diff --git a/lewa/static/core/js/keyboard.js b/lewa/static/core/js/keyboard.js index f7e4d9a..f0a0fb0 100644 --- a/lewa/static/core/js/keyboard.js +++ b/lewa/static/core/js/keyboard.js @@ -1,3 +1,13 @@ +/* +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. +*/ + (async function () { 'use strict'; diff --git a/lewa/static/core/js/typing.js b/lewa/static/core/js/typing.js index 7245921..854c13c 100644 --- a/lewa/static/core/js/typing.js +++ b/lewa/static/core/js/typing.js @@ -1,3 +1,13 @@ +/* +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. +*/ + const input = document.getElementById('user-input') const div_speed = document.getElementById('div-speed') const div_accuracy = document.getElementById('div-accuracy') diff --git a/lewa/static/core/layout/qwerty-latin.json.license b/lewa/static/core/layout/qwerty-latin.json.license new file mode 100644 index 0000000..df574eb --- /dev/null +++ b/lewa/static/core/layout/qwerty-latin.json.license @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 diff --git a/lewa/templates/403_csrf.html b/lewa/templates/403_csrf.html index e69d085..6c29ebe 100644 --- a/lewa/templates/403_csrf.html +++ b/lewa/templates/403_csrf.html @@ -1,3 +1,13 @@ + + {% extends 'base.html' %} {% block title %} Forbidden (403) diff --git a/lewa/templates/404.html b/lewa/templates/404.html index c6fb64e..8299b9b 100644 --- a/lewa/templates/404.html +++ b/lewa/templates/404.html @@ -1,3 +1,13 @@ + + {% extends 'base.html' %} {% block title %}404 Page not found{% endblock %} {% block content %} diff --git a/lewa/templates/500.html b/lewa/templates/500.html index f1e60a1..7ab9ba0 100644 --- a/lewa/templates/500.html +++ b/lewa/templates/500.html @@ -1,3 +1,13 @@ + + {% extends 'base.html' %} {% block title %}500 Server Error{% endblock %} {% block content %} diff --git a/lewa/templates/_base.html b/lewa/templates/_base.html index 0f9193b..b5e62c8 100644 --- a/lewa/templates/_base.html +++ b/lewa/templates/_base.html @@ -1,3 +1,13 @@ + + {% load static %} diff --git a/lewa/templates/account/account_inactive.html b/lewa/templates/account/account_inactive.html index be6e9ba..247fa75 100644 --- a/lewa/templates/account/account_inactive.html +++ b/lewa/templates/account/account_inactive.html @@ -1,3 +1,13 @@ + + {% extends "account/base.html" %} {% load i18n %} {% block title %} diff --git a/lewa/templates/account/base.html b/lewa/templates/account/base.html index 687bbe3..0fac163 100644 --- a/lewa/templates/account/base.html +++ b/lewa/templates/account/base.html @@ -1,3 +1,13 @@ + + {% extends 'base.html' %} {% block content %}
diff --git a/lewa/templates/account/email.html b/lewa/templates/account/email.html index 04717e4..72045ea 100644 --- a/lewa/templates/account/email.html +++ b/lewa/templates/account/email.html @@ -1,3 +1,13 @@ + + {% extends "account/base.html" %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/email_confirm.html b/lewa/templates/account/email_confirm.html index f914c31..f22fd62 100644 --- a/lewa/templates/account/email_confirm.html +++ b/lewa/templates/account/email_confirm.html @@ -1,3 +1,13 @@ + + {% extends "account/base.html" %} {% load i18n %} {% load account %} diff --git a/lewa/templates/account/login.html b/lewa/templates/account/login.html index c2412c0..d76900e 100644 --- a/lewa/templates/account/login.html +++ b/lewa/templates/account/login.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/logout.html b/lewa/templates/account/logout.html index f2e5d56..bfade83 100644 --- a/lewa/templates/account/logout.html +++ b/lewa/templates/account/logout.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/password_change.html b/lewa/templates/account/password_change.html index 72a778c..3adae38 100644 --- a/lewa/templates/account/password_change.html +++ b/lewa/templates/account/password_change.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/password_reset.html b/lewa/templates/account/password_reset.html index c66ed69..624f9bc 100644 --- a/lewa/templates/account/password_reset.html +++ b/lewa/templates/account/password_reset.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/password_reset_done.html b/lewa/templates/account/password_reset_done.html index 568a29d..47a876d 100644 --- a/lewa/templates/account/password_reset_done.html +++ b/lewa/templates/account/password_reset_done.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/password_reset_from_key.html b/lewa/templates/account/password_reset_from_key.html index 3106adc..738eef7 100644 --- a/lewa/templates/account/password_reset_from_key.html +++ b/lewa/templates/account/password_reset_from_key.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/password_reset_from_key_done.html b/lewa/templates/account/password_reset_from_key_done.html index 7d6c16d..56b6892 100644 --- a/lewa/templates/account/password_reset_from_key_done.html +++ b/lewa/templates/account/password_reset_from_key_done.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/password_set.html b/lewa/templates/account/password_set.html index 31f0e95..fd9f2bd 100644 --- a/lewa/templates/account/password_set.html +++ b/lewa/templates/account/password_set.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/signup.html b/lewa/templates/account/signup.html index ade58ea..eda09eb 100644 --- a/lewa/templates/account/signup.html +++ b/lewa/templates/account/signup.html @@ -1,3 +1,13 @@ + + {% extends 'account/base.html' %} {% load i18n %} {% load crispy_forms_tags %} diff --git a/lewa/templates/account/signup_closed.html b/lewa/templates/account/signup_closed.html index ff849f1..3586d41 100644 --- a/lewa/templates/account/signup_closed.html +++ b/lewa/templates/account/signup_closed.html @@ -1,3 +1,13 @@ + + {% extends "account/base.html" %} {% load i18n %} {% block head_title %} diff --git a/lewa/templates/account/verification_sent.html b/lewa/templates/account/verification_sent.html index df2eb42..ed0319b 100644 --- a/lewa/templates/account/verification_sent.html +++ b/lewa/templates/account/verification_sent.html @@ -1,3 +1,13 @@ + + {% extends "account/base.html" %} {% load i18n %} {% block head_title %} diff --git a/lewa/templates/account/verified_email_required.html b/lewa/templates/account/verified_email_required.html index ecefcaf..a3149c6 100644 --- a/lewa/templates/account/verified_email_required.html +++ b/lewa/templates/account/verified_email_required.html @@ -1,3 +1,13 @@ + + {% extends "account/base.html" %} {% load i18n %} {% block head_title %} diff --git a/lewa/templates/base.html b/lewa/templates/base.html index ed9d094..0add6f7 100644 --- a/lewa/templates/base.html +++ b/lewa/templates/base.html @@ -1,3 +1,13 @@ + + {% extends "_base.html" %} {% block body %} diff --git a/nginx.conf b/nginx.conf index 78b40c2..b2f3e3a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,11 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + events {} http { diff --git a/pyproject.toml b/pyproject.toml index b1273ad..e05ac5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,14 @@ +# SPDX-FileCopyrightText: 2025 Brady Fomegne and contributors +# +# SPDX-License-Identifier: MPL-2.0 + [project] name = "lewa" version = "0.1.0" description = "A platform to learn African writing systems." readme = "README.md" +license = "MPL-2.0" +license-files = ["LICENSES/*"] requires-python = ">=3.11" dependencies = [ "crispy-bulma>=0.12.0",