refactor widget api design

this passes all widget API calls through the backend, with a pluggable design and reusable API handlers
This commit is contained in:
Ben Phelps
2022-09-04 21:58:42 +03:00
parent 975f79f6cc
commit 97bf174b78
27 changed files with 370 additions and 252 deletions

14
pnpm-lock.yaml generated
View File

@@ -9,6 +9,7 @@ specifiers:
eslint-config-next: 12.2.5
js-yaml: ^4.1.0
json-rpc-2.0: ^1.3.0
lodash: ^4.17.21
memory-cache: ^0.2.0
next: 12.2.5
node-os-utils: ^1.3.7
@@ -28,6 +29,7 @@ dependencies:
dockerode: 3.3.3
js-yaml: 4.1.0
json-rpc-2.0: 1.3.0
lodash: 4.17.21
memory-cache: 0.2.0
next: 12.2.5_biqbaboplfbrettd7655fr4n2y
node-os-utils: 1.3.7
@@ -43,7 +45,7 @@ devDependencies:
eslint: 8.22.0
eslint-config-next: 12.2.5_4rv7y5c6xz3vfxwhbrcxxi73bq
postcss: 8.4.16
tailwindcss: 3.1.8
tailwindcss: 3.1.8_postcss@8.4.16
typescript: 4.7.4
packages:
@@ -271,7 +273,7 @@ packages:
tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1'
dependencies:
mini-svg-data-uri: 1.4.4
tailwindcss: 3.1.8
tailwindcss: 3.1.8_postcss@8.4.16
dev: false
/@types/json5/0.0.29:
@@ -1558,6 +1560,10 @@ packages:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
dev: true
/lodash/4.17.21:
resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
dev: false
/loose-envify/1.4.0:
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
hasBin: true
@@ -2245,10 +2251,12 @@ packages:
react: 18.2.0
dev: false
/tailwindcss/3.1.8:
/tailwindcss/3.1.8_postcss@8.4.16:
resolution: {integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==}
engines: {node: '>=12.13.0'}
hasBin: true
peerDependencies:
postcss: ^8.0.9
dependencies:
arg: 5.0.2
chokidar: 3.5.3