npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lblod/ember-rdfa-editor-address-plugin

v0.1.0

Published

RDFa editor plugin to insert an address in the editor.

Downloads

4

Readme

@lblod/ember-rdfa-editor-address-plugin

RDFa editor plugin to insert an address in the editor.

Installation

ember install @lblod/ember-rdfa-editor-address-plugin

Usage

Currently the plugin adds the following features to your RDFa editor:

  • insert of a new address at the current position/selection
  • update of an existing address
  • insert an address at an instructive
  • autocomplete an address

The plugin inserts an address node annotated with a URI and a type. The full address will be shown in the text.

E.g.

<div typeof="https://data.vlaanderen.be/ns/adres#Adres" resource="https://data.vlaanderen.be/id/adres/216333">
    Kerkstraat 1, 1800 Vilvoorde
</div>

Insert an address at the current position/selection

Click a button that makes the dispatcher call the suggestHints function of the plugin. The user can search and select an address the hint card. The address will be inserted at the current position in the editor or replace the current selected content in case of a selection.

Update of an existing address

When putting the cursor in an address context, a hint card will be shown to modify the address. The user can search and select a new address in the hint card. The new address will replace the existing address in the editor.

Insert an address at an instructive

A document may contain an instructive to insert an address. A hint card will be shown at the location of the instructive. The user can search and select an address in the hint card. The instructive will be replaced with the selected address.

Currently only one instructive property is supported:

<div property="http://mu.semte.ch/vocabularies/ext/insertAddress">Insert address here</div>

The plugin matches on the property attribute. The tag name, attributes, content, ... of the instructive node can be freely set.

Autocomplete an address

While typing in a specific context, the plugin will show hints at locations where an address is expected based on the text entered by the user. The user can search and select an address in the hint card. The highlighted content will be replaced with the selected address.

Currently the plugin will show hints in the following cases:

  • in context besluit:Besluit when the user types "op de "

Known issues

  • Only isolated addresses can be inserted. They cannot be linked via a property to an existing context.
  • Autocompleting an address inside an existing text will replace all text that follows after the address
  • Addresses cannot be inserted at complex selections until supported by the Pernet API

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.