browsertrix/frontend
sua yoo 26636f5386
Refactor API fetch helper into controller (#1415)
### Context

Components currently can't access `LiteElement` utility methods without
being rendered into the light DOM. This is an initial step towards
breaking out parts of `LiteElement` into composable units. (see
https://github.com/webrecorder/browsertrix-cloud/issues/1380)

### Changes

Moves `apiFetch` from `LiteElement` into a reactive controller. New
components should use `APIController` directly instead of extending
`LiteElement`. We'll also work to move existing uses of `LiteElement`
off of it with time.

### Manual testing

No visible changes, skim through the app to verify that that backend API
fetches work as expected.
2023-11-30 15:00:43 -05:00
..
.husky
assets
config ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
scripts
src Refactor API fetch helper into controller (#1415) 2023-11-30 15:00:43 -05:00
tests
xliff
.dockerignore
.editorconfig
.eslintrc.js Refactor API fetch helper into controller (#1415) 2023-11-30 15:00:43 -05:00
.gitignore
.prettierignore
.vscode
00-browsertrix-nginx-init.sh
Dockerfile
frontend.conf.template
index.d.ts
lit-localize.json
minio.conf
package.json Organize components into folders by function (#1411) 2023-11-29 14:12:29 -05:00
playwright.config.ts
postcss.config.js
README.md
sample.env.local
tailwind.config.js
tsconfig.eslint.json ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
tsconfig.json Organize components into folders by function (#1411) 2023-11-29 14:12:29 -05:00
web-test-runner.config.mjs Organize components into folders by function (#1411) 2023-11-29 14:12:29 -05:00
webpack.config.js Organize components into folders by function (#1411) 2023-11-29 14:12:29 -05:00
webpack.dev.js
webpack.prod.js
yarn.lock Organize components into folders by function (#1411) 2023-11-29 14:12:29 -05:00