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

chore: fix usage of deprecated functions and adjust code style #47553

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 27, 2024

Summary

This solves 57 ESLint warnings by replacing deprecated code with @nextcloud/ libraries, as well as adding missing type information, importing jQuery instead of relying on global one, and the same with Moment.js.

Checklist

@susnux susnux added 3. to review Waiting for reviews technical debt ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Aug 27, 2024
@susnux susnux added this to the Nextcloud 31 milestone Aug 27, 2024
@susnux susnux requested review from Fenn-CS, Pytal, a team and skjnldsv and removed request for a team August 27, 2024 21:08
@@ -10,6 +10,8 @@ import {
showWarning,
} from '@nextcloud/dialogs'

/** @typedef {import('toastify-js')} Toast */

export default {
/**
* @deprecated 19.0.0 use `showSuccess` from the `@nextcloud/dialogs` package instead
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets' drop OCP.toast, it's been far over 3 years

@susnux
Copy link
Contributor Author

susnux commented Sep 19, 2024

/compile

susnux and others added 2 commits September 20, 2024 03:30
This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries,
as well as adding missing type information, importing jQuery instead of relying on global one,
and the same with Moment.js.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
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 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants