mirror of
https://github.com/v2board/v2board.git
synced 2025-06-15 22:27:50 +08:00
update: theme
This commit is contained in:
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
28
public/theme/v2board/assets/i18n/en-US.js
vendored
28
public/theme/v2board/assets/i18n/en-US.js
vendored
@ -252,18 +252,18 @@ window.settings.i18n['en-US'] = {
|
||||
'不会使用,查看使用教程': 'I am a newbie, view the tutorial',
|
||||
'使用支持扫码的客户端进行订阅': 'Use a client app that supports scanning QR code to subscribe',
|
||||
'扫描二维码订阅': 'Scan QR code to subscribe',
|
||||
'续费': '续费',
|
||||
'购买': '购买',
|
||||
'查看教程': '查看教程',
|
||||
'注意': '注意',
|
||||
'你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?': '你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?',
|
||||
'确定取消': '确定取消',
|
||||
'返回我的订单': '返回我的订单',
|
||||
'如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?': '如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?',
|
||||
'选择最适合你的计划': '选择最适合你的计划',
|
||||
'全部': '全部',
|
||||
'按周期': '按周期',
|
||||
'一次性': '一次性',
|
||||
'遇到问题': '遇到问题',
|
||||
'遇到问题可以通过工单与我们沟通': '遇到问题可以通过工单与我们沟通'
|
||||
'续费': 'Renewal',
|
||||
'购买': 'Purchase',
|
||||
'查看教程': 'View Tutorial',
|
||||
'注意': 'Attention',
|
||||
'你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?': 'You still have an unpaid order. You need to cancel it before purchasing. Are you sure you want to cancel the previous order?',
|
||||
'确定取消': 'Confirm Cancel',
|
||||
'返回我的订单': 'Back to My Order',
|
||||
'如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?': 'If you have already paid, canceling the order may cause the payment to fail. Are you sure you want to cancel the order?',
|
||||
'选择最适合你的计划': 'Choose the right plan for you',
|
||||
'全部': 'All',
|
||||
'按周期': 'By Cycle',
|
||||
'一次性': 'One Time',
|
||||
'遇到问题': 'I have a problem',
|
||||
'遇到问题可以通过工单与我们沟通': 'If you have any problems, you can contact us via ticket'
|
||||
};
|
6
public/theme/v2board/assets/i18n/zh-CN.js
vendored
6
public/theme/v2board/assets/i18n/zh-CN.js
vendored
@ -256,11 +256,11 @@ window.settings.i18n['zh-CN'] = {
|
||||
'购买': '购买',
|
||||
'查看教程': '查看教程',
|
||||
'注意': '注意',
|
||||
'你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?': '你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?',
|
||||
'你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?': '您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?',
|
||||
'确定取消': '确定取消',
|
||||
'返回我的订单': '返回我的订单',
|
||||
'如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?': '如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?',
|
||||
'选择最适合你的计划': '选择最适合你的计划',
|
||||
'如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?': '如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?',
|
||||
'选择最适合你的计划': '选择最适合您的计划',
|
||||
'全部': '全部',
|
||||
'按周期': '按周期',
|
||||
'一次性': '一次性',
|
||||
|
20
public/theme/v2board/assets/i18n/zh-TW.js
vendored
20
public/theme/v2board/assets/i18n/zh-TW.js
vendored
@ -252,18 +252,18 @@ window.settings.i18n['zh-TW'] = {
|
||||
'不会使用,查看使用教程': '不會使用,檢視使用檔案',
|
||||
'使用支持扫码的客户端进行订阅': '使用支持掃碼的客戶端進行訂閲',
|
||||
'扫描二维码订阅': '掃描二維碼訂閲',
|
||||
'续费': '续费',
|
||||
'购买': '购买',
|
||||
'续费': '續費',
|
||||
'购买': '購買',
|
||||
'查看教程': '查看教程',
|
||||
'注意': '注意',
|
||||
'你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?': '你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?',
|
||||
'确定取消': '确定取消',
|
||||
'返回我的订单': '返回我的订单',
|
||||
'如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?': '如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?',
|
||||
'选择最适合你的计划': '选择最适合你的计划',
|
||||
'你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?': '您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?',
|
||||
'确定取消': '確定取消',
|
||||
'返回我的订单': '返回我的訂單',
|
||||
'如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?': '如果您已經付款,取消訂單可能會導致支付失敗,確定要取消訂單嗎?',
|
||||
'选择最适合你的计划': '選擇最適合您的計劃',
|
||||
'全部': '全部',
|
||||
'按周期': '按周期',
|
||||
'按周期': '按週期',
|
||||
'一次性': '一次性',
|
||||
'遇到问题': '遇到问题',
|
||||
'遇到问题可以通过工单与我们沟通': '遇到问题可以通过工单与我们沟通'
|
||||
'遇到问题': '遇到問題',
|
||||
'遇到问题可以通过工单与我们沟通': '遇到問題您可以通過工單與我們溝通'
|
||||
};
|
2
public/theme/v2board/assets/umi.js
vendored
2
public/theme/v2board/assets/umi.js
vendored
File diff suppressed because one or more lines are too long
@ -2,16 +2,52 @@
|
||||
|
||||
return [
|
||||
'name' => 'V2board',
|
||||
'description' => '这是一个描述',
|
||||
'description' => 'V2board默认主题',
|
||||
'version' => '1.5.6',
|
||||
'images' => 'https://images.unsplash.com/photo-1515405295579-ba7b45403062?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2160&q=80',
|
||||
'configs' => [
|
||||
[
|
||||
'field_name' => 'theme', // 字段名
|
||||
'description' => '这是一个字段主题', // 描述
|
||||
'field_type' => 'select', // 字段类型: select,input,switch
|
||||
'select_options' => [ // [filed_type]_options
|
||||
'奶绿'
|
||||
]
|
||||
'label' => '主题色', // 标签
|
||||
'placeholder' => '请选择主题颜色', // 描述
|
||||
'field_name' => 'theme_color', // 字段名 作为数据key使用
|
||||
'field_type' => 'select', // 字段类型: select,input,switch
|
||||
'select_options' => [ // 当字段类型为select时有效
|
||||
'default' => '默认(蓝色)',
|
||||
'green' => '奶绿色',
|
||||
'black' => '黑色',
|
||||
'darkblue' => '暗蓝色',
|
||||
],
|
||||
'default_value' => 'default' // 字段默认值,将会在首次进行初始化
|
||||
], [
|
||||
'label' => '背景',
|
||||
'placeholder' => '请输入背景图片URL',
|
||||
'field_name' => 'background_url',
|
||||
'field_type' => 'input'
|
||||
], [
|
||||
'label' => '边栏风格',
|
||||
'placeholder' => '请选择边栏风格',
|
||||
'field_name' => 'theme_sidebar',
|
||||
'field_type' => 'select',
|
||||
'select_options' => [
|
||||
'light' => '亮',
|
||||
'dark' => '暗'
|
||||
],
|
||||
'default_value' => 'light'
|
||||
], [
|
||||
'label' => '顶部风格',
|
||||
'placeholder' => '请选择顶部风格',
|
||||
'field_name' => 'theme_header',
|
||||
'field_type' => 'select',
|
||||
'select_options' => [
|
||||
'light' => '亮',
|
||||
'dark' => '暗'
|
||||
],
|
||||
'default_value' => 'dark'
|
||||
], [
|
||||
'label' => '自定义页脚HTML',
|
||||
'placeholder' => '可以实现客服JS代码的加入等',
|
||||
'field_name' => 'custom_html',
|
||||
'field_type' => 'textarea'
|
||||
]
|
||||
]
|
||||
];
|
||||
|
@ -15,7 +15,7 @@
|
||||
'default' => '#0665d0',
|
||||
'green' => '#319795'
|
||||
])
|
||||
<meta name="theme-color" content="{{$colors[$theme_color]}}">
|
||||
<meta name="theme-color" content="{{$colors[$theme_config['theme_color']]}}">
|
||||
|
||||
<title>{{$title}}</title>
|
||||
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,400i,600,700"> -->
|
||||
@ -25,14 +25,13 @@
|
||||
title: '{{$title}}',
|
||||
theme_path: '{{$theme_path}}',
|
||||
theme: {
|
||||
sidebar: '{{$theme_sidebar}}',
|
||||
header: '{{$theme_header}}',
|
||||
color: '{{$theme_color}}',
|
||||
sidebar: '{{$theme_config['theme_sidebar']}}',
|
||||
header: '{{$theme_config['theme_header']}}',
|
||||
color: '{{$theme_config['theme_color']}}',
|
||||
},
|
||||
version: '{{$version}}',
|
||||
background_url: '{{$background_url}}',
|
||||
background_url: '{{$theme_config['background_url']}}',
|
||||
description: '{{$description}}',
|
||||
crisp_id: '{{$crisp_id}}',
|
||||
i18n: [
|
||||
'zh-CN',
|
||||
'en-US',
|
||||
@ -53,6 +52,7 @@
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
{{!! $config['custom_html'] !!}}
|
||||
<script src="/theme/{{$theme}}/assets/vendors.async.js?v={{$version}}"></script>
|
||||
<script src="/theme/{{$theme}}/assets/components.async.js?v={{$version}}"></script>
|
||||
<script src="/theme/{{$theme}}/assets/umi.js?v={{$version}}"></script>
|
||||
|
Reference in New Issue
Block a user