Lind 4 лет назад
Родитель
Сommit
5e88779009
5 измененных файлов с 35 добавлено и 179 удалено
  1. 1 1
      .github/workflows/ci.yml
  2. 4 91
      README.md
  3. 5 85
      README.zh-CN.md
  4. 1 1
      package.json
  5. 24 1
      src/pages/document.ejs

+ 1 - 1
.github/workflows/ci.yml

@@ -16,7 +16,7 @@ jobs:
         with:
           node-version: ${{ matrix.node_version }}
       - run: echo ${{github.ref}}
-      - run: yarn
+      - run: npm install
       - run: yarn run lint
       - run: yarn run tsc
       - run: yarn run build

Разница между файлами не показана из-за своего большого размера
+ 4 - 91
README.md


Разница между файлами не показана из-за своего большого размера
+ 5 - 85
README.zh-CN.md


+ 1 - 1
package.json

@@ -18,7 +18,7 @@
     "gh-pages": "gh-pages -d dist",
     "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
     "postinstall": "umi g tmp",
-    "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
+    "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier && npm run tsc",
     "lint-staged": "lint-staged",
     "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
     "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",

+ 24 - 1
src/pages/document.ejs

@@ -25,7 +25,17 @@
     <link rel="icon" href="<%= context.config.publicPath +'favicon.ico'%>" type="image/x-icon" />
   </head>
   <body>
-    <noscript>Out-of-the-box mid-stage front/design solution!</noscript>
+    <noscript>
+      <div class="noscript-container">
+        Hi there! Please
+        <div class="noscript-enableJS">
+          <a href="https://www.enablejavascript.io/en" target="_blank" rel="noopener noreferrer">
+            <b>enable Javascript</b>
+          </a>
+        </div>
+        in your browser to use Ant Design, Out-of-the-box mid-stage front/design solution!
+      </div>
+    </noscript>
     <div id="root">
       <style>
         html,
@@ -39,6 +49,19 @@
           background-repeat: no-repeat;
           background-size: 100% auto;
         }
+        .noscript-container {
+          display: flex;
+          align-content: center;
+          justify-content: center;
+          margin-top: 90px;
+          font-size: 20px;
+          font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode',
+            Geneva, Verdana, sans-serif;
+        }
+        .noscript-enableJS {
+          padding-right: 3px;
+          padding-left: 3px;
+        }
         .page-loading-warp {
           display: flex;
           align-items: center;