@yeeyoon/library 1.8.2 → 1.8.6
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.
|
@@ -3,8 +3,9 @@ const { host } = window.location;
|
|
|
3
3
|
export function getIamApiHost() {
|
|
4
4
|
switch (host) {
|
|
5
5
|
case 'localhost:8000':
|
|
6
|
-
case 'localhost:8009':
|
|
7
6
|
case 'localhost:8003':
|
|
7
|
+
case 'localhost:8009':
|
|
8
|
+
case 'localhost:8010':
|
|
8
9
|
case 'testing-collab.yeeyoon.com':
|
|
9
10
|
case 'testing-profile.yeeyoon.com':
|
|
10
11
|
case 'testing-bpm.yeeyoon.com':
|
|
@@ -25,8 +26,9 @@ export function getIamApiHost() {
|
|
|
25
26
|
export function getIamRedirectUrl() {
|
|
26
27
|
switch (host) {
|
|
27
28
|
case 'localhost:8000':
|
|
28
|
-
case 'localhost:8009':
|
|
29
29
|
case 'localhost:8003':
|
|
30
|
+
case 'localhost:8009':
|
|
31
|
+
case 'localhost:8010':
|
|
30
32
|
case 'testing-collab.yeeyoon.com':
|
|
31
33
|
case 'testing-profile.yeeyoon.com':
|
|
32
34
|
case 'testing-bpm.yeeyoon.com':
|
|
@@ -46,8 +48,9 @@ export function getIamRedirectUrl() {
|
|
|
46
48
|
export function getProfileRedirectUrl(path) {
|
|
47
49
|
switch (host) {
|
|
48
50
|
case 'localhost:8000':
|
|
49
|
-
case 'localhost:8009':
|
|
50
51
|
case 'localhost:8003':
|
|
52
|
+
case 'localhost:8009':
|
|
53
|
+
case 'localhost:8010':
|
|
51
54
|
case 'testing-collab.yeeyoon.com':
|
|
52
55
|
case 'testing-profile.yeeyoon.com':
|
|
53
56
|
case 'testing-bpm.yeeyoon.com':
|
|
@@ -9,15 +9,22 @@ function getCyWsApiHost() {
|
|
|
9
9
|
case 'localhost:8000':
|
|
10
10
|
case 'localhost:8003':
|
|
11
11
|
case 'localhost:8009':
|
|
12
|
+
case 'localhost:8010':
|
|
12
13
|
case 'testing-task.yeeyoon.com':
|
|
13
14
|
case 'testing-profile.yeeyoon.com':
|
|
15
|
+
case 'testing-collab.yeeyoon.com':
|
|
16
|
+
case 'testing-bpm.yeeyoon.com':
|
|
14
17
|
case 'demo-task.yeeyoon.com':
|
|
15
18
|
case 'demo-profile.yeeyoon.com':
|
|
19
|
+
return 'wss://testing-ws.yeeyoon.com/yeeyoon';
|
|
16
20
|
case 'staging-task.yeeyoon.com':
|
|
17
21
|
case 'staging-profile.yeeyoon.com':
|
|
18
|
-
|
|
22
|
+
case 'staging-collab.yeeyoon.com':
|
|
23
|
+
case 'staging-bpm.yeeyoon.com':
|
|
19
24
|
case 'task.yeeyoon.com':
|
|
20
25
|
case 'profile.yeeyoon.com':
|
|
26
|
+
case 'collab.yeeyoon.com':
|
|
27
|
+
case 'bpm.yeeyoon.com':
|
|
21
28
|
default:
|
|
22
29
|
return 'wss://ws.yeeyoon.com/yeeyoon';
|
|
23
30
|
}
|
|
@@ -45,15 +52,22 @@ function getCyMessageApiHost() {
|
|
|
45
52
|
case 'localhost:8000':
|
|
46
53
|
case 'localhost:8003':
|
|
47
54
|
case 'localhost:8009':
|
|
55
|
+
case 'localhost:8010':
|
|
48
56
|
case 'testing-task.yeeyoon.com':
|
|
49
57
|
case 'testing-profile.yeeyoon.com':
|
|
58
|
+
case 'testing-collab.yeeyoon.com':
|
|
59
|
+
case 'testing-bpm.yeeyoon.com':
|
|
50
60
|
case 'demo-task.yeeyoon.com':
|
|
51
61
|
case 'demo-profile.yeeyoon.com':
|
|
62
|
+
return 'https://testing-api.yeeyoon.com/notification';
|
|
52
63
|
case 'staging-task.yeeyoon.com':
|
|
53
64
|
case 'staging-profile.yeeyoon.com':
|
|
54
|
-
|
|
65
|
+
case 'staging-collab.yeeyoon.com':
|
|
66
|
+
case 'staging-bpm.yeeyoon.com':
|
|
55
67
|
case 'task.yeeyoon.com':
|
|
56
68
|
case 'profile.yeeyoon.com':
|
|
69
|
+
case 'collab.yeeyoon.com':
|
|
70
|
+
case 'bpm.yeeyoon.com':
|
|
57
71
|
default:
|
|
58
72
|
return 'https://api.yeeyoon.com/notification';
|
|
59
73
|
}
|
|
@@ -97,17 +111,24 @@ export function getEnvVar() {
|
|
|
97
111
|
case 'localhost:8000':
|
|
98
112
|
case 'localhost:8003':
|
|
99
113
|
case 'localhost:8009':
|
|
114
|
+
case 'localhost:8010':
|
|
100
115
|
case 'testing-task.yeeyoon.com':
|
|
101
116
|
case 'testing-profile.yeeyoon.com':
|
|
117
|
+
case 'testing-collab.yeeyoon.com':
|
|
118
|
+
case 'testing-bpm.yeeyoon.com':
|
|
102
119
|
return 'test';
|
|
103
120
|
case 'demo-task.yeeyoon.com':
|
|
104
121
|
case 'demo-profile.yeeyoon.com':
|
|
105
122
|
return 'demo';
|
|
106
123
|
case 'staging-task.yeeyoon.com':
|
|
107
124
|
case 'staging-profile.yeeyoon.com':
|
|
125
|
+
case 'staging-collab.yeeyoon.com':
|
|
126
|
+
case 'staging-bpm.yeeyoon.com':
|
|
108
127
|
return 'uat';
|
|
109
128
|
case 'task.yeeyoon.com':
|
|
110
129
|
case 'profile.yeeyoon.com':
|
|
130
|
+
case 'collab.yeeyoon.com':
|
|
131
|
+
case 'bpm.yeeyoon.com':
|
|
111
132
|
default:
|
|
112
133
|
return 'prod';
|
|
113
134
|
}
|