simplyunnamed/eveuniverse

搜索 EVE 宇宙 API

安装次数: 114

依赖项: 0

建议者: 0

安全: 0

星星: 0

关注者: 1

分支: 0

公开问题: 0

语言:Blade

类型:seat-plugin

1.0.0 2021-04-11 12:01 UTC

This package is auto-updated.

Last update: 2024-09-11 19:59:39 UTC


README

SeAT 中搜索宇宙数据的简单 ESI 搜索工具。

如何使用

安装简单。运行

composer require simplyunnamed\eveuniverse

Laravel 将自动加载此包。

将搜索添加到我的页面

提供了 4 个搜索。

  • 角色
  • 联盟
  • 公司
  • 派系

要将这些包含在您的表单中,请使用以下部分之一

  • @include('eveuniverse.search.character')
  • @include('eveuniverse.search.corporation')
  • @include('eveuniverse.search.alliance')
  • @include('eveuniverse.search.faction')

以下属性可以设置

  • class: 覆盖默认类。
  • id: 设置一个 id
  • modal: 提供模态标识符
  • name: 覆盖字段名称
  • label: 更改标签

Select2 在模态中可能有点奇怪。如果您将此表单放在模态中,请确保使用模态属性提供模态的 id。

  • @include('eveuniverse.search.character', ['modal'=>'#modal-id'])
  • @include('eveuniverse.search.corporation', ['modal'=>'#modal-id'])
  • @include('eveuniverse.search.alliance', ['modal'=>'#modal-id'])
  • @include('eveuniverse.search.faction', ['modal'=>'#modal-id'])

有时,模态表单在服务器端渲染,并通过 JavaScript 插入到 body 中。在这种情况下,有一些辅助函数可用于启动字段。

eu_select2_modal($select_id, $type, $modal)

这些用例的示例可以在 examples 视图文件夹中找到。您也可以在安装后通过访问 /eveuniverse/example 来体验这些示例。