Commit c083b88f authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

refactoring renommage ZoteroVueClient

parent 217c8731
Loading
Loading
Loading
Loading
+3 −3
Changes for README.md: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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
+4 −4
Changes for src/App.vue: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
<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;
    }
+2 −2
Changes for src/components/ZoteroVueClient.vue: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
<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 : {
+1 −1
Changes for src/index.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
import ZoteroVueClient from './components/ZoteroQueryComponent';
import ZoteroVueClient from './components/ZoteroVueClient';
export default ZoteroVueClient;