diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-12 08:44:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 20:44:26 -0400 |
commit | 6892e2b8efff4465acd702e702d16f7aadd07187 (patch) | |
tree | f29fdbd56f7bcb79127eed8f09c4ee69917a0172 /web_src/js/features/repo-editor.js | |
parent | 1380b873115c85ca9e758789b0757ae5a6610a1e (diff) | |
download | gitea-6892e2b8efff4465acd702e702d16f7aadd07187.tar.gz gitea-6892e2b8efff4465acd702e702d16f7aadd07187.zip |
Use reactive store to share data between components (#23996)
Follow #23947
* Use reactive store to share data between components
* Remove no-op `this.hashListener = window.addEventListener()` because
`addEventListener` returns void/undefined.
Reference:
https://vuejs.org/guide/scaling-up/state-management.html#simple-state-management-with-reactivity-api
Screenshot (the same as before):
<details>
<img width="565" alt="image"
src="https://user-images.githubusercontent.com/2114189/230701282-bd61bfa3-7786-433b-9ad8-a88591112a02.png">
</details>
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/features/repo-editor.js')
0 files changed, 0 insertions, 0 deletions