index.html 3.72 KB
Newer Older
邓晓峰's avatar
邓晓峰 committed
1
<!DOCTYPE html>
dengxiaofeng's avatar
dengxiaofeng committed
2
<html lang="en">
邓晓峰's avatar
邓晓峰 committed
3 4 5 6 7 8 9 10 11
  <head>
    <!-- The first thing in any HTML file should be the charset -->
    <meta charset="utf-8" />
    <!-- Make the page mobile compatible -->
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!-- Allow installing the app to the homescreen -->
    <meta name="mobile-web-app-capable" content="yes" />
    <!-- <link rel="icon" href="/favicon.ico" /> -->
    <script src="//cdn-service.datav.aliyun.com/datav-static/2.37.6_4/libs/event.js"></script>
邓晓峰's avatar
邓晓峰 committed
12
    <script crossorigin src="//g.alicdn.com/bone/libs/1.2.3/??isomorphic-fetch@2.js"></script>
邓晓峰's avatar
邓晓峰 committed
13 14 15 16
    <script type="text/javascript">
      window.share = {
        event: new EventEmitter(),
      };
dengxiaofeng's avatar
dengxiaofeng committed
17

邓晓峰's avatar
邓晓峰 committed
18
      window.share.event.setMaxListeners(50);
邓晓峰's avatar
邓晓峰 committed
19

dengxiaofeng's avatar
dengxiaofeng committed
20
      window.umi_plugin_ant_themeVar = [
邓晓峰's avatar
邓晓峰 committed
21
        { key: 'dark', fileName: 'dark.css', theme: 'dark' },
dengxiaofeng's avatar
dengxiaofeng committed
22
        {
邓晓峰's avatar
邓晓峰 committed
23 24 25
          key: 'dust',
          fileName: 'dust.css',
          modifyVars: { '@primary-color': '#F5222D' },
dengxiaofeng's avatar
dengxiaofeng committed
26 27
        },
        {
邓晓峰's avatar
邓晓峰 committed
28 29 30
          key: 'volcano',
          fileName: 'volcano.css',
          modifyVars: { '@primary-color': '#FA541C' },
dengxiaofeng's avatar
dengxiaofeng committed
31 32
        },
        {
邓晓峰's avatar
邓晓峰 committed
33 34 35
          key: 'sunset',
          fileName: 'sunset.css',
          modifyVars: { '@primary-color': '#FAAD14' },
dengxiaofeng's avatar
dengxiaofeng committed
36 37
        },
        {
邓晓峰's avatar
邓晓峰 committed
38 39 40
          key: 'cyan',
          fileName: 'cyan.css',
          modifyVars: { '@primary-color': '#13C2C2' },
dengxiaofeng's avatar
dengxiaofeng committed
41 42
        },
        {
邓晓峰's avatar
邓晓峰 committed
43 44 45
          key: 'green',
          fileName: 'green.css',
          modifyVars: { '@primary-color': '#52C41A' },
dengxiaofeng's avatar
dengxiaofeng committed
46 47
        },
        {
邓晓峰's avatar
邓晓峰 committed
48 49 50
          key: 'geekblue',
          fileName: 'geekblue.css',
          modifyVars: { '@primary-color': '#2F54EB' },
dengxiaofeng's avatar
dengxiaofeng committed
51 52
        },
        {
邓晓峰's avatar
邓晓峰 committed
53 54 55
          key: 'purple',
          fileName: 'purple.css',
          modifyVars: { '@primary-color': '#722ED1' },
dengxiaofeng's avatar
dengxiaofeng committed
56 57
        },
        {
邓晓峰's avatar
邓晓峰 committed
58 59 60 61
          key: 'dust',
          theme: 'dark',
          fileName: 'dark-dust.css',
          modifyVars: { '@primary-color': '#F5222D' },
dengxiaofeng's avatar
dengxiaofeng committed
62 63
        },
        {
邓晓峰's avatar
邓晓峰 committed
64 65 66 67
          key: 'volcano',
          theme: 'dark',
          fileName: 'dark-volcano.css',
          modifyVars: { '@primary-color': '#FA541C' },
dengxiaofeng's avatar
dengxiaofeng committed
68 69
        },
        {
邓晓峰's avatar
邓晓峰 committed
70 71 72 73
          key: 'sunset',
          theme: 'dark',
          fileName: 'dark-sunset.css',
          modifyVars: { '@primary-color': '#FAAD14' },
dengxiaofeng's avatar
dengxiaofeng committed
74 75
        },
        {
邓晓峰's avatar
邓晓峰 committed
76 77 78 79
          key: 'cyan',
          theme: 'dark',
          fileName: 'dark-cyan.css',
          modifyVars: { '@primary-color': '#13C2C2' },
dengxiaofeng's avatar
dengxiaofeng committed
80 81
        },
        {
邓晓峰's avatar
邓晓峰 committed
82 83 84 85
          key: 'green',
          theme: 'dark',
          fileName: 'dark-green.css',
          modifyVars: { '@primary-color': '#52C41A' },
dengxiaofeng's avatar
dengxiaofeng committed
86 87
        },
        {
邓晓峰's avatar
邓晓峰 committed
88 89 90 91
          key: 'geekblue',
          theme: 'dark',
          fileName: 'dark-geekblue.css',
          modifyVars: { '@primary-color': '#2F54EB' },
dengxiaofeng's avatar
dengxiaofeng committed
92 93
        },
        {
邓晓峰's avatar
邓晓峰 committed
94 95 96 97
          key: 'purple',
          theme: 'dark',
          fileName: 'dark-purple.css',
          modifyVars: { '@primary-color': '#722ED1' },
dengxiaofeng's avatar
dengxiaofeng committed
98 99
        },
      ];
邓晓峰's avatar
邓晓峰 committed
100 101
    </script>
  </head>
dengxiaofeng's avatar
dengxiaofeng committed
102

邓晓峰's avatar
邓晓峰 committed
103 104 105 106 107 108 109 110 111 112 113 114 115
  <body>
    <!-- Display a message if JS has been disabled on the browser. -->
    <noscript
      >If you're seeing this message, that means
      <strong>JavaScript has been disabled on your browser</strong>, please
      <strong>enable JS</strong> to make this app work.</noscript
    >
    <!-- The app hooks into this div -->
    <div id="app"></div>
    <!-- Open Sans Font -->
    <!-- <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet"> -->
    <!-- A lot of magic happens in this file. HtmlWebpackPlugin automatically injects all assets (e.g. bundle.js, main.css) with the correct HTML tags, which is why they are missing in this file. Don't add any assets here! (Check out webpack.dev.babel.js and webpack.prod.babel.js if you want to know more) -->
  </body>
dengxiaofeng's avatar
dengxiaofeng committed
116
</html>