README.md 1008 Bytes
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

```
Jerome Chauveau's avatar
Jerome Chauveau committed
26
<zotero-vue-client default-type="user" default-id="1234" @entry-selected="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

Another example with custom options :

```
34
<zotero-vue-client
Jerome Chauveau's avatar
Jerome Chauveau committed
35
36
    default-type="user"
    default-id="475425" 
37
38
39
40
41
    :options="{
        pageLength: 10,
        editableConfig: false,
        format: 'json'
      }"
Jerome Chauveau's avatar
Jerome Chauveau committed
42
    @entry-selected="selectedEntryCallback"/>
43
44
```

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

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