CF-Worker-Dir:基于Cloudflare Worker的导航页面

CF-Worker-Dir是一款适用于Cloudflare Worker平台上的云函数程序,可以使用它在一分钟内搭建属于自己的导航页面。CF-Worker-Dir提供丰富的自定义配置,同时它还可以预留了接口帮助你售出自己域名。

系统安装

  1. 在 Cloudflare Worker 管理页面创建一个新的 Worker 。
  2. 在Worker编辑页面左边粘贴 index.js 中的代码。
  3. 根据自身需要修改 config 的配置内容

配置例子

const config = {
  title: "自定义导航",                 //write your website title
  subtitle: "Cloudflare Workers Nav", //write your website subtitle
  logo_icon: "sitemap",               //select your logo by semantic-ui icon (you can get more msg in:https://semantic-ui.com/elements/icon.html)
  selling_ads: true,                  //Selling your domain or not.(turning on may be helpful for selling this domain by showing some ads.)
  sell_info:{
    domain:"example.com",
    price:500,                        //domain price
    mon_unit:"yen sign",              //monetary unit 
    contact:[                         //how to contact you
      {
        type:"envelope",               //contact type ("weixin","qq","telegram plane","envelope" or "phone")
        content:"info@example.com"
      }
    ]                        
  },
  lists: [                            //Url list
    {
      name:"技术",
      icon:"code",
      list:[
        {
          url:"https://oschina.net/",
          name:"开源中国",
          desc:"领先的中文开源技术社区"
        }
      ]
    }
  ]
}

开源:https://github.com/sleepwood/CF-Worker-Dir;本地下载:CF-Worker-Dir-20200214

发表评论

电子邮件地址不会被公开。 必填项已用*标注