ide-assi 0.556.0 → 0.558.0
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/bundle.cjs.js
CHANGED
|
@@ -202714,8 +202714,7 @@ class IdeAssi extends HTMLElement
|
|
|
202714
202714
|
} catch (error) {
|
|
202715
202715
|
console.error(error);
|
|
202716
202716
|
elAiChat.add("ai", String(error).replace("Error:", ""));
|
|
202717
|
-
}
|
|
202718
|
-
*/
|
|
202717
|
+
}*/
|
|
202719
202718
|
|
|
202720
202719
|
this.#ing = false;
|
|
202721
202720
|
}
|
|
@@ -202905,8 +202904,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
202905
202904
|
#currentImageIndex = 0; // Index of the currently displayed image for the current tip
|
|
202906
202905
|
#tipIntervalId = null; // Interval ID for cycling through tips
|
|
202907
202906
|
#imageIntervalId = null; // Interval ID for cycling through images within a tip
|
|
202908
|
-
#tipDisplayDuration =
|
|
202909
|
-
#imageDisplayDuration =
|
|
202907
|
+
#tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
|
|
202908
|
+
#imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
|
|
202910
202909
|
|
|
202911
202910
|
// DOM element references (cached for performance)
|
|
202912
202911
|
tipElement = null;
|
|
@@ -202991,7 +202990,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
202991
202990
|
}
|
|
202992
202991
|
|
|
202993
202992
|
this.#tips = tips;
|
|
202994
|
-
this.#currentTipIndex = 0;
|
|
202993
|
+
//this.#currentTipIndex = 0;
|
|
202994
|
+
this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
|
|
202995
202995
|
this.stopTips(); // Stop any existing intervals before starting new ones
|
|
202996
202996
|
|
|
202997
202997
|
this.showCurrentTip(); // Display the first tip immediately
|
|
@@ -203034,7 +203034,18 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
203034
203034
|
* Advances to the next tip and calls showCurrentTip() to display it.
|
|
203035
203035
|
*/
|
|
203036
203036
|
showNextTip() {
|
|
203037
|
-
|
|
203037
|
+
if (this.#tips.length <= 1) {
|
|
203038
|
+
// 팁이 하나뿐이거나 없으면 다음 팁을 보여줄 필요가 없음
|
|
203039
|
+
this.showCurrentTip(); // 현재 팁을 그냥 다시 표시
|
|
203040
|
+
return;
|
|
203041
|
+
}
|
|
203042
|
+
|
|
203043
|
+
let nextIndex;
|
|
203044
|
+
do {
|
|
203045
|
+
nextIndex = Math.floor(Math.random() * this.#tips.length);
|
|
203046
|
+
} while (nextIndex === this.#currentTipIndex); // 현재 인덱스와 같으면 다시 뽑기
|
|
203047
|
+
|
|
203048
|
+
this.#currentTipIndex = nextIndex;
|
|
203038
203049
|
this.showCurrentTip();
|
|
203039
203050
|
}
|
|
203040
203051
|
|
|
@@ -203044,8 +203055,6 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
203044
203055
|
showCurrentTip() {
|
|
203045
203056
|
const currentTip = this.#tips[this.#currentTipIndex];
|
|
203046
203057
|
|
|
203047
|
-
console.log(currentTip);
|
|
203048
|
-
|
|
203049
203058
|
if (this.tipElement && currentTip) {
|
|
203050
203059
|
//this.tipElement.textContent = currentTip.text;
|
|
203051
203060
|
this.tipElement.innerHTML = currentTip.text;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202710,8 +202710,7 @@ class IdeAssi extends HTMLElement
|
|
|
202710
202710
|
} catch (error) {
|
|
202711
202711
|
console.error(error);
|
|
202712
202712
|
elAiChat.add("ai", String(error).replace("Error:", ""));
|
|
202713
|
-
}
|
|
202714
|
-
*/
|
|
202713
|
+
}*/
|
|
202715
202714
|
|
|
202716
202715
|
this.#ing = false;
|
|
202717
202716
|
}
|
|
@@ -202901,8 +202900,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
202901
202900
|
#currentImageIndex = 0; // Index of the currently displayed image for the current tip
|
|
202902
202901
|
#tipIntervalId = null; // Interval ID for cycling through tips
|
|
202903
202902
|
#imageIntervalId = null; // Interval ID for cycling through images within a tip
|
|
202904
|
-
#tipDisplayDuration =
|
|
202905
|
-
#imageDisplayDuration =
|
|
202903
|
+
#tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
|
|
202904
|
+
#imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
|
|
202906
202905
|
|
|
202907
202906
|
// DOM element references (cached for performance)
|
|
202908
202907
|
tipElement = null;
|
|
@@ -202987,7 +202986,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
202987
202986
|
}
|
|
202988
202987
|
|
|
202989
202988
|
this.#tips = tips;
|
|
202990
|
-
this.#currentTipIndex = 0;
|
|
202989
|
+
//this.#currentTipIndex = 0;
|
|
202990
|
+
this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
|
|
202991
202991
|
this.stopTips(); // Stop any existing intervals before starting new ones
|
|
202992
202992
|
|
|
202993
202993
|
this.showCurrentTip(); // Display the first tip immediately
|
|
@@ -203030,7 +203030,18 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
203030
203030
|
* Advances to the next tip and calls showCurrentTip() to display it.
|
|
203031
203031
|
*/
|
|
203032
203032
|
showNextTip() {
|
|
203033
|
-
|
|
203033
|
+
if (this.#tips.length <= 1) {
|
|
203034
|
+
// 팁이 하나뿐이거나 없으면 다음 팁을 보여줄 필요가 없음
|
|
203035
|
+
this.showCurrentTip(); // 현재 팁을 그냥 다시 표시
|
|
203036
|
+
return;
|
|
203037
|
+
}
|
|
203038
|
+
|
|
203039
|
+
let nextIndex;
|
|
203040
|
+
do {
|
|
203041
|
+
nextIndex = Math.floor(Math.random() * this.#tips.length);
|
|
203042
|
+
} while (nextIndex === this.#currentTipIndex); // 현재 인덱스와 같으면 다시 뽑기
|
|
203043
|
+
|
|
203044
|
+
this.#currentTipIndex = nextIndex;
|
|
203034
203045
|
this.showCurrentTip();
|
|
203035
203046
|
}
|
|
203036
203047
|
|
|
@@ -203040,8 +203051,6 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
203040
203051
|
showCurrentTip() {
|
|
203041
203052
|
const currentTip = this.#tips[this.#currentTipIndex];
|
|
203042
203053
|
|
|
203043
|
-
console.log(currentTip);
|
|
203044
|
-
|
|
203045
203054
|
if (this.tipElement && currentTip) {
|
|
203046
203055
|
//this.tipElement.textContent = currentTip.text;
|
|
203047
203056
|
this.tipElement.innerHTML = currentTip.text;
|
|
@@ -9,8 +9,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
9
9
|
#currentImageIndex = 0; // Index of the currently displayed image for the current tip
|
|
10
10
|
#tipIntervalId = null; // Interval ID for cycling through tips
|
|
11
11
|
#imageIntervalId = null; // Interval ID for cycling through images within a tip
|
|
12
|
-
#tipDisplayDuration =
|
|
13
|
-
#imageDisplayDuration =
|
|
12
|
+
#tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
|
|
13
|
+
#imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
|
|
14
14
|
|
|
15
15
|
// DOM element references (cached for performance)
|
|
16
16
|
tipElement = null;
|
|
@@ -95,7 +95,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
this.#tips = tips;
|
|
98
|
-
this.#currentTipIndex = 0;
|
|
98
|
+
//this.#currentTipIndex = 0;
|
|
99
|
+
this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
|
|
99
100
|
this.stopTips(); // Stop any existing intervals before starting new ones
|
|
100
101
|
|
|
101
102
|
this.showCurrentTip(); // Display the first tip immediately
|
|
@@ -138,7 +139,18 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
138
139
|
* Advances to the next tip and calls showCurrentTip() to display it.
|
|
139
140
|
*/
|
|
140
141
|
showNextTip() {
|
|
141
|
-
|
|
142
|
+
if (this.#tips.length <= 1) {
|
|
143
|
+
// 팁이 하나뿐이거나 없으면 다음 팁을 보여줄 필요가 없음
|
|
144
|
+
this.showCurrentTip(); // 현재 팁을 그냥 다시 표시
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
let nextIndex;
|
|
149
|
+
do {
|
|
150
|
+
nextIndex = Math.floor(Math.random() * this.#tips.length);
|
|
151
|
+
} while (nextIndex === this.#currentTipIndex); // 현재 인덱스와 같으면 다시 뽑기
|
|
152
|
+
|
|
153
|
+
this.#currentTipIndex = nextIndex;
|
|
142
154
|
this.showCurrentTip();
|
|
143
155
|
}
|
|
144
156
|
|
|
@@ -148,8 +160,6 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
148
160
|
showCurrentTip() {
|
|
149
161
|
const currentTip = this.#tips[this.#currentTipIndex];
|
|
150
162
|
|
|
151
|
-
console.log(currentTip);
|
|
152
|
-
|
|
153
163
|
if (this.tipElement && currentTip) {
|
|
154
164
|
//this.tipElement.textContent = currentTip.text;
|
|
155
165
|
this.tipElement.innerHTML = currentTip.text;
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
9
9
|
#currentImageIndex = 0; // Index of the currently displayed image for the current tip
|
|
10
10
|
#tipIntervalId = null; // Interval ID for cycling through tips
|
|
11
11
|
#imageIntervalId = null; // Interval ID for cycling through images within a tip
|
|
12
|
-
#tipDisplayDuration =
|
|
13
|
-
#imageDisplayDuration =
|
|
12
|
+
#tipDisplayDuration = 10000; // How long each tip is displayed (5 seconds)
|
|
13
|
+
#imageDisplayDuration = 3000; // How long each image within a tip is displayed (2 seconds)
|
|
14
14
|
|
|
15
15
|
// DOM element references (cached for performance)
|
|
16
16
|
tipElement = null;
|
|
@@ -95,7 +95,8 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
this.#tips = tips;
|
|
98
|
-
this.#currentTipIndex = 0;
|
|
98
|
+
//this.#currentTipIndex = 0;
|
|
99
|
+
this.#currentTipIndex = Math.floor(Math.random() * this.#tips.length);
|
|
99
100
|
this.stopTips(); // Stop any existing intervals before starting new ones
|
|
100
101
|
|
|
101
102
|
this.showCurrentTip(); // Display the first tip immediately
|
|
@@ -138,7 +139,18 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
138
139
|
* Advances to the next tip and calls showCurrentTip() to display it.
|
|
139
140
|
*/
|
|
140
141
|
showNextTip() {
|
|
141
|
-
|
|
142
|
+
if (this.#tips.length <= 1) {
|
|
143
|
+
// 팁이 하나뿐이거나 없으면 다음 팁을 보여줄 필요가 없음
|
|
144
|
+
this.showCurrentTip(); // 현재 팁을 그냥 다시 표시
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
let nextIndex;
|
|
149
|
+
do {
|
|
150
|
+
nextIndex = Math.floor(Math.random() * this.#tips.length);
|
|
151
|
+
} while (nextIndex === this.#currentTipIndex); // 현재 인덱스와 같으면 다시 뽑기
|
|
152
|
+
|
|
153
|
+
this.#currentTipIndex = nextIndex;
|
|
142
154
|
this.showCurrentTip();
|
|
143
155
|
}
|
|
144
156
|
|
|
@@ -148,8 +160,6 @@ class IdeLoadingTips extends HTMLElement {
|
|
|
148
160
|
showCurrentTip() {
|
|
149
161
|
const currentTip = this.#tips[this.#currentTipIndex];
|
|
150
162
|
|
|
151
|
-
console.log(currentTip);
|
|
152
|
-
|
|
153
163
|
if (this.tipElement && currentTip) {
|
|
154
164
|
//this.tipElement.textContent = currentTip.text;
|
|
155
165
|
this.tipElement.innerHTML = currentTip.text;
|