From 390d4519779001c6f4cc94b00eff79585159d55a Mon Sep 17 00:00:00 2001 From: mirivlad Date: Tue, 2 Jun 2026 09:48:58 +0800 Subject: [PATCH] =?UTF-8?q?frontend:=20=D1=83=D0=B4=D0=B0=D0=BB=D1=91?= =?UTF-8?q?=D0=BD=20=D0=BC=D1=91=D1=80=D1=82=D0=B2=D1=8B=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=B4=20(verstak.js,=20FileActions.svelte,=20style.css)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/style.css | 157 ---------------------------- frontend/src/api/verstak.js | 45 -------- frontend/src/lib/FileActions.svelte | 85 --------------- 3 files changed, 287 deletions(-) delete mode 100644 frontend/public/style.css delete mode 100644 frontend/src/api/verstak.js delete mode 100644 frontend/src/lib/FileActions.svelte diff --git a/frontend/public/style.css b/frontend/public/style.css deleted file mode 100644 index 0b9c582..0000000 --- a/frontend/public/style.css +++ /dev/null @@ -1,157 +0,0 @@ -:root { - font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", - "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - sans-serif; - font-size: 16px; - line-height: 24px; - font-weight: 400; - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: rgba(27, 38, 54, 1); - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-text-size-adjust: 100%; - user-select: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; -} - -@font-face { - font-family: "Inter"; - font-style: normal; - font-weight: 400; - src: local(""), - url("./Inter-Medium.ttf") format("truetype"); -} - -h3 { - font-size: 3em; - line-height: 1.1; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} - -a:hover { - color: #535bf2; -} - -button { - width: 60px; - height: 30px; - line-height: 30px; - border-radius: 3px; - border: none; - margin: 0 0 0 20px; - padding: 0 8px; - cursor: pointer; -} - -.result { - height: 20px; - line-height: 20px; -} - -body { - margin: 0; - display: flex; - place-items: center; - place-content: center; - min-width: 320px; - min-height: 100vh; -} - -.container { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -.logo { - height: 6em; - padding: 1.5em; - will-change: filter; -} - -.logo:hover { - filter: drop-shadow(0 0 2em #e80000aa); -} - -.logo.vanilla:hover { - filter: drop-shadow(0 0 2em #f7df1eaa); -} - -.result { - height: 20px; - line-height: 20px; - margin: 1.5rem auto; - text-align: center; -} - -.footer { - margin-top: 1rem; - align-content: center; - text-align: center; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - - a:hover { - color: #747bff; - } - - button { - background-color: #f9f9f9; - } -} - - -.input-box .btn:hover { - background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); - color: #333333; -} - -.input-box .input { - border: none; - border-radius: 3px; - outline: none; - height: 30px; - line-height: 30px; - padding: 0 10px; - color: black; - background-color: rgba(240, 240, 240, 1); - -webkit-font-smoothing: antialiased; -} - -.input-box .input:hover { - border: none; - background-color: rgba(255, 255, 255, 1); -} - -.input-box .input:focus { - border: none; - background-color: rgba(255, 255, 255, 1); -} \ No newline at end of file diff --git a/frontend/src/api/verstak.js b/frontend/src/api/verstak.js deleted file mode 100644 index ee64231..0000000 --- a/frontend/src/api/verstak.js +++ /dev/null @@ -1,45 +0,0 @@ -// Wails v2 API wrapper — uses generated bindings from wailsjs/go/main/App.js -import * as App from '../wailsjs/go/main/App.js' - -// Re-export all methods -export const listSections = () => App.ListSections() -export const listTodayView = () => App.ListTodayView() -export const listNodesBySection = (section) => App.ListNodesBySection(section) -export const listChildren = (parentID) => App.ListChildren(parentID) -export const getNodeDetail = (id) => App.GetNodeDetail(id) -export const createNode = (parentID, type, title, section) => App.CreateNode(parentID, type, title, section) -export const deleteNode = (id) => App.DeleteNode(id) - -export const listNotes = (nodeID) => App.ListNotes(nodeID) -export const createNote = (parentID, title) => App.CreateNote(parentID, title) -export const readNote = (noteID) => App.ReadNote(noteID) -export const saveNote = (noteID, content) => App.SaveNote(noteID, content) - -export const listFiles = (nodeID) => App.ListFiles(nodeID) -export const listItems = (nodeID) => App.ListItems(nodeID) -export const addPathCopy = (nodeID, sourcePath) => App.AddPathCopy(nodeID, sourcePath) -export const addPathLink = (nodeID, sourcePath) => App.AddPathLink(nodeID, sourcePath) -export const deleteFileOrFolder = (nodeID) => App.DeleteFileOrFolder(nodeID) -export const previewImport = (sourcePath) => App.PreviewImport(sourcePath) -export const pickFile = () => App.PickFile() -export const pickFiles = () => App.PickFiles() -export const pickDirectory = () => App.PickDirectory() -export const openFile = (id) => App.OpenFile(id) -export const readFileText = (id) => App.ReadFileText(id) -export const getFileBase64 = (id) => App.GetFileBase64(id) -export const createEmptyFile = (parentID, filename) => App.CreateEmptyFile(parentID, filename) -export const duplicateNode = (nodeID) => App.DuplicateNode(nodeID) -export const renameNode = (nodeID, newTitle) => App.RenameNode(nodeID, newTitle) -export const moveNode = (nodeID, newParentID) => App.MoveNode(nodeID, newParentID) -export const openFolder = (nodeID) => App.OpenFolder(nodeID) -export const validateName = (name) => App.ValidateName(name) - -export const listActions = (nodeID) => App.ListActions(nodeID) -export const runAction = (id) => App.RunAction(id) - -export const listWorklog = (nodeID) => App.ListWorklog(nodeID) -export const createWorklog = (nodeID, summary, minutes) => App.CreateWorklog(nodeID, summary, minutes) - -export const search = (query) => App.Search(query) - -export const verstakVersion = () => App.VerstakVersion() diff --git a/frontend/src/lib/FileActions.svelte b/frontend/src/lib/FileActions.svelte deleted file mode 100644 index de00bda..0000000 --- a/frontend/src/lib/FileActions.svelte +++ /dev/null @@ -1,85 +0,0 @@ - - -
- - -
- -