1resetItemsFromBrowserStorage(); 2 3const getBackendServerUrl = () => { 4 return '/api/v1/'; 5 // const serverUrl = parseCookieForDomain(); 6 // console.log('serverUrl :>> ', serverUrl); 7 // return serverUrl; 8 // For Local Development 9 // return `http://${projectSubDomain}.prodeless.com:5002/api/v1/`; 10}; 11 12const parseCookieInfo = () => { 13 const parsedCookie = document.cookie 14 .split(';') 15 .map((v) => v.split('=')) 16 .reduce((acc, v) => { 17 acc[decodeURIComponent(v[0].trim())] = decodeURIComponent(v[1] ? v[1].trim() : ''); 18 return acc; 19 }, {}); 20 return parsedCookie; 21}; 22 23const parseCookieForDomain = () => { 24 const parsedCookie = parseCookieInfo(); 25 const domain = parsedCookie['projectSeoName']; 26 let environment = parsedCookie['environment']; 27 console.log('environment :>> ', environment); 28 environment = environment ? `${environment}.` : ''; 29 30 //Check if request is coming from our domain 31 const hostName = window.location.hostname; 32 console.log('hostName :>> ', hostName); 33 const nonCustomUrl = `https://${domain}.${environment}webkonnect.site/api/v1/`; 34 console.log('nonCustomUrl :>> ', nonCustomUrl); 35 if (hostName.includes('webkonnect.site')) { 36 return nonCustomUrl; 37 } 38 //TODO: Test for custom domain 39 if (apiDomainName && apiDomainName !== 'undefined' && apiDomainName !== undefined) { 40 return `https://${apiDomainName}/api/v1/`; 41 } else { 42 return nonCustomUrl; 43 } 44}; 45 46function resetItemsFromBrowserStorage() { 47 const RESET_SESSION_KEYS = '__resetK'; 48 let resetKeys = sessionStorage.getItem(RESET_SESSION_KEYS); 49 if (resetKeys) resetKeys = resetKeys.split(','); 50 if (resetKeys) { 51 if (Array.isArray(resetKeys) && resetKeys.length) { 52 resetKeys.forEach((key) => sessionStorage.removeItem(key)); 53 } 54 } 55 56 const RESET_SESSION_KEYS_DETAIL_PAGE = '__resetK_dp'; 57 let resetKeysDetailPage = sessionStorage.getItem(RESET_SESSION_KEYS_DETAIL_PAGE); 58 if (resetKeysDetailPage) resetKeysDetailPage = resetKeysDetailPage.split(','); 59 if (resetKeysDetailPage) { 60 if (Array.isArray(resetKeysDetailPage) && resetKeysDetailPage.length) { 61 resetKeysDetailPage.forEach((key) => sessionStorage.removeItem(key)); 62 } 63 } 64} 65 66const imageServerUrl = () => { 67 const parsedCookie = parseCookieInfo(); 68 const S3URL = parsedCookie['S3URL']; 69 console.log('S3URL :>> ', S3URL); 70 if (!S3URL) return ''; 71 return ensureTrailingSlash(S3URL); 72}; 73const ensureTrailingSlash = (url) => (url.endsWith('/') ? url : `${url}/`); 74 75const getWebSocketUrl = () => { 76 // const webSocketUrl = SERVER_URL.replace(/:\/\/([^:/]+)(:\d+)?\/api\/v1\/?$/, '://$1:6003'); //For Local Development 77 const webSocketUrl = SERVER_URL.replace(/\/api\/v1\/?$/, ''); 78 return webSocketUrl; 79}; 80 81const summernoteFontsArray = [ 82 'Arial', 83 'Arial Black', 84 'Comic Sans MS', 85 'Courier New', 86 'Helvetica', 87 'Impact', 88 'Times New Roman', 89 'Trebuchet MS', 90 'Verdana', 91 'Georgia', 92 'Open Sans', 93 'B612', 94 'Roboto', 95 'Ubuntu', 96 'ABeeZee', 97 'Spartan', 98 'Bungee', 99 'Dancing Script', 100 'Lato', 101 'Lobster', 102 'Lobster Two', 103 'Lora', 104 'Montserrat', 105 'Montserrat Alternates', 106 'Nunito', 107 'Nunito Sans', 108 'Open Sans Condensed', 109 'PT Sans', 110 'PT Serif', 111 'Raleway', 112 'Roboto Condensed', 113 'Roboto Mono', 114 'Roboto Slab', 115 'Alegreya', 116 'Alegreya Sans', 117 'Merriweather', 118 'Merriweather Sans', 119 'Quattrocento', 120 'Quattrocento Sans', 121 'Arvo', 122 'Copse', 123 'Cutive', 124 'Sanchez', 125 'Scope One', 126 'Slabo 27px', 127 'Trocchi', 128 'Vesper Libre', 129 'JetBrains Mono', 130 'Noto Sans', 131 'Noto Serif', 132 'Playfair Display', 133 'Poppins', 134 'Rubik', 135 'Source Code Pro', 136 'Source Sans Pro', 137 'Source Serif Pro', 138 'Barlow', 139 'Barlow Condensed', 140 'Barlow Semi Condensed', 141 'Fira Code', 142 'Fira Mono', 143 'Fira Sans', 144 'Fira Sans Condensed', 145 'Fira Sans Extra Condensed', 146 'Quicksand', 147 'Advent Pro', 148 'Bitter', 149 'Changa', 150 'Changa One', 151 'Exo', 152 'Exo 2', 153 'Great Vibes', 154 'Inconsolata', 155 'Kaushan Script', 156 'Nova Cut', 157 'Nova Flat', 158 'Nova Mono', 159 'Nova Oval', 160 'Nova Round', 161 'Nova Script', 162 'Nova Slim', 163 'Nova Square', 164 'Oswald', 165 'Oxygen', 166 'Oxygen Mono', 167 'Sacramento', 168 'Abril Fatface', 169 'Aldrich', 170 'Balsamiq Sans', 171 'Bebas Neue', 172 'Berkshire Swash', 173 'Bilbo', 174 'Carter One', 175 'Castoro', 176 'Cinzel', 177 'Federo', 178 'Italianno', 179 'Josefin Sans', 180 'Josefin Slab', 181 'Limelight', 182 'Oregano', 183 'Padauk', 184 'Pattaya', 185 'Prata', 186 'Vollkorn SC', 187 'Yesteryear', 188 'Abel', 189 'Aladin', 190 'B612 Mono', 191 'Black Han Sans', 192 'Bungee Hairline', 193 'Bungee Inline', 194 'Bungee Outline', 195 'Bungee Shade', 196 'Delius', 197 'Delius Swash Caps', 198 'Delius Unicase', 199 'Julee', 200 'Mako', 201 'Oleo Script', 202 'Oleo Script Swash Caps', 203 'Space Grotesk', 204 'Space Mono', 205 'Ubuntu Condensed', 206 'Ubuntu Mono', 207 'Vollkorn', 208 'Work Sans', 209 'Zeyada', 210 'Zhi Mang Xing', 211 'Zilla Slab', 212]; 213 214const summernoteFontsSizeArray = [ 215 '8', 216 '10', 217 '12', 218 '14', 219 '16', 220 '18', 221 '20', 222 '24', 223 '28', 224 '32', 225 '36', 226 '40', 227 '48', 228 '56', 229 '64', 230 '72', 231];
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.