UNPKG

7.08 kBJavaScriptView Raw
1System.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 ? /*#__PURE__*/React.createElement(ApiOutlined, null) : _props$icon,
31 children = props.children;
32 return /*#__PURE__*/React.createElement(Result, {
33 icon: icon,
34 status: "success",
35 title: title,
36 subTitle: subTitle,
37 extra: [/*#__PURE__*/React.createElement(Button, {
38 key: "wener",
39 href: "https://wener.me",
40 icon: /*#__PURE__*/React.createElement(HomeOutlined, null)
41 }, "Home"), /*#__PURE__*/React.createElement(Button, {
42 type: "primary",
43 key: "github",
44 href: 'https://github.com/wenerme/apis',
45 icon: /*#__PURE__*/React.createElement(GithubOutlined, null)
46 }, "wenerme/apis"), /*#__PURE__*/React.createElement(Button, {
47 key: "apis",
48 href: "https://apis.wener.me",
49 icon: /*#__PURE__*/React.createElement(ApiOutlined, null)
50 }, "APIs")]
51 }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
52 span: 12
53 }, /*#__PURE__*/React.createElement(PageHeader, {
54 title: 'Site'
55 }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
56 type: "link",
57 href: 'https://wener.me'
58 }, "wener.me"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
59 icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
60 type: "link",
61 href: 'https://github.com/wenerme/wener'
62 }, "wenerme/wener")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
63 type: "link",
64 href: "https://travis-ci.com/wenerme/wener"
65 }, /*#__PURE__*/React.createElement("img", {
66 src: "https://travis-ci.com/wenerme/wener.svg?branch=master",
67 alt: ""
68 }))))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
69 type: "link",
70 href: 'https://apis.wener.me'
71 }, "apis.wener.me"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
72 icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
73 type: "link",
74 href: 'https://github.com/wenerme/apis'
75 }, "wenerme/apis"))))))), /*#__PURE__*/React.createElement(Col, {
76 span: 12
77 }, /*#__PURE__*/React.createElement(PageHeader, {
78 title: 'Library'
79 }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
80 icon: /*#__PURE__*/React.createElement(ToolOutlined, null),
81 type: "link",
82 href: 'https://www.npmjs.com/package/@wener/utils'
83 }, "@wener/utils"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
84 icon: /*#__PURE__*/React.createElement(BookOutlined, null),
85 type: "link",
86 href: "https://apis.wener.me/docs/@wener/utils/"
87 }, "Document")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("img", {
88 src: 'https://img.shields.io/npm/l/@wener/utils'
89 }), "-", /*#__PURE__*/React.createElement("img", {
90 src: 'https://img.shields.io/npm/v/@wener/utils'
91 })))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
92 icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
93 type: "link",
94 href: 'https://www.npmjs.com/package/@wener/ui'
95 }, "@wener/ui"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
96 icon: /*#__PURE__*/React.createElement(FormatPainterOutlined, null),
97 type: "link",
98 href: "https://apis.wener.me/storybook/"
99 }, "Storybook"), "-", /*#__PURE__*/React.createElement(Button, {
100 icon: /*#__PURE__*/React.createElement(BookOutlined, null),
101 type: "link",
102 href: "https://apis.wener.me/docs/@wener/ui/"
103 }, "Document")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("img", {
104 src: 'https://img.shields.io/npm/l/@wener/ui'
105 }), "-", /*#__PURE__*/React.createElement("img", {
106 src: 'https://img.shields.io/npm/v/@wener/ui'
107 })))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
108 icon: /*#__PURE__*/React.createElement(RetweetOutlined, null),
109 type: "link",
110 href: 'https://www.npmjs.com/package/@wener/tinyrpc'
111 }, "@wener/tinyrpc"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Button, {
112 icon: /*#__PURE__*/React.createElement(BookOutlined, null),
113 type: "link",
114 href: "https://apis.wener.me/docs/@wener/tinyrpc/"
115 }, "Document")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("img", {
116 src: 'https://img.shields.io/npm/l/@wener/tinyrpc'
117 }), "-", /*#__PURE__*/React.createElement("img", {
118 src: 'https://img.shields.io/npm/v/@wener/tinyrpc'
119 }))))))))), /*#__PURE__*/React.createElement("div", null, children));
120 });
121
122 }
123 };
124});
125//# sourceMappingURL=wener-ui-wener.system.js.map