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

Merged
merged 2 commits into from
Sep 20, 2024

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 nfebe, Pytal, a team and skjnldsv and removed request for a team August 27, 2024 21:08
@susnux susnux force-pushed the chore/cleanup-warnings branch from 7ea7d84 to 794dedd Compare September 19, 2024 12:28
@@ -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 susnux force-pushed the chore/cleanup-warnings branch from 794dedd to b84f667 Compare September 19, 2024 21:45
@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]>
@susnux susnux force-pushed the chore/cleanup-warnings branch from ba6a43b to b6facb8 Compare September 20, 2024 08:46
@susnux susnux merged commit 5a501f2 into master Sep 20, 2024
161 checks passed
@susnux susnux deleted the chore/cleanup-warnings branch September 20, 2024 11:31
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