Nano zoom fix #13
This commit is contained in:
Generated
+45
-28
@@ -4,7 +4,7 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="8497df64-d86b-4c98-ac58-c157d9d3fb1e" name="Changes" comment="Nano zoom fix #11">
|
<list default="true" id="8497df64-d86b-4c98-ac58-c157d9d3fb1e" name="Changes" comment="Nano zoom fix #12">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/frontend/src/App.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/frontend/src/App.jsx" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/frontend/src/App.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/frontend/src/App.jsx" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
@@ -41,30 +41,31 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">{
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"RunOnceActivity.git.unshallow": "true",
|
"RunOnceActivity.git.unshallow": "true",
|
||||||
"Shell Script.Node Server.js Start.executor": "Run",
|
"Shell Script.Node Server.js Start.executor": "Run",
|
||||||
"Shell Script.Run backend and frontend.executor": "Run",
|
"Shell Script.Run backend and frontend.executor": "Run",
|
||||||
"Shell Script.run_backend_frontend.executor": "Run",
|
"Shell Script.run_backend_frontend.executor": "Run",
|
||||||
"git-widget-placeholder": "alpha-1.0",
|
"git-widget-placeholder": "alpha-1.0",
|
||||||
"ignore.virus.scanning.warn.message": "true",
|
"ignore.virus.scanning.warn.message": "true",
|
||||||
"last_opened_file_path": "D:/Programming Projects/SSH-Project-JB",
|
"last_opened_file_path": "D:/Programming Projects/SSH-Project-JB",
|
||||||
"node.js.detected.package.eslint": "true",
|
"node.js.detected.package.eslint": "true",
|
||||||
"node.js.detected.package.tslint": "true",
|
"node.js.detected.package.tslint": "true",
|
||||||
"node.js.selected.package.eslint": "(autodetect)",
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
"node.js.selected.package.tslint": "(autodetect)",
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
"nodejs_package_manager_path": "npm",
|
"nodejs_package_manager_path": "npm",
|
||||||
"npm.run_start.executor": "Run",
|
"npm.run_start.executor": "Run",
|
||||||
"npm.run_start_frontend.executor": "Run",
|
"npm.run_start_frontend.executor": "Run",
|
||||||
"npm.run_start_node_backend.executor": "Run",
|
"npm.run_start_node_backend.executor": "Run",
|
||||||
"npm.run_start_vite.executor": "Run",
|
"npm.run_start_vite.executor": "Run",
|
||||||
"npm.start.executor": "Run",
|
"npm.start.executor": "Run",
|
||||||
"vue.rearranger.settings.migration": "true"
|
"settings.editor.selected.configurable": "ml.llm.LLMConfigurable",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
}
|
}
|
||||||
}</component>
|
}]]></component>
|
||||||
<component name="RunManager" selected="Shell Script.run_backend_frontend">
|
<component name="RunManager" selected="Shell Script.run_backend_frontend">
|
||||||
<configuration name="run_backend_frontend" type="ShConfigurationType">
|
<configuration name="run_backend_frontend" type="ShConfigurationType">
|
||||||
<option name="SCRIPT_TEXT" value="Start-Process "powershell" -ArgumentList "-NoProfile", "-Command npm run start-vite"; Start-Process "powershell" -ArgumentList "-NoProfile", "-Command npm run start-server" " />
|
<option name="SCRIPT_TEXT" value="Start-Process "powershell" -ArgumentList "-NoProfile", "-Command npm run start-vite"; Start-Process "powershell" -ArgumentList "-NoProfile", "-Command npm run start-server" " />
|
||||||
@@ -112,7 +113,7 @@
|
|||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1733439468142</updated>
|
<updated>1733439468142</updated>
|
||||||
<workItem from="1733439479708" duration="5489000" />
|
<workItem from="1733439479708" duration="5489000" />
|
||||||
<workItem from="1733448523969" duration="687000" />
|
<workItem from="1733448523969" duration="1201000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="Nano zoom fix #11">
|
<task id="LOCAL-00001" summary="Nano zoom fix #11">
|
||||||
<option name="closed" value="true" />
|
<option name="closed" value="true" />
|
||||||
@@ -130,15 +131,31 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1733448864234</updated>
|
<updated>1733448864234</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="3" />
|
<task id="LOCAL-00003" summary="Nano zoom fix #11">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1733449234908</created>
|
||||||
|
<option name="number" value="00003" />
|
||||||
|
<option name="presentableId" value="LOCAL-00003" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1733449234908</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00004" summary="Nano zoom fix #12">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1733449331913</created>
|
||||||
|
<option name="number" value="00004" />
|
||||||
|
<option name="presentableId" value="LOCAL-00004" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1733449331913</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="5" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
<option name="version" value="3" />
|
<option name="version" value="3" />
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="Nano zoom fix #12" />
|
|
||||||
<MESSAGE value="Nano zoom fix #11" />
|
<MESSAGE value="Nano zoom fix #11" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Nano zoom fix #11" />
|
<MESSAGE value="Nano zoom fix #12" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Nano zoom fix #12" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -100,6 +100,11 @@ const App = () => {
|
|||||||
socket.current.onmessage = (event) => {
|
socket.current.onmessage = (event) => {
|
||||||
console.log('Received message:', event.data);
|
console.log('Received message:', event.data);
|
||||||
terminal.current.write(event.data);
|
terminal.current.write(event.data);
|
||||||
|
|
||||||
|
const parsedData = JSON.parse(event.data);
|
||||||
|
if (parsedData.type === 'process_closed') {
|
||||||
|
notifyServerOfResize();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
socket.current.onerror = (error) => {
|
socket.current.onerror = (error) => {
|
||||||
@@ -114,6 +119,21 @@ const App = () => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const notifyServerOfResize = () => {
|
||||||
|
if (socket.current && socket.current.readyState === WebSocket.OPEN) {
|
||||||
|
const { rows, cols } = terminal.current;
|
||||||
|
socket.current.send(
|
||||||
|
JSON.stringify({
|
||||||
|
type: 'resize',
|
||||||
|
rows,
|
||||||
|
cols,
|
||||||
|
height: terminalRef.current.offsetHeight,
|
||||||
|
width: terminalRef.current.offsetWidth,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const handleInputChange = (event, setState) => {
|
const handleInputChange = (event, setState) => {
|
||||||
setState(event.target.value);
|
setState(event.target.value);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user