spee.ch/index.js

2 lines
166 KiB
JavaScript
Raw Normal View History

2018-03-09 01:21:37 +01:00
module.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=43)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-redux")},function(e,t){e.exports=require("winston")},function(e,t,n){"use strict";e.exports={analytics:{googleId:"UA-60403362-6"},logging:{logLevel:"debug",slackWebHook:"https://hooks.slack.com/services/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",slackErrorChannel:null,slackInfoChannel:"#speech-dev1-errors"},session:{sessionKey:"nans$#kfjanwe234rydns"},files:{uploadDirectory:"/home/lbry/Uploads"},site:{title:"dev1.Spee.ch",name:"dev1.Spee.ch",host:"https://dev1.spee.ch",description:"Open-source, decentralized image and video sharing."},publish:{primaryClaimAddress:"bDZ2wPwtULUGxT7GXuNLpQhXmdPRUTUkcL",additionalClaimAddresses:["banpwixPosfVDWnGvXqU2af36Qpsd7buGd"],thumbnailChannel:"@dev1thumbs",thumbnailChannelId:"aeb625ff6f66c3eeeb42885070f4e53876033626"},claim:{defaultTitle:"dev1 Spee.ch",defaultThumbnail:"https://spee.ch/assets/img/video_thumb_default.png",defaultDescription:"Open-source, decentralized image and video sharing."},testing:{testChannel:"@test",testChannelId:"3b5bc6b6819172c6e2f3f90aa855b14a956b4a82",testChannelPassword:"1234"},api:{apiHost:"localhost",apiPort:"5279"}}},function(e,t){e.exports=require("react-router-dom")},function(e,t,n){"use strict";function a(e){return{type:h.FILE_SELECTED,data:e}}function r(){return{type:h.FILE_CLEAR}}function l(e,t){return{type:h.METADATA_UPDATE,data:{name:e,value:t}}}function o(e){return{type:h.CLAIM_UPDATE,data:e}}function i(e){return{type:h.SET_PUBLISH_IN_CHANNEL,channel:e}}function u(e,t){return{type:h.PUBLISH_STATUS_UPDATE,data:{status:e,message:t}}}function s(e,t){return{type:h.ERROR_UPDATE,data:{name:e,value:t}}}function c(e){return{type:h.SELECTED_CHANNEL_UPDATE,data:e}}function d(e){return{type:h.TOGGLE_METADATA_INPUTS,data:e}}function f(e){return{type:h.THUMBNAIL_NEW,data:e}}function p(e){return{type:h.PUBLISH_START,data:{history:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.selectFile=a,t.clearFile=r,t.updateMetadata=l,t.updateClaim=o,t.setPublishInChannel=i,t.updatePublishStatus=u,t.updateError=s,t.updateSelectedChannel=c,t.toggleMetadataInputs=d,t.onNewThumbnail=f,t.startPublish=p;var m=n(31),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(m)},function(e,t,n){"use strict";var a=n(59),r=n(2);e.exports=function(e){var t=e.database,l=e.username,o=e.password,i={},u=new a(t,l,o,{host:"localhost",dialect:"mysql",dialectOptions:{decimalNumbers:!0},logging:!1,pool:{max:5,min:0,idle:1e4,acquire:1e4}});u.authenticate().then(function(){r.info("Sequelize has established mysql connection successfully.")}).catch(function(e){r.error("Sequelize was unable to connect to the database:",e)});var s=n(60),c=n(61),d=n(62),f=n(63),p=n(64),m=n(65);return i.Certificate=u.import("Certificate",s),i.Channel=u.import("Channel",c),i.Claim=u.import("Claim",d),i.File=u.import("File",f),i.Request=u.import("Request",p),i.User=u.import("User",m),Object.keys(i).forEach(function(e){i[e].associate&&(r.info("Associating model:",e),i[e].associate(i))}),i.sequelize=u,i.Sequelize=a,i.upsert=function(e,t,n,a){return e.findOne({where:n}).then(function(n){return n?(r.debug("updating record in db."+a),n.update(t)):(r.debug("creating record in db."+a),e.create(t))}).catch(function(e){throw r.error(a+".upsert error",e),e})},i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),r=n(19),l=n(87),o=function(e){return e&&e.__esModule?e:{default:e}}(l),i=n(5),u=function(e){var t=e.channel;return{chann
//# sourceMappingURL=index.js.map