1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] c8a143731c
chore(deps): update dependency @uiw/react-codemirror to v4.21.18 (#4880)
[![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/react-codemirror](https://uiwjs.github.io/react-codemirror)
([source](https://togithub.com/uiwjs/react-codemirror)) | [`4.21.13` ->
`4.21.18`](https://renovatebot.com/diffs/npm/@uiw%2freact-codemirror/4.21.13/4.21.18)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@uiw%2freact-codemirror/4.21.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@uiw%2freact-codemirror/4.21.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@uiw%2freact-codemirror/4.21.13/4.21.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@uiw%2freact-codemirror/4.21.13/4.21.18?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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


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

Documentation v4.21.18:
https://raw.githack.com/uiwjs/react-codemirror/748c4da/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.17...v4.21.18

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

- 🌟 feat(theme): Add background image option to createTheme()
([#&#8203;575](https://togithub.com/uiwjs/react-codemirror/issues/575))
[`32c5339`](https://togithub.com/uiwjs/react-codemirror/commit/32c5339)
[@&#8203;Ethan-Vanderheijden](https://togithub.com/Ethan-Vanderheijden)
- 💢 ci: update workflows config.
[`85914eb`](https://togithub.com/uiwjs/react-codemirror/commit/85914eb)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)

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

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


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

Documentation v4.21.17:
https://raw.githack.com/uiwjs/react-codemirror/d60d15d/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.16...v4.21.17

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

- 🐞 fix(merge): fix `onChange` issue.
([#&#8203;566](https://togithub.com/uiwjs/react-codemirror/issues/566))
[`b84b763`](https://togithub.com/uiwjs/react-codemirror/commit/b84b763)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)

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

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


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

Documentation v4.21.16:
https://raw.githack.com/uiwjs/react-codemirror/a493d81/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.15...v4.21.16

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

- 💢 ci: update workflows config.
[`e16ede0`](https://togithub.com/uiwjs/react-codemirror/commit/e16ede0)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🌟 feat(merge): add `destroyRerender` props.
([#&#8203;566](https://togithub.com/uiwjs/react-codemirror/issues/566))
[`2c91e67`](https://togithub.com/uiwjs/react-codemirror/commit/2c91e67)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)

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

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


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

Documentation v4.21.15:
https://raw.githack.com/uiwjs/react-codemirror/ea21a7e/index.html\
Comparing Changes:
https://github.com/uiwjs/react-codemirror/compare/v4.21.14...v4.21.15

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

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

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


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

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

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

- 📖 doc: Update README.md
[`b967a3f`](https://togithub.com/uiwjs/react-codemirror/commit/b967a3f)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 💄 chore: add nextjs example.
([#&#8203;568](https://togithub.com/uiwjs/react-codemirror/issues/568))
[`12bb2ce`](https://togithub.com/uiwjs/react-codemirror/commit/12bb2ce)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🐞 fix: Fix double highlighting selection when using drawSelection.
([#&#8203;573](https://togithub.com/uiwjs/react-codemirror/issues/573))
[`7c5585a`](https://togithub.com/uiwjs/react-codemirror/commit/7c5585a)
[@&#8203;Ethan-Vanderheijden](https://togithub.com/Ethan-Vanderheijden)
- 💊 clean: clean up redundant code on website.
[`893a168`](https://togithub.com/uiwjs/react-codemirror/commit/893a168)
[@&#8203;jaywcjlove](https://togithub.com/jaywcjlove)
- 🐞 fix: Set the value of crosshairCursor to `false` by default.
([#&#8203;568](https://togithub.com/uiwjs/react-codemirror/issues/568))
[`7a93b3e`](https://togithub.com/uiwjs/react-codemirror/commit/7a93b3e)
[@&#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:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-30 06:25:01 +00:00
..
cypress test: makes overview spec less flaky by doing 2 step search (#4862) 2023-09-29 08:18:51 +01:00
public
scripts
src feat: add more events in integrations (#4815) 2023-09-29 16:11:59 +01:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency @uiw/react-codemirror to v4.21.18 (#4880) 2023-09-30 06:25:01 +00:00
README.md feat: application usage frontend (#4561) 2023-08-24 13:13:02 +03:00
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): update dependency @uiw/react-codemirror to v4.21.18 (#4880) 2023-09-30 06:25:01 +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