ninegrid2 6.643.0 → 6.645.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/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/ninegrid.iml +9 -0
- package/dist/bundle.cjs.js +47 -0
- package/dist/bundle.esm.js +47 -0
- package/dist/ide-assi/ideAssi.js +41 -1
- package/package.json +1 -1
- package/src/ide-assi/ideAssi.js +41 -1
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
</project>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -193152,6 +193152,53 @@ class ideAssi extends HTMLElement
|
|
|
193152
193152
|
elAiChat.add("me", question);
|
|
193153
193153
|
elAiChat.add("ing", question);
|
|
193154
193154
|
|
|
193155
|
+
try {
|
|
193156
|
+
const code = `
|
|
193157
|
+
package tmpl.generated;
|
|
193158
|
+
|
|
193159
|
+
public class HelloWorld {
|
|
193160
|
+
public String sayHello() {
|
|
193161
|
+
return "Hello from generated class!";
|
|
193162
|
+
}
|
|
193163
|
+
}
|
|
193164
|
+
`;
|
|
193165
|
+
|
|
193166
|
+
const js = `
|
|
193167
|
+
const Home = () => {
|
|
193168
|
+
const wrapStyle = {
|
|
193169
|
+
backgroundColor: "white",
|
|
193170
|
+
color: "black",
|
|
193171
|
+
padding: "0px",
|
|
193172
|
+
textAlign: "center",
|
|
193173
|
+
fontSize: "18px",
|
|
193174
|
+
height: "100%",
|
|
193175
|
+
};
|
|
193176
|
+
|
|
193177
|
+
return (
|
|
193178
|
+
<div style={wrapStyle}>
|
|
193179
|
+
11111
|
|
193180
|
+
</div>
|
|
193181
|
+
);
|
|
193182
|
+
};
|
|
193183
|
+
|
|
193184
|
+
export default Home;
|
|
193185
|
+
`;
|
|
193186
|
+
|
|
193187
|
+
|
|
193188
|
+
await fetch("/api/files/java", {
|
|
193189
|
+
method: "POST",
|
|
193190
|
+
headers: { "Content-Type": "application/json" },
|
|
193191
|
+
body: JSON.stringify({
|
|
193192
|
+
//filename: "HelloWorld.java",
|
|
193193
|
+
filename: "Test.jsx",
|
|
193194
|
+
content: code
|
|
193195
|
+
})
|
|
193196
|
+
});
|
|
193197
|
+
} catch (error) {
|
|
193198
|
+
console.error(error);
|
|
193199
|
+
//elAiChat.add("ai", error);
|
|
193200
|
+
}
|
|
193201
|
+
|
|
193155
193202
|
|
|
193156
193203
|
this.#ing = false;
|
|
193157
193204
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193148,6 +193148,53 @@ class ideAssi extends HTMLElement
|
|
|
193148
193148
|
elAiChat.add("me", question);
|
|
193149
193149
|
elAiChat.add("ing", question);
|
|
193150
193150
|
|
|
193151
|
+
try {
|
|
193152
|
+
const code = `
|
|
193153
|
+
package tmpl.generated;
|
|
193154
|
+
|
|
193155
|
+
public class HelloWorld {
|
|
193156
|
+
public String sayHello() {
|
|
193157
|
+
return "Hello from generated class!";
|
|
193158
|
+
}
|
|
193159
|
+
}
|
|
193160
|
+
`;
|
|
193161
|
+
|
|
193162
|
+
const js = `
|
|
193163
|
+
const Home = () => {
|
|
193164
|
+
const wrapStyle = {
|
|
193165
|
+
backgroundColor: "white",
|
|
193166
|
+
color: "black",
|
|
193167
|
+
padding: "0px",
|
|
193168
|
+
textAlign: "center",
|
|
193169
|
+
fontSize: "18px",
|
|
193170
|
+
height: "100%",
|
|
193171
|
+
};
|
|
193172
|
+
|
|
193173
|
+
return (
|
|
193174
|
+
<div style={wrapStyle}>
|
|
193175
|
+
11111
|
|
193176
|
+
</div>
|
|
193177
|
+
);
|
|
193178
|
+
};
|
|
193179
|
+
|
|
193180
|
+
export default Home;
|
|
193181
|
+
`;
|
|
193182
|
+
|
|
193183
|
+
|
|
193184
|
+
await fetch("/api/files/java", {
|
|
193185
|
+
method: "POST",
|
|
193186
|
+
headers: { "Content-Type": "application/json" },
|
|
193187
|
+
body: JSON.stringify({
|
|
193188
|
+
//filename: "HelloWorld.java",
|
|
193189
|
+
filename: "Test.jsx",
|
|
193190
|
+
content: code
|
|
193191
|
+
})
|
|
193192
|
+
});
|
|
193193
|
+
} catch (error) {
|
|
193194
|
+
console.error(error);
|
|
193195
|
+
//elAiChat.add("ai", error);
|
|
193196
|
+
}
|
|
193197
|
+
|
|
193151
193198
|
|
|
193152
193199
|
this.#ing = false;
|
|
193153
193200
|
}
|
package/dist/ide-assi/ideAssi.js
CHANGED
|
@@ -89,7 +89,47 @@ class ideAssi extends HTMLElement
|
|
|
89
89
|
elAiChat.add("ing", question);
|
|
90
90
|
|
|
91
91
|
try {
|
|
92
|
-
|
|
92
|
+
const code = `
|
|
93
|
+
package tmpl.generated;
|
|
94
|
+
|
|
95
|
+
public class HelloWorld {
|
|
96
|
+
public String sayHello() {
|
|
97
|
+
return "Hello from generated class!";
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
const js = `
|
|
103
|
+
const Home = () => {
|
|
104
|
+
const wrapStyle = {
|
|
105
|
+
backgroundColor: "white",
|
|
106
|
+
color: "black",
|
|
107
|
+
padding: "0px",
|
|
108
|
+
textAlign: "center",
|
|
109
|
+
fontSize: "18px",
|
|
110
|
+
height: "100%",
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<div style={wrapStyle}>
|
|
115
|
+
11111
|
|
116
|
+
</div>
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export default Home;
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
await fetch("/api/files/java", {
|
|
125
|
+
method: "POST",
|
|
126
|
+
headers: { "Content-Type": "application/json" },
|
|
127
|
+
body: JSON.stringify({
|
|
128
|
+
//filename: "HelloWorld.java",
|
|
129
|
+
filename: "Test.jsx",
|
|
130
|
+
content: code
|
|
131
|
+
})
|
|
132
|
+
});
|
|
93
133
|
} catch (error) {
|
|
94
134
|
console.error(error);
|
|
95
135
|
//elAiChat.add("ai", error);
|
package/package.json
CHANGED
package/src/ide-assi/ideAssi.js
CHANGED
|
@@ -89,7 +89,47 @@ class ideAssi extends HTMLElement
|
|
|
89
89
|
elAiChat.add("ing", question);
|
|
90
90
|
|
|
91
91
|
try {
|
|
92
|
-
|
|
92
|
+
const code = `
|
|
93
|
+
package tmpl.generated;
|
|
94
|
+
|
|
95
|
+
public class HelloWorld {
|
|
96
|
+
public String sayHello() {
|
|
97
|
+
return "Hello from generated class!";
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
const js = `
|
|
103
|
+
const Home = () => {
|
|
104
|
+
const wrapStyle = {
|
|
105
|
+
backgroundColor: "white",
|
|
106
|
+
color: "black",
|
|
107
|
+
padding: "0px",
|
|
108
|
+
textAlign: "center",
|
|
109
|
+
fontSize: "18px",
|
|
110
|
+
height: "100%",
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<div style={wrapStyle}>
|
|
115
|
+
11111
|
|
116
|
+
</div>
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export default Home;
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
await fetch("/api/files/java", {
|
|
125
|
+
method: "POST",
|
|
126
|
+
headers: { "Content-Type": "application/json" },
|
|
127
|
+
body: JSON.stringify({
|
|
128
|
+
//filename: "HelloWorld.java",
|
|
129
|
+
filename: "Test.jsx",
|
|
130
|
+
content: code
|
|
131
|
+
})
|
|
132
|
+
});
|
|
93
133
|
} catch (error) {
|
|
94
134
|
console.error(error);
|
|
95
135
|
//elAiChat.add("ai", error);
|