184 Commits
dev ... master

Author SHA1 Message Date
6826201da9 update login page II 2024-09-23 04:36:01 +08:00
098d06737f update login page 2024-09-23 04:26:58 +08:00
a87287653a no ask before updating 2024-03-13 11:32:11 +08:00
0ac7d2f601 update api address in github action 2024-03-13 11:24:24 +08:00
f0e84adcbd yarn v4 & not using Zero-Installs 2024-01-02 19:09:10 +08:00
399f29ad37 storage base from api base 2023-11-25 21:09:12 +08:00
caaa4a15de update storage address 2023-10-16 19:53:12 +08:00
4aa09c2cc3 fix bugs 2023-05-17 03:18:16 +08:00
e5bd8da921 Revert "use gcore for PUBLIC_URL"
This reverts commit a78672beef.
2023-05-06 13:55:42 +08:00
effa4fd113 update set-output to environment files 2023-05-05 23:56:12 +08:00
a78672beef use gcore for PUBLIC_URL 2023-05-05 23:45:10 +08:00
a931a8b87e fix some UI issues 2023-05-05 23:45:10 +08:00
ed582ebde5 reverse replies for reply timeline 2023-05-05 22:19:50 +08:00
570f59c6e5 sort by attention timeline 2023-05-05 22:06:50 +08:00
b27be7b43e show user count 2023-05-04 04:06:54 +08:00
19769ad0d8 not change position after inserting file 2023-05-04 01:37:29 +08:00
f255f46967 margin for p 2023-05-04 00:49:39 +08:00
dd31cdbffc update storage address 2022-11-30 22:10:09 +08:00
b1a16f6df8 upadte email login description 2022-11-20 21:59:13 +08:00
0738a06e5a update some text 2022-11-20 19:10:26 +08:00
4cc7688f41 better email login 2022-11-20 19:06:55 +08:00
b156368dc7 support github login 2022-11-13 03:14:55 +08:00
e170afe2a5 email login 2022-11-12 23:55:18 +08:00
b97359c35d not show down vote number directly 2022-10-25 22:20:16 +08:00
6aab68b3c4 fix word-break 2022-10-23 13:33:58 +08:00
9bc2474348 fix some UI issues 2022-10-20 23:38:57 +08:00
0d787e1194 auto logout for 401 2022-10-17 21:14:12 +08:00
dd1ecd724d change default referrer policy to support old browsers 2022-10-17 21:01:21 +08:00
6a2d76577d update fold text 2022-10-16 23:11:26 +08:00
dbf1e1694b fix some UI problems 2022-10-16 22:54:09 +08:00
6472f59cd1 update up and down vote UI 2022-10-16 13:18:52 +08:00
f8c912a6d5 can cancel reaction & fold if too many downvote 2022-10-16 03:25:42 +08:00
a3841ff54a feat: upvote & downvote 2022-10-16 03:25:42 +08:00
5d8ae4368e fix bug 2022-10-16 03:25:42 +08:00
2857c8ff13 fix: icon lock for !allow_search 2022-10-14 10:06:08 +08:00
d9bb62a1b5 update iconmoon 2022-10-14 09:27:02 +08:00
10e9e49844 Merge commit 'e2544278c969a6dde5d8d2fc4b9442e36682622f' 2022-10-05 10:20:42 +08:00
e2544278c9 default allow search 2022-10-05 10:18:39 +08:00
c976a67a65 fix: refresh poll result correctly 2022-09-29 00:25:29 +08:00
22304cb03d show admin list & you are admin 2022-09-26 01:48:33 +08:00
30006ca528 new set title api with title secret 2022-09-26 00:22:43 +08:00
f586337f78 fix: poll 2022-09-21 17:17:41 +08:00
21ca1f0ba1 预测投票后结果,优化投票操作流畅度 2022-09-05 21:40:28 +08:00
e2505377cd fix hashchange listener 2022-09-01 00:49:12 +08:00
1b2800e386 better poll 2022-08-31 22:31:55 +08:00
1d225eaddc fix warning 2022-08-30 23:05:55 +08:00
ebf51ec34a better display announcement 2022-08-30 21:21:31 +08:00
aac1f8661c better update announcement 2022-08-30 00:58:45 +08:00
011b0fed76 change announcement position 2022-08-30 00:20:32 +08:00
dce78ac129 style of announcement-header 2022-08-30 00:06:19 +08:00
5cba7c9ed1 fix: clear backup after posting 2022-08-30 00:00:16 +08:00
99b703017b feat: support announcement 2022-08-29 23:47:40 +08:00
e6140c32a8 feat: link for image 2022-08-25 21:21:54 +08:00
e0afdf0074 fix: info.room_id 2022-08-24 00:19:02 +08:00
e1f3fafd58 check service work update on reload & init room 2022-08-24 00:10:52 +08:00
7b3eb9fbec feat: 彻底不显示已屏蔽的评论 2022-08-19 14:47:00 +08:00
7fb201d742 feat: set room by you self 2022-08-19 11:43:13 +08:00
438bba8439 feat: room(分区) 2022-08-19 10:01:32 +08:00
2f8db7ce9d fix: hide set notification button 2022-08-18 12:44:04 +08:00
e45a239015 Merge pull request '修复被引用的树洞不折叠' (#16) from ferrahit67/hole_thu_frontend:master into master
Reviewed-on: #16
2022-08-18 11:30:35 +08:00
35dd056d1b fix: fix quoted posts wouldn't fold 2022-08-17 20:20:54 -07:00
4a75ae3cf4 feat: prepare for push notification II 2022-08-17 01:01:13 +08:00
c1431ba051 feat: prepare for push notification 2022-08-13 18:07:48 +08:00
7df8b39061 feat: dynamic backend 2022-08-13 13:27:57 +08:00
bedf939f4d fix poll votes color under dark mode 2022-08-09 21:54:01 +08:00
6156cdcce8 change github action detail 2022-08-09 00:51:16 +08:00
aecf926519 fix PWA 2022-08-09 00:51:16 +08:00
d0a392e6fc fix SafeTextarea clear() 2022-08-08 23:36:06 +08:00
9b4dbeb3a6 fix github action 2022-08-08 23:36:06 +08:00
a7d314029e use pnp 2022-08-08 23:36:06 +08:00
8c003ab77e bump everything
* create-react-app 5.0.1

* many other dependencies

* yarn 3.2.2 with Zero-Installs

* fix eslint
2022-08-08 23:35:58 +08:00
8e86291728 fix // in file url 2022-08-01 10:25:40 +08:00
11b25cea5f set REACT_APP_STORAGE for github deploy 2022-07-31 23:15:52 +08:00
ed176c6a71 referer for link to storage 2022-07-31 23:05:35 +08:00
3947696046 fix re 2022-07-31 21:49:39 +08:00
c5eaf8b810 stop use ipfs 2022-07-31 16:50:11 +08:00
979ddfe35b use api v2 for add comment 2022-07-31 14:53:02 +08:00
d4a51a9626 fix: 不对代码块中内容做解析 2022-07-31 14:21:10 +08:00
b38abba4bd 只识别有http的链接 2022-07-31 12:29:14 +08:00
d842a5205b 举报时手动选择是否隐藏 2022-07-21 14:06:18 +08:00
hole-thu
efa94e45f9 Update README.md 2022-06-12 19:18:28 +08:00
hole-thu
c54083fc18 Update README.md 2022-06-12 19:03:20 +08:00
hole-thu
c1245d4c39 Update github action work branch 2022-06-12 18:58:34 +08:00
30225b0476 update backend address 2022-06-01 21:38:52 +08:00
9909f1a1c1 feat: edit local attention 2022-05-31 23:22:15 +08:00
057e3522df update ipfs gateway list 2022-05-31 21:08:15 +08:00
cc5e89c13e block_cw 2022-05-31 20:37:47 +08:00
3514a97ad7 block_words works for cw 2022-05-31 13:16:52 +08:00
ba79f696d9 change default config 2022-05-28 21:19:22 +08:00
66d7d3da38 可屏蔽临时帐号 2022-05-28 16:21:27 +08:00
5128cb26de fix copy 2022-05-22 14:13:55 +08:00
3ce8b91eb0 兼容 ###token= 格式 2022-05-22 14:01:41 +08:00
dc6fc393cd update backend address 2022-05-17 22:38:29 +08:00
9b2b8d71b5 set backend and version env 2022-05-02 19:20:44 +08:00
93e18d2704 add packages cache for github action 2022-05-02 16:04:31 +08:00
170be496d6 github action auto deploy to github page 2022-05-02 15:52:07 +08:00
7549b83730 支持嵌入音频 2022-04-17 22:42:50 +08:00
de7ac42f65 优化文件上传:提供多ipfs网关查询 2022-04-17 22:33:34 +08:00
f7fc9a98e4 新自动拉黑机制,阈值可配置 2022-04-10 15:29:53 +08:00
29ecee5e56 添加后端开源信息 2022-04-08 01:06:25 +08:00
eb311d92f6 say goodbye to xmcp/react-lazyload 2022-04-08 00:42:21 +08:00
9ecc008341 update README 2022-04-08 00:15:44 +08:00
6e1ea641f6 更新README,提醒有submodule 2022-04-07 23:58:32 +08:00
6418387887 不对管理员隐藏被拉黑内容 2022-04-06 22:21:59 +08:00
84a43b618c 调整临时账号颜色 2022-04-03 00:34:32 +08:00
1ba059f077 屏蔽词作用于评论区 && 非列表模式可看被屏蔽洞 && 修复折叠时未隐藏被屏蔽洞 2022-04-03 00:31:05 +08:00
4f5d324ad6 ipfs gateway后端列表,自动拉取与排序 2022-04-02 23:53:39 +08:00
5acd48bf4d 新上传格式 2022-04-01 14:26:50 +08:00
55f0e77759 fix: 修改上传文件数据格式 2022-04-01 04:49:27 +08:00
2c023dfe22 fix: 修复删除与编辑折叠警告的判断 2022-04-01 03:42:14 +08:00
bbb6e0db77 显示上传文件进度 2022-04-01 03:39:08 +08:00
a884451a74 支持上传文件 2022-04-01 01:25:15 +08:00
092fbc6c6b 补上gif文件 2022-03-31 01:08:07 +08:00
302d59e8f9 fix bugs 2022-03-31 00:39:44 +08:00
753781ad1a 优化图片加载时的显示 2022-03-31 00:19:06 +08:00
1a623785e2 前端标注临时用户 2022-03-30 23:17:47 +08:00
528daa84fb formatting 2022-03-30 22:27:10 +08:00
bc076bd336 fix: 没有referrer影响登录 2022-03-28 11:30:45 +08:00
f91c2c8e0c 支持嵌入视频 2022-03-28 01:06:05 +08:00
8877d51656 修复一些状态处理错误 2022-03-27 02:46:32 +08:00
bdc6698c45 fix bugs 2022-03-24 16:29:51 +08:00
180b1e4796 没有hot_score/为0的时候不展示 2022-03-24 16:23:15 +08:00
2d35531b1f show hot score for everyone and disable edit 2022-03-24 15:20:05 +08:00
50b762ef4b 修复评论区命名 2022-03-24 14:03:58 +08:00
88677e9b40 标记搜索关键词 2022-03-23 23:41:15 +08:00
098e34edce fix: attention 2022-03-23 00:54:46 +08:00
0c75c04b4c 强化搜索 2021-12-24 22:33:14 +08:00
694b1fe836 文案与界面 2021-12-24 01:41:22 +08:00
5ee8e57f0e 优化编辑折叠警告与投票 2021-12-24 00:43:08 +08:00
378c5fa300 展示被举报 2021-12-24 00:16:58 +08:00
e78bf90799 支持自定义头衔 2021-12-24 00:06:19 +08:00
920cf1e5a7 调整投票样式 2021-12-23 01:43:28 +08:00
74c6857b83 加载本地收藏 2021-12-23 00:13:33 +08:00
6e7b86416b 持久化存储是否允许搜索 等细节优化 2021-12-22 23:03:25 +08:00
9663826794 向管理员展示被拉黑与屏蔽情况 2021-12-20 13:39:38 +08:00
51194ec3f8 使用emoji 2021-12-20 01:50:46 +08:00
17110234c9 拉黑与屏蔽 2021-12-20 01:13:04 +08:00
a71ea7137f 优化显示 2021-12-19 22:51:02 +08:00
e19acc6bab 先象征性避免一下tmp刷票 2021-12-19 20:11:47 +08:00
efeb2e5c05 支持投票 2021-12-19 19:29:06 +08:00
ef48070eeb 针对tg来源优化设置临时token后缀 2021-12-18 21:17:01 +08:00
ff50857071 Merge pull request 'bug: 修复LATEST_POST_ID被错误更新的bug' (#6) from ferrahit67/hole_thu_frontend:ferrahit67-patch-1 into master
Reviewed-on: #6
2021-12-18 20:42:16 +08:00
8116854f74 修复LATEST_POST_ID被错误更新的bug 2021-12-18 09:26:07 +08:00
05a69cd839 热度排序,随机排序 2021-12-18 03:28:41 +08:00
a93e59069a 保存关注到本地,时间线分子模式 2021-12-17 00:11:05 +08:00
be55d3686a 屏蔽内容完全不显示 & 添加一些默认屏蔽词 2021-12-16 12:55:03 +08:00
f5f1136a1f 优化导出方式 2021-12-16 00:17:12 +08:00
90fbfb0e34 可导出关注列表 2021-12-15 21:17:31 +08:00
a4716de4f5 保存折叠和是否允许搜索草稿 2021-12-15 18:57:32 +08:00
08c5594622 避免临时token撞车 2021-12-15 11:14:04 +08:00
3fa49b9ad6 可选允许搜索 2021-12-15 01:11:34 +08:00
3d8a443166 提示tg群方式登陆 2020-09-18 11:17:11 +08:00
43b47e374f fix bugs 2020-09-12 16:07:38 +08:00
7199d5ecf4 结构与界面 2020-09-12 12:29:34 +08:00
1932e8910b 支持按最新回复排序 2020-09-10 21:22:25 +08:00
b97b8d718f 界面细节 2020-09-09 16:36:59 +08:00
ad33f96a17 可使用T大树洞登陆 2020-09-09 16:14:21 +08:00
8ee3bca212 token信息转移到headers 2020-09-08 20:21:11 +08:00
7565d46f01 css blockquote 2020-09-08 18:43:39 +08:00
a5e3b74843 支持更新折叠警告 2020-09-08 17:46:27 +08:00
56c475c779 取消图片链接 2020-09-08 15:45:42 +08:00
aed2c2a9cb 清理文件 同步更新likenum 2020-09-08 15:32:26 +08:00
e7d57c9d7a 15分钟自命名临时用户 2020-09-08 11:22:17 +08:00
6d4d637585 补充基于,修改about 2020-09-08 09:44:48 +08:00
0c3a608992 typo 2020-09-07 20:58:30 +08:00
f6a9d4c58d 清理文件 2020-09-07 20:49:04 +08:00
601a444da2 优化图片显示 2020-09-07 20:19:03 +08:00
a2888e2f37 fix bugs 2020-09-07 18:31:54 +08:00
1aa50cd661 typo 2020-09-07 15:35:14 +08:00
c021a2fa58 补全og 2020-09-07 15:26:41 +08:00
f70ce23843 发表失败详细信息 2020-09-07 14:26:39 +08:00
8bca6e5b1e 上线准备 2020-09-07 14:07:33 +08:00
05aad972d6 点击tag搜索,插图依靠图片外链 2020-09-07 11:23:29 +08:00
b539919550 修改设置(折叠豁免、忽略所有折叠洞) 2020-09-04 23:20:32 +08:00
6b45b4d53d 增加删除后的刷新 2020-09-04 20:52:39 +08:00
e79910b915 完成系统日志 2020-09-04 20:19:32 +08:00
bb008bc0fa 实现删除 2020-09-04 13:11:58 +08:00
50b1274b98 前端生成各楼代号 2020-09-03 22:36:21 +08:00
9e2328bf73 使用getlist传输大部分评论,大幅减少网络请求数量并保证attention始终是最新的 2020-09-03 19:25:55 +08:00
99f99d39f7 功能适配与界面调整若干 2020-09-03 13:50:43 +08:00
cb647745f4 兼容sw规则 2020-09-02 18:05:54 +08:00
6f7ad41591 完成登陆的前端,修改api 2020-09-02 17:12:15 +08:00
486948ad6f 合并submodule 2020-09-02 12:08:13 +08:00
1f3e49738e 处理部分不优雅的内容,改名 2020-09-02 11:35:13 +08:00
436 changed files with 46905 additions and 16980 deletions

1
.env
View File

@@ -1,2 +1,3 @@
REACT_APP_VERSION=$npm_package_version
EXTEND_ESLINT=true
GENERATE_SOURCEMAP=false

View File

@@ -7,7 +7,8 @@
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended",
"prettier/react"
"react-app",
"react-app/jest"
],
"globals": {
"Atomics": "readonly",
@@ -31,8 +32,7 @@
}
},
"ignorePatterns": [
"src/infrastructure/",
"src/react-lazyload/"
"src/infrastructure/"
],
"rules": {
"prettier/prettier": "warn",
@@ -52,4 +52,4 @@
}
]
}
}
}

34
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Auto Deploy
on:
push:
branches:
- 'master'
jobs:
gh_pages:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: "Install Dependencies"
run: yarn
- name: "Get current date"
run: echo "date=$(date --rfc-3339=date)" >> "$GITHUB_ENV"
- name: "Build"
run: yarn build
env:
REACT_APP_ROOM_ID: 1
REACT_APP_BACKEND: "https://api.tholeapis.top/"
REACT_APP_BUILD_INFO: "v-${{ env.date }}"
- name: "Deploy with gh-pages"
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -u "github-actions-bot <support+actions@github.com>" -m "$COMMIT_MESSAGE"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
COMMIT_MESSAGE: "Build for [${{ github.event.head_commit.message }}]"

9
.gitignore vendored
View File

@@ -2,3 +2,12 @@
node_modules/
/build/
build.*
*.log
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

7
.gitmodules vendored
View File

@@ -1,7 +0,0 @@
[submodule "src/react-lazyload"]
path = src/react-lazyload
url = https://github.com/xmcp/react-lazyload
[submodule "src/infrastructure"]
path = src/infrastructure
url = https://github.com/thuhole/infrastructure

25197
.pnp.cjs generated Executable file

File diff suppressed because one or more lines are too long

2090
.pnp.loader.mjs generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +0,0 @@
language: node_js
node_js:
- 12
cache:
directories:
- node_modules
after_success:
- chmod +x ./travis_deploy.sh
- ./travis_deploy.sh

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More