forked from stakwork/sphinx-nav-fiber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Расул
authored and
Расул
committed
Jan 28, 2024
1 parent
9254bae
commit c2f7a96
Showing
26 changed files
with
281,729 additions
and
6,531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
### Ticket №: | ||
|
||
closes #ticket_number | ||
|
||
### Problem: | ||
|
||
insert problem you are trying to solve here | ||
|
||
### Solution: | ||
|
||
what was the solution? | ||
|
||
### Changes: | ||
|
||
exactly what changes did you make? | ||
|
||
### Testing: | ||
|
||
did you add any aditional test coverage if so where and what did you test | ||
|
||
### Notes: | ||
any additional notes | ||
|
||
any additional notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
const test = process.env.NODE_ENV === 'test' | ||
|
||
module.exports = { | ||
|
||
presets: [['@babel/preset-env', { targets: { node: 'current' }, modules: 'commonjs' }], '@babel/preset-typescript', ["@babel/preset-react", {"runtime": "automatic"}]], | ||
presets: [ | ||
['@babel/preset-env', { targets: { node: 'current' }, modules: 'commonjs' }], | ||
'@babel/preset-typescript', | ||
['@babel/preset-react', { runtime: 'automatic' }], | ||
], | ||
plugins: [...(test ? ['babel-plugin-transform-vite-meta-env'] : [])], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,134 @@ | ||
import{g as P,r as v,u as D,p as O}from"./index-82f7f87b.js";function b(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(o,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),I=b({__proto__:null,default:R},[_]);export{I as D}; | ||
import { g as P, r as v, u as D, p as O } from './index-82f7f87b.js' | ||
function b(t, e) { | ||
for (var r = 0; r < e.length; r++) { | ||
const o = e[r] | ||
if (typeof o != 'string' && !Array.isArray(o)) { | ||
for (const a in o) | ||
if (a !== 'default' && !(a in t)) { | ||
const i = Object.getOwnPropertyDescriptor(o, a) | ||
i && Object.defineProperty(t, a, i.get ? i : { enumerable: !0, get: () => o[a] }) | ||
} | ||
} | ||
} | ||
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' })) | ||
} | ||
var M = Object.create, | ||
s = Object.defineProperty, | ||
w = Object.getOwnPropertyDescriptor, | ||
S = Object.getOwnPropertyNames, | ||
j = Object.getPrototypeOf, | ||
T = Object.prototype.hasOwnProperty, | ||
E = (t, e, r) => (e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : (t[e] = r)), | ||
A = (t, e) => { | ||
for (var r in e) s(t, r, { get: e[r], enumerable: !0 }) | ||
}, | ||
h = (t, e, r, o) => { | ||
if ((e && typeof e == 'object') || typeof e == 'function') | ||
for (let a of S(e)) | ||
!T.call(t, a) && a !== r && s(t, a, { get: () => e[a], enumerable: !(o = w(e, a)) || o.enumerable }) | ||
return t | ||
}, | ||
L = (t, e, r) => ( | ||
(r = t != null ? M(j(t)) : {}), h(e || !t || !t.__esModule ? s(r, 'default', { value: t, enumerable: !0 }) : r, t) | ||
), | ||
C = (t) => h(s({}, '__esModule', { value: !0 }), t), | ||
n = (t, e, r) => (E(t, typeof e != 'symbol' ? e + '' : e, r), r), | ||
d = {} | ||
A(d, { default: () => p }) | ||
var _ = C(d), | ||
c = L(v), | ||
l = D, | ||
f = O | ||
const x = 'https://api.dmcdn.net/all.js', | ||
N = 'DM', | ||
K = 'dmAsyncInit' | ||
class p extends c.Component { | ||
constructor() { | ||
super(...arguments), | ||
n(this, 'callPlayer', l.callPlayer), | ||
n(this, 'onDurationChange', () => { | ||
const e = this.getDuration() | ||
this.props.onDuration(e) | ||
}), | ||
n(this, 'mute', () => { | ||
this.callPlayer('setMuted', !0) | ||
}), | ||
n(this, 'unmute', () => { | ||
this.callPlayer('setMuted', !1) | ||
}), | ||
n(this, 'ref', (e) => { | ||
this.container = e | ||
}) | ||
} | ||
componentDidMount() { | ||
this.props.onMount && this.props.onMount(this) | ||
} | ||
load(e) { | ||
const { controls: r, config: o, onError: a, playing: i } = this.props, | ||
[, y] = e.match(f.MATCH_URL_DAILYMOTION) | ||
if (this.player) { | ||
this.player.load(y, { start: (0, l.parseStartTime)(e), autoplay: i }) | ||
return | ||
} | ||
;(0, l.getSDK)(x, N, K, (u) => u.player).then((u) => { | ||
if (!this.container) return | ||
const g = u.player | ||
this.player = new g(this.container, { | ||
width: '100%', | ||
height: '100%', | ||
video: y, | ||
params: { | ||
controls: r, | ||
autoplay: this.props.playing, | ||
mute: this.props.muted, | ||
start: (0, l.parseStartTime)(e), | ||
origin: window.location.origin, | ||
...o.params, | ||
}, | ||
events: { | ||
apiready: this.props.onReady, | ||
seeked: () => this.props.onSeek(this.player.currentTime), | ||
video_end: this.props.onEnded, | ||
durationchange: this.onDurationChange, | ||
pause: this.props.onPause, | ||
playing: this.props.onPlay, | ||
waiting: this.props.onBuffer, | ||
error: (m) => a(m), | ||
}, | ||
}) | ||
}, a) | ||
} | ||
play() { | ||
this.callPlayer('play') | ||
} | ||
pause() { | ||
this.callPlayer('pause') | ||
} | ||
stop() {} | ||
seekTo(e, r = !0) { | ||
this.callPlayer('seek', e), r || this.pause() | ||
} | ||
setVolume(e) { | ||
this.callPlayer('setVolume', e) | ||
} | ||
getDuration() { | ||
return this.player.duration || null | ||
} | ||
getCurrentTime() { | ||
return this.player.currentTime | ||
} | ||
getSecondsLoaded() { | ||
return this.player.bufferedTime | ||
} | ||
render() { | ||
const { display: e } = this.props, | ||
r = { width: '100%', height: '100%', display: e } | ||
return c.default.createElement('div', { style: r }, c.default.createElement('div', { ref: this.ref })) | ||
} | ||
} | ||
n(p, 'displayName', 'DailyMotion') | ||
n(p, 'canPlay', f.canPlay.dailymotion) | ||
n(p, 'loopOnEnded', !0) | ||
const R = P(_), | ||
I = b({ __proto__: null, default: R }, [_]) | ||
export { I as D } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,129 @@ | ||
import{g as _,r as g,u as P,p as m}from"./index-82f7f87b.js";function v(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(a,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),B=v({__proto__:null,default:M},[d]);export{B as F}; | ||
import { g as _, r as g, u as P, p as m } from './index-82f7f87b.js' | ||
function v(t, e) { | ||
for (var r = 0; r < e.length; r++) { | ||
const a = e[r] | ||
if (typeof a != 'string' && !Array.isArray(a)) { | ||
for (const s in a) | ||
if (s !== 'default' && !(s in t)) { | ||
const p = Object.getOwnPropertyDescriptor(a, s) | ||
p && Object.defineProperty(t, s, p.get ? p : { enumerable: !0, get: () => a[s] }) | ||
} | ||
} | ||
} | ||
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' })) | ||
} | ||
var O = Object.create, | ||
i = Object.defineProperty, | ||
D = Object.getOwnPropertyDescriptor, | ||
E = Object.getOwnPropertyNames, | ||
S = Object.getPrototypeOf, | ||
j = Object.prototype.hasOwnProperty, | ||
I = (t, e, r) => (e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : (t[e] = r)), | ||
k = (t, e) => { | ||
for (var r in e) i(t, r, { get: e[r], enumerable: !0 }) | ||
}, | ||
h = (t, e, r, a) => { | ||
if ((e && typeof e == 'object') || typeof e == 'function') | ||
for (let s of E(e)) | ||
!j.call(t, s) && s !== r && i(t, s, { get: () => e[s], enumerable: !(a = D(e, s)) || a.enumerable }) | ||
return t | ||
}, | ||
w = (t, e, r) => ( | ||
(r = t != null ? O(S(t)) : {}), h(e || !t || !t.__esModule ? i(r, 'default', { value: t, enumerable: !0 }) : r, t) | ||
), | ||
F = (t) => h(i({}, '__esModule', { value: !0 }), t), | ||
o = (t, e, r) => (I(t, typeof e != 'symbol' ? e + '' : e, r), r), | ||
b = {} | ||
k(b, { default: () => l }) | ||
var d = F(b), | ||
u = w(g), | ||
n = P, | ||
x = m | ||
const c = 'https://connect.facebook.net/en_US/sdk.js', | ||
y = 'FB', | ||
f = 'fbAsyncInit', | ||
L = 'facebook-player-' | ||
class l extends u.Component { | ||
constructor() { | ||
super(...arguments), | ||
o(this, 'callPlayer', n.callPlayer), | ||
o(this, 'playerID', this.props.config.playerId || `${L}${(0, n.randomString)()}`), | ||
o(this, 'mute', () => { | ||
this.callPlayer('mute') | ||
}), | ||
o(this, 'unmute', () => { | ||
this.callPlayer('unmute') | ||
}) | ||
} | ||
componentDidMount() { | ||
this.props.onMount && this.props.onMount(this) | ||
} | ||
load(e, r) { | ||
if (r) { | ||
;(0, n.getSDK)(c, y, f).then((a) => a.XFBML.parse()) | ||
return | ||
} | ||
;(0, n.getSDK)(c, y, f).then((a) => { | ||
a.init({ appId: this.props.config.appId, xfbml: !0, version: this.props.config.version }), | ||
a.Event.subscribe('xfbml.render', (s) => { | ||
this.props.onLoaded() | ||
}), | ||
a.Event.subscribe('xfbml.ready', (s) => { | ||
s.type === 'video' && | ||
s.id === this.playerID && | ||
((this.player = s.instance), | ||
this.player.subscribe('startedPlaying', this.props.onPlay), | ||
this.player.subscribe('paused', this.props.onPause), | ||
this.player.subscribe('finishedPlaying', this.props.onEnded), | ||
this.player.subscribe('startedBuffering', this.props.onBuffer), | ||
this.player.subscribe('finishedBuffering', this.props.onBufferEnd), | ||
this.player.subscribe('error', this.props.onError), | ||
this.props.muted ? this.callPlayer('mute') : this.callPlayer('unmute'), | ||
this.props.onReady(), | ||
(document.getElementById(this.playerID).querySelector('iframe').style.visibility = 'visible')) | ||
}) | ||
}) | ||
} | ||
play() { | ||
this.callPlayer('play') | ||
} | ||
pause() { | ||
this.callPlayer('pause') | ||
} | ||
stop() {} | ||
seekTo(e, r = !0) { | ||
this.callPlayer('seek', e), r || this.pause() | ||
} | ||
setVolume(e) { | ||
this.callPlayer('setVolume', e) | ||
} | ||
getDuration() { | ||
return this.callPlayer('getDuration') | ||
} | ||
getCurrentTime() { | ||
return this.callPlayer('getCurrentPosition') | ||
} | ||
getSecondsLoaded() { | ||
return null | ||
} | ||
render() { | ||
const { attributes: e } = this.props.config, | ||
r = { width: '100%', height: '100%' } | ||
return u.default.createElement('div', { | ||
style: r, | ||
id: this.playerID, | ||
className: 'fb-video', | ||
'data-href': this.props.url, | ||
'data-autoplay': this.props.playing ? 'true' : 'false', | ||
'data-allowfullscreen': 'true', | ||
'data-controls': this.props.controls ? 'true' : 'false', | ||
...e, | ||
}) | ||
} | ||
} | ||
o(l, 'displayName', 'Facebook') | ||
o(l, 'canPlay', x.canPlay.facebook) | ||
o(l, 'loopOnEnded', !0) | ||
const M = _(d), | ||
B = v({ __proto__: null, default: M }, [d]) | ||
export { B as F } |
Oops, something went wrong.