You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge remote-tracking branch 'origin/main' into deps-67
* origin/main:
[skip ci] Updated translations via Crowdin
Fix UI Spacing Errors in mirror settings (go-gitea#28990)
Add htmx guidelines (go-gitea#28993)
Some refactor for git http (go-gitea#28995)
Fix an actions schedule bug (go-gitea#28942)
Fix doc img path in profile readme (go-gitea#28994)
Introduce htmx and use it to avoid full page load on `Subscribe` and `Follow` (go-gitea#28908)
Fix joins in `db.Find(AndCount)` (go-gitea#28978)
Update golang links to use https (go-gitea#28980)
Fix google logo in security page (go-gitea#28982)
Copy file name to clipboardExpand all lines: docs/content/contributing/guidelines-frontend.en-us.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,14 +65,17 @@ Recommended implementations:
65
65
66
66
* Vue + Vanilla JS
67
67
* Fomantic-UI (jQuery)
68
+
* htmx (partial page reloads for otherwise static components)
68
69
* Vanilla JS
69
70
70
71
Discouraged implementations:
71
72
72
73
* Vue + Fomantic-UI (jQuery)
73
74
* jQuery + Vanilla JS
75
+
* htmx + any other framework which requires heavy JS code, or unnecessary features like htmx scripting (`hx-on`)
74
76
75
77
To make UI consistent, Vue components can use Fomantic-UI CSS classes.
78
+
We use htmx for simple interactions. You can see an example for simple interactions where htmx should be used in this [PR](https://github.com/go-gitea/gitea/pull/28908). Do not use htmx if you require more advanced reactivity, use another framework (Vue/Vanilla JS).
76
79
Although mixing different frameworks is discouraged,
77
80
it should also work if the mixing is necessary and the code is well-designed and maintainable.
To build from source, the following programs must be present on the system:
84
84
85
-
-`go`@minGoVersion@ or higher, see [here](https://golang.org/dl/)
85
+
-`go`@minGoVersion@ or higher, see [here](https://go.dev/dl/)
86
86
-`node`@minNodeVersion@ or higher with `npm`, see [here](https://nodejs.org/en/download/)
87
87
-`make`, see [here](development/hacking-on-gitea.md#installing-make)
88
88
@@ -119,7 +119,7 @@ TAGS="bindata sqlite sqlite_unlock_notify" make build
119
119
120
120
The `build` target is split into two sub-targets:
121
121
122
-
-`make backend` which requires [Go @minGoVersion@](https://golang.org/dl/) or greater.
122
+
-`make backend` which requires [Go @minGoVersion@](https://go.dev/dl/) or greater.
123
123
-`make frontend` which requires [Node.js @minNodeVersion@](https://nodejs.org/en/download/) or greater.
124
124
125
125
If pre-built frontend files are present it is possible to only build the backend:
@@ -165,7 +165,7 @@ Running `gitea help` will allow you to review what the computed settings will be
165
165
166
166
## Cross Build
167
167
168
-
The `go` compiler toolchain supports cross-compiling to different architecture targets that are supported by the toolchain. See [`GOOS` and `GOARCH` environment variable](https://golang.org/doc/install/source#environment) for the list of supported targets. Cross compilation is helpful if you want to build Gitea for less-powerful systems (such as Raspberry Pi).
168
+
The `go` compiler toolchain supports cross-compiling to different architecture targets that are supported by the toolchain. See [`GOOS` and `GOARCH` environment variable](https://go.dev/doc/install/source#environment) for the list of supported targets. Cross compilation is helpful if you want to build Gitea for less-powerful systems (such as Raspberry Pi).
169
169
170
170
To cross build Gitea with build tags (`TAGS`), you also need a C cross compiler which targets the same architecture as selected by the `GOOS` and `GOARCH` variables. For example, to cross build for Linux ARM64 (`GOOS=linux` and `GOARCH=arm64`), you need the `aarch64-unknown-linux-gnu-gcc` cross compiler. This is required because Gitea build tags uses `cgo`'s foreign-function interface (FFI).
要使用构建标签(`TAGS`)进行交叉编译Gitea,您还需要一个 C 交叉编译器,该编译器的目标架构与`GOOS`和`GOARCH`变量选择的架构相同。例如,要为 Linux ARM64(`GOOS=linux`和`GOARCH=arm64`)进行交叉编译,您需要`aarch64-unknown-linux-gnu-gcc`交叉编译器。这是因为 Gitea 构建标签使用了`cgo`的外部函数接口(FFI)。
0 commit comments