Joomla! conf (#86) (#186)

* Joomla! conf

* fix bug escape character & ;

* remove global and fix presets }

* change requests
This commit is contained in:
Alexandre Dias
2020-10-27 10:40:39 +00:00
committed by GitHub
parent 8bc06372a3
commit ae322cf2c5
8 changed files with 114 additions and 5 deletions

View File

@@ -118,6 +118,24 @@ THE SOFTWARE.
</div>
</div>
</div>
<div v-if="joomlaRulesEnabled" class="field is-horizontal">
<div class="field-label">
<label class="label">{{ i18n.templates.domainSections.php.joomlaRules }}</label>
</div>
<div class="field-body">
<div class="field">
<div :class="`control${joomlaRulesChanged ? ' is-changed' : ''}`">
<div class="checkbox">
<PrettyCheck v-model="joomlaRules" class="p-default p-curve p-fill p-icon">
<i slot="extra" class="icon fas fa-check"></i>
{{ i18n.templates.domainSections.php.enableJoomlaRules }}
</PrettyCheck>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
@@ -144,6 +162,10 @@ THE SOFTWARE.
default: false,
enabled: true,
},
joomlaRules: {
default: false,
enabled: true,
},
};
export default {
@@ -188,6 +210,8 @@ THE SOFTWARE.
this.$props.data.drupalRules.computed = this.$props.data.drupalRules.value;
this.$props.data.magentoRules.enabled = true;
this.$props.data.magentoRules.computed = this.$props.data.magentoRules.value;
this.$props.data.joomlaRules.enabled = true;
this.$props.data.joomlaRules.computed = this.$props.data.joomlaRules.value;
} else {
this.$props.data.wordPressRules.enabled = false;
this.$props.data.wordPressRules.computed = false;
@@ -195,6 +219,8 @@ THE SOFTWARE.
this.$props.data.drupalRules.computed = false;
this.$props.data.magentoRules.enabled = false;
this.$props.data.magentoRules.computed = false;
this.$props.data.joomlaRules.enabled = false;
this.$props.data.joomlaRules.computed = false;
}
},
deep: true,

View File

@@ -83,7 +83,8 @@ THE SOFTWARE.
&& !data.routing.fallbackHtml.computed
&& !data.php.wordPressRules.computed
&& !data.php.drupalRules.computed
&& !data.php.magentoRules.computed;
&& !data.php.magentoRules.computed
&& !data.php.joomlaRules.computed;
},
},
django: {
@@ -125,7 +126,8 @@ THE SOFTWARE.
&& !data.routing.fallbackHtml.computed
&& data.php.wordPressRules.computed
&& !data.php.drupalRules.computed
&& !data.php.magentoRules.computed;
&& !data.php.magentoRules.computed
&& !data.php.joomlaRules.computed;
},
},
drupal: {
@@ -138,7 +140,8 @@ THE SOFTWARE.
&& !data.routing.fallbackHtml.computed
&& !data.php.wordPressRules.computed
&& data.php.drupalRules.computed
&& !data.php.magentoRules.computed;
&& !data.php.magentoRules.computed
&& !data.php.joomlaRules.computed;
},
},
magento: {
@@ -151,7 +154,22 @@ THE SOFTWARE.
&& !data.routing.fallbackHtml.computed
&& !data.php.wordPressRules.computed
&& !data.php.drupalRules.computed
&& data.php.magentoRules.computed;
&& data.php.magentoRules.computed
&& !data.php.joomlaRules.computed;
},
},
joomla: {
default: false,
display: i18n.common.joomla,
enabled: true,
computedCheck(data) {
return data.routing.index.computed === 'index.php'
&& data.routing.fallbackPhp.computed
&& !data.routing.fallbackHtml.computed
&& !data.php.wordPressRules.computed
&& !data.php.drupalRules.computed
&& !data.php.magentoRules.computed
&& data.php.joomlaRules.computed;
},
},
};
@@ -200,6 +218,7 @@ THE SOFTWARE.
this.$parent.resetValue('php', 'wordPressRules');
this.$parent.resetValue('php', 'drupalRules');
this.$parent.resetValue('php', 'magentoRules');
this.$parent.resetValue('php', 'joomlaRules');
this.$parent.resetValue('python', 'python');
this.$parent.resetValue('python', 'djangoRules');
this.$parent.resetValue('reverseProxy', 'reverseProxy');
@@ -248,6 +267,10 @@ THE SOFTWARE.
case 'magento':
this.$parent.setValue('php', 'magentoRules', true);
break;
case 'joomla':
this.$parent.setValue('php', 'joomlaRules', true);
break;
}
},
toggleCollapse() {