Compare commits
No commits in common. "8cce5fc4194df038202af6a4d3e45f26e68abe31" and "39f9ecd8d39459a533a141a1bbbf106f9bda7d0b" have entirely different histories.
8cce5fc419
...
39f9ecd8d3
|
@ -0,0 +1,364 @@
|
||||||
|
/**
|
||||||
|
* Config file for API Extractor. For more info, please visit: https://api-extractor.com
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optionally specifies another JSON config file that this file extends from. This provides a way for
|
||||||
|
* standard settings to be shared across multiple projects.
|
||||||
|
*
|
||||||
|
* If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains
|
||||||
|
* the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be
|
||||||
|
* resolved using NodeJS require().
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: none
|
||||||
|
* DEFAULT VALUE: ""
|
||||||
|
*/
|
||||||
|
// "extends": "./shared/api-extractor-base.json"
|
||||||
|
// "extends": "my-package/include/api-extractor-base.json"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines the "<projectFolder>" token that can be used with other config file settings. The project folder
|
||||||
|
* typically contains the tsconfig.json and package.json config files, but the path is user-defined.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting.
|
||||||
|
*
|
||||||
|
* The default value for "projectFolder" is the token "<lookup>", which means the folder is determined by traversing
|
||||||
|
* parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder
|
||||||
|
* that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error
|
||||||
|
* will be reported.
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <lookup>
|
||||||
|
* DEFAULT VALUE: "<lookup>"
|
||||||
|
*/
|
||||||
|
// "projectFolder": "..",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor
|
||||||
|
* analyzes the symbols exported by this module.
|
||||||
|
*
|
||||||
|
* The file extension must be ".d.ts" and not ".ts".
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
*/
|
||||||
|
"mainEntryPointFilePath": "<projectFolder>/built/index.d.ts",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of NPM package names whose exports should be treated as part of this package.
|
||||||
|
*
|
||||||
|
* For example, suppose that Webpack is used to generate a distributed bundle for the project "library1",
|
||||||
|
* and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part
|
||||||
|
* of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly
|
||||||
|
* imports library2. To avoid this, we can specify:
|
||||||
|
*
|
||||||
|
* "bundledPackages": [ "library2" ],
|
||||||
|
*
|
||||||
|
* This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been
|
||||||
|
* local files for library1.
|
||||||
|
*/
|
||||||
|
"bundledPackages": [],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines how the TypeScript compiler engine will be invoked by API Extractor.
|
||||||
|
*/
|
||||||
|
"compiler": {
|
||||||
|
/**
|
||||||
|
* Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* Note: This setting will be ignored if "overrideTsconfig" is used.
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<projectFolder>/tsconfig.json"
|
||||||
|
*/
|
||||||
|
// "tsconfigFilePath": "<projectFolder>/tsconfig.json",
|
||||||
|
/**
|
||||||
|
* Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk.
|
||||||
|
* The object must conform to the TypeScript tsconfig schema:
|
||||||
|
*
|
||||||
|
* http://json.schemastore.org/tsconfig
|
||||||
|
*
|
||||||
|
* If omitted, then the tsconfig.json file will be read from the "projectFolder".
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: no overrideTsconfig section
|
||||||
|
*/
|
||||||
|
// "overrideTsconfig": {
|
||||||
|
// . . .
|
||||||
|
// }
|
||||||
|
/**
|
||||||
|
* This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended
|
||||||
|
* and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when
|
||||||
|
* dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses
|
||||||
|
* for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck.
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: false
|
||||||
|
*/
|
||||||
|
// "skipLibCheck": true,
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures how the API report file (*.api.md) will be generated.
|
||||||
|
*/
|
||||||
|
"apiReport": {
|
||||||
|
/**
|
||||||
|
* (REQUIRED) Whether to generate an API report.
|
||||||
|
*/
|
||||||
|
"enabled": true
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce
|
||||||
|
* a full file path.
|
||||||
|
*
|
||||||
|
* The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<unscopedPackageName>.api.md"
|
||||||
|
*/
|
||||||
|
// "reportFileName": "<unscopedPackageName>.api.md",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the folder where the API report file is written. The file name portion is determined by
|
||||||
|
* the "reportFileName" setting.
|
||||||
|
*
|
||||||
|
* The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy,
|
||||||
|
* e.g. for an API review.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<projectFolder>/etc/"
|
||||||
|
*/
|
||||||
|
// "reportFolder": "<projectFolder>/etc/",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the folder where the temporary report file is written. The file name portion is determined by
|
||||||
|
* the "reportFileName" setting.
|
||||||
|
*
|
||||||
|
* After the temporary file is written to disk, it is compared with the file in the "reportFolder".
|
||||||
|
* If they are different, a production build will fail.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<projectFolder>/temp/"
|
||||||
|
*/
|
||||||
|
// "reportTempFolder": "<projectFolder>/temp/"
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures how the doc model file (*.api.json) will be generated.
|
||||||
|
*/
|
||||||
|
"docModel": {
|
||||||
|
/**
|
||||||
|
* (REQUIRED) Whether to generate a doc model file.
|
||||||
|
*/
|
||||||
|
"enabled": true
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The output path for the doc model file. The file extension should be ".api.json".
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<projectFolder>/temp/<unscopedPackageName>.api.json"
|
||||||
|
*/
|
||||||
|
// "apiJsonFilePath": "<projectFolder>/temp/<unscopedPackageName>.api.json"
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures how the .d.ts rollup file will be generated.
|
||||||
|
*/
|
||||||
|
"dtsRollup": {
|
||||||
|
/**
|
||||||
|
* (REQUIRED) Whether to generate the .d.ts rollup file.
|
||||||
|
*/
|
||||||
|
"enabled": false
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the output path for a .d.ts rollup file to be generated without any trimming.
|
||||||
|
* This file will include all declarations that are exported by the main entry point.
|
||||||
|
*
|
||||||
|
* If the path is an empty string, then this file will not be written.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<projectFolder>/dist/<unscopedPackageName>.d.ts"
|
||||||
|
*/
|
||||||
|
// "untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release.
|
||||||
|
* This file will include only declarations that are marked as "@public" or "@beta".
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: ""
|
||||||
|
*/
|
||||||
|
// "betaTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-beta.d.ts",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release.
|
||||||
|
* This file will include only declarations that are marked as "@public".
|
||||||
|
*
|
||||||
|
* If the path is an empty string, then this file will not be written.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: ""
|
||||||
|
*/
|
||||||
|
// "publicTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-public.d.ts",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When a declaration is trimmed, by default it will be replaced by a code comment such as
|
||||||
|
* "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the
|
||||||
|
* declaration completely.
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: false
|
||||||
|
*/
|
||||||
|
// "omitTrimmingComments": true
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures how the tsdoc-metadata.json file will be generated.
|
||||||
|
*/
|
||||||
|
"tsdocMetadata": {
|
||||||
|
/**
|
||||||
|
* Whether to generate the tsdoc-metadata.json file.
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: true
|
||||||
|
*/
|
||||||
|
// "enabled": true,
|
||||||
|
/**
|
||||||
|
* Specifies where the TSDoc metadata file should be written.
|
||||||
|
*
|
||||||
|
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
|
||||||
|
* prepend a folder token such as "<projectFolder>".
|
||||||
|
*
|
||||||
|
* The default value is "<lookup>", which causes the path to be automatically inferred from the "tsdocMetadata",
|
||||||
|
* "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup
|
||||||
|
* falls back to "tsdoc-metadata.json" in the package folder.
|
||||||
|
*
|
||||||
|
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
|
||||||
|
* DEFAULT VALUE: "<lookup>"
|
||||||
|
*/
|
||||||
|
// "tsdocMetadataFilePath": "<projectFolder>/dist/tsdoc-metadata.json"
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies what type of newlines API Extractor should use when writing output files. By default, the output files
|
||||||
|
* will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead.
|
||||||
|
* To use the OS's default newline kind, specify "os".
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: "crlf"
|
||||||
|
*/
|
||||||
|
// "newlineKind": "crlf",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures how API Extractor reports error and warning messages produced during analysis.
|
||||||
|
*
|
||||||
|
* There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages.
|
||||||
|
*/
|
||||||
|
"messages": {
|
||||||
|
/**
|
||||||
|
* Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing
|
||||||
|
* the input .d.ts files.
|
||||||
|
*
|
||||||
|
* TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551"
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: A single "default" entry with logLevel=warning.
|
||||||
|
*/
|
||||||
|
"compilerMessageReporting": {
|
||||||
|
/**
|
||||||
|
* Configures the default routing for messages that don't match an explicit rule in this table.
|
||||||
|
*/
|
||||||
|
"default": {
|
||||||
|
/**
|
||||||
|
* Specifies whether the message should be written to the the tool's output log. Note that
|
||||||
|
* the "addToApiReportFile" property may supersede this option.
|
||||||
|
*
|
||||||
|
* Possible values: "error", "warning", "none"
|
||||||
|
*
|
||||||
|
* Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail
|
||||||
|
* and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes
|
||||||
|
* the "--local" option), the warning is displayed but the build will not fail.
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: "warning"
|
||||||
|
*/
|
||||||
|
"logLevel": "warning"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md),
|
||||||
|
* then the message will be written inside that file; otherwise, the message is instead logged according to
|
||||||
|
* the "logLevel" option.
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: false
|
||||||
|
*/
|
||||||
|
// "addToApiReportFile": false
|
||||||
|
}
|
||||||
|
|
||||||
|
// "TS2551": {
|
||||||
|
// "logLevel": "warning",
|
||||||
|
// "addToApiReportFile": true
|
||||||
|
// },
|
||||||
|
//
|
||||||
|
// . . .
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures handling of messages reported by API Extractor during its analysis.
|
||||||
|
*
|
||||||
|
* API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag"
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings
|
||||||
|
*/
|
||||||
|
"extractorMessageReporting": {
|
||||||
|
"default": {
|
||||||
|
"logLevel": "none"
|
||||||
|
// "addToApiReportFile": false
|
||||||
|
}
|
||||||
|
|
||||||
|
// "ae-extra-release-tag": {
|
||||||
|
// "logLevel": "warning",
|
||||||
|
// "addToApiReportFile": true
|
||||||
|
// },
|
||||||
|
//
|
||||||
|
// . . .
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configures handling of messages reported by the TSDoc parser when analyzing code comments.
|
||||||
|
*
|
||||||
|
* TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text"
|
||||||
|
*
|
||||||
|
* DEFAULT VALUE: A single "default" entry with logLevel=warning.
|
||||||
|
*/
|
||||||
|
"tsdocMessageReporting": {
|
||||||
|
"default": {
|
||||||
|
"logLevel": "warning"
|
||||||
|
// "addToApiReportFile": false
|
||||||
|
}
|
||||||
|
|
||||||
|
// "tsdoc-link-tag-unescaped-text": {
|
||||||
|
// "logLevel": "warning",
|
||||||
|
// "addToApiReportFile": true
|
||||||
|
// },
|
||||||
|
//
|
||||||
|
// . . .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,14 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Acct](./calckey-js.acct.md)
|
||||||
|
|
||||||
|
## Acct type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Acct = {
|
||||||
|
username: string;
|
||||||
|
host: string | null;
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,24 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [(constructor)](./calckey-js.api.apiclient._constructor_.md)
|
||||||
|
|
||||||
|
## api.APIClient.(constructor)
|
||||||
|
|
||||||
|
Constructs a new instance of the `APIClient` class
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
constructor(opts: {
|
||||||
|
origin: APIClient["origin"];
|
||||||
|
credential?: APIClient["credential"];
|
||||||
|
fetch?: APIClient["fetch"] | null | undefined;
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| opts | { origin: [APIClient](./calckey-js.api.apiclient.md)<!-- -->\["origin"\]; credential?: [APIClient](./calckey-js.api.apiclient.md)<!-- -->\["credential"\]; fetch?: [APIClient](./calckey-js.api.apiclient.md)<!-- -->\["fetch"\] \| null \| undefined; } | |
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [credential](./calckey-js.api.apiclient.credential.md)
|
||||||
|
|
||||||
|
## api.APIClient.credential property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
credential: string | null | undefined;
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [fetch](./calckey-js.api.apiclient.fetch.md)
|
||||||
|
|
||||||
|
## api.APIClient.fetch property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
fetch: FetchLike;
|
||||||
|
```
|
|
@ -0,0 +1,32 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md)
|
||||||
|
|
||||||
|
## api.APIClient class
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare class APIClient
|
||||||
|
```
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| Constructor | Modifiers | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [(constructor)(opts)](./calckey-js.api.apiclient._constructor_.md) | | Constructs a new instance of the <code>APIClient</code> class |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Modifiers | Type | Description |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| [credential](./calckey-js.api.apiclient.credential.md) | | string \| null \| undefined | |
|
||||||
|
| [fetch](./calckey-js.api.apiclient.fetch.md) | | [FetchLike](./calckey-js.api.fetchlike.md) | |
|
||||||
|
| [origin](./calckey-js.api.apiclient.origin.md) | | string | |
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
| Method | Modifiers | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [request(endpoint, params, credential)](./calckey-js.api.apiclient.request.md) | | |
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [origin](./calckey-js.api.apiclient.origin.md)
|
||||||
|
|
||||||
|
## api.APIClient.origin property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
origin: string;
|
||||||
|
```
|
|
@ -0,0 +1,57 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIClient](./calckey-js.api.apiclient.md) > [request](./calckey-js.api.apiclient.request.md)
|
||||||
|
|
||||||
|
## api.APIClient.request() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
request<E extends keyof Endpoints, P extends Endpoints[E]["req"]>(
|
||||||
|
endpoint: E,
|
||||||
|
params?: P,
|
||||||
|
credential?: string | null | undefined,
|
||||||
|
): Promise<
|
||||||
|
Endpoints[E]["res"] extends {
|
||||||
|
$switch: {
|
||||||
|
$cases: [any, any][];
|
||||||
|
$default: any;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
? IsCaseMatched<E, P, 0> extends true
|
||||||
|
? GetCaseResult<E, P, 0>
|
||||||
|
: IsCaseMatched<E, P, 1> extends true
|
||||||
|
? GetCaseResult<E, P, 1>
|
||||||
|
: IsCaseMatched<E, P, 2> extends true
|
||||||
|
? GetCaseResult<E, P, 2>
|
||||||
|
: IsCaseMatched<E, P, 3> extends true
|
||||||
|
? GetCaseResult<E, P, 3>
|
||||||
|
: IsCaseMatched<E, P, 4> extends true
|
||||||
|
? GetCaseResult<E, P, 4>
|
||||||
|
: IsCaseMatched<E, P, 5> extends true
|
||||||
|
? GetCaseResult<E, P, 5>
|
||||||
|
: IsCaseMatched<E, P, 6> extends true
|
||||||
|
? GetCaseResult<E, P, 6>
|
||||||
|
: IsCaseMatched<E, P, 7> extends true
|
||||||
|
? GetCaseResult<E, P, 7>
|
||||||
|
: IsCaseMatched<E, P, 8> extends true
|
||||||
|
? GetCaseResult<E, P, 8>
|
||||||
|
: IsCaseMatched<E, P, 9> extends true
|
||||||
|
? GetCaseResult<E, P, 9>
|
||||||
|
: Endpoints[E]["res"]["$switch"]["$default"]
|
||||||
|
: Endpoints[E]["res"]
|
||||||
|
>;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| endpoint | E | |
|
||||||
|
| params | P | _(Optional)_ |
|
||||||
|
| credential | string \| null \| undefined | _(Optional)_ |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
Promise< [Endpoints](./calckey-js.endpoints.md)<!-- -->\[E\]\["res"\] extends { $switch: { $cases: \[any, any\]\[\]; $default: any; }; } ? IsCaseMatched<E, P, 0> extends true ? GetCaseResult<E, P, 0> : IsCaseMatched<E, P, 1> extends true ? GetCaseResult<E, P, 1> : IsCaseMatched<E, P, 2> extends true ? GetCaseResult<E, P, 2> : IsCaseMatched<E, P, 3> extends true ? GetCaseResult<E, P, 3> : IsCaseMatched<E, P, 4> extends true ? GetCaseResult<E, P, 4> : IsCaseMatched<E, P, 5> extends true ? GetCaseResult<E, P, 5> : IsCaseMatched<E, P, 6> extends true ? GetCaseResult<E, P, 6> : IsCaseMatched<E, P, 7> extends true ? GetCaseResult<E, P, 7> : IsCaseMatched<E, P, 8> extends true ? GetCaseResult<E, P, 8> : IsCaseMatched<E, P, 9> extends true ? GetCaseResult<E, P, 9> : [Endpoints](./calckey-js.endpoints.md)<!-- -->\[E\]\["res"\]\["$switch"\]\["$default"\] : [Endpoints](./calckey-js.endpoints.md)<!-- -->\[E\]\["res"\] >
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [APIError](./calckey-js.api.apierror.md)
|
||||||
|
|
||||||
|
## api.APIError type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type APIError = {
|
||||||
|
id: string;
|
||||||
|
code: string;
|
||||||
|
message: string;
|
||||||
|
kind: "client" | "server";
|
||||||
|
info: Record<string, any>;
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [FetchLike](./calckey-js.api.fetchlike.md)
|
||||||
|
|
||||||
|
## api.FetchLike type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type FetchLike = (
|
||||||
|
input: string,
|
||||||
|
init?: {
|
||||||
|
method?: string;
|
||||||
|
body?: string;
|
||||||
|
credentials?: RequestCredentials;
|
||||||
|
cache?: RequestCache;
|
||||||
|
},
|
||||||
|
) => Promise<{
|
||||||
|
status: number;
|
||||||
|
json(): Promise<any>;
|
||||||
|
}>;
|
||||||
|
```
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md) > [isAPIError](./calckey-js.api.isapierror.md)
|
||||||
|
|
||||||
|
## api.isAPIError() function
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare function isAPIError(reason: any): reason is APIError;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| reason | any | |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
reason is [APIError](./calckey-js.api.apierror.md)
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [api](./calckey-js.api.md)
|
||||||
|
|
||||||
|
## api namespace
|
||||||
|
|
||||||
|
## Classes
|
||||||
|
|
||||||
|
| Class | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [APIClient](./calckey-js.api.apiclient.md) | |
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
| Function | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [isAPIError(reason)](./calckey-js.api.isapierror.md) | |
|
||||||
|
|
||||||
|
## Type Aliases
|
||||||
|
|
||||||
|
| Type Alias | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [APIError](./calckey-js.api.apierror.md) | |
|
||||||
|
| [FetchLike](./calckey-js.api.fetchlike.md) | |
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [(constructor)](./calckey-js.channelconnection._constructor_.md)
|
||||||
|
|
||||||
|
## ChannelConnection.(constructor)
|
||||||
|
|
||||||
|
Constructs a new instance of the `Connection` class
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
constructor(stream: Stream, channel: string, name?: string);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| stream | [Stream](./calckey-js.stream.md) | |
|
||||||
|
| channel | string | |
|
||||||
|
| name | string | _(Optional)_ |
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [channel](./calckey-js.channelconnection.channel.md)
|
||||||
|
|
||||||
|
## ChannelConnection.channel property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
channel: string;
|
||||||
|
```
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [dispose](./calckey-js.channelconnection.dispose.md)
|
||||||
|
|
||||||
|
## ChannelConnection.dispose() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
abstract dispose(): void;
|
||||||
|
```
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [id](./calckey-js.channelconnection.id.md)
|
||||||
|
|
||||||
|
## ChannelConnection.id property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
abstract id: string;
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [inCount](./calckey-js.channelconnection.incount.md)
|
||||||
|
|
||||||
|
## ChannelConnection.inCount property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
inCount: number;
|
||||||
|
```
|
|
@ -0,0 +1,39 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md)
|
||||||
|
|
||||||
|
## ChannelConnection class
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare abstract class Connection<
|
||||||
|
Channel extends AnyOf<Channels> = any,
|
||||||
|
> extends EventEmitter<Channel["events"]>
|
||||||
|
```
|
||||||
|
**Extends:** EventEmitter<Channel\["events"\]>
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| Constructor | Modifiers | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [(constructor)(stream, channel, name)](./calckey-js.channelconnection._constructor_.md) | | Constructs a new instance of the <code>Connection</code> class |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Modifiers | Type | Description |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| [channel](./calckey-js.channelconnection.channel.md) | | string | |
|
||||||
|
| [id](./calckey-js.channelconnection.id.md) | <code>abstract</code> | string | |
|
||||||
|
| [inCount](./calckey-js.channelconnection.incount.md) | | number | |
|
||||||
|
| [name?](./calckey-js.channelconnection.name.md) | | string | _(Optional)_ |
|
||||||
|
| [outCount](./calckey-js.channelconnection.outcount.md) | | number | |
|
||||||
|
| [stream](./calckey-js.channelconnection.stream.md) | <code>protected</code> | [Stream](./calckey-js.stream.md) | |
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
| Method | Modifiers | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [dispose()](./calckey-js.channelconnection.dispose.md) | <code>abstract</code> | |
|
||||||
|
| [send(type, body)](./calckey-js.channelconnection.send.md) | | |
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [name](./calckey-js.channelconnection.name.md)
|
||||||
|
|
||||||
|
## ChannelConnection.name property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
name?: string;
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [outCount](./calckey-js.channelconnection.outcount.md)
|
||||||
|
|
||||||
|
## ChannelConnection.outCount property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
outCount: number;
|
||||||
|
```
|
|
@ -0,0 +1,26 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [send](./calckey-js.channelconnection.send.md)
|
||||||
|
|
||||||
|
## ChannelConnection.send() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
send<T extends keyof Channel["receives"]>(
|
||||||
|
type: T,
|
||||||
|
body: Channel["receives"][T],
|
||||||
|
): void;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| type | T | |
|
||||||
|
| body | Channel\["receives"\]\[T\] | |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ChannelConnection](./calckey-js.channelconnection.md) > [stream](./calckey-js.channelconnection.stream.md)
|
||||||
|
|
||||||
|
## ChannelConnection.stream property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
protected stream: Stream;
|
||||||
|
```
|
|
@ -0,0 +1,143 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Channels](./calckey-js.channels.md)
|
||||||
|
|
||||||
|
## Channels type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Channels = {
|
||||||
|
main: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
notification: (payload: Notification) => void;
|
||||||
|
mention: (payload: Note) => void;
|
||||||
|
reply: (payload: Note) => void;
|
||||||
|
renote: (payload: Note) => void;
|
||||||
|
follow: (payload: User) => void;
|
||||||
|
followed: (payload: User) => void;
|
||||||
|
unfollow: (payload: User) => void;
|
||||||
|
meUpdated: (payload: MeDetailed) => void;
|
||||||
|
pageEvent: (payload: PageEvent) => void;
|
||||||
|
urlUploadFinished: (payload: {
|
||||||
|
marker: string;
|
||||||
|
file: DriveFile;
|
||||||
|
}) => void;
|
||||||
|
readAllNotifications: () => void;
|
||||||
|
unreadNotification: (payload: Notification) => void;
|
||||||
|
unreadMention: (payload: Note["id"]) => void;
|
||||||
|
readAllUnreadMentions: () => void;
|
||||||
|
unreadSpecifiedNote: (payload: Note["id"]) => void;
|
||||||
|
readAllUnreadSpecifiedNotes: () => void;
|
||||||
|
readAllMessagingMessages: () => void;
|
||||||
|
messagingMessage: (payload: MessagingMessage) => void;
|
||||||
|
unreadMessagingMessage: (payload: MessagingMessage) => void;
|
||||||
|
readAllAntennas: () => void;
|
||||||
|
unreadAntenna: (payload: Antenna) => void;
|
||||||
|
readAllAnnouncements: () => void;
|
||||||
|
readAllChannels: () => void;
|
||||||
|
unreadChannel: (payload: Note["id"]) => void;
|
||||||
|
myTokenRegenerated: () => void;
|
||||||
|
reversiNoInvites: () => void;
|
||||||
|
reversiInvited: (payload: FIXME) => void;
|
||||||
|
signin: (payload: FIXME) => void;
|
||||||
|
registryUpdated: (payload: {
|
||||||
|
scope?: string[];
|
||||||
|
key: string;
|
||||||
|
value: any | null;
|
||||||
|
}) => void;
|
||||||
|
driveFileCreated: (payload: DriveFile) => void;
|
||||||
|
readAntenna: (payload: Antenna) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
homeTimeline: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
note: (payload: Note) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
localTimeline: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
note: (payload: Note) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
hybridTimeline: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
note: (payload: Note) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
recommendedTimeline: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
note: (payload: Note) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
globalTimeline: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
note: (payload: Note) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
antenna: {
|
||||||
|
params: {
|
||||||
|
antennaId: Antenna["id"];
|
||||||
|
};
|
||||||
|
events: {
|
||||||
|
note: (payload: Note) => void;
|
||||||
|
};
|
||||||
|
receives: null;
|
||||||
|
};
|
||||||
|
messaging: {
|
||||||
|
params: {
|
||||||
|
otherparty?: User["id"] | null;
|
||||||
|
group?: UserGroup["id"] | null;
|
||||||
|
};
|
||||||
|
events: {
|
||||||
|
message: (payload: MessagingMessage) => void;
|
||||||
|
deleted: (payload: MessagingMessage["id"]) => void;
|
||||||
|
read: (payload: MessagingMessage["id"][]) => void;
|
||||||
|
typers: (payload: User[]) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
read: {
|
||||||
|
id: MessagingMessage["id"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
serverStats: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
stats: (payload: FIXME) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
requestLog: {
|
||||||
|
id: string | number;
|
||||||
|
length: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
queueStats: {
|
||||||
|
params: null;
|
||||||
|
events: {
|
||||||
|
stats: (payload: FIXME) => void;
|
||||||
|
};
|
||||||
|
receives: {
|
||||||
|
requestLog: {
|
||||||
|
id: string | number;
|
||||||
|
length: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [Note](./calckey-js.entities.note.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [MeDetailed](./calckey-js.entities.medetailed.md)<!-- -->, [PageEvent](./calckey-js.entities.pageevent.md)<!-- -->, [DriveFile](./calckey-js.entities.drivefile.md)<!-- -->, [MessagingMessage](./calckey-js.entities.messagingmessage.md)<!-- -->, [Antenna](./calckey-js.entities.antenna.md)<!-- -->, [UserGroup](./calckey-js.entities.usergroup.md)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Ad](./calckey-js.entities.ad.md)
|
||||||
|
|
||||||
|
## entities.Ad type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Ad = TODO;
|
||||||
|
```
|
|
@ -0,0 +1,21 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Announcement](./calckey-js.entities.announcement.md)
|
||||||
|
|
||||||
|
## entities.Announcement type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Announcement = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
updatedAt: DateString | null;
|
||||||
|
text: string;
|
||||||
|
title: string;
|
||||||
|
imageUrl: string | null;
|
||||||
|
isRead?: boolean;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Antenna](./calckey-js.entities.antenna.md)
|
||||||
|
|
||||||
|
## entities.Antenna type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Antenna = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
name: string;
|
||||||
|
keywords: string[][];
|
||||||
|
excludeKeywords: string[][];
|
||||||
|
src: "home" | "all" | "users" | "list" | "group" | "instances";
|
||||||
|
userListId: ID | null;
|
||||||
|
userGroupId: ID | null;
|
||||||
|
users: string[];
|
||||||
|
instances: string[];
|
||||||
|
caseSensitive: boolean;
|
||||||
|
notify: boolean;
|
||||||
|
withReplies: boolean;
|
||||||
|
withFile: boolean;
|
||||||
|
hasUnreadNote: boolean;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [App](./calckey-js.entities.app.md)
|
||||||
|
|
||||||
|
## entities.App type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type App = TODO;
|
||||||
|
```
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [AuthSession](./calckey-js.entities.authsession.md)
|
||||||
|
|
||||||
|
## entities.AuthSession type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type AuthSession = {
|
||||||
|
id: ID;
|
||||||
|
app: App;
|
||||||
|
token: string;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [App](./calckey-js.entities.app.md)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Blocking](./calckey-js.entities.blocking.md)
|
||||||
|
|
||||||
|
## entities.Blocking type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Blocking = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
blockeeId: User["id"];
|
||||||
|
blockee: UserDetailed;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [UserDetailed](./calckey-js.entities.userdetailed.md)
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Channel](./calckey-js.entities.channel.md)
|
||||||
|
|
||||||
|
## entities.Channel type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Channel = {
|
||||||
|
id: ID;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Clip](./calckey-js.entities.clip.md)
|
||||||
|
|
||||||
|
## entities.Clip type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Clip = TODO;
|
||||||
|
```
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [CustomEmoji](./calckey-js.entities.customemoji.md)
|
||||||
|
|
||||||
|
## entities.CustomEmoji type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type CustomEmoji = {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
url: string;
|
||||||
|
category: string;
|
||||||
|
aliases: string[];
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DateString](./calckey-js.entities.datestring.md)
|
||||||
|
|
||||||
|
## entities.DateString type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type DateString = string;
|
||||||
|
```
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md)
|
||||||
|
|
||||||
|
## entities.DetailedInstanceMetadata type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type DetailedInstanceMetadata = LiteInstanceMetadata & {
|
||||||
|
features: Record<string, any>;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md)
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DriveFile](./calckey-js.entities.drivefile.md)
|
||||||
|
|
||||||
|
## entities.DriveFile type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type DriveFile = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
isSensitive: boolean;
|
||||||
|
name: string;
|
||||||
|
thumbnailUrl: string;
|
||||||
|
url: string;
|
||||||
|
type: string;
|
||||||
|
size: number;
|
||||||
|
md5: string;
|
||||||
|
blurhash: string;
|
||||||
|
comment: string | null;
|
||||||
|
properties: Record<string, any>;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [DriveFolder](./calckey-js.entities.drivefolder.md)
|
||||||
|
|
||||||
|
## entities.DriveFolder type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type DriveFolder = TODO;
|
||||||
|
```
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Following](./calckey-js.entities.following.md)
|
||||||
|
|
||||||
|
## entities.Following type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Following = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
followerId: User["id"];
|
||||||
|
followeeId: User["id"];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [FollowingFolloweePopulated](./calckey-js.entities.followingfolloweepopulated.md)
|
||||||
|
|
||||||
|
## entities.FollowingFolloweePopulated type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type FollowingFolloweePopulated = Following & {
|
||||||
|
followee: UserDetailed;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [Following](./calckey-js.entities.following.md)<!-- -->, [UserDetailed](./calckey-js.entities.userdetailed.md)
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [FollowingFollowerPopulated](./calckey-js.entities.followingfollowerpopulated.md)
|
||||||
|
|
||||||
|
## entities.FollowingFollowerPopulated type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type FollowingFollowerPopulated = Following & {
|
||||||
|
follower: UserDetailed;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [Following](./calckey-js.entities.following.md)<!-- -->, [UserDetailed](./calckey-js.entities.userdetailed.md)
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [FollowRequest](./calckey-js.entities.followrequest.md)
|
||||||
|
|
||||||
|
## entities.FollowRequest type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type FollowRequest = {
|
||||||
|
id: ID;
|
||||||
|
follower: User;
|
||||||
|
followee: User;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [User](./calckey-js.entities.user.md)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [GalleryPost](./calckey-js.entities.gallerypost.md)
|
||||||
|
|
||||||
|
## entities.GalleryPost type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type GalleryPost = TODO;
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [ID](./calckey-js.entities.id.md)
|
||||||
|
|
||||||
|
## entities.ID type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ID = string;
|
||||||
|
```
|
|
@ -0,0 +1,40 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Instance](./calckey-js.entities.instance.md)
|
||||||
|
|
||||||
|
## entities.Instance type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Instance = {
|
||||||
|
id: ID;
|
||||||
|
caughtAt: DateString;
|
||||||
|
host: string;
|
||||||
|
usersCount: number;
|
||||||
|
notesCount: number;
|
||||||
|
followingCount: number;
|
||||||
|
followersCount: number;
|
||||||
|
driveUsage: number;
|
||||||
|
driveFiles: number;
|
||||||
|
latestRequestSentAt: DateString | null;
|
||||||
|
latestStatus: number | null;
|
||||||
|
latestRequestReceivedAt: DateString | null;
|
||||||
|
lastCommunicatedAt: DateString;
|
||||||
|
isNotResponding: boolean;
|
||||||
|
isSuspended: boolean;
|
||||||
|
softwareName: string | null;
|
||||||
|
softwareVersion: string | null;
|
||||||
|
openRegistrations: boolean | null;
|
||||||
|
name: string | null;
|
||||||
|
description: string | null;
|
||||||
|
maintainerName: string | null;
|
||||||
|
maintainerEmail: string | null;
|
||||||
|
iconUrl: string | null;
|
||||||
|
faviconUrl: string | null;
|
||||||
|
themeColor: string | null;
|
||||||
|
infoUpdatedAt: DateString | null;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [InstanceMetadata](./calckey-js.entities.instancemetadata.md)
|
||||||
|
|
||||||
|
## entities.InstanceMetadata type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type InstanceMetadata =
|
||||||
|
| LiteInstanceMetadata
|
||||||
|
| DetailedInstanceMetadata;
|
||||||
|
```
|
||||||
|
**References:** [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md)<!-- -->, [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md)
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md)
|
||||||
|
|
||||||
|
## entities.LiteInstanceMetadata type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type LiteInstanceMetadata = {
|
||||||
|
maintainerName: string | null;
|
||||||
|
maintainerEmail: string | null;
|
||||||
|
version: string;
|
||||||
|
name: string | null;
|
||||||
|
uri: string;
|
||||||
|
description: string | null;
|
||||||
|
tosUrl: string | null;
|
||||||
|
disableRegistration: boolean;
|
||||||
|
disableLocalTimeline: boolean;
|
||||||
|
disableRecommendedTimeline: boolean;
|
||||||
|
disableGlobalTimeline: boolean;
|
||||||
|
driveCapacityPerLocalUserMb: number;
|
||||||
|
driveCapacityPerRemoteUserMb: number;
|
||||||
|
enableHcaptcha: boolean;
|
||||||
|
hcaptchaSiteKey: string | null;
|
||||||
|
enableRecaptcha: boolean;
|
||||||
|
recaptchaSiteKey: string | null;
|
||||||
|
swPublickey: string | null;
|
||||||
|
maxNoteTextLength: number;
|
||||||
|
enableEmail: boolean;
|
||||||
|
enableTwitterIntegration: boolean;
|
||||||
|
enableGithubIntegration: boolean;
|
||||||
|
enableDiscordIntegration: boolean;
|
||||||
|
enableServiceWorker: boolean;
|
||||||
|
emojis: CustomEmoji[];
|
||||||
|
ads: {
|
||||||
|
id: ID;
|
||||||
|
ratio: number;
|
||||||
|
place: string;
|
||||||
|
url: string;
|
||||||
|
imageUrl: string;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [CustomEmoji](./calckey-js.entities.customemoji.md)<!-- -->, [ID](./calckey-js.entities.id.md)
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md)
|
||||||
|
|
||||||
|
## entities namespace
|
||||||
|
|
||||||
|
## Type Aliases
|
||||||
|
|
||||||
|
| Type Alias | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [Ad](./calckey-js.entities.ad.md) | |
|
||||||
|
| [Announcement](./calckey-js.entities.announcement.md) | |
|
||||||
|
| [Antenna](./calckey-js.entities.antenna.md) | |
|
||||||
|
| [App](./calckey-js.entities.app.md) | |
|
||||||
|
| [AuthSession](./calckey-js.entities.authsession.md) | |
|
||||||
|
| [Blocking](./calckey-js.entities.blocking.md) | |
|
||||||
|
| [Channel](./calckey-js.entities.channel.md) | |
|
||||||
|
| [Clip](./calckey-js.entities.clip.md) | |
|
||||||
|
| [CustomEmoji](./calckey-js.entities.customemoji.md) | |
|
||||||
|
| [DateString](./calckey-js.entities.datestring.md) | |
|
||||||
|
| [DetailedInstanceMetadata](./calckey-js.entities.detailedinstancemetadata.md) | |
|
||||||
|
| [DriveFile](./calckey-js.entities.drivefile.md) | |
|
||||||
|
| [DriveFolder](./calckey-js.entities.drivefolder.md) | |
|
||||||
|
| [Following](./calckey-js.entities.following.md) | |
|
||||||
|
| [FollowingFolloweePopulated](./calckey-js.entities.followingfolloweepopulated.md) | |
|
||||||
|
| [FollowingFollowerPopulated](./calckey-js.entities.followingfollowerpopulated.md) | |
|
||||||
|
| [FollowRequest](./calckey-js.entities.followrequest.md) | |
|
||||||
|
| [GalleryPost](./calckey-js.entities.gallerypost.md) | |
|
||||||
|
| [ID](./calckey-js.entities.id.md) | |
|
||||||
|
| [Instance](./calckey-js.entities.instance.md) | |
|
||||||
|
| [InstanceMetadata](./calckey-js.entities.instancemetadata.md) | |
|
||||||
|
| [LiteInstanceMetadata](./calckey-js.entities.liteinstancemetadata.md) | |
|
||||||
|
| [MeDetailed](./calckey-js.entities.medetailed.md) | |
|
||||||
|
| [MessagingMessage](./calckey-js.entities.messagingmessage.md) | |
|
||||||
|
| [Note](./calckey-js.entities.note.md) | |
|
||||||
|
| [NoteFavorite](./calckey-js.entities.notefavorite.md) | |
|
||||||
|
| [NoteReaction](./calckey-js.entities.notereaction.md) | |
|
||||||
|
| [Notification](./calckey-js.entities.notification.md) | |
|
||||||
|
| [OriginType](./calckey-js.entities.origintype.md) | |
|
||||||
|
| [Page](./calckey-js.entities.page.md) | |
|
||||||
|
| [PageEvent](./calckey-js.entities.pageevent.md) | |
|
||||||
|
| [ServerInfo](./calckey-js.entities.serverinfo.md) | |
|
||||||
|
| [Signin](./calckey-js.entities.signin.md) | |
|
||||||
|
| [Stats](./calckey-js.entities.stats.md) | |
|
||||||
|
| [User](./calckey-js.entities.user.md) | |
|
||||||
|
| [UserDetailed](./calckey-js.entities.userdetailed.md) | |
|
||||||
|
| [UserGroup](./calckey-js.entities.usergroup.md) | |
|
||||||
|
| [UserList](./calckey-js.entities.userlist.md) | |
|
||||||
|
| [UserLite](./calckey-js.entities.userlite.md) | |
|
||||||
|
| [UserSorting](./calckey-js.entities.usersorting.md) | |
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [MeDetailed](./calckey-js.entities.medetailed.md)
|
||||||
|
|
||||||
|
## entities.MeDetailed type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type MeDetailed = UserDetailed & {
|
||||||
|
avatarId: DriveFile["id"];
|
||||||
|
bannerId: DriveFile["id"];
|
||||||
|
autoAcceptFollowed: boolean;
|
||||||
|
alwaysMarkNsfw: boolean;
|
||||||
|
carefulBot: boolean;
|
||||||
|
emailNotificationTypes: string[];
|
||||||
|
hasPendingReceivedFollowRequest: boolean;
|
||||||
|
hasUnreadAnnouncement: boolean;
|
||||||
|
hasUnreadAntenna: boolean;
|
||||||
|
hasUnreadChannel: boolean;
|
||||||
|
hasUnreadMentions: boolean;
|
||||||
|
hasUnreadMessagingMessage: boolean;
|
||||||
|
hasUnreadNotification: boolean;
|
||||||
|
hasUnreadSpecifiedNotes: boolean;
|
||||||
|
hideOnlineStatus: boolean;
|
||||||
|
injectFeaturedNote: boolean;
|
||||||
|
integrations: Record<string, any>;
|
||||||
|
isDeleted: boolean;
|
||||||
|
isExplorable: boolean;
|
||||||
|
mutedWords: string[][];
|
||||||
|
mutingNotificationTypes: string[];
|
||||||
|
noCrawle: boolean;
|
||||||
|
preventAiLearning: boolean;
|
||||||
|
receiveAnnouncementEmail: boolean;
|
||||||
|
usePasswordLessLogin: boolean;
|
||||||
|
[other: string]: any;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [UserDetailed](./calckey-js.entities.userdetailed.md)<!-- -->, [DriveFile](./calckey-js.entities.drivefile.md)
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [MessagingMessage](./calckey-js.entities.messagingmessage.md)
|
||||||
|
|
||||||
|
## entities.MessagingMessage type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type MessagingMessage = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
file: DriveFile | null;
|
||||||
|
fileId: DriveFile["id"] | null;
|
||||||
|
isRead: boolean;
|
||||||
|
reads: User["id"][];
|
||||||
|
text: string | null;
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
recipient?: User | null;
|
||||||
|
recipientId: User["id"] | null;
|
||||||
|
group?: UserGroup | null;
|
||||||
|
groupId: UserGroup["id"] | null;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [DriveFile](./calckey-js.entities.drivefile.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [UserGroup](./calckey-js.entities.usergroup.md)
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Note](./calckey-js.entities.note.md)
|
||||||
|
|
||||||
|
## entities.Note type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Note = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
text: string | null;
|
||||||
|
cw: string | null;
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
reply?: Note;
|
||||||
|
replyId: Note["id"];
|
||||||
|
renote?: Note;
|
||||||
|
renoteId: Note["id"];
|
||||||
|
files: DriveFile[];
|
||||||
|
fileIds: DriveFile["id"][];
|
||||||
|
visibility: "public" | "home" | "followers" | "specified";
|
||||||
|
visibleUserIds?: User["id"][];
|
||||||
|
localOnly?: boolean;
|
||||||
|
channel?: Channel["id"];
|
||||||
|
myReaction?: string;
|
||||||
|
reactions: Record<string, number>;
|
||||||
|
renoteCount: number;
|
||||||
|
repliesCount: number;
|
||||||
|
poll?: {
|
||||||
|
expiresAt: DateString | null;
|
||||||
|
multiple: boolean;
|
||||||
|
choices: {
|
||||||
|
isVoted: boolean;
|
||||||
|
text: string;
|
||||||
|
votes: number;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
emojis: {
|
||||||
|
name: string;
|
||||||
|
url: string;
|
||||||
|
}[];
|
||||||
|
uri?: string;
|
||||||
|
url?: string;
|
||||||
|
updatedAt?: DateString;
|
||||||
|
isHidden?: boolean;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [Note](./calckey-js.entities.note.md)<!-- -->, [DriveFile](./calckey-js.entities.drivefile.md)<!-- -->, [Channel](./calckey-js.entities.channel.md)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [NoteFavorite](./calckey-js.entities.notefavorite.md)
|
||||||
|
|
||||||
|
## entities.NoteFavorite type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type NoteFavorite = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
noteId: Note["id"];
|
||||||
|
note: Note;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [Note](./calckey-js.entities.note.md)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [NoteReaction](./calckey-js.entities.notereaction.md)
|
||||||
|
|
||||||
|
## entities.NoteReaction type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type NoteReaction = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
user: UserLite;
|
||||||
|
type: string;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [UserLite](./calckey-js.entities.userlite.md)
|
||||||
|
|
|
@ -0,0 +1,82 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Notification](./calckey-js.entities.notification.md)
|
||||||
|
|
||||||
|
## entities.Notification type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Notification = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
isRead: boolean;
|
||||||
|
} & (
|
||||||
|
| {
|
||||||
|
type: "reaction";
|
||||||
|
reaction: string;
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
note: Note;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "reply";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
note: Note;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "renote";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
note: Note;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "quote";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
note: Note;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "mention";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
note: Note;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "pollVote";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
note: Note;
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "follow";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "followRequestAccepted";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "receiveFollowRequest";
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "groupInvited";
|
||||||
|
invitation: UserGroup;
|
||||||
|
user: User;
|
||||||
|
userId: User["id"];
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "app";
|
||||||
|
header?: string | null;
|
||||||
|
body: string;
|
||||||
|
icon?: string | null;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [Note](./calckey-js.entities.note.md)<!-- -->, [UserGroup](./calckey-js.entities.usergroup.md)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [OriginType](./calckey-js.entities.origintype.md)
|
||||||
|
|
||||||
|
## entities.OriginType type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type OriginType = "combined" | "local" | "remote";
|
||||||
|
```
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Page](./calckey-js.entities.page.md)
|
||||||
|
|
||||||
|
## entities.Page type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Page = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
updatedAt: DateString;
|
||||||
|
userId: User["id"];
|
||||||
|
user: User;
|
||||||
|
content: Record<string, any>[];
|
||||||
|
variables: Record<string, any>[];
|
||||||
|
title: string;
|
||||||
|
name: string;
|
||||||
|
summary: string | null;
|
||||||
|
hideTitleWhenPinned: boolean;
|
||||||
|
alignCenter: boolean;
|
||||||
|
font: string;
|
||||||
|
script: string;
|
||||||
|
eyeCatchingImageId: DriveFile["id"] | null;
|
||||||
|
eyeCatchingImage: DriveFile | null;
|
||||||
|
attachedFiles: any;
|
||||||
|
likedCount: number;
|
||||||
|
isLiked?: boolean;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [DriveFile](./calckey-js.entities.drivefile.md)
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [PageEvent](./calckey-js.entities.pageevent.md)
|
||||||
|
|
||||||
|
## entities.PageEvent type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type PageEvent = {
|
||||||
|
pageId: Page["id"];
|
||||||
|
event: string;
|
||||||
|
var: any;
|
||||||
|
userId: User["id"];
|
||||||
|
user: User;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [Page](./calckey-js.entities.page.md)<!-- -->, [User](./calckey-js.entities.user.md)
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [ServerInfo](./calckey-js.entities.serverinfo.md)
|
||||||
|
|
||||||
|
## entities.ServerInfo type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type ServerInfo = {
|
||||||
|
machine: string;
|
||||||
|
cpu: {
|
||||||
|
model: string;
|
||||||
|
cores: number;
|
||||||
|
};
|
||||||
|
mem: {
|
||||||
|
total: number;
|
||||||
|
};
|
||||||
|
fs: {
|
||||||
|
total: number;
|
||||||
|
used: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Signin](./calckey-js.entities.signin.md)
|
||||||
|
|
||||||
|
## entities.Signin type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Signin = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
ip: string;
|
||||||
|
headers: Record<string, any>;
|
||||||
|
success: boolean;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Stats](./calckey-js.entities.stats.md)
|
||||||
|
|
||||||
|
## entities.Stats type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type Stats = {
|
||||||
|
notesCount: number;
|
||||||
|
originalNotesCount: number;
|
||||||
|
usersCount: number;
|
||||||
|
originalUsersCount: number;
|
||||||
|
instances: number;
|
||||||
|
driveUsageLocal: number;
|
||||||
|
driveUsageRemote: number;
|
||||||
|
};
|
||||||
|
```
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [User](./calckey-js.entities.user.md)
|
||||||
|
|
||||||
|
## entities.User type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type User = UserLite | UserDetailed;
|
||||||
|
```
|
||||||
|
**References:** [UserLite](./calckey-js.entities.userlite.md)<!-- -->, [UserDetailed](./calckey-js.entities.userdetailed.md)
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserDetailed](./calckey-js.entities.userdetailed.md)
|
||||||
|
|
||||||
|
## entities.UserDetailed type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type UserDetailed = UserLite & {
|
||||||
|
bannerBlurhash: string | null;
|
||||||
|
bannerColor: string | null;
|
||||||
|
bannerUrl: string | null;
|
||||||
|
birthday: string | null;
|
||||||
|
createdAt: DateString;
|
||||||
|
description: string | null;
|
||||||
|
ffVisibility: "public" | "followers" | "private";
|
||||||
|
fields: {
|
||||||
|
name: string;
|
||||||
|
value: string;
|
||||||
|
}[];
|
||||||
|
followersCount: number;
|
||||||
|
followingCount: number;
|
||||||
|
hasPendingFollowRequestFromYou: boolean;
|
||||||
|
hasPendingFollowRequestToYou: boolean;
|
||||||
|
isAdmin: boolean;
|
||||||
|
isBlocked: boolean;
|
||||||
|
isBlocking: boolean;
|
||||||
|
isBot: boolean;
|
||||||
|
isCat: boolean;
|
||||||
|
isFollowed: boolean;
|
||||||
|
isFollowing: boolean;
|
||||||
|
isLocked: boolean;
|
||||||
|
isModerator: boolean;
|
||||||
|
isMuted: boolean;
|
||||||
|
isRenoteMuted: boolean;
|
||||||
|
isSilenced: boolean;
|
||||||
|
isSuspended: boolean;
|
||||||
|
lang: string | null;
|
||||||
|
lastFetchedAt?: DateString;
|
||||||
|
location: string | null;
|
||||||
|
notesCount: number;
|
||||||
|
pinnedNoteIds: ID[];
|
||||||
|
pinnedNotes: Note[];
|
||||||
|
pinnedPage: Page | null;
|
||||||
|
pinnedPageId: string | null;
|
||||||
|
publicReactions: boolean;
|
||||||
|
securityKeys: boolean;
|
||||||
|
twoFactorEnabled: boolean;
|
||||||
|
updatedAt: DateString | null;
|
||||||
|
uri: string | null;
|
||||||
|
url: string | null;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [UserLite](./calckey-js.entities.userlite.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [ID](./calckey-js.entities.id.md)<!-- -->, [Note](./calckey-js.entities.note.md)<!-- -->, [Page](./calckey-js.entities.page.md)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserGroup](./calckey-js.entities.usergroup.md)
|
||||||
|
|
||||||
|
## entities.UserGroup type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type UserGroup = TODO;
|
||||||
|
```
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserList](./calckey-js.entities.userlist.md)
|
||||||
|
|
||||||
|
## entities.UserList type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type UserList = {
|
||||||
|
id: ID;
|
||||||
|
createdAt: DateString;
|
||||||
|
name: string;
|
||||||
|
userIds: User["id"][];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserLite](./calckey-js.entities.userlite.md)
|
||||||
|
|
||||||
|
## entities.UserLite type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type UserLite = {
|
||||||
|
id: ID;
|
||||||
|
username: string;
|
||||||
|
host: string | null;
|
||||||
|
name: string;
|
||||||
|
onlineStatus: "online" | "active" | "offline" | "unknown";
|
||||||
|
avatarUrl: string;
|
||||||
|
avatarBlurhash: string;
|
||||||
|
alsoKnownAs: string[];
|
||||||
|
movedToUri: any;
|
||||||
|
emojis: {
|
||||||
|
name: string;
|
||||||
|
url: string;
|
||||||
|
}[];
|
||||||
|
instance?: {
|
||||||
|
name: Instance["name"];
|
||||||
|
softwareName: Instance["softwareName"];
|
||||||
|
softwareVersion: Instance["softwareVersion"];
|
||||||
|
iconUrl: Instance["iconUrl"];
|
||||||
|
faviconUrl: Instance["faviconUrl"];
|
||||||
|
themeColor: Instance["themeColor"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [Instance](./calckey-js.entities.instance.md)
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [UserSorting](./calckey-js.entities.usersorting.md)
|
||||||
|
|
||||||
|
## entities.UserSorting type
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export declare type UserSorting =
|
||||||
|
| "+follower"
|
||||||
|
| "-follower"
|
||||||
|
| "+createdAt"
|
||||||
|
| "-createdAt"
|
||||||
|
| "+updatedAt"
|
||||||
|
| "-updatedAt";
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [ffVisibility](./calckey-js.ffvisibility.md)
|
||||||
|
|
||||||
|
## ffVisibility variable
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
ffVisibility: readonly ["public", "followers", "private"]
|
||||||
|
```
|
|
@ -0,0 +1,43 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md)
|
||||||
|
|
||||||
|
## calckey-js package
|
||||||
|
|
||||||
|
## Classes
|
||||||
|
|
||||||
|
| Class | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [Stream](./calckey-js.stream.md) | |
|
||||||
|
|
||||||
|
## Abstract Classes
|
||||||
|
|
||||||
|
| Abstract Class | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [ChannelConnection](./calckey-js.channelconnection.md) | |
|
||||||
|
|
||||||
|
## Namespaces
|
||||||
|
|
||||||
|
| Namespace | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [api](./calckey-js.api.md) | |
|
||||||
|
| [entities](./calckey-js.entities.md) | |
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [ffVisibility](./calckey-js.ffvisibility.md) | |
|
||||||
|
| [mutedNoteReasons](./calckey-js.mutednotereasons.md) | |
|
||||||
|
| [noteVisibilities](./calckey-js.notevisibilities.md) | |
|
||||||
|
| [notificationTypes](./calckey-js.notificationtypes.md) | |
|
||||||
|
| [permissions](./calckey-js.permissions.md) | |
|
||||||
|
|
||||||
|
## Type Aliases
|
||||||
|
|
||||||
|
| Type Alias | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [Acct](./calckey-js.acct.md) | |
|
||||||
|
| [Channels](./calckey-js.channels.md) | |
|
||||||
|
| [Endpoints](./calckey-js.endpoints.md) | |
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [mutedNoteReasons](./calckey-js.mutednotereasons.md)
|
||||||
|
|
||||||
|
## mutedNoteReasons variable
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
mutedNoteReasons: readonly [
|
||||||
|
"word",
|
||||||
|
"manual",
|
||||||
|
"spam",
|
||||||
|
"other",
|
||||||
|
]
|
||||||
|
```
|
|
@ -0,0 +1,16 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [noteVisibilities](./calckey-js.notevisibilities.md)
|
||||||
|
|
||||||
|
## noteVisibilities variable
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
noteVisibilities: readonly [
|
||||||
|
"public",
|
||||||
|
"home",
|
||||||
|
"followers",
|
||||||
|
"specified",
|
||||||
|
]
|
||||||
|
```
|
|
@ -0,0 +1,24 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [notificationTypes](./calckey-js.notificationtypes.md)
|
||||||
|
|
||||||
|
## notificationTypes variable
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
notificationTypes: readonly [
|
||||||
|
"follow",
|
||||||
|
"mention",
|
||||||
|
"reply",
|
||||||
|
"renote",
|
||||||
|
"quote",
|
||||||
|
"reaction",
|
||||||
|
"pollVote",
|
||||||
|
"pollEnded",
|
||||||
|
"receiveFollowRequest",
|
||||||
|
"followRequestAccepted",
|
||||||
|
"groupInvited",
|
||||||
|
"app",
|
||||||
|
]
|
||||||
|
```
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [permissions](./calckey-js.permissions.md)
|
||||||
|
|
||||||
|
## permissions variable
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
permissions: string[]
|
||||||
|
```
|
|
@ -0,0 +1,30 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [(constructor)](./calckey-js.stream._constructor_.md)
|
||||||
|
|
||||||
|
## Stream.(constructor)
|
||||||
|
|
||||||
|
Constructs a new instance of the `Stream` class
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
constructor(
|
||||||
|
origin: string,
|
||||||
|
user: {
|
||||||
|
token: string;
|
||||||
|
} | null,
|
||||||
|
options?: {
|
||||||
|
WebSocket?: any;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| origin | string | |
|
||||||
|
| user | { token: string; } \| null | |
|
||||||
|
| options | { WebSocket?: any; } | _(Optional)_ |
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [close](./calckey-js.stream.close.md)
|
||||||
|
|
||||||
|
## Stream.close() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
close(): void;
|
||||||
|
```
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [disconnectToChannel](./calckey-js.stream.disconnecttochannel.md)
|
||||||
|
|
||||||
|
## Stream.disconnectToChannel() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
disconnectToChannel(connection: NonSharedConnection): void;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| connection | NonSharedConnection | |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md)
|
||||||
|
|
||||||
|
## Stream class
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
export default class Stream extends EventEmitter<StreamEvents>
|
||||||
|
```
|
||||||
|
**Extends:** EventEmitter<StreamEvents>
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
|
||||||
|
| Constructor | Modifiers | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [(constructor)(origin, user, options)](./calckey-js.stream._constructor_.md) | | Constructs a new instance of the <code>Stream</code> class |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Property | Modifiers | Type | Description |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| [state](./calckey-js.stream.state.md) | | "initializing" \| "reconnecting" \| "connected" | |
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
| Method | Modifiers | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| [close()](./calckey-js.stream.close.md) | | |
|
||||||
|
| [disconnectToChannel(connection)](./calckey-js.stream.disconnecttochannel.md) | | |
|
||||||
|
| [removeSharedConnection(connection)](./calckey-js.stream.removesharedconnection.md) | | |
|
||||||
|
| [removeSharedConnectionPool(pool)](./calckey-js.stream.removesharedconnectionpool.md) | | |
|
||||||
|
| [send(typeOrPayload, payload)](./calckey-js.stream.send.md) | | |
|
||||||
|
| [useChannel(channel, params, name)](./calckey-js.stream.usechannel.md) | | |
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [removeSharedConnection](./calckey-js.stream.removesharedconnection.md)
|
||||||
|
|
||||||
|
## Stream.removeSharedConnection() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
removeSharedConnection(connection: SharedConnection): void;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| connection | SharedConnection | |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [removeSharedConnectionPool](./calckey-js.stream.removesharedconnectionpool.md)
|
||||||
|
|
||||||
|
## Stream.removeSharedConnectionPool() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
removeSharedConnectionPool(pool: Pool): void;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| pool | Pool | |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [send](./calckey-js.stream.send.md)
|
||||||
|
|
||||||
|
## Stream.send() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
send(typeOrPayload: any, payload?: any): void;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| typeOrPayload | any | |
|
||||||
|
| payload | any | _(Optional)_ |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
void
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [state](./calckey-js.stream.state.md)
|
||||||
|
|
||||||
|
## Stream.state property
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
state: "initializing" | "reconnecting" | "connected";
|
||||||
|
```
|
|
@ -0,0 +1,28 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [Stream](./calckey-js.stream.md) > [useChannel](./calckey-js.stream.usechannel.md)
|
||||||
|
|
||||||
|
## Stream.useChannel() method
|
||||||
|
|
||||||
|
**Signature:**
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
useChannel<C extends keyof Channels>(
|
||||||
|
channel: C,
|
||||||
|
params?: Channels[C]["params"],
|
||||||
|
name?: string,
|
||||||
|
): Connection<Channels[C]>;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| channel | C | |
|
||||||
|
| params | [Channels](./calckey-js.channels.md)<!-- -->\[C\]\["params"\] | _(Optional)_ |
|
||||||
|
| name | string | _(Optional)_ |
|
||||||
|
|
||||||
|
**Returns:**
|
||||||
|
|
||||||
|
[Connection](./calckey-js.channelconnection.md)<!-- --><[Channels](./calckey-js.channels.md)<!-- -->\[C\]>
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
|
[Home](./index.md)
|
||||||
|
|
||||||
|
## API Reference
|
||||||
|
|
||||||
|
## Packages
|
||||||
|
|
||||||
|
| Package | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [calckey-js](./calckey-js.md) | |
|
||||||
|
|
|
@ -6,13 +6,19 @@
|
||||||
"types": "./built/index.d.ts",
|
"types": "./built/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm swc src -d built -D",
|
"build": "pnpm swc src -d built -D",
|
||||||
"tsd": "tsc && tsd"
|
"render": "pnpm run build && pnpm run api && pnpm run api-prod && cp temp/calckey-js.api.json etc/ && pnpm run api-doc",
|
||||||
|
"tsd": "tsc && tsd",
|
||||||
|
"api": "pnpm api-extractor run --local --verbose",
|
||||||
|
"api-prod": "pnpm api-extractor run --verbose",
|
||||||
|
"api-doc": "pnpm api-documenter markdown -i ./etc/"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://codeberg.org/calckey/calckey.git"
|
"url": "https://codeberg.org/calckey/calckey.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@microsoft/api-extractor": "^7.36.0",
|
||||||
|
"@microsoft/api-documenter": "^7.22.21",
|
||||||
"@swc/cli": "^0.1.62",
|
"@swc/cli": "^0.1.62",
|
||||||
"@swc/core": "^1.3.62",
|
"@swc/core": "^1.3.62",
|
||||||
"@types/node": "20.3.1",
|
"@types/node": "20.3.1",
|
||||||
|
|
|
@ -5,6 +5,7 @@ import {
|
||||||
App,
|
App,
|
||||||
AuthSession,
|
AuthSession,
|
||||||
Blocking,
|
Blocking,
|
||||||
|
Channel,
|
||||||
Clip,
|
Clip,
|
||||||
DateString,
|
DateString,
|
||||||
DetailedInstanceMetadata,
|
DetailedInstanceMetadata,
|
||||||
|
@ -16,23 +17,24 @@ import {
|
||||||
FollowRequest,
|
FollowRequest,
|
||||||
GalleryPost,
|
GalleryPost,
|
||||||
Instance,
|
Instance,
|
||||||
|
InstanceMetadata,
|
||||||
LiteInstanceMetadata,
|
LiteInstanceMetadata,
|
||||||
MeDetailed,
|
MeDetailed,
|
||||||
MessagingMessage,
|
|
||||||
Note,
|
Note,
|
||||||
NoteFavorite,
|
NoteFavorite,
|
||||||
NoteReaction,
|
|
||||||
Notification,
|
|
||||||
OriginType,
|
OriginType,
|
||||||
Page,
|
Page,
|
||||||
ServerInfo,
|
ServerInfo,
|
||||||
Signin,
|
|
||||||
Stats,
|
Stats,
|
||||||
User,
|
User,
|
||||||
UserDetailed,
|
UserDetailed,
|
||||||
UserGroup,
|
UserGroup,
|
||||||
UserList,
|
UserList,
|
||||||
UserSorting,
|
UserSorting,
|
||||||
|
Notification,
|
||||||
|
NoteReaction,
|
||||||
|
Signin,
|
||||||
|
MessagingMessage,
|
||||||
} from "./entities";
|
} from "./entities";
|
||||||
|
|
||||||
type TODO = Record<string, any> | null;
|
type TODO = Record<string, any> | null;
|
||||||
|
@ -756,7 +758,10 @@ export type Endpoints = {
|
||||||
$cases: [
|
$cases: [
|
||||||
[{ detail: true }, DetailedInstanceMetadata],
|
[{ detail: true }, DetailedInstanceMetadata],
|
||||||
[{ detail: false }, LiteInstanceMetadata],
|
[{ detail: false }, LiteInstanceMetadata],
|
||||||
[{ detail: boolean }, LiteInstanceMetadata | DetailedInstanceMetadata]
|
[
|
||||||
|
{ detail: boolean },
|
||||||
|
LiteInstanceMetadata | DetailedInstanceMetadata,
|
||||||
|
],
|
||||||
];
|
];
|
||||||
$default: LiteInstanceMetadata;
|
$default: LiteInstanceMetadata;
|
||||||
};
|
};
|
||||||
|
@ -972,6 +977,9 @@ export type Endpoints = {
|
||||||
// server-info
|
// server-info
|
||||||
"server-info": { req: NoParams; res: ServerInfo };
|
"server-info": { req: NoParams; res: ServerInfo };
|
||||||
|
|
||||||
|
// ck specific
|
||||||
|
"latest-version": { req: NoParams; res: TODO };
|
||||||
|
|
||||||
// sw
|
// sw
|
||||||
"sw/register": { req: TODO; res: TODO };
|
"sw/register": { req: TODO; res: TODO };
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,7 @@ export type MeDetailed = UserDetailed & {
|
||||||
hasUnreadSpecifiedNotes: boolean;
|
hasUnreadSpecifiedNotes: boolean;
|
||||||
hideOnlineStatus: boolean;
|
hideOnlineStatus: boolean;
|
||||||
injectFeaturedNote: boolean;
|
injectFeaturedNote: boolean;
|
||||||
|
integrations: Record<string, any>;
|
||||||
isDeleted: boolean;
|
isDeleted: boolean;
|
||||||
isExplorable: boolean;
|
isExplorable: boolean;
|
||||||
mutedWords: string[][];
|
mutedWords: string[][];
|
||||||
|
@ -289,6 +290,9 @@ export type LiteInstanceMetadata = {
|
||||||
swPublickey: string | null;
|
swPublickey: string | null;
|
||||||
maxNoteTextLength: number;
|
maxNoteTextLength: number;
|
||||||
enableEmail: boolean;
|
enableEmail: boolean;
|
||||||
|
enableTwitterIntegration: boolean;
|
||||||
|
enableGithubIntegration: boolean;
|
||||||
|
enableDiscordIntegration: boolean;
|
||||||
enableServiceWorker: boolean;
|
enableServiceWorker: boolean;
|
||||||
emojis: CustomEmoji[];
|
emojis: CustomEmoji[];
|
||||||
ads: {
|
ads: {
|
||||||
|
|
|
@ -45,13 +45,9 @@ export async function signout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (accounts.length === 0) {
|
if (accounts.length === 0) {
|
||||||
await navigator.serviceWorker
|
await navigator.serviceWorker.getRegistrations().then((registrations) => {
|
||||||
.getRegistrations()
|
|
||||||
.then((registrations) => {
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
registrations.map((registration) =>
|
registrations.map((registration) => registration.unregister()),
|
||||||
registration.unregister()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -81,7 +77,7 @@ export async function removeAccount(id: Account["id"]) {
|
||||||
const accounts = await getAccounts();
|
const accounts = await getAccounts();
|
||||||
accounts.splice(
|
accounts.splice(
|
||||||
accounts.findIndex((x) => x.id === id),
|
accounts.findIndex((x) => x.id === id),
|
||||||
1
|
1,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (accounts.length > 0) await set("accounts", accounts);
|
if (accounts.length > 0) await set("accounts", accounts);
|
||||||
|
@ -100,9 +96,7 @@ function fetchAccount(token: string): Promise<Account> {
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
if (
|
if (res.error.id === "a8c724b3-6e9c-4b46-b1a8-bc3ed6258370") {
|
||||||
res.error.id === "a8c724b3-6e9c-4b46-b1a8-bc3ed6258370"
|
|
||||||
) {
|
|
||||||
showSuspendedDialog().then(() => {
|
showSuspendedDialog().then(() => {
|
||||||
signout();
|
signout();
|
||||||
});
|
});
|
||||||
|
@ -159,13 +153,11 @@ export async function openAccountMenu(
|
||||||
active?: misskey.entities.UserDetailed["id"];
|
active?: misskey.entities.UserDetailed["id"];
|
||||||
onChoose?: (account: misskey.entities.UserDetailed) => void;
|
onChoose?: (account: misskey.entities.UserDetailed) => void;
|
||||||
},
|
},
|
||||||
ev: MouseEvent
|
ev: MouseEvent,
|
||||||
) {
|
) {
|
||||||
function showSigninDialog() {
|
function showSigninDialog() {
|
||||||
popup(
|
popup(
|
||||||
defineAsyncComponent(
|
defineAsyncComponent(() => import("@/components/MkSigninDialog.vue")),
|
||||||
() => import("@/components/MkSigninDialog.vue")
|
|
||||||
),
|
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
done: (res) => {
|
done: (res) => {
|
||||||
|
@ -173,15 +165,13 @@ export async function openAccountMenu(
|
||||||
success();
|
success();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"closed"
|
"closed",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createAccount() {
|
function createAccount() {
|
||||||
popup(
|
popup(
|
||||||
defineAsyncComponent(
|
defineAsyncComponent(() => import("@/components/MkSignupDialog.vue")),
|
||||||
() => import("@/components/MkSignupDialog.vue")
|
|
||||||
),
|
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
done: (res) => {
|
done: (res) => {
|
||||||
|
@ -189,7 +179,7 @@ export async function openAccountMenu(
|
||||||
switchAccountWithToken(res.i);
|
switchAccountWithToken(res.i);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"closed"
|
"closed",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +194,7 @@ export async function openAccountMenu(
|
||||||
}
|
}
|
||||||
|
|
||||||
const storedAccounts = await getAccounts().then((accounts) =>
|
const storedAccounts = await getAccounts().then((accounts) =>
|
||||||
accounts.filter((x) => x.id !== $i.id)
|
accounts.filter((x) => x.id !== $i.id),
|
||||||
);
|
);
|
||||||
const accountsPromise = api("users/show", {
|
const accountsPromise = api("users/show", {
|
||||||
userIds: storedAccounts.map((x) => x.id),
|
userIds: storedAccounts.map((x) => x.id),
|
||||||
|
@ -233,7 +223,7 @@ export async function openAccountMenu(
|
||||||
if (account == null) return res(null);
|
if (account == null) return res(null);
|
||||||
res(createItem(account));
|
res(createItem(account));
|
||||||
});
|
});
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (opts.withExtraOperation) {
|
if (opts.withExtraOperation) {
|
||||||
|
@ -287,7 +277,7 @@ export async function openAccountMenu(
|
||||||
ev.currentTarget ?? ev.target,
|
ev.currentTarget ?? ev.target,
|
||||||
{
|
{
|
||||||
align: "left",
|
align: "left",
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
popupMenu(
|
popupMenu(
|
||||||
|
@ -298,7 +288,7 @@ export async function openAccountMenu(
|
||||||
ev.currentTarget ?? ev.target,
|
ev.currentTarget ?? ev.target,
|
||||||
{
|
{
|
||||||
align: "left",
|
align: "left",
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,38 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="social _section">
|
||||||
|
<a
|
||||||
|
v-if="meta && meta.enableTwitterIntegration"
|
||||||
|
class="_borderButton _gap"
|
||||||
|
:href="`${apiUrl}/signin/twitter`"
|
||||||
|
><i
|
||||||
|
class="ph-twitter-logo ph-bold ph-lg"
|
||||||
|
style="margin-right: 4px"
|
||||||
|
></i
|
||||||
|
>{{ i18n.t("signinWith", { x: "Twitter" }) }}</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
v-if="meta && meta.enableGithubIntegration"
|
||||||
|
class="_borderButton _gap"
|
||||||
|
:href="`${apiUrl}/signin/github`"
|
||||||
|
><i
|
||||||
|
class="ph-github-logo ph-bold ph-lg"
|
||||||
|
style="margin-right: 4px"
|
||||||
|
></i
|
||||||
|
>{{ i18n.t("signinWith", { x: "GitHub" }) }}</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
v-if="meta && meta.enableDiscordIntegration"
|
||||||
|
class="_borderButton _gap"
|
||||||
|
:href="`${apiUrl}/signin/discord`"
|
||||||
|
><i
|
||||||
|
class="ph-discord-logo ph-bold ph-lg"
|
||||||
|
style="margin-right: 4px"
|
||||||
|
></i
|
||||||
|
>{{ i18n.t("signinWith", { x: "Discord" }) }}</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -132,7 +164,7 @@ import { toUnicode } from "punycode/";
|
||||||
import MkButton from "@/components/MkButton.vue";
|
import MkButton from "@/components/MkButton.vue";
|
||||||
import MkInput from "@/components/form/input.vue";
|
import MkInput from "@/components/form/input.vue";
|
||||||
import MkInfo from "@/components/MkInfo.vue";
|
import MkInfo from "@/components/MkInfo.vue";
|
||||||
import { host as configHost } from "@/config";
|
import { apiUrl, host as configHost } from "@/config";
|
||||||
import { byteify, hexify } from "@/scripts/2fa";
|
import { byteify, hexify } from "@/scripts/2fa";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { login } from "@/account";
|
import { login } from "@/account";
|
||||||
|
|
|
@ -28,8 +28,7 @@ export default defineComponent({
|
||||||
parsed.push(str);
|
parsed.push(str);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (nextBracketOpen > 0)
|
if (nextBracketOpen > 0) parsed.push(str.substr(0, nextBracketOpen));
|
||||||
parsed.push(str.substr(0, nextBracketOpen));
|
|
||||||
parsed.push({
|
parsed.push({
|
||||||
arg: str.substring(nextBracketOpen + 1, nextBracketClose),
|
arg: str.substring(nextBracketOpen + 1, nextBracketClose),
|
||||||
});
|
});
|
||||||
|
@ -45,8 +44,8 @@ export default defineComponent({
|
||||||
? this.textTag
|
? this.textTag
|
||||||
? h(this.textTag, x)
|
? h(this.textTag, x)
|
||||||
: x
|
: x
|
||||||
: this.$slots[x.arg]()
|
: this.$slots[x.arg](),
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -74,10 +74,7 @@ export default defineComponent({
|
||||||
ast.map((token, index): VNode[] => {
|
ast.map((token, index): VNode[] => {
|
||||||
switch (token.type) {
|
switch (token.type) {
|
||||||
case "text": {
|
case "text": {
|
||||||
const text = token.props.text.replace(
|
const text = token.props.text.replace(/(\r\n|\n|\r)/g, "\n");
|
||||||
/(\r\n|\n|\r)/g,
|
|
||||||
"\n"
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!this.plain) {
|
if (!this.plain) {
|
||||||
const res = [];
|
const res = [];
|
||||||
|
@ -106,7 +103,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
style: "font-style: oblique;",
|
style: "font-style: oblique;",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,55 +112,31 @@ export default defineComponent({
|
||||||
let style: string;
|
let style: string;
|
||||||
switch (token.props.name) {
|
switch (token.props.name) {
|
||||||
case "tada": {
|
case "tada": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "1s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"1s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
// const ease = validEase(token.props.args.ease) || "linear";
|
// const ease = validEase(token.props.args.ease) || "linear";
|
||||||
style = `font-size: 150%; animation: tada ${speed} ${delay} linear ${loop} both;`;
|
style = `font-size: 150%; animation: tada ${speed} ${delay} linear ${loop} both;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "jelly": {
|
case "jelly": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "1s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"1s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-rubberBand ${speed} ${delay} linear ${loop} both;`;
|
style = `animation: mfm-rubberBand ${speed} ${delay} linear ${loop} both;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "twitch": {
|
case "twitch": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "0.5s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"0.5s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-twitch ${speed} ${delay} ease ${loop};`;
|
style = `animation: mfm-twitch ${speed} ${delay} ease ${loop};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "shake": {
|
case "shake": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "0.5s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"0.5s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-shake ${speed} ${delay} ease ${loop};`;
|
style = `animation: mfm-shake ${speed} ${delay} ease ${loop};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -178,54 +151,30 @@ export default defineComponent({
|
||||||
: token.props.args.y
|
: token.props.args.y
|
||||||
? "mfm-spinY"
|
? "mfm-spinY"
|
||||||
: "mfm-spin";
|
: "mfm-spin";
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "1.5s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"1.5s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: ${anime} ${speed} ${delay} linear ${loop}; animation-direction: ${direction};`;
|
style = `animation: ${anime} ${speed} ${delay} linear ${loop}; animation-direction: ${direction};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "jump": {
|
case "jump": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "0.75s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"0.75s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-jump ${speed} ${delay} linear ${loop};`;
|
style = `animation: mfm-jump ${speed} ${delay} linear ${loop};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "bounce": {
|
case "bounce": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "0.75s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"0.75s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-bounce ${speed} ${delay} linear ${loop}; transform-origin: center bottom;`;
|
style = `animation: mfm-bounce ${speed} ${delay} linear ${loop}; transform-origin: center bottom;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "rainbow": {
|
case "rainbow": {
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "1s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"1s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-rainbow ${speed} ${delay} linear ${loop};`;
|
style = `animation: mfm-rainbow ${speed} ${delay} linear ${loop};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -233,25 +182,15 @@ export default defineComponent({
|
||||||
if (reducedMotion()) {
|
if (reducedMotion()) {
|
||||||
return genEl(token.children);
|
return genEl(token.children);
|
||||||
}
|
}
|
||||||
return h(
|
return h(MkSparkle, {}, genEl(token.children));
|
||||||
MkSparkle,
|
|
||||||
{},
|
|
||||||
genEl(token.children)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
case "fade": {
|
case "fade": {
|
||||||
const direction = token.props.args.out
|
const direction = token.props.args.out
|
||||||
? "alternate-reverse"
|
? "alternate-reverse"
|
||||||
: "alternate";
|
: "alternate";
|
||||||
const speed =
|
const speed = validTime(token.props.args.speed) || "1.5s";
|
||||||
validTime(token.props.args.speed) ||
|
const delay = validTime(token.props.args.delay) || "0s";
|
||||||
"1.5s";
|
const loop = validNumber(token.props.args.loop) || "infinite";
|
||||||
const delay =
|
|
||||||
validTime(token.props.args.delay) ||
|
|
||||||
"0s";
|
|
||||||
const loop =
|
|
||||||
validNumber(token.props.args.loop) ||
|
|
||||||
"infinite";
|
|
||||||
style = `animation: mfm-fade ${speed} ${delay} linear ${loop}; animation-direction: ${direction};`;
|
style = `animation: mfm-fade ${speed} ${delay} linear ${loop}; animation-direction: ${direction};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -271,7 +210,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
class: "mfm-x2",
|
class: "mfm-x2",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case "x3": {
|
case "x3": {
|
||||||
|
@ -280,7 +219,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
class: "mfm-x3",
|
class: "mfm-x3",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case "x4": {
|
case "x4": {
|
||||||
|
@ -289,7 +228,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
class: "mfm-x4",
|
class: "mfm-x4",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case "font": {
|
case "font": {
|
||||||
|
@ -306,8 +245,7 @@ export default defineComponent({
|
||||||
: token.props.args.math
|
: token.props.args.math
|
||||||
? "math"
|
? "math"
|
||||||
: null;
|
: null;
|
||||||
if (family)
|
if (family) style = `font-family: ${family};`;
|
||||||
style = `font-family: ${family};`;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "blur": {
|
case "blur": {
|
||||||
|
@ -316,7 +254,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
class: "_blur_text",
|
class: "_blur_text",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case "rotate": {
|
case "rotate": {
|
||||||
|
@ -325,60 +263,39 @@ export default defineComponent({
|
||||||
: token.props.args.y
|
: token.props.args.y
|
||||||
? "perspective(128px) rotateY"
|
? "perspective(128px) rotateY"
|
||||||
: "rotate";
|
: "rotate";
|
||||||
const degrees =
|
const degrees = parseInt(token.props.args.deg) || "90";
|
||||||
parseInt(token.props.args.deg) || "90";
|
|
||||||
style = `transform: ${rotate}(${degrees}deg); transform-origin: center center;`;
|
style = `transform: ${rotate}(${degrees}deg); transform-origin: center center;`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "position": {
|
case "position": {
|
||||||
const x = parseFloat(
|
const x = parseFloat(token.props.args.x ?? "0");
|
||||||
token.props.args.x ?? "0"
|
const y = parseFloat(token.props.args.y ?? "0");
|
||||||
);
|
|
||||||
const y = parseFloat(
|
|
||||||
token.props.args.y ?? "0"
|
|
||||||
);
|
|
||||||
style = `transform: translateX(${x}em) translateY(${y}em);`;
|
style = `transform: translateX(${x}em) translateY(${y}em);`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "crop": {
|
case "crop": {
|
||||||
const top = parseFloat(
|
const top = parseFloat(token.props.args.top ?? "0");
|
||||||
token.props.args.top ?? "0"
|
const right = parseFloat(token.props.args.right ?? "0");
|
||||||
);
|
const bottom = parseFloat(token.props.args.bottom ?? "0");
|
||||||
const right = parseFloat(
|
const left = parseFloat(token.props.args.left ?? "0");
|
||||||
token.props.args.right ?? "0"
|
|
||||||
);
|
|
||||||
const bottom = parseFloat(
|
|
||||||
token.props.args.bottom ?? "0"
|
|
||||||
);
|
|
||||||
const left = parseFloat(
|
|
||||||
token.props.args.left ?? "0"
|
|
||||||
);
|
|
||||||
style = `clip-path: inset(${top}% ${right}% ${bottom}% ${left}%);`;
|
style = `clip-path: inset(${top}% ${right}% ${bottom}% ${left}%);`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "scale": {
|
case "scale": {
|
||||||
const x = Math.min(
|
const x = Math.min(parseFloat(token.props.args.x ?? "1"), 5);
|
||||||
parseFloat(token.props.args.x ?? "1"),
|
const y = Math.min(parseFloat(token.props.args.y ?? "1"), 5);
|
||||||
5
|
|
||||||
);
|
|
||||||
const y = Math.min(
|
|
||||||
parseFloat(token.props.args.y ?? "1"),
|
|
||||||
5
|
|
||||||
);
|
|
||||||
style = `transform: scale(${x}, ${y});`;
|
style = `transform: scale(${x}, ${y});`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "fg": {
|
case "fg": {
|
||||||
let color = token.props.args.color;
|
let color = token.props.args.color;
|
||||||
if (!/^[0-9a-f]{3,6}$/i.test(color))
|
if (!/^[0-9a-f]{3,6}$/i.test(color)) color = "f00";
|
||||||
color = "f00";
|
|
||||||
style = `color: #${color};`;
|
style = `color: #${color};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "bg": {
|
case "bg": {
|
||||||
let color = token.props.args.color;
|
let color = token.props.args.color;
|
||||||
if (!/^[0-9a-f]{3,6}$/i.test(color))
|
if (!/^[0-9a-f]{3,6}$/i.test(color)) color = "f00";
|
||||||
color = "f00";
|
|
||||||
style = `background-color: #${color};`;
|
style = `background-color: #${color};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -388,7 +305,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
style: "opacity: 0.7;",
|
style: "opacity: 0.7;",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case "center": {
|
case "center": {
|
||||||
|
@ -397,7 +314,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
style: "text-align: center;",
|
style: "text-align: center;",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -415,7 +332,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
style: `display: inline-block;${style}`,
|
style: `display: inline-block;${style}`,
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -427,7 +344,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
style: "opacity: 0.7;",
|
style: "opacity: 0.7;",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -439,7 +356,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
style: "text-align: center;",
|
style: "text-align: center;",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -463,7 +380,7 @@ export default defineComponent({
|
||||||
url: token.props.url,
|
url: token.props.url,
|
||||||
rel: "nofollow noopener",
|
rel: "nofollow noopener",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -489,12 +406,10 @@ export default defineComponent({
|
||||||
MkA,
|
MkA,
|
||||||
{
|
{
|
||||||
key: Math.random(),
|
key: Math.random(),
|
||||||
to: `/tags/${encodeURIComponent(
|
to: `/tags/${encodeURIComponent(token.props.hashtag)}`,
|
||||||
token.props.hashtag
|
|
||||||
)}`,
|
|
||||||
style: "color:var(--hashtag);",
|
style: "color:var(--hashtag);",
|
||||||
},
|
},
|
||||||
`#${token.props.hashtag}`
|
`#${token.props.hashtag}`,
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -529,7 +444,7 @@ export default defineComponent({
|
||||||
{
|
{
|
||||||
class: "quote",
|
class: "quote",
|
||||||
},
|
},
|
||||||
genEl(token.children)
|
genEl(token.children),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -578,19 +493,16 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
case "search": {
|
case "search": {
|
||||||
|
|
||||||
const sentinel = "#";
|
const sentinel = "#";
|
||||||
let ast2 = (isPlain ? mfm.parseSimple : mfm.parse)(
|
let ast2 = (isPlain ? mfm.parseSimple : mfm.parse)(
|
||||||
token.props.content + sentinel
|
token.props.content + sentinel,
|
||||||
);
|
);
|
||||||
if (
|
if (
|
||||||
ast2[ast2.length - 1].type === "text" &&
|
ast2[ast2.length - 1].type === "text" &&
|
||||||
ast2[ast2.length - 1].props.text.endsWith(
|
ast2[ast2.length - 1].props.text.endsWith(sentinel)
|
||||||
sentinel
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
ast2[ast2.length - 1].props.text = ast2[
|
ast2[ast2.length - 1].props.text = ast2[ast2.length - 1].props.text.slice(0, -1);
|
||||||
ast2.length - 1
|
|
||||||
].props.text.slice(0, -1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let prefix = "\n";
|
let prefix = "\n";
|
||||||
|
@ -607,7 +519,10 @@ export default defineComponent({
|
||||||
prefix = "";
|
prefix = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return [prefix, ...genEl(ast2)];
|
return [
|
||||||
|
prefix,
|
||||||
|
...genEl(ast2)
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
case "plain": {
|
case "plain": {
|
||||||
|
@ -620,7 +535,7 @@ export default defineComponent({
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Parse ast to DOM
|
// Parse ast to DOM
|
||||||
|
|
|
@ -7,14 +7,12 @@ export default {
|
||||||
if (
|
if (
|
||||||
style.backgroundColor &&
|
style.backgroundColor &&
|
||||||
!["rgba(0, 0, 0, 0)", "rgba(0,0,0,0)", "transparent"].includes(
|
!["rgba(0, 0, 0, 0)", "rgba(0,0,0,0)", "transparent"].includes(
|
||||||
style.backgroundColor
|
style.backgroundColor,
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return style.backgroundColor;
|
return style.backgroundColor;
|
||||||
} else {
|
} else {
|
||||||
return el.parentElement
|
return el.parentElement ? getBgColor(el.parentElement) : "transparent";
|
||||||
? getBgColor(el.parentElement)
|
|
||||||
: "transparent";
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ export default {
|
||||||
const height = container.scrollHeight;
|
const height = container.scrollHeight;
|
||||||
isBottom = pos + viewHeight > height - 32;
|
isBottom = pos + viewHeight > height - 32;
|
||||||
},
|
},
|
||||||
{ passive: true }
|
{ passive: true },
|
||||||
);
|
);
|
||||||
container.scrollTop = container.scrollHeight;
|
container.scrollTop = container.scrollHeight;
|
||||||
|
|
||||||
|
|
|
@ -7,22 +7,20 @@ export default {
|
||||||
if (
|
if (
|
||||||
style.backgroundColor &&
|
style.backgroundColor &&
|
||||||
!["rgba(0, 0, 0, 0)", "rgba(0,0,0,0)", "transparent"].includes(
|
!["rgba(0, 0, 0, 0)", "rgba(0,0,0,0)", "transparent"].includes(
|
||||||
style.backgroundColor
|
style.backgroundColor,
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
return style.backgroundColor;
|
return style.backgroundColor;
|
||||||
} else {
|
} else {
|
||||||
return el.parentElement
|
return el.parentElement ? getBgColor(el.parentElement) : "transparent";
|
||||||
? getBgColor(el.parentElement)
|
|
||||||
: "transparent";
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const parentBg = getBgColor(src.parentElement);
|
const parentBg = getBgColor(src.parentElement);
|
||||||
|
|
||||||
const myBg = getComputedStyle(
|
const myBg = getComputedStyle(document.documentElement).getPropertyValue(
|
||||||
document.documentElement
|
"--panel",
|
||||||
).getPropertyValue("--panel");
|
);
|
||||||
|
|
||||||
if (parentBg === myBg) {
|
if (parentBg === myBg) {
|
||||||
src.style.backgroundColor = "var(--bg)";
|
src.style.backgroundColor = "var(--bg)";
|
||||||
|
|
|
@ -34,12 +34,8 @@ function getClassOrder(width: number, queue: Value): ClassOrder {
|
||||||
: []),
|
: []),
|
||||||
],
|
],
|
||||||
remove: [
|
remove: [
|
||||||
...(queue.max
|
...(queue.max ? queue.max.filter((v) => width > v).map(getMaxClass) : []),
|
||||||
? queue.max.filter((v) => width > v).map(getMaxClass)
|
...(queue.min ? queue.min.filter((v) => width < v).map(getMinClass) : []),
|
||||||
: []),
|
|
||||||
...(queue.min
|
|
||||||
? queue.min.filter((v) => width < v).map(getMinClass)
|
|
||||||
: []),
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -108,7 +104,7 @@ export default {
|
||||||
updated(src, binding, vn) {
|
updated(src, binding, vn) {
|
||||||
mountings.set(
|
mountings.set(
|
||||||
src,
|
src,
|
||||||
Object.assign({}, mountings.get(src), { value: binding.value })
|
Object.assign({}, mountings.get(src), { value: binding.value }),
|
||||||
);
|
);
|
||||||
calc(src);
|
calc(src);
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,9 +54,7 @@ export default {
|
||||||
|
|
||||||
const showing = ref(true);
|
const showing = ref(true);
|
||||||
popup(
|
popup(
|
||||||
defineAsyncComponent(
|
defineAsyncComponent(() => import("@/components/MkTooltip.vue")),
|
||||||
() => import("@/components/MkTooltip.vue")
|
|
||||||
),
|
|
||||||
{
|
{
|
||||||
showing,
|
showing,
|
||||||
text: self.text,
|
text: self.text,
|
||||||
|
@ -73,7 +71,7 @@ export default {
|
||||||
targetElement: el,
|
targetElement: el,
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
"closed"
|
"closed",
|
||||||
);
|
);
|
||||||
|
|
||||||
self._close = () => {
|
self._close = () => {
|
||||||
|
|
|
@ -25,9 +25,7 @@ export class UserPreview {
|
||||||
const showing = ref(true);
|
const showing = ref(true);
|
||||||
|
|
||||||
popup(
|
popup(
|
||||||
defineAsyncComponent(
|
defineAsyncComponent(() => import("@/components/MkUserPreview.vue")),
|
||||||
() => import("@/components/MkUserPreview.vue")
|
|
||||||
),
|
|
||||||
{
|
{
|
||||||
showing,
|
showing,
|
||||||
q: this.user,
|
q: this.user,
|
||||||
|
@ -42,7 +40,7 @@ export class UserPreview {
|
||||||
this.hideTimer = window.setTimeout(this.close, 500);
|
this.hideTimer = window.setTimeout(this.close, 500);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"closed"
|
"closed",
|
||||||
);
|
);
|
||||||
|
|
||||||
this.promise = {
|
this.promise = {
|
||||||
|
|
|
@ -7,7 +7,7 @@ export const i18n = markRaw(new I18n(locale));
|
||||||
// このファイルに書きたくないけどここに書かないと何故かVeturが認識しない
|
// このファイルに書きたくないけどここに書かないと何故かVeturが認識しない
|
||||||
declare module "@vue/runtime-core" {
|
declare module "@vue/runtime-core" {
|
||||||
interface ComponentCustomProperties {
|
interface ComponentCustomProperties {
|
||||||
$t: (typeof i18n)["t"];
|
$t: typeof i18n["t"];
|
||||||
$ts: (typeof i18n)["locale"];
|
$ts: typeof i18n["locale"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import "@phosphor-icons/web/fill";
|
||||||
//#region account indexedDB migration
|
//#region account indexedDB migration
|
||||||
import { set } from "@/scripts/idb-proxy";
|
import { set } from "@/scripts/idb-proxy";
|
||||||
|
|
||||||
const accounts = localStorage.getItem("accounts");
|
const accounts = localStorage.getItem("accounts")
|
||||||
if (accounts) {
|
if (accounts) {
|
||||||
set("accounts", JSON.parse(accounts));
|
set("accounts", JSON.parse(accounts));
|
||||||
localStorage.removeItem("accounts");
|
localStorage.removeItem("accounts");
|
||||||
|
@ -192,7 +192,7 @@ function checkForSplash() {
|
||||||
? defineAsyncComponent(() => import("@/ui/visitor.vue"))
|
? defineAsyncComponent(() => import("@/ui/visitor.vue"))
|
||||||
: ui === "deck"
|
: ui === "deck"
|
||||||
? defineAsyncComponent(() => import("@/ui/deck.vue"))
|
? defineAsyncComponent(() => import("@/ui/deck.vue"))
|
||||||
: defineAsyncComponent(() => import("@/ui/universal.vue"))
|
: defineAsyncComponent(() => import("@/ui/universal.vue")),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (_DEV_) {
|
if (_DEV_) {
|
||||||
|
@ -260,12 +260,10 @@ function checkForSplash() {
|
||||||
// ログインしてる場合だけ
|
// ログインしてる場合だけ
|
||||||
if ($i) {
|
if ($i) {
|
||||||
popup(
|
popup(
|
||||||
defineAsyncComponent(
|
defineAsyncComponent(() => import("@/components/MkUpdated.vue")),
|
||||||
() => import("@/components/MkUpdated.vue")
|
|
||||||
),
|
|
||||||
{},
|
{},
|
||||||
{},
|
{},
|
||||||
"closed"
|
"closed",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -281,16 +279,14 @@ function checkForSplash() {
|
||||||
applyTheme(
|
applyTheme(
|
||||||
darkMode
|
darkMode
|
||||||
? ColdDeviceStorage.get("darkTheme")
|
? ColdDeviceStorage.get("darkTheme")
|
||||||
: ColdDeviceStorage.get("lightTheme")
|
: ColdDeviceStorage.get("lightTheme"),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{ immediate: localStorage.theme == null }
|
{ immediate: localStorage.theme == null },
|
||||||
);
|
);
|
||||||
|
|
||||||
const darkTheme = computed(ColdDeviceStorage.makeGetterSetter("darkTheme"));
|
const darkTheme = computed(ColdDeviceStorage.makeGetterSetter("darkTheme"));
|
||||||
const lightTheme = computed(
|
const lightTheme = computed(ColdDeviceStorage.makeGetterSetter("lightTheme"));
|
||||||
ColdDeviceStorage.makeGetterSetter("lightTheme")
|
|
||||||
);
|
|
||||||
|
|
||||||
watch(darkTheme, (theme) => {
|
watch(darkTheme, (theme) => {
|
||||||
if (defaultStore.state.darkMode) {
|
if (defaultStore.state.darkMode) {
|
||||||
|
@ -320,12 +316,12 @@ function checkForSplash() {
|
||||||
if (instance.defaultLightTheme != null)
|
if (instance.defaultLightTheme != null)
|
||||||
ColdDeviceStorage.set(
|
ColdDeviceStorage.set(
|
||||||
"lightTheme",
|
"lightTheme",
|
||||||
JSON.parse(instance.defaultLightTheme)
|
JSON.parse(instance.defaultLightTheme),
|
||||||
);
|
);
|
||||||
if (instance.defaultDarkTheme != null)
|
if (instance.defaultDarkTheme != null)
|
||||||
ColdDeviceStorage.set(
|
ColdDeviceStorage.set(
|
||||||
"darkTheme",
|
"darkTheme",
|
||||||
JSON.parse(instance.defaultDarkTheme)
|
JSON.parse(instance.defaultDarkTheme),
|
||||||
);
|
);
|
||||||
defaultStore.set("themeInitial", false);
|
defaultStore.set("themeInitial", false);
|
||||||
}
|
}
|
||||||
|
@ -336,10 +332,10 @@ function checkForSplash() {
|
||||||
(v) => {
|
(v) => {
|
||||||
document.documentElement.style.setProperty(
|
document.documentElement.style.setProperty(
|
||||||
"--modalBgFilter",
|
"--modalBgFilter",
|
||||||
v ? "blur(4px)" : "none"
|
v ? "blur(4px)" : "none",
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
@ -351,7 +347,7 @@ function checkForSplash() {
|
||||||
document.documentElement.style.setProperty("--blur", "none");
|
document.documentElement.style.setProperty("--blur", "none");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
let reloadDialogShowing = false;
|
let reloadDialogShowing = false;
|
||||||
|
@ -379,7 +375,7 @@ function checkForSplash() {
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const plugin of ColdDeviceStorage.get("plugins").filter(
|
for (const plugin of ColdDeviceStorage.get("plugins").filter(
|
||||||
(p) => p.active
|
(p) => p.active,
|
||||||
)) {
|
)) {
|
||||||
import("./plugin").then(({ install }) => {
|
import("./plugin").then(({ install }) => {
|
||||||
install(plugin);
|
install(plugin);
|
||||||
|
@ -412,7 +408,7 @@ function checkForSplash() {
|
||||||
toast(
|
toast(
|
||||||
i18n.t("welcomeBackWithName", {
|
i18n.t("welcomeBackWithName", {
|
||||||
name: $i.name || $i.username,
|
name: $i.name || $i.username,
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ export const instance: Misskey.entities.DetailedInstanceMetadata = reactive(
|
||||||
? JSON.parse(instanceData)
|
? JSON.parse(instanceData)
|
||||||
: {
|
: {
|
||||||
// TODO: set default values
|
// TODO: set default values
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
export async function fetchInstance() {
|
export async function fetchInstance() {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue