From 3a940063450846d584c51622ca98af4ea677d2c1 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Fri, 14 Oct 2022 15:47:09 -0700 Subject: [PATCH 1/5] v2.0.0 --- CHANGELOG.md | 9 +++++++-- src/django_idom/__init__.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index caf95b4a..4e743580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,9 +22,13 @@ Using the following categories, list your changes in this order: ## [Unreleased] +Nothing (yet) + +## [2.0.0]- 2022-10-14 + ### Added -- `use_origin` hook to return the browser's `location.origin`. +- `use_origin` hook for returning the browser's `location.origin`. ### Changed @@ -143,7 +147,8 @@ Using the following categories, list your changes in this order: - Support for IDOM within the Django -[unreleased]: https://github.com/idom-team/django-idom/compare/1.2.0...HEAD +[unreleased]: https://github.com/idom-team/django-idom/compare/2.0.0...HEAD +[1.2.0]: https://github.com/idom-team/django-idom/compare/1.2.0...2.0.0 [1.2.0]: https://github.com/idom-team/django-idom/compare/1.1.0...1.2.0 [1.1.0]: https://github.com/idom-team/django-idom/compare/1.0.0...1.1.0 [1.0.0]: https://github.com/idom-team/django-idom/compare/0.0.5...1.0.0 diff --git a/src/django_idom/__init__.py b/src/django_idom/__init__.py index 998ab5a6..39893c7e 100644 --- a/src/django_idom/__init__.py +++ b/src/django_idom/__init__.py @@ -3,7 +3,7 @@ from django_idom.websocket.paths import IDOM_WEBSOCKET_PATH -__version__ = "1.2.0" +__version__ = "2.0.0" __all__ = [ "IDOM_WEBSOCKET_PATH", "IdomWebsocket", From f2cf09b4fe1fae6a44a33fc3aa4d5a4867069489 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Fri, 14 Oct 2022 15:55:03 -0700 Subject: [PATCH 2/5] fix VTC args/kwargs docs --- docs/src/features/components.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/src/features/components.md b/docs/src/features/components.md index aee6f60d..77b086b6 100644 --- a/docs/src/features/components.md +++ b/docs/src/features/components.md @@ -115,8 +115,11 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible def my_component(): return html.div( hello_world_view( - args=["value_1", "value_2"], - kwargs={"key1": "abc", "key2": "123"}, + None, # Your request object (optional) + "value_1", + "value_2", + key1="abc", + key2="123", ), ) ``` @@ -143,7 +146,7 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible def my_component(): return html.div( hello_world_view( - request=example_request, + example_request, ), ) ``` From a7884cdd12225bb5846aa11130a3fa940eb9e4ea Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:02:44 -0700 Subject: [PATCH 3/5] prevent eye searing green on mkdocs 1.4 --- docs/src/stylesheets/extra.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/stylesheets/extra.css b/docs/src/stylesheets/extra.css index 79881677..259625f9 100644 --- a/docs/src/stylesheets/extra.css +++ b/docs/src/stylesheets/extra.css @@ -15,3 +15,15 @@ padding-top: 0; padding-bottom: 0.35em; } + +body[data-md-color-scheme="slate"] + .md-typeset + :is(.admonition, details):is(.question, .help, .faq) { + border-color: #366517; +} + +body[data-md-color-scheme="slate"] + .md-typeset + :-webkit-any(.admonition, details):-webkit-any(.question, .help, .faq) { + border-color: #366517; +} From 819f214cf71ba886ddf8ebe1efa232ff59941ab0 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:07:35 -0700 Subject: [PATCH 4/5] fix changelog link --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e743580..1ba8fa78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -148,7 +148,7 @@ Nothing (yet) - Support for IDOM within the Django [unreleased]: https://github.com/idom-team/django-idom/compare/2.0.0...HEAD -[1.2.0]: https://github.com/idom-team/django-idom/compare/1.2.0...2.0.0 +[2.0.0]: https://github.com/idom-team/django-idom/compare/1.2.0...2.0.0 [1.2.0]: https://github.com/idom-team/django-idom/compare/1.1.0...1.2.0 [1.1.0]: https://github.com/idom-team/django-idom/compare/1.0.0...1.1.0 [1.0.0]: https://github.com/idom-team/django-idom/compare/0.0.5...1.0.0 From dafbda1ebd0daaa08b078f1c47f7202340400308 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Mon, 17 Oct 2022 21:30:46 -0700 Subject: [PATCH 5/5] bump date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edb7e7a1..8506c821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ Using the following categories, list your changes in this order: Nothing (yet) -## [2.0.0]- 2022-10-14 +## [2.0.0]- 2022-10-17 ### Added