giime 0.9.16-snapshot.2 → 0.9.16-snapshot.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -887,21 +887,51 @@ video {
887
887
  .gm-group:hover .group-hover\:gm-block {
888
888
  display: block;
889
889
  }
890
+ .gm-upload-pro-preview-dialog[data-v-fbc23b01] [data-v-fbc23b01] .el-dialog__body {
891
+ padding: 0;
892
+ }
890
893
 
891
- .gm-range-number .el-form-item[data-v-1ae16d96] {
894
+ .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload--picture-card {
895
+ width: auto;
896
+ height: auto;
897
+ }
898
+ .gm-upload-pro-file {
899
+ line-height: normal;
900
+ }
901
+ .gm-upload-pro-file .el-checkbox-group {
902
+ font-size: unset;
903
+ }
904
+ .gm-upload-pro-file .el-checkbox {
905
+ position: absolute;
906
+ left: 10px;
907
+ top: 0;
908
+ z-index: 9;
909
+ }
910
+ .gm-upload-pro-file .el-upload-list--picture-card {
911
+ gap: 10px;
912
+ }
913
+ .gm-upload-pro-file .el-upload-list__item {
892
914
  margin: 0;
893
915
  }
894
-
895
- .gm-flex-center[data-v-c17deec9] {
896
- align-items: center;
916
+ .gm-upload-pro-file .el-upload-list__item-file-name {
917
+ line-height: 1.7;
918
+ }
919
+ .gm-upload-pro-file .el-upload-dragger {
920
+ padding: 0;
921
+ border: none;
922
+ width: 100%;
923
+ height: 100%;
924
+ display: flex;
925
+ }
926
+ .gm-upload-pro-file .el-upload--picture-card {
927
+ border: none;
897
928
  }
898
929
 
899
- .gm-flex-justify-between[data-v-c17deec9] {
900
- justify-content: space-between;
930
+ .gm-upload-pro-file-disabled .el-upload--picture-card {
931
+ display: none;
901
932
  }
902
- [data-v-79615afd] .gmSearchForm .el-form-item {
903
- margin-right: 0;
904
- margin-bottom: 4px;
933
+ .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
934
+ display: none;
905
935
  }
906
936
  [data-v-3f2c8504] .gmTableNoBorder .el-table__body .el-table__cell {
907
937
  border-right: none;
@@ -926,6 +956,13 @@ video {
926
956
  [data-v-3f2c8504] .gmTableNoBorder .el-table__border-left-patch {
927
957
  height: 0;
928
958
  }
959
+ .gm-flex-center[data-v-c17deec9] {
960
+ align-items: center;
961
+ }
962
+
963
+ .gm-flex-justify-between[data-v-c17deec9] {
964
+ justify-content: space-between;
965
+ }
929
966
  [data-v-050a4f74] .gmTableNoBorder .el-table__body .el-table__cell {
930
967
  border-right: none;
931
968
  }
@@ -998,50 +1035,44 @@ video {
998
1035
  .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
999
1036
  display: flex;
1000
1037
  }
1001
- .gm-upload-pro-preview-dialog[data-v-fbc23b01] [data-v-fbc23b01] .el-dialog__body {
1002
- padding: 0;
1003
- }
1004
-
1005
- .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload--picture-card {
1006
- width: auto;
1007
- height: auto;
1038
+ [data-v-79615afd] .gmSearchForm .el-form-item {
1039
+ margin-right: 0;
1040
+ margin-bottom: 4px;
1008
1041
  }
1009
- .gm-upload-pro-file {
1042
+ .gm-upload-file {
1010
1043
  line-height: normal;
1011
1044
  }
1012
- .gm-upload-pro-file .el-checkbox-group {
1013
- font-size: unset;
1014
- }
1015
- .gm-upload-pro-file .el-checkbox {
1045
+ .gm-upload-file li > .el-checkbox {
1016
1046
  position: absolute;
1017
1047
  left: 10px;
1018
1048
  top: 0;
1019
1049
  z-index: 9;
1020
1050
  }
1021
- .gm-upload-pro-file .el-upload-list--picture-card {
1051
+ .gm-upload-file .el-upload-list--picture-card {
1022
1052
  gap: 10px;
1023
1053
  }
1024
- .gm-upload-pro-file .el-upload-list__item {
1054
+ .gm-upload-file .el-upload-list__item {
1025
1055
  margin: 0;
1056
+ border: none;
1026
1057
  }
1027
- .gm-upload-pro-file .el-upload-list__item-file-name {
1028
- line-height: 1.7;
1058
+ .gm-upload-file .el-upload-list__item-file-name {
1059
+ line-height: normal;
1029
1060
  }
1030
- .gm-upload-pro-file .el-upload-dragger {
1061
+ .gm-upload-file .el-upload-dragger {
1031
1062
  padding: 0;
1032
1063
  border: none;
1033
1064
  width: 100%;
1034
1065
  height: 100%;
1035
1066
  display: flex;
1036
1067
  }
1037
- .gm-upload-pro-file .el-upload--picture-card {
1068
+ .gm-upload-file .el-upload--picture-card {
1038
1069
  border: none;
1039
1070
  }
1040
1071
 
1041
- .gm-upload-pro-file-disabled .el-upload--picture-card {
1072
+ .gm-upload-file-disabled .el-upload--picture-card {
1042
1073
  display: none;
1043
1074
  }
1044
- .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
1075
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
1045
1076
  display: none;
1046
1077
  }
1047
1078
  .gm-upload-preview-dialog[data-v-c615121c] [data-v-c615121c] .el-dialog__body {
@@ -1052,42 +1083,20 @@ video {
1052
1083
  width: auto;
1053
1084
  height: auto;
1054
1085
  }
1055
- .gm-upload-file {
1056
- line-height: normal;
1057
- }
1058
- .gm-upload-file li > .el-checkbox {
1059
- position: absolute;
1060
- left: 10px;
1061
- top: 0;
1062
- z-index: 9;
1063
- }
1064
- .gm-upload-file .el-upload-list--picture-card {
1065
- gap: 10px;
1066
- }
1067
- .gm-upload-file .el-upload-list__item {
1086
+
1087
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
1068
1088
  margin: 0;
1069
- border: none;
1070
- }
1071
- .gm-upload-file .el-upload-list__item-file-name {
1072
- line-height: normal;
1073
- }
1074
- .gm-upload-file .el-upload-dragger {
1075
- padding: 0;
1076
- border: none;
1077
- width: 100%;
1078
- height: 100%;
1079
- display: flex;
1080
- }
1081
- .gm-upload-file .el-upload--picture-card {
1082
- border: none;
1083
1089
  }
1084
1090
 
1085
- .gm-upload-file-disabled .el-upload--picture-card {
1086
- display: none;
1091
+
1092
+ .pagination-container[data-v-47d35e7b] {
1093
+ background: #fff;
1094
+ padding-top: 12px;
1087
1095
  }
1088
- .gm-upload-file-disabled .el-upload-list__item-status-label {
1096
+ .pagination-container.hidden[data-v-47d35e7b] {
1089
1097
  display: none;
1090
1098
  }
1099
+
1091
1100
  @charset "UTF-8";
1092
1101
  .table-custom-header-drawer .el-drawer__header {
1093
1102
  padding: 10px 15px;
@@ -1144,15 +1153,6 @@ video {
1144
1153
  border-radius: 10px;
1145
1154
  background: #eee;
1146
1155
  }
1147
-
1148
- .pagination-container[data-v-47d35e7b] {
1149
- background: #fff;
1150
- padding-top: 12px;
1151
- }
1152
- .pagination-container.hidden[data-v-47d35e7b] {
1153
- display: none;
1154
- }
1155
-
1156
1156
  @charset "UTF-8";
1157
1157
  .custom-operate-drawer .el-drawer__header {
1158
1158
  padding: 10px 15px;
package/es/crx/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export { installIntoGiimeApi } from './src/integrations/installIntoGiimeApi';
19
19
  export type { CreateCrxAxiosConfig, CreateCrxAxiosOptions } from './src/core/types';
20
20
  export type { CrxConfig } from './src/config/config';
21
21
  export type { GiimeMode, CrxEnvConfig } from './src/config/envMode';
22
+ export type { CrxHandledMarker } from './src/runtime/installRejectionFilter';
@@ -1 +1,2 @@
1
+ import '../runtime/installRejectionFilter';
1
2
  export declare const registerAxiosBridge: () => void;
@@ -1,2 +1,3 @@
1
+ import '../runtime/installRejectionFilter';
1
2
  import type { AxiosInstance } from 'axios';
2
3
  export declare const buildBridgeService: (serviceId: string, successCode: number) => AxiosInstance;
@@ -1,3 +1,4 @@
1
+ import '../runtime/installRejectionFilter';
1
2
  import type { AxiosInstance } from 'axios';
2
3
  import type { CreateCrxAxiosConfig, CreateCrxAxiosOptions } from './types';
3
4
  export declare const buildRealService: (config: CreateCrxAxiosConfig, options?: CreateCrxAxiosOptions) => AxiosInstance;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * 全局 unhandledrejection 过滤器:吞掉被 `@giime/crx` 标记为 `__crxHandled__` 的 promise 拒绝。
3
+ *
4
+ * ## 为什么需要
5
+ *
6
+ * giime 主包里有 fire-and-forget 的内部请求(典型如 `useCurrentUserStore.tryOnMounted → getUserInfo`),
7
+ * 调用方不写 try/catch。当后端返 401,@giime/crx 桥接层把它桥成 axios error 抛出来,
8
+ * 一路冒到顶就成了 `Uncaught (in promise) AxiosError: Request failed with status code 401`。
9
+ *
10
+ * 在 CRX 里这条链路本来就**应该**冒上来——@giime/crx 的登录协调器已经接管了 401:弹 LoginPrompt、
11
+ * 开登录标签页、cookie 变化广播、重发请求。整套流程是预期行为,不是 bug。
12
+ *
13
+ * 但 Chrome 不知道这事,会把 unhandled rejection 收进 `chrome://extensions` 的"错误"面板,
14
+ * 用户看到一团红,以为插件挂了。
15
+ *
16
+ * ## 做法
17
+ *
18
+ * - 在桥接层抛 401 error 时给它打 `__crxHandled__ = true` 标记([buildBridgeService.ts](../core/buildBridgeService.ts))
19
+ * - 本文件在模块顶层(一次性 + 幂等)装一个 `unhandledrejection` listener
20
+ * - listener 只对带 `__crxHandled__` 标记的 rejection 调 `preventDefault()`——告诉 Chrome
21
+ * "这条我处理过了,别报错"
22
+ * - 没标记的真业务 bug 仍正常走默认路径,不会被埋
23
+ *
24
+ * ## 适用范围
25
+ *
26
+ * contentScript / popup / options / background SW 都适用:
27
+ * - `self.addEventListener('unhandledrejection', ...)` 在四种环境都生效
28
+ * - background SW 的 `self` 是 ServiceWorkerGlobalScope,同样支持
29
+ *
30
+ * 通过 [buildBridgeService.ts](../core/buildBridgeService.ts)(contentScript/popup/options 都会触发)
31
+ * 和 [registerAxiosBridge.ts](../bridge/registerAxiosBridge.ts)(background)各 import 一次,
32
+ * 模块级 `installed` 守卫保证 listener 只挂一次。
33
+ */
34
+ /** 用 Error 子类型表达"已被 crx 处理过的 rejection"——业务侧需要识别也可以走 `instanceof` */
35
+ export interface CrxHandledMarker {
36
+ __crxHandled__?: boolean;
37
+ }
38
+ export declare const installRejectionFilter: () => void;
@@ -1 +1 @@
1
- export declare const version = "0.9.16-snapshot.2";
1
+ export declare const version = "0.9.16-snapshot.3";
@@ -1,4 +1,4 @@
1
- const version = "0.9.16-snapshot.2";
1
+ const version = "0.9.16-snapshot.3";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.9.16-snapshot.2';\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.9.16-snapshot.3';\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
package/es/index.css CHANGED
@@ -887,21 +887,51 @@ video {
887
887
  .gm-group:hover .group-hover\:gm-block {
888
888
  display: block;
889
889
  }
890
+ .gm-upload-pro-preview-dialog[data-v-fbc23b01] [data-v-fbc23b01] .el-dialog__body {
891
+ padding: 0;
892
+ }
890
893
 
891
- .gm-range-number .el-form-item[data-v-1ae16d96] {
894
+ .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload--picture-card {
895
+ width: auto;
896
+ height: auto;
897
+ }
898
+ .gm-upload-pro-file {
899
+ line-height: normal;
900
+ }
901
+ .gm-upload-pro-file .el-checkbox-group {
902
+ font-size: unset;
903
+ }
904
+ .gm-upload-pro-file .el-checkbox {
905
+ position: absolute;
906
+ left: 10px;
907
+ top: 0;
908
+ z-index: 9;
909
+ }
910
+ .gm-upload-pro-file .el-upload-list--picture-card {
911
+ gap: 10px;
912
+ }
913
+ .gm-upload-pro-file .el-upload-list__item {
892
914
  margin: 0;
893
915
  }
894
-
895
- .gm-flex-center[data-v-c17deec9] {
896
- align-items: center;
916
+ .gm-upload-pro-file .el-upload-list__item-file-name {
917
+ line-height: 1.7;
918
+ }
919
+ .gm-upload-pro-file .el-upload-dragger {
920
+ padding: 0;
921
+ border: none;
922
+ width: 100%;
923
+ height: 100%;
924
+ display: flex;
925
+ }
926
+ .gm-upload-pro-file .el-upload--picture-card {
927
+ border: none;
897
928
  }
898
929
 
899
- .gm-flex-justify-between[data-v-c17deec9] {
900
- justify-content: space-between;
930
+ .gm-upload-pro-file-disabled .el-upload--picture-card {
931
+ display: none;
901
932
  }
902
- [data-v-79615afd] .gmSearchForm .el-form-item {
903
- margin-right: 0;
904
- margin-bottom: 4px;
933
+ .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
934
+ display: none;
905
935
  }
906
936
  [data-v-3f2c8504] .gmTableNoBorder .el-table__body .el-table__cell {
907
937
  border-right: none;
@@ -926,6 +956,13 @@ video {
926
956
  [data-v-3f2c8504] .gmTableNoBorder .el-table__border-left-patch {
927
957
  height: 0;
928
958
  }
959
+ .gm-flex-center[data-v-c17deec9] {
960
+ align-items: center;
961
+ }
962
+
963
+ .gm-flex-justify-between[data-v-c17deec9] {
964
+ justify-content: space-between;
965
+ }
929
966
  [data-v-050a4f74] .gmTableNoBorder .el-table__body .el-table__cell {
930
967
  border-right: none;
931
968
  }
@@ -998,50 +1035,44 @@ video {
998
1035
  .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
999
1036
  display: flex;
1000
1037
  }
1001
- .gm-upload-pro-preview-dialog[data-v-fbc23b01] [data-v-fbc23b01] .el-dialog__body {
1002
- padding: 0;
1003
- }
1004
-
1005
- .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload--picture-card {
1006
- width: auto;
1007
- height: auto;
1038
+ [data-v-79615afd] .gmSearchForm .el-form-item {
1039
+ margin-right: 0;
1040
+ margin-bottom: 4px;
1008
1041
  }
1009
- .gm-upload-pro-file {
1042
+ .gm-upload-file {
1010
1043
  line-height: normal;
1011
1044
  }
1012
- .gm-upload-pro-file .el-checkbox-group {
1013
- font-size: unset;
1014
- }
1015
- .gm-upload-pro-file .el-checkbox {
1045
+ .gm-upload-file li > .el-checkbox {
1016
1046
  position: absolute;
1017
1047
  left: 10px;
1018
1048
  top: 0;
1019
1049
  z-index: 9;
1020
1050
  }
1021
- .gm-upload-pro-file .el-upload-list--picture-card {
1051
+ .gm-upload-file .el-upload-list--picture-card {
1022
1052
  gap: 10px;
1023
1053
  }
1024
- .gm-upload-pro-file .el-upload-list__item {
1054
+ .gm-upload-file .el-upload-list__item {
1025
1055
  margin: 0;
1056
+ border: none;
1026
1057
  }
1027
- .gm-upload-pro-file .el-upload-list__item-file-name {
1028
- line-height: 1.7;
1058
+ .gm-upload-file .el-upload-list__item-file-name {
1059
+ line-height: normal;
1029
1060
  }
1030
- .gm-upload-pro-file .el-upload-dragger {
1061
+ .gm-upload-file .el-upload-dragger {
1031
1062
  padding: 0;
1032
1063
  border: none;
1033
1064
  width: 100%;
1034
1065
  height: 100%;
1035
1066
  display: flex;
1036
1067
  }
1037
- .gm-upload-pro-file .el-upload--picture-card {
1068
+ .gm-upload-file .el-upload--picture-card {
1038
1069
  border: none;
1039
1070
  }
1040
1071
 
1041
- .gm-upload-pro-file-disabled .el-upload--picture-card {
1072
+ .gm-upload-file-disabled .el-upload--picture-card {
1042
1073
  display: none;
1043
1074
  }
1044
- .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
1075
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
1045
1076
  display: none;
1046
1077
  }
1047
1078
  .gm-upload-preview-dialog[data-v-c615121c] [data-v-c615121c] .el-dialog__body {
@@ -1052,42 +1083,20 @@ video {
1052
1083
  width: auto;
1053
1084
  height: auto;
1054
1085
  }
1055
- .gm-upload-file {
1056
- line-height: normal;
1057
- }
1058
- .gm-upload-file li > .el-checkbox {
1059
- position: absolute;
1060
- left: 10px;
1061
- top: 0;
1062
- z-index: 9;
1063
- }
1064
- .gm-upload-file .el-upload-list--picture-card {
1065
- gap: 10px;
1066
- }
1067
- .gm-upload-file .el-upload-list__item {
1086
+
1087
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
1068
1088
  margin: 0;
1069
- border: none;
1070
- }
1071
- .gm-upload-file .el-upload-list__item-file-name {
1072
- line-height: normal;
1073
- }
1074
- .gm-upload-file .el-upload-dragger {
1075
- padding: 0;
1076
- border: none;
1077
- width: 100%;
1078
- height: 100%;
1079
- display: flex;
1080
- }
1081
- .gm-upload-file .el-upload--picture-card {
1082
- border: none;
1083
1089
  }
1084
1090
 
1085
- .gm-upload-file-disabled .el-upload--picture-card {
1086
- display: none;
1091
+
1092
+ .pagination-container[data-v-47d35e7b] {
1093
+ background: #fff;
1094
+ padding-top: 12px;
1087
1095
  }
1088
- .gm-upload-file-disabled .el-upload-list__item-status-label {
1096
+ .pagination-container.hidden[data-v-47d35e7b] {
1089
1097
  display: none;
1090
1098
  }
1099
+
1091
1100
  @charset "UTF-8";
1092
1101
  .table-custom-header-drawer .el-drawer__header {
1093
1102
  padding: 10px 15px;
@@ -1144,15 +1153,6 @@ video {
1144
1153
  border-radius: 10px;
1145
1154
  background: #eee;
1146
1155
  }
1147
-
1148
- .pagination-container[data-v-47d35e7b] {
1149
- background: #fff;
1150
- padding-top: 12px;
1151
- }
1152
- .pagination-container.hidden[data-v-47d35e7b] {
1153
- display: none;
1154
- }
1155
-
1156
1156
  @charset "UTF-8";
1157
1157
  .custom-operate-drawer .el-drawer__header {
1158
1158
  padding: 10px 15px;
@@ -19,3 +19,4 @@ export { installIntoGiimeApi } from './src/integrations/installIntoGiimeApi';
19
19
  export type { CreateCrxAxiosConfig, CreateCrxAxiosOptions } from './src/core/types';
20
20
  export type { CrxConfig } from './src/config/config';
21
21
  export type { GiimeMode, CrxEnvConfig } from './src/config/envMode';
22
+ export type { CrxHandledMarker } from './src/runtime/installRejectionFilter';
@@ -1 +1,2 @@
1
+ import '../runtime/installRejectionFilter';
1
2
  export declare const registerAxiosBridge: () => void;
@@ -1,2 +1,3 @@
1
+ import '../runtime/installRejectionFilter';
1
2
  import type { AxiosInstance } from 'axios';
2
3
  export declare const buildBridgeService: (serviceId: string, successCode: number) => AxiosInstance;
@@ -1,3 +1,4 @@
1
+ import '../runtime/installRejectionFilter';
1
2
  import type { AxiosInstance } from 'axios';
2
3
  import type { CreateCrxAxiosConfig, CreateCrxAxiosOptions } from './types';
3
4
  export declare const buildRealService: (config: CreateCrxAxiosConfig, options?: CreateCrxAxiosOptions) => AxiosInstance;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * 全局 unhandledrejection 过滤器:吞掉被 `@giime/crx` 标记为 `__crxHandled__` 的 promise 拒绝。
3
+ *
4
+ * ## 为什么需要
5
+ *
6
+ * giime 主包里有 fire-and-forget 的内部请求(典型如 `useCurrentUserStore.tryOnMounted → getUserInfo`),
7
+ * 调用方不写 try/catch。当后端返 401,@giime/crx 桥接层把它桥成 axios error 抛出来,
8
+ * 一路冒到顶就成了 `Uncaught (in promise) AxiosError: Request failed with status code 401`。
9
+ *
10
+ * 在 CRX 里这条链路本来就**应该**冒上来——@giime/crx 的登录协调器已经接管了 401:弹 LoginPrompt、
11
+ * 开登录标签页、cookie 变化广播、重发请求。整套流程是预期行为,不是 bug。
12
+ *
13
+ * 但 Chrome 不知道这事,会把 unhandled rejection 收进 `chrome://extensions` 的"错误"面板,
14
+ * 用户看到一团红,以为插件挂了。
15
+ *
16
+ * ## 做法
17
+ *
18
+ * - 在桥接层抛 401 error 时给它打 `__crxHandled__ = true` 标记([buildBridgeService.ts](../core/buildBridgeService.ts))
19
+ * - 本文件在模块顶层(一次性 + 幂等)装一个 `unhandledrejection` listener
20
+ * - listener 只对带 `__crxHandled__` 标记的 rejection 调 `preventDefault()`——告诉 Chrome
21
+ * "这条我处理过了,别报错"
22
+ * - 没标记的真业务 bug 仍正常走默认路径,不会被埋
23
+ *
24
+ * ## 适用范围
25
+ *
26
+ * contentScript / popup / options / background SW 都适用:
27
+ * - `self.addEventListener('unhandledrejection', ...)` 在四种环境都生效
28
+ * - background SW 的 `self` 是 ServiceWorkerGlobalScope,同样支持
29
+ *
30
+ * 通过 [buildBridgeService.ts](../core/buildBridgeService.ts)(contentScript/popup/options 都会触发)
31
+ * 和 [registerAxiosBridge.ts](../bridge/registerAxiosBridge.ts)(background)各 import 一次,
32
+ * 模块级 `installed` 守卫保证 listener 只挂一次。
33
+ */
34
+ /** 用 Error 子类型表达"已被 crx 处理过的 rejection"——业务侧需要识别也可以走 `instanceof` */
35
+ export interface CrxHandledMarker {
36
+ __crxHandled__?: boolean;
37
+ }
38
+ export declare const installRejectionFilter: () => void;
@@ -1 +1 @@
1
- export declare const version = "0.9.16-snapshot.2";
1
+ export declare const version = "0.9.16-snapshot.3";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.9.16-snapshot.2";
3
+ const version = "0.9.16-snapshot.3";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.9.16-snapshot.2';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.9.16-snapshot.3';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAA,GAAU;;;;"}
package/lib/index.css CHANGED
@@ -887,21 +887,51 @@ video {
887
887
  .gm-group:hover .group-hover\:gm-block {
888
888
  display: block;
889
889
  }
890
+ .gm-upload-pro-preview-dialog[data-v-fbc23b01] [data-v-fbc23b01] .el-dialog__body {
891
+ padding: 0;
892
+ }
890
893
 
891
- .gm-range-number .el-form-item[data-v-1ae16d96] {
894
+ .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload--picture-card {
895
+ width: auto;
896
+ height: auto;
897
+ }
898
+ .gm-upload-pro-file {
899
+ line-height: normal;
900
+ }
901
+ .gm-upload-pro-file .el-checkbox-group {
902
+ font-size: unset;
903
+ }
904
+ .gm-upload-pro-file .el-checkbox {
905
+ position: absolute;
906
+ left: 10px;
907
+ top: 0;
908
+ z-index: 9;
909
+ }
910
+ .gm-upload-pro-file .el-upload-list--picture-card {
911
+ gap: 10px;
912
+ }
913
+ .gm-upload-pro-file .el-upload-list__item {
892
914
  margin: 0;
893
915
  }
894
-
895
- .gm-flex-center[data-v-c17deec9] {
896
- align-items: center;
916
+ .gm-upload-pro-file .el-upload-list__item-file-name {
917
+ line-height: 1.7;
918
+ }
919
+ .gm-upload-pro-file .el-upload-dragger {
920
+ padding: 0;
921
+ border: none;
922
+ width: 100%;
923
+ height: 100%;
924
+ display: flex;
925
+ }
926
+ .gm-upload-pro-file .el-upload--picture-card {
927
+ border: none;
897
928
  }
898
929
 
899
- .gm-flex-justify-between[data-v-c17deec9] {
900
- justify-content: space-between;
930
+ .gm-upload-pro-file-disabled .el-upload--picture-card {
931
+ display: none;
901
932
  }
902
- [data-v-79615afd] .gmSearchForm .el-form-item {
903
- margin-right: 0;
904
- margin-bottom: 4px;
933
+ .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
934
+ display: none;
905
935
  }
906
936
  [data-v-3f2c8504] .gmTableNoBorder .el-table__body .el-table__cell {
907
937
  border-right: none;
@@ -926,6 +956,13 @@ video {
926
956
  [data-v-3f2c8504] .gmTableNoBorder .el-table__border-left-patch {
927
957
  height: 0;
928
958
  }
959
+ .gm-flex-center[data-v-c17deec9] {
960
+ align-items: center;
961
+ }
962
+
963
+ .gm-flex-justify-between[data-v-c17deec9] {
964
+ justify-content: space-between;
965
+ }
929
966
  [data-v-050a4f74] .gmTableNoBorder .el-table__body .el-table__cell {
930
967
  border-right: none;
931
968
  }
@@ -998,50 +1035,44 @@ video {
998
1035
  .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
999
1036
  display: flex;
1000
1037
  }
1001
- .gm-upload-pro-preview-dialog[data-v-fbc23b01] [data-v-fbc23b01] .el-dialog__body {
1002
- padding: 0;
1003
- }
1004
-
1005
- .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-fbc23b01] [data-v-fbc23b01] .el-upload--picture-card {
1006
- width: auto;
1007
- height: auto;
1038
+ [data-v-79615afd] .gmSearchForm .el-form-item {
1039
+ margin-right: 0;
1040
+ margin-bottom: 4px;
1008
1041
  }
1009
- .gm-upload-pro-file {
1042
+ .gm-upload-file {
1010
1043
  line-height: normal;
1011
1044
  }
1012
- .gm-upload-pro-file .el-checkbox-group {
1013
- font-size: unset;
1014
- }
1015
- .gm-upload-pro-file .el-checkbox {
1045
+ .gm-upload-file li > .el-checkbox {
1016
1046
  position: absolute;
1017
1047
  left: 10px;
1018
1048
  top: 0;
1019
1049
  z-index: 9;
1020
1050
  }
1021
- .gm-upload-pro-file .el-upload-list--picture-card {
1051
+ .gm-upload-file .el-upload-list--picture-card {
1022
1052
  gap: 10px;
1023
1053
  }
1024
- .gm-upload-pro-file .el-upload-list__item {
1054
+ .gm-upload-file .el-upload-list__item {
1025
1055
  margin: 0;
1056
+ border: none;
1026
1057
  }
1027
- .gm-upload-pro-file .el-upload-list__item-file-name {
1028
- line-height: 1.7;
1058
+ .gm-upload-file .el-upload-list__item-file-name {
1059
+ line-height: normal;
1029
1060
  }
1030
- .gm-upload-pro-file .el-upload-dragger {
1061
+ .gm-upload-file .el-upload-dragger {
1031
1062
  padding: 0;
1032
1063
  border: none;
1033
1064
  width: 100%;
1034
1065
  height: 100%;
1035
1066
  display: flex;
1036
1067
  }
1037
- .gm-upload-pro-file .el-upload--picture-card {
1068
+ .gm-upload-file .el-upload--picture-card {
1038
1069
  border: none;
1039
1070
  }
1040
1071
 
1041
- .gm-upload-pro-file-disabled .el-upload--picture-card {
1072
+ .gm-upload-file-disabled .el-upload--picture-card {
1042
1073
  display: none;
1043
1074
  }
1044
- .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
1075
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
1045
1076
  display: none;
1046
1077
  }
1047
1078
  .gm-upload-preview-dialog[data-v-c615121c] [data-v-c615121c] .el-dialog__body {
@@ -1052,42 +1083,20 @@ video {
1052
1083
  width: auto;
1053
1084
  height: auto;
1054
1085
  }
1055
- .gm-upload-file {
1056
- line-height: normal;
1057
- }
1058
- .gm-upload-file li > .el-checkbox {
1059
- position: absolute;
1060
- left: 10px;
1061
- top: 0;
1062
- z-index: 9;
1063
- }
1064
- .gm-upload-file .el-upload-list--picture-card {
1065
- gap: 10px;
1066
- }
1067
- .gm-upload-file .el-upload-list__item {
1086
+
1087
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
1068
1088
  margin: 0;
1069
- border: none;
1070
- }
1071
- .gm-upload-file .el-upload-list__item-file-name {
1072
- line-height: normal;
1073
- }
1074
- .gm-upload-file .el-upload-dragger {
1075
- padding: 0;
1076
- border: none;
1077
- width: 100%;
1078
- height: 100%;
1079
- display: flex;
1080
- }
1081
- .gm-upload-file .el-upload--picture-card {
1082
- border: none;
1083
1089
  }
1084
1090
 
1085
- .gm-upload-file-disabled .el-upload--picture-card {
1086
- display: none;
1091
+
1092
+ .pagination-container[data-v-47d35e7b] {
1093
+ background: #fff;
1094
+ padding-top: 12px;
1087
1095
  }
1088
- .gm-upload-file-disabled .el-upload-list__item-status-label {
1096
+ .pagination-container.hidden[data-v-47d35e7b] {
1089
1097
  display: none;
1090
1098
  }
1099
+
1091
1100
  @charset "UTF-8";
1092
1101
  .table-custom-header-drawer .el-drawer__header {
1093
1102
  padding: 10px 15px;
@@ -1144,15 +1153,6 @@ video {
1144
1153
  border-radius: 10px;
1145
1154
  background: #eee;
1146
1155
  }
1147
-
1148
- .pagination-container[data-v-47d35e7b] {
1149
- background: #fff;
1150
- padding-top: 12px;
1151
- }
1152
- .pagination-container.hidden[data-v-47d35e7b] {
1153
- display: none;
1154
- }
1155
-
1156
1156
  @charset "UTF-8";
1157
1157
  .custom-operate-drawer .el-drawer__header {
1158
1158
  padding: 10px 15px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giime",
3
- "version": "0.9.16-snapshot.2",
3
+ "version": "0.9.16-snapshot.3",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "giime",