-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ZJU-CC98/dev
release: v1.0.0-beta
- Loading branch information
Showing
239 changed files
with
7,752 additions
and
6,053 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "10" | ||
|
||
install: | ||
- npm install | ||
|
||
script: | ||
- npm run type-check | ||
- npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 记录页面的报错处理情况 | ||
|
||
## 看帖页面(/topic) | ||
对index发出的第一个请求,即请求topicinfo进行处理 | ||
|
||
**navigate** | ||
* 401 -用户未登录、用户权限不够、用户使用代理查看某些帖子 | ||
* 403 - | ||
* 404 -用户输错路由 | ||
* 50* -服务器内部错误 | ||
|
||
评分操作进行处理(通过message) | ||
|
||
**notification** | ||
* 'cannot_rate_yourself' - '您不能给自己评分' | ||
* 'has_rated_tody' -'您今天已经评过分了,请明天再来' | ||
* 'you_cannot_rate' -'您发帖还不足500,不能评分' | ||
* 'has_rated_this_post' -'您已经给这个贴评过分了' | ||
* 'post_user_not_exists' -'这个回复的账号已经不存在了' | ||
|
||
回帖处理 | ||
|
||
TODO | ||
|
||
编辑处理 | ||
|
||
TODO | ||
|
||
## 版面页面(/board) | ||
|
||
**navigate** | ||
|
||
对index发出的第一个请求,即请求boardInfo进行处理 | ||
* 401 -用户未登录、用户权限不够、用户使用代理查看某些帖子 | ||
* 403 - | ||
* 404 -用户输错路由 | ||
* 50* -服务器内部错误 | ||
|
||
## 版面列表 (/boardList) | ||
|
||
**navigate** | ||
|
||
* 50* -服务器内部错误 | ||
|
||
## 主页 (/) | ||
|
||
**notification** | ||
|
||
* 50* -服务器内部错误 | ||
|
||
## 热门(/hottopic) | ||
**notification** | ||
|
||
* 50* -服务器内部错误 | ||
|
||
## 登陆 (/login) | ||
|
||
**notification** | ||
|
||
* 401 -用户名密码错误 | ||
* 50* -服务器内部错误 | ||
|
||
## 关注 (/myfollow)新帖 (/newTopics)搜索(/search) | ||
对获取关注信息的api进行处理 | ||
|
||
**navigate** | ||
|
||
* 401 -用户未登录 | ||
* 50* -服务器内部错误 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh-cmn-Hans"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | ||
<meta name="theme-color" content="#000000"> | ||
<!-- | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="theme-color" content="#000000"> | ||
<!-- | ||
manifest.json provides metadata used when your web app is added to the | ||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="/manifest.json"> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/icons/snowball-apple-144.png" > | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="default"> | ||
<meta name="apple-touch-fullscreen" content="yes" /> | ||
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"> --> | ||
<title>CC98 PWA</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
<link rel="manifest" href="/manifest.json"> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/icons/snowball-apple-144.png"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="default"> | ||
<meta name="apple-touch-fullscreen" content="yes" /> | ||
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"> --> | ||
<title>CC98 PWA</title> | ||
</head> | ||
|
||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
<div id="root"></div> | ||
<div id="snackbar"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
--> | ||
</body> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
declare module '@cc98/api' { | ||
export interface IBasicTopic { | ||
/** | ||
* 帖子id | ||
*/ | ||
id: number | ||
/** | ||
* 版面id | ||
*/ | ||
boardId: number | ||
/** | ||
* 是否内网可见 | ||
*/ | ||
isInternalOnly: boolean | ||
/** | ||
* 是否投票贴 | ||
*/ | ||
isVote: boolean | ||
/** | ||
* 帖子状态 | ||
*/ | ||
status: number | ||
/** | ||
* 帖子类型 | ||
*/ | ||
type: number | ||
} | ||
} |
Oops, something went wrong.