ninegrid2 6.648.0 → 6.650.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.
@@ -193130,16 +193130,35 @@ class ideAssi extends HTMLElement
193130
193130
 
193131
193131
 
193132
193132
  #getMenuInfo = (question) => {
193133
+ let arr = [];
193133
193134
 
193135
+ ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
193136
+ arr.push({
193137
+ //menuId: elem.getAttribute("menu-id"),
193138
+ url: elem.getAttribute("url"),
193139
+ title: elem.getAttribute("title"),
193140
+ });
193141
+ });
193134
193142
 
193143
+ return arr;
193135
193144
  };
193136
193145
 
193137
- #getTableInfo = (question) => {
193138
- ninegrid.querySelectorAll("nx-side-menu-item").forEach(elem => {
193139
- console.log(elem);
193146
+ #getTableInfo = async (question) => {
193147
+ const response = await fetch("/api/meta/tables", {
193148
+ method: "POST",
193149
+ headers: { "Content-Type": "application/json" },
193150
+ body: JSON.stringify({
193151
+ //filename: "HelloWorld.java",
193152
+ //filename: "Test.jsx",
193153
+ //content: js
193154
+ })
193140
193155
  });
193141
193156
 
193157
+ console.log(response);
193158
+
193142
193159
  };
193160
+
193161
+
193143
193162
  /**
193144
193163
  * 1. 소스 명칭 package 예) tmpl.population
193145
193164
  * 2. 소스가 없으면 소스 생성
@@ -193148,7 +193167,7 @@ class ideAssi extends HTMLElement
193148
193167
  #generateSource = async (question) => {
193149
193168
 
193150
193169
  this.#getMenuInfo();
193151
- this.#getTableInfo();
193170
+ await this.#getTableInfo();
193152
193171
  };
193153
193172
 
193154
193173
  #keydownHandler = async (e) => {
@@ -193126,16 +193126,35 @@ class ideAssi extends HTMLElement
193126
193126
 
193127
193127
 
193128
193128
  #getMenuInfo = (question) => {
193129
+ let arr = [];
193129
193130
 
193131
+ ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
193132
+ arr.push({
193133
+ //menuId: elem.getAttribute("menu-id"),
193134
+ url: elem.getAttribute("url"),
193135
+ title: elem.getAttribute("title"),
193136
+ });
193137
+ });
193130
193138
 
193139
+ return arr;
193131
193140
  };
193132
193141
 
193133
- #getTableInfo = (question) => {
193134
- ninegrid.querySelectorAll("nx-side-menu-item").forEach(elem => {
193135
- console.log(elem);
193142
+ #getTableInfo = async (question) => {
193143
+ const response = await fetch("/api/meta/tables", {
193144
+ method: "POST",
193145
+ headers: { "Content-Type": "application/json" },
193146
+ body: JSON.stringify({
193147
+ //filename: "HelloWorld.java",
193148
+ //filename: "Test.jsx",
193149
+ //content: js
193150
+ })
193136
193151
  });
193137
193152
 
193153
+ console.log(response);
193154
+
193138
193155
  };
193156
+
193157
+
193139
193158
  /**
193140
193159
  * 1. 소스 명칭 package 예) tmpl.population
193141
193160
  * 2. 소스가 없으면 소스 생성
@@ -193144,7 +193163,7 @@ class ideAssi extends HTMLElement
193144
193163
  #generateSource = async (question) => {
193145
193164
 
193146
193165
  this.#getMenuInfo();
193147
- this.#getTableInfo();
193166
+ await this.#getTableInfo();
193148
193167
  };
193149
193168
 
193150
193169
  #keydownHandler = async (e) => {
@@ -66,16 +66,35 @@ class ideAssi extends HTMLElement
66
66
 
67
67
 
68
68
  #getMenuInfo = (question) => {
69
+ let arr = [];
70
+
71
+ ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
72
+ arr.push({
73
+ //menuId: elem.getAttribute("menu-id"),
74
+ url: elem.getAttribute("url"),
75
+ title: elem.getAttribute("title"),
76
+ })
77
+ });
69
78
 
70
-
79
+ return arr;
71
80
  };
72
81
 
73
- #getTableInfo = (question) => {
74
- ninegrid.querySelectorAll("nx-side-menu-item").forEach(elem => {
75
- console.log(elem);
82
+ #getTableInfo = async (question) => {
83
+ const response = await fetch("/api/meta/tables", {
84
+ method: "POST",
85
+ headers: { "Content-Type": "application/json" },
86
+ body: JSON.stringify({
87
+ //filename: "HelloWorld.java",
88
+ //filename: "Test.jsx",
89
+ //content: js
90
+ })
76
91
  });
77
92
 
93
+ console.log(response);
94
+
78
95
  };
96
+
97
+
79
98
  /**
80
99
  * 1. 소스 명칭 package 예) tmpl.population
81
100
  * 2. 소스가 없으면 소스 생성
@@ -84,7 +103,7 @@ class ideAssi extends HTMLElement
84
103
  #generateSource = async (question) => {
85
104
 
86
105
  const menuInfo = this.#getMenuInfo();
87
- const tableInfo = this.#getTableInfo();
106
+ const tableInfo = await this.#getTableInfo();
88
107
  };
89
108
 
90
109
  #keydownHandler = async (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.648.0",
4
+ "version": "6.650.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -66,16 +66,35 @@ class ideAssi extends HTMLElement
66
66
 
67
67
 
68
68
  #getMenuInfo = (question) => {
69
+ let arr = [];
70
+
71
+ ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
72
+ arr.push({
73
+ //menuId: elem.getAttribute("menu-id"),
74
+ url: elem.getAttribute("url"),
75
+ title: elem.getAttribute("title"),
76
+ })
77
+ });
69
78
 
70
-
79
+ return arr;
71
80
  };
72
81
 
73
- #getTableInfo = (question) => {
74
- ninegrid.querySelectorAll("nx-side-menu-item").forEach(elem => {
75
- console.log(elem);
82
+ #getTableInfo = async (question) => {
83
+ const response = await fetch("/api/meta/tables", {
84
+ method: "POST",
85
+ headers: { "Content-Type": "application/json" },
86
+ body: JSON.stringify({
87
+ //filename: "HelloWorld.java",
88
+ //filename: "Test.jsx",
89
+ //content: js
90
+ })
76
91
  });
77
92
 
93
+ console.log(response);
94
+
78
95
  };
96
+
97
+
79
98
  /**
80
99
  * 1. 소스 명칭 package 예) tmpl.population
81
100
  * 2. 소스가 없으면 소스 생성
@@ -84,7 +103,7 @@ class ideAssi extends HTMLElement
84
103
  #generateSource = async (question) => {
85
104
 
86
105
  const menuInfo = this.#getMenuInfo();
87
- const tableInfo = this.#getTableInfo();
106
+ const tableInfo = await this.#getTableInfo();
88
107
  };
89
108
 
90
109
  #keydownHandler = async (e) => {