From 6816bc8badb34a41e41718b0d42e1021c974ff64 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 5 May 2023 01:50:41 +0300 Subject: [PATCH 1/9] remove unused stuff --- .../admin_tabs/frontends_tab.vue | 8 +- .../admin_tabs/instance_tab.vue | 108 +++++------------- .../settings_modal/admin_tabs/limits_tab.vue | 56 +++------ 3 files changed, 43 insertions(+), 129 deletions(-) diff --git a/src/components/settings_modal/admin_tabs/frontends_tab.vue b/src/components/settings_modal/admin_tabs/frontends_tab.vue index e108a9638..5281ef222 100644 --- a/src/components/settings_modal/admin_tabs/frontends_tab.vue +++ b/src/components/settings_modal/admin_tabs/frontends_tab.vue @@ -13,14 +13,10 @@

{{ $t('admin_dash.frontend.default_frontend_tip2') }}

  • - - NAME - +
  • - - REF - +
  • diff --git a/src/components/settings_modal/admin_tabs/instance_tab.vue b/src/components/settings_modal/admin_tabs/instance_tab.vue index e519e135a..d537adb6f 100644 --- a/src/components/settings_modal/admin_tabs/instance_tab.vue +++ b/src/components/settings_modal/admin_tabs/instance_tab.vue @@ -4,34 +4,22 @@

    {{ $t('admin_dash.instance.instance') }}

    • - - NAME - +
    • - - ADMIN EMAIL - +
    • - - DESCRIPTION - +
    • - - SHORT DESCRIPTION - +
    • - - INSTANCE THUMBNAIL - +
    • - - BACKGROUND IMAGE - +
    @@ -39,53 +27,39 @@

    {{ $t('admin_dash.instance.registrations') }}

    • - - REGISTRATIONS OPEN - +
      • - INVITES ENABLED - + />
    • - - BDEY REQUIRED - +
      • - BDEY age of consent - + />
    • - - ACTIVATION REQUIRED - +
    • - - APPROVAL REQUIRED - +
    • {{ $t('admin_dash.instance.captcha_header') }}

    • - - CAPTCHA - +
      • - CAPTCHA TYPE - + /> - VALID - + />

        {{ $t('admin_dash.instance.kocaptcha') }}

      • - - cockAPTCHA ENDPOINT - +
    • @@ -124,17 +92,13 @@

      {{ $t('admin_dash.instance.access') }}

      • - - PUBLIC - +
      • {{ $t('admin_dash.instance.restrict.header') }}

      • - - SEARCH RESTRICTION - +
      • {{ $t('admin_dash.instance.restrict.timelines') }}

        @@ -145,9 +109,7 @@ indeterminate-state=":if_instance_is_private" swap-description-and-label hide-description - > - LOCAL TIMELINES - + />
      • - FED TIMELINES - + />
      • - - TIMELINES - +
      • {{ $t('admin_dash.instance.restrict.profiles') }}

        @@ -173,9 +131,7 @@ indeterminate-state=":if_instance_is_private" swap-description-and-label hide-description - > - LOCAL PROFILES - + />
      • - FED PROFILES - + />
      • - - PROFILES - +
      • {{ $t('admin_dash.instance.restrict.activities') }}

        @@ -201,9 +153,7 @@ indeterminate-state=":if_instance_is_private" swap-description-and-label hide-description - > - LOCAL STATUSES - + />
      • - FED STATUSES - + />
      • - - STATUSES - +
      diff --git a/src/components/settings_modal/admin_tabs/limits_tab.vue b/src/components/settings_modal/admin_tabs/limits_tab.vue index f7a70c970..068f2cdab 100644 --- a/src/components/settings_modal/admin_tabs/limits_tab.vue +++ b/src/components/settings_modal/admin_tabs/limits_tab.vue @@ -11,9 +11,7 @@ source="admin" path=":pleroma.:instance.:limit" draft-mode - > - POST LIMIT - + />
    • - POST LIMIT (remote) - + />
    • {{ $t('admin_dash.limits.uploads') }}

      @@ -33,27 +29,21 @@ source="admin" path=":pleroma.:instance.:description_limit" draft-mode - > - IMAGE DESCRIPTION LIMIT - + />
    • - UPLOAD LIMIT KiB - + />
    • - MAX ATTACHMENTS - + />
    • {{ $t('admin_dash.limits.users') }}

      @@ -63,27 +53,21 @@ source="admin" path=":pleroma.:instance.:max_pinned_statuses" draft-mode - > - MAX PINNED POSTS - + />
    • - BIO LENGTH - + />
    • - NAME LENGTH - + />
    • {{ $t('admin_dash.limits.profile_fields') }}

      @@ -93,9 +77,7 @@ source="admin" path=":pleroma.:instance.:max_account_fields" draft-mode - > - MAX ACCOUNT FIELDS - + />
    • - MAX ACCOUNT FIELDS (remote) - + />
    • - MAX ACCOUNT FIELD NAME - + />
    • - MAX ACCOUNT VALUE NAME - + />
    • {{ $t('admin_dash.limits.user_uploads') }}

      @@ -133,18 +109,14 @@ source="admin" path=":pleroma.:instance.:avatar_upload_limit" draft-mode - > - MAX AVATAR SIZE KiB - + />
    • - MAX BANNER SIZE KiB - + />
    From 1935bf6bd4fdef1336b8b709c38dba0ee8d7448f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 8 May 2023 20:49:44 +0300 Subject: [PATCH 2/9] fix media upload bug --- src/components/media_upload/media_upload.vue | 7 +++---- src/i18n/en.json | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/media_upload/media_upload.vue b/src/components/media_upload/media_upload.vue index 993c01a4f..2ea5567a2 100644 --- a/src/components/media_upload/media_upload.vue +++ b/src/components/media_upload/media_upload.vue @@ -1,8 +1,7 @@ diff --git a/src/i18n/en.json b/src/i18n/en.json index 44998453d..072ce9522 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -892,6 +892,8 @@ "is_default_custom": "(Default, version: {version})", "install": "Install", "install_version": "Install version {version}", + "more_install_options": "More install options", + "more_default_options": "More default setting options", "set_default": "Set default", "set_default_version": "Set version {version} as default", "wip_notice": "Please note that this section is a WIP and lacks certain features as backend implementation of front-end management is incomplete.", From b9c69a2272219865ff7e5b35dd1a0df7ead16538 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 8 May 2023 21:01:29 +0300 Subject: [PATCH 3/9] improve the semantics --- .../admin_tabs/frontends_tab.vue | 28 +-- .../settings_modal/admin_tabs/limits_tab.vue | 222 +++++++++--------- 2 files changed, 130 insertions(+), 120 deletions(-) diff --git a/src/components/settings_modal/admin_tabs/frontends_tab.vue b/src/components/settings_modal/admin_tabs/frontends_tab.vue index 5281ef222..f09e6a800 100644 --- a/src/components/settings_modal/admin_tabs/frontends_tab.vue +++ b/src/components/settings_modal/admin_tabs/frontends_tab.vue @@ -11,15 +11,17 @@

    {{ $t('admin_dash.frontend.default_frontend') }}

    {{ $t('admin_dash.frontend.default_frontend_tip') }}

    {{ $t('admin_dash.frontend.default_frontend_tip2') }}

    -
  • -
  • - -
  • -
  • - -
  • -
  • - +
      +
    • + +
    • +
    • + +
    • +
    • + +
    • +
  • @@ -77,7 +79,6 @@ @@ -120,7 +121,7 @@ diff --git a/src/components/settings_modal/admin_tabs/limits_tab.vue b/src/components/settings_modal/admin_tabs/limits_tab.vue index 068f2cdab..ef4b9271d 100644 --- a/src/components/settings_modal/admin_tabs/limits_tab.vue +++ b/src/components/settings_modal/admin_tabs/limits_tab.vue @@ -5,118 +5,128 @@
    • {{ $t('admin_dash.limits.posts') }}

      -
    • -
    • - -
    • -
    • - +
        +
      • + +
      • +
      • + +
      • +
    • {{ $t('admin_dash.limits.uploads') }}

      -
    • -
    • - -
    • -
    • - -
    • -
    • - +
        +
      • + +
      • +
      • + +
      • +
      • + +
      • +
    • {{ $t('admin_dash.limits.users') }}

      -
    • -
    • - -
    • -
    • - -
    • -
    • - -
    • -
    • -

      {{ $t('admin_dash.limits.profile_fields') }}

      -
    • -
    • - -
    • -
    • - -
    • -
    • - -
    • -
    • - -
    • -
    • -

      {{ $t('admin_dash.limits.user_uploads') }}

      -
    • -
    • - -
    • -
    • - +
        +
      • + +
      • +
      • + +
      • +
      • + +
      • +
      • +

        {{ $t('admin_dash.limits.profile_fields') }}

        +
          +
        • + +
        • +
        • + +
        • +
        • + +
        • +
        • + +
        • +
        +
      • +
      • +

        {{ $t('admin_dash.limits.user_uploads') }}

        +
          +
        • + +
        • +
        • + +
        • +
        +
      • +
    From 05a7e612aa6d9f2a44eea22266b325933da6f5ad Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 8 May 2023 21:10:06 +0300 Subject: [PATCH 4/9] show warning for developer for missing labels --- .../helpers/attachment_setting.vue | 5 +++-- .../settings_modal/helpers/boolean_setting.vue | 16 +++++++++++++--- .../settings_modal/helpers/number_setting.vue | 5 +++-- .../settings_modal/helpers/string_setting.vue | 5 +++-- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/components/settings_modal/helpers/attachment_setting.vue b/src/components/settings_modal/helpers/attachment_setting.vue index 0bede2c24..447fa1729 100644 --- a/src/components/settings_modal/helpers/attachment_setting.vue +++ b/src/components/settings_modal/helpers/attachment_setting.vue @@ -10,9 +10,10 @@ -