]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit - src/api-viewer/APIViewer.js
add api-viewer source
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 28 May 2021 12:13:40 +0000 (14:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Jun 2021 11:44:37 +0000 (13:44 +0200)
commit4ae75df35d86de813b168ed89dae2716b1833a75
tree0d008c17e0bd19a6f7c8692f8665d838103c7954
parent53758e164ac1851f58c00a8f7eb99066272dc0b5
add api-viewer source

so that we can reuse it across products
source was 'pbs' since that had the most features (http upgrade check)

a few changes to combine pve/pbs/pmg:
* use an optional 'cliusage' function it it exists to determine CLI usage
* check allowtoken for undefined to see if it is allowed or not
* use 'pmxapi' instead of pbs/pmg/pveapi
* rename all occurrences of 'pve' to 'pmx'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api-viewer/APIVIEWER.js [new file with mode: 0644]