mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-27 08:16:20 +00:00
Upgrading deps.
This commit is contained in:
parent
156cfccf34
commit
8ba7a8da36
|
@ -38,13 +38,13 @@
|
|||
"@babel/plugin-proposal-decorators": "^7.21.5",
|
||||
"@babel/plugin-transform-runtime": "^7.21.5",
|
||||
"@babel/plugin-transform-typescript": "^7.21.5",
|
||||
"@babel/preset-env": "7.21.5",
|
||||
"@babel/preset-env": "^7.23.3",
|
||||
"@babel/preset-typescript": "^7.21.5",
|
||||
"@babel/runtime": "^7.21.5",
|
||||
"@emoji-mart/data": "^1.1.0",
|
||||
"@shortcm/qr-image": "^9.0.2",
|
||||
"autosize": "^6.0.1",
|
||||
"babel-loader": "^9.1.2",
|
||||
"babel-loader": "^9.1.3",
|
||||
"babel-plugin-inferno": "^6.6.0",
|
||||
"bootstrap": "^5.3.1",
|
||||
"check-password-strength": "^2.0.7",
|
||||
|
@ -95,12 +95,12 @@
|
|||
"tippy.js": "^6.3.7",
|
||||
"toastify-js": "^1.12.0",
|
||||
"tributejs": "^5.1.3",
|
||||
"webpack": "5.88.2",
|
||||
"webpack": "^5.89.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"webpack-node-externals": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.21.5",
|
||||
"@babel/core": "^7.23.3",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@types/autosize": "^4.0.0",
|
||||
"@types/bootstrap": "^5.2.6",
|
||||
|
|
|
@ -8,7 +8,7 @@ export class LoadingEllipses extends Component<any, LoadingEllipsesState> {
|
|||
state: LoadingEllipsesState = {
|
||||
ellipses: "...",
|
||||
};
|
||||
#interval?: NodeJS.Timer;
|
||||
#interval?: NodeJS.Timeout;
|
||||
|
||||
constructor(props: any, context: any) {
|
||||
super(props, context);
|
||||
|
|
|
@ -319,9 +319,8 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||
};
|
||||
|
||||
return {
|
||||
listCommunitiesResponse: await client.listCommunities(
|
||||
listCommunitiesForm,
|
||||
),
|
||||
listCommunitiesResponse:
|
||||
await client.listCommunities(listCommunitiesForm),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -782,9 +782,8 @@ export class Community extends Component<
|
|||
}
|
||||
|
||||
async handleTransferCommunity(form: TransferCommunity) {
|
||||
const transferCommunityRes = await HttpService.client.transferCommunity(
|
||||
form,
|
||||
);
|
||||
const transferCommunityRes =
|
||||
await HttpService.client.transferCommunity(form);
|
||||
toast(I18NextService.i18n.t("transfer_community"));
|
||||
this.updateCommunityFull(transferCommunityRes);
|
||||
}
|
||||
|
|
|
@ -235,9 +235,8 @@ export class RegistrationApplications extends Component<
|
|||
}
|
||||
|
||||
async handleApproveApplication(form: ApproveRegistrationApplication) {
|
||||
const approveRes = await HttpService.client.approveRegistrationApplication(
|
||||
form,
|
||||
);
|
||||
const approveRes =
|
||||
await HttpService.client.approveRegistrationApplication(form);
|
||||
this.setState(s => {
|
||||
if (s.appsRes.state === "success" && approveRes.state === "success") {
|
||||
s.appsRes.data.registration_applications = editRegistrationApplication(
|
||||
|
|
|
@ -601,9 +601,8 @@ export class Reports extends Component<any, ReportsState> {
|
|||
|
||||
if (amAdmin()) {
|
||||
this.setState({
|
||||
messageReportsRes: await HttpService.client.listPrivateMessageReports(
|
||||
form,
|
||||
),
|
||||
messageReportsRes:
|
||||
await HttpService.client.listPrivateMessageReports(form),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -906,9 +906,8 @@ export class Post extends Component<any, PostState> {
|
|||
}
|
||||
|
||||
async handleTransferCommunity(form: TransferCommunity) {
|
||||
const transferCommunityRes = await HttpService.client.transferCommunity(
|
||||
form,
|
||||
);
|
||||
const transferCommunityRes =
|
||||
await HttpService.client.transferCommunity(form);
|
||||
this.updateCommunityFull(transferCommunityRes);
|
||||
}
|
||||
|
||||
|
|
|
@ -439,9 +439,8 @@ export class Search extends Component<any, SearchState> {
|
|||
const resolveObjectForm: ResolveObject = {
|
||||
q: query,
|
||||
};
|
||||
resolveObjectResponse = await HttpService.silent_client.resolveObject(
|
||||
resolveObjectForm,
|
||||
);
|
||||
resolveObjectResponse =
|
||||
await HttpService.silent_client.resolveObject(resolveObjectForm);
|
||||
|
||||
// If we return this object with a state of failed, the catch-all-handler will redirect
|
||||
// to an error page, so we ignore it by covering up the error with the empty state.
|
||||
|
|
Loading…
Reference in a new issue