Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Feb 8, 2024

@juliusknorr juliusknorr changed the base branch from main to renovate/nextcloud-vue-8.x February 8, 2024 16:08
@enjeck

This comment was marked as off-topic.

@juliusknorr

This comment was marked as off-topic.

@enjeck

This comment was marked as off-topic.

@juliusknorr

This comment was marked as off-topic.

@enjeck enjeck force-pushed the renovate/nextcloud-vue-8.x branch 2 times, most recently from 361c96e to 41969f4 Compare February 12, 2024 05:59
@blizzz blizzz added the 2. developing Work in progress label Feb 12, 2024
Base automatically changed from renovate/nextcloud-vue-8.x to main February 12, 2024 14:12
@juliusknorr juliusknorr force-pushed the enh/vite branch 2 times, most recently from 00d24b2 to f775f18 Compare February 12, 2024 14:39
@juliusknorr juliusknorr changed the title enh/vite Move to vite for bundling Feb 12, 2024
max-nextcloud

This comment was marked as resolved.

@max-nextcloud
Copy link
Contributor

I also noticed that tables have dark favicons for me now:

Just tried with current main with the same result. So not related to this PR.

@juliusknorr
Copy link
Member Author

Likely caused by #712 then

@juliusknorr
Copy link
Member Author

We need to decide when to merge this, currently the vite build requires nextcloud/server#36057 which is 27 only.

@juliusknorr
Copy link
Member Author

@susnux I'm having some trouble here with the npm run watch command which always exits after the first build. Is that something you've seen already? Any clue why that might happen? We just call vite --mode development build --watch

@susnux
Copy link

susnux commented Mar 12, 2024

@susnux I'm having some trouble here with the npm run watch command which always exits after the first build.

Should be fixed now: vitejs/vite#15951

@susnux
Copy link

susnux commented Jun 16, 2024

I think the ?? '' can just be removed in this case - but it would also be nice to catch such warnings in the ci or so. However i was not able to trigger that check on its own.

The warning means that the right part is never null / undefined because 'string' + variable ?? 'fallback' reads as:

  1. 'string' + variable
  2. ?? Then check the result is null or undefined
  3. Then fallback to 'fallback'.

So just brackets are missing like 'string' + (variable ?? 'fallback').

(Otherwise you might get 'stringnull' as the result)

@juliusknorr
Copy link
Member Author

juliusknorr commented Jun 18, 2024

@susnux The two issues i mentioned in person now on this PR after updating @nextcloud/dialogs

  • The file picker dialog loading fails (a quick patch for the dialogs library is below but I'm unsure if that is the proper approach)
  • Once that is patched the dialog does not return any selected file
diff --git a/lib/composables/isPublic.ts b/lib/composables/isPublic.ts
index ec89e8b..a1000ca 100644
--- a/lib/composables/isPublic.ts
+++ b/lib/composables/isPublic.ts
@@ -10,7 +10,7 @@ import { onBeforeMount, ref } from "vue"
 export const useIsPublic = () => {
        const checkIsPublic = () => (document.getElementById('isPublic') as HTMLInputElement|null)?.value === '1'

-       const isPublic = ref(true)
+       const isPublic = ref(checkIsPublic())
        onBeforeMount(() => { isPublic.value = checkIsPublic() })

        return {

@juliusknorr juliusknorr force-pushed the enh/vite branch 2 times, most recently from 823e7f5 to 6729bf7 Compare June 27, 2024 08:43
enjeck
enjeck approved these changes Jun 21, 2025
@enjeck enjeck force-pushed the enh/vite branch 5 times, most recently from 95a1201 to a19b9e0 Compare June 25, 2025 17:27
juliusknorr and others added 19 commits June 25, 2025 18:40
Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: Imports

Signed-off-by: Julius Härtl <jus@bitgrid.net>

chore: Move to new file picker api for esm compatibility

Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: Make CI pass

Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: Update file picker usage

Signed-off-by: Julius Härtl <jus@bitgrid.net>

ci: Fix cypress

Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix file picker

Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix cypress

Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: Proper css for all entrypoints

Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: Properly load styles

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
@enjeck enjeck merged commit dc301f1 into main Jun 25, 2025
71 of 77 checks passed
@enjeck enjeck deleted the enh/vite branch June 25, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress technical debt Technical issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants