App.vue 923 Bytes
Newer Older
Jerome Chauveau's avatar
init  
Jerome Chauveau committed
1
<template>
2
    <zotero-vue-client :default-type="resourceType" :default-id="groupOrUserId" @entrySelected="selectedEntry"/>
Jerome Chauveau's avatar
init  
Jerome Chauveau committed
3
4
5
</template>

<script>
6
    import ZoteroVueClient from "./components/ZoteroVueClient";
7
    import config from './config/config';
Jerome Chauveau's avatar
Jerome Chauveau committed
8
9
10
    export default {
        name: 'App',
        components: {
11
            ZoteroVueClient
12
13
14
        },
        data(){
            return {
15
                resourceType: config.RESOURCE_TYPE,
16
17
18
19
20
21
22
23
                groupOrUserId: config.USER_GROUP_ID
            }
        },

        methods : {
            selectedEntry(e){
                alert(e)
            }
Jerome Chauveau's avatar
Jerome Chauveau committed
24
25
        }
    }
Jerome Chauveau's avatar
init  
Jerome Chauveau committed
26
27
28
</script>

<style>
Jerome Chauveau's avatar
Jerome Chauveau committed
29
30
31
32
33
34
35
36
    #app {
        font-family: Avenir, Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        color: #2c3e50;
    }


37
    .zotero-vue-client {
Jerome Chauveau's avatar
Jerome Chauveau committed
38
39
40
41
42
        width: 600px;
        margin: auto;
    }


Jerome Chauveau's avatar
init  
Jerome Chauveau committed
43
</style>