From c083b88f4667f749b6ee785601dba3e1d1b9d7de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Chauveau?= <jerome.chauveau@unicaen.fr>
Date: Thu, 10 Dec 2020 15:21:34 +0100
Subject: [PATCH] refactoring renommage ZoteroVueClient

---
 README.md                                                 | 6 +++---
 src/App.vue                                               | 8 ++++----
 .../{ZoteroQueryComponent.vue => ZoteroVueClient.vue}     | 4 ++--
 src/index.js                                              | 2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)
 rename src/components/{ZoteroQueryComponent.vue => ZoteroVueClient.vue} (98%)

diff --git a/README.md b/README.md
index 144c7d9..a2cd7e0 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/src/App.vue b/src/App.vue
index 54a0977..10c54fb 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,14 +1,14 @@
 <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;
     }
diff --git a/src/components/ZoteroQueryComponent.vue b/src/components/ZoteroVueClient.vue
similarity index 98%
rename from src/components/ZoteroQueryComponent.vue
rename to src/components/ZoteroVueClient.vue
index 6a4474b..fb8eae0 100644
--- a/src/components/ZoteroQueryComponent.vue
+++ b/src/components/ZoteroVueClient.vue
@@ -1,5 +1,5 @@
 <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 : {
diff --git a/src/index.js b/src/index.js
index a3296a7..eaa3775 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,2 +1,2 @@
-import ZoteroVueClient from './components/ZoteroQueryComponent';
+import ZoteroVueClient from './components/ZoteroVueClient';
 export default ZoteroVueClient;
-- 
GitLab