Skip to content

Commit

Permalink
Anders feedback and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartoxian committed Dec 5, 2023
1 parent 07c1b7d commit 2042fbb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion enclave-manager/web/src/components/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { forwardRef, useCallback, useEffect, useImperativeHandle, useState } fro
import YAML from "yaml";
import { assertDefined, isDefined, stringifyError } from "../utils";

const MONACO_READ_ONLY_CHANGE_EVENT_ID = 89;

type CodeEditorProps = {
text: string;
fileName?: string;
Expand Down Expand Up @@ -84,7 +86,7 @@ export const CodeEditor = forwardRef<CodeEditorImperativeAttributes, CodeEditorP
if (isReadOnly) {
return new Promise((resolve) => {
const listenerDisposer = editor.onDidChangeConfiguration((event) => {
if (event.hasChanged(89 /* ID of the readonly option */)) {
if (event.hasChanged(MONACO_READ_ONLY_CHANGE_EVENT_ID)) {
doFormat().then(() => {
listenerDisposer.dispose();
editor.updateOptions({
Expand Down
6 changes: 3 additions & 3 deletions engine/server/webapp/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "./static/js/main.03f1511f.js",
"main.js": "./static/js/main.9d538254.js",
"index.html": "./index.html",
"main.03f1511f.js.map": "./static/js/main.03f1511f.js.map"
"main.9d538254.js.map": "./static/js/main.9d538254.js.map"
},
"entrypoints": [
"static/js/main.03f1511f.js"
"static/js/main.9d538254.js"
]
}
2 changes: 1 addition & 1 deletion engine/server/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Kurtosis Enclave Manager"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.03f1511f.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Kurtosis Enclave Manager"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.9d538254.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
3 changes: 0 additions & 3 deletions engine/server/webapp/static/js/main.03f1511f.js

This file was deleted.

3 changes: 3 additions & 0 deletions engine/server/webapp/static/js/main.9d538254.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 2042fbb

Please sign in to comment.