Skip to content

finStackHubToolsExt 扩展参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793423056/FIN+5.3.1+finStackHubToolsExt 中文整理基于 FIN 5.3.1

导读: static Grid stackhubCall(Str pkgName := "")

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • classes
  • docs
  • FIN StackHub Tools Ext
  • Change Log
  • Slot Details
    • openConnection
    • stackhubCall
    • stackhubDownload
    • stackhubGetPods
    • stackhubLogin
    • stackhubLoginInfo
    • stackhubLogout
    • stackhubPodVersions

概述(中译) ​

FIN StackHub 工具扩展

此扩展添加了一个 FIN Stack 应用程序和用于与 StackHub 交互的工具。

变更日志

v 0.1.0 - 创建 Pod。v 0.1.1 - 添加了设置图标和登录/注销表单。v 0.1.2 - 为 Pod 安装添加了进度和确认表单。v 0.1.3 - 通过 finMobile 实现一次更新一个 Pod 的功能。v 0.1.8 - 更改用词以匹配 FIN Mobile。v 5.0.0 - 将工具和菜单项转换为兼容 SkySpark 3.0 API,将菜单项从 finStackMobileExt 移动到此处。v 5.0.1 - 修复了一些小问题。v 5.0.2 - 修复了从 StackHub 下载的 Pod 在 FIN Stack 重启之前不会显示的问题。添加了 Pod 图标。v 5.0.3 - 移除了旧 Flash UI 的链接,同时更改了下载 Pod 的存储位置,使其与主 Pod 存放位置一致。v 5.0.4 - “更新 Pods”菜单项徽章更新为显示当前版本以下的 Pod 数量。“更新 Pods”表单在没有可更新的 Pod 时显示警告。

const class StackHubToolsLib : Obj

方法

插槽详情


API 正文(英文) ​

openConnection ​

static StackHubClient openConnection()


stackhubCall ​

@Axon { meta=... } static Grid stackhubCall(Str pkgName := "")

Used for testing as of right now.


stackhubDownload ​

@Axon { meta=... } static Dict stackhubDownload(Dict[] podInfo := [,])


stackhubGetPods ​

@Axon { admin=true; meta=... } static Grid stackhubGetPods(Str search := "", Bool updatesOnly := false)

Using the supplied login info, get a list of pods matching the search string, if any. Returns the list of pods with the current version installed, if any.


stackhubLogin ​

@Axon { meta=... } static Void stackhubLogin(Str username, Dict info := Etc.makeDict(null))

Creates a record with StackHub login info


stackhubLoginInfo ​

@Axon { meta=... } static Dict stackhubLoginInfo()

Returns the current login info for StackHub


stackhubLogout ​

@Axon { meta=... } static Void stackhubLogout()

Removes a record with StackHub login info


stackhubPodVersions ​

@Axon { meta=... } static Grid stackhubPodVersions(Str podName)

Returns the current available version of the requested pod. Each version will have its dependencies listed in a Grid and a marker tag indicating if it can be installed.