• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / admin / 11005848055

24 Sep 2024 02:23AM UTC coverage: 20.827% (-0.06%) from 20.887%
11005848055

push

github

twinh
feat(admin): 添加入口背景图配置

20 of 80 branches covered (25.0%)

0 of 2 new or added lines in 2 files covered. (0.0%)

146 of 701 relevant lines covered (20.83%)

2.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pages/api/admin/js-config/index.php
1
<?php
2

3
use Miaoxing\App\Service\JsConfig;
4
use Miaoxing\Plugin\BasePage;
5

6
return new class extends BasePage {
×
7
    protected $requireAuth = false;
8

9
    public function get()
10
    {
11
        $page = wei()->adminPage;
×
12

13
        $config = [
×
14
            'title' => $page->getTitle(),
×
15
            'logo' => $page->getLogo(),
×
16
            'copyright' => $page->getCopyright(),
×
NEW
17
            'entryBg' => $page->getEntryBg(),
×
18
            'bg' => $page->getBg(),
×
19
        ];
×
20

21
        return suc(['data' => JsConfig::toArray() + ['page' => $config]]);
×
22
    }
23
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc