Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jerome Chauveau
zotero-vue-client
Commits
c083b88f
Commit
c083b88f
authored
Dec 10, 2020
by
Jerome Chauveau
Browse files
refactoring renommage ZoteroVueClient
parent
217c8731
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c083b88f
...
...
@@ -23,7 +23,7 @@ yarn lint
## component usage example
```
<zotero-
q
ue
ry-compon
ent :default-type="user" :default-id="1234" @entrySelected="selectedEntryCallback"/>
<zotero-
v
ue
-cli
ent :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-
q
ue
ry-compon
ent
<zotero-
v
ue
-cli
ent
: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-
q
ue
ry-compon
ent*
uses 'tei'
available formats : https://www.zotero.org/support/dev/web_api/v3/basics#export_formats.
*zotero-
v
ue
-cli
ent*
uses 'tei'
as default one.
### Customize configuration
...
...
src/App.vue
View file @
c083b88f
<
template
>
<zotero-
q
ue
ry-compon
ent
:default-type=
"resourceType"
:default-id=
"groupOrUserId"
@
entrySelected=
"selectedEntry"
/>
<zotero-
v
ue
-cli
ent
:default-type=
"resourceType"
:default-id=
"groupOrUserId"
@
entrySelected=
"selectedEntry"
/>
</
template
>
<
script
>
import
Zotero
Q
ue
ryCompon
ent
from
"
./components/Zotero
Q
ue
ryCompon
ent
"
;
import
Zotero
V
ue
Cli
ent
from
"
./components/Zotero
V
ue
Cli
ent
"
;
import
config
from
'
./config/config
'
;
export
default
{
name
:
'
App
'
,
components
:
{
Zotero
Q
ue
ryCompon
ent
Zotero
V
ue
Cli
ent
},
data
(){
return
{
...
...
@@ -34,7 +34,7 @@
}
.zotero-
q
ue
ry-compon
ent
{
.zotero-
v
ue
-cli
ent
{
width
:
600px
;
margin
:
auto
;
}
...
...
src/components/Zotero
Q
ue
ryCompon
ent.vue
→
src/components/Zotero
V
ue
Cli
ent.vue
View file @
c083b88f
<
template
>
<div
class=
"zotero-
q
ue
ry-compon
ent"
>
<div
class=
"zotero-
v
ue
-cli
ent"
>
<h2>
Zotero Client
<a
role=
"button"
v-if=
"isConfigEditable"
@
click=
"isConfigVisible=!isConfigVisible"
...
...
@@ -65,7 +65,7 @@
const
Zotero
=
require
(
'
libzotero
'
);
export
default
{
name
:
'
Zotero
Q
ue
ryCompon
ent
'
,
name
:
'
Zotero
V
ue
Cli
ent
'
,
props
:
{
defaultId
:
String
,
defaultType
:
{
...
...
src/index.js
View file @
c083b88f
import
ZoteroVueClient
from
'
./components/Zotero
Q
ue
ryCompon
ent
'
;
import
ZoteroVueClient
from
'
./components/Zotero
V
ue
Cli
ent
'
;
export
default
ZoteroVueClient
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment