![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
hoodie-pocket-uikit
Advanced tools
NOTE: the functionality described here is for version 2.0.0 or higher (should be included with any hoodie-server with a version above 0.9.26).
Pocket UIKit is a collection of CSS styles and JS libraries for easier and faster building of Pocket components for Hoodie Plugins. It includes neat form styles, better select drop-downs with autocomplete, drag-n-drop file upload fields, better checkboxes etc. We encourage the use of this kit when building your own plugins so
It includes a static test page of all available elements that you can copy and paste for use in your Pocket components, this is at http://yourhoodieendpoint/_api/_plugins/_assets/index.html
.
Put this in the <head>
:<link rel="stylesheet" href="/_api/_plugins/_assets/styles/pocket-uikit.css">
And this before the closing </body>
tag: <script src="/_api/_plugins/_assets/scripts/pocket-uikit.js"></script>
You'll get basic styles and behaviour for a bunch of UI elements, including nicer checkboxes/radio buttons and better select dropdowns.
You can also have drag n' drop file uploads, please consultthe aforementioned index.html
as well as /_api/_plugins/_assets/scripts/main.js
for an example of the frontend aspect of this.
In the future, these will be part of a my-first-plugin
-repo you can use as a base for your own plugins. Also, there will be a docs page with copy-and-pastable examples and clearer usage explanations.
To explore the UIKit further, browse through http://yourhoodieendpoint/_api/_plugins/_assets/
(final slash matters, sorry). This base path will show you an index of all available files.
Install dependencies and run the preview app on a local webserver with livereload.
npm install -g grunt-cli bower
npm install
bower install
grunt server
FAQs
A UI kit for building the Pocket components of Hoodie plugins.
The npm package hoodie-pocket-uikit receives a total of 4 weekly downloads. As such, hoodie-pocket-uikit popularity was classified as not popular.
We found that hoodie-pocket-uikit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.