Browse Source

feat: cf turnstile now follow user dark theme setting

M1Screw 2 years ago
parent
commit
1f83f96cd6

+ 6 - 6
composer.lock

@@ -123,16 +123,16 @@
         },
         {
             "name": "aws/aws-sdk-php",
-            "version": "3.269.6",
+            "version": "3.269.7",
             "source": {
                 "type": "git",
                 "url": "https://github.com/aws/aws-sdk-php.git",
-                "reference": "343f7088f246d4667172e69d5f2bf440496bb708"
+                "reference": "f34afba20e3ad782ed91332a8306b91b06a1de5c"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/343f7088f246d4667172e69d5f2bf440496bb708",
-                "reference": "343f7088f246d4667172e69d5f2bf440496bb708",
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f34afba20e3ad782ed91332a8306b91b06a1de5c",
+                "reference": "f34afba20e3ad782ed91332a8306b91b06a1de5c",
                 "shasum": ""
             },
             "require": {
@@ -212,9 +212,9 @@
             "support": {
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.269.6"
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.269.7"
             },
-            "time": "2023-05-04T18:22:48+00:00"
+            "time": "2023-05-05T19:51:13+00:00"
         },
         {
             "name": "bacon/bacon-qr-code",

+ 1 - 1
resources/views/tabler/admin/setting/ref.tpl

@@ -70,7 +70,7 @@
                                     </div>
                                 </div>
                                 <div class="form-group mb-3 row">
-                                    <label class="form-label col-3 col-form-label">邀请模式</label>
+                                    <label class="form-label col-3 col-form-label">返利模式</label>
                                     <div class="col">
                                         <select id="invite_rebate_mode" class="col form-select" value="{$settings['invite_rebate_mode']}">
                                             <option value="continued" {if $settings['invite_rebate_mode'] === 'continued'}selected{/if}>

+ 8 - 2
resources/views/tabler/user/index.tpl

@@ -453,7 +453,7 @@
                                     签到可领取
                                     {if $config['checkinMin'] !== $config['checkinMax']}
                                         &nbsp;<code>{$config['checkinMin']} MB</code> 至 <code>{$config['checkinMax']} MB</code>
-                                        范围内的流量
+                                        范围内的流量
                                     {else}
                                         <code>{$config['checkinMin']} MB</code>
                                     {/if}
@@ -469,7 +469,13 @@
                                     {else}
                                     {if $public_setting['enable_checkin_captcha']}
                                         {if $public_setting['captcha_provider'] === 'turnstile'}
-                                            <div id="cf-turnstile" class="cf-turnstile" data-sitekey="{$captcha['turnstile_sitekey']}" data-theme="light"></div>
+                                            <div id="cf-turnstile" class="cf-turnstile" data-sitekey="{$captcha['turnstile_sitekey']}"
+                                            {if $user->is_dark_mode}
+                                                 data-theme="dark"
+                                            {else}
+                                                 data-theme="light"
+                                            {/if}
+                                            ></div>
                                         {/if}
                                         {if $public_setting['captcha_provider'] === 'geetest'}
                                             <div id="geetest"></div>