ide-assi 0.623.0 → 0.625.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.
@@ -203647,6 +203647,31 @@ class IdeDiffPopup extends HTMLElement
203647
203647
 
203648
203648
  popup = (changedSource) => {
203649
203649
 
203650
+ const getTitle = (type, pathKey = "tobePath") => {
203651
+ // changedSource가 유효한지 확인
203652
+
203653
+ console.log("---------", changedSource);
203654
+ if (!changedSource) {
203655
+ return null;
203656
+ }
203657
+
203658
+ for (const item of changedSource) {
203659
+
203660
+ console.log(item);
203661
+
203662
+ // item이 해당 속성을 가지고 있고, 그 속성의 값이 존재하는지 확인
203663
+ if (item.hasOwnProperty(type) && item[pathKey]) {
203664
+ const arr = item[pathKey].split("/");
203665
+ // 배열이 비어있지 않은지 확인하고 마지막 요소 반환
203666
+ if (arr.length > 0) {
203667
+ return arr.pop();
203668
+ }
203669
+ }
203670
+ }
203671
+ // 조건에 맞는 값을 찾지 못했을 경우 명시적으로 null 반환
203672
+ return null;
203673
+ };
203674
+
203650
203675
  this.#changedSource = changedSource;
203651
203676
 
203652
203677
  const tab = this.shadowRoot.querySelector('nx-tab');
@@ -203682,23 +203707,24 @@ class IdeDiffPopup extends HTMLElement
203682
203707
 
203683
203708
  console.log(changedSource);
203684
203709
 
203710
+
203685
203711
  tab.shadowRoot.querySelectorAll(".tab-button").forEach((el,index) => {
203686
203712
  console.log(el, index);
203687
203713
  switch (index) {
203688
203714
  case 0:
203689
- el.innerHTML = index;
203715
+ el.innerHTML = getTitle("mybatis");
203690
203716
  break;
203691
203717
  case 1:
203692
- el.innerHTML = index;
203718
+ el.innerHTML = getTitle("service");
203693
203719
  break;
203694
203720
  case 2:
203695
- el.innerHTML = index;
203721
+ el.innerHTML = getTitle("controller");
203696
203722
  break;
203697
203723
  case 3:
203698
- el.innerHTML = index;
203724
+ el.innerHTML = getTitle("javascript");
203699
203725
  break;
203700
203726
  case 4:
203701
- el.innerHTML = index;
203727
+ el.innerHTML = getTitle("javascript2");
203702
203728
  break;
203703
203729
  }
203704
203730
  });
@@ -203643,6 +203643,31 @@ class IdeDiffPopup extends HTMLElement
203643
203643
 
203644
203644
  popup = (changedSource) => {
203645
203645
 
203646
+ const getTitle = (type, pathKey = "tobePath") => {
203647
+ // changedSource가 유효한지 확인
203648
+
203649
+ console.log("---------", changedSource);
203650
+ if (!changedSource) {
203651
+ return null;
203652
+ }
203653
+
203654
+ for (const item of changedSource) {
203655
+
203656
+ console.log(item);
203657
+
203658
+ // item이 해당 속성을 가지고 있고, 그 속성의 값이 존재하는지 확인
203659
+ if (item.hasOwnProperty(type) && item[pathKey]) {
203660
+ const arr = item[pathKey].split("/");
203661
+ // 배열이 비어있지 않은지 확인하고 마지막 요소 반환
203662
+ if (arr.length > 0) {
203663
+ return arr.pop();
203664
+ }
203665
+ }
203666
+ }
203667
+ // 조건에 맞는 값을 찾지 못했을 경우 명시적으로 null 반환
203668
+ return null;
203669
+ };
203670
+
203646
203671
  this.#changedSource = changedSource;
203647
203672
 
203648
203673
  const tab = this.shadowRoot.querySelector('nx-tab');
@@ -203678,23 +203703,24 @@ class IdeDiffPopup extends HTMLElement
203678
203703
 
203679
203704
  console.log(changedSource);
203680
203705
 
203706
+
203681
203707
  tab.shadowRoot.querySelectorAll(".tab-button").forEach((el,index) => {
203682
203708
  console.log(el, index);
203683
203709
  switch (index) {
203684
203710
  case 0:
203685
- el.innerHTML = index;
203711
+ el.innerHTML = getTitle("mybatis");
203686
203712
  break;
203687
203713
  case 1:
203688
- el.innerHTML = index;
203714
+ el.innerHTML = getTitle("service");
203689
203715
  break;
203690
203716
  case 2:
203691
- el.innerHTML = index;
203717
+ el.innerHTML = getTitle("controller");
203692
203718
  break;
203693
203719
  case 3:
203694
- el.innerHTML = index;
203720
+ el.innerHTML = getTitle("javascript");
203695
203721
  break;
203696
203722
  case 4:
203697
- el.innerHTML = index;
203723
+ el.innerHTML = getTitle("javascript2");
203698
203724
  break;
203699
203725
  }
203700
203726
  });
@@ -91,6 +91,31 @@ class IdeDiffPopup extends HTMLElement
91
91
 
92
92
  popup = (changedSource) => {
93
93
 
94
+ const getTitle = (type, pathKey = "tobePath") => {
95
+ // changedSource가 유효한지 확인
96
+
97
+ console.log("---------", changedSource)
98
+ if (!changedSource) {
99
+ return null;
100
+ }
101
+
102
+ for (const item of changedSource) {
103
+
104
+ console.log(item);
105
+
106
+ // item이 해당 속성을 가지고 있고, 그 속성의 값이 존재하는지 확인
107
+ if (item.hasOwnProperty(type) && item[pathKey]) {
108
+ const arr = item[pathKey].split("/");
109
+ // 배열이 비어있지 않은지 확인하고 마지막 요소 반환
110
+ if (arr.length > 0) {
111
+ return arr.pop();
112
+ }
113
+ }
114
+ }
115
+ // 조건에 맞는 값을 찾지 못했을 경우 명시적으로 null 반환
116
+ return null;
117
+ };
118
+
94
119
  this.#changedSource = changedSource;
95
120
 
96
121
  const tab = this.shadowRoot.querySelector('nx-tab');
@@ -126,23 +151,24 @@ class IdeDiffPopup extends HTMLElement
126
151
 
127
152
  console.log(changedSource);
128
153
 
154
+
129
155
  tab.shadowRoot.querySelectorAll(".tab-button").forEach((el,index) => {
130
156
  console.log(el, index);
131
157
  switch (index) {
132
158
  case 0:
133
- el.innerHTML = index;
159
+ el.innerHTML = getTitle("mybatis");
134
160
  break;
135
161
  case 1:
136
- el.innerHTML = index;
162
+ el.innerHTML = getTitle("service");
137
163
  break;
138
164
  case 2:
139
- el.innerHTML = index;
165
+ el.innerHTML = getTitle("controller");
140
166
  break;
141
167
  case 3:
142
- el.innerHTML = index;
168
+ el.innerHTML = getTitle("javascript");
143
169
  break;
144
170
  case 4:
145
- el.innerHTML = index;
171
+ el.innerHTML = getTitle("javascript2");
146
172
  break;
147
173
  }
148
174
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.623.0",
4
+ "version": "0.625.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -91,6 +91,31 @@ class IdeDiffPopup extends HTMLElement
91
91
 
92
92
  popup = (changedSource) => {
93
93
 
94
+ const getTitle = (type, pathKey = "tobePath") => {
95
+ // changedSource가 유효한지 확인
96
+
97
+ console.log("---------", changedSource)
98
+ if (!changedSource) {
99
+ return null;
100
+ }
101
+
102
+ for (const item of changedSource) {
103
+
104
+ console.log(item);
105
+
106
+ // item이 해당 속성을 가지고 있고, 그 속성의 값이 존재하는지 확인
107
+ if (item.hasOwnProperty(type) && item[pathKey]) {
108
+ const arr = item[pathKey].split("/");
109
+ // 배열이 비어있지 않은지 확인하고 마지막 요소 반환
110
+ if (arr.length > 0) {
111
+ return arr.pop();
112
+ }
113
+ }
114
+ }
115
+ // 조건에 맞는 값을 찾지 못했을 경우 명시적으로 null 반환
116
+ return null;
117
+ };
118
+
94
119
  this.#changedSource = changedSource;
95
120
 
96
121
  const tab = this.shadowRoot.querySelector('nx-tab');
@@ -126,23 +151,24 @@ class IdeDiffPopup extends HTMLElement
126
151
 
127
152
  console.log(changedSource);
128
153
 
154
+
129
155
  tab.shadowRoot.querySelectorAll(".tab-button").forEach((el,index) => {
130
156
  console.log(el, index);
131
157
  switch (index) {
132
158
  case 0:
133
- el.innerHTML = index;
159
+ el.innerHTML = getTitle("mybatis");
134
160
  break;
135
161
  case 1:
136
- el.innerHTML = index;
162
+ el.innerHTML = getTitle("service");
137
163
  break;
138
164
  case 2:
139
- el.innerHTML = index;
165
+ el.innerHTML = getTitle("controller");
140
166
  break;
141
167
  case 3:
142
- el.innerHTML = index;
168
+ el.innerHTML = getTitle("javascript");
143
169
  break;
144
170
  case 4:
145
- el.innerHTML = index;
171
+ el.innerHTML = getTitle("javascript2");
146
172
  break;
147
173
  }
148
174
  });