Skip to content

Commit 2bef10d

Browse files
committed
unbork large portions of the theme
1 parent 0a36534 commit 2bef10d

36 files changed

+1723
-657
lines changed

Diff for: .editorconfig

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.py]
14+
indent_size = 4
15+
max_line_length = 120
16+
17+
[*.md]
18+
indent_size = 4
19+
20+
[*.yml]
21+
indent_size = 4
22+
23+
[*.html]
24+
max_line_length = off
25+
26+
[*.js]
27+
max_line_length = off
28+
29+
[*.css]
30+
indent_size = 4
31+
max_line_length = off
32+
33+
# Tests can violate line width restrictions in the interest of clarity.
34+
[**/test_*.py]
35+
max_line_length = off

Diff for: .github/workflows/publish-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
with:
1515
python-version: 3.x
1616
- run: pip install -r docs/requirements.txt
17-
- run: mkdocs gh-deploy --force
17+
- run: cd docs && mkdocs gh-deploy --force

Diff for: .gitignore

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# --- Build Artifacts ---
2+
src/reactpy/static/index.js*
3+
src/reactpy/static/morphdom/
4+
src/reactpy/static/pyscript/
5+
16
# --- Jupyter ---
27
*.ipynb_checkpoints
38
*Untitled*.ipynb
@@ -11,8 +16,9 @@
1116
.jupyter
1217

1318
# --- Python ---
14-
.venv
15-
venv
19+
.hatch
20+
.venv*
21+
venv*
1622
MANIFEST
1723
build
1824
dist
@@ -28,6 +34,7 @@ pip-wheel-metadata
2834
.python-version
2935

3036
# -- Python Tests ---
37+
.coverage.*
3138
*.coverage
3239
*.pytest_cache
3340
*.mypy_cache
@@ -38,4 +45,3 @@ pip-wheel-metadata
3845

3946
# --- JS ---
4047
node_modules
41-

Diff for: CHANGELOG.md

+1-173
Original file line numberDiff line numberDiff line change
@@ -24,176 +24,4 @@ Using the following categories, list your changes in this order:
2424

2525
- Nothing (yet)
2626

27-
## [2.2.0] - 2022-12-28
28-
29-
### Added
30-
31-
- Add `options: QueryOptions` parameter to `use_query` to allow for configuration of this hook.
32-
33-
### Changed
34-
35-
- By default, `use_query` will recursively prefetch all many-to-many or many-to-one relationships to prevent `SynchronousOnlyOperation` exceptions.
36-
37-
### Removed
38-
39-
- `django_idom.hooks._fetch_lazy_fields` has been deleted. The equivalent replacement is `django_idom.utils.django_query_postprocessor`.
40-
41-
## [2.1.0] - 2022-11-01
42-
43-
### Changed
44-
45-
- Minimum `channels` version is now `4.0.0`.
46-
47-
### Fixed
48-
49-
- Change type hint on `view_to_component` callable to have `request` argument be optional.
50-
- Change type hint on `view_to_component` to represent it as a decorator with parenthesis (such as `@view_to_component(compatibility=True)`)
51-
52-
### Security
53-
54-
- Add note to docs about potential information exposure via `view_to_component` when using `compatibility=True`.
55-
56-
## [2.0.1] - 2022-10-18
57-
58-
### Fixed
59-
60-
- Ability to use `key=...` parameter on all prefabricated components.
61-
62-
## [2.0.0] - 2022-10-17
63-
64-
### Added
65-
66-
- `use_origin` hook for returning the browser's `location.origin`.
67-
68-
### Changed
69-
70-
- `view_to_component` now returns a `Callable`, instead of directly returning a `Component`. Check the docs for new usage info.
71-
- `use_mutation` and `use_query` will now log any query failures.
72-
73-
### Fixed
74-
75-
- Allow `use_mutation` to have `refetch=None`, as the docs suggest is possible.
76-
- `use_query` will now prefetch all fields to prevent `SynchronousOnlyOperation` exceptions.
77-
- `view_to_component`, `django_css`, and `django_js` type hints will now display like normal functions.
78-
- IDOM preloader no longer attempts to parse commented out IDOM components.
79-
- Tests are now fully functional on Windows
80-
81-
## [1.2.0] - 2022-09-19
82-
83-
### Added
84-
85-
- `auth_required` decorator to prevent your components from rendering to unauthenticated users.
86-
- `use_query` hook for fetching database values.
87-
- `use_mutation` hook for modifying database values.
88-
- `view_to_component` utility to convert legacy Django views to IDOM components.
89-
90-
### Changed
91-
92-
- Bumped the minimum IDOM version to 0.40.2
93-
- Testing suite now uses `playwright` instead of `selenium`
94-
95-
### Fixed
96-
97-
- IDOM preloader is no longer sensitive to whitespace within template tags.
98-
99-
## [1.1.0] - 2022-07-01
100-
101-
### Added
102-
103-
- `django_css` and `django_js` components to defer loading CSS & JS files until needed.
104-
105-
### Changed
106-
107-
- Bumped the minimum IDOM version to 0.39.0
108-
109-
## [1.0.0] - 2022-05-22
110-
111-
### Added
112-
113-
- Django-specific hooks! `use_websocket`, `use_scope`, and `use_location` are now available within the `django_idom.hooks` module.
114-
- Documentation has been placed into a formal docs webpage.
115-
- Logging for when a component fails to import, or if no components were found within Django.
116-
117-
### Changed
118-
119-
- `idom_component` template tag has been renamed to `component`
120-
- Bumped the minimum IDOM version to 0.38.0
121-
122-
### Removed
123-
124-
- `websocket` parameter for components has been removed. Functionally, it is replaced with `django_idom.hooks.use_websocket`.
125-
126-
## [0.0.5] - 2022-04-04
127-
128-
### Changed
129-
130-
- Bumped the minimum IDOM version to 0.37.2
131-
132-
### Fixed
133-
134-
- ModuleNotFoundError: No module named `idom.core.proto` caused by IDOM 0.37.2
135-
136-
## [0.0.4] - 2022-03-05
137-
138-
### Changed
139-
140-
- Bumped the minimum IDOM version to 0.37.1
141-
142-
## [0.0.3] - 2022-02-19
143-
144-
### Changed
145-
146-
- Bumped the minimum IDOM version to 0.36.3
147-
148-
## [0.0.2] - 2022-01-30
149-
150-
### Added
151-
152-
- Ability to declare the HTML class of the top-level component `div`
153-
- `name = ...` parameter to IDOM HTTP paths for use with `django.urls.reverse()`
154-
- Cache versioning to automatically invalidate old web module files from the cache back-end
155-
- Automatic pre-population of the IDOM component registry
156-
- Type hinting for `IdomWebsocket`
157-
158-
### Changed
159-
160-
- Fetching web modules from disk and/or cache is now fully async
161-
- Static files are now contained within a `django_idom/` parent folder
162-
- Upgraded IDOM to version `0.36.0`
163-
- Minimum Django version required is now `4.0`
164-
- Minimum Python version required is now `3.8`
165-
166-
### Removed
167-
168-
- `IDOM_WEB_MODULES_PATH` has been replaced with Django `include(...)`
169-
- `IDOM_WS_MAX_RECONNECT_DELAY` has been renamed to `IDOM_WS_MAX_RECONNECT_TIMEOUT`
170-
- `idom_web_modules` cache back-end has been renamed to `idom`
171-
172-
### Fixed
173-
174-
- Increase test timeout values to prevent false positives
175-
- Windows compatibility for building Django-IDOM
176-
177-
### Security
178-
179-
- Fixed potential directory traversal attack on the IDOM web modules URL
180-
181-
## [0.0.1] - 2021-08-18
182-
183-
### Added
184-
185-
- Support for IDOM within the Django
186-
187-
[unreleased]: https://github.com/idom-team/django-idom/compare/2.2.0...HEAD
188-
[2.2.0]: https://github.com/idom-team/django-idom/compare/2.1.0...2.2.0
189-
[2.1.0]: https://github.com/idom-team/django-idom/compare/2.0.1...2.1.0
190-
[2.0.1]: https://github.com/idom-team/django-idom/compare/2.0.0...2.0.1
191-
[2.0.0]: https://github.com/idom-team/django-idom/compare/1.2.0...2.0.0
192-
[1.2.0]: https://github.com/idom-team/django-idom/compare/1.1.0...1.2.0
193-
[1.1.0]: https://github.com/idom-team/django-idom/compare/1.0.0...1.1.0
194-
[1.0.0]: https://github.com/idom-team/django-idom/compare/0.0.5...1.0.0
195-
[0.0.5]: https://github.com/idom-team/django-idom/compare/0.0.4...0.0.5
196-
[0.0.4]: https://github.com/idom-team/django-idom/compare/0.0.3...0.0.4
197-
[0.0.3]: https://github.com/idom-team/django-idom/compare/0.0.2...0.0.3
198-
[0.0.2]: https://github.com/idom-team/django-idom/compare/0.0.1...0.0.2
199-
[0.0.1]: https://github.com/idom-team/django-idom/releases/tag/0.0.1
27+
[unreleased]: https://github.com/reactive-python/reactpy/compare/1.0.0...HEAD

Diff for: LICENSE

-21
This file was deleted.

Diff for: LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## The MIT License (MIT)
2+
3+
#### Copyright (c) Reactive Python and affiliates.
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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 commit comments

Comments
 (0)