mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(monorepo/client): solve some import errors
This commit is contained in:
parent
c02a006c67
commit
920e1dbcd0
@ -1,4 +1,4 @@
|
|||||||
import type { AttachmentRow } from "../../../becca/entities/rows.js";
|
import type { AttachmentRow } from "@triliumnext/commons";
|
||||||
import type { AttributeType } from "../entities/fattribute.js";
|
import type { AttributeType } from "../entities/fattribute.js";
|
||||||
import type { EntityChange } from "../server_types.js";
|
import type { EntityChange } from "../server_types.js";
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ import type { EventData } from "../../components/app_context.js";
|
|||||||
import dayjs, { Dayjs } from "dayjs";
|
import dayjs, { Dayjs } from "dayjs";
|
||||||
import utc from "dayjs/plugin/utc.js";
|
import utc from "dayjs/plugin/utc.js";
|
||||||
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
||||||
import type BAttribute from "../../../../becca/entities/battribute.js";
|
|
||||||
import "../../../stylesheets/calendar.css";
|
import "../../../stylesheets/calendar.css";
|
||||||
|
import { AttributeRow } from "@triliumnext/commons";
|
||||||
|
|
||||||
dayjs.extend(utc);
|
dayjs.extend(utc);
|
||||||
dayjs.extend(isSameOrAfter);
|
dayjs.extend(isSameOrAfter);
|
||||||
@ -217,7 +217,7 @@ export default class CalendarWidget extends RightDropdownButtonWidget {
|
|||||||
this.weekNoteEnable = false;
|
this.weekNoteEnable = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const noteAttributes = await server.get<BAttribute[]>(`notes/${noteId}/attributes`);
|
const noteAttributes = await server.get<AttributeRow[]>(`notes/${noteId}/attributes`);
|
||||||
|
|
||||||
for (const attribute of noteAttributes) {
|
for (const attribute of noteAttributes) {
|
||||||
if (attribute.name === 'enableWeekNote') {
|
if (attribute.name === 'enableWeekNote') {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import { byBookType, byNoteType } from "./help_button.js";
|
import { byBookType, byNoteType } from "./help_button.js";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import type { HiddenSubtreeItem } from "../../../../services/hidden_subtree.js";
|
import type { HiddenSubtreeItem } from "@triliumnext/commons";
|
||||||
|
|
||||||
describe("Help button", () => {
|
describe("Help button", () => {
|
||||||
it("All help notes are accessible", () => {
|
it("All help notes are accessible", () => {
|
||||||
|
@ -2,7 +2,6 @@ import TypeWidget from "./type_widget.js";
|
|||||||
import utils from "../../services/utils.js";
|
import utils from "../../services/utils.js";
|
||||||
import linkService from "../../services/link.js";
|
import linkService from "../../services/link.js";
|
||||||
import server from "../../services/server.js";
|
import server from "../../services/server.js";
|
||||||
import asset_path from "../../../../services/asset_path.js";
|
|
||||||
import type FNote from "../../entities/fnote.js";
|
import type FNote from "../../entities/fnote.js";
|
||||||
import type { ExcalidrawElement, Theme } from "@excalidraw/excalidraw/element/types";
|
import type { ExcalidrawElement, Theme } from "@excalidraw/excalidraw/element/types";
|
||||||
import type { AppState, BinaryFileData, ExcalidrawImperativeAPI, ExcalidrawProps, LibraryItem, SceneData } from "@excalidraw/excalidraw/types";
|
import type { AppState, BinaryFileData, ExcalidrawImperativeAPI, ExcalidrawProps, LibraryItem, SceneData } from "@excalidraw/excalidraw/types";
|
||||||
@ -10,6 +9,7 @@ import type { JSX } from "react";
|
|||||||
import type React from "react";
|
import type React from "react";
|
||||||
import type { Root } from "react-dom/client";
|
import type { Root } from "react-dom/client";
|
||||||
import "@excalidraw/excalidraw/index.css";
|
import "@excalidraw/excalidraw/index.css";
|
||||||
|
import asset_path from "../../asset_path.js";
|
||||||
|
|
||||||
const TPL = /*html*/`
|
const TPL = /*html*/`
|
||||||
<div class="canvas-widget note-detail-canvas note-detail-printable note-detail">
|
<div class="canvas-widget note-detail-canvas note-detail-printable note-detail">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user