Skip to content

Commit ce4a252

Browse files
committed
feat: update dependencies and enhance UI components
- Added package-lock.json for better dependency management. - Updated daisyui version in package.json from 5.2.3 to 5.5.11. - Refactored drawer component in base.html to use consistent ID for toggling. - Enhanced login_base.html with a new navbar structure and theme toggle functionality.
1 parent a733850 commit ce4a252

File tree

7 files changed

+721
-13
lines changed

7 files changed

+721
-13
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[![Code Testing](https://github.com/youzarsiph/drf-restwind/actions/workflows/tests.yml/badge.svg)](https://github.com/youzarsiph/drf-restwind/actions/workflows/tests.yml)
88
[![PyPI - Version](https://img.shields.io/pypi/v/drf-restwind?logo=pypi&logoColor=white)](https://pypi.org/project/drf-restwind/)
99
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/drf-restwind?logo=python&logoColor=white)](https://pypi.org/project/drf-restwind/)
10-
[![PyPI - Downloads](https://img.shields.io/pypi/dm/drf-restwind?logo=pypi&logoColor=white)](https://pypi.org/project/drf-restwind/)
1110
[![PyPI - License](https://img.shields.io/pypi/l/drf-restwind?logo=pypi&logoColor=white)](https://pypi.org/project/drf-restwind/)
1211

1312
## Overview
@@ -291,6 +290,13 @@ To remove the theme selector, update your `api.html`:
291290
{% block theme_selector %}{% endblock %}
292291
```
293292

293+
```html
294+
<!-- rest_framework/login.html -->
295+
{% extends 'rest_framework/login_base.html' %}
296+
297+
{% block theme_selector %}{% endblock %}
298+
```
299+
294300
### Removing the search bar
295301

296302
To remove the search bar, update your `api.html`:
@@ -311,6 +317,13 @@ To remove theme toggle, update your `api.html`:
311317
{% block theme_toggle %}{% endblock %}
312318
```
313319

320+
```html
321+
<!-- rest_framework/login.html -->
322+
{% extends 'rest_framework/login_base.html' %}
323+
324+
{% block theme_selector %}{% endblock %}
325+
```
326+
314327
### Customizing the Brand and Adding Links
315328

316329
To change the brand name and add custom links, modify your `api.html`:
@@ -374,6 +387,30 @@ To change the brand name and add custom links, modify your `api.html`:
374387
{% endblock %}
375388
```
376389

390+
```html
391+
<!-- rest_framework/login.html -->
392+
{% extends 'rest_framework/login_base.html' %}
393+
394+
<!-- Branding -->
395+
{% block branding %}
396+
<li
397+
class="tooltip tooltip-right tooltip-primary rtl:tooltip-left"
398+
data-tip="{% trans 'YOUR_BRAND' %}"
399+
>
400+
<a
401+
href="https://your.domain.com/"
402+
class="btn btn-sm btn-square btn-ghost lg:btn-md"
403+
>
404+
<img
405+
class="size-8 2xl:size-10"
406+
alt="{% trans 'YOUR_BRAND' %}"
407+
src="{% static 'path/to/your/logo.png' %}"
408+
/>
409+
</a>
410+
</li>
411+
{% endblock %}
412+
```
413+
377414
### Adding menu items to profile menu
378415

379416
To add menu items to profile menu, modify your `api.html`:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "drf-restwind"
3-
version = "1.0.2"
3+
version = "1.1.0"
44
description = "drf-restwind, a modern re-imagining of the Django REST Framework utilizes TailwindCSS and DaisyUI to provide flexible and customizable UI solutions with minimal coding effort."
55
authors = ["Yousef Abu Shanab <josephyousef249@gmail.com>"]
66
license = "MIT"
@@ -11,8 +11,8 @@ repository = "https://github.com/youzarsiph/drf-restwind"
1111
documentation = "https://github.com/youzarsiph/drf-restwind"
1212

1313
[tool.poetry.dependencies]
14-
python = ">=3.10"
15-
django = ">=5.1.5"
14+
python = ">=3.11"
15+
django = ">=5.2.5"
1616
djangorestframework = ">=3.16.1"
1717

1818

rest_wind/static/rest_wind/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)