搭建前端工程骨架(Vite + Vue 3 + TypeScript + Element Plus)
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript, vite
- Domain
- developer-experience, frontend
Research direction
Read the frontend architecture in #5 and the overall plan in #1, then inspect the existing web/ directory and the linked pull request #21 to see what is already underway. The issue lists the expected files and behaviors, including api.ts, stores/, style.css, and router.ts; completion requires the stated build check, a login page available through pnpm dev, and /api/me integration with #8.
Written by the indexing model from the issue text.
Description
Background
TickFlow 前端基座。前端架构见 #5,总体方案见 #1。本 issue 只落地工程骨架与通用层,不实现业务页面。
Technical requirement
- 位置
web/,Vite + Vue 3 + TypeScript + Element Plus(+ @element-plus/icons-vue); package.jsonscripts 仅dev/build/preview;开发期 Vite proxy 把/api转发到后端;- 落地 #5 的目录结构与通用层:
api.ts:单文件 fetch 封装(15s 超时、ApiError(code)、{data}解包、token 存取、401 跳登录);stores/:me、tenant(品牌 / 主题注入)、notifications(未读数)模块级 reactive store;style.css:全局设计令牌(--color-*、--space-*、中文字体栈)与基础样式;router.ts+ 登录页骨架 + 三大区(portal / console / admin)空布局与登录守卫(vue-router 引入以 #5 中 @LinuxSuRen 的确认为准);
- 组件规范:
<script setup lang="ts">,ref优先,派生值computed,定时器 / 监听器onUnmounted清理; - 极简依赖:除选型表列出的依赖外,新增任何依赖需在 PR 中说明理由。
Expect
vue-tsc -b && vite build通过;pnpm dev可打开登录页骨架;- 与 #8 的后端联调
/api/me(可先返回 mock 结构)。
Potential TODO list
- Vite + Vue 3 + TS 工程初始化
- api.ts 封装与错误码映射表骨架
- 设计令牌 style.css
- 登录页 + 路由骨架 + 登录守卫
- me / tenant store 与主题注入
依赖
#5 评审通过(vue-router 待确认)。
- Dominant language
- No language data
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/tick-flow
-
项目门面:logo、README 与仓库 AboutPossibly taken @linuxsuren-fs claimed this 9 days ago. Opendocumentation good first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 20/100
LinuxSuRen/tick-flow#20 ·
-
编写四个内置种子模板包Possibly taken @linuxsuren-fs claimed this 9 days ago. Opengood first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 35/100
LinuxSuRen/tick-flow#19 ·
-
实现处理工作台前端:列表、详情与处理动作Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 5/5 Over a week Newbie friendliness 25/100
LinuxSuRen/tick-flow#18 ·
-
实现提交门户前端:表单渲染器与我的工单Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#17 ·
-
实现站内通知与邮件通知Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#16 ·
All issues in LinuxSuRen/tick-flow
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ubugeeei-prod/vize#13586 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
UKGovernmentBEIS/inspect_ai#6733 ·
Maintainers usually reply within 1 day
-
area:tooling priority:p3 scope:infrastructure size:s status:ready type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug schema
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day