Skip to content

Commit

Permalink
feat: migrate from Monaco to CodeMirror
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 committed Oct 9, 2023
1 parent e12182d commit 8965ab5
Show file tree
Hide file tree
Showing 37 changed files with 230 additions and 11,355 deletions.
3 changes: 0 additions & 3 deletions packages/dashboard-backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { registerSwagger } from './plugins/swagger';
import { registerWebSocket } from './plugins/webSocket';
import { registerClusterConfigRoute } from './routes/api/clusterConfig';
import { registerClusterInfoRoute } from './routes/api/clusterInfo';
import { registerDevfileSchemaRoute } from './routes/api/devfileSchema';
import { registerDevworkspaceResourcesRoute } from './routes/api/devworkspaceResources';
import { registerDevworkspacesRoutes } from './routes/api/devworkspaces';
import { registerDevWorkspaceTemplates } from './routes/api/devworkspaceTemplates';
Expand Down Expand Up @@ -107,8 +106,6 @@ export default async function buildApp(server: FastifyInstance): Promise<void> {

registerYamlResolverRoute(server);

registerDevfileSchemaRoute(server);

registerDevworkspaceResourcesRoute(server);

registerPersonalAccessTokenRoutes(server);
Expand Down
2,852 changes: 0 additions & 2,852 deletions packages/dashboard-backend/src/devfileSchemas/2.0.0/devfile.json

This file was deleted.

1,430 changes: 0 additions & 1,430 deletions packages/dashboard-backend/src/devfileSchemas/2.1.0/devfile.json

This file was deleted.

2,037 changes: 0 additions & 2,037 deletions packages/dashboard-backend/src/devfileSchemas/2.2.0/devfile.json

This file was deleted.

2,037 changes: 0 additions & 2,037 deletions packages/dashboard-backend/src/devfileSchemas/2.2.1-alpha/devfile.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/dashboard-backend/src/plugins/staticServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function registerStaticServer(publicFolder: string, server: FastifyInstan
'/dashboard/',
'/dashboard/index.html',
'/dashboard/service-worker.js',
'/dashboard/editor.worker.js',
'/dashboard/assets/branding/product.json',
];
server.addHook(
Expand Down
52 changes: 0 additions & 52 deletions packages/dashboard-backend/src/routes/api/devfileSchema.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/dashboard-frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = {
moduleNameMapper: {
'\\.(css|less|sass|scss|styl)$': 'identity-obj-proxy',
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__mocks__/fileMock.js',
'monaco-editor-core': 'monaco-editor-core/esm/vs/editor/editor.main',
'vscode-languageserver-protocol/lib/utils/is':
'vscode-languageserver-protocol/lib/common/utils/is',
'vscode-languageserver-protocol/lib/main': 'vscode-languageserver-protocol/lib/node/main',
Expand Down
7 changes: 2 additions & 5 deletions packages/dashboard-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@patternfly/react-table": "^4.113.3",
"axios": "^0.21.4",
"buffer": "^6.0.3",
"codemirror": "^5.65.15",
"connected-react-router": "^6.9.3",
"crypto-browserify": "^3.12.0",
"date-fns": "^2.30.0",
Expand All @@ -49,9 +50,6 @@
"inversify-react": "^1.1.0",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"monaco-editor-core": "^0.20.0",
"monaco-languageclient": "^0.13.0",
"monaco-languages": "^1.10.0",
"process": "^0.11.10",
"qs": "^6.11.2",
"react": "^16.14.0",
Expand All @@ -70,8 +68,7 @@
"reselect": "^4.1.8",
"sanitize-html": "^2.11.0",
"stream-browserify": "^3.0.0",
"vscode-languageserver-protocol": "^3.16.0",
"yaml-language-server": "^0.13.0"
"vscode-languageserver-protocol": "^3.16.0"
},
"devDependencies": {
"@devfile/api": "^2.2.1-alpha-1667236163",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8965ab5

Please sign in to comment.