refact: removed non core files
This commit is contained in:
		
							parent
							
								
									1055b8b9dc
								
							
						
					
					
						commit
						921154f1d2
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1,2 +1,3 @@
 | 
				
			|||||||
node_modules
 | 
					node_modules
 | 
				
			||||||
 | 
					/tests/testData.js
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										37
									
								
								cli/index.js
									
									
									
									
									
								
							
							
						
						
									
										37
									
								
								cli/index.js
									
									
									
									
									
								
							@ -1,37 +0,0 @@
 | 
				
			|||||||
import Table from '../core/entities/Table.js'
 | 
					 | 
				
			||||||
import Node from '../core/entities/Node.js'
 | 
					 | 
				
			||||||
import FilterNode from '../core/entities/nodes/FilterNode.js'
 | 
					 | 
				
			||||||
import testData from './testData.js'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const tableInput = {
 | 
					 | 
				
			||||||
  id: 'XYZABC',
 | 
					 | 
				
			||||||
  label: 'SC Total Receipts',
 | 
					 | 
				
			||||||
  rows: testData
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
let receipts = {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
try {
 | 
					 | 
				
			||||||
  receipts = new Table(tableInput)
 | 
					 | 
				
			||||||
} catch (err) {
 | 
					 | 
				
			||||||
  console.log(err)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
let filterNode = {}
 | 
					 | 
				
			||||||
try {
 | 
					 | 
				
			||||||
  filterNode = new FilterNode({
 | 
					 | 
				
			||||||
    id: 'ERTHJNHBGFDS',
 | 
					 | 
				
			||||||
    label: 'Filter Node',
 | 
					 | 
				
			||||||
    tables: receipts,
 | 
					 | 
				
			||||||
    filterParams: {
 | 
					 | 
				
			||||||
      siteName: 'Seewee Road DMS',
 | 
					 | 
				
			||||||
      fieldMonitorUserCertificationNumber: '9YW6ZAY'
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    type: 'EQUAL'
 | 
					 | 
				
			||||||
  })
 | 
					 | 
				
			||||||
  console.log(filterNode.tables[0].getRows().length)
 | 
					 | 
				
			||||||
  console.log(filterNode.export().length)
 | 
					 | 
				
			||||||
} catch (err) {
 | 
					 | 
				
			||||||
  console.log(err)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
							
								
								
									
										553712
									
								
								cli/testData.js
									
									
									
									
									
								
							
							
						
						
									
										553712
									
								
								cli/testData.js
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 53 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 21 KiB  | 
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user