@mptw/skylens-ui 1.4.62 → 1.4.64

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/nuxt.config.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // https://nuxt.com/docs/api/configuration/nuxt-config
2
2
  import { fileURLToPath } from 'url';
3
- import { dirname, join } from 'path';
3
+ import { dirname } from 'path';
4
4
 
5
5
  const currentDir = dirname(fileURLToPath(import.meta.url));
6
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.62",
4
+ "version": "1.4.64",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -9,56 +9,6 @@ export const AGE_RANGE_NAME = [
9
9
  '75以上',
10
10
  ];
11
11
 
12
- export const WEB_CHART_COLORS = [
13
- "#8677b6",
14
- "#6be6c1",
15
- "#626c91",
16
- "#688ed0",
17
- "#6ccadd",
18
- "#2ca5b9",
19
- "#3364d2",
20
- "#15625a",
21
- "#a3e26a",
22
- "#3ed6dd",
23
- "#7c9a84",
24
- "#c9df7f",
25
- "#5c5cdf",
26
- "#31cb9a",
27
- "#6e717e",
28
- "#eccc65",
29
- "#6c907c",
30
- "#6a8ef6",
31
- "#57e5f1",
32
- "#6022d2",
33
- "#98c8c8",
34
- "#c3c350"
35
- ];
36
-
37
- export const POI_CHART_COLORS = [
38
- "#df7bae",
39
- "#f1a29a",
40
- "#9c7fd0",
41
- "#e2b587",
42
- "#c3cd75",
43
- "#7e4e77",
44
- "#c36c34",
45
- "#e2a5cc",
46
- "#efce4a",
47
- "#60c0dd",
48
- "#e47272",
49
- "#c7b8c8",
50
- "#d590d8",
51
- "#be5291",
52
- "#ef7f24",
53
- "#a9a1e9",
54
- "#9d6fc6",
55
- "#dfb9b9",
56
- "#e75151",
57
- "#ba92c1",
58
- "#63caae",
59
- "#b65f5f"
60
- ];
61
-
62
12
  export const CABLE_DEFAULT_END_DATE_BEFORE_NOW = 6;
63
13
 
64
14
  export const TAIWAN_COUNTRIES = [
package/utils/index.ts CHANGED
@@ -533,6 +533,13 @@ export const httpUrlToHost = (url: string) => {
533
533
 
534
534
  return url;
535
535
  }
536
+ export const hostToHttpUrl = (host: string) => {
537
+ if (/^https?:\/\//.test(host)) {
538
+ return host;
539
+ }
540
+
541
+ return `https://${host}`;
542
+ }
536
543
 
537
544
  export const isValidDate = (d: any) => {
538
545
  if (Object.prototype.toString.call(d) === "[object Date]") {