File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,21 @@ const operatorsMap = {
1818	$hash : ( )  =>  window . location . hash , 
1919	$subdomain : ( )  =>  getSubdomain ( )  ||  "" , 
2020	$object_id : ( )  =>  ObjectId ( ) . toString ( ) , 
21- 	"ObjectId()" : ( )  =>  ObjectId ( ) . toString ( ) 
21+ 	"ObjectId()" : ( )  =>  ObjectId ( ) . toString ( ) , 
22+ 	$scrollWidth : ( element )  =>  element ?. scrollWidth  ||  0 , 
23+ 	$relativePath : ( )  =>  { 
24+ 		let  depth  =  window . location . pathname . split ( "/" ) . length  -  1 ; 
25+ 		return  depth  >  0  ? "../" . repeat ( depth )  : "./" ; 
26+ 	} , 
27+ 	$path : ( )  =>  { 
28+ 		let  path  =  window . location . pathname ; 
29+ 
30+ 		if  ( path . split ( "/" ) . pop ( ) . includes ( "." ) )  { 
31+ 			path  =  path . replace ( / \/ [ ^ \/ ] + $ / ,  "/" ) ; 
32+ 		} 
33+ 
34+ 		return  path  ===  "/"  ? ""  : path ; 
35+ 	} 
2236} ; 
2337
2438function  processOperators ( element ,  value ,  exclude  =  [ ] )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments