diff --git a/ROADMAP.md b/ROADMAP.md index e8f55bd..8a2918c 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -115,6 +115,11 @@ Due to my Bachelors' thesis I took a 3 week break from Torii here and `dev9` sho ### `v0.0.0-dev11` +- [ ] Continue Client Refactoring: Split the project features into composables + - [ ] `useProjectFiles()` + - [ ] `useCurrentWorkspace()` + - [ ] `useCurrentRecord()` + - [ ] `useProjectSearch()` - [ ] Client Documentation (Github CI) - [ ] [clean-jsdoc-theme](https://www.npmjs.com/package/@clean-jsdoc-theme/typedoc) - [ ] Remove Naive UI dependency and implement custom vue components diff --git a/torii-client/plugin-recent-projects/src/AddRecentProject.vue b/torii-client/plugin-recent-projects/src/AddRecentProject.vue new file mode 100644 index 0000000..2be8d3a --- /dev/null +++ b/torii-client/plugin-recent-projects/src/AddRecentProject.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/torii-client/plugin-recent-projects/src/RecentProjectItem.vue b/torii-client/plugin-recent-projects/src/RecentProjectItem.vue new file mode 100644 index 0000000..22c96b9 --- /dev/null +++ b/torii-client/plugin-recent-projects/src/RecentProjectItem.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/torii-client/plugin-recent-projects/src/RecentProjects.vue b/torii-client/plugin-recent-projects/src/RecentProjects.vue index d2da0f5..8abc8ae 100644 --- a/torii-client/plugin-recent-projects/src/RecentProjects.vue +++ b/torii-client/plugin-recent-projects/src/RecentProjects.vue @@ -4,86 +4,33 @@ {{ $t('app.project.noRecent') }}
- - {{ project.name }} - - - - - - + :project="project" + @open="openProject(project.path)" + />
- + diff --git a/torii-client/plugin-recent-projects/src/api.ts b/torii-client/plugin-recent-projects/src/service.ts similarity index 87% rename from torii-client/plugin-recent-projects/src/api.ts rename to torii-client/plugin-recent-projects/src/service.ts index b20f2ed..eb674bd 100644 --- a/torii-client/plugin-recent-projects/src/api.ts +++ b/torii-client/plugin-recent-projects/src/service.ts @@ -9,7 +9,7 @@ import { Ref, ref } from 'vue'; /** * @brief Type of a recent project struct. */ -interface RecentProject { +export interface RecentProject { /** * The name of the project. */ @@ -24,7 +24,13 @@ interface RecentProject { * The timestamp of when the project was last opened, in milliseconds since * the Unix epoch. */ - lastOpened?: number; + last_opened?: number; + + /** + * Wether the project is added by the system. Such projects are not stored + * in the recent projects file and cannot be removed. + */ + is_system?: boolean; } const recentProjects = ref([]); diff --git a/torii-client/webapp/src/components/article/MarkdownEditor.vue b/torii-client/webapp/src/components/article/MarkdownEditor.vue index f75c70e..dd4b3ef 100644 --- a/torii-client/webapp/src/components/article/MarkdownEditor.vue +++ b/torii-client/webapp/src/components/article/MarkdownEditor.vue @@ -22,7 +22,6 @@