diff --git a/resources/assets/components/admin/AdminSettings.vue b/resources/assets/components/admin/AdminSettings.vue new file mode 100644 index 000000000..9993ab1a0 --- /dev/null +++ b/resources/assets/components/admin/AdminSettings.vue @@ -0,0 +1,1535 @@ + + + + + diff --git a/resources/assets/js/admin.js b/resources/assets/js/admin.js index 8d2b82ca1..e5a74d8e6 100644 --- a/resources/assets/js/admin.js +++ b/resources/assets/js/admin.js @@ -36,11 +36,21 @@ Vue.component( require('./../components/admin/AdminReports.vue').default ); +Vue.component( + 'admin-settings', + require('./../components/admin/AdminSettings.vue').default +); + Vue.component( 'instances-component', require('./../components/admin/AdminInstances.vue').default ); +// Vue.component( +// 'instance-details-component', +// require('./../components/admin/AdminInstanceDetails.vue').default +// ); + Vue.component( 'hashtag-component', require('./../components/admin/AdminHashtags.vue').default diff --git a/resources/views/admin/settings/home.blade.php b/resources/views/admin/settings/home.blade.php index c2254f700..d78780878 100644 --- a/resources/views/admin/settings/home.blade.php +++ b/resources/views/admin/settings/home.blade.php @@ -1,421 +1,12 @@ @extends('admin.partial.template-full') @section('section') -
-

Settings

-@if(config('instance.enable_cc')) -

Manage instance settings

-
- @csrf - -
- -
- {{--
- -
    -
  • - Max Upload Size: - {{$system['max_upload_size']}} -
  • -
  • - Image Driver: - {{$system['image_driver']}} -
  • -
  • - Image Driver Loaded: - - @if($system['image_driver_loaded']) - - @else - - @endif - -
  • -
  • - File Permissions: - - @if($system['permissions']) - - @else - - @endif - -
  • -
  • - - -
  • -
-
--}} -
-
- - -
- -
- -
-
- - @if($cloud_ready) -
- - -
-

Store photos & videos on S3 compatible object storage providers.

- @endif - -
- - -
-

ActivityPub federation, compatible with Pixelfed, Mastodon and other projects.

- -
- - -
- @if((bool) config_cache('federation.activitypub.enabled')) -

Allow local accounts to migrate to other local or remote accounts.

- @else -

ActivityPub Required Allow local accounts to migrate to other local or remote accounts.

- @endif - - {{--
- - -
-

Allow new user registrations.

--}} - - - {{--
- - -
-

Manually review new account registration applications.

--}} - -
- - -
-

Enable apis required for mobile app support.

- -
- - -
-

Allow users to share ephemeral Stories.

- -
- - -
-

Allow experimental Instagram Import support.

- -
- - -
-

Detect and remove spam from timelines.

-
-
- {{--
-
- - -

The instance name used in titles, metadata and apis.

-
-
-
-
- - -

Short description of instance used on various pages and apis.

-
-
-
-
- - -

Longer description of instance used on about page.

-
-
--}} -
- -
-
-
-

Configure your landing page

-
-
-
-
-

Discovery

- -
-
- - -
-
- -
-
- - -
-
-
-
-
-
-

Admin Account

- -
- -
-
-
-
- -
-
-
- - -

The instance name used in titles, metadata and apis.

-
-
-
-
- - -

Short description of instance used on various pages and apis.

-
-
-
-
- - -

Longer description of instance used on about page.

-
-
-
-
- - -

The header title used on the about page.

-
-
-
- -
-
-
-
- - -
-
-
- -
-
-
- - -

Set a storage limit per user account.

-
- - -

Account limit size in KB.

-

{{config_cache('pixelfed.max_account_size')}} KB = {{floor(config_cache('pixelfed.max_account_size') / 1024)}} MB

-
-
- -
-
-
- - -

Enable auto follow accounts, new accounts will follow accounts you set.

-
- - -

Add account usernames to follow separated by commas.

-
-
-
- -
-
-
- - -

Maximum file upload size in KB

-

{{config_cache('pixelfed.max_photo_size')}} KB = {{number_format(config_cache('pixelfed.max_photo_size') / 1024)}} MB

-
-
-
-
- - -

The maximum number of photos or videos per album

-
-
-
-
- - -

Image optimization quality from 0-100%. Set to 0 to disable image optimization.

-
-
-
-
- -
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-

Allowed media types.

-
-
-
- -
-
-

Add rules that explain what is acceptable use.

-
-
-

Active Rules

-
    - @if($rules) - @foreach($rules as $rule) -
  1. -

    - {{$rule}} -

    -

    - -

    -
  2. - @endforeach - @endif -
-
-
-
- - -
-
-
- -
-
-
- -
- - -
- -

Add custom CSS, will be used on all pages

-
-
-
- -
- -
-
- -
-
-
-@else - -
-

Not enabled

-

Add ENABLE_CONFIG_CACHE=true in your .env file
and run php artisan config:cache

-
-@endif + @endsection @push('scripts') @endpush