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 #6

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
7a879ad
setup karma and rollup
lenadax Aug 16, 2021
4e35345
add js folder, setup tests and rollup
lenadax Aug 16, 2021
d49f3da
Basic widget refactoring
rnixx Oct 2, 2021
ba8ca78
Ignore array templates in initialize. Initialize child arrays on add.…
rnixx Oct 2, 2021
307af55
fix clean script. Update rollup
rnixx Oct 31, 2021
c4616f5
karma and rollup config
lenadax Jan 21, 2022
11bac8c
Remove map files. Housekeeping.
rnixx Mar 14, 2022
ef514e9
Update JS bundles
rnixx Mar 14, 2022
4f77c44
test and coverage script
rnixx Mar 14, 2022
8fd1c0b
Clean script
rnixx Mar 14, 2022
4ce3f07
update gitignore
lenadax Mar 15, 2022
6504fae
update autoWatch config
lenadax Mar 17, 2022
205d54a
use scss
lenadax Apr 25, 2022
e6312bc
change fallback color to bs5 blue
lenadax May 4, 2022
ee02e78
housekeeping
lenadax May 5, 2022
a578739
rudimentary test setup
lenadax May 5, 2022
0cb6fc1
rudimentary test setup
lenadax May 5, 2022
2fa259e
Merge pull request #7 from conestack/lenadax/scss
rnixx May 6, 2022
a837b0b
remove css sourcemaps
lenadax May 6, 2022
59f2f08
add github tests
lenadax May 6, 2022
3a61cba
add js action
lenadax May 10, 2022
36b8390
Merge pull request #8 from conestack/js_action
rnixx May 11, 2022
0d0d7ba
ensure correct location of node_modules
lenadax May 12, 2022
62a01e8
"Restore bdajax compat"
rnixx May 20, 2022
f9decf1
"Simplify IIFE bundle outro"
rnixx May 20, 2022
2f319ec
"Karma coverage validation script formatting"
rnixx May 20, 2022
3d27b7a
"Consistent naming when attaching yafowil widget instance to DOM elem"
rnixx May 20, 2022
165e094
"Register resources with webresource"
rnixx May 20, 2022
e65670b
Update bundle
rnixx May 23, 2022
69b2753
"Update webresource registration"
rnixx May 25, 2022
62f79d1
"Add path to webresource groups"
rnixx May 25, 2022
731ac85
"Adopt webresource registrations"
rnixx May 28, 2022
55dc310
"Test housekeeping"
rnixx May 29, 2022
95ac000
"Install webresource from repo for tests"
rnixx May 29, 2022
6161c6c
"Add resource tests"
rnixx May 30, 2022
59e0530
"dedicated widget import in tests"
rnixx May 30, 2022
57254ee
Resource group name is widget name.
rnixx May 30, 2022
ee0a6ce
Port changes from 1.7. ``array.hooks`` are deprecated. Use ``on_array…
rnixx Nov 12, 2022
a2798d6
Fix B/C array hook invocation.
rnixx Nov 17, 2022
acea8e6
Add ``inside_template`` JS utility function.
rnixx Mar 9, 2023
e11adea
Changelog
rnixx May 15, 2023
67bc50c
Preparing release 2.0a1
rnixx May 15, 2023
02cd12a
Back to development: 2.0a2
rnixx May 15, 2023
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
34 changes: 34 additions & 0 deletions .github/workflows/test_js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: JS Test array

on:
push:
paths:
- '**.js'

jobs:
test:
name: TEST ARRAY

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install
run: |
npm --save-dev install \
qunit \
karma \
karma-qunit \
karma-coverage \
karma-chrome-launcher \
karma-module-resolver-preprocessor
npm --no-save install https://github.com/jquery/jquery#main

- name: Run tests
run: |
node_modules/karma/bin/karma start js/karma.conf.js

- name: Run coverage
run: |
npm run karma-test:coverage
52 changes: 52 additions & 0 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: PY Test array

on:
push:
paths:
- '**.py'

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:
- "2.7"
- "3.7"
- "3.8"
- "3.9"
- "3.10"

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 lxml
pip install zope.testrunner
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 yafowil.widget.array.tests
- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/array --omit=src/yafowil/widget/array/example.py -m yafowil.widget.array.tests
coverage report --fail-under=99
23 changes: 10 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
*~
*#*
*.pyc
*.egg-info
/develop-eggs/
/parts/
/bin/
/eggs/
*.pyc
*.pyo
/.coverage
/dist/
/devsrc/
/.installed.cfg
/.pydevproject
/.project
/.DS_Store
/.mr.developer.cfg
/htmlcov/
/js/karma/
/node_modules/
/package-lock.json
/py2/
/py3/
/pypy3/
17 changes: 0 additions & 17 deletions .jshintrc

This file was deleted.

20 changes: 18 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
Changes
=======

1.8 (unreleased)
----------------
2.0a2 (unreleased)
------------------

- Nothing changed yet.


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

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

- Add ``inside_template`` JS utility function.
[rnix]

- ``array.hooks`` are deprecated. Use ``on_array_event`` instead.
[rnix]

- Rewrite JavaScript using ES6.
[rnix]


1.7 (2022-10-06)
----------------

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) 2011-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021, Yafowil Contributors
Copyright (c) 2021-2022, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Contributors

- Georg Bernhard

- Lena Daxenbichler
170 changes: 0 additions & 170 deletions bootstrap.py

This file was deleted.

32 changes: 0 additions & 32 deletions buildout.cfg

This file was deleted.

Loading