You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fipamo/themes/default/assets/js/start.min.map

1 line
78 KiB
Plaintext

{"version":3,"sources":["tools/events/EventEmitter.jsx","tools/events/DataEvent.jsx","tools/utilities/DataUtils.jsx","tools/utilities/StringUtils.jsx","tasks/ProjectFolio.jsx","tools/effects/TextEffects.jsx","tools/effects/Animate.jsx","tasks/BlogPost.jsx","controllers/DisplayAdminBlog.jsx","tasks/TaskFipamo.jsx","controllers/DisplayAdminFipamo.jsx","controllers/DisplayAdmin.jsx","controllers/DisplayIndex.jsx","tasks/Mailer.jsx","controllers/DisplayWork.jsx","controllers/DisplayBlog.jsx","controllers/DisplayFi.jsx","controllers/DisplayClient.jsx","controllers/DisplayManager.jsx","Base.jsx","Start.jsx"],"names":["EventEmitter","listeners","Map","label","callback","has","set","get","push","isFunction","obj","index","length","reduce","i","listener","splice","args","forEach","REQUEST_GOOD","REQUEST_LAME","IMG_REQUEST_GOOD","IMG_REQUEST_LAME","SETTINGS_LOADED","HTML_LOADED","ARCHIVES_JSON_LOADED","ARCHIVES_PAGE_LOADED","ARCHIVES_ENTRY_LOADED","PROJECT_UPDATED","PROJECT_ADDED","PROJECTS_SORTED","DataEvent","REQUEST_TYPE_POST","REQUEST_TYPE_GET","REQUEST_TYPE_PUT","REQUEST_TYPE_DELETE","CONTENT_TYPE_JSON","CONTENT_TYPE_FORM","DataUtils","self","requestURL","eventType","requestType","contentType","requestData","Promise","resolve","reject","request","XMLHttpRequest","upload","onprogress","handleLoadProgress","open","onload","e","status","setRequestHeader","send","JSON","stringify","url","responseType","response","Error","statusText","onerror","src","body","document","querySelector","myImage","Image","crossOrigin","imgLoad","then","imageURL","window","URL","createObjectURL","percentComplete","Math","ceil","loaded","total","StringUtils","string","clean","replace","toLowerCase","quote_style","optTemp","noquotes","toString","OPTS","concat","ENT_HTML_QUOTE_SINGLE","ProjectFolio","folio","dataUtils","edit","uploadFiles","projectData","FormData","files","file","type","match","append","name","category","getElementById","project_form","forms","namedItem","title","value","cleanString","tools","description","options","selectedIndex","text","postURL","postEventType","postID","getAttribute","catch","err","oEvent","parse","message","console","log","reset","valid","entry_form","price","TexEffects","offset","complete","scrambleText","ScrambleText","timeOffset","chars","start","Animate","properties","animation","anime","BlogPost","postData","txt","createElement","innerHTML","POST_UPDATED","POST_ADDED","DisplayAdminBlog","reframe","object","targets","duration","opacity","easing","style","display","visibility","TextEffects","scramble","addEventListener","handleDragOver","handleDrop","handleClicked","f","preventDefault","target","submitPost","note","stopPropagation","dataTransfer","dropEffect","reader","FileReader","theFile","span","result","escape","join","appendChild","readAsDataURL","DisplayBlog","TaskFipamo","link_data","savedID","LINK_UPDATED","LINK_ADDED","DisplayAdminFipamo","submitLink","DisplayAdmin","section","page","current","DisplayIndex","Mailer","element","sendMail","mailData","requestForm","serviceType","email","client","DisplayID","DisplayWork","mailer","sortItemList","showFolioImages","workItems","children","trans","images","DisplayFi","DisplayClient","DisplayManager","currentDisplay","urlPieces","split","chooseDisplay","Base","admin","displayManager","settings","base"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAMA;;;AAGF;AACA;AACA;AACA,0BACA;AAAA;;AACI,SAAKC,SAAL,GAAiB,IAAIC,GAAJ,EAAjB;AACH,IACD;AACA;AACA;;;;;gCACYC,OAAOC,UAAU;AACzB,WAAKH,SAAL,CAAeI,GAAf,CAAmBF,KAAnB,KAA6B,KAAKF,SAAL,CAAeK,GAAf,CAAmBH,KAAnB,EAA0B,EAA1B,CAA7B;AACA,WAAKF,SAAL,CAAeM,GAAf,CAAmBJ,KAAnB,EAA0BK,IAA1B,CAA+BJ,QAA/B;AACH;;;mCAEcD,OAAOC,UAAU;AAC5B,UAAIK,UAAU,GAAG,SAAbA,UAAa,CAASC,GAAT,EAAc;AAC3B,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CAACuE,KAAL,CAAWnE,QAAQ,CAAC,SAAD,CAAR,CAAoBA,QAA/B,CAAhB;;AACA,QAAA,KAAI,CAACkF,KAAL,GAFgB,CAGhB;;AAEH,OANL,EAOKlB,KAPL,CAOW,UAACC,GAAD,EAAS,CACZ;AACH,OATL;AAUH,MAED;AACA;AACA;;;;;;;;;;;ACzCJ;;;;AAEA3D,QAAQ,CAACoG,gBAAT,CAA0B,kBAA1B,EAA8C,YAAW;AAErD,MAAI8D,IAAI,GAAG,IAAIJ,aAAJ,EAAX;AACH,CAHD,EAGG,KAHH","file":"start.min.map","sourceRoot":"../../src/com","sourcesContent":["class EventEmitter\n{\n\n //--------------------------\n // constructor\n //--------------------------\n constructor()\n {\n this.listeners = new Map();\n }\n //--------------------------\n // methods\n //--------------------------\n addListener(label, callback) {\n this.listeners.has(label) || this.listeners.set(label, []);\n this.listeners.get(label).push(callback);\n }\n\n removeListener(label, callback) {\n var isFunction = function(obj) {\n return typeof obj == 'function' || false;\n };\n\n var listeners = this.listeners.get(label),\n index;\n\n if (listeners && listeners.length) {\n index = listeners.reduce((i, listener, index) => {\n return (isFunction(listener) && listener === callback)\n ? i = index\n : i;\n }, -1);\n\n if (index > -1) {\n listeners.splice(index, 1);\n this.listeners.set(label, listeners);\n return true;\n }\n }\n return false;\n }\n\n emitEvent(label, ...args) {\n var listeners = this.listeners.get(label);\n if (listeners && listeners.length) {\n listeners.forEach((listener) => {\n listener(...args);\n });\n return true;\n }\n return false;\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default EventEmitter\n","export const REQUEST_GOOD = 'requestGood';\nexport const REQUEST_LAME = 'requestLame';\nexport const IMG_REQUEST_GOOD = 'imgRequestGood';\nexport const IMG_REQUEST_LAME = 'imgRequestLame';\nexport const SETTINGS_LOADED = 'dataLoaded';\nexport const HTML_LOADED = 'htmlLoaded';\nexport const ARCHIVES_JSON_LOADED = 'archivesJSONLoaded';\nexport const ARCHIVES_PAGE_LOADED = 'archivesPAGELoaded';\nexport const ARCHIVES_ENTRY_LOADED = 'archivesEntryLoaded';\nexport const PROJECT_UPDATED = 'projectUpdated';\nexport const PROJECT_ADDED = 'projectAdded';\nexport const PROJECTS_SORTED = 'projectsSorted';\n\nclass DataEvent\n{\n\n //--------------------------\n // methods\n //--------------------------\n\n\n\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default new DataEvent\n","export const REQUEST_TYPE_POST = \"POST\";\nexport const REQUEST_TYPE_GET = \"GET\";\nexport const REQUEST_TYPE_PUT = \"PUT\";\nexport const REQUEST_TYPE_DELETE = \"DELETE\";\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\nimport EventEmitter from '../events/EventEmitter.jsx';\nimport * as DataEvent from '../events/DataEvent.jsx';\nclass DataUtils extends EventEmitter {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n super();\n var self = this;\n }\n //--------------------------\n // methods\n //--------------------------\n request(requestURL, eventType, requestType = REQUEST_TYPE_GET, contentType = CONTENT_TYPE_JSON, requestData = null) {\n var self = this;\n return new Promise(function(resolve, reject) {\n var request = new XMLHttpRequest();\n request.upload.onprogress = self.handleLoadProgress;\n request.open(requestType, requestURL, true);\n request.onload = function(e) {\n if (request.status == 200) {\n resolve({\n request,\n eventType\n });\n } else {\n reject({\n request,\n eventType\n });\n }\n ;\n };\n if (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n switch (contentType) {\n case CONTENT_TYPE_JSON:\n request.setRequestHeader(\"Content-type\", \"application/\" + contentType);\n request.send(JSON.stringify(requestData));\n break;\n case CONTENT_TYPE_FORM:\n request.send(requestData);\n break;\n }\n } else {\n request.send();\n }\n })\n }\n imgLoad(url) {\n 'use strict';\n // Create new promise with the Promise() constructor;\n // This has as its argument a function with two parameters, resolve and reject\n return new Promise(function(resolve, reject) {\n // Standard XHR to load an image\n var request = new XMLHttpRequest();\n request.open('GET', url);\n request.responseType = 'blob';\n // When the request loads, check whether it was successful\n request.onload = function() {\n if (request.status === 200) {\n // If successful, resolve the promise by passing back the request response\n resolve(request.response);\n } else {\n // If it fails, reject the promise with a error message\n reject(new Error('Image didn\\'t load successfully; error code:' + request.statusText));\n }\n };\n request.onerror = function() {\n // Also deal with the case when the entire request fails to begin with\n // This is probably a network error, so reject the promise with an appropriate message\n reject(new Error('There was a network error.'));\n };\n // Send the request\n request.send();\n });\n }\n loadImage(src) {\n 'use strict';\n let self = this;\n return new Promise(function(resolve, reject) {\n // Get a reference to the body element, and create a new image object\n var body = document.querySelector('body'),\n myImage = new Image();\n myImage.crossOrigin = \"\"; // or \"anonymous\"\n // Call the function with the URL we want to load, but then chain the\n // promise then() method on to the end of it. This contains two callbacks\n self.imgLoad(src).then(function(response) {\n // The first runs when the promise resolves, with the request.reponse specified within the resolve() method.\n var imageURL = window.URL.createObjectURL(response);\n resolve(imageURL);\n //$('background-content').setStyle('background-image', 'url('+imageURL+')') //myImage.src = imageURL;\n //console.log(imageURL);\n //body.appendChild(myImage);\n // The second runs when the promise is rejected, and logs the Error specified with the reject() method.\n }, function(Error) {\n reject(Error)\n });\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n handleLoadProgress(e) {\n var percentComplete = Math.ceil((e.loaded / e.total) * 100);\n //console.log(percentComplete);\n }\n}\nexport default DataUtils;\n","class StringUtils\n{\n\n //--------------------------\n // constructor\n //--------------------------\n constructor()\n {}\n //--------------------------\n // methods\n //--------------------------\n cleanString(string)\n {\n var clean = string.replace(/(^\\-+|[^a-zA-Z0-9\\/_| -]+|\\-+$)/g, '').toLowerCase().replace(/[\\/_| -]+/g, '-');\n return clean;\n }\n\n decodeHTML(string, quote_style) {\n var optTemp = 0,\n i = 0,\n noquotes = false;\n if (typeof quote_style === 'undefined') {\n quote_style = 2;\n }\n string = string.toString().replace(/&lt;/g, '<').replace(/&gt;/g, '>');\n var OPTS = {\n 'ENT_NOQUOTES': 0,\n 'ENT_HTML_QUOTE_SINGLE': 1,\n 'ENT_HTML_QUOTE_DOUBLE': 2,\n 'ENT_COMPAT': 2,\n 'ENT_QUOTES': 3,\n 'ENT_IGNORE': 4\n };\n if (quote_style === 0) {\n noquotes = true;\n }\n if (typeof quote_style !== 'number') { // Allow for a single string or an array of string flags\n quote_style = [].concat(quote_style);\n for (i = 0; i < quote_style.length; i++) {\n // Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n if (OPTS[quote_style[i]] === 0) {\n noquotes = true;\n } else if (OPTS[quote_style[i]]) {\n optTemp = optTemp | OPTS[quote_style[i]];\n }\n }\n quote_style = optTemp;\n }\n if (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {\n string = string.replace(/&#0*39;/g, \"'\"); // PHP doesn't currently escape if more than one 0, but it should\n // string = string.replace(/&apos;|&#x0*27;/g, \"'\"); // This would also be useful here, but not a part of PHP\n }\n if (!noquotes) {\n string = string.replace(/&quot;/g, '\"');\n }\n // Put this in last place to avoid escape being double-decoded\n string = string.replace(/&amp;/g, '&');\n return string;\n }\n\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default StringUtils\n","import DataUtils, { REQUEST_TYPE_GET, REQUEST_TYPE_PUT, REQUEST_TYPE_POST, REQUEST_TYPE_DELETE, CONTENT_TYPE_JSON, CONTENT_TYPE_FORM } from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport StringUtils from '../tools/utilities/StringUtils.jsx';\nclass ProjectFolio {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n var folio = [];\n this.dataUtils = new DataUtils();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n\n submitProject(edit, uploadFiles) {\n let self = this;\n return new Promise(function(resolve, reject) {\n //collect form data\n //if(!this.validateForm())\n var projectData = new FormData();\n //let projectImages = document.getElementById('projectImages');\n //var fileSelect = projectImages;\n var files = uploadFiles;\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n // Check the file type.\n if (!file.type.match('image.*')) {\n continue;\n }\n // Add the file to the request.\n projectData.append('folioImages', file, file.name);\n }\n var category = document.getElementById(\"content_category\");\n let project_form = document.forms.namedItem(\"folio-project\");\n projectData.append(\"title\", project_form.title.value);\n projectData.append('slug', new StringUtils().cleanString(project_form.title.value));\n projectData.append(\"tools\", project_form.tools.value);\n projectData.append(\"url\", project_form.url.value);\n projectData.append(\"description\", project_form.description.value);\n projectData.append(\"type\", type.options[type.selectedIndex].text);\n\n let postURL\n let postEventType\n \n if (edit) {\n let postID = document.getElementById('btn-submit').getAttribute('data-id');\n postURL = \"/api/folio/update/\" + postID;\n postEventType = DataEvent.PROJECT_UPDATED;\n } else {\n postURL = \"/api/folio/add\";\n postEventType = DataEvent.PROJECT_ADDED;\n }\n\n self.dataUtils.request(postURL, postEventType, REQUEST_TYPE_POST, CONTENT_TYPE_FORM, projectData)\n .then((response) => {\n resolve({\n response\n })\n }).catch((err) => {\n reject({\n err\n });\n })\n });\n }\n\n addNewProject(uploadFiles) {\n\n var request = new XMLHttpRequest();\n request.open(\"POST\", \"/folio\", true);\n request.onload = function(oEvent) {\n if (request.status == 200) {\n let response = JSON.parse(request.response);\n if (response.message == \"New Content Entered\") {\n console.log(\"SET\");\n project_form.reset();\n } else {\n console.log(response.message);\n }\n } else {\n //console.log(request);\n }\n };\n request.send(projectData);\n }\n validateForm() {\n let valid = false;\n if (this.entry_form.title.value == \"\" || this.entry_form.price.value == \"\" || this.entry_form.description == \"\") {\n return valid;\n } else {\n valid = true;\n return valid;\n }\n }\n//--------------------------\n// event handlers\n//--------------------------\n}\nexport { ProjectFolio as default }\n","class TexEffects {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {}\n //--------------------------\n // methods\n //--------------------------\n scramble(obj, offset, complete)\n {\n var scrambleText = new ScrambleText(obj, {\n timeOffset: offset,\n chars: [\n '安',\n '以',\n '宇',\n '衣',\n '於',\n '加',\n '幾',\n '久',\n '計',\n '己',\n '左',\n '之',\n '寸',\n '世',\n '曽',\n '太',\n '知',\n '川',\n '天',\n '止',\n '奈',\n '仁',\n '奴',\n '称',\n '乃',\n '波',\n '比',\n '不',\n '部',\n '保',\n '末',\n '美',\n '武',\n '女',\n '毛',\n '也',\n '為',\n '由',\n '恵',\n '与',\n '良',\n '利',\n '留',\n '礼',\n '呂',\n '和',\n '遠',\n '无'\n ],\n callback: complete\n }).start();\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default TexEffects\n","import EventEmitter from '../events/EventEmitter.jsx';;\n\nclass Animate extends EventEmitter {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n super();\n }\n //--------------------------\n // methods\n //--------------------------\n object(properties) {\n var animation = anime(\n properties\n );\n //animation.start(properties);\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default Animate\n","import DataUtils, { REQUEST_TYPE_GET, REQUEST_TYPE_PUT, REQUEST_TYPE_POST, REQUEST_TYPE_DELETE, CONTENT_TYPE_JSON, CONTENT_TYPE_FORM } from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport StringUtils from '../tools/utilities/StringUtils.jsx';\nclass BlogPost {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n var folio = [];\n this.dataUtils = new DataUtils();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n\n submitPost(edit, uploadFiles) {\n let self = this;\n return new Promise(function(resolve, reject) {\n //collect form data\n //if(!this.validateForm())\n var postData = new FormData();\n //let projectImages = document.getElementById('projectImages');\n //var fileSelect = projectImages;\n var files = uploadFiles;\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n // Check the file type.\n if (!file.type.match('image.*')) {\n continue;\n }\n // Add the file to the request.\n postData.append('feature_image', file, file.name);\n }\n //var category = document.getElementById(\"content_category\");\n //let project_form = document.forms.namedItem(\"folio-project\");\n var txt = document.createElement(\"textarea\");\n txt.innerHTML = document.getElementById('entry_text').innerHTML;\n console.log(txt);\n postData.append(\"title\", document.getElementById('entry_title').value);\n postData.append('slug', new StringUtils().cleanString(document.getElementById('entry_title').value));\n postData.append(\"entry_plaintext\", txt.value);\n postData.append(\"tags\", document.getElementById('entry_tags').value);\n let postURL;\n let postEventType;\n if (edit) {\n let postID = document.getElementById('post-sumbit-btn').getAttribute('data-id');\n console.log(\"POST ID: \"+postID);\n postURL = \"/api/blog/update/\" + postID;\n postEventType = DataEvent.POST_UPDATED;\n \n } else {\n postURL = \"/api/blog/add\";\n postEventType = DataEvent.POST_ADDED;\n }\n self.dataUtils.request(postURL, postEventType, REQUEST_TYPE_POST, CONTENT_TYPE_FORM, postData)\n .then((response) => {\n resolve({\n response\n })\n }).catch((err) => {\n reject({\n err\n });\n })\n });\n }\n\n validateForm() {\n let valid = false;\n if (this.entry_form.title.value == \"\" || this.entry_form.price.value == \"\" || this.entry_form.description == \"\") {\n return valid;\n } else {\n valid = true;\n return valid;\n }\n }\n//--------------------------\n// event handlers\n//--------------------------\n}\nexport { BlogPost as default }\n","//TOOLS\nimport DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nimport BlogPost from '../tasks/BlogPost.jsx';\nclass DisplayAdminBlog {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n reframe('iframe');\n this.uploadFiles;\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n new Animate().object({\n targets: document.getElementById('loader'),\n duration: 300,\n opacity: 0,\n easing: 'easeInOutQuad',\n complete: function() {\n document.getElementById('loader').style.display = 'none';\n document.getElementById('loader').style.visibility = 'hidden';\n new Animate().object({\n targets: document.getElementById('header'),\n duration: 10,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function() {\n new TextEffects().scramble(document.getElementById('the-title'), 50, function() {\n\n if (document.getElementById('the-intro'))\n document.getElementById('the-intro').style.opacity = 1;\n if (document.getElementById('blog-entry'))\n document.getElementById('blog-entry').style.opacity = 1;\n //START SEcTION\n });\n }\n });\n }\n });\n\n if (document.getElementById('featured-image-drop')) {\n console.log(\"HERE\");\n document.getElementById('featured-image-drop').addEventListener('dragover', this.handleDragOver, false);\n document.getElementById('featured-image-drop').addEventListener('drop', this.handleDrop, false);\n document.getElementById('featured-click').addEventListener('change', this.handleClicked, false);\n document.getElementById(\"post-sumbit-btn\").addEventListener('click', f => {\n f.preventDefault();\n let edit = false;\n if (f.target.getAttribute('data-action') == 'blog-update')\n edit = true;\n console.log('clicked')\n new BlogPost().submitPost(edit, DisplayAdminBlog.uploadFiles).then((response) => {\n let note = JSON.parse(response['response']['request'].response);\n console.log(note.message);\n }).catch((err) => {\n console.log(err)\n });\n });\n }\n }\n\n //--------------------------\n // event handlers\n //--------------------------\n handleDragOver(e) {\n e.stopPropagation();\n e.preventDefault();\n e.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n }\n handleClicked(e) {\n e.stopPropagation();\n e.preventDefault();\n console.log(\"IMAGES \" + e.target.files);\n DisplayAdminBlog.uploadFiles = e.target.files;\n for (var i = 0, f; f = DisplayAdminBlog.uploadFiles[i]; i++) {\n // Only process image files.\n if (!f.type.match('image.*')) {\n continue;\n }\n var reader = new FileReader();\n // Closure to capture the file information.\n reader.onload = (function(theFile) {\n return function(f) {\n // Render thumbnail.\n var span = document.createElement('span');\n span.innerHTML = [\n '<img src=\"',\n f.target.result,\n '\" title=\"',\n escape(theFile.name),\n '\"/>'\n ].join('');\n //document.getElementById('featured-image-drop').insertBefore(span, null);\n document.getElementById('featured-image-drop').innerHTML = '';\n document.getElementById('featured-image-drop').appendChild(span);\n };\n })(f);\n // Read in the image file as a data URL.\n reader.readAsDataURL(f);\n }\n\n }\n\n handleDrop(e) {\n e.stopPropagation();\n e.preventDefault();\n DisplayBlog.uploadFiles = e.dataTransfer.files;\n //console.log(MemberArea.uploadFiles.length);\n for (var i = 0, f; f = DisplayBlog.uploadFiles[i]; i++) {\n // Only process image files.\n if (!f.type.match('image.*')) {\n continue;\n }\n var reader = new FileReader();\n // Closure to capture the file information.\n reader.onload = (function(theFile) {\n return function(f) {\n // Render thumbnail.\n var span = document.createElement('span');\n span.innerHTML = [\n '<img src=\"',\n f.target.result,\n '\" title=\"',\n escape(theFile.name),\n '\"/>'\n ].join('');\n //document.getElementById('featured-image-drop').insertBefore(span, null);\n document.getElementById('featured-image-drop').innerHTML = '';\n document.getElementById('featured-image-drop').appendChild(span);\n };\n })(f);\n // Read in the image file as a data URL.\n reader.readAsDataURL(f);\n }\n }\n\n}\nDisplayAdminBlog.uploadFiles = [];\nexport {\n DisplayAdminBlog as\n default\n}","import DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport StringUtils from '../tools/utilities/StringUtils.jsx';\nclass TaskFipamo {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n var folio = [];\n this.dataUtils = new DataUtils();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n\n submitLink(edit) {\n let self = this;\n return new Promise(function (resolve, reject) {\n let link_data = '';\n let postURL;\n let postEventType;\n console.log('EDIT: '+edit);\n if (edit) {\n\n //TODO: FIX TAGS,NEEDS TO BE SUBMITTED AS AN ARRAY\n\n link_data = {\n \"title\": document.getElementById('saved_title').value,\n \"tags\": document.getElementById('saved_tags').value,\n \"image\": document.getElementById('saved_image').value \n };\n let savedID = document.getElementById('saved-sumbit-btn').getAttribute('data-id');\n postURL = \"/api/bookmarks/update/\" + savedID;\n postEventType = DataEvent.LINK_UPDATED;\n console.log('url'+postURL);\n } else {\n link_data = {\n \"url\": document.getElementById('saved_text').value\n };\n\n postURL = \"/api/bookmarks/add\";\n postEventType = DataEvent.LINK_ADDED;\n }\n console.log('POSTING');\n self.dataUtils.request(postURL, postEventType, REQUEST_TYPE_POST, CONTENT_TYPE_JSON, link_data)\n .then((response) => {\n resolve({\n response\n })\n }).catch((err) => {\n reject({\n err\n });\n })\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport {\n TaskFipamo as\n default\n}\n","import * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nimport TaskFipamo from '../tasks/TaskFipamo.jsx';\nclass DisplayAdminFipamo {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n\n start() {\n document.getElementById(\"saved-sumbit-btn\").addEventListener('click', f => {\n console.log('CLICKED');\n let edit = false;\n if (f.target.getAttribute('data-action') == 'saved-edit')\n edit = true;\n \n new TaskFipamo().submitLink(edit).then((response) => {\n let note = JSON.parse(response['response']['request'].response);\n if(note.message == 'link added' || note.message == 'bookmark updated')\n {\n switch(note.message)\n {\n case 'link added':\n document.getElementById('saved_text').value = ''\n break\n \n case 'bookmark updated':\n document.getElementById('saved_text').value = 'updated'\n\n break\n } \n }else{\n console.log(note);\n }\n }).catch((err) => {\n //console.log(err) \n });\n });\n }\n\n //--------------------------\n // event handlers\n //--------------------------\n}\n\nexport {\n DisplayAdminFipamo as\n default\n}\n","import DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport ProjectFolio from '../tasks/ProjectFolio.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport DisplayAdminBlog from './DisplayAdminBlog.jsx'\nimport DisplayAdminFipamo from './DisplayAdminFipamo.jsx';\n\nclass DisplayAdmin {\n //--------------------------\n // constructor\n //--------------------------\n constructor(section, page) {\n this.section = section;\n this.page = page;\n this.current = null;\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n let self = this;\n new Animate().object({\n targets: document.getElementById('loader'),\n duration: 300,\n opacity: 0,\n easing: 'easeInOutQuad',\n complete: function () {\n document.getElementById('loader').style.display = 'none';\n document.getElementById('loader').style.visibility = 'hidden';\n new Animate().object({\n targets: document.getElementById('header'),\n duration: 10,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n new TextEffects().scramble(document.getElementById('the-title'), 50, function () {\n document.getElementById('loader').style.display = 'none';\n\t\t\t\t\t\t\tdocument.getElementById('loader').style.visibility = 'hidden';\n console.log(self.page)\n\t\t\t switch(self.page)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcase \"fipamo\":\n\t\t\t\t\t\t\t\t\tself.current = new DisplayAdminFipamo();\n\t\t\t\t\t\t\t\t\tbreak;\n case \"blog\":\n self.current = new DisplayAdminBlog();\n break\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tconsole.log(\"ADMIN INDEX\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} \n });\n }\n });\n }\n }); \n }\n //--------------------------\n // event handlers\n //--------------------------\n \n}\nDisplayAdmin.uploadFiles = [];\nexport {\n DisplayAdmin as\n default\n}\n","//TOOLS\nimport DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nclass DisplayIndex {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n document.getElementById('the-intro').style.opacity = 1;\n \n new Animate().object({\n targets: document.getElementById('recent-work'),\n duration: 200,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n\n }\n });\n\n new Animate().object({\n targets: document.getElementById('recent-blog'),\n duration: 500,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n\n }\n });\n\n new Animate().object({\n targets: document.getElementById('float-bg'),\n duration: 2000,\n opacity: 1,\n easing: 'easeInQuad',\n complete: function () {\n\n }\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n\n}\nexport {\n DisplayIndex as\n default\n}\n","import Animate from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\n\nclass Mailer {\n //--------------------------\n // constructor\n //--------------------------\n constructor(element) {\n this.response = element\n if (document.getElementById('request-btn')) {\n document.getElementById('request-btn').addEventListener(\"click\", f => {\n f.preventDefault();\n this.sendMail()\n })\n }\n }\n //--------------------------\n // methods\n //--------------------------\n sendMail()\n {\n\n var self = this;\n //if(!this.validateForm())\n var mailData = []\n\n let requestForm = document.forms.namedItem(\"request-form\");\n let serviceType = document.getElementById('service_type')\n //console.log(serviceType.options[serviceType.selectedIndex].text);\n\n mailData = {\n \"email\": requestForm.email.value,\n \"client\": requestForm.client.value,\n \"description\": requestForm.description.value,\n \"type\": serviceType.options[serviceType.selectedIndex].text\n\n };\n\n var request = new XMLHttpRequest();\n request.open(\"POST\", \"/mailer\", true);\n request.setRequestHeader(\"Content-type\", \"application/json\")\n request.onload = function(oEvent) {\n if (request.status == 200) {\n let response = JSON.parse(request.response);\n if (response.message == \"message sent\") {\n\n requestForm.reset();\n self.response.innerHTML = \"HEY. THANKS FOR REACHING OUT. YOU'RE AWESOME\"\n new TextEffects().scramble(self.response, 50, function () {\n\n });\n\n } else {\n //console.log(response.detail);\n }\n\n } else {\n //console.log(request);\n }\n };\n request.send(JSON.stringify(mailData));\n\n }\n\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport {Mailer as default}\n","export const DisplayID = \"Display-Work\";\nimport DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nimport Mailer from '../tasks/Mailer.jsx'\nclass DisplayWork {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n this.dataUtils = new DataUtils();\n this.mailer = new Mailer();\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n let self = this;\n if (document.getElementById('work-display')) {\n new Animate().object({\n targets: document.getElementById('work-display'),\n duration: 500,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n self.sortItemList();\n new Animate().object({\n targets: document.getElementById('float-bg'),\n duration: 2000,\n opacity: 1,\n easing: 'easeInQuad',\n complete: function () {\n\n }\n });\n }\n });\n\n new Animate().object({\n targets: document.getElementById('work-header'),\n duration: 500,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n\n }\n });\n } else {\n new Animate().object({\n targets: document.getElementById('folio-header'),\n duration: 500,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n self.showFolioImages();\n }\n });\n }\n }\n sortItemList() {\n let workItems = document.getElementById('work-list').children;\n let trans = 300;\n let self = this;\n for (var i = 0; i < workItems.length; i++) {\n //item.addEventListener('click', f => this.handleWorkList(f))\n\n new Animate().object({\n targets: workItems[i],\n duration: trans,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n //self.showFolioImages();\n }\n });\n\n trans = trans + 200;\n if (i == workItems.length - 1) {\n\n new Animate().object({\n targets: document.getElementById('contact'),\n duration: 300,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n //self.showFolioImages();\n }\n });\n\n }\n }\n }\n\n showFolioImages() {\n let images = document.getElementById('project-images').children;\n let trans = 300;\n let self = this;\n for (var i = 0; i < images.length; i++) {\n //item.addEventListener('click', f => this.handleWorkList(f))\n\n new Animate().object({\n targets: images[i],\n duration: trans,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n //self.showFolioImages();\n }\n });\n trans = trans + 200\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport {\n DisplayWork as\n default\n}\n","//TOOLS\nimport DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nclass DisplayBlog {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n\t reframe('iframe');\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n console.log(\"START BLOG\");\n }\n //--------------------------\n // event handlers\n //--------------------------\n\n}\nexport {\n DisplayBlog as\n default\n}\n","export const DisplayID = \"Display-Fi\";\nimport DataUtils, { REQUEST_TYPE_GET, REQUEST_TYPE_PUT, REQUEST_TYPE_POST, REQUEST_TYPE_DELETE, CONTENT_TYPE_JSON, CONTENT_TYPE_FORM } from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\nclass DisplayFi {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {\n this.dataUtils = new DataUtils();\n //this.mailer = new Mailer();\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n let self = this;\n console.log(\"START BOOKMARKS\");\n \n }\n \n //--------------------------\n // event handlers\n //--------------------------\n \n\n \n\n \n}\nexport { DisplayFi as default }\n\n","//TOOLS\nimport DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport * as DataEvent from '../tools/events/DataEvent.jsx';\nimport Animate from '../tools/effects/Animate.jsx';\nimport * as Ease from '../tools/effects/Animate.jsx';\nimport TextEffects from '../tools/effects/TextEffects.jsx';\n//Client-side Pages\nimport DisplayIndex from './DisplayIndex.jsx';\nimport DisplayWork from './DisplayWork.jsx';\nimport DisplayBlog from './DisplayBlog.jsx';\nimport DisplayFi from './DisplayFi.jsx';\n\nclass DisplayClient {\n //--------------------------\n // constructor\n //--------------------------\n constructor(section, page) {\n this.section = section;\n this.page = page;\n this.current = null;\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {\n let self = this;\n new Animate().object({\n targets: document.getElementById('loader'),\n duration: 300,\n opacity: 0,\n easing: 'easeInOutQuad',\n complete: function () {\n document.getElementById('loader').style.display = 'none';\n document.getElementById('loader').style.visibility = 'hidden';\n new Animate().object({\n targets: document.getElementById('header'),\n duration: 10,\n opacity: 1,\n easing: 'easeInOutQuad',\n complete: function () {\n new TextEffects().scramble(document.getElementById('the-title'), 50, function () {\n switch(self.section){\n case \"blog\":\n self.current = new DisplayBlog();\n break\n case \"work\":\n self.current = new DisplayWork();\n break\n case \"fipamo\":\n self.current = new DisplayFi();\n break\n default:\n self.current = new DisplayIndex();\n break\n }\n \n });\n }\n });\n }\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n\n}\nexport {\n DisplayClient as\n default\n}\n","//TOOLS\nimport DataUtils, {\n REQUEST_TYPE_GET,\n REQUEST_TYPE_PUT,\n REQUEST_TYPE_POST,\n REQUEST_TYPE_DELETE,\n CONTENT_TYPE_JSON,\n CONTENT_TYPE_FORM\n} from '../tools/utilities/DataUtils.jsx';\nimport DisplayAdmin from './DisplayAdmin.jsx';\nimport DisplayClient from './DisplayClient.jsx';\nclass DisplayManager\n{\n //--------------------------\n // constructor\n //--------------------------\n constructor()\n {\n this.dataUtils = new DataUtils();\n this.currentDisplay = '';\n this.urlPieces = document.URL.split(\"/\");\n //grab url so system knows what to display \n this.chooseDisplay(this.urlPieces[3], this.urlPieces[4]);\n \n }\n //--------------------------\n // methods\n //--------------------------\n start()\n {}\n\n chooseDisplay(section, page)\n {\n this.currentDisplay = '';\n switch (section) {\n case 'admin':\n \tthis.currentDisplay = new DisplayAdmin(section, page);\n break\n \n default:\n this.currentDisplay = new DisplayClient(section, page);\n break;\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n \n}\nexport {DisplayManager as default}\n","import DataUtils, { REQUEST_TYPE_GET, REQUEST_TYPE_PUT, REQUEST_TYPE_POST, REQUEST_TYPE_DELETE, CONTENT_TYPE_JSON, CONTENT_TYPE_FORM } from './tools/utilities/DataUtils.jsx';\nimport * as DataEvent from './tools/events/DataEvent.jsx';\nimport DisplayManager from './controllers/DisplayManager.jsx';\n\nclass Base {\n //--------------------------\n // constructor\n //--------------------------\n \n //TODO: Flip to unified structure defined in BMG, brah\n constructor() {\n var self = this;\n var admin = [];\n var folio = [];\n var displayManager = [];\n this.dataUtils = new DataUtils();\n this.settings = [];\n this.start(); \n }\n start() {\n this.displayManager = new DisplayManager();\n }\n //--------------------------\n // methods\n //--------------------------\n loadSettings() {\n var self = this;\n this.dataUtils.request('/base-assets/data/settings.json', DataEvent.SETTINGS_LOADED)\n .then((response) => {\n this.settings = JSON.parse(response['request'].response);\n this.start();\n //transfer \n \n })\n .catch((err) => {\n //console.log(err);\n });\n }\n\n //--------------------------\n // event handlers\n //--------------------------\n\n}\nexport { Base as default }\n","import Base from './Base.jsx'\n\ndocument.addEventListener('DOMContentLoaded', function() {\n\n var base = new Base();\n}, false);\n"]}