monaco editor 사용 변경

This commit is contained in:
현성필
2024-01-17 18:10:23 +09:00
parent 0da036798e
commit 9d2b8c3901
3 changed files with 10 additions and 21 deletions
-4
View File
@@ -1938,10 +1938,6 @@ footer div.foot_info span {
overflow: hidden; overflow: hidden;
} }
.form-floating {
flex-grow: 0; /* This ensures that these elements do not grow and only take as much space as they need */
}
.form-floating.editableInput { .form-floating.editableInput {
flex-grow: 1; /* This allows the editableInput to grow and take up remaining space */ flex-grow: 1; /* This allows the editableInput to grow and take up remaining space */
display: flex; /* This will align the contenteditable div and the hidden input inside it */ display: flex; /* This will align the contenteditable div and the hidden input inside it */
@@ -4,6 +4,7 @@
<body> <body>
<section layout:fragment="contentFragment"> <section layout:fragment="contentFragment">
<script th:src="@{/plugins/vs/loader.js}"></script>
<script> <script>
require.config({paths: {'vs': '/plugins/vs'}}); require.config({paths: {'vs': '/plugins/vs'}});
</script> </script>
@@ -4,9 +4,9 @@
<body> <body>
<section layout:fragment="contentFragment"> <section layout:fragment="contentFragment">
<script> <!-- <script>-->
require.config({paths: {'vs': '/plugins/vs'}}); <!-- require.config({paths: {'vs': '/plugins/vs'}});-->
</script> <!-- </script>-->
<div class="container-fluid mt-2"> <div class="container-fluid mt-2">
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"> <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}">
<div class="card"> <div class="card">
@@ -31,20 +31,16 @@
</body> </body>
<th:block layout:fragment="contentScript"> <th:block layout:fragment="contentScript">
<script th:src="@{/js/APIClient.js}"></script> <script th:src="@{/plugins/apitestmanager/app.bundle.js}" defer></script>
<script th:src="@{/js/APITester.js}"></script>
<script th:src="@{/js/LayoutUtil.js}"></script>
<script th:src="@{/js/APIScenarioExecutor.js}"></script>
<script th:src="@{/js/APIScenario.js}"></script>
<script> <script>
$(document).ajaxError(function(event, jqxhr, settings, exception) { $(document).ajaxError(function (event, jqxhr, settings, exception) {
if (jqxhr.status === 401) { if (jqxhr.status === 401) {
window.location.href = '/'; window.location.href = '/';
} }
}); });
$(function () {
//get servers from html convert to array $(document).ready(function () {
const servers = []; let servers = [];
$('#servers li').each(function () { $('#servers li').each(function () {
servers.push({ servers.push({
id: $(this).data('id'), id: $(this).data('id'),
@@ -53,11 +49,7 @@
}); });
}); });
const apiTester = new APITester(); const apiTester = new APITestManager(servers);
apiTester.init(servers);
const apiScenario = new APIScenario(apiTester);
apiScenario.init();
}); });
</script> </script>
</th:block> </th:block>