diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 094c32693..000000000 --- a/.editorconfig +++ /dev/null @@ -1,35 +0,0 @@ -# http://editorconfig.org - -root = true - -[*] -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true -charset = utf-8 -end_of_line = lf - -[*.py] -indent_size = 4 -max_line_length = 120 - -[*.md] -indent_size = 4 - -[*.yml] -indent_size = 4 - -[*.html] -max_line_length = off - -[*.js] -max_line_length = off - -[*.css] -indent_size = 4 -max_line_length = off - -# Tests can violate line width restrictions in the interest of clarity. -[**/test_*.py] -max_line_length = off diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 3fc786dff..000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -@maintainers diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 74094ade3..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [archmonger, rmorshea] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 21f192233..000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Start a Discussion - url: https://github.com/reactive-python/reactpy/discussions - about: Report issues, request features, ask questions, and share ideas diff --git a/.github/ISSUE_TEMPLATE/issue-form.yml b/.github/ISSUE_TEMPLATE/issue-form.yml deleted file mode 100644 index 3cad28d11..000000000 --- a/.github/ISSUE_TEMPLATE/issue-form.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Plan a Task -description: Create a detailed plan of action (ONLY START AFTER DISCUSSION PLEASE ๐). -labels: ["flag-triage"] -body: -- type: textarea - attributes: - label: Current Situation - description: Discuss how things currently are, why they require action, and any relevant prior discussion/context. - validations: - required: false -- type: textarea - attributes: - label: Proposed Actions - description: Describe what ought to be done, and why that will address the reasons for action mentioned above. - validations: - required: false diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index a55532008..000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,14 +0,0 @@ -## Description - - - -## Checklist - -Please update this checklist as you complete each item: - -- [ ] Tests have been developed for bug fixes or new functionality. -- [ ] The changelog has been updated, if necessary. -- [ ] Documentation has been updated, if necessary. -- [ ] GitHub Issues closed by this PR have been linked. - -By submitting this pull request I agree that all contributions comply with this project's open source license(s). diff --git a/.github/workflows/.hatch-run.yml b/.github/workflows/.hatch-run.yml deleted file mode 100644 index c8770d184..000000000 --- a/.github/workflows/.hatch-run.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: hatch-run - -on: - workflow_call: - inputs: - job-name: - required: true - type: string - run-cmd: - required: true - type: string - runs-on: - required: false - type: string - default: '["ubuntu-latest"]' - python-version: - required: false - type: string - default: '["3.x"]' - secrets: - node-auth-token: - required: false - pypi-username: - required: false - pypi-password: - required: false - -jobs: - hatch: - name: ${{ format(inputs.job-name, matrix.python-version, matrix.runs-on) }} - strategy: - matrix: - python-version: ${{ fromJson(inputs.python-version) }} - runs-on: ${{ fromJson(inputs.runs-on) }} - runs-on: ${{ matrix.runs-on }} - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - name: Use Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install Python Dependencies - run: pip install --upgrade hatch uv - - name: Run Scripts - env: - NPM_CONFIG_TOKEN: ${{ secrets.node-auth-token }} - HATCH_INDEX_USER: ${{ secrets.pypi-username }} - HATCH_INDEX_AUTH: ${{ secrets.pypi-password }} - run: ${{ inputs.run-cmd }} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml deleted file mode 100644 index f66d14cb0..000000000 --- a/.github/workflows/check.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: check - -on: - push: - branches: - - main - pull_request: - branches: - - "*" - schedule: - - cron: "0 0 * * 0" - -jobs: - test-python-coverage: - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "python-{0}" - run-cmd: "hatch test --cover" - lint-python: - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "python-{0}" - run-cmd: "hatch fmt src/reactpy --check && hatch run python:type_check" - test-python: - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "python-{0} {1}" - run-cmd: "hatch test" - runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]' - python-version: '["3.10", "3.11", "3.12", "3.13"]' - test-documentation: - # Temporarily disabled while we transition from Sphinx to MkDocs - # https://github.com/reactive-python/reactpy/pull/1052 - if: 0 - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "python-{0}" - run-cmd: "hatch run docs:check" - python-version: '["3.11"]' - test-javascript: - # Temporarily disabled while we rewrite the "event_to_object" package - # https://github.com/reactive-python/reactpy/issues/1196 - if: 0 - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "{1}" - run-cmd: "hatch run javascript:test" - lint-javascript: - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "{1}" - run-cmd: "hatch run javascript:check" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index b4f77ee00..000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,71 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: codeql - -on: - push: - branches: [main] - pull_request: - # The branches below must be a subset of the branches above - branches: [main] - schedule: - - cron: "43 3 * * 3" - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: ["javascript", "python"] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # โน๏ธ Command-line programs to run using the OS shell. - # ๐ https://git.io/JvXDl - - # โ๏ธ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 30b12240b..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: publish - -on: - release: - types: [published] - -jobs: - publish-reactpy: - if: startsWith(github.event.release.name, 'reactpy ') - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "Publish to PyPI" - run-cmd: "hatch build --clean && hatch publish --yes" - secrets: - pypi-username: ${{ secrets.PYPI_USERNAME }} - pypi-password: ${{ secrets.PYPI_PASSWORD }} - - publish-reactpy-client: - if: startsWith(github.event.release.name, '@reactpy/client ') - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "Publish to NPM" - run-cmd: "hatch run javascript:publish_reactpy_client" - secrets: - node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }} - - publish-event-to-object: - if: startsWith(github.event.release.name, 'event-to-object ') - uses: ./.github/workflows/.hatch-run.yml - with: - job-name: "Publish to NPM" - run-cmd: "hatch run javascript:publish_event_to_object" - secrets: - node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 40cd524ba..000000000 --- a/.gitignore +++ /dev/null @@ -1,48 +0,0 @@ -# --- Build Artifacts --- -src/reactpy/static/index.js* -src/reactpy/static/morphdom/ -src/reactpy/static/pyscript/ - -# --- Jupyter --- -*.ipynb_checkpoints -*Untitled*.ipynb - -# --- Jupyter Repo 2 Docker --- -.local -.ipython -.cache -.bash_history -.python_history -.jupyter - -# --- Python --- -.hatch -.venv* -venv* -MANIFEST -build -dist -.eggs -*.egg-info -__pycache__/ -*.py[cod] -.tox -.nox -pip-wheel-metadata - -# --- PyEnv --- -.python-version - -# -- Python Tests --- -.coverage.* -*.coverage -*.pytest_cache -*.mypy_cache - -# --- IDE --- -.idea -.vscode - -# --- JS --- -node_modules - diff --git a/docs/docs_app/__init__.py b/.nojekyll similarity index 100% rename from docs/docs_app/__init__.py rename to .nojekyll diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 0383cbb1d..000000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,34 +0,0 @@ -repos: - - repo: local - hooks: - - id: lint-py-fix - name: Fix Python Lint - entry: hatch run lint-py - language: system - args: [--fix] - pass_filenames: false - files: \.py$ - - repo: local - hooks: - - id: lint-js-fix - name: Fix JS Lint - entry: hatch run lint-js --fix - language: system - pass_filenames: false - files: \.(js|jsx|ts|tsx)$ - - repo: local - hooks: - - id: lint-py-check - name: Check Python Lint - entry: hatch run lint-py - language: system - pass_filenames: false - files: \.py$ - - repo: local - hooks: - - id: lint-js-check - name: Check JS Lint - entry: hatch run lint-py - language: system - pass_filenames: false - files: \.(js|jsx|ts|tsx)$ diff --git a/404.html b/404.html new file mode 100644 index 000000000..e1ef17c75 --- /dev/null +++ b/404.html @@ -0,0 +1 @@ +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Supported Backends | -|
---|---|
Built-in | -External | -
- - Flask, FastAPI, Sanic, Tornado - - | -- Django, - Jupyter, - Plotly-Dash - | -
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var _a=/["'&<>]/;Pn.exports=Aa;function Aa(e){var t=""+e,r=_a.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i