summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/developers/guidelines-frontend.md
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-10-17 01:28:04 +0800
committerGitHub <noreply@github.com>2021-10-17 01:28:04 +0800
commit1a7473ff459479a7fd3ba62a0b7b04b237565bed (patch)
tree518aab9c14f36ed012831b389c0370adef2ab738 /docs/content/doc/developers/guidelines-frontend.md
parent3728f1daa08e4c228db212844612555e9e2904df (diff)
downloadgitea-1a7473ff459479a7fd3ba62a0b7b04b237565bed.tar.gz
gitea-1a7473ff459479a7fd3ba62a0b7b04b237565bed.zip
Split `index.js` to separate files (#17315)
* split `index.js` to separate files * tune clipboard * fix promise * fix document * remove intermediate empty file * fix async event listener * use `export function` instead of `export {}`, add more comments Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'docs/content/doc/developers/guidelines-frontend.md')
-rw-r--r--docs/content/doc/developers/guidelines-frontend.md7
1 files changed, 0 insertions, 7 deletions
diff --git a/docs/content/doc/developers/guidelines-frontend.md b/docs/content/doc/developers/guidelines-frontend.md
index 86286127aa..f30b0d1cbd 100644
--- a/docs/content/doc/developers/guidelines-frontend.md
+++ b/docs/content/doc/developers/guidelines-frontend.md
@@ -39,13 +39,6 @@ We recommend [Google HTML/CSS Style Guide](https://google.github.io/styleguide/h
6. The backend can pass complex data to the frontend by using `ctx.PageData["myModuleData"] = map[]{}`
7. Simple pages and SEO-related pages use Go HTML Template render to generate static Fomantic-UI HTML output. Complex pages can use Vue2 (or Vue3 in future).
-## Legacy Problems and Solutions
-
-### Too much code in `web_src/index.js`
-
-Previously, most JavaScript code was written into `web_src/index.js` directly, making the file unmaintainable.
-Try to keep this file small by creating new modules instead. These modules can be put in the `web_src/js/features` directory for now.
-
### Vue2/Vue3 and JSX
Gitea is using Vue2 now, we plan to upgrade to Vue3. We decided not to introduce JSX to keep the HTML and the JavaScript code separated.