Skip to content

Commit dd5b3a3

Browse files
committed
chore(server): address requested changes
1 parent 17319d2 commit dd5b3a3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

apps/server/src/etapi/notes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function register(router: Router) {
151151
const format = req.query.format || "html";
152152

153153
if (typeof format !== "string" || !["html", "markdown", "share"].includes(format)) {
154-
throw new eu.EtapiError(400, "UNRECOGNIZED_EXPORT_FORMAT", `Unrecognized export format '${format}', supported values are 'html' (default) or 'markdown'.`);
154+
throw new eu.EtapiError(400, "UNRECOGNIZED_EXPORT_FORMAT", `Unrecognized export format '${format}', supported values are 'html' (default), 'markdown' or 'share'.`);
155155
}
156156

157157
const taskContext = new TaskContext("no-progress-reporting", "export", null);

apps/server/src/services/export/zip/share_theme.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
100100
}
101101

102102
function getShareThemeAssets(nameWithExtension: string) {
103-
// Rename share.css to style.css.
104-
if (nameWithExtension === "style.css") {
105-
nameWithExtension = "share.css";
106-
} else if (nameWithExtension === "script.js") {
107-
nameWithExtension = "share.js";
108-
}
109-
110103
let path: string | undefined;
111104
if (nameWithExtension === "icon-color.svg") {
112105
path = join(RESOURCE_DIR, "images", nameWithExtension);

packages/share-theme/src/templates/tree_item.ejs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ if (isExternalLink) {
77
linkHref = note.getLabelValue("shareExternal");
88
} else if (note.shareId) {
99
linkHref = `./${note.shareId}`;
10-
} else {
11-
linkHref = `#${note.getBestNotePath().join("/")}`;
1210
}
1311
1412
const target = isExternalLink ? ` target="_blank" rel="noopener noreferrer"` : "";

0 commit comments

Comments
 (0)