1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] 772f9850ba
chore(deps): update dependency @uiw/codemirror-theme-duotone to v4.21.13 (#4700)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@uiw/codemirror-theme-duotone](https://uiwjs.github.io/react-codemirror/#/theme/data/duotone/light)
([source](https://togithub.com/uiwjs/react-codemirror)) | [`4.21.9` ->
`4.21.13`](https://renovatebot.com/diffs/npm/@uiw%2fcodemirror-theme-duotone/4.21.9/4.21.13)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2fcodemirror-theme-duotone/4.21.13?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2fcodemirror-theme-duotone/4.21.13?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2fcodemirror-theme-duotone/4.21.9/4.21.13?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2fcodemirror-theme-duotone/4.21.9/4.21.13?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>uiwjs/react-codemirror
(@&#8203;uiw/codemirror-theme-duotone)</summary>

###
[`v4.21.13`](https://togithub.com/uiwjs/react-codemirror/releases/tag/v4.21.13)

[Compare
Source](https://togithub.com/uiwjs/react-codemirror/compare/v4.21.12...v4.21.13)


[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.21.13/file/README.md)

Documentation v4.21.13:
https://raw.githack.com/uiwjs/react-codemirror/81a6a62/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.12...v4.21.13

```shell
npm i @&#8203;uiw/react-codemirror@4.21.13
```

- 🌍 website: modify website router.
[`5599909`](https://togithub.com/uiwjs/react-codemirror/commit/5599909)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌍 website: update home example.
[`dda529b`](https://togithub.com/uiwjs/react-codemirror/commit/dda529b)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌍 website: fix example.
[`73cced5`](https://togithub.com/uiwjs/react-codemirror/commit/73cced5)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore: update tsconfig.json
[`7f5e3d4`](https://togithub.com/uiwjs/react-codemirror/commit/7f5e3d4)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🐞 fix: fix height/minHeight/maxHeight/width/minWidth/maxWidth default
value.
[`21d8048`](https://togithub.com/uiwjs/react-codemirror/commit/21d8048)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🐞 fix(langs): remove `clike` import
([#&#8203;560](https://togithub.com/uiwjs/react-codemirror/issues/560))
[`24e1e35`](https://togithub.com/uiwjs/react-codemirror/commit/24e1e35)
[@&#8203;gtn1024](https://togithub.com/gtn1024)

###
[`v4.21.12`](https://togithub.com/uiwjs/react-codemirror/releases/tag/v4.21.12)

[Compare
Source](https://togithub.com/uiwjs/react-codemirror/compare/v4.21.11...v4.21.12)


[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.21.12/file/README.md)

Documentation v4.21.12:
https://raw.githack.com/uiwjs/react-codemirror/de05ac9/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.11...v4.21.12

```shell
npm i @&#8203;uiw/react-codemirror@4.21.12
```

- 🌍 website: modify theme document & add badges.
[`4fb582d`](https://togithub.com/uiwjs/react-codemirror/commit/4fb582d)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore: update workflows config.
([#&#8203;558](https://togithub.com/uiwjs/react-codemirror/issues/558))
[`36ed84a`](https://togithub.com/uiwjs/react-codemirror/commit/36ed84a)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🐞 fix(deps): update dependency
[@&#8203;uiw/react-shields](https://togithub.com/uiw/react-shields) to
v2 [#&#8203;556](https://togithub.com/uiwjs/react-codemirror/issues/556)
[`bd10a90`](https://togithub.com/uiwjs/react-codemirror/commit/bd10a90)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌍 website: update footer style.
[`758c40f`](https://togithub.com/uiwjs/react-codemirror/commit/758c40f)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore: update workflows config.
([#&#8203;558](https://togithub.com/uiwjs/react-codemirror/issues/558))
[`84613ee`](https://togithub.com/uiwjs/react-codemirror/commit/84613ee)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `andromeda` theme.
[`8dccafa`](https://togithub.com/uiwjs/react-codemirror/commit/8dccafa)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore: update workflows config.
([#&#8203;558](https://togithub.com/uiwjs/react-codemirror/issues/558))
[`90e5dfc`](https://togithub.com/uiwjs/react-codemirror/commit/90e5dfc)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore: update workflows config.
([#&#8203;558](https://togithub.com/uiwjs/react-codemirror/issues/558))
[`9ea5f90`](https://togithub.com/uiwjs/react-codemirror/commit/9ea5f90)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `copilot` theme.
[`997700b`](https://togithub.com/uiwjs/react-codemirror/commit/997700b)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🐝 refactor(theme): optimize code.
[`b3ee803`](https://togithub.com/uiwjs/react-codemirror/commit/b3ee803)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `white` theme.
[`54ee05f`](https://togithub.com/uiwjs/react-codemirror/commit/54ee05f)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)

###
[`v4.21.11`](https://togithub.com/uiwjs/react-codemirror/releases/tag/v4.21.11)

[Compare
Source](https://togithub.com/uiwjs/react-codemirror/compare/v4.21.10...v4.21.11)


[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.21.11/file/README.md)

Documentation v4.21.11:
https://raw.githack.com/uiwjs/react-codemirror/6533b9b/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.10...v4.21.11

```shell
npm i @&#8203;uiw/react-codemirror@4.21.11
```

- 📖 doc: update README.md
[`21e75e2`](https://togithub.com/uiwjs/react-codemirror/commit/21e75e2)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `quietlight` theme.
[`6cd63b5`](https://togithub.com/uiwjs/react-codemirror/commit/6cd63b5)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `red` theme.
[`fbb07e1`](https://togithub.com/uiwjs/react-codemirror/commit/fbb07e1)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `abyss` theme.
[`fa73b0a`](https://togithub.com/uiwjs/react-codemirror/commit/fa73b0a)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `kimbie` theme.
[`25fd7e9`](https://togithub.com/uiwjs/react-codemirror/commit/25fd7e9)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `monokai` theme.
[`9dcbacc`](https://togithub.com/uiwjs/react-codemirror/commit/9dcbacc)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `monokai-dimmed` theme.
[`934cb75`](https://togithub.com/uiwjs/react-codemirror/commit/934cb75)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `tomorrow-night-blue` theme.
[`6a2bf01`](https://togithub.com/uiwjs/react-codemirror/commit/6a2bf01)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)

###
[`v4.21.10`](https://togithub.com/uiwjs/react-codemirror/releases/tag/v4.21.10)

[Compare
Source](https://togithub.com/uiwjs/react-codemirror/compare/v4.21.9...v4.21.10)


[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@&#8203;uiw/react-codemirror@4.21.10/file/README.md)

Documentation v4.21.10:
https://raw.githack.com/uiwjs/react-codemirror/e5b4b76/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.9...v4.21.10

```shell
npm i @&#8203;uiw/react-codemirror@4.21.10
```

- 🌍 website: add example.
([#&#8203;455](https://togithub.com/uiwjs/react-codemirror/issues/455))
[`fd6a8db`](https://togithub.com/uiwjs/react-codemirror/commit/fd6a8db)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌍 website: modify data/github router.
[`29dccc3`](https://togithub.com/uiwjs/react-codemirror/commit/29dccc3)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(theme): add `basic` theme.
[`bf24245`](https://togithub.com/uiwjs/react-codemirror/commit/bf24245)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore(deps): update dependency jest-environment-jsdom to ^29.6.0
[#&#8203;552](https://togithub.com/uiwjs/react-codemirror/issues/552)
[`8bfc8a5`](https://togithub.com/uiwjs/react-codemirror/commit/8bfc8a5)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(solarized): add package exports field.
[`affc260`](https://togithub.com/uiwjs/react-codemirror/commit/affc260)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44My4wIiwidXBkYXRlZEluVmVyIjoiMzYuODMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 06:21:35 +00:00
..
cypress
public refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
scripts
src refactor: simplify flag naming tooltip (#4685) 2023-09-14 08:09:01 +02:00
.editorconfig
.gitignore Test npm publish (#3554) 2023-04-18 15:44:19 +02:00
.nvmrc
.prettierignore
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency @uiw/codemirror-theme-duotone to v4.21.13 (#4700) 2023-09-14 06:21:35 +00:00
README.md
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts fix: set css preload to false (#4524) 2023-08-17 15:04:41 +02:00
yarn.lock chore(deps): update dependency @uiw/codemirror-theme-duotone to v4.21.13 (#4700) 2023-09-14 06:21:35 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

Refer to the Contributing to Unleash guide for instructions. The frontend dev server runs (in port 3000) simultaneously with the backend dev server (in port 4242):

yarn install
yarn dev

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ./frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

For now we only use generated types (src/openapi/models). We will use methods (src/openapi/apis) for new features soon.

yarn gen:api
rm -rf src/openapi/apis

clean up src/openapi/index.ts imports, only keep first line export * from './models';

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory