Commit 079ad01d authored by Laurent Wouters's avatar Laurent Wouters
Browse files

Export browser extension as external package

parent d088c10da4b5
# Linked Data Browser
A web extension for the browsing the web of data.
## Build the extension
```sh
npm install
npm run webpack
```
The web extension is made into the `build` directory and can be deployed as an unpacked extension in Chrome or Firefox for debuggin pruposes.
### Chrome
In Chrome, go to [chrome://extensions/](chrome://extensions/) and activate the developer mode (toggle un upper-right corner).
Then click on the appearing `Load Unpacked` button and select the `build/` directory in this repository (after build).
![Chrome developer mode](https://developer.chrome.com/static/images/get_started/load_extension.png)
### Firefox
In Firefox, go to [about:debugging](about:debugging), click "Load Temporary Add-on" and open the extension's directory and select the `build/manifest.json` file. Details at [Mozilla MDN](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox).
### Usage
To try it, go to a page such as [dbpedia Claude Debussy](http://dbpedia.org/page/Claude_Debussy).
In the should show its disabled icon in the upper-right corner of the tool bar, lit up with a red badge indicating RDF data has been detected.
Click on the extension's icon to activate it.
You can click on links in the specialized views, the browser will navigate to the target and the extension will immediately display its views, if data is available.
......@@ -26,6 +26,7 @@
"@types/react-router-dom": "^4.2.7",
"bootstrap": "^4.1.1",
"jquery": "^1.12.4",
"libview": "file:../libview",
"popper.js": "^1.14.3",
"rdflib": "^0.17.0",
"react": "^16.2.0",
......
......@@ -18,12 +18,14 @@
* with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import {
import {} from "libview";
/*import {
ViewRegistrySourceInline,
ViewRegistrySourceKind,
ViewLocationKind,
ViewDescriptor
} from "./view-registry";
} from "libview";*/
/**
* The decsriptor for the default Rdf triples view
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment