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

Update weblibs, dependencies & webui #263

Merged
merged 10 commits into from
Jun 17, 2024

Conversation

robertcheramy
Copy link
Collaborator

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

Update Weblibs

The weblibs (jQuery, bootstrap, datatables.net) were updated - Closes #215
They can be updated with npm update and rake weblibs. See docs/development.md

RANCID migration page

The RANCID migration page is deprecated and will be removed in a future major release
The migration tool is needed once, and should not be part of the web frontend if no one maintains it.
I also think there is no need for such a tool anymore - oxidized has been around for a few years now.
The RANCID migration page will still be present in this major release, but will be removed in a future major release if no one opens and issue and steps forward to maintain it.

More changes in one line

  • CHANGELOG.md created
  • First minitest: get /
  • support for ruby 3.0 dropped
  • escape_once not supported in haml 6.0 - Closes escape_once gone in Ruby3 #232
  • deprecated sass dependency dropped - Closes Oxidized uses deprecated sass #253
  • the web design follows where possible bootstrap without specific css
  • removed unused images
  • document how to run from git

- Run npm install / update to install / update the dependend weblibs
- Run rake weblib to update them in the project
- Dependencies should be tracked by dependabot
- Switched to Bootstrap 5
- Switched to Datatables.net 2
- Latest jQuery
- Simplified CSS / stick as much as possible to bootstrap
- Removed sass & dependency (not supported anymore, an this can be done
in CSS). Custom CSS went into /css/oxidized.css. Closes: ytti#253
- Use Bootstrap Icons
- Moved all links to javascripts into the header
- Fixed Haml 6 not supporting escape_once anymore
- Our first minitest: get / redirects to /nodes
- As a side effect, rake's default task runs rubocop AND minitest
- Fixed rubocop warnings from last comits
- I'm going for the normal (not minified) weblibs. We can still change
this it performance problems are encountered
- Ruby 3.0 is end of support as of
https://www.ruby-lang.org/en/downloads/branches/ so we do not need to
support it anymore. Added support for Ruby 3.3 in git workflows.
- I'm not used to ruby 3.1 hash value shorthand syntax, so I let rubocup
allow 3.0 and 3.1 style (EnforcedShorthandSyntax: either)
- instructions how to run from git
- changelog for previous commits
- Site icon (/favicon.ico) also works when no html is loaded
- consistent icon for page refresh: bi-arrow-clockwise
- consistent icon for updating content: bi-repeat
- replaced dif_15x17.png with icon bi-file-earmark-diff
- removed CSS node_title, used <b> instead
- fixed background-color for diffs
- updated conf_search to new bootstrap design
The migration tool is needed once, and should not be part of the web
frontend if no one maintains it.
I also think there is no need for such a tool anymore - oxidized has
been around for a few years now.
The RANCID migration page will still be present in this major release,
but will be removed in a future major release if noone opens and issue
and steps forward to maintain it.
Not documented in CHANGELOG.md as it is already documented that the
weblibs were updates.
@robertcheramy robertcheramy merged commit 18e69e2 into ytti:master Jun 17, 2024
5 checks passed
@robertcheramy robertcheramy deleted the update-weblibs branch June 17, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Oxidized uses deprecated sass escape_once gone in Ruby3 jQuery Upgrade
1 participant