docs: add license and contribution guidelines
This commit is contained in:
1 parent
69a2f3da9a
commit
9bb45eb231
4 files changed
+61
-2
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# Contributing
|
||||
|
||||
Thanks for improving the Belki report generator and calculator.
|
||||
|
||||
## Before you start
|
||||
|
||||
- Open an issue or discuss substantial changes before implementing them.
|
||||
- Keep changes focused: do not combine a feature, refactor, and formatting-only rewrite in one contribution.
|
||||
- Do not add tokens, passwords, production kubeconfigs, `.env` files, or real user data to the repository.
|
||||
- Keep calculation rules independent from HTTP, VK, and Kubernetes code.
|
||||
- Preserve copyright and license headers in legacy CatWar userscripts and bundled third-party assets. Do not replace or relicense them.
|
||||
|
||||
## Development and checks
|
||||
|
||||
Use the commands documented in [README.md](./README.md) for local work. Before opening a merge request, run the targeted test suite for the changed behavior; run `make test` when the change affects the application broadly.
|
||||
|
||||
For frontend changes, check the rendered page at desktop and narrow mobile widths, including keyboard focus and error states. For deployment or Kubernetes changes, validate the manifest and describe any environment-specific step in the merge request.
|
||||
|
||||
## Merge requests
|
||||
|
||||
- Explain the user-visible result and how it was verified.
|
||||
- Add or update tests for behavior changes when practical.
|
||||
- Update `README.md`, `structure_and_data.md`, or the relevant document when the project structure, configuration, or operating procedure changes.
|
||||
- Use clear, focused commits and do not include unrelated generated files.
|
||||
|
||||
By submitting a contribution, you agree that it may be distributed under the repository's [MIT License](./LICENSE).
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Nyan404
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,8 @@
|
||||
# Third-party and legacy notices
|
||||
|
||||
This repository includes legacy CatWar userscript assets and bundled third-party JavaScript. Their copyright, author, and license notices are retained in the corresponding source files and apply to those files.
|
||||
|
||||
- `web/CatWarMod.js`, `web/CatWarModLite.js`, and `web/cw-lite.js` carry their own MIT notices and author attributions.
|
||||
- `web/data/jquery-3.4.1.min.js`, `web/data/jquery-ui.js`, and `web/data/jquery.scrollintoview.min.js` are third-party files with retained upstream notices.
|
||||
|
||||
The MIT license in [`LICENSE`](./LICENSE) applies to this project's original code and documentation. It does not replace notices or grant rights beyond the licenses of third-party and legacy files.
|
||||
@@ -1,4 +1,4 @@
|
||||
# «Беличья нора» — калькулятор отчётов
|
||||
# Генератор отчётов и калькулятор
|
||||
|
||||
Отдельный калькулятор для отчётов по прокачке ЛУ/ЗУ, тренировкам и осмотрам. Старые CatWar userscript-файлы остаются в `web/` и продолжают раздаваться по своим URL.
|
||||
|
||||
@@ -43,7 +43,7 @@ python3 -m app.belki.vk_bot
|
||||
|
||||
`/applications` — открытая форма для пожертвования перьев, бельчонка, белки-летяги и куратора; эти же формы находятся на вкладке «Заявки» в `/belki`. Она сохраняет структурированные данные в очередь модерации, а не генерирует форумную отпись. В VK используйте `/заявка`: виртуальная клавиатура проводит через выбор типа, пропуск VK-ссылки, ответы «да/нет», «готово» и отмену; вручную вводятся только свободные данные, например ссылки и источники перьев.
|
||||
|
||||
В `/admin` есть верхняя вкладка «Заявки» рядом с «Отчётами»; внутри неё — вкладки новых и принятых заявок, полное содержимое и действие «Принять». После принятия VK-заявки бот пишет заявителю в личные сообщения. У веб-заявки нет автоматически известного VK-получателя: она получает номер, а VK-ссылку можно оставить для ручной связи.
|
||||
В `/admin` есть верхняя вкладка «Заявки» рядом с «Отчётами»; внутри неё — вкладки новых, принятых и отклонённых заявок, полное содержимое и действия «Принять»/«Отклонить». После принятия VK-заявки бот пишет заявителю в личные сообщения. У веб-заявки нет автоматически известного VK-получателя: она получает номер, а VK-ссылку можно оставить для ручной связи.
|
||||
|
||||
### Будущий экспорт в Google Sheets
|
||||
|
||||
@@ -67,3 +67,7 @@ python3 -m app.belki.vk_bot
|
||||
- `tests/` — unit-тесты.
|
||||
|
||||
Спецификация и план находятся в `docs/staging/`.
|
||||
|
||||
## Лицензия и вклад
|
||||
|
||||
Оригинальный код и документация распространяются по [MIT License](./LICENSE). Для legacy и сторонних файлов действуют сохранённые в них условия — см. [NOTICE](./NOTICE). Правила подготовки изменений: [CONTRIBUTING.md](./CONTRIBUTING.md).
|
||||
Reference in new issue
Block a user