mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 07:04:21 +08:00
* Document Support * add document service * minimal changes * add cursor pointer to table * Revert "add cursor pointer to table" This reverts commit 9714c0b55818de30371c5f88098eac64eedf0e4b. * minimal changes Co-authored-by: Elsio Sanchez <elsiosanche@gmail.com>
30 lines
691 B
JavaScript
30 lines
691 B
JavaScript
// Service for get ADempiere Vue releases from repo.
|
|
// Add here any service related with it
|
|
import request from '@/utils/request'
|
|
import { config } from '@/utils/ADempiere/config'
|
|
const baseURL = config.documentation.api.url
|
|
// Fetch releases from repository
|
|
export function fetchReleasesList() {
|
|
return request({
|
|
baseURL,
|
|
url: '/adempiere-vue/releases',
|
|
method: 'get',
|
|
headers: {
|
|
'Accept': 'application/vnd.github.v3+json'
|
|
}
|
|
})
|
|
}
|
|
// Fetch readme from repository
|
|
export function fetchReadme({
|
|
repository
|
|
}) {
|
|
return request({
|
|
baseURL,
|
|
url: repository,
|
|
method: 'get',
|
|
headers: {
|
|
'Accept': 'application/vnd.github.v3+json'
|
|
}
|
|
})
|
|
}
|