-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
- Loading branch information
1 parent
b7598e9
commit 6d6b43f
Showing
18 changed files
with
88 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
js/dist-typings/admin/GdprPage.d.ts → ...st-typings/admin/components/GdprPage.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
3 changes: 1 addition & 2 deletions
3
js/dist-typings/forum/components/ExportAvailableNotification.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
js/dist-typings/forum/components/ProcessErasureRequestModal.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
31
js/dist-typings/forum/components/RequestErasureModal.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
File renamed without changes.
14 changes: 10 additions & 4 deletions
14
js/dist-typings/forum/states/ErasureRequestsListState.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.