Skip to content

Commit

Permalink
Bundled output for commit b7598e9
Browse files Browse the repository at this point in the history
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
  • Loading branch information
flarum-bot committed Dec 9, 2024
1 parent b7598e9 commit 6d6b43f
Show file tree
Hide file tree
Showing 18 changed files with 88 additions and 48 deletions.
31 changes: 31 additions & 0 deletions js/dist-typings/@types/shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import 'flarum/forum/ForumApplication';
import 'flarum/common/models/User';
import 'flarum/forum/components/SettingsPage';

declare module 'flarum/forum/ForumApplication' {
import ErasureRequestsListState from '../forum/states/ErasureRequestsListState';

export default interface ForumApplication {
erasureRequests: ErasureRequestsListState;
}
}

declare module 'flarum/common/models/User' {
import User from 'flarum/common/models/User';
import ErasureRequest from '../../common/models/ErasureRequest';

export default interface User {
canModerateExports(): boolean;
anonymized(): boolean;
erasureRequest: ErasureRequest;
}
}

declare module 'flarum/forum/components/SettingsPage' {
import ItemList from 'flarum/common/utils/ItemList';
import Mithril from 'mithril';

export default interface SettingsPage {
dataItems(): ItemList<Mithril.Children>;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AdminPage, { AdminHeaderAttrs } from 'flarum/admin/components/AdminPage';
import type { IPageAttrs } from 'flarum/common/components/Page';
import type Mithril from 'mithril';
import DataType from './models/DataType';
import DataType from '../models/DataType';
export default class GdprPage<CustomAttrs extends IPageAttrs = IPageAttrs> extends AdminPage<CustomAttrs> {
gdprDataTypes: DataType[];
oninit(vnode: Mithril.Vnode<CustomAttrs, this>): void;
Expand Down
2 changes: 1 addition & 1 deletion js/dist-typings/admin/extend.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: (import("flarum/common/extenders/Model").default | import("flarum/common/extenders/Routes").default | import("flarum/common/extenders/Store").default)[];
declare const _default: (import("flarum/common/extenders/Store").default | import("flarum/common/extenders/Model").default | import("flarum/common/extenders/Routes").default | import("flarum/common/extenders/Admin").default)[];
export default _default;
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="flarum/@types/translator-icu-rich" />
import Modal, { IInternalModalAttrs } from 'flarum/common/components/Modal';
import User from 'flarum/common/models/User';
import type Mithril from 'mithril';
Expand All @@ -9,7 +8,7 @@ export default class RequestDataExportModal extends Modal<RequestDataExportModal
user: User;
oninit(vnode: Mithril.Vnode<RequestDataExportModalAttrs>): void;
className(): string;
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
title(): any[];
content(): JSX.Element;
requestExport(): void;
}
Expand Down
2 changes: 1 addition & 1 deletion js/dist-typings/common/extend.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: (import("flarum/common/extenders/Model").default | import("flarum/common/extenders/Store").default)[];
declare const _default: (import("flarum/common/extenders/Store").default | import("flarum/common/extenders/Model").default)[];
export default _default;
3 changes: 1 addition & 2 deletions js/dist-typings/forum/components/DeleteUserModal.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="flarum/@types/translator-icu-rich" />
import Modal, { IInternalModalAttrs } from 'flarum/common/components/Modal';
import User from 'flarum/common/models/User';
import type Mithril from 'mithril';
Expand All @@ -11,7 +10,7 @@ export default class DeleteUserModal extends Modal<DeleteUserModalAttrs> {
loadingDeletion: boolean;
oninit(vnode: Mithril.Vnode<DeleteUserModalAttrs>): void;
className(): string;
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
title(): any[];
content(): JSX.Element;
defaultErasure(): void;
specificErasure(mode: string): void;
Expand Down
6 changes: 3 additions & 3 deletions js/dist-typings/forum/components/ErasureRequestsDropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ interface ErasureRequestsDropdownAttrs extends IDropdownAttrs {
}
export default class ErasureRequestsDropdown extends NotificationsDropdown<ErasureRequestsDropdownAttrs> {
static initAttrs(attrs: ErasureRequestsDropdownAttrs): void;
getMenu(): JSX.Element;
getContent(): JSX.Element;
goToRoute(): void;
getUnreadCount(): number | undefined;
getNewCount(): number | undefined;
getUnreadCount(): number;
getNewCount(): number;
}
export {};
16 changes: 12 additions & 4 deletions js/dist-typings/forum/components/ErasureRequestsList.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
export default class ErasureRequestsList extends Component<any, undefined> {
constructor();
/// <reference types="mithril" />
import Component, { type ComponentAttrs } from 'flarum/common/Component';
import ItemList from 'flarum/common/utils/ItemList';
import type ErasureRequestsListState from '../states/ErasureRequestsListState';
import type ErasureRequest from '../../common/models/ErasureRequest';
export interface IErasureRequestsListAttrs extends ComponentAttrs {
state: ErasureRequestsListState;
}
export default class ErasureRequestsList<CustomAttrs extends IErasureRequestsListAttrs = IErasureRequestsListAttrs> extends Component<CustomAttrs> {
view(): JSX.Element;
showModal(request: any): void;
showModal(request: ErasureRequest): void;
controlItems(): ItemList<unknown>;
content(state: ErasureRequestsListState): JSX.Element[][] | null;
}
import Component from "flarum/common/Component";
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/// <reference types="flarum/@types/translator-icu-rich" />
import Notification from 'flarum/forum/components/Notification';
export default class ExportAvailableNotification extends Notification {
icon(): string;
href(): string;
content(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
content(): any[];
excerpt(): null;
}
13 changes: 6 additions & 7 deletions js/dist-typings/forum/components/ProcessErasureRequestModal.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
/// <reference types="flarum/@types/translator-icu-rich" />
import Modal, { IInternalModalAttrs } from 'flarum/common/components/Modal';
import type { IInternalModalAttrs } from 'flarum/common/components/Modal';
import ItemList from 'flarum/common/utils/ItemList';
import Stream from 'flarum/common/utils/Stream';
import type Mithril from 'mithril';
import ErasureRequest from 'src/common/models/ErasureRequest';
interface ProcessErasureRequestModalAttrs extends IInternalModalAttrs {
import FormModal from 'flarum/common/components/FormModal';
export interface IProcessErasureRequestModalAttrs extends IInternalModalAttrs {
request: ErasureRequest;
}
export default class ProcessErasureRequestModal extends Modal<ProcessErasureRequestModalAttrs> {
export default class ProcessErasureRequestModal<CustomAttrs extends IProcessErasureRequestModalAttrs = IProcessErasureRequestModalAttrs> extends FormModal<CustomAttrs> {
comments: Stream<string>;
loadingAnonymization: boolean;
loadingDeletion: boolean;
request: ErasureRequest;
oninit(vnode: Mithril.Vnode<ProcessErasureRequestModalAttrs>): void;
oninit(vnode: Mithril.Vnode<IProcessErasureRequestModalAttrs>): void;
className(): string;
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
title(): string | any[];
content(): JSX.Element;
fields(): ItemList<Mithril.Children>;
process(mode: string): void;
}
export {};
31 changes: 15 additions & 16 deletions js/dist-typings/forum/components/RequestErasureModal.d.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
/// <reference types="flarum/@types/translator-icu-rich" />
export default class RequestErasureModal extends Modal<import("flarum/common/components/Modal").IInternalModalAttrs, undefined> {
constructor();
oninit(vnode: any): void;
reason: any;
password: any;
title(): import("@askvortsov/rich-icu-message-formatter").NestedStringArray;
import FormModal from 'flarum/common/components/FormModal';
import ItemList from 'flarum/common/utils/ItemList';
import Stream from 'flarum/common/utils/Stream';
import type Mithril from 'mithril';
import type User from 'flarum/common/models/User';
export default class RequestErasureModal extends FormModal {
reason: Stream<string>;
password: Stream<string>;
user: User | null;
oninit(vnode: Mithril.Vnode): void;
className(): string;
title(): string | any[];
content(): JSX.Element;
fields(): ItemList<any>;
oncancel(e: any): void;
fields(): ItemList<Mithril.Children>;
oncancel(e: Event): void;
data(): {
reason: any;
status: string;
relationships: {
user: import("flarum/common/models/User").default | null;
};
};
onsubmit(e: any): void;
onsubmit(e: Event): void;
}
import Modal from "flarum/common/components/Modal";
import ItemList from "flarum/common/utils/ItemList";
2 changes: 1 addition & 1 deletion js/dist-typings/forum/extend.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: (import("flarum/common/extenders/Model").default | import("flarum/common/extenders/Routes").default | import("flarum/common/extenders/Store").default)[];
declare const _default: (import("flarum/common/extenders/Store").default | import("flarum/common/extenders/Model").default | import("flarum/common/extenders/Routes").default | import("flarum/common/extenders/Notification").default)[];
export default _default;
14 changes: 10 additions & 4 deletions js/dist-typings/forum/states/ErasureRequestsListState.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export default class ErasureRequestsListState {
loading: boolean;
requestsLoaded: boolean;
load(): void;
import PaginatedListState from 'flarum/common/states/PaginatedListState';
import type ErasureRequest from '../../common/models/ErasureRequest';
export default class ErasureRequestsListState extends PaginatedListState<ErasureRequest> {
constructor();
get type(): string;
/**
* Load flags into the application's cache if they haven't already
* been loaded.
*/
load(): Promise<void>;
}
2 changes: 1 addition & 1 deletion js/dist/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

0 comments on commit 6d6b43f

Please sign in to comment.