Remove API preference

This commit is contained in:
Pig Fang 2019-12-29 15:43:40 +08:00
parent 1f899d1393
commit 4689010466
4 changed files with 0 additions and 8 deletions

View File

@ -298,10 +298,6 @@ class AdminController extends Controller
->text('player_name_length_max')
->addon(trans('options.general.player_name_length.suffix'));
$form->select('api_type')
->option('0', 'CustomSkinLoader API')
->option('1', 'UniversalSkinAPI');
$form->checkbox('auto_del_invalid_texture')->label()->hint();
$form->checkbox('allow_downloading_texture')->label();

View File

@ -8,7 +8,6 @@ return [
'register_with_player_name' => 'true',
'require_verification' => 'false',
'regs_per_ip' => '3',
'api_type' => 'false',
'announcement' => 'Welcome to Blessing Skin {version}!',
'home_pic_url' => './app/bg.png',
'custom_css' => '',

View File

@ -126,7 +126,6 @@ general:
player_name_length:
title: Player Name Length
suffix: characters
api_type: Prefered JSON API
auto_del_invalid_texture:
title: Invalid Textures
label: Delete invalid textures automatically.

View File

@ -117,7 +117,6 @@ class AdminFormsTest extends BrowserKitTestCase
))
->select('cjk', 'player_name_rule')
->type('/^([0-9]+)$/', 'custom_player_name_regexp')
->select('1', 'api_type')
->check('auto_del_invalid_texture')
->uncheck('allow_downloading_texture')
->select('404', 'status_code_for_private')
@ -132,7 +131,6 @@ class AdminFormsTest extends BrowserKitTestCase
$this->assertEquals('2048', option('max_upload_file_size'));
$this->assertEquals('cjk', option('player_name_rule'));
$this->assertEquals('/^([0-9]+)$/', option('custom_player_name_regexp'));
$this->assertEquals('1', option('api_type'));
$this->assertTrue(option('auto_del_invalid_texture'));
$this->assertFalse(option('allow_downloading_texture'));
$this->assertEquals('404', option('status_code_for_private'));