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

refactoring renommage ZoteroVueClient

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