forked from jordanjay29/flarum-ext-summaries
-
Notifications
You must be signed in to change notification settings - Fork 7
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
1d93d14
commit c780474
Showing
16 changed files
with
84 additions
and
4 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,43 @@ | ||
import Tag from 'flarum/tags/common/models/Tag'; | ||
import SettingsPage from 'flarum/forum/components/SettingsPage'; | ||
import ItemList from 'flarum/common/utils/ItemList'; | ||
import type Mithril from 'mithril'; | ||
import EditTagModal from 'flarum/tags/admin/components/EditTagModal'; | ||
import Stream from 'flarum/common/utils/Stream'; | ||
|
||
declare module 'flarum/tags/common/models/Tag' { | ||
export default interface Tag { | ||
richExcerpts(): boolean; | ||
excerptLength(): number; | ||
} | ||
} | ||
|
||
declare module 'flarum/forum/components/SettingsPage' { | ||
export default interface SettingsPage { | ||
summariesItems(): ItemList<Mithril.Children>; | ||
showSynopsisExcerpts: Stream<boolean>; | ||
showSynopsisExcerptsOnMobile: Stream<boolean>; | ||
showSynopsisExcerptsLoading: boolean; | ||
showSynopsisExcerptsOnMobileLoading: boolean; | ||
} | ||
} | ||
|
||
declare module 'flarum/tags/admin/components/EditTagModal' { | ||
export default interface EditTagModal { | ||
richExcerpts: Stream<boolean>; | ||
excerptLength: Stream<number>; | ||
submitData(): { | ||
excerptLength: any; | ||
richExcerpts: any; | ||
name: string; | ||
slug: string; | ||
description: string; | ||
color: string; | ||
icon: string; | ||
isHidden: boolean; | ||
primary: boolean; | ||
richExcerpts: boolean; | ||
excerptLength: number; | ||
}; | ||
} | ||
} |
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,2 @@ | ||
declare const _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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default function (): void; |
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 @@ | ||
export { default as extend } from './extend'; |
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,3 @@ | ||
export default function (): { | ||
[key: string]: string; | ||
}; |
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,2 @@ | ||
declare const _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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default function addSummaryExcerpt(): void; |
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 @@ | ||
export default function (): void; |
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,18 @@ | ||
import Component, { ComponentAttrs } from 'flarum/common/Component'; | ||
import Post from 'flarum/common/models/Post'; | ||
import type Mithril from 'mithril'; | ||
export interface ExcerptAttrs extends ComponentAttrs { | ||
post: Post; | ||
length: number; | ||
richExcerpt: boolean; | ||
} | ||
export default class Excerpt extends Component<ExcerptAttrs> { | ||
post: Post; | ||
length: number; | ||
richExcerpt: boolean; | ||
oninit(vnode: Mithril.Vnode<ExcerptAttrs, this>): void; | ||
view(): JSX.Element; | ||
getContent(): string; | ||
contentRich(): string | null | undefined; | ||
contentPlain(): string | null | undefined; | ||
} |
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,4 @@ | ||
import Excerpt from './Excerpt'; | ||
export declare const components: { | ||
Excerpt: typeof Excerpt; | ||
}; |
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,2 @@ | ||
declare const _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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as extend } from './extend'; | ||
export * from './components'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.