Skip to content

Commit 337da0b

Browse files
committed
Run prettier
1 parent 6430bac commit 337da0b

File tree

17 files changed

+444
-451
lines changed

17 files changed

+444
-451
lines changed

.github/workflows/docker.yml

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,55 @@
11
name: Docker image
22
on:
3-
workflow_dispatch:
4-
push:
5-
branches:
6-
- main
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
77

88
jobs:
9-
docker-release:
10-
runs-on: ubuntu-latest
11-
name: Build and publish Docker image
12-
steps:
13-
- name: Checkout the repo
14-
uses: actions/checkout@v3
9+
docker-release:
10+
runs-on: ubuntu-latest
11+
name: Build and publish Docker image
12+
steps:
13+
- name: Checkout the repo
14+
uses: actions/checkout@v3
1515

16-
- name: Prepare
17-
id: prepare
18-
run: |
19-
{
20-
echo "version=$(jq -r .version supervisor-ide-config.json)"
21-
echo "manifest=$(cat supervisor-ide-config.json | jq -c)"
22-
} >> $GITHUB_OUTPUT
16+
- name: Prepare
17+
id: prepare
18+
run: |
19+
{
20+
echo "version=$(jq -r .version supervisor-ide-config.json)"
21+
echo "manifest=$(cat supervisor-ide-config.json | jq -c)"
22+
} >> $GITHUB_OUTPUT
2323
24-
- name: Test Prepare
25-
id: test-prepare
26-
run: |
27-
echo '${{ steps.prepare.outputs.version }}'
28-
echo '${{ steps.prepare.outputs.manifest }}'
24+
- name: Test Prepare
25+
id: test-prepare
26+
run: |
27+
echo '${{ steps.prepare.outputs.version }}'
28+
echo '${{ steps.prepare.outputs.manifest }}'
2929
30-
- name: Auth Google Cloud SDK
31-
uses: google-github-actions/auth@v0
32-
with:
33-
credentials_json: ${{ secrets.GCP_SA_KEY }}
30+
- name: Auth Google Cloud SDK
31+
uses: google-github-actions/auth@v0
32+
with:
33+
credentials_json: ${{ secrets.GCP_SA_KEY }}
3434

35-
- name: Set up Google Cloud SDK
36-
uses: google-github-actions/setup-gcloud@v0
37-
with:
38-
project_id: ${{ secrets.GCP_PROJECT_ID }}
35+
- name: Set up Google Cloud SDK
36+
uses: google-github-actions/setup-gcloud@v0
37+
with:
38+
project_id: ${{ secrets.GCP_PROJECT_ID }}
3939

40-
- name: Set up Docker
41-
run: |
42-
gcloud auth configure-docker --quiet
40+
- name: Set up Docker
41+
run: |
42+
gcloud auth configure-docker --quiet
4343
44-
- name: Build and push
45-
uses: docker/build-push-action@v4
46-
with:
47-
push: true
48-
context: .
49-
tags: |
50-
eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:commit-${{ github.sha }}
51-
eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:latest
52-
build-args: |
53-
XTERM_COMMIT=${{ github.sha }}
54-
XTERM_VERSION=${{ steps.prepare.outputs.version }}
55-
XTERM_MANIFEST=${{ steps.prepare.outputs.manifest }}
56-
44+
- name: Build and push
45+
uses: docker/build-push-action@v4
46+
with:
47+
push: true
48+
context: .
49+
tags: |
50+
eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:commit-${{ github.sha }}
51+
eu.gcr.io/gitpod-core-dev/build/ide/xterm-web:latest
52+
build-args: |
53+
XTERM_COMMIT=${{ github.sha }}
54+
XTERM_VERSION=${{ steps.prepare.outputs.version }}
55+
XTERM_MANIFEST=${{ steps.prepare.outputs.manifest }}

.gitpod.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
image:
2-
file: .gitpod.Dockerfile
2+
file: .gitpod.Dockerfile
33

44
tasks:
5-
- init: nvm install && yarn
6-
command: ./validate.sh
5+
- init: nvm install && yarn
6+
command: ./validate.sh
77
vscode:
8-
extensions:
9-
- dbaeumer.vscode-eslint
8+
extensions:
9+
- dbaeumer.vscode-eslint

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This repository contains a web-based IDE built entirely on top of [xterm.js](htt
1414
</figure>
1515

1616
## Running the IDE
17+
1718
1. Clone this repository
1819
2. Install dependencies
1920
```bash

assets/_xterm.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* Default styles for xterm.js
3636
*/
3737

38-
.xterm {
38+
.xterm {
3939
cursor: text;
4040
position: relative;
4141
user-select: none;
@@ -79,7 +79,7 @@
7979
.xterm .composition-view {
8080
/* TODO: Composition position got messed up somewhere */
8181
background: #000;
82-
color: #FFF;
82+
color: #fff;
8383
display: none;
8484
position: absolute;
8585
white-space: nowrap;
@@ -172,8 +172,8 @@
172172
}
173173

174174
.xterm-screen .xterm-decoration-container .xterm-decoration {
175-
z-index: 6;
176-
position: absolute;
175+
z-index: 6;
176+
position: absolute;
177177
}
178178

179179
.xterm-decoration-overview-ruler {

assets/styles.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ h1 {
2323

2424
p {
2525
font-size: 0.9em;
26-
font-style: italic
26+
font-style: italic;
2727
}
2828

2929
#option-container {
@@ -48,7 +48,6 @@ pre {
4848
white-space: pre-wrap;
4949
}
5050

51-
5251
#container {
5352
display: flex;
5453
height: 75vh;
@@ -86,7 +85,7 @@ pre {
8685
/* Create an active/current tablink class */
8786
.tab button.active {
8887
background-color: #ccc;
89-
}
88+
}
9089

9190
/* Style the tab content */
9291
.tabContent {
@@ -108,10 +107,10 @@ pre {
108107
#terminal-container {
109108
min-width: 100vw;
110109
min-height: 100vh;
111-
background:black;
112-
position:absolute;
113-
top:0px;
114-
right:0px;
115-
bottom:0px;
116-
left:0px;
110+
background: black;
111+
position: absolute;
112+
top: 0px;
113+
right: 0px;
114+
bottom: 0px;
115+
left: 0px;
117116
}

example/workspace/.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
image:
2-
file: Dockerfile
2+
file: Dockerfile

index.html

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Gitpod</title>
7-
<link rel="stylesheet" href="assets/styles.scss" />
8-
<!-- Gitpod specific -->
9-
<meta id="gitpod-ide-capabilities" data-settings="{&quot;service&quot;:true}">
10-
</head>
11-
<body>
12-
<main id="terminal-container"></main>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Gitpod</title>
7+
<link rel="stylesheet" href="assets/styles.scss" />
8+
<!-- Gitpod specific -->
9+
<meta id="gitpod-ide-capabilities" data-settings='{"service":true}' />
10+
</head>
11+
<body>
12+
<main id="terminal-container"></main>
1313

14-
<dialog id="output">
15-
<p id="outputContent"></p>
16-
<form method="dialog">
17-
<button value="cancel">Cancel</button>
18-
</form>
19-
</dialog>
20-
<script
21-
type="text/javascript"
22-
src="/_supervisor/frontend/main.js"
23-
charset="utf-8"
24-
></script>
25-
<script type="module">
26-
import { Buffer } from "buffer";
27-
window.Buffer = Buffer;
28-
</script>
29-
<script src="src/client.ts" type="module" defer></script>
30-
</body>
14+
<dialog id="output">
15+
<p id="outputContent"></p>
16+
<form method="dialog">
17+
<button value="cancel">Cancel</button>
18+
</form>
19+
</dialog>
20+
<script type="text/javascript" src="/_supervisor/frontend/main.js" charset="utf-8"></script>
21+
<script type="module">
22+
import { Buffer } from "buffer";
23+
window.Buffer = Buffer;
24+
</script>
25+
<script src="src/client.ts" type="module" defer></script>
26+
</body>
3127
</html>

rollup.config.js

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
1-
import merge from 'deepmerge';
2-
import commonjs from '@rollup/plugin-commonjs';
3-
import { createBasicConfig } from '@open-wc/building-rollup';
4-
import typescript from '@rollup/plugin-typescript';
5-
import nodePolyfills from 'rollup-plugin-polyfill-node';
1+
import merge from "deepmerge";
2+
import commonjs from "@rollup/plugin-commonjs";
3+
import { createBasicConfig } from "@open-wc/building-rollup";
4+
import typescript from "@rollup/plugin-typescript";
5+
import nodePolyfills from "rollup-plugin-polyfill-node";
66

77
const baseConfig = createBasicConfig();
88

99
export default merge(baseConfig, {
10-
input: './src/client.ts',
10+
input: "./src/client.ts",
1111
treeshake: true,
1212
output: {
13-
file: 'dist/bundle.js',
14-
format: 'iife',
13+
file: "dist/bundle.js",
14+
format: "iife",
1515
dir: undefined,
16-
sourcemap: 'inline',
16+
sourcemap: "inline",
1717
globals: {
18-
fs: 'require$$0',
19-
path: 'require$$1',
20-
util: 'require$$2',
21-
stream: 'require$$3',
22-
net: 'require$$0$2',
23-
url: 'require$$0$3',
24-
crypto: 'require$$0$1',
25-
os: 'require$$1'
26-
}
27-
},
28-
plugins: [
18+
fs: "require$$0",
19+
path: "require$$1",
20+
util: "require$$2",
21+
stream: "require$$3",
22+
net: "require$$0$2",
23+
url: "require$$0$3",
24+
crypto: "require$$0$1",
25+
os: "require$$1",
26+
},
27+
},
28+
plugins: [
2929
nodePolyfills({
30-
include: ['stream', 'util', 'url', 'path', 'net', 'fs', 'os', 'crypto'],
31-
sourceMap: true
30+
include: ["stream", "util", "url", "path", "net", "fs", "os", "crypto"],
31+
sourceMap: true,
3232
}),
3333
commonjs(),
3434
typescript({
35-
tsconfig: './tsconfig.json'
35+
tsconfig: "./tsconfig.json",
3636
}),
37-
38-
]
39-
});
37+
],
38+
});

0 commit comments

Comments
 (0)