navbar.js 5.4 KB
Newer Older
D
DCloud_LXH 已提交
1 2 3 4 5 6 7
/**
 * text
 * target
 * link   // 有协议时是外链
 * items
 * type   // link、links。
 * rel
D
DCloud_LXH 已提交
8
 * needOutbound // 是否显示外链图标
D
DCloud_LXH 已提交
9 10 11 12
 */
export const navbar = [
  {
    text: 'uni-app',
13
    link: '/',
D
DCloud_LXH 已提交
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
    items: [
      {
        text: '介绍',
        type: 'link',
        link: '/'
      },
      {
        text: '教程',
        type: 'link',
        link: '/tutorial/'
      },
      {
        text: '全局文件',
        type: 'link',
        link: '/collocation/pages'
      },
      {
        text: '组件',
        type: 'link',
        link: '/component/'
      },
      {
        text: 'API',
        type: 'link',
        link: '/api/'
      },
40 41 42 43 44
      {
        text: 'UTS',
        type: 'link',
        link: '/uni-app-x/uts/'
      },
D
DCloud_LXH 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
      {
        text: '插件',
        type: 'link',
        link: '/plugin/'
      },
      {
        text: '工程化',
        type: 'link',
        link: '/worktile/'
      },
      {
        text: '其他规范',
        type: 'links',
        link: 'http://www.html5plus.org/doc/h5p.html',
        items: [
          {
            text: 'App扩展规范 HTML5 Plus',
            type: 'link',
            link: 'http://www.html5plus.org/doc/h5p.html'
          },
          {
            text: '微信小程序',
            type: 'link',
            link: 'https://developers.weixin.qq.com/miniprogram/dev/framework/'
          },
          {
            text: '支付宝小程序',
            type: 'link',
            link: 'https://docs.alipay.com/mini/developer/getting-started'
          },
          {
            text: '百度小程序',
            type: 'link',
            link: 'https://smartprogram.baidu.com/docs/develop/tutorial/codedir/'
          },
          {
81
            text: '抖音小程序',
D
DCloud_LXH 已提交
82
            type: 'link',
83
            link: 'https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/introduction/basic-component'
D
DCloud_LXH 已提交
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
          },
          {
            text: '飞书小程序',
            type: 'link',
            link: 'https://open.feishu.cn/document/uYjL24iN/uUDNzUjL1QzM14SN0MTN'
          },
          {
            text: '钉钉小程序',
            type: 'link',
            link: 'https://developers.dingtalk.com/document/app/introduction-to-dingtalk-mini-programs'
          },
          {
            text: 'QQ小程序',
            type: 'link',
            link: 'https://q.qq.com/wiki/develop/miniprogram/frame/'
          },
          {
            text: '快手小程序',
            type: 'link',
            link: 'https://mp.kuaishou.com/docs/develop/frame/config/conf_appjson.html'
          },
105 106 107
          {
            text: '京东小程序',
            type: 'link',
Anne_LXM's avatar
Anne_LXM 已提交
108
            link: 'https://mp-docs.jd.com/doc/forst/second/-1'
109
          },
D
DCloud_LXH 已提交
110 111 112 113 114 115 116 117 118 119
          {
            text: '华为快应用',
            type: 'link',
            link: 'https://developer.huawei.com/consumer/cn/doc/development/quickApp-References/webview-component-view'
          },
          {
            text: '360小程序',
            type: 'link',
            link: 'https://mp.360.cn/doc/miniprogram/dev/#/view'
          },
D
DCloud_LXH 已提交
120
          {
D
DCloud_LXH 已提交
121 122
            text: 'Weex',
            type: 'link',
D
DCloud_LXH 已提交
123 124
            link: 'https://weexapp.com/zh/'
          },
D
DCloud_LXH 已提交
125 126
        ]
      },
127
      {
D
DCloud_LXH 已提交
128 129 130 131
        link: "https://github.com/dcloudio/uni-app",
        target: "_blank",
        text: "GitHub",
        type: "link"
132
      }
D
DCloud_LXH 已提交
133 134
    ]
  },
D
DCloud_LXH 已提交
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
  {
    text: 'uni-app x',
    link: '/uni-app-x/',
    items: [
      {
        text: '介绍',
        type: 'link',
        link: '/uni-app-x/'
      },
      {
        text: '编译器',
        type: 'link',
        link: '/uni-app-x/compiler/'
      },
      {
        text: 'UTS',
        type: 'link',
        link: '/uni-app-x/uts/'
      },
      {
        text: '全局文件',
        type: 'link',
        link: '/uni-app-x/collocation/pagesjson'
      },
      {
        text: '组件',
        type: 'link',
        link: '/uni-app-x/component/'
      },
      {
        text: 'API',
        type: 'link',
        link: '/uni-app-x/api/'
      },
      {
        text: 'CSS',
        type: 'link',
        link: '/uni-app-x/css/'
      },
      {
        text: 'DOM',
        type: 'link',
        link: '/uni-app-x/dom/'
      },
      {
        text: '插件',
        type: 'link',
        link: '/uni-app-x/plugin/'
      },
      {
        text: '工程化',
        type: 'link',
        link: '/uni-app-x/worktile/'
      }
    ]
  },
D
DCloud_LXH 已提交
191 192 193 194 195 196 197
  {
    text: 'uniCloud',
    type: 'link',
    link: '/uniCloud/'
  },
  {
    text: 'HBuilder',
D
DCloud_LXH 已提交
198
    link: 'https://hx.dcloud.net.cn/',
D
DCloud_LXH 已提交
199 200 201 202 203 204
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  {
    text: 'uni 小程序 sdk',
hbcui1984's avatar
hbcui1984 已提交
205
    link: 'https://nativesupport.dcloud.net.cn/README',
D
DCloud_LXH 已提交
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  /* {
    text: '问答社区',
    link: 'https://ask.dcloud.net.cn/explore/',
    type: "link",
    target: '_blank',
    needOutbound: false
  },
  {
    text: '插件市场',
    type: "link",
    target: '_blank',
    link: 'https://ext.dcloud.net.cn/',
    needOutbound: false
  } */
D
DCloud_LXH 已提交
224 225 226 227 228 229 230 231 232 233 234
]

export const navbarLanguage = {
  default: 0,
  items: [
    {
      text: '简体中文',
      link: 'https://uniapp.dcloud.net.cn/'
    },
    {
      text: 'English',
D
DCloud_LXH 已提交
235 236 237 238
      link: 'javascript:;',
      click() {
        location.href = 'https://en.uniapp.dcloud.io' + location.pathname + location.hash + location.search
      }
D
DCloud_LXH 已提交
239 240
    }
  ]
Anne_LXM's avatar
Anne_LXM 已提交
241
}