Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

13 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
Ferdinand Thiessen 73ea7253fe
chore: Add SPDX license information and REUSE CI workflow
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-13 10:35:27 +02:00
Maksim Sukharev c3382d684c
build(vite): iterate over .ts files in all directories
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-05-06 16:43:10 +02:00
Ferdinand Thiessen 557b1ec847
fix(NcDateTime): When relative time is disabled return a string and not the reference to it
The `.value` call was missing in case of disabled relative time. This causes the string to be quoted (because of stringification of the computed value).
To prevent similar issues the file is now migrated to Typescript, also fixed some other issues discovered by type checking.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-12 21:36:21 +02:00
Grigorii K. Shartsev 44de0e6761 fix: scope component breaking NcModal and NcDateTimePickers
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-29 14:41:46 +01:00
Grigorii K. Shartsev 6434df4f7e build(vite): stringify scope version in SASS
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-29 12:18:50 +01:00
Ferdinand Thiessen 9dd5762286
enh: Split translations by components to only include needed strings in app bundles
Translations are extracted, not translated strings are discarded (fallback to english) and compressed.
On build time the translations are then injected by a vite plugin depending on the importing files so only used translations are imported.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-06 19:54:15 +01:00
Grigorii K. Shartsev 48cba09f6e feat(isMobile): add useIsMobile composable instead if IsMobileState util
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-14 06:08:34 +05:00
Ferdinand Thiessen 6b43c467f7
fix: Do not depend on uncompiled vue files as dependencies
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-08 12:21:07 +01:00
Ferdinand Thiessen 59040a9596 chore!: Migrate build of single entry points from webpack to vite
This is a breaking change as this also introduces ESM entry points for all components etc
and therfor changed the files from `.js` to `.cjs` and `.mjs` respective.

Instead of `import NcButton from '@nextcloud/vue/dist/Components/NcButton.js` use `import NcButton from '@nextcloud/vue/components/NcButton'`.

* Also fix docs for component import pattern

Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-09-14 13:25:17 +02:00
Ferdinand Thiessen d1e68c80fd fix(build): Replaced `SCOPE_VERSION` variable need to be stringified
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-16 20:25:25 +02:00
Ferdinand Thiessen 3f3e9025cc chore: Move from `@susnux/nextcloud-vite-config` to `@nextcloud/vite-config`
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-07-28 10:54:58 +02:00
Ferdinand Thiessen 70ef337008 feat: Migrate building CommonJS module entrypoint to vite
* Much faster build time
* Much smaller output asset: 400kB (vite) vs 1'020kB (webpack)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-07-12 16:17:54 +02:00
Ferdinand Thiessen 8a3037ad92 feat: Migrate module build to vite
* Webpack emitted invalid ES module code, as it still contained `require` calls which
  are undefined on ES modules
* Build time is much shorter
* Built assets are much smaller (570 kB vs 930 kB)
* Remove unneeded import

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-07-11 18:02:48 +02:00