Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions client/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
node_modules
tsconfig.json
8 changes: 8 additions & 0 deletions client/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true,
"semi": false,
"singleQuote": false,
"quoteProps": "as-needed",
"trailingComma": "es5",
"arrowParens": "avoid"
}
62 changes: 36 additions & 26 deletions client/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ export default defineConfig([
"node_modules/**",
"tsconfig.json",
"eslint.config.ts",
"package-lock.json"
]
"package-lock.json",
],
},
{
files: ["**/*.{ts,mts,cts}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: { globals: globals.browser },
},
{ files: ["**/*.{ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
{
files: ["**/*.{ts,mts,cts,tsx}"],
extends: [
Expand All @@ -29,33 +34,38 @@ export default defineConfig([
},
},
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": {
"arguments": false
}
}
]
}
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: {
arguments: false,
},
},
],
},
},
{
files: ["**/*.json"],
plugins: { json },
language: "json/json",
extends: ["json/recommended"],
},
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
{
files: ["**/*.md"],
plugins: { markdown },
language: "markdown/gfm",
extends: ["markdown/recommended"],
rules: {
"markdown/no-missing-label-refs": "off",
}
},
},
{
files: ["**/*.css"],
Expand All @@ -67,10 +77,10 @@ export default defineConfig([
"css/no-invalid-properties": [
"error",
{
allowUnknownVariables: true
}
allowUnknownVariables: true,
},
],
"css/no-empty-blocks": "off"
}
"css/no-empty-blocks": "off",
},
},
])
22 changes: 11 additions & 11 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Threadlet</title>
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<div id="loadingScreen">
<span id="loadingText">Loading...</span>
</div>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Threadlet</title>
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<div id="loadingScreen">
<span id="loadingText">Loading...</span>
</div>
</body>
</html>
26 changes: 17 additions & 9 deletions client/md.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@
}

.md code {
background-color: rgba(175,184,193,0.2);
background-color: rgba(175, 184, 193, 0.2);
padding: 0.2em 0.4em;
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
}

.md pre {
background-color: light-dark(#f6f8fa, rgba(175,184,193,0.2));
background-color: light-dark(#f6f8fa, rgba(175, 184, 193, 0.2));
padding: 16px;
border-radius: 6px;
overflow: auto;
Expand All @@ -28,7 +35,8 @@
margin: 16px 0;
}

.md td, .md th {
.md td,
.md th {
border: 1px solid #dfe2e5;
padding: 6px 13px;
}
Expand All @@ -46,23 +54,23 @@
}

.md > :first-child {
margin-top: 0px;
margin-top: 0px;
}

.md > :last-child {
margin-bottom: 0px;
margin-bottom: 0px;
}

img.emoji {
height: 1em;
width: 1em;
margin: 0 .05em 0 .1em;
margin: 0 0.05em 0 0.1em;
vertical-align: -0.1em;
}

.md .markdown-alert {
border-left: 3px solid white;
padding-left: var(--gap)
padding-left: var(--gap);
}

.markdown-alert-title {
Expand All @@ -83,7 +91,7 @@ img.emoji {

.md .markdown-alert-tip {
border-left-color: #3fb950;

.markdown-alert-title {
color: #3fb950;
}
Expand Down
Loading
Loading