Commit c083b88f authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

refactoring renommage ZoteroVueClient

parent 217c8731
......@@ -23,7 +23,7 @@ yarn lint
## component usage example
```
<zotero-query-component :default-type="user" :default-id="1234" @entrySelected="selectedEntryCallback"/>
<zotero-vue-client :default-type="user" :default-id="1234" @entrySelected="selectedEntryCallback"/>
```
where **default-type** is *"user"* or *"group"* and **default-id** is a *group* or *user* id (https://www.zotero.org/support/dev/web_api/v3/basics)
......@@ -31,7 +31,7 @@ where **default-type** is *"user"* or *"group"* and **default-id** is a *group*
Another example with custom options :
```
<zotero-query-component
<zotero-vue-client
:default-type="user"
:default-id="475425"
:options="{
......@@ -42,7 +42,7 @@ Another example with custom options :
@entrySelected="selectedEntryCallback"/>
```
available formats : https://www.zotero.org/support/dev/web_api/v3/basics#export_formats. *zotero-query-component* uses 'tei'
available formats : https://www.zotero.org/support/dev/web_api/v3/basics#export_formats. *zotero-vue-client* uses 'tei'
as default one.
### Customize configuration
......
<template>
<zotero-query-component :default-type="resourceType" :default-id="groupOrUserId" @entrySelected="selectedEntry"/>
<zotero-vue-client :default-type="resourceType" :default-id="groupOrUserId" @entrySelected="selectedEntry"/>
</template>
<script>
import ZoteroQueryComponent from "./components/ZoteroQueryComponent";
import ZoteroVueClient from "./components/ZoteroVueClient";
import config from './config/config';
export default {
name: 'App',
components: {
ZoteroQueryComponent
ZoteroVueClient
},
data(){
return {
......@@ -34,7 +34,7 @@
}
.zotero-query-component {
.zotero-vue-client {
width: 600px;
margin: auto;
}
......
<template>
<div class="zotero-query-component">
<div class="zotero-vue-client">
<h2>Zotero Client <a role="button"
v-if="isConfigEditable"
@click="isConfigVisible=!isConfigVisible"
......@@ -65,7 +65,7 @@
const Zotero = require('libzotero');
export default {
name: 'ZoteroQueryComponent',
name: 'ZoteroVueClient',
props: {
defaultId : String,
defaultType : {
......
import ZoteroVueClient from './components/ZoteroQueryComponent';
import ZoteroVueClient from './components/ZoteroVueClient';
export default ZoteroVueClient;
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