mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 17:54:23 +00:00
Upgrading deps. (#2233)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
This commit is contained in:
parent
c2bde493eb
commit
d9ce609365
|
@ -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",
|
||||
|
|
|
@ -79,8 +79,8 @@ export class CommentForm extends Component<CommentFormProps, any> {
|
|||
return typeof this.props.node === "number"
|
||||
? capitalizeFirstLetter(I18NextService.i18n.t("post"))
|
||||
: this.props.edit
|
||||
? capitalizeFirstLetter(I18NextService.i18n.t("save"))
|
||||
: capitalizeFirstLetter(I18NextService.i18n.t("reply"));
|
||||
? capitalizeFirstLetter(I18NextService.i18n.t("save"))
|
||||
: capitalizeFirstLetter(I18NextService.i18n.t("reply"));
|
||||
}
|
||||
|
||||
handleCommentSubmit(content: string, language_id?: number) {
|
||||
|
|
|
@ -1217,8 +1217,8 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
|||
return comment.removed
|
||||
? `*${I18NextService.i18n.t("removed")}*`
|
||||
: comment.deleted
|
||||
? `*${I18NextService.i18n.t("deleted")}*`
|
||||
: comment.content;
|
||||
? `*${I18NextService.i18n.t("deleted")}*`
|
||||
: comment.content;
|
||||
}
|
||||
|
||||
handleReplyClick(i: CommentNode) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -151,8 +151,8 @@ export default class TotpModal extends Component<
|
|||
type === "generate"
|
||||
? "enable_totp"
|
||||
: type === "remove"
|
||||
? "disable_totp"
|
||||
: "enter_totp_code",
|
||||
? "disable_totp"
|
||||
: "enter_totp_code",
|
||||
)}
|
||||
</h3>
|
||||
<button
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -55,8 +55,8 @@ async function handleLoginSuccess(i: Login, loginRes: LoginResponse) {
|
|||
prev
|
||||
? i.props.history.replace(prev)
|
||||
: i.props.history.action === "PUSH"
|
||||
? i.props.history.back()
|
||||
: i.props.history.replace("/");
|
||||
? i.props.history.back()
|
||||
: i.props.history.replace("/");
|
||||
|
||||
UnreadCounterService.Instance.updateAll();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
4
src/shared/utils/env/get-external-host.ts
vendored
4
src/shared/utils/env/get-external-host.ts
vendored
|
@ -7,8 +7,8 @@ export default function getExternalHost() {
|
|||
["1234", "1235"].includes(window.location.port)
|
||||
? ":8536"
|
||||
: window.location.port === ""
|
||||
? ""
|
||||
: `:${window.location.port}`
|
||||
? ""
|
||||
: `:${window.location.port}`
|
||||
}`
|
||||
: process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST || testHost;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue