Repository navigation
Conversation
…elease The Gaurav theme drops Font Awesome 3.2.1 (SIL OFL, Category B). Its three icons (search, clock, chevron) are now Bootstrap Icons 1.13.2 drawn as inline SVG, the same version Roller already gets from the bootstrap-icons webjar. Silk icons (CC BY 2.5) are removed from /images and from the Gaurav and Fauxcoly themes. The admin pages use the Bootstrap Icons font they already load, and the themes draw Bootstrap Icons inline or as data URIs in their stylesheets. The themes keep no SVG files because a customized copy of a theme serves its resources from the media library, which sends SVG as an attachment, so separate SVG files would not display there. The theme brand icons, editor GIFs and smileys from the 2005 import, which have no recorded source, are removed. The Emoticons plugin now emits Unicode emoji instead of images, replacing all emoticons in one pass so that an emoticon in an inserted title is not replaced again. The kryogenix.org searchhi.js, which has no license, is replaced in both themes by a new search-highlight.js that wraps search words in text nodes without parsing markup. The unused copy in /theme/scripts is removed. New tests check that the Emoticons plugin output is well formed, and that every file a theme lists or loads and every /images or /scripts path in a template exists.
apache#266 replaces Gaurav's Font Awesome 3.2.1 fonts and every Silk icon with Bootstrap Icons outlines drawn inline as SVG, per the dev@ licensing thread. Both LICENSE files now name Bootstrap Icons (MIT) for those themes instead of Font Awesome (OFL) and Silk (CC BY 2.5), and both NOTICE files drop the famfamfam credit.
|
PR-Review: General Issues The following issues were found but cannot be attached to a specific line in the diff:
|
Twelve files were left in images/ with nothing recording where they came from, and roller-ui/images and roller-ui/theme had not been checked. Replaced with Bootstrap Icons (MIT), inline in themes and by class in the admin: the feed icon in the basic themes' feed list (feed-icon-12x12.gif, the Mozilla feed icon), the feed badges in the blogroll macro and on the front page theme (smrssbadge.gif, rssbadge.gif), and the icon beside an entry's permalink in the editor (launch-link.png). Removed because nothing uses them: openid-logo-small.gif (OpenID sign-in is gone), atombadge.jpeg, opml.png, permalink.gif, three images in roller-ui/images (layout.png, logo-shadow.png, transparent-logo.png), and the old admin colour themes under roller-ui/theme (blue, sun, and tan apart from the two tab backgrounds the front page theme still uses). Left in place: Roller's own logo and badges, the Apache feather, and the tab corner, dash and spacer images.
|
aef6e4a goes through the 12 files left in Replaced with Bootstrap Icons, the same way as the theme icons:
Removed because nothing references them:
Left in place, and I can't confirm these from the repository alone:
Dave, you committed all of the 2005 files, so could you confirm the Roller logo, the badges and the tab images were made for the project? If any weren't, I'll replace those too.
|
… and Fauxcoly The assets pull request (apache#266) now also draws Bootstrap Icons inline in the Basic, Basic Mobile and Frontpage themes and in the blogroll macro, so the credit names those files too.
|
A correction to my comment above: #265 did need a change for this. Its Bootstrap Icons credit named only the Gaurav and Fauxcoly themes, and aef6e4a also draws those icons inline in the Basic, Basic Mobile and Frontpage themes and in the blogroll macro. 75bfcce on #265 adds those files to the credit in both LICENSE files. #265 lists none of the images removed here, so nothing has to come out of it. |
project.basedir isn't set by Surefire or an IDE, so the test always used the working directory. The module directory now comes from where the test class was compiled to.
|
A small test change: |
Follows the dev@ licensing thread (Dave: replace the Category B and unknown-origin assets). ASF policy allows Category B works such as OFL fonts and CC BY icons in binary form only, and some theme files had no recorded license at all.
Font Awesome 3.2.1 (OFL, Gaurav). The five font files and
font-awesome.min.cssare removed. Gaurav used three icons: search, clock and chevron-right. They're now inline Bootstrap Icons SVGs (MIT, from thebootstrap-icons1.13.2 webjar Roller already ships).They're inline, not separate files, for two reasons:
Silk icons (CC BY 2.5).
images/are removed. The four in use are now Bootstrap Icons classes, whichhead.jspalready loads:help.tag,Templates.jspandUserEdit.jsp.themes/{gaurav,fauxcoly}/icons/(Silk, or from the 2005 import with no recorded source) are now inline SVG ordata:URI Bootstrap Icons in similar colours. That covers permalink, tag, comments, PDF, entry and feed icons, and the old social-bookmark logos.asf-logo.pngstays.searchhi.js(no license). The three copies are gone. Each theme has a newjs/search-highlight.js, written from scratch:data-search-termattribute;createElementandcreateTextNode, so the term is never treated as markup;Fauxcoly's old highlighter was served as a
text/htmltemplate withnosniff, so it probably never ran.Smileys.
images/smileys/(37 GIFs) is removed. The Emoticons plugin now emits Unicode emoji:<span class="smiley" title=":-)">🙂</span>. It also matches all emoticons in a single pass, longest first, so:))is no longer split and one replacement can't match inside another's markup. Titles are HTML-escaped.Unused files removed:
images/editor/*.gifand the theme brand logos referenced only bytheme.xml.Tests:
ThemeAssetReferencesTestchecks four things:theme.xml;url()targets in theme CSS exist;/images/and/scripts/path in JSP, tag, vm and css files exists.It fails if a template still points at a removed file.
SmileysPluginTestcovers the new output.mvn test: 669 passed.apache-rat:checkpasses.CHANGES.md notes that custom templates linking to the removed files will show broken images. Weblogs already on a customized copy keep their own files. #265 (LICENSE/NOTICE) will drop the Font Awesome and Silk entries and the famfamfam credit, and credit Bootstrap Icons for the inline SVG paths.