Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to use :deep selector instead of deprecated ::v-deep #3348

Merged
merged 2 commits into from Oct 14, 2022

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Oct 5, 2022

::v-deep is deprecated as vue moved to :deep selector for vue-3 which is also available and recommended for vue 2.7.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux susnux added the 3. to review Waiting for reviews label Oct 5, 2022
@susnux
Copy link
Contributor Author

susnux commented Oct 5, 2022

Lint issue is related to: nextcloud-libraries/stylelint-config#65

Which is merged, but we need to wait for the next release (maybe 2.3.0)

@raimund-schluessler
Copy link
Contributor

Works. Can someone release a new version of https://github.com/nextcloud/stylelint-config so we can get this in?

@skjnldsv
Copy link
Contributor

skjnldsv commented Oct 14, 2022

Works. Can someone release a new version of nextcloud/stylelint-config so we can get this in?

nextcloud-libraries/stylelint-config#67

…-class

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux
Copy link
Contributor Author

susnux commented Oct 14, 2022

Works. Can someone release a new version of https://github.com/nextcloud/stylelint-config so we can get this in?

I added a commit to update the stylelint config

@skjnldsv
Copy link
Contributor

skjnldsv commented Oct 25, 2022

which is also available and recommended for vue 2.7.

hey @susnux , everything I found online seem to state that it's vue 3 only.
Do you have some ressources for this?

underfin/vite-plugin-vue2#200 (comment)
vitejs/vite#8959 (comment)

@raimund-schluessler
Copy link
Contributor

which is also available and recommended for vue 2.7.

hey @susnux , everything I found online seem to state that it's vue 3 only.

Do you have some ressources for this?

We use ::deep in the library already.

@skjnldsv
Copy link
Contributor

We use ::deep in the library already.

Yes, I saw that, weirdly, I cannot get it to work on other apps for example. See nextcloud/viewer#1420

Any clue?

@raimund-schluessler
Copy link
Contributor

We use ::deep in the library already.

Yes, I saw that, weirdly, I cannot get it to work on other apps for example. See nextcloud/viewer#1420

Any clue?

No idea, why it fails there. It does work for Tasks though:

https://github.com/nextcloud/tasks/blob/a27f0f0986ae65a5666fc1d2d139c65196f4464e/src/views/AppSidebar.vue#L896

@skjnldsv
Copy link
Contributor

No idea, why it fails there. It does work for Tasks though:

nextcloud/tasks@a27f0f0/src/views/AppSidebar.vue#L896

Have you checked the compiled css?

@raimund-schluessler
Copy link
Contributor

No idea, why it fails there. It does work for Tasks though:

nextcloud/tasks@a27f0f0/src/views/AppSidebar.vue#L896

Have you checked the compiled css?

No, I didn't indeed.
But the compiled CSS you show in the viewer PR does come from a different place, neither touched here nor there. Maybe an issue introduced with an earlier PR?

@skjnldsv
Copy link
Contributor

No, I didn't indeed.

I just did, seems alright.
I see you're one major above Viewer with the vue-loader dependency, let's see :)

@skjnldsv
Copy link
Contributor

skjnldsv commented Oct 25, 2022

Works with vue loader >= 15.10.0 ⚠️
nextcloud-libraries/webpack-vue-config#399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants