Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zotero-vue-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jerome Chauveau
zotero-vue-client
Commits
c083b88f
Commit
c083b88f
authored
4 years ago
by
Jerome Chauveau
Browse files
Options
Downloads
Patches
Plain Diff
refactoring renommage ZoteroVueClient
parent
217c8731
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
src/App.vue
+4
-4
4 additions, 4 deletions
src/App.vue
src/components/ZoteroVueClient.vue
+2
-2
2 additions, 2 deletions
src/components/ZoteroVueClient.vue
src/index.js
+1
-1
1 addition, 1 deletion
src/index.js
with
10 additions
and
10 deletions
README.md
+
3
−
3
View file @
c083b88f
...
@@ -23,7 +23,7 @@ yarn lint
...
@@ -23,7 +23,7 @@ yarn lint
## component usage example
## 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)
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-
q
ue
ry-compon
ent
<zotero-
v
ue
-cli
ent
: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-
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.
as default one.
### Customize configuration
### Customize configuration
...
...
This diff is collapsed.
Click to expand it.
src/App.vue
+
4
−
4
View file @
c083b88f
<
template
>
<
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
>
</
template
>
<
script
>
<
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
'
;
import
config
from
'
./config/config
'
;
export
default
{
export
default
{
name
:
'
App
'
,
name
:
'
App
'
,
components
:
{
components
:
{
Zotero
Q
ue
ryCompon
ent
Zotero
V
ue
Cli
ent
},
},
data
(){
data
(){
return
{
return
{
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
}
}
.zotero-
q
ue
ry-compon
ent
{
.zotero-
v
ue
-cli
ent
{
width
:
600px
;
width
:
600px
;
margin
:
auto
;
margin
:
auto
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/components/Zotero
Q
ue
ryCompon
ent.vue
→
src/components/Zotero
V
ue
Cli
ent.vue
+
2
−
2
View file @
c083b88f
<
template
>
<
template
>
<div
class=
"zotero-
q
ue
ry-compon
ent"
>
<div
class=
"zotero-
v
ue
-cli
ent"
>
<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
:
'
Zotero
Q
ue
ryCompon
ent
'
,
name
:
'
Zotero
V
ue
Cli
ent
'
,
props
:
{
props
:
{
defaultId
:
String
,
defaultId
:
String
,
defaultType
:
{
defaultType
:
{
...
...
This diff is collapsed.
Click to expand it.
src/index.js
+
1
−
1
View file @
c083b88f
import
ZoteroVueClient
from
'
./components/Zotero
Q
ue
ryCompon
ent
'
;
import
ZoteroVueClient
from
'
./components/Zotero
V
ue
Cli
ent
'
;
export
default
ZoteroVueClient
;
export
default
ZoteroVueClient
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment