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