Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: JavaScript Rewrite #4

Open
wants to merge 52 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
e095acb
setup rollup and karma
lenadax Aug 16, 2021
795eb9b
basic es6 js and styling
lenadax Jan 21, 2022
b8c4dea
some more styling, simplifying
lenadax Jan 21, 2022
0eeeb25
fix border-radius
lenadax Jan 21, 2022
95818f2
move karma and rollup files to js/ subfolder
lenadax Jan 21, 2022
06d374a
remove karma/ folder, set in gitignore
lenadax Jan 21, 2022
1b18b9a
housekeeping
lenadax Mar 15, 2022
d863bcf
add coverage and test shell scripts
lenadax Mar 15, 2022
b17638b
update autoWatch config
lenadax Mar 17, 2022
86a61c6
update color scheme
lenadax Apr 19, 2022
7380cdd
update to use root variables with fallback
lenadax Apr 19, 2022
dc6ac4c
change fallback color to bs5 blue
lenadax May 4, 2022
dac30fb
housekeeping
lenadax May 5, 2022
da94141
add github tests
lenadax May 6, 2022
70a0c67
update test setup. add js action
lenadax May 10, 2022
b9ed8a9
cleanup code
lenadax May 11, 2022
9c3b87b
write tests.
lenadax May 11, 2022
7dd6cf4
Merge pull request #5 from conestack/js_tests
rnixx May 11, 2022
1e02af3
ensure correct location of node_modules
lenadax May 12, 2022
17d5b01
"Restore bdajax compat"
rnixx May 20, 2022
adc306d
"Simplify IIFE bundle outro"
rnixx May 20, 2022
5b46ecc
"Karma coverage validation script formatting"
rnixx May 20, 2022
167d0ea
"Register resources with webresource"
rnixx May 21, 2022
16bdd13
Update bundle
rnixx May 23, 2022
da0838d
"Update webresource registration"
rnixx May 25, 2022
387750b
"Add path to webresource groups"
rnixx May 25, 2022
b8d34c6
"Adopt webresource registrations"
rnixx May 28, 2022
c095b29
"Install webresource from repo for tests"
rnixx May 29, 2022
65ae1b1
"Add resource tests"
rnixx May 30, 2022
df95627
"dedicated widget import in tests"
rnixx May 30, 2022
ed32748
Resource group name is widget name.
rnixx May 30, 2022
120b216
Added hook for yafowil.widget.array
toalba Dec 15, 2022
5c09ae0
updated select2 for treibstoff
toalba Dec 15, 2022
3ced764
cleanup
toalba Dec 15, 2022
5e129ae
test coverage
lenadax Dec 19, 2022
829456a
coverage
lenadax Dec 19, 2022
1e9e3d9
improve array_subscribers
lenadax Dec 22, 2022
0d66ee6
add msising newline
lenadax Dec 22, 2022
f12fb38
Use yafowil_array.inside_template API to check whether widget gets in…
lenadax Mar 9, 2023
309d3b3
compiled js
lenadax Mar 9, 2023
44b5c68
Merge pull request #6 from conestack/array_hook
rnixx Mar 9, 2023
86863a4
Changelog
rnixx May 15, 2023
d6ebb5d
Preparing release 2.0a1
rnixx May 15, 2023
c1e0d01
Update README
rnixx May 15, 2023
9981c40
Bump version
rnixx May 15, 2023
c9bdecc
Fix deprecated imports
rnixx Jul 19, 2023
8e377cd
Update changelog and package.json
rnixx May 23, 2024
f605168
Preparing release 2.0a2
rnixx May 23, 2024
3c854ee
Back to development: 2.0a3
rnixx May 23, 2024
dcb422f
mxmake setup
lenadax Nov 4, 2024
7750011
fix windows test issue
lenadax Nov 4, 2024
1b66cbf
Merge branch '2.0' of github.com:conestack/yafowil.widget.select2 int…
lenadax Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/test_js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: JS tests

on: [push]

jobs:
test:
name: Test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install
run: |
corepack enable
make nodejs

- name: Run tests
run: make wtr
50 changes: 50 additions & 0 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Python tests

on: [push]

jobs:
test:
name: Test ${{ matrix.python }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest

python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install
run: |
pip install wheel
pip install coverage
pip install https://github.com/conestack/webresource/archive/master.zip
pip install https://github.com/conestack/yafowil/archive/master.zip
pip install -e .[test]

- name: Run tests
run: |
python --version
python -m pytest src/yafowil/widget/select2/tests

- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/select2 --omit=src/yafowil/widget/select2/example.py -m pytest src/yafowil/widget/select2/tests
coverage report --fail-under=99
29 changes: 14 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
*~
*#*
*.egg-info
*.pyc
*.pyo
*.mo
*.egg-info
/develop-eggs/
/parts/
/bin/
/eggs/
/downloads/
/var/
/.coverage
/.mxmake/
/coverage/
/dist/
/.installed.cfg
/.pydevproject
/.project
/.DS_Store
/.mr.developer.cfg
/htmlcov/
/js/karma/
/node_modules/
/package-lock.json
/pnpm-lock.yaml
/py2/
/py3/
/pypy3/
/requirements-mxdev.txt
/venv/
27 changes: 24 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
Changes
=======

1.5 (unreleased)
----------------
2.0a3 (unreleased)
------------------

- Nothing changed yet.


2.0a2 (2024-05-23)
------------------

- Fix deprecated imports.
[rnix]


2.0a1 (2023-05-15)
------------------

- Add ``webresource`` support.
[rnix]

- Extend JS by ``select2_on_array_add``, ``register_array_subscribers``
to enable usage in ``yafowil.widget.array``.
[lenadax]

- No changes yet.
- Rewrite JavaScript using ES6.
[lenadax]


1.4 (2018-07-16)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
=======

Copyright (c) 2012-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021, Yafowil Contributors
Copyright (c) 2021-2024, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading
Loading