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

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

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

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


    .zotero-query-component {
        width: 600px;
        margin: auto;
    }


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