Skip to content

Commit e1e1fb7

Browse files
committed
added difference color for input, minor bug fixes
1 parent 57bd2bd commit e1e1fb7

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "acode-plugin-python",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Acode plugin to run python code",
55
"main": "dist/main.js",
66
"repository": "https://github.com/deadlyjack/acode-plugin-python.git",

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "acode.plugin.python",
33
"name": "Python",
44
"main": "dist/main.js",
5-
"version": "1.0.3",
5+
"version": "1.0.4",
66
"readme": "README.md",
77
"icon": "icon.png",
88
"type": "pro",

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ class Python {
145145
this.$runBtn.remove();
146146
}
147147

148-
if (file.name.endsWith('.py')) {
149-
const $header = tag.get('header');
148+
if (file?.name.endsWith('.py')) {
149+
const $header = root.get('header');
150150
$header.get('.icon.play_arrow')?.remove();
151151
$header.insertBefore(this.$runBtn, $header.lastChild);
152152
}

src/style.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
left: 0;
2525
}
2626

27-
&.input::before{
28-
content: '<<';
27+
&.input{
28+
color: lightgreen;
29+
&::before{
30+
content: '<<';
31+
}
2932
}
3033

3134
&.error{

0 commit comments

Comments
 (0)