silverwind
6e7991316c
Refactor text utility classes to Tailwind CSS ( #36703 )
...
Replace Fomantic/custom CSS text utility classes with their Tailwind
equivalents:
- `.text.<color>` compound classes → `tw-text-<color>` classes
- `.text.small` (`font-size: 0.75em`) → `tw-text-xs` (11px)
- `.text.truncate` (`overflow-x: hidden; text-overflow: ellipsis;
white-space: nowrap; display: inline-block`) → `tw-inline-block
tw-truncate`
Remove the now-unused CSS rules from `base.css` and `dashboard.css`.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-22 22:56:33 +00:00
silverwind
46d7adefe0
Enable TypeScript strictNullChecks ( #35843 )
...
A big step towards enabling strict mode in Typescript.
There was definitely a good share of potential bugs while refactoring
this. When in doubt, I opted to keep the potentially broken behaviour.
Notably, the `DOMEvent` type is gone, it was broken and we're better of
with type assertions on `e.target`.
---------
Signed-off-by: silverwind <me@silverwind.io >
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-12-03 02:13:16 +00:00
silverwind
8b16ab719c
Merge and tweak markup editor expander CSS ( #34409 )
...
- Merge the CSS for the two expanders (text-expander-element and
tribute.js) into one file
- Fix overflow issues
- Remove min-width
- Various other tweaks like borders, colors, padding, gaps.
text-expander:
<img width="645" alt="Screenshot 2025-05-09 at 02 21 24"
src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039 "
/>
tribute:
<img width="624" alt="Screenshot 2025-05-09 at 02 21 37"
src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 17:14:21 +02:00
silverwind
05e9063013
Update @github/text-expander-element, adapt type imports ( #33449 )
...
Followup to https://github.com/go-gitea/gitea/pull/33435 , upstream issue
is fixed so the imports are clean now.
2025-01-31 02:50:18 +00:00
silverwind
dc7ddaee2a
Update @github/text-expander-element to 2.9.0 ( #33435 )
...
Update and use their newly exported types. Tested, works.
The import path is a bit suboptimal, to be fixed once
https://github.com/github/text-expander-element/pull/75 is merged and
released.
Co-authored-by: Giteabot <teabot@gitea.io >
2025-01-29 23:38:53 +00:00
wxiaoguang
e663c4a7f0
Fix issue suggestion bug ( #33389 )
...
Fix #33388
2025-01-26 13:13:32 +00:00
silverwind
c7f4ca2653
Enable Typescript noImplicitAny ( #33322 )
...
Enable `noImplicitAny` and fix all issues.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-22 15:11:51 +08:00
wxiaoguang
2cb3946496
Make issue suggestion work for all editors ( #33340 )
...
And do not handle special keys when the text-expander popup exists
2025-01-21 19:33:45 +08:00
wxiaoguang
a4a121c684
Fix suggestions for issues ( #32380 )
2024-10-30 20:06:36 +00:00
Anbraten
b7fb20e73e
Suggestions for issues ( #32327 )
...
closes #16872
2024-10-29 17:20:49 +08:00
silverwind
5791a73e75
Convert frontend code to typescript ( #31559 )
...
None of the frontend js/ts files was touched besides these two commands
(edit: no longer true, I touched one file in
61105d0618
because of a deprecation that was not showing before the rename).
`tsc` currently reports 778 errors, so I have disabled it in CI as
planned.
Everything appears to work fine.
2024-07-07 15:32:30 +00:00