Not logged in.
Home
Edit
New Term
Filter:
# toolbox Merge branch 'master' of /home/repo/toolbox json_editor and codeToJSON Better devnotes able to edit single leaves numbers or text codeToJSON era fix devnotes Undefined tab appeared out of the blue fixed devnotes Removed user function from sql.php toolbox dev notes textarea Add synchronization hash and DevNotes class Merge branch 'master' of ssh://ssh.web1.us.freehostia.com:2222/home/repo/toolbox Added hash checking to synchronization driver fix toString addClass and removeClass from element support for array better css, handles large json as expected added a path display to propertyForm prepared js_loader to load json_designer with html_widgets some notes Improving form css Correctly parsing numbers, some numbers get turned into objects while others get turned into strings.... synchronizable adds getRows synchronization_driver no longer implements synchronizable sync methods renamed within driver sql->instantiate: better error handling remove tab from html.php css->appendRule fixed css inconsistencies sql do not continue with file if database does not exist Merge branch 'master' of ssh://ssh.web1.us.freehostia.com:2222/home/repo/toolbox html tab defined (slightly) sql database setup check Extensible Classes xClass xEnvironment x/BrowserForm typos xClass, xEnvironment add link to js_loader for tools Removing comments from production... json_designer looking like i thought it should diff --git a/js/web/json_designer.js b/js/web/json_designer.js index 18c6b9f..bbf5e05 100644 --- a/js/web/json_designer.js +++ b/js/web/json_designer.js @@ -1,18 +1,141 @@ console.log("loaded json_designer.js"); -var createNewProperty = function(e){ +var createDataTypeRadio = function(label_name,radio_name,radio_value,on_click_fn){ + on_click_fn = on_click_fn || (function(){}); + var a_label = c("label",{innerHTML:label_name}); + var a_radio = c("input",{name:radio_name,id:radio_name,type:"radio",value:radio_value}); + a_label.appendChild(a_radio); + a_radio.addEventListener("click",on_click_fn); + return a_label; +} +var serializeNodeRec = function(node,acc){ + acc = acc||{}; + if(node.name && node.value){ + acc[node.name] = node.value; + } + if(node.children){ + for(var i=0;i
common.js loaded."); +var appendToStyle = function(css_arr){ + var styles = document.getElementsByTagName("style"); + if(styles.length > 0){ + var last_style = styles.pop(); + last_style += css_arr.join(""); + }else{ + document.head.appendChild(c("style",{innerHTML:css_arr.join("")})); + } +}; function onload_push(fn){ // body.onload functions MUST not have parameters... if(document.body.onload){ diff --git a/js/web/js_loader.html b/js/web/js_loader.html index 3dcff1f..f52a609 100644 --- a/js/web/js_loader.html +++ b/js/web/js_loader.html @@ -3,11 +3,16 @@ - + js debug.*, options.* and parser.* removing entries from files Merge branch 'master' of ssh://ssh.web1.us.freehostia.com:2222/home/repo/toolbox user_get_by_id search binary search declared but not implemented testing out str_simple_hash refactor some functions file_print file_print_tabbed rss.php now has guid and pubDate for items synchronization-driver->synchronize() is presumably complete synchornization testing remove synchronize attempt from sql synchronization must be managed by outside entity driver -> local -> remote -> sync classes connect to database by calling inhereted methods from sql class sql class can implement synchronizable interface by defining a getStore method; this method returns content representation: array of table names, each with id's with a timestamp synchronizable class sql implementation of synchronizable - [x] download remote posts - [ ] push local posts to remote php/authentication belonged to singlerecord Merge branch 'master' of /home/repo/toolbox include includes include includes remove home() html prepend added add newline to media queries css toolbox.php pulls sql, html, functions and rss Merge branch 'master' of /home/www/musiqr.net/../../repo/toolbox config is a per-project file something odd was happening right above class a Merge branch 'master' of ssh://ssh.web1.us.freehostia.com:2222/home/repo/toolbox more generalized usage functions: remove a vardump in post_request sql: verify_password internal php instead of individually checking hash toolbox: using $php_toolbox as a path base config.php is degraded to app generalizing web building toolbox for php using password_hash and verify_hash instead of sha1 refine sql.php update, delete return query success/failure status (true/false) testing self-hosted git add c functions and headers php folder removing namespaces rename from php_toolbox to toolbox with php/ folder sql user authentication sql user table create table if it doesnt exist user_create user_match_password fixed rss.php removed testing bit Update post_request and create rn_formatted Add item belongs to channel not rss. Add composer.json, therefore, turn this into a package. Start working with namespaces. Add rss. Refactor html, functions and sql out of toolbox.php Add generic functions to top of document. Add hash->new_content_hash and edit element->innerHTML Tested SQL a little bit, Add minor hash class Better template Modify conditions of pwd folders. Add css class. Might need improvement. Toolbox out is not working properly. Toolbox create project is not working properly. Add README.md Removing comments... Created new_project_template class New projects have a welcome title. New project folders still are created by _www. I am not sure if this is even recommended behavior. Create folder is working sort of. The folders are created under _www and not receiving the proper 775 flags Add _www user (apache user) to staff group using: sudo dscl . -append /Groups/staff GroupMembership _www Set Sites mode to 775 as opposed to 755 (group writing allowed) new_php_file_template.php is the string containing the php environment classes: Toolbox html element # dabca un # .un.md #234567812345678123456781234567812345678123456781234567812345678123456781234567# goal - move dabca/ out of private/ and unto root - purpose -- private/ is only accessible to server administrator, by moving applications located in private/ into root, applications become accessible to the public - requirement -- [x] add ownership table to database --- challenge ---- users reside in another database... - execution -- owners table --- id INT 255 owner_username VARCHAR 255 dictionary_id INT 255 ---- [ ] save table structure in dabca.sql.queries.php -- [x] all current terms owned by 'asdf' -- [ ] set ownership on new term/linked #234567812345678123456781234567812345678123456781234567812345678123456781234567# # dabca git log entries inserted with ownership details ownership process integrated with AAA class all terms retroactively owned by admin plans for ownership authentication and edit/view 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 begin to add authentication requirements entry.edit.term.form.php reads id from get and allows editing by any authenticated user Accronym lookup Fix newlines on data process request on entry.edit.term.form.php endpoints.php entry.edit.term.form.php entry.edit.term.form.php is now processing all requests ... endpoint.php entry.edit.linked.form.php now processed by entry.edit.term.form.php post/pre.logic.php possibly adding execution space before and after request processing for debugging purposes entry.edit.term.logic.php post request processing expects values to be in the post superglobal entry.edit.term.form.php this file will now contain correct logic for editing both terms and non-terms entry.edit.linked.logic important: post request process must abide by the following rule: process variables directly from superglobal, do not create tmp variable entry.edit.linked.form.php remove adding linked entries to linked entries (for now) entry.controls.form.php fix correct name attribute for input endpoints.php view endpoints and correct new logic action endpoints for linked.form and term.form entry.view.term.php 'Public' view of term and attributes dictionary.logic.php, dictionary.head.php post request processing for dictionary.php moved to dictionary.logic.php dictionary head moved into dictionary.head.php dynamic js filter search moved to searchAndFilterJSSCript in functions.php php-to-js transpiler moved to toJSArray in functions.php dynamic js filter table moved to dictionaryFilterJSScript ================================================================ 1234567812345678123456781234567812345678123456781234567812345678 dabca.php dabca.sql.queries.php add dictionary_get_linked; will probably remove this later in favor of renaming getLinked into dictionary_get_entry if that does not exist dictionary_select_aggregated was returning incorrect results the query is stil hardcoded for this specific table schema which only includes t values {term,accronym,definition} ideally I want to generalize it for any number of t values Joined terms into aggregate table Added dynamic javascript table The best way to proceed is to bring a table that is already correctly organized from sql, avoid organizing in js. Js is for on the fly filtering. Remember that the remote database is unsynchronized; Create, edit and delete entry types prepped for remote execution better css Edit entry, delete entry add gitignore first commit