出现这个错误表示未获取到配置文件
13 |可能是 API 接口地址配置不正确,或者是配置文件不存在
14 | > 15 | } 16 | /> 17 | ) 18 | } 19 | -------------------------------------------------------------------------------- /src/components/universal/Image/__test__/__snapshots__/index.spec.tsx.snap: -------------------------------------------------------------------------------- 1 | // Vitest Snapshot v1 2 | 3 | exports[`Card > snapshot 1`] = ` 4 |出现这个错误表示未获取到初始数据
16 |可能是 API 接口地址配置不正确,或者后端服务出现异常
17 |API 地址:{API_URL}
18 | > 19 | } 20 | /> 21 | ) 22 | } 23 | -------------------------------------------------------------------------------- /src/components/widgets/Author/index.module.less: -------------------------------------------------------------------------------- 1 | .author { 2 | display: flex; 3 | gap: 0.8em; 4 | &-info { 5 | min-width: 0; 6 | display: flex; 7 | flex-direction: column; 8 | justify-content: center; 9 | > a { 10 | color: var(--juejin-font-1); 11 | font-weight: 500; 12 | display: inline-block; 13 | vertical-align: top; 14 | overflow: hidden; 15 | text-overflow: ellipsis; 16 | white-space: nowrap; 17 | font-size: 1.333rem; 18 | font-weight: 500; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/services/api/post.ts: -------------------------------------------------------------------------------- 1 | import type { 2 | IPostListParam, 3 | IPostListResponse, 4 | IPostModel, 5 | } from '~/types/api/post' 6 | 7 | import type { ApiResponse } from '../../types/api' 8 | import { Get } from '../server' 9 | 10 | function postListRequest( 11 | param: IPostListParam, 12 | ): ApiResponse下载稀土掘金APP
34 |一个帮助开发者成长的社区
35 |
94 |
95 | {value}
96 |
97 |
98 |
99 |
2 |
3 |
4 |
5 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
44 | 预览 45 | · 46 | 开发 47 | · 48 | 部署 49 |
50 | 51 | ## 技术栈 52 | 53 | - 语言:TypeScript 54 | - 框架:Nextjs 55 | - 测试:Vitest、@testing-library/react 56 | - 构建工具:Webpack 57 | - 包管理器:pnpm 58 | - 样式:Less、Less Module 59 | - UI:Arco Design 60 | - 状态管理:Mobx 61 | - 代码风格:Eslint、Prettier 62 | - 代码提交:Husky、Commitlint、lint-staged、cz-git、bump-version 63 | 64 | ## 预览 65 | 66 |  67 |  68 |  69 |  70 | 71 | ## 开发 72 | 73 | ```bash 74 | git clone https://github.com/Bocchi-Developers/juejin.git 75 | cd juejin 76 | pnpm i 77 | pnpm dev 78 | ``` 79 | 80 | ## 部署 81 | 82 | ```bash 83 | git clone https://github.com/Bocchi-Developers/juejin.git 84 | cd juejin 85 | 编辑 env 86 | pnpm i 87 | pnpm build 88 | pnpm prod:pm2 89 | ``` 90 | 91 | ## 维护者 92 | 93 ||
97 |
98 | 104 | 105 | Suemor 106 | 107 | 108 | |
109 |
110 |
111 | 117 | 118 | wexx 119 | 120 | 121 | |
122 |
123 |
124 | 130 | 131 | GrittyB 132 | 133 | 134 | |
135 |
136 |
137 |
138 | 144 | 145 | jiang 146 | 147 | 148 | |
149 |