diff --git a/plugins/babel-plugin-canyon/package.json b/plugins/babel-plugin-canyon/package.json index f6d30a47..1adcf38f 100644 --- a/plugins/babel-plugin-canyon/package.json +++ b/plugins/babel-plugin-canyon/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-canyon", - "version": "1.8.78-alpha.15", + "version": "1.8.78-alpha.16", "description": "A Babel plugin cooperates with istanbul to report the coverage", "author": "Allen Zhang ", "license": "MIT", diff --git a/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js b/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js index be563b4f..321d609d 100644 --- a/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js +++ b/plugins/babel-plugin-canyon/templates/inject-in-page-popup.js @@ -29,7 +29,9 @@ div.innerHTML = `
- +
+
x
+
@@ -39,17 +41,25 @@
-
+
Project ID:
-
-
Project ID:
-
+
+
SHA:
+
-
-
Project ID:
-
+
+
Branch:
+
+
+
+
DSN:
+
+
+
+
Coverage:
+
@@ -60,8 +70,8 @@
-
Upload
-
Refresh
+
Upload
+
Refresh
@@ -71,7 +81,7 @@
-
+
Please upload coverage
@@ -83,7 +93,8 @@ // 插入一个style var style = document.createElement('style'); - style.innerHTML = ` .__canyon__modal{ + style.innerHTML = `.__canyon__modal{ + display: none; position: fixed; top: 0; left: 0; @@ -115,6 +126,26 @@ cursor: pointer; transition: background-color 0.3s ease; text-align: center; + } + .__canyon__close-wrap{ + display: flex; + justify-content: flex-end; + padding-top: 30px; + padding-right: 10px + } + .__canyon__close{ + border: 1px solid white; + width: 36px; + height: 36px; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + } + .__canyon__form_wrap{ + margin-bottom: 10px; + display:flex; + gap: 5px }` document.head.appendChild(style);