Recent Releases of https://github.com/centrefordigitalhumanities/django-shared-core
https://github.com/centrefordigitalhumanities/django-shared-core - Release 3.2
Release 3.2
So, this is my last release as maintainer of this project. Sad noises :(
It's been interesting to see a project which was originally just a bad way to fix a non-problem turn out into a foundation for more than 10 applications. Talking about legacy :P
Anyway, so long, and thanks for all the fish
What's Changed
Features:
- New mailing code:
cdh.mail; this new version is compatible with Django >=4.2- It's API-compatible with
cdh.core.mail, so just update the imports/base templates. (Don't forget to addcdh.mailtoINSTALLED_APPS) - Note: the new code is 'fault-permissive'; any exceptions thrown during sending are now catched (and logged) by default. If you depend on the old behavior either set
CDH_EMAIL_FAIL_SILENTLYtoFalsein your settings, or provide thefail_silently=Falsekwarg to the varioussendmethods/functions.
- It's API-compatible with
- Fake form field for headers etc by @tymees in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/90
- This can be used to display static text as part of the form, without resorting to JS injection of said text. See the custom form page in the dev project
- New vue-based list (UUList) by @tymees in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/89
- Replacement for Fancy-List
- feat: added Django 5 support by @tymees in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/93
- Feature/js search widget by @tymees in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/95
- Uses Select2 as a simple widget, no own JS/CSS required
- New date widgets hardcoded to use dutch formatting:
BootstrapDateInput,BootstrapSplitDateInput
Fixes:
- use window.jQuery instead of window.$ to avoid clashes by @bbonf in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/99
- Saver thread-local storage for
ThreadLocalStorageMiddleware - Validation errors are now visible when using
SearchableSelectWidget SearchableSelectWidgetnow correctly takes the width it's given on the page.
Deprecations
- File-loader utilities in
cdh.core; use Form Media instead cdh.core.mail, usecdh.mailinstead. The old code is not usable in Django versions >= 4.2
Docs:
- docs: update new repo url by @tymees in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/91
- Docs/update readme by @tymees in https://github.com/CentreForDigitalHumanities/django-shared-core/pull/92
Known problems
cdh.core.mail does not work with Django >=4.2; Migrate to cdh.mail for a working implementation
Full Changelog: https://github.com/CentreForDigitalHumanities/django-shared-core/compare/v3.1.0...v3.2.0
- JavaScript
Published by tymees almost 2 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - v3.2.0 alpha 0
TODO: write release notes :o
- JavaScript
Published by tymees about 2 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.1.0
What's Changed
Core
- Updated uu-bootstrap to version 1.4.0
minimal.html: new content blocks added:site-header: wraps around the existinguu-headeranduu-navbardivs and content blocks.site-content: wraps around the existinguu-contentdiv and content block.site-footer: wraps around the existinguu-footerdiv and content block.body-classes: can be used to add CSS classes to thebodytagsite-container-classes: can be used to add CSS classes to theuu-root-container
- New base template:
tool_base.html, which is a preset base template for the new 'tool' visual design base.htmlis now deprecated and replaced bysite_base.html. (Internallybase.htmlis now an extension ofsite_base.html)language_box.htmlis now deprecated and replaced bysite_language_box.html. (Internallylanguage_box.htmlis now an extension ofsite_language_box.html)- Added the ability to mark Custom Templated Email variables as 'HTML-safe', using a new 'safe' kwarg in the
CTEVarDefclass - Fixed
BootstrapSelectnot always applying its Bootstrap styles - Added a bootstrap styled version of
MultiWidgetand a corresponding mixin - Added a bootstrap styled version of
SplitDateTimeWidget(using the new widget above) - Added a new
MonthFieldDB field, a customDateFieldwhich tries to ignore the 'day' of a date.- In python, it uses a custom implementation of
datecalledMonth, which is setup to ignore the day. The field remains compatible with normaldateobjects however
- In python, it uses a custom implementation of
- Added a new
BootstrapMonthFieldForm field, to act as the default form field forMonthField. - Added two widgets:
MonthInputandSplitMonthInput. Both act as widgits forBootstrapMonthFieldMonthInputis a single field, which uses themonthinput-type. This type is not supported by all browsers, but the widget will still work in browsers that do not support the type natively. It is used by default byBootstrapMonthField.SplitMonthInputsplits month and year into separate fields usingBootstrapMultiWidget, with month being a dropdown and year an integer field
- Added
MinYearValidatorandMaxYearValidator. They can be used on any date-based DB fieldMonthFieldis setup to read the set values and set the HTMLminandmaxinput attributes accordingly.
New Apps
- Federated Auth app - an app to easily integrate SAML authentication into a Django project; uses PySAML2 in the backend, with custom tooling for easy configuration, more user-friendly UI and CSP compatibility.
- Integration platform app - an app integrating API resources (using
cdh.rest) from the UU integration platform. Currently implementing the Token API and the Identity API
Misc
- Modular dependency managing - Only install the dependencies for the Django Apps you're actually using
Migrating
This release should be backwards compatible with older 3.x releases. If you find a regression, please open an issue.
However, there is a breaking change in the dependency in how you you specify this library as a dependency.
In addition, there are some recommended base template changes.
Dependency listing
Even though this is a minor release, there is a breaking change regarding dependencies. You are now required list the optional dependencies for the apps you use in your requirements.txt. Use [all] to get the old behaviour of all dependencies. See the updated README for more info
Template changes
Please switch from the deprecated base templates to the new ones:
- base.html -> site_base.html
- language_box.html -> site_language_box.html
The old files will be removed in the next major update.
Some additional notes on minimal.html:
These changes to minimal.html were necessary as, unlike its name would suggest, the template was not minimal enough. In other words, they were still too opinionated on how to use the UU-layout. To preserve backwards compatibility only new content blocks were added. However, it is likely that more drastic changes will be made in a future major update, like moving the uu-header and uu-navbar content blocks to the other base templates that extend it.
Thus, if you use minimal.html as your base template, it is recommended you only extend the new site-{x} content blocks in your app-specific base template. Please also consider extending site_base.html instead.
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.2...v3.1.0
- JavaScript
Published by tymees almost 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.1.0 Alpha 6
What's Changed
Core
- Added the ability to mark Custom Templated Email variables as 'HTML-safe', using a new 'safe' kwarg in the
CTEVarDefclass - Fixed
BootstrapSelectnot always applying its Bootstrap styles - Added a bootstrap styled version of
MultiWidgetand a corresponding mixin - Added a bootstrap styled version of
SplitDateTimeWidget(using the new widget above) - Added a new
MonthFieldDB field, a customDateFieldwhich tries to ignore the 'day' of a date.- In python, it uses a custom implementation of
datecalledMonth, which is setup to ignore the day. The field remains compatible with normaldateobjects however
- In python, it uses a custom implementation of
- Added a new
BootstrapMonthFieldForm field, to act as the default form field forMonthField. - Added two widgets:
MonthInputandSplitMonthInput. Both act as widgits forBootstrapMonthFieldMonthInputis a single field, which uses themonthinput-type. This type is not supported by all browsers, but the widget will still work in browsers that do not support the type natively. It is used by default byBootstrapMonthField.SplitMonthInputsplits month and year into separate fields usingBootstrapMultiWidget, with month being a dropdown and year an integer field
- Added
MinYearValidatorandMaxYearValidator. They can be used on any date-based DB fieldMonthFieldis setup to read the set values and set the HTMLminandmaxinput attributes accordingly.
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.1.0-alpha-5...v3.1.0-alpha-6
- JavaScript
Published by tymees almost 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - v3.1.0-alpha-5
What's Changed
Core
- Updated uu-bootstrap to 1.4.0-alpha.1
minimal.html: new content blocks added:site-header: wraps around the existinguu-headeranduu-navbardivs and content blocks.site-content: wraps around the existinguu-contentdiv and content block.site-footer: wraps around the existinguu-footerdiv and content block.body-classes: can be used to add CSS classes to thebodytagsite-container-classes: can be used to add CSS classes to theuu-root-container
- New base template:
tool_base.html, which is a preset base template for the new 'tool' visual design base.htmlis now deprecated and replaced bysite_base.html. (Internallybase.htmlis now an extension ofsite_base.html)language_box.htmlis now deprecated and replaced bysite_language_box.html. (Internallylanguage_box.htmlis now an extension ofsite_language_box.html)
Federated Auth
- Updated uu-bootstrap to 1.4.0-alpha.1
Migrating
This release should be backwards compatible with older 3.x releases. If you find a regression, please open an issue.
However, it is recommended you do make some changes to your app to ease migrating to an upcoming major update:
Please switch from the deprecated base templates to the new ones:
- base.html -> site_base.html
- language_box.html -> site_language_box.html
Some additional notes on minimal.html:
These changes to minimal.html were necessary as, unlike its name would suggest, the template was not minimal enough. In other words, they were still too opinionated on how to use the UU-layout. To preserve backwards compatibility only new content blocks were added. However, it is likely that more drastic changes will be made in a future major update, like moving the uu-header and uu-navbar content blocks to the other base templates that extend it.
Thus, if you use minimal.html as your base template, it is recommended you only extend the new site-{x} content blocks in your app-specific base template. Please also consider extending site_base.html instead.
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.1.0-alpha-4...v3.1.0-alpha-5
- JavaScript
Published by tymees almost 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.1.0 Alpha 4
What's Changed
Federated Auth
- Required
INSTALLED_APPSandMIDDLEWAREadditions are now provided through listsSAML_APPSandSAML_MIDDLEWAREin the settings file
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.1.0-alpha-3...v3.1.0-alpha-4
- JavaScript
Published by tymees almost 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.1.0 Alpha 3
What's Changed
Federated Auth
- Fixed incorrectly capitalized default attribute map
- Prefer HTTP Redirect for logout requests; fixes bug that caused SOAP to be selected without supporting it
- Fixed some signing settings to avoid errors processing AuthnAssertions
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.1.0-alpha-2...v3.1.0-alpha-3
- JavaScript
Published by tymees almost 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.1.0 Alpha 2
What's Changed
Federated Auth
- Added new custom SAML LogoutInitView that can handle non-SAML sessions as well
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.1.0-alpha-1...v3.1.0-alpha-2
- JavaScript
Published by tymees about 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.1.0 Alpha 1
What's Changed
Note: Even though this is a minor release, there is a breaking change regarding dependencies. You are now required list the optional dependencies for the apps you use in your requirements.txt. Use [all] to get the old behaviour of all dependencies. See the updated README for more info
New
- Federated Auth app - an app to easily integrate SAML authentication into a Django project; uses PySAML2 in the backend, with custom tooling for easy configuration, more user-friendly UI and CSP compatibility.
- Integration platform app - an app integrating API resources (using
cdh.rest) from the UU integration platform. Currently implementing the Token API and the Identity API - Modular dependency managing - Only install the dependencies for the Django Apps you're actually using
More features are planned for 3.1.0, hence the alpha status. However, the federated auth app is considered to be in beta.
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.1...v3.1.0-alpha-1
- JavaScript
Published by tymees about 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.2
What's Changed
- Updated uu-bootstrap to 1.3.1 to include some fixes in that release
- Updated department names
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.1...v3.0.2
- JavaScript
Published by tymees about 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.1
Fixes
- Validation feedback was not showing on some custom widgets using the custom form template
- Positive validation was never showing using the custom form template. (Old behaviour can be restored by setting
show_valid_fieldstoFalseon your form.)
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0...v3.0.1
- JavaScript
Published by tymees over 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0
Version 3.0.0
Update 2022-10-24 15:15: 3.0.0 was re-released with an urgent fix for cdh.rest. Mondays...
This release is not backwards compatible with versions older than 3. Please follow the migration guide when upgrading.
As always, look through the code for more information. In addition, the previous alpha and RC releases might contain some more info.
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v2.0.7...v3.0.0
General
- The old
uil.*namespace has been renamed tocdh.* - Django 4 support
- Python 3.10 support
- Added a dev project for developing this app independently from other apps
- Also includes testing for DSC
- Added a set of helper scripts to mimic Django management commands (like 'makemessages')
- Added basic sphinx documentation
- Added requirement of Django Impersonate
cdh.core
- The previously built-in bootstrap theme has been replaced by uu-bootstrap
- A precompiled version is shipped with this release, if one does not want to setup the required infrastructure in their own project
- Reworked base-templates for easier customization of the base template
- More overridable content blocks have been added to
base.html base.htmlnow displays a 'local development' and 'acceptation server' (if setup) warning in the header- A new minimal base template is provided through
minimal.html,base.htmlnow serves as a opiniated implementation of uu-bootstrap usingminimal.html - The usage of app-specific base templates extending one of the two is now highly encouraged.
- Also using new UU-logo's... Finally...
- More overridable content blocks have been added to
- Added
cdh.core.forms- Added
TemplatedFormMixin,TemplatedFormandTemplatedModelForm, classes that setup Bootstrap rendering properly using a new base form template. - Note: base form templates requires Django 4.0 or higher
- Added several widget classes to render properly in Bootstrap
- Added several widget classes using HTML5 input types (like
datetime) - Added a TinyMCE enabled HTML-edit widget
- Added
- Added
display_messagestemplate tag for easy rendering of Django Messages - Reworked Mailing
cdh.core.utils.mailhas been deprecated and will be removed in 4.0cdh.core.mailhas been added as a replacement, with the following features- A base template for HTML emails (in UU branding)
- Class based emails (optional, for advanced usage)
- Util functions with similar API as the old
cdh.core.utils.mailfunctions, but using the new class-based backend - Automatic HTML/Plain email generation (in other words, only one is required now with the other version being automatically generated)
- A framework for sending mails with user created/modified content, using TinyMCE as an editor (with preview)
- jQuery 3.6.1 (up from 3.3.1). Warning: it's not fully backswards compatible
- However, I don't think anyone uses the weird syntax that was removed
- https://jquery.com/upgrade-guide/3.5/
- Miscelanious:
- Custom templates for Django Impersonate
- Django admin UU branding theme
- Added
cdh.core.collections.IndexedOrderedSet(OrderedSet with index access implemented) - Added a mechanism for other apps in the
cdhnamespace to load JS/CSS files when they are enabled. (cdh.core.file_loading). It's a bit tricky to use, but can be used by app-apps (awesome terminology Django) as well to load in JS/CSS files. - Numerous small fixes/tweaks I don't really want to list because I've been typing for an hour now.
cdh.files
A custom implementation of a FileField. Django's FileField is a bit... stupid:
- It saves the files as-uploaded in a folder, only saving the filename in the DB
- File name conflicts are solved by adding a random string to the filename (== bad UX)
- When using a filename generator, the original filename is lost (again sometimes resulting in bad UX)
- Renaming the file after upload is a pain
- File deletion on object deletion is wonky
- By default, everyone can access any file if they have the right URL
Instead, this app uses the following approach:
- Using a DB model to save metadata (original filename, mimetype, uploader*, date created/modified)
- This DB instance always represents a unique file. When changing the file a new DB instance is created
- When cloning a referencing object, the file will be shared. Changing the file on one, will not change the file on the other but create a new one instead
- It saves the file with a UUID as it's filename, ideally in a protected folder; this UUID is also used as the key in the DB
- Filename generation (using a generator function) happens at access-time, thus can dynamically switch filenames.
- The default generator function returns the original filename
- Files are automatically cleaned if the app detects all references to it being deleted
- File access/download is handled by a Django view (allowing access-restrictions)
- A base view class is provided
cdh.files.views.BaseFileView, you'll need to create a version in your app. (For security reasons there isn't one added to the URLconf by default)
- A base view class is provided
Basic usage should be as simple as using the FileField in cdh.files.db.fields (and loading the cdh.files app).
Advanced usage includes using a custom DB metadata modal and/or a custom FileWrapper.
Note: TrackedFileField is working on the backend, but no frontend has been written yet.
cdh.systemmessages
New system messages app, an expanded version of the system messages code from the ethics project
- Intended to display certain 'alerts' (commonly on the homepage) to communicate system downtime, updates, etc
- Automatically adds Django Admin pages to edit/add messages
- Included template tags (load_system_messages and display_system_messages) for easy integration
- Contains a pre-written Django Form for easy user-interface integration
cdh.rest
Replaces uil.rest_client. (Now under cdh.rest.client). Should be as simple as changing the imports, nothing has changed internally.
Also included some code for the serverside (cdh.rest.server), which still carries Beta status. (read: currently it's a code-dump from another project, formal integration will happen in 3.1).
Known issues
jQuery UI Datepicker is thorougly broken and will be removed at a later date. Apps are encouraged to switch to native HTML5 date, datetime and time widgets provided by cdh.core.forms. If that's not possible, ask Ty for help. He knows how to fix it ;)
- JavaScript
Published by tymees over 3 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Release Candidate 4
New
- New system messages app, an expanded version of the system messages code from the ethics project
- Intended to display certain 'alerts' (commonly on the homepage) to communicate system downtime, updates, etc
- Automatically adds Django Admin pages to edit/add messages
- Included template tags (
load_system_messagesanddisplay_system_messages) for easy integration - Contains a pre-written Django Form for easy user-interface integration
- jQuery 3.6.1 (up from 3.3.1). Warning: it's not fully backswards compatible
- However, I don't think anyone uses the weird syntax that was removed
- https://jquery.com/upgrade-guide/3.5/
- 3.3.1 is still available, if needed. However, it will probably be removed in 3.0.0 if we don't find any problems during the RC phase
- Updated base templates for Django Impersonate
Fixes
- Base email-preview view was erroring if supplied path variables
- Preview email-rendering overwrote dynamic preview variables with static defaults
- DateTimeInput was not filling in existing values correctly
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0-rc.3...v.3.0.0-rc.4
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Release Candidate 3
New
- Updated to UU Bootstrap 1.3
- Added new content block to
base.html:pre-messages-content. This is a block meant for content components (e.g. uu-hero and uu-cover) above the messages.
As basically every app was adding a similar content block to their app base template, it was logical to just have one in the general base.
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0-rc.2...v3.0.0-rc.3
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Release Candidate 2
New
- Initial documentation
- Updated to UU-Bootstrap v1.2
- A bootstrap version of the Select widget
Fixed
- Unable to use the whole width of the navbar
- qTips being attached to the wrong label (table form only)
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0-rc.1...v3.0.0-rc.2
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Release Candidate 1
An initial migration guide is provided in the new docs folder
Changes since last alpha
- Fix for Django 4.1. Thanks @bbonf!
- A new TinyMCE widget
- New mailing framework (see
cdh.core.mail) - Initial work on documentation
- Updated to UU-Bootstrap 1.1.0
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0-alpha9...v3.0.0-rc.1
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Alpha 9
Changes
- Update UU-Bootstrap to RC.3
- Switched the Form Template to the new UU Form component
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0-alpha8...v3.0.0-alpha9
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Alpha 8
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Alpha 7
Bootstrap theme
The build-in theme based upon Bootstrap 4 has been replaced by a shiny new one based upon Bootstrap 5. In this migration, all source SCSS has been moved into it's own repo. (It even has it's own documentation, check it out!)
This new theme has breaking changes! Please refer to the theme repo docs linked above.
New base template(s)
A new base template has been added: base/minimal.html. This new basetemplate only sets up the <head>, a root container and some (empty) template blocks according to the new UU-layout format: uu-header, uu-navbar, uu-content and uu-footer.
Previously, apps were stuck with the layout provided by the base template, with only very limited customization options in the header and navbar (and none in the footer). This template is meant to provide more customisation options for apps (and by extension, individual pages) by allowing customization of all segments.
The existing base/base.html template has been reimplemented on top of base/minimal.html. Existing apps should not notice anything from this change, but can now opt to override parts of this layout using the new template blocks of minimal.
New template tag
A new display_messages tag (load using {% load messages %}) has been added to display Django Messages messages. This is meant for apps using a custom uu-content implementation, as the minimal template does not add this like the base template does.
This was needed as the new uu-hero components often need to be the first component of uu-content to look right. This tag allows custom uu-content blocks to add the messages anywhere the designer wants.
Usage:
{% display_messages messages %} for displaying the messages inside a .uu-container. If you don't want it to add its own container, use {% display_messages messages False %}.
Form additions/changes
TemplatedForm and TemplatedModelForm have been added to the cdh.core library (under forms). These baseclasses are setup to use the new form template.
BootstrapCheckboxSelectMultiple, BootstrapCheckboxInput and BootstrapRadioSelect widgets have been added under the same package to provide Bootstrap styled widgets for Django's build in versions of those widgets. These are required when using the new templated form!
All html5 enabled widgets have moved into this package as well.
Broken stuff
jquery-datepicker is thorougly broken. Apps are encouraged to switch to native HTML5 date, datetime and time widgets provided by cdh.core.forms
Probably more stuff, make issues as you find them! :)
- JavaScript
Published by tymees almost 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Alpha 6
Rest app
A new cdh.rest app has been created, combining both the old rest_server and rest_client app into a single app. As well, the ModelDisplaySerializer has been moved from cdh.core to the server subpackage of this new app
- JavaScript
Published by tymees about 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Alpha 5
Full Changelog: https://github.com/DH-IT-Portal-Development/django-shared-core/compare/v3.0.0-alpha4...v3.0.0-alpha-5
- JavaScript
Published by tymees about 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 3.0.0 Alpha 4
Note: Version 2.1 has been promoted to a new major version (3.0), due to major breaking changes.
General
uilnamespace has been changed tocdh, please change your imports!
Core app
- When in debug, sending mails no longer throws fatal errors when no SMTP server can be contacted
Base template changes
- UU logo now opens uu.nl in a new tab (finally!)
- New UU logo is now used
- JavaScript
Published by tymees about 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.1.0 Alpha 3
WARNING! In the next alpha the uil namespace will be replaced by cdh!
uil.files
- Redesigned the files app to use a File model to always specify a specific file; when uploading new versions of a file a new File will always be created to represent it
- Added cleanup code that automatically removes files that are not referenced anywhere
- Added better MIME detection/reporting
- Added tests
- Added more download base views
- Various other improvements
uil.core
- Added IndexedOrderedSet (OrderedSet with index access implemented)
- Base template will display warning if locally developing and (optional) when running on an acceptation server
- Added custom form fields that use HTML5 field types (PasswordField, ColorField, TelephoneField, DateField, DateTimeField, TimeField)
Base CSS
- Switched to a variable based color palate
- h1 and h2 are now two different sizes
- h4, h5 and h6 font-weight has been increased for readability
- various other small tweaks
- Use bootstrap messages instead of old janky messages CSS
- New Form CSS
Other
- Updated dev project to latest library support
- Proper Django 4 support
- JavaScript
Published by tymees over 4 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.1.0 Alpha 2
uil.files
- Fixed some FileWrapper methods not using the filename as on disk
- Added a filename_generator parameter to FileField, which can be used to supply a callable which determines the name of the file. (Defaults to using the original filename)
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.1.0 Alpha 1
uil.core
- Use new UU logo's
- When clicking the UU logo, the uu.nl site now opens in a new tab
- Added a mechanism for other apps in the
uilnamespace to load JS/CSS files when they are enabled
uil.files
This new app implements an alternative for Django's FileField. In this alpha only FileField and it's corresponding Form code is ready. In further alpha versions additional variants will be added (such as 'historied-files')
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.9
Bootstrap UU Theme
- Cleaned up the mobile menu CSS:
- Removed gap between last menu item and the menu border
- Reduced contrast between menu item borders and the item background color
- Fixed an issue with .hide-xs removing certain styles due to the fix from 2.0.6
- The new fix is a lot more elegant: just don't include the offending styles as there weren't even needed
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.8
Base template
- Refactored main menu CSS to take-up all width instead of using margins
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.7
Base template
- Allow optionally adding CSS classes to specific menu items
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.6
Bootstrap UU Theme
* Fixed an issue in which the hide-xs class would incorrectly inherit the parent's display property value instead of using the default value
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.5
uil.core
* Fixed makemessages override not working in Django 3+
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.4
UFL * Fixed an issue in which lists with lots of pages made pagination overflow and become useless
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.3
Fixed two issues with UFL's: - Long titles could overlap with the expand arrow - 'Sort on' text has been corrected to 'Sort by'
- JavaScript
Published by tymees almost 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.2
uil.rest_client
- Fixed an issue which caused
to_apito not be a proper inverse ofto_python, which caused some resources to error during retransmission - Added much more logging
These two items might be related ;)
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0.1
This bugfix release fixes a problem causing errors importing the uil.vue app in Django 3.1+
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0
This release adds the following: - More Django -> JS coupling options - Comprehensive Vue support - Several new Django template tags and filters - Better strict CSP handling - UU-Fancy-list has been replaced by UiL-Fancy-List, which is a re-implementation of the old jQuery plugin in Vue
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0 Beta 5
UFL: - Allow setting the default number of items per page through a setting - Allow setting if the controls are to be displayed through a setting
General: - Added missing dependency
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0 Beta 4
- Support Icomoon icons in UFL actions
- Restored UFL params template that was accidentally deleted
- Fixed UFL item arrow not being part of the top bar.
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0 Beta 3
This beta fixes: - strict CSP compatibility - Vue component loading order. (It now uses a proper topological sort, as the previous naive sort only worked accidentally)
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0 Beta 2
UiL Vue plugin: - Don't try to resolve already resolved URL's - Added a date filter
FancyList: - (Django Api view) Set default sort in a separate variable - Fixed non-string types not being filtered correctly - Format booleans as yes/no in filter options - Fixed clicking an action triggering an expansion
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 2.0 Beta 1
- JavaScript
Published by tymees about 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1.1
Fix: added missing jQuery UI libraries needed for UU-Fancy-list
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1
New in 1.1:
Python: - Django 3 compatibility - new wrappers around Django's mail systems - Added custom REST Client, modeled after Django's model layer - Added encrypted model fields
Templates: - Added UU-Fancy-list JS/CSS library - better text legibility - Support for dropdown main menu
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 11
Added a new visual template for lists
This is an alternative for datatable lists, which only shows the most important stuff while still allowing information that is less important to be presented.
This is also allows for richer content to be presented.
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 10
This beta release adds better text legibility and some color tweaks to the dropdown menu
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 9
This beta gives the language-change box it's own class
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 8
This beta release adds the following:
- CSS styling for H6 elements
- CSS stylings for a cover image
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 7
This beta release adds support for sub-menu's
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 6
Improvements to help text rendering
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 5
This beta fixes a glitch in the previous release-tag
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 4
Fixed some Django 3 incompatibilites and errors in the mail helpers
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 3
Added mail-helpers
- JavaScript
Published by tymees over 5 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.1 Beta 2
Included Django 3 support, encrypted model fields and a Django REST Client
- JavaScript
Published by tymees almost 6 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - Version 1.0
- JavaScript
Published by tymees about 6 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - v1.0.0-rc5
- JavaScript
Published by tymees about 6 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - v1.0.0-rc4
Updated datatables
- JavaScript
Published by tymees over 6 years ago
https://github.com/centrefordigitalhumanities/django-shared-core - v1.0.0-rc3
- JavaScript
Published by tymees almost 7 years ago