forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove $parent.localvalue * Fix e2e * Fix FE * Fix e2e * Removed .displayedCollectionCategory * Removed .displayedCollectionTags * Removed .newCategory * Removed ..tmpStateName * Removed .emailBody * Removed ..customizationArgs * Fix backend tests * Added the lint check * Revert package-lock * Revert package-lock.json * Restored permission for hook
- Loading branch information
1 parent
189d211
commit 3316974
Showing
31 changed files
with
312 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...es/dev/head/components/forms/schema-based-editors/schema-based-bool-editor.directive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="input-group"> | ||
<span ng-if="!expressionMode"> | ||
<input type="checkbox" ng-model="$parent.localValue" ng-disabled="isDisabled()" | ||
focus-on="<[labelForFocusTarget()]>"> | ||
<input type="checkbox" ng-model="$ctrl.localValue" ng-disabled="$ctrl.isDisabled()" | ||
focus-on="<[$ctrl.labelForFocusTarget()]>"> | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...dev/head/components/forms/schema-based-editors/schema-based-choices-editor.directive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<select class="form-control" ng-model="$parent.$parent.localValue" | ||
ng-options="choice as choice for choice in choices()" required | ||
ng-disabled="isDisabled()"> | ||
<select class="form-control" ng-model="$ctrl.localValue" | ||
ng-options="choice as choice for choice in $ctrl.choices()" required | ||
ng-disabled="$ctrl.isDisabled()"> | ||
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../dev/head/components/forms/schema-based-editors/schema-based-custom-editor.directive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<object-editor obj-type="<[objType]>" value="$parent.$parent.localValue" always-editable="true"> | ||
<object-editor obj-type="<[$ctrl.objType]>" value="$ctrl.localValue" always-editable="true"> | ||
</object-editor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 40 additions & 40 deletions
80
...mplates/dev/head/components/forms/schema-based-editors/schema-based-editor.directive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
<schema-based-choices-editor ng-if="schema().choices" local-value="$parent.localValue" | ||
schema="schema()" choices="schema().choices" | ||
is-disabled="isDisabled()"> | ||
<schema-based-choices-editor ng-if="$ctrl.schema().choices" local-value="$ctrl.localValue" | ||
schema="$ctrl.schema()" choices="$ctrl.schema().choices" | ||
is-disabled="$ctrl.isDisabled()"> | ||
</schema-based-choices-editor> | ||
|
||
<schema-based-bool-editor ng-if="schema().type === 'bool' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
label-for-focus-target="labelForFocusTarget()"> | ||
<schema-based-bool-editor ng-if="$ctrl.schema().type === 'bool' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()"> | ||
</schema-based-bool-editor> | ||
|
||
<schema-based-int-editor ng-if="schema().type === 'int' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
validators="schema().validators" | ||
label-for-focus-target="labelForFocusTarget()" | ||
on-input-blur="onInputBlur" | ||
on-input-focus="onInputFocus"> | ||
<schema-based-int-editor ng-if="$ctrl.schema().type === 'int' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
validators="$ctrl.schema().validators" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()" | ||
on-input-blur="$ctrl.onInputBlur" | ||
on-input-focus="$ctrl.onInputFocus"> | ||
</schema-based-int-editor> | ||
|
||
<schema-based-float-editor ng-if="schema().type === 'float' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
validators="schema().validators" | ||
label-for-focus-target="labelForFocusTarget()" | ||
on-input-blur="onInputBlur" | ||
on-input-focus="onInputFocus"> | ||
<schema-based-float-editor ng-if="$ctrl.schema().type === 'float' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
validators="$ctrl.schema().validators" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()" | ||
on-input-blur="$ctrl.onInputBlur" | ||
on-input-focus="$ctrl.onInputFocus"> | ||
</schema-based-float-editor> | ||
|
||
<schema-based-unicode-editor ng-if="schema().type === 'unicode' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
validators="schema().validators" ui-config="schema().ui_config" | ||
label-for-focus-target="labelForFocusTarget()" | ||
on-input-blur="onInputBlur" | ||
on-input-focus="onInputFocus"> | ||
<schema-based-unicode-editor ng-if="$ctrl.schema().type === 'unicode' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
validators="$ctrl.schema().validators" ui-config="$ctrl.schema().ui_config" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()" | ||
on-input-blur="$ctrl.onInputBlur" | ||
on-input-focus="$ctrl.onInputFocus"> | ||
</schema-based-unicode-editor> | ||
|
||
<schema-based-html-editor ng-if="schema().type === 'html' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
label-for-focus-target="labelForFocusTarget()" | ||
ui-config="schema().ui_config"> | ||
<schema-based-html-editor ng-if="$ctrl.schema().type === 'html' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()" | ||
ui-config="$ctrl.schema().ui_config"> | ||
</schema-based-html-editor> | ||
|
||
<schema-based-list-editor ng-if="schema().type === 'list' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
item-schema="schema().items" len="schema().len" | ||
ui-config="schema().ui_config" validators="schema().validators" | ||
label-for-focus-target="labelForFocusTarget()"> | ||
<schema-based-list-editor ng-if="$ctrl.schema().type === 'list' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
item-schema="$ctrl.schema().items" len="$ctrl.schema().len" | ||
ui-config="$ctrl.schema().ui_config" validators="$ctrl.schema().validators" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()"> | ||
</schema-based-list-editor> | ||
|
||
<schema-based-dict-editor ng-if="schema().type === 'dict' && !schema().choices" | ||
local-value="$parent.localValue" is-disabled="isDisabled()" | ||
property-schemas="schema().properties" | ||
label-for-focus-target="labelForFocusTarget()"> | ||
<schema-based-dict-editor ng-if="$ctrl.schema().type === 'dict' && !$ctrl.schema().choices" | ||
local-value="$ctrl.localValue" is-disabled="$ctrl.isDisabled()" | ||
property-schemas="$ctrl.schema().properties" | ||
label-for-focus-target="$ctrl.labelForFocusTarget()"> | ||
</schema-based-dict-editor> | ||
|
||
<schema-based-custom-editor ng-if="schema().type === 'custom' && !schema().choices" | ||
obj-type="schema().obj_type" local-value="$parent.localValue" | ||
is-disabled="isDisabled()"> | ||
<schema-based-custom-editor ng-if="$ctrl.schema().type === 'custom' && !$ctrl.schema().choices" | ||
obj-type="$ctrl.schema().obj_type" local-value="$ctrl.localValue" | ||
is-disabled="$ctrl.isDisabled()"> | ||
</schema-based-custom-editor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
...s/dev/head/components/forms/schema-based-editors/schema-based-float-editor.directive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.