"eslint": "^7.18.0",
"eslint-plugin-jane": "^9.0.6",
"husky": "^4.3.8",
- "lemmy-js-client": "0.9.0",
+ "lemmy-js-client": "0.9.1-rc.1",
"lint-staged": "^10.5.3",
"mini-css-extract-plugin": "^1.3.4",
"node-fetch": "^2.6.1",
FollowCommunity,
ListCommunities,
SortType,
+ ListingType,
SiteView,
} from 'lemmy-js-client';
import { WebSocketService } from '../services';
refetch() {
let listCommunitiesForm: ListCommunities = {
+ type_: ListingType.All,
sort: SortType.TopAll,
limit: communityLimit,
page: this.state.page,
let pathSplit = req.path.split('/');
let page = pathSplit[3] ? Number(pathSplit[3]) : 1;
let listCommunitiesForm: ListCommunities = {
+ type_: ListingType.All,
sort: SortType.TopAll,
limit: communityLimit,
page,
SiteView,
ListCommunities,
SortType,
+ ListingType,
PostView,
} from 'lemmy-js-client';
import { i18n } from '../i18next';
refetch() {
let listCommunitiesForm: ListCommunities = {
+ type_: ListingType.All,
sort: SortType.TopAll,
limit: 9999,
auth: authField(false),
static fetchInitialData(req: InitialFetchRequest): Promise<any>[] {
let listCommunitiesForm: ListCommunities = {
+ type_: ListingType.All,
sort: SortType.TopAll,
limit: 9999,
};
fetchTrendingCommunities() {
let listCommunitiesForm: ListCommunities = {
+ type_: ListingType.Local,
sort: SortType.Hot,
limit: 6,
auth: authField(false),
}
let trendingCommunitiesForm: ListCommunities = {
+ type_: ListingType.Local,
sort: SortType.Hot,
limit: 6,
};
dependencies:
invert-kv "^1.0.0"
-lemmy-js-client@0.9.0:
- version "0.9.0"
- resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.0.tgz#952f06004d0f4517ca307a4e3424305731279584"
- integrity sha512-VqupLyzZG/4IY9XyDE3ZmtGiw0tccz7wdbhOFutaOloVmo3XTUUuq5xheZK2jzdhNAGSqws0dnaeZcTHWsQGtA==
+lemmy-js-client@0.9.1-rc.1:
+ version "0.9.1-rc.1"
+ resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.9.1-rc.1.tgz#afe3cb0d4852f849dd087a4756a3771bc920a907"
+ integrity sha512-aVvo4IeJvIPUvypipk4GnyLB6nVQVLfB0arYrMkVV4L7zrZ/0pGtpkMDLaOAj/KpA6O0u9eLmaou5RberZQolA==
levn@^0.4.1:
version "0.4.1"