Skip to content

Commit 1e7af8d

Browse files
authored
Merge branch 'main' into bugfix/issue_23440
2 parents 66f84ee + 202803f commit 1e7af8d

File tree

136 files changed

+9938
-8962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+9938
-8962
lines changed

.drone.yml

Lines changed: 40 additions & 67 deletions
Large diffs are not rendered by default.

.stylelintrc.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ ignoreFiles:
55
- "**/*.go"
66

77
overrides:
8-
- files: ["**/*.less"]
9-
customSyntax: postcss-less
108
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
119
rules:
1210
scale-unlimited/declaration-strict-value: null

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ AIR_PACKAGE ?= github.com/cosmtrek/[email protected]
2929
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/[email protected]
3030
ERRCHECK_PACKAGE ?= github.com/kisielk/[email protected]
3131
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
32-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected].0
32+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected].2
3333
GXZ_PAGAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
3434
MISSPELL_PACKAGE ?= github.com/client9/misspell/cmd/[email protected]
3535
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/[email protected]
@@ -105,7 +105,7 @@ GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list code.gitea.io/gitea/models/m
105105

106106
FOMANTIC_WORK_DIR := web_src/fomantic
107107

108-
WEBPACK_SOURCES := $(shell find web_src/js web_src/less -type f)
108+
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
109109
WEBPACK_CONFIGS := webpack.config.js
110110
WEBPACK_DEST := public/js/index.js public/css/index.css
111111
WEBPACK_DEST_ENTRIES := public/js public/css public/fonts public/img/webpack public/serviceworker.js
@@ -131,7 +131,7 @@ TEST_TAGS ?= sqlite sqlite_unlock_notify
131131
TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE) $(FOMANTIC_WORK_DIR)/node_modules $(DIST) $(MAKE_EVIDENCE_DIR) $(AIR_TMP_DIR) $(GO_LICENSE_TMP_DIR)
132132

133133
GO_DIRS := cmd tests models modules routers build services tools
134-
WEB_DIRS := web_src/js web_src/less
134+
WEB_DIRS := web_src/js web_src/css
135135

136136
GO_SOURCES := $(wildcard *.go)
137137
GO_SOURCES += $(shell find $(GO_DIRS) -type f -name "*.go" -not -path modules/options/bindata.go -not -path modules/public/bindata.go -not -path modules/templates/bindata.go)
@@ -342,7 +342,7 @@ lint: lint-frontend lint-backend
342342
.PHONY: lint-frontend
343343
lint-frontend: node_modules
344344
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e
345-
npx stylelint --color --max-warnings=0 web_src/less
345+
npx stylelint --color --max-warnings=0 web_src/css
346346
npx spectral lint -q -F hint $(SWAGGER_SPEC)
347347
npx markdownlint docs *.md
348348

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
;; - The environment variable `$GITEA_WORK_DIR`
2121
;; - A built-in value set at build time (see building from source)
2222
;; - Otherwise it defaults to the directory of the _`AppPath`_
23-
;; - If any of the above are relative paths then they are made absolute against the
23+
;; - If any of the above are relative paths then they are made absolute against
2424
;; the directory of the _`AppPath`_
2525
;; - _`CustomPath`_: This is the base directory for custom templates and other options.
2626
;; It is determined by using the first set thing in the following hierarchy:

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ reported as part of the default configuration when running `gitea --help` or on
4646
- The environment variable `$GITEA_WORK_DIR`
4747
- A built-in value set at build time (see building from source)
4848
- Otherwise it defaults to the directory of the _`AppPath`_
49-
- If any of the above are relative paths then they are made absolute against the
49+
- If any of the above are relative paths then they are made absolute against
5050
the directory of the _`AppPath`_
5151
- _`CustomPath`_: This is the base directory for custom templates and other options.
5252
It is determined by using the first set thing in the following hierarchy:

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ To make a custom theme available to all users:
354354
355355
Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.com/gitea/awesome-gitea#themes).
356356
357-
The `arc-green` theme source can be found [here](https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less).
357+
The `arc-green` theme source can be found [here](https://github.com/go-gitea/gitea/blob/main/web_src/css/themes/theme-arc-green.css).
358358
359359
If your custom theme is considered a dark theme, set the global css variable `--is-dark-theme` to `true`.
360360
This allows Gitea to adjust the Monaco code editor's theme accordingly.

docs/content/doc/developers/guidelines-frontend.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ menu:
2121

2222
## Background
2323

24-
Gitea uses [Less CSS](https://lesscss.org), [Fomantic-UI](https://fomantic-ui.com/introduction/getting-started.html) (based on [jQuery](https://api.jquery.com)) and [Vue3](https://vuejs.org/) for its frontend.
24+
Gitea uses [Fomantic-UI](https://fomantic-ui.com/introduction/getting-started.html) (based on [jQuery](https://api.jquery.com)) and [Vue3](https://vuejs.org/) for its frontend.
2525

2626
The HTML pages are rendered by [Go HTML Template](https://pkg.go.dev/html/template).
2727

2828
The source files can be found in the following directories:
2929

30-
* **Less styles:** `web_src/less/`
30+
* **CSS styles:** `web_src/css/`
3131
* **JavaScript files:** `web_src/js/`
3232
* **Vue components:** `web_src/js/components/`
3333
* **Go HTML templates:** `templates/`

docs/content/doc/features/localization.zh-cn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ menu:
1414
---
1515

1616
# 本地化
17+
1718
Gitea的本地化是通过我们的[Crowdin项目](https://crowdin.com/project/gitea)进行的。
1819

1920
对于对**英语翻译**的更改,可以发出pull-request,来更改[英语语言环境](https://github.com/go-gitea/gitea/blob/master/options/locale/locale_en-US.ini)中合适的关键字。
2021

2122
有关对**非英语**翻译的更改,请参阅上面的 Crowdin 项目。
2223

2324
## 支持的语言
25+
2426
上述 Crowdin 项目中列出的任何语言一旦翻译了 25% 或更多都将得到支持。
2527

2628
翻译被接受后,它将在下一次 Crowdin 同步后反映在主存储库中,这通常是在任何 PR 合并之后。

docs/content/doc/usage/push-options.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ were added.
2929
Example of changing a repository's visibility to public:
3030

3131
```shell
32-
git push -o repo.private=false -u origin master
32+
git push -o repo.private=false -u origin main
3333
```

docs/content/doc/usage/push-options.zh-tw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Gitea 從 `1.13` 版開始支援某些 [push options](https://git-scm.com/docs/g
2929
以下範例修改儲存庫的可見性為公開:
3030

3131
```shell
32-
git push -o repo.private=false -u origin master
32+
git push -o repo.private=false -u origin main
3333
```

0 commit comments

Comments
 (0)