optimize translation #1121
test-and-release.yml
on: push
Matrix: adapter-tests
check-and-lint
35s
deploy
0s
Annotations
10 errors
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Replace `"use·strict";(()=>{var·W=(n,e)=>()=>(n&&(e=n(n=0)),e);var·I=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var·F=(n,e,t)=>new·Promise((r,d)=>{var·s=c=>{try{p(t.next(c))}catch(N){d(N)}},f=c=>{try{p(t.throw(c))}catch(N){d(N)}},p=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,f);p((t=t.apply(n,e)).next())});var·H,E=W(()=>{H="1.8.0"});var·R=I(J=>{E();fetch("widgets/openligadb/i18n/translations.json").then(n=>F(J,null,function*(){let·e=yield·n.json();$.extend(!0,systemDictionary,e)}));vis.binds.openligadb={version:H,showVersion:function(){vis.binds.openligadb.version&&(console.log(`Version·openligadb:·${vis.binds.openligadb.version}`),vis.binds.openligadb.version=null)},pivottable2:{createWidget:function(n,e,t,r){let·d=$(`#${n}`);if(!d.length)return·setTimeout(function(){vis.binds.openligadb.pivottable2.createWidget(n,e,t,r)},100);let·s=t["oid-allmatches"]?JSON.parse(vis.states.attr(`${t["oid-allmatches"]}.val`)):[],f=t["oid-currgameday"]?vis.states.attr(`${t["oid-currgameday"]}.val`):1;f=f||1;let·p=t.maxicon||25,c=t.shortname||!1,N=t.onlylogo||!1,x=t.highlight||"",v=vis.binds.openligadb.prepareFilter(x),T=t.sort||"table",y=t.highlightontop||!1;function·k(){vis.binds.openligadb.pivottable2.createWidget(n,e,t,r)}if(t["oid-allmatches"]&&t["oid-currgameday"]&&(vis.editMode||vis.binds.openligadb.bindStates2(d,[t["oid-allmatches"],t["oid-currgameday"]],k)),!s)return;let·u=s.reduce(function(h,g){let·O;Object.prototype.hasOwnProperty.call(h,g.team1.teamName)?O=h[g.team1.teamName]:O={teamName:g.team1.teamName,shortName:g.team1.shortName,teamIconUrl:g.team1.teamIconUrl,gamedays:[]};let·w=vis.binds.openligadb.getResult(g.matchResults),D=Object.prototype.hasOwnProperty.call(w,"pointsTeam1")?w.pointsTeam1:"-",o=Object.prototype.hasOwnProperty.call(w,"pointsTeam2")?w.pointsTeam2:"-";g.group.groupOrderID>f&&(D="-",o="-");let·b={matchDateTime:g.matchDateTime,result:`${D}:${o}`,groupName:g.group.groupName,groupOrderID:g.group.groupOrderID,teamName:g.team2.teamName,shortName:g.team2.shortName,teamIconUrl:g.team2.teamIconUrl};return·O.gamedays[g.team2.teamName]=b,h[g.team1.teamName]=O,h},[]),m=vis.binds.openligadb.table4.calcTable(s,1,f,f),i=[];for(let·h·in·m)i.push(m[h]);if(T=="table"&&(m=i.sort(function(h,g){return·h.points>g.points?-1:g.points>h.points||h.goalDiff<g.goalDiff?1:h.goalDiff>g.goalDiff?-1:0})),T=="name"&&(m=i.sort(function(h,g){let·O=c?h.shortName:h.teamName,w=c?g.shortName:g.teamName;return·O>w?1:O<w?-1:0})),y&&v.map(h=>h.filter).join(";").trim()!=""){let·h=v.map(g=>g.filter).join(";").split(";");h=h.reverse();for(let·g=0;g<h.length;g++){let·O=m.findIndex(function(w){return·w.teamName.toLowerCase().indexOf(h[g].toLowerCase())>=0});O>0&&m.splice(0,0,m.splice(O,1)[0])}}let·a="";a+=` with `'use·strict';⏎(()·=>·{⏎····var·W·=·(n,·e)·=>·()·=>·(n·&&·(e·=·n((n·=·0))),·e);⏎····var·I·=·(n,·e)·=>·()·=>·(e·||·n((e·=·{·exports:·{}·}).exports,·e),·e.exports);⏎····var·F·=·(n,·e,·t)·=>⏎········new·Promise((r,·d)·=>·{⏎············var·s·=·c·=>·{⏎····················try·{⏎························p(t.next(c));⏎····················}·catch·(N)·{⏎························d(N);⏎····················}⏎················},⏎················f·=·c·=>·{⏎····················try·{⏎························p(t.throw(c));⏎····················}·catch·(N)·{⏎························d(N);⏎····················}⏎················},⏎················p·=·c·=>·(c.done·?·r(c.value)·:·Promise.resolve(c.value).then(s,·f));⏎············p((t·=·t.apply(n,·e)).next());⏎········});⏎····var·H,⏎········E·=·W(()·=>·{⏎············H·=·'1.8.0';⏎········});⏎····var·R·=·I(J·=>·{⏎········E();⏎········fetch('widgets/openligadb/i18n/translations.json').then(n·=>⏎············F(J,·null,·function*·()·{⏎················let·e·=·yield·n.json();⏎················$.extend(!0,·systemDictionary,·e);⏎············}),⏎········);⏎········vis.binds.openligadb·=·{⏎············version:·H,⏎············showVersion:·function·()·{⏎················vis.binds.openligadb.version·&&⏎····················(console.log(`Version·openligadb:·${vis.binds.openligadb.version}`),⏎····················(vis.bi
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Statement inside of curly braces should be on next line
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Statement inside of curly braces should be on next line
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Statement inside of curly braces should be on next line
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Statement inside of curly braces should be on next line
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Closing curly brace should be on the same line as opening curly brace or on the line after the previous block
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Statement inside of curly braces should be on next line
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Closing curly brace should be on the same line as opening curly brace or on the line after the previous block
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Closing curly brace should be on the same line as opening curly brace or on the line after the previous block
|
check-and-lint:
widgets/openligadb/js/openligadb-dist.js#L1
Statement inside of curly braces should be on next line
|