import React from 'react'; import superagent from 'superagent'; import MoviesTVWrapper from './MoviesTVWrapper.jsx'; import { Button, Message, Header} from 'semantic-ui-react' class InAppPurchases extends React.Component { constructor(props) { super(props); this.state = { loading: true, text: "" }; } async componentDidMount() { return this.refreshData(); } async refreshData() { this.setState({ loading: true }); const res = await superagent.get(`/api/admin/media/rebuild/skus`); const res2 = await superagent.get(`/api/admin/media/products/export`).accept('text/tab-separated-values'); this.setState({ text: res2.text, loading: false }); } async copyToClipboard() { navigator.clipboard.writeText(this.state.text); } render() { return ( To get this data into the Oculus Store:
  1. Copy it:
  2. Paste it into the "Upload TSV" area here (click to open Oculus store in a new window)...
Raw data in TSV format:
                {this.state.text}
                
); } } export default InAppPurchases;