Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v1.0.0-beta #18

Merged
merged 170 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
10d9bfe
fix tslint,post model中的代码优化
Dearkano Nov 12, 2018
85ea604
fix =>hooks
Dearkano Nov 12, 2018
b8af947
refactor: timeago instead day.js
Deturium Nov 12, 2018
2f90909
add focus
Dearkano Nov 12, 2018
36deb3f
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Nov 12, 2018
a06f0e0
feat: useGlobalContainer
Deturium Nov 13, 2018
42afafd
refactor: restore dayjs
Deturium Nov 13, 2018
0fd69d9
refactor: InfList use hooks
Deturium Nov 13, 2018
8ea76b9
update: @types/react
Deturium Nov 14, 2018
7a39c1d
fix: ref
AsukaSong Nov 14, 2018
c44e742
refactor: useContainer
Deturium Nov 14, 2018
433eff0
refactor
Deturium Nov 15, 2018
9035b62
component
c708423 Nov 15, 2018
dc64fc6
1
c708423 Nov 15, 2018
8712f61
2
c708423 Nov 15, 2018
c3020f4
refactor: board=>hooks
Dearkano Nov 15, 2018
528043a
fix: proxy
Deturium Nov 15, 2018
65fead9
refactor: post=>hooks
Dearkano Nov 15, 2018
fdcaeab
Merge branch 'refactor' of https://github.com/ZJU-CC98/CC98-PWA into …
Dearkano Nov 15, 2018
8a73fee
fix: tslint
Dearkano Nov 15, 2018
2fc76f1
update:post action UI
Dearkano Nov 15, 2018
cd82f77
refactor: usercenter newtopic search=>hooks
Dearkano Nov 15, 2018
050f299
fix: log in
adddna Nov 15, 2018
2e38611
add:简单错误处理
Dearkano Nov 15, 2018
1496cf5
feat: ubb theme
adddna Nov 15, 2018
0cdf275
Merge branch 'refactor' into dev
Dearkano Nov 16, 2018
dcfb33e
fix:异步获取版面名
Dearkano Nov 16, 2018
a57f0ed
fix: 使用代理的bug,补充IBoard类型,添加部分报错信息
Dearkano Nov 16, 2018
5593c0f
refactor: usercenter=>hooks
Dearkano Nov 16, 2018
f1fe194
add: service的注释
Dearkano Nov 16, 2018
88939ba
feat:主页 初步
Dearkano Nov 16, 2018
860954c
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
adddna Nov 16, 2018
f8be1d0
add: 签到改为一级标签
Dearkano Nov 16, 2018
bc6bf2f
fix ubb param & update package.json
adddna Nov 16, 2018
4864d37
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
adddna Nov 16, 2018
1fbae97
fix: 轮播图改为md的
Dearkano Nov 16, 2018
22b4625
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Nov 16, 2018
1048d92
fix:轮播图背景
Dearkano Nov 16, 2018
4cdb346
add:本周本月历史上的今天
Dearkano Nov 16, 2018
c5060bc
Update src/pages/HotTopic/index.tsx
Dearkano Nov 16, 2018
2d590e4
remove: Paper and #15 [skip ci]
Deturium Nov 16, 2018
652bd9c
editor组件
c708423 Nov 16, 2018
9f70adc
Merge branch 'refactor--editor-use-hook' into dev
c708423 Nov 16, 2018
552a9da
compose 页面 发帖hook重构
c708423 Nov 16, 2018
56c1472
回帖hook
c708423 Nov 16, 2018
a007375
compose 引用
c708423 Nov 17, 2018
b873238
add:About页
Dearkano Nov 17, 2018
f5189b6
fix about图片
Dearkano Nov 17, 2018
45e71fa
remove: model
Deturium Nov 17, 2018
b0f7056
feat: 编辑
c708423 Nov 17, 2018
190cdb5
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
c708423 Nov 17, 2018
01ff602
fix: proxy setting
Deturium Nov 17, 2018
be2c894
feat: CacheRouter
Deturium Nov 17, 2018
8c83238
fix: CacheRouter
Deturium Nov 17, 2018
d62712e
fix: setting
Deturium Nov 17, 2018
f689e3b
fix: default Proxy
Deturium Nov 17, 2018
4735cb0
fix: bindURL & split Drawer
Deturium Nov 18, 2018
373eae9
hooks: useFetcher
Deturium Nov 19, 2018
29537b0
feat: restyle BoardList
Deturium Nov 19, 2018
7a95765
fix: default host config
AsukaSong Nov 20, 2018
9d76d12
fix typo
AsukaSong Nov 20, 2018
a78fcb4
refactor: topics
Deturium Nov 20, 2018
99d6912
refactor: logIn & history
Deturium Nov 22, 2018
c584078
refactor: TopiclistItem
Deturium Nov 22, 2018
fa02380
fix: TopicItem
Deturium Nov 22, 2018
662c5d7
chore: type-check
Deturium Nov 22, 2018
7904f02
refactor: message to hooks
AsukaSong Nov 23, 2018
549c56e
refactor: UserCenter
Deturium Nov 27, 2018
dfae85e
refactor: styled-components
Deturium Nov 29, 2018
09767c6
reafactor: topic
Deturium Nov 30, 2018
30dba34
update: Actions
Deturium Nov 30, 2018
3d5d947
update: Topic
Deturium Nov 30, 2018
f13ccb6
update: Topic Awards
Deturium Dec 3, 2018
d6ed9a5
refactor: topic done
Deturium Dec 4, 2018
068597a
Merge pull request #16 from ZJU-CC98/refactor-topic
Deturium Dec 4, 2018
eb33623
refactor: Editor 1/4
Deturium Dec 6, 2018
f69be9e
feat: reply topic
Deturium Dec 7, 2018
cf52248
refactor: message
Deturium Dec 8, 2018
03961f8
refactor: UBB
Deturium Dec 8, 2018
8c43886
fix: handler's isRecursive
Deturium Dec 8, 2018
cd9f280
refactor: router cache
Deturium Dec 9, 2018
e004124
feat: 追踪后返回按钮,最后编辑字段
Dearkano Dec 9, 2018
8d08c75
feat: router animation
Dearkano Dec 10, 2018
430bf85
fix: typo
Dearkano Dec 10, 2018
d959560
fix:LayoutCenter
Dearkano Dec 10, 2018
f47a27a
Revert "feat: 追踪后返回按钮,最后编辑字段"
Dearkano Dec 10, 2018
752a702
Revert "Revert "feat: 追踪后返回按钮,最后编辑字段""
Dearkano Dec 10, 2018
4ea3b59
feat: 评分功能&刷新一层楼的api
Dearkano Dec 12, 2018
8c9be6e
fix: add todo
Dearkano Dec 12, 2018
5fe3b6f
CR: Judge
Deturium Dec 14, 2018
b7ba8c0
feat: preview UBB
Deturium Dec 15, 2018
da3933a
refactor: InfList
Deturium Dec 15, 2018
86e56d9
fix: InfList height
Deturium Dec 15, 2018
c0a1615
refactor: Editor
Deturium Dec 16, 2018
c04520c
update: Editor
Deturium Dec 17, 2018
349d2ae
fix: typo
Dearkano Dec 17, 2018
be30535
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Dec 17, 2018
7ddba35
feat: 报错页面设计
Dearkano Dec 17, 2018
6f8bff7
feat: 各个页面的报错处理
Dearkano Dec 17, 2018
22eb28e
fix: 500页面 补充400
Dearkano Dec 17, 2018
e47922a
feat: snackbar
Deturium Dec 17, 2018
56dd280
feat: snackbar报错添加,登陆改完汉语
Dearkano Dec 17, 2018
bbf0e9a
fix: page修改
Dearkano Dec 17, 2018
afa279c
fix: 戳樱桃
Dearkano Dec 17, 2018
384073a
feat: 编辑器发新帖
c708423 Dec 17, 2018
a433341
Merge branch 'feat-post new topic' into dev
c708423 Dec 17, 2018
7b46cd8
refactor: error page
adddna Dec 17, 2018
b5c9fab
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
adddna Dec 17, 2018
5ebbd7e
feat: 编辑自己的帖子
c708423 Dec 17, 2018
fa006ab
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
c708423 Dec 17, 2018
faf1043
feat: 倒置看帖功能
Dearkano Dec 17, 2018
d788689
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Dec 17, 2018
dd2f92a
CR: Editor
Deturium Dec 17, 2018
7153a89
feat: 帮助
Dearkano Dec 17, 2018
6fd222a
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Dec 17, 2018
0bf56e6
fix: 代理跳转
Dearkano Dec 17, 2018
3651d9c
fix: reverse postList & Editor
Deturium Dec 17, 2018
f341c9e
fix: remove useless props
Deturium Dec 17, 2018
861e6f3
fix: 倒置列表bug
Dearkano Dec 18, 2018
36ee4a7
fix: TODOs
Dearkano Dec 18, 2018
0d4c719
feat: setting加入缓存页数
Dearkano Dec 18, 2018
9fd826f
fix: cache缓存加入setting
Dearkano Dec 18, 2018
4b06d39
fix: 版面关注bug
Dearkano Dec 18, 2018
cd085b3
fix: 编辑帖子权限
Dearkano Dec 18, 2018
ea2dc5d
fix: 401页面文字,帮助点击区域,登出改为最后一项,v0.18.5
Dearkano Dec 18, 2018
72d1b73
fix: 使用缓存board信息判断权限
Dearkano Dec 18, 2018
8cf9882
feat: 搜索无内容提示,回滚refresh topic
Dearkano Dec 18, 2018
f7d1eae
fix: 倒置算法
Dearkano Dec 18, 2018
74e5f45
feat 表情和图片
c708423 Dec 18, 2018
07d8cab
tsignore ref的一个不知道怎么改的错误
c708423 Dec 18, 2018
153957f
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
c708423 Dec 18, 2018
12f95f0
CR
Deturium Dec 18, 2018
71c5d9f
CR: Sticker
Deturium Dec 18, 2018
98e7538
feat: add new UBB tags
adddna Dec 18, 2018
4815aa0
FIX: 引用内容和非1L编辑的meta不显示
c708423 Dec 18, 2018
9e485ad
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
c708423 Dec 18, 2018
29063ec
fix: IConfig type def
Dearkano Dec 18, 2018
1ce683f
fix: EditorContainer init
Deturium Dec 18, 2018
6b72406
fix: editTopic
Deturium Dec 18, 2018
e7c464b
fix: import order feat: 管理(发米扣米删帖tp)
Dearkano Dec 18, 2018
156e419
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Dec 18, 2018
84dd42e
fix: 管理
Dearkano Dec 18, 2018
7565a95
refactor: help
Deturium Dec 18, 2018
196ee4a
fix: ci
Deturium Dec 18, 2018
236adcf
feat: priviledge service
Dearkano Dec 18, 2018
31dd10e
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
Dearkano Dec 18, 2018
297f334
revert: priviledge service
Dearkano Dec 18, 2018
7288000
fix: 编辑器表情包滚动tab
Dearkano Dec 18, 2018
7715c6d
feat: 折叠按钮集合
Dearkano Dec 18, 2018
4a3bd83
fix: 倒置算法&触发按钮菜单条件测试
Dearkano Dec 19, 2018
3ff1c77
refactor: Error Pages
Deturium Dec 19, 2018
08bb446
fix: gloabl style
Deturium Dec 19, 2018
3d69fdd
fix: 引用已删除帖子处理
Dearkano Dec 19, 2018
168b7bf
chore: sentry & ci
Deturium Dec 19, 2018
b6a218f
fix: travis script
Deturium Dec 19, 2018
c3230aa
feat: 编辑器删除确认
c708423 Dec 19, 2018
b9763fc
Merge branch 'dev' of https://github.com/ZJU-CC98/CC98-PWA into dev
c708423 Dec 19, 2018
1b3ba25
fix: Sentry init
Deturium Dec 19, 2018
869f122
fix: Editor comfirm clear
Deturium Dec 19, 2018
98c9afe
fix: font Roboto
Deturium Dec 19, 2018
b95dd3d
fix: confirm clear text
Deturium Dec 19, 2018
ed73ea3
fix: 图片上传的报错
c708423 Dec 19, 2018
177e62f
fix: 引用图标和位置
Dearkano Dec 19, 2018
1401511
fix: 点击send后清除编辑器内容
c708423 Dec 19, 2018
309a886
fix: 防止回帖风怒
c708423 Dec 19, 2018
c015fa1
解决和合并冲突 editor/index.tsx
c708423 Dec 19, 2018
2293b75
fix: quote when unlogIn
Deturium Dec 19, 2018
103e596
fix: 评分到service
Dearkano Dec 19, 2018
ad1e894
fix: Editor prevent resend
Deturium Dec 19, 2018
a6b3776
release: v1.0.0-beta
Deturium Dec 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,7 @@
["transform-imports", {
"@material-ui/core": { "transform": "@material-ui/core/${member}" },
"lodash-es": { "transform": "lodash-es/${member}" }
}]
],
"env": {
"development": {
"plugins": [
["emotion", { "sourceMap": true, "autoLabel": true }]
]
},
"production": {
"plugins": [
["emotion", { "hoist": true }]
]
}
}
}],
["babel-plugin-styled-components", { "ssr": false }]
]
}
12 changes: 12 additions & 0 deletions .travis.yml
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ CC98 Forum PWA version.

## 项目技术栈

- react@latest
- react@16.7.0-alpha.2

- @reach/router

- ​@material-ui/core@3

- emotion
- styled-component@4

- webpack@4

Expand Down
19 changes: 15 additions & 4 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ module.exports = {
outputPath: 'static/',
},
},
{
test: /\.(ttf|eot|woff|woff2)$/,
loader: 'file-loader',
options: {
name: 'fonts/[name].[ext]',
},
},
]
},

Expand All @@ -79,9 +86,14 @@ module.exports = {
inject: true,
}),

new CopyWebpackPlugin([
{ from: 'public/manifest.json', to: 'manifest.json' },
{ from: 'public/icons/', to: 'icons/' },
new CopyWebpackPlugin([{
from: 'public/manifest.json',
to: 'manifest.json'
},
{
from: 'public/icons/',
to: 'icons/'
},
]),

// workbox: https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin
Expand All @@ -92,4 +104,3 @@ module.exports = {
}),
],
}

69 changes: 69 additions & 0 deletions docs/error.md
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* -服务器内部错误
80 changes: 42 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,80 @@
{
"name": "cc98-pwa",
"version": "0.98.0-alpha",
"version": "1.0.0",
"description": "CC98 Forum PWA version.",
"author": "Hydrogen",
"license": "MIT",
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --progress --hot",
"build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js",
"bundle-analyze": "cross-env NODE_ENV=production webpack --config config/webpack.bundle-analyze.js",
"type-check": "tsc --noEmit",
"beautify-all": "yarn run prettier --config .prettierrc --write 'src/**/*.{ts,tsx}'",
"lint:ts": "tslint -c tslint.json --project tsconfig.json 'src/**/*.{ts,tsx}'",
"lint:ts-fix": "tslint -c tslint.json --project tsconfig.json 'src/**/*.{ts,tsx}' --fix"
},
"dependencies": {
"@aspnet/signalr": "^1.0.4",
"@cc98/state": "^1.0.0",
"@cc98/ubb-react": "^1.0.0",
"@material-ui/core": "^3.4.0",
"@aspnet/signalr": "^1.1.0",
"@cc98/ubb-core": "1.1.0",
"@material-ui/core": "^3.7.0",
"@material-ui/icons": "^3.0.1",
"@reach/router": "^1.2.1",
"dayjs": "^1.6.10",
"emotion": "^9.2.12",
"@sentry/browser": "^4.4.2",
"copy-to-clipboard": "^3.0.8",
"dayjs": "^1.7.8",
"lodash-es": "^4.17.11",
"prop-types": "^15.6.2",
"react": "16.7.0-alpha.0",
"react-dom": "16.7.0-alpha.0",
"react-emotion": "^9.2.12",
"remark": "^10.0.0",
"remark-react": "^4.0.3"
"react": "^16.7.0-alpha.2",
"react-dom": "16.7.0-alpha.2",
"remark": "^10.0.1",
"remark-react": "^5.0.1",
"styled-components": "^4.1.3",
"typeface-roboto": "^0.0.54",
"url-parse": "^1.4.4"
},
"devDependencies": {
"@babel/core": "^7.1.5",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.1.5",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.2.1",
"@babel/preset-env": "^7.2.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@types/lodash-es": "^4.17.1",
"@types/node": "^10.12.3",
"@types/reach__router": "^1.2.0",
"@types/react": "16.4.18",
"@types/react-dom": "^16.0.9",
"@types/reach__router": "^1.2.2",
"@types/react": "^16.7.17",
"@types/react-dom": "^16.0.11",
"@types/styled-components": "4.0.3",
"@types/url-parse": "^1.4.1",
"babel-loader": "^8.0.4",
"babel-plugin-emotion": "^9.2.11",
"babel-plugin-styled-components": "^1.9.4",
"babel-plugin-transform-imports": "^1.5.1",
"clean-webpack-plugin": "^0.1.19",
"copy-webpack-plugin": "^4.5.3",
"clean-webpack-plugin": "^1.0.0",
"copy-webpack-plugin": "^4.6.0",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"eslint-plugin-emotion": "^9.2.6",
"css-loader": "^2.0.0",
"file-loader": "^2.0.0",
"html-webpack-plugin": "^4.0.0-beta.2",
"husky": "^1.1.2",
"lint-staged": "^7.3.0",
"prettier": "^1.15.1",
"prettier-tslint": "^0.4.0",
"html-webpack-plugin": "^4.0.0-beta.5",
"husky": "^1.2.1",
"lint-staged": "^8.1.0",
"prettier": "^1.15.3",
"prettier-tslint": "^0.4.1",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.1.0",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.11.0",
"tslint-consistent-codestyle": "^1.13.3",
"tslint": "^5.12.0",
"tslint-config-airbnb": "^5.11.1",
"tslint-consistent-codestyle": "^1.14.1",
"tslint-eslint-rules": "^5.4.0",
"tslint-lines-between-class-members": "^1.3.1",
"tslint-microsoft-contrib": "^5.2.1",
"tslint-microsoft-contrib": "^6.0.0",
"tslint-react": "^3.6.0",
"typescript": "^3.1.3",
"typescript": "^3.2.2",
"url-loader": "^1.1.2",
"webpack": "^4.21.0",
"webpack": "^4.27.1",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.9",
"webpack-merge": "^4.1.4",
"workbox-webpack-plugin": "^3.6.2"
"webpack-dev-server": "^3.1.10",
"webpack-merge": "^4.1.5",
"workbox-webpack-plugin": "^3.6.3"
},
"lint-staged": {
"**/*.{ts,tsx}": [
Expand All @@ -80,7 +84,7 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "tsc --noEmit && lint-staged"
}
}
}
46 changes: 25 additions & 21 deletions public/index.html
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>
28 changes: 28 additions & 0 deletions src/@types/@cc98/IBasicTopic.d.ts
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
}
}
Loading