# @lblod/ember-rdfa-editor-import-snippet-plugin

> The default blueprint for ember-cli addons.

Latest version **1.0.0-alpha.1** (published 2022-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lblod/ember-rdfa-editor-import-snippet-plugin
pnpm add @lblod/ember-rdfa-editor-import-snippet-plugin
yarn add @lblod/ember-rdfa-editor-import-snippet-plugin
bun add @lblod/ember-rdfa-editor-import-snippet-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.1 |
| Published | 2022-10-07 |
| First published | 2019-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 14 \|\| >= 16 |
| Dependencies | 7 |
| Unpacked size | 21.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | erikap, nielsv, madnificent, cecemel, clairelovisa, dietr, oscar.redpencil, highfive, aatauil |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/@lblod/ember-rdfa-editor-import-snippet-plugin
- Repository: https://github.com/lblod/ember-rdfa-editor-import-snippet-plugin
- Homepage: https://github.com/lblod/ember-rdfa-editor-import-snippet-plugin#readme
- Issues: https://github.com/lblod/ember-rdfa-editor-import-snippet-plugin/issues
- npm.io page: https://npm.io/package/@lblod/ember-rdfa-editor-import-snippet-plugin

## Dependencies (7)

- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [@lblod/marawa](https://npm.io/package/@lblod/marawa.md) ^0.8.0-beta.2
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.26.10
- [@glimmer/tracking](https://npm.io/package/@glimmer/tracking.md) ^1.0.4
- [ember-auto-import](https://npm.io/package/ember-auto-import.md) ^2.4.0
- [@glimmer/component](https://npm.io/package/@glimmer/component.md) ^1.0.4
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^5.7.2

## Recent versions

- 1.0.0-alpha.1 (latest) — 2022-10-07
- 0.9.2 — 2022-10-07
- 0.9.1 — 2022-09-29
- 0.9.0 — 2022-09-09
- 0.8.0 — 2022-04-01
- 0.7.4 — 2021-07-02
- 0.7.3 — 2020-06-25
- 0.7.1 — 2020-06-16
- 0.7.0 — 2020-06-16
- 0.6.4 — 2020-06-04
- 0.6.3 — 2020-06-03
- 0.6.2 — 2020-01-17
- 0.6.1 — 2019-10-28
- 0.6.0 — 2019-10-17
- 0.5.0 — 2019-09-13
- … 2 more at https://npm.io/package/@lblod/ember-rdfa-editor-import-snippet-plugin/versions

## README

@lblod/ember-rdfa-editor-import-snippet-plugin
==============================================================================
Plugin allowing importing of external RDFA snippets and inserting it in the document.

Compatibility
-------------------------------------------------------------------------------

* Ember.js v3.16 or above
* Ember CLI v2.13 or above
* Node.js v10 or above

Installation
-------------------------------------------------------------------------------
```
ember install @lblod/ember-rdfa-editor-import-snippet-plugin
```

Usage
-------------------------------------------------------------------------------
This plugin contains two services.

## import-rdfa-snippet

The main entry point to fetch an external RDFA snippet, process it and store it.

### How to use it
```
import { inject as service } from '@ember/service';


// An entry point to download the resouce (e.g a route) in your host app.
// (...)

    let downloadData = { source: http://remote/resource.html }
    await this.importRdfaSnippet.downloadSnippet(downloadData);
```

The service has two public properties availible you can use in the host app, to e.g. notify the users or manage the snippets
```
  errors: A([]),
  snippets: A([])
```

### How to trigger it on GN

This is just an example for developers on how to trigger this plugin and check if the changes made to the package work.
1 - First go to this url: https://dev.kleinbord.lblod.info/select-road-sign
2 - Fill the form and press the button
3 - GN will open and you have to go to a new or existing meeting, and edit a behandeling.
4 - Then you have 2 different options: the first one is to click on the template button and select directly the "document invoegen" in order to insert the data into the document. The second one is to insert a besluit and insert the data as an attachment,for this you will need to insert a besluit template and click on the button "Bijlage invoegen"

## rdfa-editor-import-snippet-plugin
This is the main plugin service, to be used as other plugins. This will scan the document and see whether it can match snippets with resources in your document.

Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.


License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).

---
_Source: https://npm.io/package/@lblod/ember-rdfa-editor-import-snippet-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
