Closed tvdijen closed 6 months ago
@khlr You know how to test this add-on? An automated build was created here, but I'm unable to load it into Firefox.. I says it's broken :(
Please excuse me for not responding yet... I think it'll take me some days to review this one.
While testing I found an issue preventing highlight.js to load:
Uncaught ReferenceError: hljs is not defined
highlightContent moz-extension://e2144872-b937-4f53-955e-692204049bdc/src/ui.js:209
highlightContent moz-extension://e2144872-b937-4f53-955e-692204049bdc/src/ui.js:206
enableSyntaxHighlighting moz-extension://e2144872-b937-4f53-955e-692204049bdc/src/ui.js:219
<anonymous> moz-extension://e2144872-b937-4f53-955e-692204049bdc/src/ui.js:9
EventListener.handleEvent* moz-extension://e2144872-b937-4f53-955e-692204049bdc/src/ui.js:1
I have to figure out how to properly instantiate this hljs
variable.. Maybe I have to do it in ui.js instead of in the bundle.
@thijskh: Maybe you've gotten over it. But would you like to do another review of this PR?
And could you kindly have a look at this (access to the secrets)? https://github.com/simplesamlphp/SAML-tracer/pull/87#discussion_r1382381600
I'm still not sure how to get this working though :(
What's not working yet, Tim?
Ok, so I finally got this to work (yay)! But there is also bad news, and that is that highlight.js has dropped the 'properties' and 'http' languages. They are only available if you manually build the package.
Now I've verified that manually building works and it's really not that hard, but it completely defeats the purpose of easy-to-update dependencies.. Thoughts or suggestions are welcome.
Everything is working now, with a manual build of highlight.js.. We have to manually update highlight.js and pako by changing the version numbers in the GA workflow file.
@khlr I think we have enough changes for a new release now.. I believe you know how to upload a new version to Mozilla?
Thank you for your efforts, Tim!
Now I've verified that manually building works and it's really not that hard, but it completely defeats the purpose of easy-to-update dependencies.. Thoughts or suggestions are welcome.
I didn't look into it in detail yet, but maybe prism.js could be a suitable alternative for hljs if it's easier to use for us?
Please help me to get my head around why we do we have to build pako manually?
I think we have enough changes for a new release now.
I think so, too 😊 We could release version 1.8.0 to Mozilla, but we cannot publish it to the chrome web store yet. To do so we still need a privacy policy. I wouldn't be so happy if it was only published in one store and not the other....
Please help me to get my head around why we do we have to build pako manually?
We don't necessarily have to, but it keeps our build-process consistent. Pako can be installed using NPM & Webpack, but that would bring in a lot of overhead that I think isn't worth it.
This replaces the old
build.sh
script and will automatically build a release when a tag is set.