Skip to content

Commit

Permalink
Merge branch 'release/0.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
garex committed Jul 27, 2016
2 parents 0cb1aa6 + 86f515f commit 2360947
Show file tree
Hide file tree
Showing 126 changed files with 4,646 additions and 5,426 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/tools/intro-video/mkv/
/tools/intro-video/mp3/
/tools/intro-video/node_modules/
/tools/intro-video/ogv/
/tools/intro-video/thumbnail/
/tools/intro-video/thumbs/
/tools/refactoring/*.sql
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
## Changelog ##


### 0.19 ###

Greatly raise editor interactivity and destroy "low memory" problem

* Interactively edit questions/answers with quick fill
* Destroy "low server settings" issue
* Solve huge-scores problem by rendering inputs on mouse enter
* Add maximize feature to some editor metaboxes

Internals:

* Update intro-video (make it smaller)
* Auto-update locale (10 new strings). If you will see some strange new phrases in your language, then dont' hesistate to send us correct translations.
* Fix 3 strings in Dutch locale (thanks to Patrick van de Kerkhof)


### 0.18.9 ###

Make test form compatible with code minifiers
Expand Down
41 changes: 21 additions & 20 deletions README.md

Large diffs are not rendered by default.

Binary file modified assets-wp-repo/screenshot-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets-wp-repo/screenshot-23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets-wp-repo/screenshot-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 142 additions & 19 deletions css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ table.wpt_questions {
width: 100%;
}

table.widefat td.actions {
padding-left: 0px;
}


.actions button.notice-dismiss {
padding: 4px;
}

.wpt_questions .wpt_title input {
width: 100%;
}
Expand All @@ -44,6 +53,118 @@ table.wpt_questions {
width: 100%;
}

.wpt_questions button {
margin-right: 5px;
}

.wpt_questions .actions {
text-align: right;
width: 24px;
}

.wpt_questions .actions button {
position: static;
}

.wpt_individual_action .note {
visibility: hidden;
cursor: default;
}

.wpt_individual_action button {
float: left;
}

.wpt_individual_action:hover .note {
visibility: visible;
}

table.wpt_scores {
width: auto;
}

table.wpt_scores th,
table.wpt_scores td {
cursor: default;
}

.wpt_scroll {
overflow: auto;
}

#wpt_edit_scores .wpt_scroll {
max-height: 50em;
}

table.wpt_scores td div,
table.wpt_scores th div {
white-space: nowrap;
max-width: 5em;
overflow: hidden;
text-overflow: ellipsis;
clear: both;
}
table.wpt_scores.widefat td,
table.wpt_scores.widefat th {
padding: 0.62em 0.77em;
}
table.wpt_scores .wpt_answer td div {
max-width: 10em;
}

table.wpt_scores .hovered.wpt_title,
table.wpt_scores tbody tr.hovered .wpt_title {
background: #dadada;
}

table.wpt_scores col.focused,
table.wpt_scores tbody tr.focused {
background: #f3f3f3;
}

table.wpt_scores .focused.wpt_title,
table.wpt_scores tbody tr.focused .wpt_title {
background: #6d6d6d;
color: #ffffff;
}

table.wpt_scores .wpt_answer .number.wpt_first,
table.wpt_scores .wpt_question_item .number.wpt_last,
table.wpt_scores .wpt_scales .number.wpt_last {
padding-left: 20px;
}

table.wpt_scores .wpt_scales th {
vertical-align: bottom;
}
table.wpt_scores .wpt_scales .wpt_meta {
float: right;
margin-bottom: 0.25em;
font-size: 80%;
}
table.wpt_scores .wpt_scales .wpt_max {
margin-right: 0.5em;
}
.wptApp input.ng-invalid {
color: red;
}

table.wpt_scores .wpt_score {
width: 5em;
}
table.wpt_scores .wpt_score span {
font-size: 14px;
display: inline-block;
width: 100%;
height: 1.4em;
padding-top: 5px;
padding-left: 7px;
outline: 1px solid gainsboro;
}
table.wpt_scores .wpt_score input {
width: 100%;
}

table.wpt_formulas,
table.wpt_formulas_helper {
margin-top: 1em;
Expand Down Expand Up @@ -78,39 +199,37 @@ table.wpt_formulas_helper .operators input {
margin-bottom: 1em;
}

#wpt_quick_fill_questions textarea {
#wpt_quick_fill_questions textarea,
.quick-fill textarea {
height: 30em;
width: 100%;
}

table.wpt_quick_scores {
margin-bottom: 0.5em;
}

table.wpt_quick_scores th {
text-align: center;
}

table.wpt_quick_scores th.questions {
width: 90%;
}
table.wpt_quick_scores td {
white-space: nowrap;
}
table.wpt_quick_scores td.answer {
table.wpt_quick_scores .score input {
text-align: center;
width: 5em;
}
table.wpt_quick_scores th.score,
table.wpt_quick_scores td.score {
padding-right: 0em;
}
table.wpt_quick_scores td.score input {
table.wpt_quick_scores .answer input {
text-align: center;
width: 5em;
}
table.wpt_quick_scores td.questions input {
table.wpt_quick_scores .questions input {
width: 100%;
}
table.wpt_quick_scores input {
margin: 0px;
}
table.wpt_quick_scores select {
max-width: 10em;
}

table.wpt_quick_scores td.scale,
table.wpt_quick_scores td.answer {
max-width: 10em;
}

.wpt-add-individual-answers span.howto {
display: inline;
Expand Down Expand Up @@ -227,3 +346,7 @@ pre.exposed {
#adv-settings > .screen-options {
padding-top: 10px;
}

body .wpt_maximizable .wpt_scroll {
max-height: 40em;
}
41 changes: 41 additions & 0 deletions css/maximize.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
body.wpt_maximize {
overflow: hidden;
}

body.wpt_maximize #wpadminbar, body.wpt_maximize #postdivrich, body.wpt_maximize #adminmenumain {
display: none;
}

body.wpt_maximize .wpt_maximizable .wpt_scroll {
overflow: scroll;
}

body.wpt_maximize .wpt_maximizable.wpt_maximized .wpt_scroll {
overflow: visible;
max-height: none;
}

body.wpt_maximize .wpt_maximized {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 99;
overflow: auto;
}

.wpt_maximizable .qt-dfw {
position: static;
}

/* Old WP versions */
.wpt_maximizable .wp_themeSkin {
padding: 0px;
background: none;
border: none;
outline: none;
}
.wpt_maximizable .wp_themeSkin .mceIcon {
margin: auto;
}
12 changes: 12 additions & 0 deletions db/sql/scores-by-test.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
SELECT
q.*,
a.*,
s.*
FROM
wp_t_scores s
JOIN
wp_t_answers a USING (answer_id)
JOIN
wp_t_questions q USING (question_id)
WHERE
q.test_id = 8;
9 changes: 9 additions & 0 deletions js/app/app.module.debug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(function(angular) {
'use strict';

angular.module('wptApp', ['digestHud'])
.config(function(digestHudProvider) {
digestHudProvider.enable();
digestHudProvider.setHudPosition('bottom right');
});
})(angular);
8 changes: 8 additions & 0 deletions js/app/app.module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function appModule(angular, webshims, document) {
'use strict';

webshims.polyfill('es5');

angular.module('wptApp', [
]);
})(angular, webshims, document);
3 changes: 3 additions & 0 deletions js/app/app.module.run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function appModuleRun(angular) {
angular.bootstrap('.wptApp', ['wptApp']);
})(angular);
82 changes: 82 additions & 0 deletions js/app/base/baseCollection.model.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
(function(angular) {
'use strict';

angular.module('wptApp').factory('BaseCollection', BaseCollectionFactory);

BaseCollectionFactory.$inject = ['BaseObservable'];
function BaseCollectionFactory(BaseObservable) {
function BaseCollection() {
};
BaseCollection.prototype = angular.extend({}, BaseObservable.prototype);

var arraySlice = Array.prototype.slice;
BaseCollection.fromArrayGenerator = function(thisClass) {
thisClass.prototype.slice = function(begin, end) {
var copy = angular.extend([], thisClass.prototype, new thisClass);
arraySlice.call(this, begin, end).forEach(function(item) {
this.push(item);
}, copy);
return copy;
};

return function(items) {
var me = angular.extend([], thisClass.prototype, new thisClass);
if (typeof items === 'undefined') {
return me;
}
items.forEach(function(item) {
this.push(this.createFromObject(item));
}, me);
return me;
};
};
BaseCollection.prototype.create = function(title) {
throw new Error('BaseCollection create not implemented');
};
BaseCollection.prototype.createFromObject = function(object) {
return angular.extend(this.create(), object);
};
BaseCollection.prototype.addNew = function() {
var item = this.create.apply(this, arguments);
return this.add(item);
};
BaseCollection.prototype.add = function(item) {
this.push(item);
this.trigger('add:item', item);
return item;
};
BaseCollection.prototype.forEachLive = function(callback) {
this.forEach(callback);
this.on('add:item', function(item) {
callback.call(item, item, this.length);
});
};
BaseCollection.prototype.remove = function($index) {
var item = this[$index];
item.trigger('remove', $index);
this.trigger('remove:item', item, $index);
this.splice($index, 1);
return this;
};
/**
* Implement null-object getter
* @param {Number} $index
* @return {Item}
*/
BaseCollection.prototype.getOrNull = function($index) {
var item = this[$index];
if (typeof item === 'undefined') {
return this.createFromObject({});
}
return item;
};
BaseCollection.prototype.copy = function() {
var copy = this.fromArray([]);
this.forEach(function(item) {
copy.add(item.copy());
});
return copy;
};
return BaseCollection;
};
})(angular);
Loading

0 comments on commit 2360947

Please sign in to comment.