喜爱鹿/水母缓冲GUI

水母信用备忘录模块。

2.0.0 2023-01-24 12:59 UTC

This package is auto-updated.

Last update: 2024-08-27 12:29:54 UTC


README

license

安装

composer require fond-of-oryx/jellyfish-buffer-gui

配置

在商店配置(config/shared/default_config.php)中注册 FondOfOryx 路径以供 Zed 翻译使用

if (file_exists(APPLICATION_VENDOR_DIR . '/fond-of-oryx')) {
    $config[TranslatorConstants::TRANSLATION_ZED_FILE_PATH_PATTERNS][] = APPLICATION_VENDOR_DIR . '/fond-of-oryx/*/data/translation/Zed/[a-z][a-z]_[A-Z][A-Z].csv';
}

更新翻译缓存 ./vendor/bin/console translator:generate-cache

Pyz/Zed/ZedNavigation/ZedNavigationConfig.php 中注册 FondOfOryx 路径以供 Zed 导航使用

public function getNavigationSchemaPathPattern()
    {
        $navigationSchemaPathPatterns = parent::getNavigationSchemaPathPattern();

        if (file_exists(APPLICATION_VENDOR_DIR . '/fond-of-oryx')) {
            $navigationSchemaPathPatterns[] = APPLICATION_VENDOR_DIR . '/fond-of-oryx/*/src/*/Zed/*/Communication/';
        }

        return $navigationSchemaPathPatterns;
    }

构建 Zed 导航缓存 ./vendor/bin/console navigation:build-cache

将数据添加到 Zed 销售详情页面(Pyz/Zed/Sales/SalesConfig.php

public function getSalesDetailExternalBlocksUrls()
    {
        $projectExternalBlocks = [
            'jellyfishBuffer' => 'jellyfish-buffer-gui/export/list',
            ...
        ];

        $externalBlocks = parent::getSalesDetailExternalBlocksUrls();

        return array_merge($externalBlocks, $projectExternalBlocks);
    }