diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 95a3e555..ba5e761d 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -167,6 +167,23 @@ +
+
+
+ : + + +
+
+ + Add another `key - value` pair to this icon +
+
+ + Add another icon configuration +
+
+

{{ setting.description }}

@@ -224,6 +241,9 @@ export default { this.processNestedData([value], this.settingGroup.key, this.setting.key, this.data[this.setting.key]) } }, + iconsValue() { + return this.data[':icons'].map(icon => Object.keys(icon).map(key => [key, icon[key]])) + }, inputValue() { if ([':esshd', ':cors_plug', ':quack', ':http_signatures'].includes(this.settingGroup.group) && this.data[this.setting.key]) { return this.data[this.setting.key].value @@ -276,6 +296,8 @@ export default { } }, methods: { + addIconToIcons() {}, + addValueToIcons() {}, addRowToEditableKeyword() { const updatedValue = this.editableKeywordData(this.data).reduce((acc, el, i) => { return { ...acc, [el[0]]: el[1] } @@ -308,6 +330,7 @@ export default { console.log(updatedValue) this.updateSetting(updatedValue, this.settingGroup.key, this.setting.key) }, + deleteIcondRow(index) {}, deleteMascotsRow(index) { const filteredValues = this.data[':mascots'].filter((el, i) => index !== i) const updatedValue = filteredValues.reduce((acc, el, i) => { @@ -340,6 +363,7 @@ export default { console.log(updatedValue) this.updateSetting(updatedValue, this.settingGroup.key, this.setting.key) }, + parseIcons(value, inputType, index) {}, parseMascots(value, inputType, index) { const updatedValue = this.data[':mascots'].reduce((acc, el, i) => { if (index === i) { diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue index d3181c99..e07c4f79 100644 --- a/src/views/settings/components/Instance.vue +++ b/src/views/settings/components/Instance.vue @@ -4,28 +4,32 @@
- +
- +
- +
- +
- + + + +
+
- + Submit @@ -75,6 +79,12 @@ export default { loading() { return this.settings.loading }, + manifest() { + return this.settings.description.find(setting => setting.key === ':manifest') + }, + manifestData() { + return this.settings.settings.pleroma[':manifest'] + }, pleromaUser() { return this.settings.description.find(setting => setting.key === 'Pleroma.User') }, diff --git a/src/views/settings/components/Setting.vue b/src/views/settings/components/Setting.vue index 8b8c2b39..ac984e97 100644 --- a/src/views/settings/components/Setting.vue +++ b/src/views/settings/components/Setting.vue @@ -1,7 +1,7 @@