giime 0.6.26 → 0.6.27

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
@@ -811,6 +811,14 @@ video {
811
811
  .gm-flex-justify-between[data-v-c17deec9] {
812
812
  justify-content: space-between;
813
813
  }
814
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
815
+ padding: 0;
816
+ }
817
+
818
+ .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
819
+ width: auto;
820
+ height: auto;
821
+ }
814
822
  .gm-upload-file {
815
823
  line-height: normal;
816
824
  }
@@ -846,14 +854,6 @@ video {
846
854
  .gm-upload-file-disabled .el-upload-list__item-status-label {
847
855
  display: none;
848
856
  }
849
- .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
850
- padding: 0;
851
- }
852
-
853
- .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
854
- width: auto;
855
- height: auto;
856
- }
857
857
  .circular[data-v-d7b04fae] {
858
858
  animation: loading-rotate-d7b04fae 2s linear infinite;
859
859
  }
@@ -1 +1 @@
1
- export declare const version = "0.6.26";
1
+ export declare const version = "0.6.27";
package/es/index.css CHANGED
@@ -811,6 +811,14 @@ video {
811
811
  .gm-flex-justify-between[data-v-c17deec9] {
812
812
  justify-content: space-between;
813
813
  }
814
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
815
+ padding: 0;
816
+ }
817
+
818
+ .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
819
+ width: auto;
820
+ height: auto;
821
+ }
814
822
  .gm-upload-file {
815
823
  line-height: normal;
816
824
  }
@@ -846,14 +854,6 @@ video {
846
854
  .gm-upload-file-disabled .el-upload-list__item-status-label {
847
855
  display: none;
848
856
  }
849
- .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
850
- padding: 0;
851
- }
852
-
853
- .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
854
- width: auto;
855
- height: auto;
856
- }
857
857
  .circular[data-v-d7b04fae] {
858
858
  animation: loading-rotate-d7b04fae 2s linear infinite;
859
859
  }
@@ -21,8 +21,10 @@ const GiimeResolver = () => {
21
21
  ];
22
22
  };
23
23
  const bypass = (req, res, options) => {
24
- const path = options.rewrite?.(req.url) ?? "";
25
- const proxyUrl = new URL(path, options.target?.toString());
24
+ const targetPath = new URL(options.target?.toString() ?? "").pathname.replace(/\/$/, "");
25
+ const rewrittenPath = options.rewrite?.(req.url) ?? "";
26
+ const fullPath = `${targetPath}${rewrittenPath}`;
27
+ const proxyUrl = new URL(fullPath, options.target?.toString());
26
28
  res?.setHeader("x-giime-proxy-url", proxyUrl.toString());
27
29
  };
28
30
 
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.mjs","sources":["../../../../../../packages/utils/src/vue/resolver.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components';\nimport type { ProxyOptions } from 'vite';\nimport * as http from 'node:http';\n\nexport function kebabCase(key: string) {\n const result = key.replace(/([A-Z])/g, ' $1').trim();\n return result.split(' ').join('-').toLowerCase();\n}\nexport const GiimeResolver = (): ComponentResolver[] => {\n return [\n {\n type: 'component',\n resolve: async (name: string) => {\n if (!name.match(/^Gm[A-Z]/)) return;\n // const partialName = kebabCase(name.slice(2));\n // where `componentName` is always CapitalCase\n return { name, from: 'giime' };\n },\n },\n {\n type: 'directive',\n resolve: async () => {\n return;\n },\n },\n ];\n};\n/**\n * webpack-dev-server style bypass function\n */\nexport const bypass = (\n req: http.IncomingMessage,\n /** undefined for WebSocket upgrade requests */\n res: http.ServerResponse | undefined,\n options: ProxyOptions,\n) => {\n const path = options.rewrite?.(req.url!) ?? '';\n const proxyUrl = new URL(path, options.target?.toString());\n res?.setHeader('x-giime-proxy-url', proxyUrl.toString());\n};\n"],"names":[],"mappings":"AAIO,SAAS,UAAU,GAAa,EAAA;AACrC,EAAA,MAAM,SAAS,GAAI,CAAA,OAAA,CAAQ,UAAY,EAAA,KAAK,EAAE,IAAK,EAAA,CAAA;AACnD,EAAA,OAAO,OAAO,KAAM,CAAA,GAAG,EAAE,IAAK,CAAA,GAAG,EAAE,WAAY,EAAA,CAAA;AACjD,CAAA;AACO,MAAM,gBAAgB,MAA2B;AACtD,EAAO,OAAA;AAAA,IACL;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,OAAA,EAAS,OAAO,IAAiB,KAAA;AAC/B,QAAI,IAAA,CAAC,IAAK,CAAA,KAAA,CAAM,UAAU,CAAA;AAAG,UAAA,OAAA;AAG7B,QAAO,OAAA,EAAE,IAAM,EAAA,IAAA,EAAM,OAAQ,EAAA,CAAA;AAAA,OAC/B;AAAA,KACF;AAAA,IACA;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,SAAS,YAAY;AACnB,QAAA,OAAA;AAAA,OACF;AAAA,KACF;AAAA,GACF,CAAA;AACF,EAAA;AAIO,MAAM,MAAS,GAAA,CACpB,GAEA,EAAA,GAAA,EACA,OACG,KAAA;AACH,EAAA,MAAM,IAAO,GAAA,OAAA,CAAQ,OAAU,GAAA,GAAA,CAAI,GAAI,CAAK,IAAA,EAAA,CAAA;AAC5C,EAAA,MAAM,WAAW,IAAI,GAAA,CAAI,MAAM,OAAQ,CAAA,MAAA,EAAQ,UAAU,CAAA,CAAA;AACzD,EAAA,GAAA,EAAK,SAAU,CAAA,mBAAA,EAAqB,QAAS,CAAA,QAAA,EAAU,CAAA,CAAA;AACzD;;;;"}
1
+ {"version":3,"file":"resolver.mjs","sources":["../../../../../../packages/utils/src/vue/resolver.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components';\nimport type { ProxyOptions } from 'vite';\nimport * as http from 'node:http';\n\nexport function kebabCase(key: string) {\n const result = key.replace(/([A-Z])/g, ' $1').trim();\n return result.split(' ').join('-').toLowerCase();\n}\nexport const GiimeResolver = (): ComponentResolver[] => {\n return [\n {\n type: 'component',\n resolve: async (name: string) => {\n if (!name.match(/^Gm[A-Z]/)) return;\n // const partialName = kebabCase(name.slice(2));\n // where `componentName` is always CapitalCase\n return { name, from: 'giime' };\n },\n },\n {\n type: 'directive',\n resolve: async () => {\n return;\n },\n },\n ];\n};\n/**\n * webpack-dev-server style bypass function\n */\nexport const bypass = (\n req: http.IncomingMessage,\n /** undefined for WebSocket upgrade requests */\n res: http.ServerResponse | undefined,\n options: ProxyOptions,\n) => {\n // 获取请求路径,处理后缀斜杠的问题\n const targetPath = new URL(options.target?.toString() ?? '').pathname.replace(/\\/$/, '');\n // 使用 rewrite 函数处理请求路径,并处理后缀斜杠的问题\n const rewrittenPath = options.rewrite?.(req.url!) ?? '';\n // 合并路径\n const fullPath = `${targetPath}${rewrittenPath}`;\n\n // 构造完整的代理 URL\n const proxyUrl = new URL(fullPath, options.target?.toString());\n\n // 设置响应头\n res?.setHeader('x-giime-proxy-url', proxyUrl.toString());\n};\n"],"names":[],"mappings":"AAIO,SAAS,UAAU,GAAa,EAAA;AACrC,EAAA,MAAM,SAAS,GAAI,CAAA,OAAA,CAAQ,UAAY,EAAA,KAAK,EAAE,IAAK,EAAA,CAAA;AACnD,EAAA,OAAO,OAAO,KAAM,CAAA,GAAG,EAAE,IAAK,CAAA,GAAG,EAAE,WAAY,EAAA,CAAA;AACjD,CAAA;AACO,MAAM,gBAAgB,MAA2B;AACtD,EAAO,OAAA;AAAA,IACL;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,OAAA,EAAS,OAAO,IAAiB,KAAA;AAC/B,QAAI,IAAA,CAAC,IAAK,CAAA,KAAA,CAAM,UAAU,CAAA;AAAG,UAAA,OAAA;AAG7B,QAAO,OAAA,EAAE,IAAM,EAAA,IAAA,EAAM,OAAQ,EAAA,CAAA;AAAA,OAC/B;AAAA,KACF;AAAA,IACA;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,SAAS,YAAY;AACnB,QAAA,OAAA;AAAA,OACF;AAAA,KACF;AAAA,GACF,CAAA;AACF,EAAA;AAIO,MAAM,MAAS,GAAA,CACpB,GAEA,EAAA,GAAA,EACA,OACG,KAAA;AAEH,EAAA,MAAM,UAAa,GAAA,IAAI,GAAI,CAAA,OAAA,CAAQ,MAAQ,EAAA,QAAA,EAAc,IAAA,EAAE,CAAE,CAAA,QAAA,CAAS,OAAQ,CAAA,KAAA,EAAO,EAAE,CAAA,CAAA;AAEvF,EAAA,MAAM,aAAgB,GAAA,OAAA,CAAQ,OAAU,GAAA,GAAA,CAAI,GAAI,CAAK,IAAA,EAAA,CAAA;AAErD,EAAA,MAAM,QAAW,GAAA,CAAA,EAAG,UAAU,CAAA,EAAG,aAAa,CAAA,CAAA,CAAA;AAG9C,EAAA,MAAM,WAAW,IAAI,GAAA,CAAI,UAAU,OAAQ,CAAA,MAAA,EAAQ,UAAU,CAAA,CAAA;AAG7D,EAAA,GAAA,EAAK,SAAU,CAAA,mBAAA,EAAqB,QAAS,CAAA,QAAA,EAAU,CAAA,CAAA;AACzD;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.6.26";
1
+ export declare const version = "0.6.27";
package/lib/index.css CHANGED
@@ -811,6 +811,14 @@ video {
811
811
  .gm-flex-justify-between[data-v-c17deec9] {
812
812
  justify-content: space-between;
813
813
  }
814
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
815
+ padding: 0;
816
+ }
817
+
818
+ .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
819
+ width: auto;
820
+ height: auto;
821
+ }
814
822
  .gm-upload-file {
815
823
  line-height: normal;
816
824
  }
@@ -846,14 +854,6 @@ video {
846
854
  .gm-upload-file-disabled .el-upload-list__item-status-label {
847
855
  display: none;
848
856
  }
849
- .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
850
- padding: 0;
851
- }
852
-
853
- .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
854
- width: auto;
855
- height: auto;
856
- }
857
857
  .circular[data-v-d7b04fae] {
858
858
  animation: loading-rotate-d7b04fae 2s linear infinite;
859
859
  }
@@ -23,8 +23,10 @@ const GiimeResolver = () => {
23
23
  ];
24
24
  };
25
25
  const bypass = (req, res, options) => {
26
- const path = options.rewrite?.(req.url) ?? "";
27
- const proxyUrl = new URL(path, options.target?.toString());
26
+ const targetPath = new URL(options.target?.toString() ?? "").pathname.replace(/\/$/, "");
27
+ const rewrittenPath = options.rewrite?.(req.url) ?? "";
28
+ const fullPath = `${targetPath}${rewrittenPath}`;
29
+ const proxyUrl = new URL(fullPath, options.target?.toString());
28
30
  res?.setHeader("x-giime-proxy-url", proxyUrl.toString());
29
31
  };
30
32
 
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.js","sources":["../../../../../../packages/utils/src/vue/resolver.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components';\nimport type { ProxyOptions } from 'vite';\nimport * as http from 'node:http';\n\nexport function kebabCase(key: string) {\n const result = key.replace(/([A-Z])/g, ' $1').trim();\n return result.split(' ').join('-').toLowerCase();\n}\nexport const GiimeResolver = (): ComponentResolver[] => {\n return [\n {\n type: 'component',\n resolve: async (name: string) => {\n if (!name.match(/^Gm[A-Z]/)) return;\n // const partialName = kebabCase(name.slice(2));\n // where `componentName` is always CapitalCase\n return { name, from: 'giime' };\n },\n },\n {\n type: 'directive',\n resolve: async () => {\n return;\n },\n },\n ];\n};\n/**\n * webpack-dev-server style bypass function\n */\nexport const bypass = (\n req: http.IncomingMessage,\n /** undefined for WebSocket upgrade requests */\n res: http.ServerResponse | undefined,\n options: ProxyOptions,\n) => {\n const path = options.rewrite?.(req.url!) ?? '';\n const proxyUrl = new URL(path, options.target?.toString());\n res?.setHeader('x-giime-proxy-url', proxyUrl.toString());\n};\n"],"names":[],"mappings":";;AAIO,SAAS,UAAU,GAAa,EAAA;AACrC,EAAA,MAAM,SAAS,GAAI,CAAA,OAAA,CAAQ,UAAY,EAAA,KAAK,EAAE,IAAK,EAAA,CAAA;AACnD,EAAA,OAAO,OAAO,KAAM,CAAA,GAAG,EAAE,IAAK,CAAA,GAAG,EAAE,WAAY,EAAA,CAAA;AACjD,CAAA;AACO,MAAM,gBAAgB,MAA2B;AACtD,EAAO,OAAA;AAAA,IACL;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,OAAA,EAAS,OAAO,IAAiB,KAAA;AAC/B,QAAI,IAAA,CAAC,IAAK,CAAA,KAAA,CAAM,UAAU,CAAA;AAAG,UAAA,OAAA;AAG7B,QAAO,OAAA,EAAE,IAAM,EAAA,IAAA,EAAM,OAAQ,EAAA,CAAA;AAAA,OAC/B;AAAA,KACF;AAAA,IACA;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,SAAS,YAAY;AACnB,QAAA,OAAA;AAAA,OACF;AAAA,KACF;AAAA,GACF,CAAA;AACF,EAAA;AAIO,MAAM,MAAS,GAAA,CACpB,GAEA,EAAA,GAAA,EACA,OACG,KAAA;AACH,EAAA,MAAM,IAAO,GAAA,OAAA,CAAQ,OAAU,GAAA,GAAA,CAAI,GAAI,CAAK,IAAA,EAAA,CAAA;AAC5C,EAAA,MAAM,WAAW,IAAI,GAAA,CAAI,MAAM,OAAQ,CAAA,MAAA,EAAQ,UAAU,CAAA,CAAA;AACzD,EAAA,GAAA,EAAK,SAAU,CAAA,mBAAA,EAAqB,QAAS,CAAA,QAAA,EAAU,CAAA,CAAA;AACzD;;;;;;"}
1
+ {"version":3,"file":"resolver.js","sources":["../../../../../../packages/utils/src/vue/resolver.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components';\nimport type { ProxyOptions } from 'vite';\nimport * as http from 'node:http';\n\nexport function kebabCase(key: string) {\n const result = key.replace(/([A-Z])/g, ' $1').trim();\n return result.split(' ').join('-').toLowerCase();\n}\nexport const GiimeResolver = (): ComponentResolver[] => {\n return [\n {\n type: 'component',\n resolve: async (name: string) => {\n if (!name.match(/^Gm[A-Z]/)) return;\n // const partialName = kebabCase(name.slice(2));\n // where `componentName` is always CapitalCase\n return { name, from: 'giime' };\n },\n },\n {\n type: 'directive',\n resolve: async () => {\n return;\n },\n },\n ];\n};\n/**\n * webpack-dev-server style bypass function\n */\nexport const bypass = (\n req: http.IncomingMessage,\n /** undefined for WebSocket upgrade requests */\n res: http.ServerResponse | undefined,\n options: ProxyOptions,\n) => {\n // 获取请求路径,处理后缀斜杠的问题\n const targetPath = new URL(options.target?.toString() ?? '').pathname.replace(/\\/$/, '');\n // 使用 rewrite 函数处理请求路径,并处理后缀斜杠的问题\n const rewrittenPath = options.rewrite?.(req.url!) ?? '';\n // 合并路径\n const fullPath = `${targetPath}${rewrittenPath}`;\n\n // 构造完整的代理 URL\n const proxyUrl = new URL(fullPath, options.target?.toString());\n\n // 设置响应头\n res?.setHeader('x-giime-proxy-url', proxyUrl.toString());\n};\n"],"names":[],"mappings":";;AAIO,SAAS,UAAU,GAAa,EAAA;AACrC,EAAA,MAAM,SAAS,GAAI,CAAA,OAAA,CAAQ,UAAY,EAAA,KAAK,EAAE,IAAK,EAAA,CAAA;AACnD,EAAA,OAAO,OAAO,KAAM,CAAA,GAAG,EAAE,IAAK,CAAA,GAAG,EAAE,WAAY,EAAA,CAAA;AACjD,CAAA;AACO,MAAM,gBAAgB,MAA2B;AACtD,EAAO,OAAA;AAAA,IACL;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,OAAA,EAAS,OAAO,IAAiB,KAAA;AAC/B,QAAI,IAAA,CAAC,IAAK,CAAA,KAAA,CAAM,UAAU,CAAA;AAAG,UAAA,OAAA;AAG7B,QAAO,OAAA,EAAE,IAAM,EAAA,IAAA,EAAM,OAAQ,EAAA,CAAA;AAAA,OAC/B;AAAA,KACF;AAAA,IACA;AAAA,MACE,IAAM,EAAA,WAAA;AAAA,MACN,SAAS,YAAY;AACnB,QAAA,OAAA;AAAA,OACF;AAAA,KACF;AAAA,GACF,CAAA;AACF,EAAA;AAIO,MAAM,MAAS,GAAA,CACpB,GAEA,EAAA,GAAA,EACA,OACG,KAAA;AAEH,EAAA,MAAM,UAAa,GAAA,IAAI,GAAI,CAAA,OAAA,CAAQ,MAAQ,EAAA,QAAA,EAAc,IAAA,EAAE,CAAE,CAAA,QAAA,CAAS,OAAQ,CAAA,KAAA,EAAO,EAAE,CAAA,CAAA;AAEvF,EAAA,MAAM,aAAgB,GAAA,OAAA,CAAQ,OAAU,GAAA,GAAA,CAAI,GAAI,CAAK,IAAA,EAAA,CAAA;AAErD,EAAA,MAAM,QAAW,GAAA,CAAA,EAAG,UAAU,CAAA,EAAG,aAAa,CAAA,CAAA,CAAA;AAG9C,EAAA,MAAM,WAAW,IAAI,GAAA,CAAI,UAAU,OAAQ,CAAA,MAAA,EAAQ,UAAU,CAAA,CAAA;AAG7D,EAAA,GAAA,EAAK,SAAU,CAAA,mBAAA,EAAqB,QAAS,CAAA,QAAA,EAAU,CAAA,CAAA;AACzD;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giime",
3
- "version": "0.6.26",
3
+ "version": "0.6.27",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "giime",