cypressious / kotlin-webextensions-declarations Goto Github PK
View Code? Open in Web Editor NEWGenerated Kotlin JS declarations for the Firefox WebExtensions API
License: Apache License 2.0
Generated Kotlin JS declarations for the Firefox WebExtensions API
License: Apache License 2.0
Hi
Regarding to documentation webRequest.onBeforeRequest.addListener
takes multiple parameters.
How can i configure BlockingResponse ?
used extension version 0.4
It takes filter
and extraInfoSpec
. Also, the function in the listener should return a webRequest.BlockingResponse or a Promise
The current declarations only allow adding a listener that returns nothing.
Hi,
thank you for making you work available.
I only want to get the declarations, and for now I think I don't need the entire generator. Is it possible to package it a little bit differently so that the declarations do not have a dependency on the generator and are thus more independent?
So than I could avoid adding additional repositories to my gradle file.
I Could build it just fine without additional repositories, but idea intelijii was marking everything red, because the generator module had certain dependencies which I would not get.
Thanks
Hello Kirill,
I tried and failed to port the extension to Chrome in this commit
jmfayard/webextension-search-kotlin-docs@0bc78b0
Things I have done:
src/main/resources/browser-polyfill.js
to the background scriptscontextMenus
instead of menus
so added it to the manifest../gradlew runDceKotlinJs --continous
chrome://extensions/
in Chrome Canary.Load unpacked
, tried to use the extension, opened Errors
There I see Uncaught TypeError: Cannot read property 'create' of undefined
The polyfill from browser.menus
to browser.contextMenus
is not working
Hi,
I just want to report that the StorageAPI is partly missing from the provided declarations in v0.3
Somehow this type
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/StorageArea
is missing and some properties for the StorageNamespace as well.
The schema-File however contains definitions
https://github.com/mozilla/gecko-dev/blob/aaac9a77dd456360551dd764ffba4ca4899dcb56/toolkit/components/extensions/schemas/storage.json
So I suppose this is a problem with the generator.
I get around this by casting to dynamic which makes the code a bit more verbose.
So it is nothing urgent.
Kind Regards
Martin
square/kotlinpoet#493, appearing in 1.2.0 causes a lot of unnessecary and invalid imports
E.g. BookmarkTreeNodeUnmodifiable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.