Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix linter
Steven133951328bd1
diff --git a/server/route/api/v2/workspace_setting_service.go b/server/route/api/v2/workspace_setting_service.goindex d8aeb7d31..7dd76e1c6 100644--- a/server/route/api/v2/workspace_setting_service.go+++ b/server/route/api/v2/workspace_setting_service.go@@ -12,7 +12,7 @@ import ("github.com/usememos/memos/store")-func (s *APIV2Service) ListWorkspaceSettings(ctx context.Context, request *apiv2pb.ListWorkspaceSettingsRequest) (*apiv2pb.ListWorkspaceSettingsResponse, error) {+func (s *APIV2Service) ListWorkspaceSettings(ctx context.Context, _ *apiv2pb.ListWorkspaceSettingsRequest) (*apiv2pb.ListWorkspaceSettingsResponse, error) {workspaceSettings, err := s.Store.ListWorkspaceSettingsV1(ctx, &store.FindWorkspaceSetting{})if err != nil {return nil, status.Errorf(codes.Internal, "failed to get workspace setting: %v", err)diff --git a/web/src/components/ExploreSidebar/TagsSection.tsx b/web/src/components/ExploreSidebar/TagsSection.tsxdeleted file mode 100644index 280596c4e..000000000--- a/web/src/components/ExploreSidebar/TagsSection.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { useEffect, useState } from "react";-import { tagServiceClient } from "@/grpcweb";-import { Tag } from "@/types/proto/api/v2/tag_service";-import Icon from "../Icon";--const TagsSection = () => {- const [tags, setTags] = useState<Tag[]>([]);-- useEffect(() => {- (async () => {- const { tags } = await tagServiceClient.listTags({});- setTags(tags);- })();- }, []);-- return (- tags.length > 0 && (- <div className="w-full mt-2 flex flex-col p-2 bg-gray-50 dark:bg-black rounded-lg">- <div className="w-full flex flex-row justify-between items-center">- <span className="text-gray-400 font-medium text-sm pl-1">Tags</span>- </div>- <div className="w-full flex flex-row justify-start items-center flex-wrap">- {tags.map((tag) => (- <div- key={tag.name}- className="w-auto max-w-full px-1 flex flex-row justify-start items-center text-gray-500 hover:bg-gray-100 dark:hover:bg-zinc-900 rounded-lg"- >- <Icon.Hash className="w-4 h-auto opacity-80" />- {tag.name}- </div>- ))}- </div>- </div>- )- );-};--export default TagsSection;diff --git a/web/src/components/HomeSidebar/TagsSection.tsx b/web/src/components/HomeSidebar/TagsSection.tsxindex c52eace0b..07dfc4392 100644--- a/web/src/components/HomeSidebar/TagsSection.tsx+++ b/web/src/components/HomeSidebar/TagsSection.tsx@@ -92,9 +92,7 @@ const TagsSection = () => {) : (<div className="p-2 border rounded-md flex flex-row justify-start items-start gap-1 text-gray-400 dark:text-gray-500"><Icon.ThumbsUp />- <p className="mt-0.5 text-sm leading-snug italic">- {t("tag.create-tags-guide")}- </p>+ <p className="mt-0.5 text-sm leading-snug italic">{t("tag.create-tags-guide")}</p></div>)}</div>