Earl Warren
95ccbb5995
Merge pull request 'Update dependency updates to v16.1.1' ( #3920 ) from renovate/updates-16.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3920
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-27 05:47:51 +00:00
Renovate Bot
23a991a0b4
Update dependency updates to v16.1.1
2024-05-27 00:04:27 +00:00
Renovate Bot
319acec27c
Update dependency markdownlint-cli to v0.41.0
2024-05-27 00:04:18 +00:00
0ko
b478bfb3cf
Merge pull request 'Update dependency @github/text-expander-element to v2.7.0' ( #3807 ) from renovate/github-text-expander-element-2.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3807
Reviewed-by: Mai-Lapyst <mai-lapyst@noreply.codeberg.org>
2024-05-24 17:34:21 +00:00
Renovate Bot
95ae3a3c7e
Update dependency postcss-nesting to v12.1.5
2024-05-24 02:04:27 +00:00
Renovate Bot
2d245351e5
Update dependency @playwright/test to v1.44.1
2024-05-24 00:04:17 +00:00
Renovate Bot
0376b5087d
Update dependency swagger-ui-dist to v5.17.12
2024-05-22 16:08:46 +00:00
Renovate Bot
f64c2e0a7f
Update dependency @github/text-expander-element to v2.7.0
2024-05-17 00:06:12 +00:00
Earl Warren
45a41811de
Merge pull request 'Update dependency mermaid to v10.9.1' ( #3776 ) from renovate/mermaid-10.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3776
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-16 15:55:54 +00:00
Renovate Bot
103ad53f45
Update dependency happy-dom to v14.11.0
2024-05-15 00:06:10 +00:00
Renovate Bot
03e2aed969
Update dependency mermaid to v10.9.1
2024-05-15 00:05:40 +00:00
Earl Warren
6c1573d0aa
Merge pull request 'Update dependency postcss-nesting to v12.1.4' ( #3756 ) from renovate/postcss-packages into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3756
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-05-14 11:37:55 +00:00
Earl Warren
b60a302821
Merge pull request 'Update dependency swagger-ui-dist to v5.17.9' ( #3757 ) from renovate/swagger-ui-dist-5.17.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3757
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-05-14 11:36:59 +00:00
Renovate Bot
989e750e48
Update dependency swagger-ui-dist to v5.17.9
2024-05-14 02:05:52 +00:00
Renovate Bot
46e36e2dda
Update dependency postcss-nesting to v12.1.4
2024-05-14 00:07:56 +00:00
Renovate Bot
9bde9b18f1
Update dependency happy-dom to v14.10.2
2024-05-14 00:07:20 +00:00
Renovate Bot
6f3c50e75d
Update postcss packages
2024-05-11 12:03:36 +00:00
Earl Warren
88804dd558
Merge pull request 'Update dependency happy-dom to v14.10.1' ( #3695 ) from renovate/happy-dom-14.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3695
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-10 05:26:46 +00:00
Earl Warren
19fec86f9b
Merge pull request 'Update dependency swagger-ui-dist to v5.17.7' ( #3693 ) from renovate/swagger-ui-dist-5.17.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3693
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-10 05:24:55 +00:00
Renovate Bot
7a5f0faf0c
Update dependency happy-dom to v14.10.1
2024-05-10 02:06:06 +00:00
Renovate Bot
9a812f16bd
Update dependency eslint-plugin-vue to v9.26.0
2024-05-10 02:05:33 +00:00
Renovate Bot
1148206fc8
Update dependency swagger-ui-dist to v5.17.7
2024-05-10 00:08:05 +00:00
Earl Warren
06843c1cdc
Merge pull request 'Update dependency swagger-ui-dist to v5.17.6' ( #3679 ) from renovate/swagger-ui-dist-5.17.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3679
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-09 07:21:21 +00:00
Earl Warren
326d5e6b63
Merge pull request 'Update dependency vue to v3.4.27' ( #3680 ) from renovate/patch-vue-monorepo into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3680
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-09 07:20:21 +00:00
Renovate Bot
e89e253636
Update dependency @playwright/test to v1.44.0
2024-05-09 02:05:43 +00:00
Renovate Bot
15c0878084
Update dependency vue to v3.4.27
2024-05-09 00:06:36 +00:00
Renovate Bot
e71f8b8f7b
Update dependency swagger-ui-dist to v5.17.6
2024-05-09 00:06:13 +00:00
Earl Warren
4af9d9b6c3
Merge pull request 'Update dependency @stylistic/eslint-plugin-js to v1.8.1' ( #3666 ) from renovate/linters into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3666
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-08 17:45:20 +00:00
Renovate Bot
7105e19468
Update dependency @stylistic/eslint-plugin-js to v1.8.1
2024-05-08 16:03:56 +00:00
Renovate Bot
84224a65ff
Update dependency @vue/test-utils to v2.4.6
2024-05-08 02:05:00 +00:00
Earl Warren
58351b9a63
Merge pull request 'Update dependency stylelint to v16.5.0' ( #3626 ) from renovate/linters into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3626
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-05 06:47:30 +00:00
Renovate Bot
1ecd0916d5
Update dependency vitest to v1.6.0
2024-05-05 00:04:10 +00:00
Renovate Bot
fe922fce87
Update dependency stylelint to v16.5.0
2024-05-04 20:04:08 +00:00
Earl Warren
6253ab7bb0
Merge pull request 'Update dependency clippie to v4.1.1' ( #3614 ) from renovate/clippie-4.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3614
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-04 15:45:21 +00:00
Renovate Bot
526261937d
Update dependency vite-string-plugin to v1.3.1
2024-05-04 00:04:51 +00:00
Earl Warren
ff328f0f6f
Merge pull request 'Update dependency markdownlint-cli to v0.40.0' ( #3600 ) from renovate/markdownlint-cli-0.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3600
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-05-03 09:39:24 +00:00
Renovate Bot
ab23f5e6cd
Update dependency clippie to v4.1.1
2024-05-03 06:03:34 +00:00
Renovate Bot
47ea0f5f98
Update dependency markdownlint-cli to v0.40.0
2024-05-02 02:04:58 +00:00
Renovate Bot
3e3f7c3f47
Update dependency @stylistic/eslint-plugin-js to v1.8.0
2024-05-02 02:04:31 +00:00
Earl Warren
97ef18db65
Merge pull request 'Update dependency vue to v3.4.26' ( #3439 ) from renovate/vue-monorepo into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3439
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-01 08:08:52 +00:00
Renovate Bot
bb5395cd29
Update dependency vue to v3.4.26
2024-05-01 09:30:24 +02:00
Earl Warren
cf16782338
Merge pull request 'Update dependency dayjs to v1.11.11' ( #3545 ) from renovate/dayjs-1.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3545
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-05-01 07:25:09 +00:00
Renovate Bot
9a581e70a1
Update dependency vitest to v1.5.3
2024-05-01 06:03:44 +00:00
Earl Warren
e58a4c9a76
Merge pull request 'Update dependency @stylistic/stylelint-plugin to v2.1.2' ( #3544 ) from renovate/stylistic-stylelint-plugin-2.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3544
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-30 07:04:10 +00:00
Renovate Bot
a7fcc3ca3f
Update dependency dayjs to v1.11.11
2024-04-30 00:11:43 +00:00
Renovate Bot
aba5fe36d8
Update dependency @stylistic/stylelint-plugin to v2.1.2
2024-04-30 00:11:35 +00:00
Yarden Shoham
9ea73fcb09
Bump htmx version to 1.9.12 ( #30711 )
...
There are no breaking changes. I tested and everything works as before.
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
(cherry picked from commit 68a3e6b5e64b4035aa0659cb6daa1c4d1eec892a)
2024-04-28 15:39:01 +02:00
Earl Warren
0819ed2053
Merge pull request 'Update dependency vitest to v1.5.2' ( #3468 ) from renovate/vitest-monorepo into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3468
2024-04-26 08:37:20 +00:00
Renovate Bot
90c56a9d66
Update dependency vitest to v1.5.2
2024-04-26 08:10:29 +00:00
Renovate Bot
aa2af10f67
Update dependency swagger-ui-dist to v5.17.2
2024-04-26 08:10:19 +00:00
Earl Warren
b222ec7631
Merge pull request 'Update dependency swagger-ui-dist to v5.17.1' ( #3436 ) from renovate/swagger-ui-dist-5.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3436
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-25 13:20:22 +00:00
Renovate Bot
f1afbb3442
Update dependency vitest to v1.5.1
2024-04-25 06:03:55 +00:00
Renovate Bot
d7ce77b7c6
Update dependency swagger-ui-dist to v5.17.1
2024-04-25 00:05:18 +00:00
Earl Warren
a452fea96d
Merge pull request 'Update dependency vitest to v1.5.0' ( #3401 ) from renovate/vitest-monorepo into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3401
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-24 06:42:52 +00:00
Renovate Bot
92ef180efa
Update linters
2024-04-24 02:04:15 +00:00
Renovate Bot
314bac6cee
Update dependency vitest to v1.5.0
2024-04-24 00:04:34 +00:00
Earl Warren
7f52d8e860
Merge pull request 'Update dependency postcss-nesting to v12.1.2' ( #3386 ) from renovate/postcss-packages into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3386
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-23 13:14:42 +00:00
Earl Warren
0c748c1be4
Merge pull request 'Update dependency vue to v3.4.24' ( #3387 ) from renovate/vue-monorepo into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3387
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-23 13:14:18 +00:00
Renovate Bot
e10296831e
Update dependency vite-string-plugin to v1.2.0
2024-04-23 02:04:06 +00:00
Renovate Bot
208af3e130
Update dependency vue to v3.4.24
2024-04-23 02:03:37 +00:00
Renovate Bot
0951c06fdf
Update dependency postcss-nesting to v12.1.2
2024-04-23 00:04:10 +00:00
Earl Warren
69e0380406
Merge pull request 'Update dependency swagger-ui-dist to v5.17.0' ( #3345 ) from renovate/swagger-ui-dist-5.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3345
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-22 14:36:52 +00:00
Renovate Bot
b263484c30
Update dependency swagger-ui-dist to v5.17.0
2024-04-22 14:02:40 +00:00
Renovate Bot
ba0f05b286
Update dependency mini-css-extract-plugin to v2.9.0
2024-04-20 00:03:42 +00:00
Renovate Bot
82ec2a65e0
Update citation-js monorepo to v0.7.11
2024-04-19 00:02:54 +00:00
Renovate Bot
a5c0643d13
Update dependency vue to v3.4.23
2024-04-17 00:04:27 +00:00
Renovate Bot
aebe03b585
Update dependency @stylistic/eslint-plugin-js to v1.7.2
2024-04-16 02:03:02 +00:00
Renovate Bot
8e40ba197a
Update dependency happy-dom to v14.7.1
2024-04-15 02:03:36 +00:00
Renovate Bot
1d383a6354
Update dependency @playwright/test to v1.43.0
2024-04-11 10:05:56 +00:00
Renovate Bot
37f7c899a5
Update dependency @eslint-community/eslint-plugin-eslint-comments to v4.3.0
2024-04-11 00:06:13 +00:00
Renovate Bot
92a5dbe015
Update dependency vue-chartjs to v5.3.1
2024-04-10 00:06:37 +00:00
Earl Warren
9d6389352d
Merge pull request 'Update dependency updates to v16.0.1' ( #3119 ) from renovate/updates-16.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3119
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2024-04-09 13:02:08 +00:00
Earl Warren
26fc7c3461
Merge pull request '[gitea] week 15 cherry pick' ( #3091 ) from algernon/forgejo:wcp/week-15 into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3091
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-04-09 05:31:44 +00:00
Renovate Bot
4c5b5109c6
Update dependency updates to v16.0.1
2024-04-09 00:06:50 +00:00
Renovate Bot
e37fd3a8f4
Update dependency temporal-polyfill to v0.2.4
2024-04-08 10:09:28 +00:00
silverwind
a53a94e1c2
Replace coloris with vanilla-colorful ( #30201 )
...
Found [a better color
picker](https://github.com/web-padawan/vanilla-colorful ) that [does not
rely](https://github.com/mdbassit/Coloris/issues/139 ) on
`querySelectorAll` or a global shared instance, and is also around a
third of the size of the previous one.
The popover is handled by tippy.js for which I introduced a new "bare"
theme and it uses a new sibling-based mechanism which should prove
useful later to create tippy popovers via HTML only.
<img width="846" alt="Screenshot 2024-03-31 at 04 03 38"
src="https://github.com/go-gitea/gitea/assets/115237/7639b911-a2d7-4f5c-bffd-a9d84561e747 ">
(cherry picked from commit 1195be41a13d2198ab644c8558549edd74485510)
2024-04-07 15:40:31 +02:00
silverwind
bef622d3e7
Add stylelint-value-no-unknown-custom-properties
and convert stylelint config to js ( #30117 )
...
Add
[`stylelint-value-no-unknown-custom-properties`](https://github.com/csstools/stylelint-value-no-unknown-custom-properties )
which lints for undefined CSS variables. No current violations.
To make it work properly with editor integrations, I had to convert the
config to JS to be able to pass absolute paths to the plugin, but this
is a needed change anyways.
(cherry picked from commit f31a88d3cb64106e75bbe8a3502856db71dbacfc)
Conflicts:
- .github/labeler.yml
- .github/workflows/files-changed.yml
Removed both, Gitea specific files.
2024-04-07 15:40:31 +02:00
silverwind
e875220edd
[PORT] gitea#30279: Update JS dependencies and add new eslint rules
...
- Run `make update-js`
- Added new eslint rules
- Tested webpack build and swagger ui
---
Conflict resolution:
- package.json for minimatch choose the newest favor.
- package-lock.json, run `npm install` to generate this.
(cherry picked from commit 5dabc679aa0a33bc1b997335a216acfe97e70ea5)
2024-04-07 15:05:08 +02:00
silverwind
2e542f17a3
replace jquery-minicolors with coloris ( #30055 )
...
Get rid of one more jQuery dependant and have a nicer color picker as
well.
Now there is only a single global color picker init because that is all
that's necessary because the elements are present on the page when the
init code runs. The init is slightly weird because the module only takes
a selector instead of DOM elements directly.
The label modals now also perform form validation because previously it
was possible to trigger a 500 error `Color cannot be empty.` by clearing
out the color value on labels.
<img width="867" alt="Screenshot 2024-03-25 at 00 21 05"
src="https://github.com/go-gitea/gitea/assets/115237/71215c39-abb1-4881-b5c1-9954b4a89adb ">
<img width="860" alt="Screenshot 2024-03-25 at 00 20 48"
src="https://github.com/go-gitea/gitea/assets/115237/a12cb68f-c38b-4433-ba05-53bbb4b1023e ">
(cherry picked from commit dd8dde2be89921b2b1497c6cc5eafdde213429cb)
2024-04-07 11:02:33 +02:00
Renovate Bot
1497790209
Update dependency @stoplight/spectral-cli to v6.11.1
2024-04-05 04:23:05 +00:00
Renovate Bot
335dd3cee6
Update dependency happy-dom to v14.3.10
2024-04-02 04:04:45 +00:00
Renovate Bot
05376503ed
Update dependency happy-dom to v14.3.9
2024-03-30 11:48:44 +00:00
Gusted
ddc24177dd
[BUG] Render emojis in labels in issue info popup
...
- Currently emojis that are part of the label's name aren't rendered
when shown in the popup that you get when you hover over issue
references.
- This patch fixes that by rendering the emoji.
- Adds CSS to not make the emoji big in the label.
- Resolves #1531
2024-03-30 11:18:46 +01:00
Yarden Shoham
ca1c90dc83
Bump @github/relative-time-element
to v4.4.0 ( #30154 )
...
I tested and all timestamps work as before.
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
(cherry picked from commit eca4c485343069fc3e59f0dba7823cc13b5ab1d8)
2024-03-30 07:17:32 +01:00
silverwind
f77922ce4e
Update JS any PY dependencies, remove workarounds ( #30085 )
...
- Update dependencies via `make update-js update-py svg`
- Remove `postcss` workaround -
https://github.com/postcss/postcss/issues/1914
- Remove `happy-dom` workaround -
https://github.com/capricorn86/happy-dom/pull/1365 .
- Tested Katex and Asciinema
(cherry picked from commit c1ac72150885b327f56ea61273e27b16d6da5435)
2024-03-30 07:17:30 +01:00
silverwind
f8060bb5d9
Switch to happy-dom for testing ( #29948 )
...
Use `happy-dom` again in vitest as it has caught up recently to `jsdom`
in terms of features and it is a much more lightweight solution.
I encountered [one
bug](https://github.com/capricorn86/happy-dom/issues/1342 ), but it's an
easy workaround until fixed.
I regenerated the lockfile to get rid of the transitive dependencies so
that's why the diff also has some upgrades in it.
In total, this change removes 39 npm dependencies.
(cherry picked from commit 82979588f4d8699097451ebb70c56a4bdd090c52)
2024-03-26 19:04:26 +01:00
Earl Warren
892f0bb069
Merge pull request 'Update dependency katex to v0.16.10' ( #2801 ) from renovate/katex-0.x into forgejo
...
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2801
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-03-25 17:59:11 +00:00
Renovate Bot
823c173970
Update dependency katex to v0.16.10
2024-03-25 16:30:12 +00:00
Renovate Bot
d00f542651
Update dependency asciinema-player to v3.7.1
2024-03-25 15:18:44 +00:00
Yarden Shoham
61e123bdc2
Upgrade htmx
to v1.9.11 ( #29821 )
...
Also added BSD Zero Clause License to the list of allowed licenses in
webpack.
Tested various `htmx` operations. Nothing broke.
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit c00633971a4e66835fffe7cfcea0f427689cf550)
2024-03-20 08:46:30 +01:00
silverwind
1a17c39e00
Use Temporal.PlainDate
for absolute dates ( #29804 )
...
Use the upcoming
[Temporal.PlainDate](https://tc39.es/proposal-temporal/docs/plaindate.html )
via polyfill. If there is any remaining bugs in `<absolute-date>` this
will iron them out. I opted for the lightweight polyfill because both
seem to achieve our goal of localizeable absolute dates.
- With
[`@js-temporal/polyfill`](https://www.npmjs.com/package/@js-temporal/polyfill )
chunk size goes from 81.4 KiB to 274 KiB
- With
[`temporal-polyfill`](https://www.npmjs.com/package/temporal-polyfill )
chunk size goes from 81.4 KiB to 142 KiB
Also see [this
table](https://github.com/fullcalendar/temporal-polyfill?tab=readme-ov-file#comparison-with-js-temporalpolyfill )
for more comparisons of these polyfills. Soon there will be
[treeshakable
API](https://github.com/fullcalendar/temporal-polyfill?tab=readme-ov-file#tree-shakable-api )
as well which will further reduce size.
(cherry picked from commit 0d3ec8e2adfcf49329b52d74367698b62ffb3f73)
2024-03-20 08:46:29 +01:00
silverwind
5a16c9d9c0
Add <overflow-menu>
, rename webcomponents ( #29400 )
...
1. Add `<overflow-menu>` web component
2. Rename `<gitea-origin-url>` to `<origin-url>` and make filenames
match.
<img width="439" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/2fbe4ca4-110b-4ad2-8e17-c1e116ccbd74 ">
<img width="444" alt="Screenshot 2024-03-02 at 21 36 52"
src="https://github.com/go-gitea/gitea/assets/115237/aa8f786e-dc8c-4030-b12d-7cfb74bdfd6e ">
<img width="537" alt="Screenshot 2024-03-03 at 03 05 06"
src="https://github.com/go-gitea/gitea/assets/115237/fddd50aa-adf1-4b4b-bd7f-caf30c7b2245 ">
![image](https://github.com/go-gitea/gitea/assets/115237/0f43770c-834c-4a05-8e3d-d30eb8653786 )
![image](https://github.com/go-gitea/gitea/assets/115237/4b4c6bd7-843f-4f49-808f-6b3aed5e9f9a )
TODO:
- [x] Check if removal of `requestAnimationFrame` is possible to avoid
flash of content. Likely needs a `MutationObserver`.
- [x] Hide tippy when button is removed from DOM.
- [x] ~~Implement right-aligned items
(https://github.com/go-gitea/gitea/pull/28976 )~~. Not going to do it.
- [x] Clean up CSS so base element has no background and add background
via tailwind instead.
- [x] Use it for org and user page.
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 256a1eeb9a67b18c62a10f5909b584b7b220848a)
Conflicts:
options/locale/locale_en-US.ini
templates/package/content/cargo.tmpl
templates/package/content/cran.tmpl
templates/package/content/debian.tmpl
templates/package/content/maven.tmpl
2024-03-20 08:46:29 +01:00
silverwind
b73ed15209
Update JS dependences ( #29797 )
...
Update all non-excluded JS deps, tested monaco, swagger and mermaid.
(cherry picked from commit 4a377c033608d64a7a3e352d1a55955dcc988f87)
2024-03-20 08:46:29 +01:00
Rafael Heard
989dc10cf2
enable tailwind nesting ( #29746 )
...
Currently, if you implement native CSS nesting within a Vue component a
warning will appear in the terminal. It states
`Nested CSS was detected, but CSS nesting has not been configured
correctly.
Please enable a CSS nesting plugin *before* Tailwind in your
configuration.` To fix this error we need to enable the built-in
[tailwinds nesting
config](https://tailwindcss.com/docs/using-with-preprocessors#nesting ).
Example code to trigger the warning within a vue component:
```CSS
<style>
.example {
&:hover,
&:focus-visible {
color: var(--color-text);
}
& svg {
margin-right: 0.78rem;
}
}
</style>
```
---------
Co-authored-by: rafh <rafaelheard@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 03753cbc0ff68cc4eee0a65b556e6d86a8f1c63f)
2024-03-20 08:46:29 +01:00
silverwind
eadf1d4fa3
Inline the css-variables-parser
dependency ( #29571 )
...
Get rid of the `postcss@7` dependency by inlining this simple function.
(cherry picked from commit d769b664dedb5f63b73146b58b21c0a772c2630d)
2024-03-11 23:36:57 +07:00
silverwind
006d4ce6f2
Update js and py dependencies, bump python ( #29561 )
...
- Update js and py dependencies excluding `@mcaptcha/vanilla-glue`,
`eslint-plugin-array-func`
- Update stylelint config
- Require python 3.10 and use 3.12 on CI, bump setup-python as well
- Tested markdown toolbar, charts, clipboard, swagger ui, vue
(cherry picked from commit efa631aeead094267d46ea8f86e6d568f0c731e4)
Conflicts:
.github/workflows/pull-compliance.yml
does not existin in Forgejo
2024-03-06 12:10:46 +08:00
silverwind
cfda925862
Add tailwindcss ( #29357 )
...
This will get tailwindcss working on a basic level. It provides only the
utility classes, e.g. no tailwind base which we don't need because we
have our own CSS reset. Without the base, we also do not have their CSS
variables so a small amount of features do not work and I removed the
generated classes for them.
***Note for future developers: This currently uses a `tw-` prefix, so we
use it like `tw-p-3`.***
<details>
<summary>Currently added CSS, all false-positives</summary>
```
.\!visible{
visibility: visible !important
}
.visible{
visibility: visible
}
.invisible{
visibility: hidden
}
.collapse{
visibility: collapse
}
.static{
position: static
}
.\!fixed{
position: fixed !important
}
.absolute{
position: absolute
}
.relative{
position: relative
}
.sticky{
position: sticky
}
.left-10{
left: 2.5rem
}
.isolate{
isolation: isolate
}
.float-right{
float: right
}
.float-left{
float: left
}
.mr-2{
margin-right: 0.5rem
}
.mr-3{
margin-right: 0.75rem
}
.\!block{
display: block !important
}
.block{
display: block
}
.inline-block{
display: inline-block
}
.inline{
display: inline
}
.flex{
display: flex
}
.inline-flex{
display: inline-flex
}
.\!table{
display: table !important
}
.inline-table{
display: inline-table
}
.table-caption{
display: table-caption
}
.table-cell{
display: table-cell
}
.table-column{
display: table-column
}
.table-column-group{
display: table-column-group
}
.table-footer-group{
display: table-footer-group
}
.table-header-group{
display: table-header-group
}
.table-row-group{
display: table-row-group
}
.table-row{
display: table-row
}
.flow-root{
display: flow-root
}
.inline-grid{
display: inline-grid
}
.contents{
display: contents
}
.list-item{
display: list-item
}
.\!hidden{
display: none !important
}
.hidden{
display: none
}
.flex-shrink{
flex-shrink: 1
}
.shrink{
flex-shrink: 1
}
.flex-grow{
flex-grow: 1
}
.grow{
flex-grow: 1
}
.border-collapse{
border-collapse: collapse
}
.select-all{
user-select: all
}
.resize{
resize: both
}
.flex-wrap{
flex-wrap: wrap
}
.overflow-visible{
overflow: visible
}
.rounded{
border-radius: 0.25rem
}
.border{
border-width: 1px
}
.text-justify{
text-align: justify
}
.uppercase{
text-transform: uppercase
}
.lowercase{
text-transform: lowercase
}
.capitalize{
text-transform: capitalize
}
.italic{
font-style: italic
}
.text-red{
color: var(--color-red)
}
.text-shadow{
color: var(--color-shadow)
}
.underline{
text-decoration-line: underline
}
.overline{
text-decoration-line: overline
}
.line-through{
text-decoration-line: line-through
}
.outline{
outline-style: solid
}
.ease-in{
transition-timing-function: cubic-bezier(0.4, 0, 1, 1)
}
.ease-in-out{
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
}
.ease-out{
transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
}
```
</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit f4b92578b4601bc6e9b631b9a5a5f3766c27b0cb)
2024-02-26 22:30:27 +01:00
silverwind
59ab49a7eb
Add eslint-plugin-github
and fix issues ( #29201 )
...
This plugin has a few useful rules. The only thing I dislike about it is
that it pulls in a rather big number of dependencies for react-related
rules we don't use, but it can't really be avoided.
Rule docs:
https://github.com/github/eslint-plugin-github?tab=readme-ov-file#rules
(cherry picked from commit 26b17537e651fe93ef9b64f961633cb4c0b8c2c3)
2024-02-17 23:24:31 +01:00
Yarden Shoham
4f050f358a
Auto-update the system status in admin dashboard ( #29163 )
...
- Refactor the system status list into its own template
- Change the backend to return only the system status if htmx initiated
the request
- `hx-get="{{$.Link}}/system_status`: reuse the backend handler
- `hx-swap="innerHTML"`: replace the `<div>`'s innerHTML (essentially
the new template)
- `hx-trigger="every 5s"`: call every 5 seconds
- `hx-indicator=".divider"`: the `is-loading` class shouldn't be added
to the div during the request, so set it on an element it has no effect
on
- Render "Since Last GC Time" with `<relative-time>`, so we send a
timestamp
# Auto-update in action GIF
![action](https://github.com/go-gitea/gitea/assets/20454870/c6e1f220-f0fb-4460-ac3b-59f315e30e29 )
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit c70f65e83bc1876fb368fd117d342573ff18a9e8)
2024-02-17 23:24:31 +01:00
silverwind
6f159f4c1c
Update JS and PY dependencies ( #29184 )
...
- Update all excluding `@mcaptcha/vanilla-glue` and
`eslint-plugin-array-func`
- Tested pdf, chart.js, swagger
(cherry picked from commit 8f9c9d3a5fa185f4a61f71e49f15b6d5e611b44a)
2024-02-17 23:24:31 +01:00