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