Skip to content

qyb/vue-jmap-webapp

Repository files navigation

README

a JMAP webmail by vue3/typescript.

It was trying to implement a responsive layout/UI likes Outlook Web App.

Now it's at an early stage with a few functions: login(auth), list mailboxes, list threads, read message.

a full-functional webmail need to be implemented (development schedule)

  1. Prepare a demo-site (2022 May) Done. visit Demo Site

  2. Message Read (2022 Jun)

  3. Message Operation (2022 Jul)

    • subscribe mailbox Done. 2022.07.12
    • create mailbox Done. 2022.07.13
    • move/delete mail Done. 2022.07.15
    • addressbook
  4. Send Message (2022 Aug)

    • compose UI
    • reply/forward
    • connect submission service
  5. Search & Tag (2022 Sep)

    • search UI
    • server-side sieve
  6. Web Push & WebApp state (2022 Sep)

  7. More..

Howto build: Vue 3 + TypeScript + Vite

It's a vue3 project, and depends vite as the dev/build server.

vite.config.ts define the JMAP backend of your dev environment.

Optional: create .env.local with VITE_DEFAULT_DOMAIN=yourdefaultdomain. see .env Files

JMAP Protocol

cyrus-imapd 3.4.x is my JMAP backend.

I maintain a patch-branch https://github.com/qyb/jmap-client-ts/tree/vue-jmap-webapp of LINAGORA's jmap-client-ts for this project. And I'll try to merge all changes into the upstream at my best.

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's Take Over mode by following these steps:

  1. Run Extensions: Show Built-in Extensions from VS Code's command palette, look for TypeScript and JavaScript Language Features, then right click and select Disable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
  2. Reload the VS Code window by running Developer: Reload Window from the command palette.

You can learn more about Take Over mode here.

About

JMAP protocol webclient, by vue3/typescript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages