1 | System.register(['@ant-design/icons', 'antd', 'react'], function (exports) {
|
2 | 'use strict';
|
3 | var HomeOutlined, GithubOutlined, ApiOutlined, ToolOutlined, BookOutlined, FormatPainterOutlined, RetweetOutlined, Result, Button, Row, Col, PageHeader, React;
|
4 | return {
|
5 | setters: [function (module) {
|
6 | HomeOutlined = module.HomeOutlined;
|
7 | GithubOutlined = module.GithubOutlined;
|
8 | ApiOutlined = module.ApiOutlined;
|
9 | ToolOutlined = module.ToolOutlined;
|
10 | BookOutlined = module.BookOutlined;
|
11 | FormatPainterOutlined = module.FormatPainterOutlined;
|
12 | RetweetOutlined = module.RetweetOutlined;
|
13 | }, function (module) {
|
14 | Result = module.Result;
|
15 | Button = module.Button;
|
16 | Row = module.Row;
|
17 | Col = module.Col;
|
18 | PageHeader = module.PageHeader;
|
19 | }, function (module) {
|
20 | React = module.default;
|
21 | }],
|
22 | execute: function () {
|
23 |
|
24 | var WenerApisWelcome = exports('WenerApisWelcome', function WenerApisWelcome(props) {
|
25 | var _props$title = props.title,
|
26 | title = _props$title === void 0 ? "Wener's APIs" : _props$title,
|
27 | _props$subTitle = props.subTitle,
|
28 | subTitle = _props$subTitle === void 0 ? '' : _props$subTitle,
|
29 | _props$icon = props.icon,
|
30 | icon = _props$icon === void 0 ? React.createElement(ApiOutlined, null) : _props$icon,
|
31 | children = props.children;
|
32 | return React.createElement(Result, {
|
33 | icon: icon,
|
34 | status: "success",
|
35 | title: title,
|
36 | subTitle: subTitle,
|
37 | extra: [React.createElement(Button, {
|
38 | key: "wener",
|
39 | href: "https://wener.me",
|
40 | icon: React.createElement(HomeOutlined, null)
|
41 | }, "Home"), React.createElement(Button, {
|
42 | type: "primary",
|
43 | key: "github",
|
44 | href: 'https://github.com/wenerme/apis',
|
45 | icon: React.createElement(GithubOutlined, null)
|
46 | }, "wenerme/apis"), React.createElement(Button, {
|
47 | key: "apis",
|
48 | href: "https://apis.wener.me",
|
49 | icon: React.createElement(ApiOutlined, null)
|
50 | }, "APIs")]
|
51 | }, React.createElement("div", null, React.createElement(Row, null, React.createElement(Col, {
|
52 | span: 12
|
53 | }, React.createElement(PageHeader, {
|
54 | title: 'Site'
|
55 | }), React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
56 | type: "link",
|
57 | href: 'https://wener.me'
|
58 | }, "wener.me"), React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
59 | icon: React.createElement(GithubOutlined, null),
|
60 | type: "link",
|
61 | href: 'https://github.com/wenerme/wener'
|
62 | }, "wenerme/wener")), React.createElement("li", null, React.createElement(Button, {
|
63 | type: "link",
|
64 | href: "https://travis-ci.com/wenerme/wener"
|
65 | }, React.createElement("img", {
|
66 | src: "https://travis-ci.com/wenerme/wener.svg?branch=master",
|
67 | alt: ""
|
68 | }))))), React.createElement("li", null, React.createElement(Button, {
|
69 | type: "link",
|
70 | href: 'https://apis.wener.me'
|
71 | }, "apis.wener.me"), React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
72 | icon: React.createElement(GithubOutlined, null),
|
73 | type: "link",
|
74 | href: 'https://github.com/wenerme/apis'
|
75 | }, "wenerme/apis"))))))), React.createElement(Col, {
|
76 | span: 12
|
77 | }, React.createElement(PageHeader, {
|
78 | title: 'Library'
|
79 | }), React.createElement("div", null, React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
80 | icon: React.createElement(ToolOutlined, null),
|
81 | type: "link",
|
82 | href: 'https://www.npmjs.com/package/@wener/utils'
|
83 | }, "@wener/utils"), React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
84 | icon: React.createElement(BookOutlined, null),
|
85 | type: "link",
|
86 | href: "https://apis.wener.me/docs/@wener/utils/"
|
87 | }, "Document")), React.createElement("li", null, React.createElement("img", {
|
88 | src: 'https://img.shields.io/npm/l/@wener/utils'
|
89 | }), "-", React.createElement("img", {
|
90 | src: 'https://img.shields.io/npm/v/@wener/utils'
|
91 | })))), React.createElement("li", null, React.createElement(Button, {
|
92 | icon: React.createElement(GithubOutlined, null),
|
93 | type: "link",
|
94 | href: 'https://www.npmjs.com/package/@wener/ui'
|
95 | }, "@wener/ui"), React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
96 | icon: React.createElement(FormatPainterOutlined, null),
|
97 | type: "link",
|
98 | href: "https://apis.wener.me/storybook/"
|
99 | }, "Storybook"), "-", React.createElement(Button, {
|
100 | icon: React.createElement(BookOutlined, null),
|
101 | type: "link",
|
102 | href: "https://apis.wener.me/docs/@wener/ui/"
|
103 | }, "Document")), React.createElement("li", null, React.createElement("img", {
|
104 | src: 'https://img.shields.io/npm/l/@wener/ui'
|
105 | }), "-", React.createElement("img", {
|
106 | src: 'https://img.shields.io/npm/v/@wener/ui'
|
107 | })))), React.createElement("li", null, React.createElement(Button, {
|
108 | icon: React.createElement(RetweetOutlined, null),
|
109 | type: "link",
|
110 | href: 'https://www.npmjs.com/package/@wener/tinyrpc'
|
111 | }, "@wener/tinyrpc"), React.createElement("ul", null, React.createElement("li", null, React.createElement(Button, {
|
112 | icon: React.createElement(BookOutlined, null),
|
113 | type: "link",
|
114 | href: "https://apis.wener.me/docs/@wener/tinyrpc/"
|
115 | }, "Document")), React.createElement("li", null, React.createElement("img", {
|
116 | src: 'https://img.shields.io/npm/l/@wener/tinyrpc'
|
117 | }), "-", React.createElement("img", {
|
118 | src: 'https://img.shields.io/npm/v/@wener/tinyrpc'
|
119 | }))))))))), React.createElement("div", null, children));
|
120 | });
|
121 |
|
122 | }
|
123 | };
|
124 | });
|
125 |
|