Updated ReadMe, Added logging to create default tables, Fixed undefined this.positions, Fixed varchar length

This commit is contained in:
xevidos 2019-04-30 12:56:08 -04:00
parent e9c40fa851
commit 2885c8059e
5 changed files with 36 additions and 9 deletions

View file

@ -6,6 +6,16 @@ Codiad was built with simplicity in mind, allowing for fast, interactive develop
For more information on the project please check out the check out the Wiki. For more information on the project please check out the check out the Wiki.
Distributed under the MIT-Style License. See LICENSE.txt file for more information. Distributed under the MIT-Style License. See LICENSE.txt file for more information.
Repositories:
[GitLab](https://gitlab.com/xevidos/codiad)
[GitHub](https://github.com/xevidos/codiad)
Issues:
[GitLab](https://gitlab.com/xevidos/codiad/issues)
[GitHub](https://github.com/xevidos/codiad/issues)
Features: Features:
* 100+ Native programming languages supported. * 100+ Native programming languages supported.
@ -37,7 +47,8 @@ Task List:
* Add if file could not be saved 5 times close the open file * Add if file could not be saved 5 times close the open file
* Add multi level users. ( Projects for only certain groups, Permission levels ) * Add multi level users. ( Projects for only certain groups, Permission levels )
* Add mobile compatibility * Add mobile compatibility
* Add support for more database systems ( MSSQL, Oracle, SQLite, Maybe Filesystem again, etc ) * Add support for more database systems ( MSSQL, Oracle, SQLite, Filesystem storage, etc )
* Add in auto save timer that saves after the user stops typing instead of after every change
* Clean up update script * Clean up update script
* Fix broken themes * Fix broken themes
* Re Add the custom language recognition system after recode * Re Add the custom language recognition system after recode
@ -45,14 +56,21 @@ Task List:
Completed: Completed:
* Add Auto Save. * Add Auto Save
* Add ability to center bottom of code * Add ability to center bottom of code
* Add updating script * Add updating script
* Add site renaming * Add site renaming
* Database Update * Database Update
- Added Mysql Support. - Added ( MySQL, PostgreSQL ) Support.
- Project Updated to use PDO so future support for more database systems can be added. - Project Updated to use PDO so future support for more database systems can be added.
- Updated to store program data ( Not project data ) in databases. - Updated to store program data ( Not project data ) in databases.
* Fix JS errors already showing * Fix JS errors already showing
* Remove Codiad autocomplete in favor of Ace's * Remove Codiad autocomplete in favor of Ace's
* Updated for PHP 7.2 * Updated Cursor tracking
* Updated for PHP 7.2
Bugs:
* Auto save does not save the most recent changes every once in a while requiring more information to be typed ( E.G. A couple spaces ) in order to show up in saved file.
* Cursor is set to the wrong position if in split view.

View file

@ -400,13 +400,14 @@
if(path != this.getPath()) { if(path != this.getPath()) {
let _this = this;
codiad.editor.setSession(this.sessions[path]); codiad.editor.setSession(this.sessions[path]);
this.history.push(path); this.history.push(path);
$.get(this.controller, {'action':'focused', 'path':path}, function() { $.get(this.controller, {'action':'focused', 'path':path}, function() {
if( ! ( this.positions[`${path}`] === undefined ) ) { if( ! ( _this.positions[`${path}`] === undefined ) ) {
this.setPosition( this.positions[`${path}`] ); _this.setPosition( .positions[`${path}`] );
} }
}); });
} }

View file

@ -404,8 +404,15 @@ class sql_conversions {
} }
if( $dbtype == "mysql" && $fields ) { if( $dbtype == "mysql" && $fields ) {
$field_length = ( 3000 / $unique_length ); if( $fields[$id] == "text" ) {
$fields_string .= "{$id_open}{$id}{$id_close}($field_length),";
$field_length = ( 3000 / $unique_length );
$fields_string .= "{$id_open}{$id}{$id_close}($field_length),";
} elseif( $fields[$id] == "string" ) {
$field_length = ( 3000 / $unique_length );
$fields_string .= "{$id_open}{$id}{$id_close}(255),";
}
} else { } else {
$fields_string .= "{$id_open}{$id}{$id_close},"; $fields_string .= "{$id_open}{$id}{$id_close},";

View file

@ -177,7 +177,7 @@ class sql {
if ( $result === false || ! $error[0] == "00000" ) { if ( $result === false || ! $error[0] == "00000" ) {
return false; return $error;
} else { } else {
return true; return true;

View file

@ -144,6 +144,7 @@
codiad.message.error( i18n( 'Error Creating Default Tables' ) ); codiad.message.error( i18n( 'Error Creating Default Tables' ) );
} }
console.log( data );
}, },
error: function(jqXHR, textStatus, errorThrown) { error: function(jqXHR, textStatus, errorThrown) {