tests/bundles/tastoria_1.2.1/dist/build/q-a3d908d9.js   A
last analyzed

Complexity

Total Complexity 7
Complexity/F 1.17

Size

Lines of Code 1
Function Count 6

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 7
eloc 1
mnd 1
bc 1
fnc 6
dl 0
loc 1
rs 10
bpm 0.1666
cpm 1.1666
noi 7
c 0
b 0
f 0
1
import{i as r,C as n,v as o,S as _,_ as l,A as u}from"./q-9157976a.js";import{a as c}from"./q-e5403bfa.js";import{s as i}from"./q-6973d461.js";const d="_header_857gn_1",p="_avatar_857gn_9",m="_menu_857gn_17",a={header:d,avatar:p,menu:m},v=()=>{const s=r(i),e=r(c);return n("header",null,{class:a.header},[n("div",null,{class:a.menu,onClick$:o(()=>l(()=>Promise.resolve().then(()=>h),void 0),"s_3dS2GpIdYLw",[e])},"☰",3,null),s.user.value?n("img",null,{class:a.avatar,crossOrigin:"anonymous",src:_(t=>t.user.value.avatar,[s])},null,3,"oB_0"):null],1,"oB_1")},g=s=>{const[e]=u();return e.isMenuOpened=!e.isMenuOpened},h=Object.freeze(Object.defineProperty({__proto__:null,s_3dS2GpIdYLw:g,s_CfLs6mTcYqk:v},Symbol.toStringTag,{value:"Module"}));export{g as s_3dS2GpIdYLw,v as s_CfLs6mTcYqk};
0 ignored issues
show
Bug introduced by
The variable Symbol seems to be never declared. If this is a global, consider adding a /** global: Symbol */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Unused Code introduced by
The constant h seems to be never used. Consider removing it.
Loading history...
Coding Style introduced by
Consider using undefined instead of void(0). It is equivalent and more straightforward to read.
Loading history...
Unused Code introduced by
The parameter s is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Bug introduced by
The local (let) variable h is used before it is defined. This will cause a reference error.
Loading history...
Bug introduced by
The variable s_CfLs6mTcYqk seems to be never declared. If this is a global, consider adding a /** global: s_CfLs6mTcYqk */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Bug introduced by
The variable s_3dS2GpIdYLw seems to be never declared. If this is a global, consider adding a /** global: s_3dS2GpIdYLw */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
2