aboutsummaryrefslogtreecommitdiffstats
path: root/package-lock.json
Commit message (Collapse)AuthorAgeFilesLines
* Update JS and PY deps, misc tweaks (#33903)silverwind9 days1-1184/+1138
| | | | | | | | | - Update all updateable dependencies - Add a few more unupgradable ones to updates blocklist - Adapt to breaking changes - Update to typescript 5.8, enable `erasableSyntaxOnly` which necessitated a change because of forbidden syntax - Misc cleanups - Tested htmx, easymde, swagger, chart.js
* Add material icons for file list (#33837)wxiaoguang2025-03-101-0/+110
|
* Update JS and PY dependencies (#33587)silverwind2025-02-161-2690/+1396
| | | | | | | | - Update all dependencies excluding `tailwindcss` and `idiomorph` - Tested citation, asciinema, pdf, swagger --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Switch to `@vitest/eslint-plugin` (#33573)silverwind2025-02-121-178/+22
| | | | | | Package has been renamed and now also provides the globals so we can replace two dependencies with one. Ref: https://github.com/vitest-dev/eslint-plugin-vitest/issues/537
* Update `@github/text-expander-element`, adapt type imports (#33449)silverwind2025-01-311-4/+4
| | | | Followup to https://github.com/go-gitea/gitea/pull/33435, upstream issue is fixed so the imports are clean now.
* Update `@github/text-expander-element` to 2.9.0 (#33435)silverwind2025-01-291-4/+4
| | | | | | | | | 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>
* Update stylelint config (#33419)silverwind2025-01-281-6/+49
| | | | | | | | | | | | - Inherit stylelint config from [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended), removed all stylelint core rule options that were either already in their config or disabled. - `no-descending-specificity` diverges from their config, seems to much work currently. - Tweaked a few rules. - Added [`stylelint-define-config`](https://github.com/stylelint-types/stylelint-define-config) so that typescript can validate the config.
* Update JS dependencies (#33359)silverwind2025-01-221-269/+719
| | | | | | Fixes: https://github.com/go-gitea/gitea/security/dependabot/88 Fixes: https://github.com/go-gitea/gitea/security/dependabot/87 Tested Katex, works as expected.
* Update JS and PY dependencies (#33249)silverwind2025-01-161-400/+508
| | | | | | - Update all JS and PY dependencies - Tested affected dependencies - Disabled `async-preventdefault` lint rule because it brought up new false-positives.
* Switch back to `vue-tsc` (#33248)silverwind2025-01-131-28/+27
| | | | It supports Typescript 5.7 now, so we can switch back to the official version.
* Fix eslint (#33002)wxiaoguang2024-12-271-162/+8
| | | | | | | Fix #32982 Related #32869 * eslint-plugin-github 5.1.x doesn't work well with eslint8 * no-undef is still needed
* Update JS dependencies (#32914)silverwind2024-12-191-1626/+508
| | | Result of `make update-js`. Tested Monaco and Math.
* Fix remaining typescript issues, enable `tsc` (#32840)silverwind2024-12-161-31/+31
| | | | | | | | | | | | Fixes 79 typescript errors. Discovered at least two bugs in `notifications.ts`, and I'm pretty sure this feature was at least partially broken and may still be, I don't really know how to test it. After this, only like ~10 typescript errors remain in the codebase but those are harder to solve. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Upgrade htmx to 2.0.4 (#32834)Yarden Shoham2024-12-141-4/+4
| | | | | | | | | Release notes: https://github.com/bigskysoftware/htmx/releases/tag/v2.0.4 Tested `Star`, `Watch`, and the admin dashboard page. All functionality remains unchanged. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Switch to `eslint-plugin-import-x` (#32790)silverwind2024-12-121-51/+43
| | | | Switch from deprecated `eslint-plugin-i` to [`eslint-plugin-import-x`](https://github.com/un-ts/eslint-plugin-import-x).
* Bump relative-time-element to v4.4.4 (#32730)Yarden Shoham2024-12-061-4/+4
| | | | | | | | | | Fix #32716 Tested, it still works. - cc @wxiaoguang for https://github.com/github/relative-time-element/pull/296 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Update dependencies, tweak eslint (#32719)silverwind2024-12-051-730/+870
| | | | | | | | | - ~~Remove `eslint-plugin-sonarjs`. I lost faith in it since they moved it to their monorepo and I can't recall the last time when this plugin raised a useful error.~~ - Add new rules from `no-jquery` - ~~Tweak typescript config to prevent temp files in root directory in certain situations~~ File is just gitignored now. - Tested all relevant dependencies
* Allow cropping an avatar before setting it (#32565)Kerwin Bryant2024-11-281-0/+7
| | | | | | | | | | | | Provide a cropping tool on the avatar editing page, allowing users to select the cropping area themselves. This way, users can decide the displayed area of the image, rather than us deciding for them. --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Giteabot <teabot@gitea.io>
* Add vue-tsc (#32601)silverwind2024-11-231-1/+139
| | | | | | As per https://vuejs.org/guide/typescript/overview#overview, typescript's `tsc` does not support importing `.vue` files from `.ts` files, so we need to use `vue-tsc` which patches in that support. Added a convenience alias `make tsc` to run it.
* Update JS and PY dependencies (#32482)silverwind2024-11-121-950/+540
| | | | | | | | Result of `make update-js update-py`. Fixes: https://github.com/go-gitea/gitea/security/dependabot/80 Fixes: https://github.com/go-gitea/gitea/security/dependabot/81 Tested build and swagger ui.
* Update JS and PY dependencies (#32388)silverwind2024-10-311-2161/+2429
| | | | | | | | | | | | | - Update all JS dependencies excluding stylelint (because of https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379). - Update all PY dependencies. - Replace `eslint-plugin-deprecation` with `@typescript-eslint/no-deprecated` rule. - Enabled `unicorn/prefer-math-min-max` and autofixed issues. - Tested all dependencies. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix absolute-date (#32375)wxiaoguang2024-10-301-16/+0
|
* Suggestions for issues (#32327)Anbraten2024-10-291-8/+15
| | | closes #16872
* Upgrade rollup to 4.24.0 (#32312)Lunny Xiao2024-10-231-94/+75
|
* Upgrade vue to 3.5.12 (#32311)Lunny Xiao2024-10-231-82/+96
|
* Upgrade htmx to 2.0.3 (#32192)Yarden Shoham2024-10-061-5/+4
| | | | | | | | | Release notes: https://github.com/bigskysoftware/htmx/releases/tag/v2.0.3 Tested `Star`, `Watch`, and the admin dashboard page. All functionality remains unchanged. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Update JS and PY dependencies (#31940)silverwind2024-08-291-419/+3706
| | | | | | | | | - `stylelint` is excluded because of deprecation warnings added in 16.8.2, depending on https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379 - `eslint-plugin-sonarjs@2` adds a lot of new rules, but I have not gotten around to reviewing them yet, so rule config is unchanged. - Fixes https://github.com/go-gitea/gitea/security/dependabot/70 - Tested code editor and contributor graph
* Upgrade micromatch to 4.0.8 (#31939)Lunny Xiao2024-08-291-4/+3
|
* Update mermaid to v11 (#31913)silverwind2024-08-251-659/+209
| | | | | | | | | | | | Update mermaid to [v11](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) and enable the new [`suppressErrorRendering` option](https://github.com/mermaid-js/mermaid/pull/4359) to ensure mermaid never renders error elements into the DOM (we have per-chart error rendering, so don't need it). Tested various chart types. BTW, I was unable to reproduce that error rendering from mermaid with `suppressErrorRendering: false` and I thought we had some CSS to hide the error element, but I could not find it, not even in git history.
* Bump relative-time-element to v4.4.3 (#31910)Yarden Shoham2024-08-241-5/+4
| | | | | All date-times work as before Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Upgrade `htmx` to `2.0.2` (#31847)Yarden Shoham2024-08-161-5/+4
| | | | | | Tested `Follow`, `Star`, `Watch`, and the admin dashboard page. All functionality remains unchanged. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Add types to various low-level functions (#31781)silverwind2024-08-101-4/+18
| | | | | | | | Adds types to various low-level modules. All changes are type-only, no runtime changes. `tsc` now reports 38 less errors. One problem was that `@types/sortablejs` does not accept promise return in its functions which triggered the linter, so I disabled the rules on those line.
* Update JS dependencies (#31766)silverwind2024-08-021-600/+900
|
* bump vue-bar-graph (#31705)techknowlogick2024-08-011-13/+124
|
* use nolyfill to remove some polyfills (#31468)techknowlogick2024-07-241-1614/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need to have polyfills down to Node v4. Some of our deps have polyfills, and don't utilize the built-in implementation if available. While this does decrease our package graph, I haven't been able to notice any decrease/increase in page load times, although that could likely be just because it's already pretty fast. Nolyfill is https://github.com/SukkaW/nolyfill updates to files generated with: ```shell npx nolyfill install npm update ``` Before this is/isn't merged, I'd be appreciative/thankful for other's insights. Edit: This isn't due to a specific individual. I am generally supportive of them and their dedication to backward compatibility. This PR is due to not needing those imports for our minimum requirements. Please don't take this PR as commentary on anyone's character. --------- Co-authored-by: silverwind <me@silverwind.io>
* Update JS dependencies (#31616)silverwind2024-07-111-835/+1880
| | | | Result of `make update-js`. Tested all dependencies. Lockfile diff is because of https://github.com/npm/cli/pull/7475.
* Convert frontend code to typescript (#31559)silverwind2024-07-071-0/+157
| | | | | | | | | | | None of the frontend js/ts files was touched besides these two commands (edit: no longer true, I touched one file in https://github.com/go-gitea/gitea/pull/31559/commits/61105d0618e285d97e95044bfb64415f364a4526 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.
* Add typescript guideline and typescript-specific eslint plugins and fix ↵silverwind2024-07-031-121/+55
| | | | | | | | issues (#31521) 1. Add some general guidelines how to write our typescript code 2. Add `@typescript-eslint/eslint-plugin`, general typescript rules 3. Add `eslint-plugin-deprecation` to detect deprecated code 4. Fix all new lint issues that came up
* Add initial typescript config and use it for eslint,vitest,playwright (#31186)silverwind2024-06-281-12/+157
| | | | | | | | | | | | | | | | | | | | This enables eslint to use the typescript parser and resolver which brings some benefits that eslint rules now have type information available and a tsconfig.json is required for the upcoming typescript migration as well. Notable changes done: - Add typescript parser and resolver - Move the vue-specific config into the root file - Enable `vue-scoped-css/enforce-style-type` rule, there was only one violation and I added a inline disable there. - Fix new lint errors that were detected because of the parser change - Update `i/no-unresolved` to remove now-unnecessary workaround for the resolver - Disable `i/no-named-as-default` as it seems to raise bogus issues in the webpack config - Change vitest config to typescript - Change playwright config to typescript - Add `eslint-plugin-playwright` and fix issues - Add `tsc` linting to `make lint-js`
* Bump htmx to 2.0.0 (#31413)Yarden Shoham2024-06-201-4/+4
| | | | | | | | | Tested Subscribe, Follow, Star, Watch, and System Status. --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Update JS dependencies, remove `eslint-plugin-jquery` (#31402)silverwind2024-06-181-454/+460
| | | | | | | | | | | | - Result of `make update-js` - Added 1 new eslint rule - Autofixed 1 new eslint issue - Remove `eslint-plugin-jquery` as `eslint-plugin-no-jquery` does all it does and is actually the maintained fork of it. - Tested all affected `dependencies` --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix dates displaying in a wrong manner when we're close to the end of the ↵Yarden Shoham2024-06-121-4/+4
| | | | | | | | | | month (#31331) I tested and all timestamps work as before. - Reference https://github.com/github/relative-time-element/pull/285 - Fixes https://github.com/go-gitea/gitea/issues/31197 Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Bump `@github/relative-time-element` to v4.4.1 (#31232)Yarden Shoham2024-06-041-4/+4
| | | | | I tested and all timestamps work as before. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Update JS dependencies (#31120)silverwind2024-05-281-315/+317
| | | | | | | - Add `eslint-plugin-no-use-extend-native` to exclude list because it requires flat config - Exclude `@github/text-expander-element` because new version has broken positioning - Tested mermaid, monaco, swagger, chartjs
* Update JS dependencies, add new eslint rules (#30840)silverwind2024-05-101-471/+644
|
* Fix activity heat map padding & locale (#30823)wxiaoguang2024-05-021-13/+13
| | | | | | | Fix #30808 --------- Co-authored-by: silverwind <me@silverwind.io>
* Rework and fix stopwatch (#30732)silverwind2024-04-301-26/+0
| | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/go-gitea/gitea/issues/30721 and overhauls the stopwatch. Time is now shown inside the "dot" icon and on both mobile and desktop. All rendering is now done by `<relative-time>`, the `pretty-ms` dependency is dropped. Desktop: <img width="557" alt="Screenshot 2024-04-29 at 22 33 27" src="https://github.com/go-gitea/gitea/assets/115237/3a46cdbf-6af2-4bf9-b07f-021348badaac"> Mobile: <img width="640" alt="Screenshot 2024-04-29 at 22 34 19" src="https://github.com/go-gitea/gitea/assets/115237/8a2beea7-bd5d-473f-8fff-66f63fd50877"> Note for tippy: Previously, tippy instances defaulted to "menu" theme, but that theme is really only meant for `.ui.menu`, so it was not optimal for the stopwatch popover. This introduces a unopinionated `default` theme that has no padding and should be suitable for all content. I reviewed all existing uses and explicitely set the desired `theme` on all of them.
* Update JS dependencies (#30713)silverwind2024-04-271-336/+333
| | | | | | | | - Update all JS dependencies - Remove [now-unnecessary](https://github.com/microsoft/monaco-editor/issues/4325) monaco workaround - Update stylelint config for new rule - Tested Monaco, Swagger UI, Mermaid
* Bump htmx version to 1.9.12 (#30711)Yarden Shoham2024-04-261-4/+4
| | | | | There are no breaking changes. I tested and everything works as before. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
* Update JS and PY deps, lock eslint and related plugins (#30452)silverwind2024-04-131-246/+231
| | | | | | | | Update all JS dependencies and lock eslint and flat-only plugins. There is at least the blocker https://github.com/SonarSource/eslint-plugin-sonarjs/issues/454 preventing us from upgrading to eslint 9. Tested API spec, charts and absolute dates.