tangled
alpha
login
or
join now
stevedylan.dev
/
sequoia
35
fork
atom
A CLI for publishing standard.site documents to ATProto
sequoia.pub
standard
site
lexicon
cli
publishing
35
fork
atom
overview
issues
5
pulls
1
pipelines
chore: lint
stevedylan.dev
1 month ago
a59e77fd
76057599
1/1
lint.yml
success
4s
+7
-7
2 changed files
expand all
collapse all
unified
split
packages
cli
src
commands
add.ts
components
sequoia-comments.js
+5
-5
packages/cli/src/commands/add.ts
reviewed
···
3
3
import * as path from "node:path";
4
4
import { command, positional, string } from "cmd-ts";
5
5
import { intro, outro, text, spinner, log, note } from "@clack/prompts";
6
6
-
import { fileURLToPath } from "url";
7
7
-
import { dirname } from "path";
6
6
+
import { fileURLToPath } from "node:url";
7
7
+
import { dirname } from "node:path";
8
8
import { findConfig, loadConfig } from "../lib/config";
9
9
import type { PublisherConfig } from "../lib/types";
10
10
···
83
83
await fs.writeFile(
84
84
configPath,
85
85
JSON.stringify(existingConfig, null, 2),
86
86
-
"utf-8"
86
86
+
"utf-8",
87
87
);
88
88
s.stop("Updated sequoia.json with UI configuration");
89
89
} catch (error) {
···
100
100
await fs.writeFile(
101
101
path.join(process.cwd(), "sequoia.json"),
102
102
JSON.stringify(minimalConfig, null, 2),
103
103
-
"utf-8"
103
103
+
"utf-8",
104
104
);
105
105
s.stop("Created sequoia.json with UI configuration");
106
106
}
···
149
149
`<${componentName}></${componentName}>\n\n` +
150
150
`The component will automatically read the document URI from:\n` +
151
151
`<link rel="site.standard.document" href="at://...">`,
152
152
-
"Usage"
152
152
+
"Usage",
153
153
);
154
154
155
155
outro(`${componentName} added successfully!`);
+2
-2
packages/cli/src/components/sequoia-comments.js
reviewed
···
800
800
* Render a single comment
801
801
* @param {any} post - Post data
802
802
* @param {boolean} showThreadLine - Whether to show the connecting thread line
803
803
-
* @param {number} index - Index in the flattened thread (0 = top-level)
803
803
+
* @param {number} _index - Index in the flattened thread (0 = top-level)
804
804
*/
805
805
-
renderComment(post, showThreadLine = false, index = 0) {
805
805
+
renderComment(post, showThreadLine = false, _index = 0) {
806
806
const author = post.author;
807
807
const displayName = author.displayName || author.handle;
808
808
const avatarHtml = author.avatar