Skip to content

Commit

Permalink
CodeMirror replaced with my own code editor (#134)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Glasmachers <[email protected]>
  • Loading branch information
TGlas and Tobias Glasmachers committed Jun 7, 2024
1 parent 2cabd36 commit eb686ea
Show file tree
Hide file tree
Showing 28 changed files with 4,162 additions and 2,934 deletions.
1,617 changes: 80 additions & 1,537 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tscript",
"version": "1.1.1",
"version": "1.2.0",
"description": "",
"main": "tscript.js",
"scripts": {
Expand All @@ -13,10 +13,8 @@
"gen-icons": "npx ts-node ./src/ide/gen-icons.ts"
},
"devDependencies": {
"@codemirror/buildhelper": "^1.0.0",
"@interactjs/types": "^1.10.2",
"@types/chai": "^4.2.14",
"@types/codemirror": "^5.60.15",
"@types/lodash": "^4.14.167",
"@types/mocha": "^9.0.0",
"chai": "^4.2.0",
Expand All @@ -35,7 +33,6 @@
"webpack-dev-server": "^4.1.1"
},
"dependencies": {
"codemirror": "^6.0.1",
"interactjs": "^1.10.2"
}
}
244 changes: 0 additions & 244 deletions src/ide/codemirror-tscriptmode.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/ide/css-dark/ide.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@
box-shadow: inset 0px -1px 0px #292929;
}

.dark-theme .ide-sourcecode {
/* overridden in file codemirror.css, class .CodeMirror */
background: #222;
color: #fff;
}

.dark-theme .ide-tab-sourcecode {
/* overridden in file codemirror.css, class .CodeMirror */
background: #222;
color: #fff;
}

.dark-theme .ide-stackview {
background: #222;
color: #fff;
Expand Down Expand Up @@ -76,28 +64,6 @@
color: #26f;
}

.dark-theme .ide-integer {
color: #4fe;
}
.dark-theme .ide-real {
color: #4f4;
}
.dark-theme .ide-string {
color: #f44;
}
.dark-theme .ide-collection {
color: #fa4;
}
.dark-theme .ide-keyword {
color: #4af;
}
.dark-theme .ide-builtin {
color: #c4f;
}
.dark-theme .ide-userclass {
color: #fff;
}

.dark-theme .tgui-label.ide-state-unchecked {
background-color: #970;
color: #fe8;
Expand Down
41 changes: 2 additions & 39 deletions src/ide/css/ide.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,9 @@ button {
float: left;
}

.ide-sourcecode {
/* overridden in file codemirror.css, class .CodeMirror */
resize: none;
width: 60%;
height: calc(100% - 200px);
background: #fff;
color: #000;
overflow: scroll;
}

.ide-tab-sourcecode {
/* overridden in file codemirror.css, class .CodeMirror */
resize: none;
.tgui .editor {
width: 100%;
height: calc(100% - 200px);
background: #fff;
color: #000;
overflow: scroll;
height: 100%;
}

.ide-stackview {
Expand Down Expand Up @@ -183,28 +168,6 @@ button {
color: #00f;
}

.ide-integer {
color: #088;
}
.ide-real {
color: #480;
}
.ide-string {
color: #c00;
}
.ide-collection {
color: #c60;
}
.ide-keyword {
color: #00c;
}
.ide-builtin {
color: #808;
}
.ide-userclass {
color: #000;
}

.tgui-tree-cell-toggle {
transform: translate(0.5em, 0) scale(1.5);
}
Expand Down
Loading

0 comments on commit eb686ea

Please sign in to comment.