Skip to content

Commit 75e30c3

Browse files
authored
Merge branch 'main' into findReadmeFile-infiniteloop
2 parents afc4310 + 55d93fe commit 75e30c3

File tree

490 files changed

+9050
-4640
lines changed

Some content is hidden

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

490 files changed

+9050
-4640
lines changed

.drone.yml

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ trigger:
1212
- pull_request
1313
paths:
1414
exclude:
15-
- docs/**
15+
- "docs/**"
16+
- "*.md"
1617

1718
volumes:
1819
- name: deps
@@ -181,7 +182,7 @@ trigger:
181182
- pull_request
182183
paths:
183184
exclude:
184-
- docs/**
185+
- "docs/**"
185186

186187
volumes:
187188
- name: deps
@@ -266,6 +267,35 @@ steps:
266267
- name: deps
267268
path: /go
268269

270+
---
271+
kind: pipeline
272+
type: docker
273+
name: compliance-docs
274+
275+
platform:
276+
os: linux
277+
arch: amd64
278+
279+
trigger:
280+
event:
281+
- pull_request
282+
paths:
283+
include:
284+
- "docs/**"
285+
- "*.md"
286+
287+
steps:
288+
- name: deps-frontend
289+
image: node:18
290+
pull: always
291+
commands:
292+
- make deps-frontend
293+
294+
- name: lint-md
295+
image: node:18
296+
commands:
297+
- make lint-md
298+
269299
---
270300
kind: pipeline
271301
type: docker
@@ -283,7 +313,7 @@ trigger:
283313
- pull_request
284314
paths:
285315
exclude:
286-
- docs/**
316+
- "docs/**"
287317

288318
volumes:
289319
- name: deps
@@ -444,7 +474,7 @@ trigger:
444474
- pull_request
445475
paths:
446476
exclude:
447-
- docs/**
477+
- "docs/**"
448478

449479
volumes:
450480
- name: deps
@@ -530,7 +560,7 @@ trigger:
530560
- pull_request
531561
paths:
532562
exclude:
533-
- docs/**
563+
- "docs/**"
534564

535565
volumes:
536566
- name: deps
@@ -616,7 +646,7 @@ trigger:
616646
- pull_request
617647
paths:
618648
exclude:
619-
- docs/**
649+
- "docs/**"
620650

621651
volumes:
622652
- name: deps
@@ -696,7 +726,7 @@ trigger:
696726
- pull_request
697727
paths:
698728
exclude:
699-
- docs/**
729+
- "docs/**"
700730

701731
volumes:
702732
- name: deps
@@ -726,7 +756,7 @@ steps:
726756

727757
# TODO: We should probably build all dependencies into a test image
728758
- name: test-e2e
729-
image: mcr.microsoft.com/playwright:v1.31.2-focal
759+
image: mcr.microsoft.com/playwright:v1.32.1-focal
730760
commands:
731761
- curl -sLO https://go.dev/dl/go1.20.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
732762
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
@@ -867,7 +897,7 @@ trigger:
867897
- push
868898
paths:
869899
exclude:
870-
- docs/**
900+
- "docs/**"
871901

872902
depends_on:
873903
- testing-mysql
@@ -1125,7 +1155,7 @@ trigger:
11251155
- pull_request
11261156
paths:
11271157
include:
1128-
- docs/**
1158+
- "docs/**"
11291159

11301160
steps:
11311161
- name: build-docs
@@ -1176,7 +1206,7 @@ trigger:
11761206
- cron
11771207
paths:
11781208
exclude:
1179-
- docs/**
1209+
- "docs/**"
11801210

11811211
steps:
11821212
- name: fetch-tags
@@ -1253,7 +1283,7 @@ trigger:
12531283
- cron
12541284
paths:
12551285
exclude:
1256-
- docs/**
1286+
- "docs/**"
12571287

12581288
steps:
12591289
- name: fetch-tags
@@ -1468,7 +1498,7 @@ trigger:
14681498
- pull_request
14691499
paths:
14701500
exclude:
1471-
- docs/**
1501+
- "docs/**"
14721502

14731503
steps:
14741504
- name: dryrun
@@ -1515,7 +1545,7 @@ trigger:
15151545
- cron
15161546
paths:
15171547
exclude:
1518-
- docs/**
1548+
- "docs/**"
15191549

15201550
steps:
15211551
- name: fetch-tags
@@ -1592,7 +1622,7 @@ trigger:
15921622
- cron
15931623
paths:
15941624
exclude:
1595-
- docs/**
1625+
- "docs/**"
15961626

15971627
steps:
15981628
- name: fetch-tags
@@ -1667,7 +1697,7 @@ trigger:
16671697
- cron
16681698
paths:
16691699
exclude:
1670-
- docs/**
1700+
- "docs/**"
16711701

16721702
steps:
16731703
- name: fetch-tags
@@ -1834,7 +1864,7 @@ trigger:
18341864
- cron
18351865
paths:
18361866
exclude:
1837-
- docs/**
1867+
- "docs/**"
18381868

18391869
depends_on:
18401870
- docker-linux-amd64-release-version
@@ -1884,7 +1914,7 @@ trigger:
18841914
- cron
18851915
paths:
18861916
exclude:
1887-
- docs/**
1917+
- "docs/**"
18881918

18891919
depends_on:
18901920
- docker-linux-amd64-release

.eslintrc.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins:
1313
- eslint-plugin-import
1414
- eslint-plugin-jquery
1515
- eslint-plugin-sonarjs
16+
- eslint-plugin-custom-elements
1617

1718
env:
1819
es2022: true
@@ -62,6 +63,19 @@ rules:
6263
consistent-this: [0]
6364
constructor-super: [2]
6465
curly: [0]
66+
custom-elements/expose-class-on-global: [0]
67+
custom-elements/extends-correct-class: [2]
68+
custom-elements/file-name-matches-element: [0]
69+
custom-elements/no-constructor: [2]
70+
custom-elements/no-customized-built-in-elements: [2]
71+
custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
72+
custom-elements/no-dom-traversal-in-connectedcallback: [2]
73+
custom-elements/no-exports-with-element: [2]
74+
custom-elements/no-method-prefixed-with-on: [2]
75+
custom-elements/no-unchecked-define: [0]
76+
custom-elements/one-element-per-file: [0]
77+
custom-elements/tag-name-matches-class: [2]
78+
custom-elements/valid-tag-name: [2]
6579
default-case-last: [2]
6680
default-case: [0]
6781
default-param-last: [0]
@@ -164,7 +178,7 @@ rules:
164178
jquery/no-parse-html: [2]
165179
jquery/no-prop: [0]
166180
jquery/no-proxy: [2]
167-
jquery/no-ready: [0]
181+
jquery/no-ready: [2]
168182
jquery/no-serialize: [2]
169183
jquery/no-show: [2]
170184
jquery/no-size: [2]

.gitpod.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ tasks:
2323
gp sync-await setup
2424
make watch-frontend
2525
openMode: split-right
26-
- name: Run docs
27-
command: |
28-
gp sync-await setup
29-
cd docs
30-
make clean update
31-
hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
32-
openMode: split-right
3326

3427
vscode:
3528
extensions:
@@ -46,5 +39,3 @@ vscode:
4639
ports:
4740
- name: Gitea
4841
port: 3000
49-
- name: Docs
50-
port: 1313

.stylelintrc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ rules:
8888
no-invalid-position-at-import-rule: null
8989
no-irregular-whitespace: true
9090
no-unknown-animations: null
91+
no-unknown-custom-properties: null
9192
number-max-precision: null
9293
property-allowed-list: null
9394
property-disallowed-list: null

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.20-alpine3.17 AS build-env
2+
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.17
26+
FROM docker.io/library/alpine:3.17
2727
LABEL maintainer="[email protected]"
2828

2929
EXPOSE 22 3000

Dockerfile.rootless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Build stage
2-
FROM golang:1.20-alpine3.17 AS build-env
2+
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
33

44
ARG GOPROXY
55
ENV GOPROXY ${GOPROXY:-direct}
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
# Begin env-to-ini build
2424
RUN go build contrib/environment-to-ini/environment-to-ini.go
2525

26-
FROM alpine:3.17
26+
FROM docker.io/library/alpine:3.17
2727
LABEL maintainer="[email protected]"
2828

2929
EXPOSE 2222 3000

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Jimmy Praet <[email protected]> (@jpraet)
4444
Leon Hofmeister <[email protected]> (@delvh)
4545
Wim <[email protected]> (@42wim)
4646
Jason Song <[email protected]> (@wolfogre)
47-
Yarden Shoham <hrsi88@gmail.com> (@yardenshoham)
47+
Yarden Shoham <git@yardenshoham.com> (@yardenshoham)
4848
Yu Tian <[email protected]> (@Zettat123)
4949
Eddie Yang <[email protected]> (@yp05327)
5050
Dong Ge <[email protected]> (@sillyguodong)

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ help:
196196
@echo " - lint lint everything"
197197
@echo " - lint-frontend lint frontend files"
198198
@echo " - lint-backend lint backend files"
199+
@echo " - lint-md lint markdown files"
199200
@echo " - checks run various consistency checks"
200201
@echo " - checks-frontend check frontend files"
201202
@echo " - checks-backend check backend files"
@@ -341,10 +342,13 @@ checks-backend: tidy-check swagger-check fmt-check misspell-check swagger-valida
341342
lint: lint-frontend lint-backend
342343

343344
.PHONY: lint-frontend
344-
lint-frontend: node_modules
345+
lint-frontend: node_modules lint-md
345346
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e
346347
npx stylelint --color --max-warnings=0 web_src/css
347348
npx spectral lint -q -F hint $(SWAGGER_SPEC)
349+
350+
.PHONY: lint-md
351+
lint-md: node_modules
348352
npx markdownlint docs *.md
349353

350354
.PHONY: lint-backend
@@ -747,7 +751,7 @@ generate-go: $(TAGS_PREREQ)
747751

748752
.PHONY: security-check
749753
security-check:
750-
go run $(GOVULNCHECK_PACKAGE) -v ./...
754+
go run $(GOVULNCHECK_PACKAGE) ./...
751755

752756
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
753757
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

0 commit comments

Comments
 (0)