mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
disable file input while awaiting publish add spinner to publishes in sidebar add spinner and Publishing title on Publish page add WebUploadList to Publishes add WebUploadItem - thumb - name - progress bar - abort button beforeunload prevent closing tab / navigation enforce and notify about publish size limit 6 outstanding flow complaints
23 lines
671 B
JavaScript
23 lines
671 B
JavaScript
import { Lbry } from 'lbry-redux';
|
|
import apiPublishCallViaWeb from './publish';
|
|
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
|
|
|
|
export const SDK_API_URL = process.env.SDK_API_URL || 'https://api.lbry.tv/api/v1/proxy';
|
|
Lbry.setDaemonConnectionString(SDK_API_URL);
|
|
|
|
Lbry.setOverride(
|
|
'publish',
|
|
params =>
|
|
new Promise((resolve, reject) => {
|
|
apiPublishCallViaWeb(
|
|
SDK_API_URL,
|
|
Lbry.getApiRequestHeaders() && Object.keys(Lbry.getApiRequestHeaders()).includes(X_LBRY_AUTH_TOKEN)
|
|
? Lbry.getApiRequestHeaders()[X_LBRY_AUTH_TOKEN]
|
|
: '',
|
|
'publish',
|
|
params,
|
|
resolve,
|
|
reject
|
|
);
|
|
})
|
|
);
|