-
Notifications
You must be signed in to change notification settings - Fork 3
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
Log of changes for upgrade to Bootstrap5 #74
Comments
Note that copies of bootstrap.css and bootstrap.bundle.js are present in each of the 20-ish shared themes in the template. |
For our default custom1 theme, however, the bootstrap CSS comes in via npm: Then in scss I replaced the _bs4 file with _bs5, and updated all the imports to the updated set delivered from the node modules. |
Each of the 20+ shared themes has its own _Layout.cshtml, as does the custom1 theme, and an overall non-themed default one. pl and pr become ps and pe data-toggle becomes data-bs-toggle Renamed .sr-only and .sr-only-focusable to .visually-hidden and .visually-hidden-focusable |
Cloudscribe.Web.Navigation - will now exist at v.5.0.1 with a complete set of new nav components: Minimal changes to how they function. For future consideration: |
cloudscribe.Web.Pagination: doing nothing here for the moment because I think the pager tag helpers (even the bootstrap one) don't do anything that needs to change. The use of multiple data- attributes such as data-ajax-success seem entirely related to the jquery.unobtrusive-ajax.js dependency, which I'm not changing... so don't need to change to data-bs-ajax-success |
cloudscribe.Core.CompiledViews.Bootstrap5 new Nuget at v5.0.0 contains fixes to the main breaking BS classes. |
cloudscribe.FileManager.Web up to 5.0.1 Chain up through cloudscribe.FileManager.CoreIntegration up to 5.0.2 |
cloudscribe.IdentityServerIntegration.CompiledViews.Bootstrap5 new Nuget at v5.0.0 - full of views as previously. |
cloudscribe.Web.Common up to 5.0.1 |
There is no BS5 version of bootstrap4-datetimepicker.min.js |
File Manager broken under BS5 |
cloudscribe.DynamicPolicy.Web.Views.Bootstrap5 new NuGet at 5.0.0 |
cloudscribe.Logging.Web up to 5.0.1 (just one view) |
cloudscribe.SimpleContactForm up to 5.0.1 (views) |
cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5 new NuGet at 5.5.0 (note 5.5) |
cloudscribe.SimpleContent.CompiledViews.Bootstrap5 new NuGet at 5.5.0 (note 5.5) |
cloudscribe.SimpleContent.ContentTemplates.Bootstrap5 new NuGet at 5.5.0 (note 5.5) |
There is technical debt with cloudscribe.SimpleContent.ContentTemplates.Bootstrap5 because the project contains views but also a bunch of c# classes, controllers etc. Should be factored out into separate projects, with one containing just the views. That'll be a separate undertaking / issue. |
cloudscribe.SimpleContent.ContentTemplates.Bootstrap5 required quite a bit of intervention to controllers, JS, and c# template definitions, due to coupling between (template) views and the version of BS. |
cloudscribe.SimpleContent.Web up to v5.5.2 (JS changes) |
cloudscribe.Email.Templating.Web to v 5.0.1 (views) Needs a reference up through cloudscribe.EmailList.Web.Mvc to v. 5.0.2 |
cloudscribe.EmailList.Views.Bootstrap5 new NuGet at 5.0.0 - about 25 views |
cloudscribe.Forms.Bootstrap5 new NuGet at 5.0.0 - about 20 views |
cloudscribe.Forms.ContentTemplate.Bootstrap5 new NuGet at 5.0.0 |
Potential point of breakage: |
NuGet reference chain problems. No that won't do - I need a new cloudscribe.Web.SiteMap.FromNavigation at 501 that refs cloudscribe.Web.Navigation at 501 |
Modals are broken: CS's use of a custom attribute bs-modal-link="true" this taghelper detects the bs-modal-link attribute and if found (value doesn't matter) Although a set of data-attributes does indeed get attached to the DOM, e.g.: |
Thanks @StewartBellamy - there seems to be an undocumented change in modal behaviour from BS4 to BS5, such that (when initialised from javascript) you no longer have the option to show like this: Instead you have to
Requires a new Same change also required in cloudscribe-role-selector.js The whole system above provides an abstracted mechanism of opening a modal by retrieving a partial view from a controller endpoint via AJAX and appending that into the modal content. However the usages (out in the peripheral projects) are dependent on these js handler files (and the taghelper) back in the CS core Web.Staticfiles... and also depend on jquery ajax unobtrusive. |
cloudscribe.Web.StaticFiles up to 5.0.1 to deal with above |
cloudscribe.Core.CompiledViews.Bootstrap5 re-build at 5.0.0 to include revised references to above js |
cloudscribe.Forms.ContentTemplate.Bootstrap5 re-build at 5.0.0 to include revised references to above js in ContentTemplateProvider.cs |
cloudscribe.Forms.Web - up to 5.0.1 Note the vulnerability here - formrender.js builderPreview.js survey.ko.js so I have to assume that Will scan through all js and attempt to remedy any deprecated BS4 attributes |
cloudscribe.Membership.StripeIntegration.Bootstrap5 new NuGet at 5.0.0 - 3 Views |
cloudscribe.Membership.Views.Bootstrap5 new NuGet at 5.0.0 |
cloudscribe.StripeIntegration.Mvc.Bootstrap5 new NuGet at 5.0.0 |
sts.Licensing.Web.Bootstrap5 new NuGet at 5.0.0 |
cloudscribe.TalkAbout.Forum.Web.Bootstrap5 new NuGet at 5.0.0 |
cloudscribe.TalkAbout.Web contains bs4 css that is referenced from the two views projects - so need an update of this to 5.0.1 |
Actually just renaming above bootstrap4 css to bootstrap.css since it contains only minimal stuff. |
cloudscribe.TalkAbout.Web.Bootstrap5 new NuGet at 5.0.0 |
cloudscribe.TalkAbout.Forum.Web contains bs4 css that is referenced from views project - so need an update of this to 5.0.1 |
CommentStylePartial.cshtml included with the template: (why?) has bs4 reference |
Rebuild cloudscribe.TalkAbout.Web at 5.0.1 to accommodate changes to the javascript helpers that do modal things (again the breaking change in modal handling) |
Likewise rebuild cloudscribe.TalkAbout.Forum.Web at 5.0.1 - same modals issue |
cloudscribe.Web.StaticFiles - rebuild 5.0.1 to get a revised copy of jquery.smartmenus.bootstrap-4.min |
cloudscribe.Core.CompiledViews.Bootstrap5 - rebuild 5.0.0 to remove form-group and sort out modal close buttons |
cloudscribe.IdentityServerIntegration.CompiledViews.Bootstrap5 - rebuild 5.0.0 to remove form-group and sort out modal close buttons |
cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5 - rebuild 5.0.0 to remove form-group |
cloudscribe.simplecontent.contenttemplates.bootstrap5 - rebuild 5.0.0 to remove form-group |
cloudscribe.FileManager.Web re-build at 5.0.1 |
cloudscribe.DynamicPolicy.Web.Views.Bootstrap5 - rebuild NuGet at 5.0.0 with changes to views: |
cloudscribe.Forms.ContentTemplate.Bootstrap5 |
Breakage in the file manager UI (particularly the image crop tab) Rebuild cloudscribe.FileManager.Web at v 5.0.1 |
cloudscribe.web.common AlertSuccess needs attention: alert dismiss buttons broken |
cloudscribe.TalkAbout.Forum.Web.Bootstrap5 - rebuild at 5.0.0 and same with cloudscribe.TalkAbout.Web.Bootstrap5 |
cloudscribe.Web.Common up to 5.0.2 for alert dismiss stuff |
Collated set up updated packages to implement BS5 cloudscribe.Web.Navigation 5.0.1 cloudscribe.Web.SiteMap.FromNavigation 5.0.1 cloudscribe.Core.CompiledViews.Bootstrap5 5.0.0 cloudscribe.Core.Web 5.0.2 cloudscribe.FileManager.CoreIntegration 5.0.2 cloudscribe.FileManager.Web 5.0.1 cloudscribe.IdentityServerIntegration.CompiledViews.Bootstrap5 5.0.0 cloudscribe.Web.Common 5.0.2 cloudscribe.Web.StaticFiles 5.0.1 cloudscribe.DynamicPolicy.Web.Views.Bootstrap5 5.0.0 cloudscribe.Logging.Web 5.0.1 cloudscribe.SimpleContactForm 5.0.1 cloudscribe.SimpleContactForm.CoreIntegration 5.0.1 cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5 5.5.0 cloudscribe.SimpleContent.CompiledViews.Bootstrap5 5.5.0 cloudscribe.SimpleContent.ContentTemplates.Bootstrap5 5.5.0 cloudscribe.SimpleContent.Web 5.5.2 cloudscribe.Email.Templating.Web 5.0.1 cloudscribe.EmailList.Views.Bootstrap5 5.0.0 cloudscribe.EmailList.Web.Mvc 5.0.2 cloudscribe.Forms.Bootstrap5 5.0.0 cloudscribe.Forms.ContentTemplate.Bootstrap5 5.0.0 cloudscribe.Forms.Web 5.0.1 cloudscribe.Membership.StripeIntegration.Bootstrap5 5.0.0 cloudscribe.Membership.Views.Bootstrap5 5.0.0 cloudscribe.StripeIntegration.Mvc.Bootstrap5 5.0.0 cloudscribe.TalkAbout.Forum.Web 5.0.1 cloudscribe.TalkAbout.Forum.Web.Bootstrap5 5.0.0 cloudscribe.TalkAbout.Web 5.0.1 cloudscribe.TalkAbout.Web.Bootstrap5 5.0.0 |
Collation of template changes to support moving up to BS5 (many issues apply across all of the cs repositories)
The text was updated successfully, but these errors were encountered: