Skip to content

Commit bed3292

Browse files
Normalize indentation and formatting across files
This commit updates indentation in several files to use tabs instead of spaces, aligns markdown and HTML formatting, and standardizes quote usage in TypeScript imports. No functional changes were made; these updates improve code consistency and readability.
1 parent f7cc137 commit bed3292

File tree

10 files changed

+237
-221
lines changed

10 files changed

+237
-221
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm"
9-
directory: "/"
8+
- package-ecosystem: 'npm'
9+
directory: '/'
1010
schedule:
11-
interval: "monthly"
12-
- package-ecosystem: "github-actions"
13-
directory: "/"
11+
interval: 'monthly'
12+
- package-ecosystem: 'github-actions'
13+
directory: '/'
1414
schedule:
15-
interval: "monthly"
15+
interval: 'monthly'

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,19 @@ One possible cause is that you called the `terminal` function before it was init
9999
## Real-world uses
100100

101101
- [Thymis](https://thymis.io): Thymis is an open-source project that aims to provide a seamless and secure IoT device management solution.
102-
With Thymis, users can easily configure and manage their devices running on the NixOS operating system.
102+
With Thymis, users can easily configure and manage their devices running on the NixOS operating system.
103103
- [And much more...](https://github.com/BattlefieldDuck/xterm-svelte/network/dependents)
104104

105105
## Contributing
106+
106107
Contributions are welcome! Please feel free to submit pull requests or open issues.
107108

108109
![https://github.com/BattlefieldDuck/xterm-svelte/graphs/contributors](https://contrib.rocks/image?repo=BattlefieldDuck/xterm-svelte)
109110

110111
## License
112+
111113
xterm-svelte is licensed under the MIT License. See the `LICENSE` file for more details.
112114

113115
## Stargazers over time
116+
114117
[![Stargazers over time](https://starchart.cc/BattlefieldDuck/xterm-svelte.svg?variant=adaptive)](https://starchart.cc/BattlefieldDuck/xterm-svelte)

src/app.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.xterm .xterm-viewport {
2-
scrollbar-color: #999999 #000000;
3-
/* dark thumb and track */
4-
scrollbar-width: thin;
5-
}
2+
scrollbar-color: #999999 #000000;
3+
/* dark thumb and track */
4+
scrollbar-width: thin;
5+
}

src/app.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ declare global {
1414
declare const __APP_VERSION__: string;
1515
}
1616

17-
export { };
17+
export {};

src/app.html

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
%sveltekit.head%
8+
<link
9+
rel="stylesheet"
10+
href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.1/flowbite.min.css"
11+
integrity="sha512-rNs/n9j1vL/AUyFxhhBicAVNVgK8049GJLZvjgmY1UbJ7qkzlyO6VLN1pAKb3WGsFjUIhSO3OTRY53atjnICeA=="
12+
crossorigin="anonymous"
13+
referrerpolicy="no-referrer"
14+
/>
15+
<link
16+
rel="stylesheet"
17+
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/styles/github-dark.min.css"
18+
integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw=="
19+
crossorigin="anonymous"
20+
referrerpolicy="no-referrer"
21+
/>
22+
</head>
323

4-
<head>
5-
<meta charset="utf-8" />
6-
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
%sveltekit.head%
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.1/flowbite.min.css"
10-
integrity="sha512-rNs/n9j1vL/AUyFxhhBicAVNVgK8049GJLZvjgmY1UbJ7qkzlyO6VLN1pAKb3WGsFjUIhSO3OTRY53atjnICeA=="
11-
crossorigin="anonymous" referrerpolicy="no-referrer" />
12-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/styles/github-dark.min.css"
13-
integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw=="
14-
crossorigin="anonymous" referrerpolicy="no-referrer" />
15-
</head>
16-
17-
<body data-sveltekit-preload-data="hover">
18-
<div>%sveltekit.body%</div>
19-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/highlight.min.js"
20-
integrity="sha512-6yoqbrcLAHDWAdQmiRlHG4+m0g/CT/V9AGyxabG8j7Jk8j3r3K6due7oqpiRMZqcYe9WM2gPcaNNxnl2ux+3tA=="
21-
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
22-
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.1/flowbite.min.js"
23-
integrity="sha512-3OhI+rK9DaQNau/o2HdRre6v1c/6EwMdY965UnYJevchxvO7mVYmp2wz39Igla9aLjpoFr+9IU4NkAeHGg74/A=="
24-
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
25-
</body>
26-
27-
</html>
24+
<body data-sveltekit-preload-data="hover">
25+
<div>%sveltekit.body%</div>
26+
<script
27+
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/highlight.min.js"
28+
integrity="sha512-6yoqbrcLAHDWAdQmiRlHG4+m0g/CT/V9AGyxabG8j7Jk8j3r3K6due7oqpiRMZqcYe9WM2gPcaNNxnl2ux+3tA=="
29+
crossorigin="anonymous"
30+
referrerpolicy="no-referrer"
31+
></script>
32+
<script
33+
src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.4.1/flowbite.min.js"
34+
integrity="sha512-3OhI+rK9DaQNau/o2HdRre6v1c/6EwMdY965UnYJevchxvO7mVYmp2wz39Igla9aLjpoFr+9IU4NkAeHGg74/A=="
35+
crossorigin="anonymous"
36+
referrerpolicy="no-referrer"
37+
></script>
38+
</body>
39+
</html>

src/lib/XtermAddon.ts

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,85 +2,85 @@
22
* The `XtermAddon` class provides static methods to dynamically import various addons for the xterm.js library.
33
*/
44
export class XtermAddon {
5-
/**
6-
* Dynamically imports the 'attach' addon from `@xterm/addon-attach`.
7-
* @returns A promise that resolves to the 'attach' addon module.
8-
*/
9-
static AttachAddon = async () => await import('@xterm/addon-attach');
5+
/**
6+
* Dynamically imports the 'attach' addon from `@xterm/addon-attach`.
7+
* @returns A promise that resolves to the 'attach' addon module.
8+
*/
9+
static AttachAddon = async () => await import('@xterm/addon-attach');
1010

11-
/**
12-
* Dynamically imports the 'canvas' addon from `@xterm/addon-canvas`.
13-
* For more details, visit: https://github.com/xtermjs/xterm.js/tree/master/addons/addon-canvas
14-
* @returns A promise that resolves to the 'canvas' addon module.
15-
*/
16-
static CanvasAddon = async () => await import('@xterm/addon-canvas');
11+
/**
12+
* Dynamically imports the 'canvas' addon from `@xterm/addon-canvas`.
13+
* For more details, visit: https://github.com/xtermjs/xterm.js/tree/master/addons/addon-canvas
14+
* @returns A promise that resolves to the 'canvas' addon module.
15+
*/
16+
static CanvasAddon = async () => await import('@xterm/addon-canvas');
1717

18-
/**
19-
* Dynamically imports the 'clipboard' addon from `@xterm/addon-clipboard`.
20-
* @returns A promise that resolves to the 'clipboard' addon module.
21-
*/
22-
static ClipboardAddon = async () => await import('@xterm/addon-clipboard');
18+
/**
19+
* Dynamically imports the 'clipboard' addon from `@xterm/addon-clipboard`.
20+
* @returns A promise that resolves to the 'clipboard' addon module.
21+
*/
22+
static ClipboardAddon = async () => await import('@xterm/addon-clipboard');
2323

24-
/**
25-
* Dynamically imports the 'fit' addon from `@xterm/addon-fit`.
26-
* @returns A promise that resolves to the 'fit' addon module.
27-
*/
28-
static FitAddon = async () => await import('@xterm/addon-fit');
24+
/**
25+
* Dynamically imports the 'fit' addon from `@xterm/addon-fit`.
26+
* @returns A promise that resolves to the 'fit' addon module.
27+
*/
28+
static FitAddon = async () => await import('@xterm/addon-fit');
2929

30-
/**
31-
* Dynamically imports the 'image' addon from `@xterm/addon-image`.
32-
* @returns A promise that resolves to the 'image' addon module.
33-
*/
34-
static ImageAddon = async () => await import('@xterm/addon-image');
30+
/**
31+
* Dynamically imports the 'image' addon from `@xterm/addon-image`.
32+
* @returns A promise that resolves to the 'image' addon module.
33+
*/
34+
static ImageAddon = async () => await import('@xterm/addon-image');
3535

36-
/**
37-
* Dynamically imports the 'ligatures' addon from `@xterm/addon-ligatures`.
38-
*
39-
* This addon is designed to be used in environments with access to Node.js APIs (such as Electron).
40-
*
41-
* @returns A promise that resolves to the 'ligatures' addon module.
42-
*/
43-
// static LigaturesAddon = async () => {
44-
// // @ts-ignore
45-
// if (typeof process === 'undefined' || process.versions == null || process.versions.node == null) {
46-
// // This is not a Node.js environment
47-
// throw new Error('This module can only be imported in a Node.js environment');
48-
// }
36+
/**
37+
* Dynamically imports the 'ligatures' addon from `@xterm/addon-ligatures`.
38+
*
39+
* This addon is designed to be used in environments with access to Node.js APIs (such as Electron).
40+
*
41+
* @returns A promise that resolves to the 'ligatures' addon module.
42+
*/
43+
// static LigaturesAddon = async () => {
44+
// // @ts-ignore
45+
// if (typeof process === 'undefined' || process.versions == null || process.versions.node == null) {
46+
// // This is not a Node.js environment
47+
// throw new Error('This module can only be imported in a Node.js environment');
48+
// }
4949

50-
// return await import('@xterm/addon-ligatures');
51-
// }
50+
// return await import('@xterm/addon-ligatures');
51+
// }
5252

53-
/**
54-
* Dynamically imports the 'search' addon from `@xterm/addon-search`.
55-
* @returns A promise that resolves to the 'search' addon module.
56-
*/
57-
static SearchAddon = async () => await import('@xterm/addon-search');
53+
/**
54+
* Dynamically imports the 'search' addon from `@xterm/addon-search`.
55+
* @returns A promise that resolves to the 'search' addon module.
56+
*/
57+
static SearchAddon = async () => await import('@xterm/addon-search');
5858

59-
/**
60-
* Dynamically imports the 'serialize' addon from `@xterm/addon-serialize`.
61-
* @returns A promise that resolves to the 'serialize' addon module.
62-
*/
63-
static SerializeAddon = async () => await import('@xterm/addon-serialize');
59+
/**
60+
* Dynamically imports the 'serialize' addon from `@xterm/addon-serialize`.
61+
* @returns A promise that resolves to the 'serialize' addon module.
62+
*/
63+
static SerializeAddon = async () => await import('@xterm/addon-serialize');
6464

65-
// This addon is not yet published to npm
66-
// https://github.com/xtermjs/xterm.js/tree/master/addons/addon-unicode-graphemes
67-
// static UnicodeGraphemesAddon = async () => await import('@xterm/addon-unicode-graphemes');
65+
// This addon is not yet published to npm
66+
// https://github.com/xtermjs/xterm.js/tree/master/addons/addon-unicode-graphemes
67+
// static UnicodeGraphemesAddon = async () => await import('@xterm/addon-unicode-graphemes');
6868

69-
/**
70-
* Dynamically imports the 'unicode11' addon from `@xterm/addon-unicode11`.
71-
* @returns A promise that resolves to the 'unicode11' addon module.
72-
*/
73-
static Unicode11Addon = async () => await import('@xterm/addon-unicode11');
69+
/**
70+
* Dynamically imports the 'unicode11' addon from `@xterm/addon-unicode11`.
71+
* @returns A promise that resolves to the 'unicode11' addon module.
72+
*/
73+
static Unicode11Addon = async () => await import('@xterm/addon-unicode11');
7474

75-
/**
76-
* Dynamically imports the 'web-links' addon from `@xterm/addon-web-links`.
77-
* @returns A promise that resolves to the 'web-links' addon module.
78-
*/
79-
static WebLinksAddon = async () => await import('@xterm/addon-web-links');
75+
/**
76+
* Dynamically imports the 'web-links' addon from `@xterm/addon-web-links`.
77+
* @returns A promise that resolves to the 'web-links' addon module.
78+
*/
79+
static WebLinksAddon = async () => await import('@xterm/addon-web-links');
8080

81-
/**
82-
* Dynamically imports the 'webgl' addon from `@xterm/addon-webgl`.
83-
* @returns A promise that resolves to the 'webgl' addon module.
84-
*/
85-
static WebglAddon = async () => await import('@xterm/addon-webgl');
81+
/**
82+
* Dynamically imports the 'webgl' addon from `@xterm/addon-webgl`.
83+
* @returns A promise that resolves to the 'webgl' addon module.
84+
*/
85+
static WebglAddon = async () => await import('@xterm/addon-webgl');
8686
}

0 commit comments

Comments
 (0)