Skip to content

Commit 6e240cf

Browse files
committed
fix: dword: lint
1 parent 2448fc0 commit 6e240cf

4 files changed

Lines changed: 40 additions & 30 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ jobs:
88
strategy:
99
matrix:
1010
node-version:
11-
- 16.x
1211
- 18.x
1312
- 20.x
13+
- 21.x
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
16+
- uses: oven-sh/setup-bun@v1
17+
with:
18+
bun-version: latest
1619
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
1821
with:
1922
node-version: ${{ matrix.node-version }}
2023
- name: Install Redrun
21-
run: npm i redrun -g
24+
run: bun i redrun -g --no-save
2225
- name: Install
23-
run: npm install
26+
run: bun i --no-save
2427
- name: Bootstrap
2528
run: redrun bootstrap
2629
- name: Lint

assets/style.css

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
@font-face {
2-
font-family : 'Droid Sans Mono';
3-
src : url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot);
4-
src :
2+
font-family: 'Droid Sans Mono';
3+
src: url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot);
4+
src:
55
local('Droid Sans Mono'),
66
local('DroidSansMono'),
77
url(/font/DroidSansMono.eot) format('embedded-opentype'),
8-
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot?#iefix) format('embedded-opentype'),
9-
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot) format('embedded-opentype'),
10-
url(/font/DroidSansMono.woff2) format('woff2'),
8+
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot?#iefix)
9+
format('embedded-opentype'),
10+
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot)
11+
format('embedded-opentype'),
12+
url(/font/DroidSansMono.woff2) format('woff2'),
1113
url(/font/DroidSansMono.woff) format('woff'),
12-
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff) format('woff'),
13-
local('Consolas');
14-
font-style : normal;
15-
font-weight : 400;
14+
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff)
15+
format('woff'),
16+
local('Consolas');
17+
font-style: normal;
18+
font-weight: 400;
1619
}
1720

18-
html, body, .edit {
19-
width : 100%;
20-
height : 100%;
21-
margin : 0;
21+
html,
22+
body,
23+
.edit {
24+
width: 100%;
25+
height: 100%;
26+
margin: 0;
2227
}
2328

2429
.edit {
25-
position : absolute;
30+
position: absolute;
2631
inset: 0;
2732
font-family: 'Droid Sans Mono';
2833
font-size: 16px;

client/dword.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ Dword.prototype.evaluate = function() {
206206
msg = exec.try(Function(value));
207207
}
208208

209-
msg && smalltalk.alert(_TITLE, msg).then(focus);
209+
msg && smalltalk
210+
.alert(_TITLE, msg)
211+
.then(focus);
210212

211213
return this;
212214
};

css/dword.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.dword-msg {
2-
z-index : 2;
3-
background-color : #7285b7;
4-
color : #d1f1a9;
5-
position : fixed;
6-
left : 40%;
7-
top : 25px;
8-
padding : 5px;
9-
opacity : 0.9;
10-
transition : ease 0.5s;
2+
z-index: 2;
3+
background-color: #7285b7;
4+
color: #d1f1a9;
5+
position: fixed;
6+
left: 40%;
7+
top: 25px;
8+
padding: 5px;
9+
opacity: 0.9;
10+
transition: ease 0.5s;
1111
}
1212

1313
.CodeMirror {

0 commit comments

Comments
 (0)