Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
7651540
cleanup, restructure package folders
MrTango Oct 24, 2022
65222bb
rename controlpanel.xml before using plonecli
MrTango Oct 24, 2022
bd7f8d6
"Add Control Panel: EasySliderSettings"
MrTango Oct 24, 2022
f89120f
Implement new control panel via plonecli
MrTango Oct 24, 2022
ee1c637
cleanup
MrTango Oct 24, 2022
5a87e87
"Add form: slider-settings"
MrTango Oct 24, 2022
d64cc91
cleanup, add tox and GH CI
MrTango Oct 24, 2022
40c9015
working slider-settings view/adapter
MrTango Oct 25, 2022
077c352
implement SlidesWidget and use it for slides field
MrTango Oct 25, 2022
24f9a36
"Add form: edit-slide"
MrTango Oct 25, 2022
2c4e1f0
implement AddSlideForm WIP
MrTango Oct 26, 2022
de08464
apply 2to3
MrTango Oct 26, 2022
0ca339c
prevent slider viewslets from being rendered when slideshow is inactive
MrTango Oct 26, 2022
bd73b0e
cleanup
MrTango Oct 26, 2022
3960de9
finish AddSlideForm/Adapter
MrTango Oct 26, 2022
ace8a3c
update resources and register them in resource registry
MrTango Oct 26, 2022
04aad43
fix slides actions move/remove aso
MrTango Oct 26, 2022
ff31496
add Py3.10 to CI
MrTango Oct 26, 2022
68ca0bf
improved slider management, move settings into settings fieldset
MrTango Oct 26, 2022
694ee4d
"Add upgrade_step: Reload new Plone 6 settings"
MrTango Oct 26, 2022
70996bc
fix upgrade step setup
MrTango Oct 26, 2022
8e746ce
fix _get_global_setting missing
MrTango Oct 27, 2022
a4ad8dd
disable CSRFProtection in slider viewlets, we are writing the setting…
MrTango Oct 27, 2022
d34368d
use own transforms for slider, not richfield one
MrTango Oct 27, 2022
ea8a552
enable slider for folders
MrTango Oct 27, 2022
86a9c4d
set default setting when slider is enabled, not in viewlet
MrTango Oct 27, 2022
1fa9c44
fix edit-slide using the wrong data
MrTango Oct 27, 2022
c7d99b6
cleanup
MrTango Oct 28, 2022
c0c9f89
fix default slider settings
MrTango Oct 28, 2022
a7f4d4b
fix SliderView WIP
MrTango Oct 31, 2022
01ff2f9
"Add form: view-slider-settings"
MrTango Oct 31, 2022
d5dc30b
fix permission for SliderViewSettingsForm
MrTango Oct 31, 2022
361f804
rename ISliderLayer to ICollectiveEasysliderLayer
MrTango Oct 31, 2022
ac047c2
finish SliderViewSettingsForm
MrTango Oct 31, 2022
a19e968
fix sliderview
MrTango Oct 31, 2022
12b43f5
remove bolder from slider-container
MrTango Oct 31, 2022
54846fe
add ISliderLayer for BBB
MrTango Oct 31, 2022
ee538d4
fix test layer names
MrTango Oct 31, 2022
d2ab5b4
fix slider-view-settings
MrTango Nov 1, 2022
b7b940b
code styles / linting
MrTango Nov 1, 2022
729aeff
deactivate print
MrTango Nov 1, 2022
27036ef
always return a list in get_items
MrTango Nov 15, 2022
5b7d8be
prevent error if _metadata is None
MrTango Nov 16, 2022
588bb49
don't fail if _metadata is None
MrTango Nov 16, 2022
2cbd36e
fix the fix
MrTango Nov 16, 2022
9dcd4ba
improve action, to only allow slider view activation on Folders/Colle…
MrTango Nov 16, 2022
fc491a5
add border_width and padding options to slider
MrTango Nov 16, 2022
2eab2a3
"Add upgrade_step: Load slider setting to update new settings border_…
MrTango Nov 16, 2022
3171ef5
integrate new padding and border_width setting
MrTango Nov 16, 2022
e317763
prevent slider width/height calculation failing when no widht/height …
MrTango Nov 16, 2022
429c78c
do not fail when padding/border_width are None
MrTango Nov 16, 2022
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
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
* collective.easyslider version:
* Plone Version:
* Python version:
* Operating System: Linux

### Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

### What I Did

```
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
```
66 changes: 66 additions & 0 deletions .github/workflows/plone-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Plone package

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
plone-version:
- 'Plone60'
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/pip
~/buildout-cache
~/extends
key: ${{ runner.os }}-tox-${{ matrix.python-version }}-${{ matrix.plone-version }}-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/*.cfg') }}-${{ hashFiles('**/constraints.txt') }}-${{ hashFiles('**/tox.ini') }}
#restore-keys: |
# ${{ runner.os }}-tox-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install system libraries
run: sudo apt-get install libxml2-dev libxslt1-dev libjpeg-dev
- name: setup buildout cache
run: |
mkdir -p ~/buildout-cache/{eggs,downloads}
mkdir ~/.buildout
echo "[buildout]" > $HOME/.buildout/default.cfg
echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg
echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
# - name: Black-Check
# run: |
# tox -r -e black-check
- name: Test with tox
run: |
tox -r
env:
PLONE-VERSION: ${{ matrix.plone-version }}
PYTHON-VERSION: ${{ matrix.python-version }}
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v1"
with:
fail_ci_if_error: true
if: matrix.python-version == '3.9'
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ collective.easyslider.egg-info/*


*.gz
/bin/
/parts
/.vscode/
/.python-version
/.installed.cfg
/.mr.developer.cfg
**/*.egg-info
/develop-eggs
/var
/src/collective/easyslider/profiles/default/controlpanel.xml_bak
/reports
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

107 changes: 107 additions & 0 deletions base.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
[buildout]
show-picked-versions = true
extensions =
mr.developer

parts =
instance
test
# we use tox for testing and linting, by default
# code-analysis
coverage
test-coverage
createcoverage
releaser
i18ndude
omelette
robot
plone-helper-scripts
vscode

develop = .


[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 8080
environment-vars =
zope_i18n_compile_mo_files true
eggs =
Plone
Pillow
pdbpp
collective.easyslider[test]

[vscode]
recipe = collective.recipe.vscode
eggs = ${instance:eggs}
autocomplete-use-omelette = True


[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}


[test]
recipe = zc.recipe.testrunner
eggs = ${instance:eggs}
initialization =
os.environ['TZ'] = 'UTC'
defaults = ['-s', 'collective.easyslider', '--auto-color', '--auto-progress']


[coverage]
recipe = zc.recipe.egg
eggs = coverage


[test-coverage]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
export TZ=UTC
${buildout:directory}/bin/coverage run bin/test $*
${buildout:directory}/bin/coverage html
${buildout:directory}/bin/coverage report -m --fail-under=90
# Fail (exit status 1) if coverage returns exit status 2 (this happens
# when test coverage is below 100%.
output = ${buildout:directory}/bin/test-coverage
mode = 755


[createcoverage]
recipe = zc.recipe.egg
eggs = createcoverage


[robot]
recipe = zc.recipe.egg
eggs =
${test:eggs}
plone.app.robotframework[debug,reload]


[releaser]
recipe = zc.recipe.egg
eggs = zest.releaser


[i18ndude]
recipe = zc.recipe.egg
eggs = i18ndude

[plone-helper-scripts]
recipe = zc.recipe.egg
eggs =
Products.CMFPlone
${instance:eggs}
interpreter = zopepy
scripts =
zopepy
plone-compile-resources

[versions]
# Don't use a released version of collective.easyslider
collective.easyslider =
5 changes: 5 additions & 0 deletions bobtemplate.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[main]
version = 6.0.0
template = plone_addon
git_init = y
python = python3
Loading