README.md 1 KB
Newer Older
Jerome Chauveau's avatar
init  
Jerome Chauveau committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# zotero-vue-client

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

23
24
25
## component usage example

```
26
<zotero-query-component :default-type="user" :default-id="1234" @entrySelected="selectedEntryCallback"/>
27
28
```

Jerome Chauveau's avatar
Jerome Chauveau committed
29
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)
30
31
32
33
34

Another example with custom options :

```
<zotero-query-component 
35
36
    :default-type="user"
    :default-id="475425" 
37
38
39
40
41
42
43
44
    :options="{
        pageLength: 10,
        editableConfig: false,
        format: 'json'
      }"
    @entrySelected="selectedEntryCallback"/>
```

Jerome Chauveau's avatar
Jerome Chauveau committed
45
46
available formats : https://www.zotero.org/support/dev/web_api/v3/basics#export_formats. *zotero-query-component* uses 'tei'
as default one.
47

Jerome Chauveau's avatar
init  
Jerome Chauveau committed
48
49
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).