feat: integrate @tailwindcss/typography and enhance folder picker functionality

- Added @tailwindcss/typography dependency to package.json and tailwind.config.js.
- Updated FolderPicker.vue to include additional properties (isGitRepo, hasDocuments) for directories.
- Enhanced Sidebar.vue with folder creation and document handling features, including drag-and-drop functionality.
- Implemented createFolder and moveDocument mutations in gql.ts for managing folder and document operations.
- Added logic to handle folder creation and document creation prompts in Sidebar.vue.
- Updated the layout and interactions in Sidebar.vue to improve user experience.
This commit is contained in:
Björn Blomberg
2026-04-13 10:55:02 +02:00
parent 376b946e73
commit a46d56e2fc
15 changed files with 980 additions and 240 deletions

View File

@@ -367,18 +367,29 @@ Archivum/
```graphql
type Query {
systemStatus: SystemStatus! # OK | REQUIRE_SETUP
serverDirectories(path: String): [ServerDirectory!]! # Listar mappar (inkl. isGitRepo)
documents(prefix: String): [DocumentMeta!]!
document(slug: String!): Document
folders: [String!]! # Listar alla mappvägar i repositoriet
history(slug: String!): [CommitEntry!]!
diff(slug: String!, fromHash: String!, toHash: String!): String!
}
type ServerDirectory {
name: String!
path: String!
isGitRepo: Boolean!
hasDocuments: Boolean!
}
type Mutation {
setup(input: SetupInput!): Boolean!
login(username: String!, password: String!): String! # returnerar session-token
logout: Boolean!
saveDocument(input: SaveDocumentInput!): Document!
deleteDocument(slug: String!): Boolean!
createFolder(path: String!): Boolean! # Skapar en ny mapp (katalog)
moveDocument(oldSlug: String!, newSlug: String!): Boolean! # Flyttar ett dokument till en annan plats
}
```