blessing-skin-server/resources/views/user/config.tpl

146 lines
5.2 KiB
PHP
Raw Normal View History

2016-07-21 22:01:57 +08:00
@extends('user.master')
@section('title', '配置生成')
@section('style')
2016-04-03 14:28:24 +08:00
<link rel="stylesheet" href="../assets/libs/highlight/styles/arduino-light.css">
2016-07-21 22:01:57 +08:00
<style> pre { border: 0; } td[class='key'], td[class='value'] { border-top: 0 !important; } </style>
@endsection
@section('content')
2016-04-03 14:28:24 +08:00
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
配置生成
<small>Configuration Generator</small>
2016-04-03 14:28:24 +08:00
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-6">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">MOD 需求</h3>
</div><!-- /.box-header -->
<div class="box-body">
<p>本站支持的皮肤 MOD <a href="http://www.mcbbs.net/forum.php?mod=viewthread&tid=358932" target="_blank">UniSkinMod</a><a href="http://www.mcbbs.net/thread-269807-1-1.html" target="_blank">CustomSkinLoader</a> 各自的新版和旧版,以及任何支持传统皮肤加载链接的皮肤 MOD。</p>
<p>详细教程:<a href="https://github.com/printempw/blessing-skin-server#客户端配置" target="_blank">@GitHub</a></p>
</div><!-- /.box-body -->
</div><!-- /.box -->
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">配置生成</h3>
</div><!-- /.box-header -->
<div class="box-body">
<table class="table">
<tbody>
<tr>
<td class="key">MOD</td>
<td class="value">
<select class="form-control" id="mod-select">
<option value="csl">Custom Skin Loader</option>
<option value="usm">Universal Skin Mod</option>
</select>
</td>
</tr>
<tr>
<td class="key">版本</td>
<td class="value">
<select class="form-control" id="version-select">
<option value="13_1-upper">13.1 版及以上(推荐)</option>
<option value="13_1-lower">13.1 版以下</option>
</select>
</td>
</tr>
</tbody>
</table>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
<div class="col-md-6">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">配置文件</h3>
</div><!-- /.box-header -->
<div class="box-body">
<pre id="config-13_1-upper">
{
"enable": true,
"loadlist": [
{
"name": "<?php echo Option::get('site_name'); ?>",
"type": "CustomSkinAPI",
2016-04-04 08:11:43 +08:00
"root": "<?php echo Option::get('site_url')."/csl/"; ?>"
2016-04-03 14:28:24 +08:00
},
{
"name": "Mojang",
"type": "MojangAPI"
}
]
}
</pre>
<pre id="config-13_1-lower" class="hljs ini" style="display: none;">
# skinurls.txt
<?php echo Option::get('site_url'); ?>/skin/*.png
http://skins.minecraft.net/MinecraftSkins/*.png
# capeurls.txt
<?php echo Option::get('site_url'); ?>/cape/*.png
</pre>
<pre id="config-1_4-upper" style="display: none;">
{
"rootURIs": [
2016-04-04 08:11:43 +08:00
"<?php echo Option::get('site_url'); ?>/usm",
2016-04-03 14:28:24 +08:00
"http://www.skinme.cc/uniskin"
],
"legacySkinURIs": [],
"legacyCapeURIs": []
}
</pre>
<pre id="config-1_2-1_3" class="hljs ini" style="display: none;">
# <?php echo Option::get('site_name')."\n"; ?>
2016-04-04 08:11:43 +08:00
Root: <?php echo Option::get('site_url'); ?>/usm
2016-04-03 14:28:24 +08:00
</pre>
<pre id="config-1_2-lower" class="hljs ini" style="display: none;">
# <?php echo Option::get('site_name')."\n"; ?>
Skin: <?php echo Option::get('site_url'); ?>/skin/%s.png
Cape: <?php echo Option::get('site_url'); ?>/cape/%s.png
# Mojang
Skin: http://skins.minecraft.net/MinecraftSkins/%s.png
Cape: http://skins.minecraft.net/MinecraftCloaks/%s.png
</pre>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
</div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
2016-07-21 22:01:57 +08:00
@endsection
@section('script')
2016-04-03 14:28:24 +08:00
<script type="text/javascript" src="../assets/libs/highlight/highlight.min.js"></script>
2016-07-21 22:01:57 +08:00
<script>
$(document).ready(function() {
$('pre').each(function(i, block) {
hljs.highlightBlock(block);
});
});
</script>
@endsection