1let api = `${apiPathEnv}/api`; 2 3const Service = { 4 5 get(url, params, cb = null){ 6 7 params.Auth = Auth; 8 $.ajax({ 9 type: "POST", 10 url: `${api}${url}`, 11 data: JSON.stringify(params), 12 success: function(res) { 13 cb(res); 14 } 15 }); 16 }, 17 18 test(){ 19 console.log('framework test passed'); 20 }, 21 22 uploadImage(formData, cb){ 23 console.log('upload started'); 24 formData.append('Auth', JSON.stringify(Auth)); 25 fetch(`${api}/media/uploadImages`, 26 { 27 method: 'post', 28 //headers: {'Content-Type':'application/x-www-form-urlencoded'}, 29 body: formData 30 }) 31 .then(res => res.json()) 32 .then( 33 (result) => { 34 //console.log(result); 35 cb(result); 36 // this.setState({image: result.data}); 37 //this.getNews(); 38 }, 39 (error) => { 40 console.log('error mus') 41 } 42 ) 43 }, 44 45} 46
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.