import StackExchangeImporterViewController from '~/controllers/StackExchangeImportViewController.js'StackExchangeImporterViewController
Extends:
Imports from Stack Exchange
Constructor Summary
| Public Constructor | ||
| public |
constructor(container: HTMLElement, stackExchange: StackExchange) The instance container. |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public set |
Sets if importing or not |
|
| public |
|
|
| public |
questionList: HTMLElement |
|
| public |
|
|
| public |
|
|
| public |
stackExchange: StackExchange |
|
Method Summary
| Public Methods | ||
| public |
Clears all questions |
|
| public |
createOptionFor(question: Object) Creates an <option> from an SE API Question object |
|
| public |
async import() Runs the import |
|
| public |
async initialize() |
|
| public |
Normalized the body to support Axtell Markdown |
|
| public |
setClear() Clears all elements |
|
| public |
Sets this to the loading state |
|
| public |
setSearchFilter(value: string) Sets the filter on the search to a value |
|
| public |
showQuestions(posts: Object[]) Shows the questions |
|
Inherited Summary
| From class ViewController | ||
| public static |
Creates a view controller directly for all members of a class. |
|
| public static |
of(elem: string | Element): ViewController Returns a canolical VC of an element if it exists |
|
Public Constructors
public constructor(container: HTMLElement, stackExchange: StackExchange) source
The instance container. Also takes in a Stack Exchange instance
Override:
ViewController#constructorParams:
| Name | Type | Attribute | Description |
| container | HTMLElement | ||
| stackExchange | StackExchange | Must be auth'd |
Public Members
public container source
public importButton: ProgressButtonController source
public questionList: HTMLElement source
public stackExchange: StackExchange source
Public Methods
public createOptionFor(question: Object) source
Creates an <option> from an SE API Question object
Params:
| Name | Type | Attribute | Description |
| question | Object | from SE API |
public async initialize() source
public normalize(sourceMarkdown: string): string source
Normalized the body to support Axtell Markdown
Params:
| Name | Type | Attribute | Description |
| sourceMarkdown | string |
