返回顶部
a

aioz-storageAIOZ存储部署

Deploy static websites to AIOZ Storage with built-in templates or custom sites.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
172
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

aioz-storage

AIOZ 静态网站部署

将静态网站部署到AIOZ去中心化存储。支持4个内置模板或用户自己的静态网站。

流程概览

  1. 1. 登录(邮箱 + 密码)→ Bearer令牌 + 账户ID
  2. 选择模板或自定义网站
  3. 克隆模板并自定义配置
  4. 获取存储桶信息(名称 + 12词助记词)
  5. 从API获取rootZKey
  6. 通过grant-cli.ts生成授权
  7. 从授权注册S3凭证
  8. 上传文件到S3
  9. 通过API创建静态网站
  10. 网站上线:https://.sites.aiozstorage.app

步骤1:登录

询问用户的AIOZ Storage邮箱和密码。

bash
curl -s https://api.aiozstorage.network/api/v1/login \
-H accept: application/json \
-H content-type: application/json \
-H origin: https://aiozstorage.network \
-H referer: https://aiozstorage.network/ \
--data-raw {email:,password:}

响应:data.access_token(Bearer令牌),data.account.id(账户ID)。
保存BEARERTOKEN和ACCOUNTID。

步骤2:选择模板

询问用户选择哪个模板,或者是否使用自己的静态网站。

模板来自 https://github.com/AIOZStorage/aioz-storage-docs/tree/main/examples:

  1. 1. landing — OLED暗色主题,X/Twitter风格着陆页。配置在assets/main.js中。
  2. landing-alt — 紫色渐变着陆页。配置在assets/main.js中。支持标题中的斜体渐变文字。
  3. portfolio — 面向开发者/设计师的简洁极简作品集。配置在assets/main.js中。项目图片轮播。
  4. documents — 完整的Markdown内容文档网站。配置在assets/js/config.js中。支持搜索、目录、语法高亮。
  5. 自定义 — 用户提供自己的静态文件。

步骤3:克隆模板并自定义

克隆所选模板:
bash
git clone --depth 1 https://github.com/AIOZStorage/aioz-storage-docs.git /tmp/aioz-storage-docs
cp -r /tmp/aioz-storage-docs/examples/name> ./folder>

然后根据模板类型自定义CONFIG对象:

模板:landing

配置:assets/main.js → CONFIG对象。主题:dark(OLED黑色)或light。

需要自定义的关键字段:

  • - brand.name — 品牌/产品名称
  • meta.title,meta.description — SEO
  • hero.eyebrow — 徽章标签(或设为null隐藏),hero.title,hero.sub
  • hero.primaryCta — { label, href },hero.secondaryCta
  • sections.* — 开关:highlights,logos,features,useCases,testimonials,pricingTop,pricingBot,faq
  • highlights[] — { number, label }统计数据(数字在滚动时动画显示)
  • logos.items[] — 公司名称字符串
  • features — { label, title, sub, items: [{ title, desc }] }
  • useCases — { label, title, sub, items: [{ tag, title, desc }] }
  • testimonials[] — { quote, name, role, company, avatar: { initials, bg } }
  • pricing.plans[] — { name, price, period, desc, isPopular, cta: { label, href }, features[] }
  • faq.items[] — { q, a }
  • cta.form.mode — redirect | mailto | webhook
  • footer.brandDesc,footer.columns[],footer.socials[]
  • assets/style.css中的颜色 :root → --color-primary: #1d9bf0

模板:landing-alt

配置:assets/main.js → CONFIG对象。主题:light | dark | system。

需要自定义的关键字段:

  • - brand.name,brand.tagline
  • hero.badge — 徽章标签(或设为null),hero.headline(用星号包裹单词实现渐变斜体文字),hero.subheadline
  • hero.primaryCta,hero.secondaryCta,hero.ctaNote
  • sections.* — 开关:stats,problemSolution,features,useCases,logos,testimonials,pricing,faq
  • stats[] — { number, label }(数字在滚动时动画显示)
  • problemSolution — { problem: { label, title, items[] }, solution: { label, title, items[] } }
  • features.items[] — { size, gradient, kicker, title, desc, tag, visual }(bento网格,size:wide|narrow|half|third|full)
  • pricing.plans[] — { name, price, period, desc, isPopular, cta, features[] }
  • cta.form.mode — redirect | mailto | webhook
  • assets/style.css中的颜色 → --color-primary: #635bff,--color-gradient-start,--color-gradient-end

模板:portfolio

配置:assets/main.js → CONFIG对象。主题:light | dark | auto。

需要自定义的关键字段:

  • - personal.firstName,personal.lastName,personal.title,personal.email
  • personal.location — { city, country }
  • about.subtitle,about.bio(段落数组),about.focusAreas(技能字符串数组)
  • experience[] — { company, tagline, period, position, description, longDescription, location, industry, website: { label, url } }
  • projects[] — { title, tags[], year, images[], description, techNote, link: { label, url } }(多张图片=轮播)
  • social[] — { platform, url }
  • theme.defaultMode,theme.showToggle
  • sections — 开关:showAbout,showExperience,showProjects,showFocusAreas
  • footer.cta,footer.copyright(null=自动生成)
  • meta.title,meta.description,meta.ogImage
  • assets/images/中的图片(项目图片1600×900,OG图片1200×630)

模板:documents

配置:assets/js/config.js → CONFIG对象。主题:light | dark | auto。

需要自定义的关键字段:

  • - site.title,site.description,site.version
  • site.logo.light,site.logo.dark
  • sidebar[] — { group, collapsed, items: [{ label, path }] }(path = 不带.md的文件名)
  • header.nav[] — { label, href },header.links[] — { icon, href }
  • footer.copyright,footer.columns[]
  • features — 开关:search,tableOfContents,feedback,prevNext,copyCodeButton,scrollToTop
  • features.editLink — { enabled, baseUrl, text }
  • features.tocDepth — 2或3

内容:在/docs/中创建带YAML前置元数据的.md文件:
yaml



title: 页面标题
description: 简要描述
order: 1
hidden: false


标注:> [!NOTE],> [!TIP],> [!WARNING],> [!DANGER]
带语法高亮的代码块(javascript,typescript,python,bash,json,html,css,yaml,sql,go,rust,java等)
哈希路由:index.html#/page-name → 加载docs/page-name.md

步骤4:获取存储桶信息

询问用户:

  1. 1. 存储桶名称 — 他们在aiozstorage.network上的存储桶
  2. 12词种子

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 aioz-storage-skill-1776060002 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 aioz-storage-skill-1776060002 技能

通过命令行安装

skillhub install aioz-storage-skill-1776060002

下载

⬇ 下载 aioz-storage v1.0.1(免费)

文件大小: 15.04 KB | 发布时间: 2026-4-14 16:02

v1.0.1 最新 2026-4-14 16:02
- Added detailed step-by-step documentation for deploying static websites to AIOZ Storage.
- Described four built-in templates (landing, landing-alt, portfolio, documents) and customization options.
- Included API endpoints, example commands, and specific configuration fields for each template.
- Outlined prerequisites and process for authentication, bucket setup, grant generation, and static site deployment.
- Provided guide for both using built-in templates and deploying custom static sites.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部