Gautam Sheth 9d17034205 Updated react-officegraph to GA (#229)
* updated react office graph to GA

* uploaded src folder and the package folder

* updated readme

* again updated readme
2017-06-12 12:34:05 +02:00

38 lines
1.5 KiB
TypeScript

import * as React from 'react';
import { ITrendingInThisSiteWebPartProps } from '../ITrendingInThisSiteWebPartProps';
export interface ITrendingInThisSiteProps extends ITrendingInThisSiteWebPartProps {
siteUrl: string;
}
export interface ITrendingInThisSiteState {
trendingDocuments: ITrendingDocument[];
loading: boolean;
error: string;
}
export interface ITrendingDocument {
id: string;
title: string;
url: string;
previewImageUrl: string;
lastModifiedByPhotoUrl: string;
lastModifiedByName: string;
lastModifiedTime: string;
extension: string;
}
export default class TrendingInThisSite extends React.Component<ITrendingInThisSiteProps, ITrendingInThisSiteState> {
constructor(props: ITrendingInThisSiteProps, state: ITrendingInThisSiteState);
componentDidMount(): void;
componentDidUpdate(prevProps: ITrendingInThisSiteProps, prevState: ITrendingInThisSiteState, prevContext: any): void;
render(): JSX.Element;
private getValueFromResults(key, results);
private trim(s);
private getPreviewImageUrl(result, siteUrl);
private getUserPhotoUrl(userEmail, siteUrl);
private request<T>(url, method?, headers?, data?);
private getSiteMembers(siteUrl);
private getActors(siteMembers, requestDigest, siteUrl);
private getTrendingContent(siteUrl, actors, requestDigest);
private loadTrendingContent(siteUrl, numberOfDocuments);
private handleError(err);
private getRequestDigest(siteUrl);
}