From 55be5fe3399d18b7d2477519707aecf5f99f1de5 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 19 Nov 2021 00:45:00 +0800 Subject: [PATCH] Refactor repo-legacy.js, remove messy global variables. Fix errors. (#17646) Refactor repo-legacy.js, remove messy global variables. Fix errors. Fix an error in Sortable Fix a incorrect call assignMenuAttributes from the template --- README.md | 2 +- templates/repo/diff/comment_form.tmpl | 2 +- web_src/js/features/repo-legacy.js | 391 +++++++++++++------------- web_src/js/features/repo-projects.js | 6 +- 4 files changed, 199 insertions(+), 202 deletions(-) diff --git a/README.md b/README.md index 5e7ef139078..90ff8f3a226 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ or if sqlite support is required: The `build` target is split into two sub-targets: - `make backend` which requires [Go 1.16](https://golang.org/dl/) or greater. -- `make frontend` which requires [Node.js 12.17](https://nodejs.org/en/download/) or greater and Internet connectivity to download npm dependencies. +- `make frontend` which requires [Node.js LTS](https://nodejs.org/en/download/) or greater and Internet connectivity to download npm dependencies. When building from the official source tarballs which include pre-built frontend files, the `frontend` target will not be triggered, making it possible to build without Node.js and Internet connectivity. diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index 9c02c9de15e..cb7234b3b02 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -9,7 +9,7 @@ -