Loading .env +3 −0 Changes for .env: 3 added lines, 0 removed lines. Original line number Diff line number Diff line VUE_APP_APP_NAME=Zotero Client VUE_APP_URL_PATH=/zotero-vue-client/ VUE_APP_DEFAULT_USER_GROUP_ID=475425 VUE_APP_DEFAULT_TYPE=user README.md +4 −3 Changes for README.md: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -23,16 +23,17 @@ yarn lint ## component usage example ``` <zotero-query-component :default-id="1234" @entrySelected="selectedEntryCallback"/> <zotero-query-component :default-type="user" :default-id="1234" @entrySelected="selectedEntryCallback"/> ``` where 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) Another example with custom options : ``` <zotero-query-component :default-id="1234" :default-type="user" :default-id="475425" :options="{ pageLength: 10, editableConfig: false, Loading src/App.vue +2 −1 Changes for src/App.vue: 2 added lines, 1 removed line. Original line number Diff line number Diff line <template> <zotero-query-component :default-id="groupOrUserId" @entrySelected="selectedEntry"/> <zotero-query-component :default-type="resourceType" :default-id="groupOrUserId" @entrySelected="selectedEntry"/> </template> <script> Loading @@ -12,6 +12,7 @@ }, data(){ return { resourceType: config.RESOURCE_TYPE, groupOrUserId: config.USER_GROUP_ID } }, Loading src/components/ZoteroQueryComponent.vue +1 −1 Changes for src/components/ZoteroQueryComponent.vue: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ defaultId : String, defaultType : { type : String, default : 'group' default : 'users' }, options : { type: Object, Loading src/config/config.js +1 −0 Changes for src/config/config.js: 1 added line, 0 removed lines. Original line number Diff line number Diff line var config = { RESOURCE_TYPE : process.env.VUE_APP_DEFAULT_TYPE, USER_GROUP_ID: process.env.VUE_APP_DEFAULT_USER_GROUP_ID, API_KEY: process.env.VUE_APP_ZOTERO_API_KEY, Loading Loading
.env +3 −0 Changes for .env: 3 added lines, 0 removed lines. Original line number Diff line number Diff line VUE_APP_APP_NAME=Zotero Client VUE_APP_URL_PATH=/zotero-vue-client/ VUE_APP_DEFAULT_USER_GROUP_ID=475425 VUE_APP_DEFAULT_TYPE=user
README.md +4 −3 Changes for README.md: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -23,16 +23,17 @@ yarn lint ## component usage example ``` <zotero-query-component :default-id="1234" @entrySelected="selectedEntryCallback"/> <zotero-query-component :default-type="user" :default-id="1234" @entrySelected="selectedEntryCallback"/> ``` where 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) Another example with custom options : ``` <zotero-query-component :default-id="1234" :default-type="user" :default-id="475425" :options="{ pageLength: 10, editableConfig: false, Loading
src/App.vue +2 −1 Changes for src/App.vue: 2 added lines, 1 removed line. Original line number Diff line number Diff line <template> <zotero-query-component :default-id="groupOrUserId" @entrySelected="selectedEntry"/> <zotero-query-component :default-type="resourceType" :default-id="groupOrUserId" @entrySelected="selectedEntry"/> </template> <script> Loading @@ -12,6 +12,7 @@ }, data(){ return { resourceType: config.RESOURCE_TYPE, groupOrUserId: config.USER_GROUP_ID } }, Loading
src/components/ZoteroQueryComponent.vue +1 −1 Changes for src/components/ZoteroQueryComponent.vue: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ defaultId : String, defaultType : { type : String, default : 'group' default : 'users' }, options : { type: Object, Loading
src/config/config.js +1 −0 Changes for src/config/config.js: 1 added line, 0 removed lines. Original line number Diff line number Diff line var config = { RESOURCE_TYPE : process.env.VUE_APP_DEFAULT_TYPE, USER_GROUP_ID: process.env.VUE_APP_DEFAULT_USER_GROUP_ID, API_KEY: process.env.VUE_APP_ZOTERO_API_KEY, Loading