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

v0.3.0 prepare release code review request #289

Merged
merged 282 commits into from
May 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
7d84d91
mod: bump github.com/ethereum/go-ethereum from 1.10.16 to 1.11.2
dependabot[bot] Mar 6, 2023
de6cadd
mod: bump gorm.io/gorm from 1.24.5 to 1.24.6
dependabot[bot] Mar 6, 2023
d353e85
mod: bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.9.0
dependabot[bot] Mar 6, 2023
7961fa2
mod: bump github.com/tencentyun/cos-go-sdk-v5 from 0.7.35 to 0.7.41
dependabot[bot] Mar 6, 2023
7cad1e6
add postgresql ddl and optimize mysql/sqlite3 ddl
alimy Mar 10, 2023
76bf334
Merge pull request #228 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 10, 2023
cf8916f
Merge pull request #227 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 10, 2023
7cbc763
Merge pull request #226 from rocboss/dependabot/go_modules/dev/gorm.i…
alimy Mar 10, 2023
a0788b3
Merge pull request #225 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 10, 2023
81e022f
remove pkg/crypto pkg/sign and rename pkg/util => pkg/utils
alimy Mar 10, 2023
0b68e4b
add JsonBox type in pkg/types
alimy Mar 10, 2023
646c4cd
remove Deprecated:OldWeb feature
alimy Mar 10, 2023
8674217
fixed some error when use postgres database
alimy Mar 10, 2023
8418a45
Merge branch 'dev' into feature/deprecated-oldweb
alimy Mar 11, 2023
3480fae
Merge branch 'main' into dev
alimy Mar 11, 2023
89b7247
Merge branch 'dev' into feature/deprecated-oldweb
alimy Mar 11, 2023
c793120
mod: bump github.com/smartwalle/alipay/v3 from 3.1.8 to 3.2.0
dependabot[bot] Mar 13, 2023
ef6edbc
mod: bump github.com/onsi/gomega from 1.27.1 to 1.27.3
dependabot[bot] Mar 13, 2023
c9d87d7
mod: bump modernc.org/sqlite from 1.20.4 to 1.21.0
dependabot[bot] Mar 13, 2023
c64dbff
mod: bump github.com/fatih/color from 1.14.1 to 1.15.0
dependabot[bot] Mar 13, 2023
22e62bb
mod: bump github.com/bytedance/sonic from 1.8.1 to 1.8.4
dependabot[bot] Mar 13, 2023
512d4b6
Merge pull request #234 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 14, 2023
ebca17c
Merge pull request #233 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 14, 2023
bfbe27e
Merge pull request #232 from rocboss/dependabot/go_modules/dev/modern…
alimy Mar 14, 2023
04afd57
Merge pull request #231 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 14, 2023
65d531c
Merge pull request #230 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 14, 2023
5a7c5ae
mod: bump github.com/onsi/gomega from 1.27.3 to 1.27.4
dependabot[bot] Mar 14, 2023
a042b88
add go.uber.org/automaxprocs to set maxprocs automatic when run in co…
alimy Mar 14, 2023
758b4b3
Merge pull request #235 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 14, 2023
9695198
upgrade buf tool to version v1.15.1
alimy Mar 17, 2023
cd03184
add initial pwa support for web
alimy Mar 18, 2023
66a3b9c
Merge pull request #236 from alimy/pr-pwa-init
alimy Mar 18, 2023
525df82
add .vscode simple launch config for debug paopao-ce
alimy Mar 20, 2023
067b86a
reduce .vscode/lanch.json
alimy Mar 20, 2023
75f8173
mod: bump github.com/bytedance/sonic from 1.8.4 to 1.8.5
dependabot[bot] Mar 20, 2023
ce3b6a1
mod: bump github.com/goccy/go-json from 0.10.0 to 0.10.2
dependabot[bot] Mar 20, 2023
9584c62
mod: bump github.com/huaweicloud/huaweicloud-sdk-go-obs
dependabot[bot] Mar 20, 2023
6c3dd08
mod: bump go.uber.org/automaxprocs from 1.5.1 to 1.5.2
dependabot[bot] Mar 20, 2023
4d69970
merge from dev branch
alimy Mar 20, 2023
2b548fb
force add web/dist file
alimy Mar 20, 2023
e07df69
Merge branch 'dev' into feature/deprecated-oldweb
alimy Mar 20, 2023
efe76b1
Merge pull request #241 from rocboss/dependabot/go_modules/dev/go.ube…
alimy Mar 20, 2023
b98d915
Merge pull request #239 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 20, 2023
ad19945
Merge pull request #237 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 20, 2023
2f97231
Merge pull request #238 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 20, 2023
8bb15ff
add custom comment sort strategy support
alimy Mar 23, 2023
95de863
Merge pull request #243 from alimy/pr-comment-sort
alimy Mar 23, 2023
5ce6d12
web: upgrade package and optimize custom comment sort strategy displa…
alimy Mar 24, 2023
d04f438
web: optimize time display in tweet detail page
alimy Mar 24, 2023
6a6e7a7
web: optimize pretty time format util
alimy Mar 24, 2023
95f993b
merge from dev branch
alimy Mar 24, 2023
866fa79
mod: bump github.com/sourcegraph/conc from 0.2.0 to 0.3.0
dependabot[bot] Mar 27, 2023
6f76bb3
mod: bump github.com/aliyun/aliyun-oss-go-sdk
dependabot[bot] Mar 27, 2023
2f5be48
mod: bump google.golang.org/protobuf from 1.28.1 to 1.30.0
dependabot[bot] Mar 27, 2023
bde74db
mod: bump github.com/onsi/ginkgo/v2 from 2.9.1 to 2.9.2
dependabot[bot] Mar 27, 2023
f5ba521
mod: bump gorm.io/driver/postgres from 1.4.8 to 1.5.0
dependabot[bot] Mar 27, 2023
2a334de
Merge pull request #244 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 27, 2023
c3bb9e9
Merge pull request #245 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 27, 2023
975c998
Merge pull request #246 from rocboss/dependabot/go_modules/dev/google…
alimy Mar 27, 2023
6f87a1a
Merge pull request #247 from rocboss/dependabot/go_modules/dev/github…
alimy Mar 27, 2023
842fabe
Merge pull request #248 from rocboss/dependabot/go_modules/dev/gorm.i…
alimy Mar 27, 2023
77c768f
optimize web interface defile in mirc
alimy Mar 28, 2023
7ff5fab
Merge branch 'dev' into feature/deprecated-oldweb
alimy Mar 28, 2023
92a492d
use github.com/rueian/rueidis as Redis client and abstract RedisCache…
alimy Apr 2, 2023
9e0e6f7
Merge pull request #249 from alimy/pr-rueidis
alimy Apr 2, 2023
0552008
merge from dev branch
alimy Apr 2, 2023
d23d40f
update CHANGELOG.md
alimy Apr 2, 2023
5cb30bb
add RedisCacheIndex feature to support use Redis as Timeline Index cache
alimy Apr 2, 2023
a4d2ef8
Merge pull request #250 from alimy/pr-redis-cache-index
alimy Apr 2, 2023
c7b20c3
merge from dev branch
alimy Apr 2, 2023
b8d0ebc
update README.md
alimy Apr 3, 2023
68339bc
mod: bump github.com/pyroscope-io/client from 0.6.0 to 0.7.0
dependabot[bot] Apr 3, 2023
6ea914e
mod: bump modernc.org/sqlite from 1.21.0 to 1.21.1
dependabot[bot] Apr 3, 2023
c0d44a3
mod: bump github.com/minio/minio-go/v7 from 7.0.49 to 7.0.50
dependabot[bot] Apr 3, 2023
923d76f
mod: bump google.golang.org/grpc from 1.53.0 to 1.54.0
dependabot[bot] Apr 3, 2023
2335fb7
Merge pull request #252 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 3, 2023
2ef2fab
Merge pull request #253 from rocboss/dependabot/go_modules/dev/modern…
alimy Apr 3, 2023
99c4517
Merge pull request #254 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 3, 2023
f844019
Merge pull request #255 from rocboss/dependabot/go_modules/dev/google…
alimy Apr 3, 2023
b50579e
Merge branch 'dev' into feature/deprecated-oldweb
alimy Apr 3, 2023
9208101
update default configure for WebServer in internal/conf/config.yaml
alimy Apr 3, 2023
ac578dc
Merge pull request #256 from rocboss/feature/deprecated-oldweb
alimy Apr 3, 2023
57ad19f
update CHANGELOG.md
alimy Apr 3, 2023
8598c3e
update CHANGELOG
alimy Apr 3, 2023
d317bad
fixed CHANGELOG describe
alimy Apr 3, 2023
9a6aa1d
change proposal file name style to YYMMDDHH-*.md
alimy Apr 4, 2023
27902be
use github.com/cockroachdb/errors as std errors package instead
alimy Apr 4, 2023
7d6be9e
Merge pull request #257 from alimy/pr-crdb-errors
alimy Apr 4, 2023
005cbd3
add Sentry feature support
alimy Apr 4, 2023
0f2b271
Merge pull request #258 from alimy/pr-sentry
alimy Apr 4, 2023
5ee0dd5
update documents
alimy Apr 4, 2023
9f9041e
optimize Makefile
alimy Apr 4, 2023
7828253
optimize config process logic
alimy Apr 4, 2023
3147e25
optimize configure process logic
alimy Apr 4, 2023
6e24ee1
fixed conf typo
alimy Apr 4, 2023
874ae9a
just optimize typo in internal/conf package
alimy Apr 5, 2023
afd8fe1
fixed mysql ddl file p_contact is_delete field change to is_del name
alimy Apr 6, 2023
9724704
update CHANGELOG.md
alimy Apr 6, 2023
95f0bba
mod: bump github.com/bytedance/sonic from 1.8.5 to 1.8.7
dependabot[bot] Apr 10, 2023
795d66f
mod: bump github.com/gofrs/uuid
dependabot[bot] Apr 10, 2023
85847e0
mod: bump github.com/onsi/gomega from 1.27.5 to 1.27.6
dependabot[bot] Apr 10, 2023
3c75405
mod: bump github.com/smartwalle/alipay/v3 from 3.2.0 to 3.2.1
dependabot[bot] Apr 10, 2023
c4cc68a
mod: bump github.com/minio/minio-go/v7 from 7.0.50 to 7.0.51
dependabot[bot] Apr 10, 2023
585f9eb
Merge pull request #263 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 13, 2023
056ca08
Merge pull request #262 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 13, 2023
172f933
Merge pull request #261 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 13, 2023
04b4fd6
Merge pull request #260 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 13, 2023
eb759b8
Merge pull request #259 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 13, 2023
6851ff1
web: optimize tagExp expression
alimy Apr 11, 2023
b082a8f
frontend: optimize dark theme page and max width for main contents
alimy Apr 13, 2023
f059b95
update changelog
alimy Apr 13, 2023
a1160ca
frontend: add custom tweet max defualt length support
alimy Apr 14, 2023
1a4e277
update CHANGELOG.md
alimy Apr 14, 2023
a79171e
add simple tweet share support
alimy Apr 14, 2023
d1804f7
update web/dist
alimy Apr 14, 2023
46f079d
Merge pull request #264 from alimy/pr-share
alimy Apr 14, 2023
0af7430
optimize web frontend ux use drawer display menu and optimize Dockerf…
alimy Apr 15, 2023
1f653a5
Merge pull request #265 from alimy/pr-web-mobile
alimy Apr 15, 2023
09c8654
fixed cache index expire in delete/add tweet error
alimy Apr 15, 2023
ffe7b01
Merge pull request #266 from alimy/pr-cache-index-fix
alimy Apr 15, 2023
78af54d
update CHANGELOG.md
alimy Apr 15, 2023
aec5b0d
frentend: optimize web build configure
alimy Apr 16, 2023
f8d1356
add disallow user register feature support
alimy Apr 17, 2023
1b19517
update CHANGELOG.md
alimy Apr 17, 2023
0f4ba84
Merge pull request #267 from alimy/pr-custom-register
alimy Apr 17, 2023
6e60288
mod: bump gorm.io/gorm
dependabot[bot] Apr 17, 2023
cc1a91c
mod: bump github.com/rueian/rueidis from 0.0.97 to 0.0.100
dependabot[bot] Apr 17, 2023
0253360
mod: bump github.com/minio/minio-go/v7 from 7.0.51 to 7.0.52
dependabot[bot] Apr 17, 2023
9d59460
mod: bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.2.1
dependabot[bot] Apr 17, 2023
3b2db9b
Merge pull request #268 from rocboss/dependabot/go_modules/dev/gorm.i…
alimy Apr 17, 2023
627434d
mod: bump gorm.io/driver/sqlite from 1.4.4 to 1.5.0
dependabot[bot] Apr 17, 2023
f411479
Merge pull request #270 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 17, 2023
f0a029c
Merge pull request #272 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 17, 2023
27c96e6
Merge pull request #271 from rocboss/dependabot/go_modules/dev/github…
alimy Apr 17, 2023
47a9d9e
Merge pull request #269 from rocboss/dependabot/go_modules/dev/gorm.i…
alimy Apr 17, 2023
e58e069
optimize topic ui and logic (60%)
alimy Apr 19, 2023
49a624b
optimize topics ui and logic (65%)
alimy Apr 19, 2023
7e85a9a
optimize topics ui and logic (70%)
alimy Apr 19, 2023
f4d64c0
optimize topics ui and logic (75%)
alimy Apr 19, 2023
c73fad0
ajust post detail page's comment title opacity value
alimy Apr 19, 2023
a70a987
optimize topics ui and logic (100%)
alimy Apr 20, 2023
5b08ad5
Merge pull request #273 from alimy/pr-topic-follow
alimy Apr 20, 2023
9133bab
update CHANGELOG.md
alimy Apr 20, 2023
32b5b68
down-grade package gorm.iodriver/sqlite => v1.4.4 to fixed build erro…
alimy Apr 20, 2023
96ac9d7
fixed follow topics number more by give number error
alimy Apr 20, 2023
95c62ed
fixed sql ddl migration from postgres
alimy Apr 20, 2023
89a3239
frontend: use .env custom max size topic in right follow/hot topic card
alimy Apr 20, 2023
37cf888
frontend: upgrade vite => v4.3.1
alimy Apr 21, 2023
6d957d2
fixed private tweet's star/colloect no permission error when it is ow…
alimy Apr 21, 2023
7e75f05
Merge pull request #274 from alimy/pr-fixed-private-star
alimy Apr 21, 2023
08e5a3f
frontend: fixed pretty time display use utc incorrect
alimy Apr 21, 2023
30749ad
add comment upvote feature support (30%)
alimy Apr 21, 2023
4506eca
add comment upvote feature support (40%)
alimy Apr 21, 2023
9ea9ada
update ROADMAP.md/README.md
alimy Apr 22, 2023
767eb31
update README
alimy Apr 22, 2023
338591c
just ajust README
alimy Apr 22, 2023
9b623c3
just update README.md
alimy Apr 22, 2023
73da51d
frontend: optimize login/logout ux logic
alimy Apr 22, 2023
47a85fa
add comment upvote feature support (80%)
alimy Apr 22, 2023
d402d8d
add comment upvote feature support (100%)
alimy Apr 22, 2023
9f6cc58
fixed update comment thumbs up state error
alimy Apr 22, 2023
a784936
update CHANGELOG.md
alimy Apr 22, 2023
5b093ba
update time when change thumbs state
alimy Apr 22, 2023
f3be235
Merge pull request #275 from alimy/pr-comment-upvote
alimy Apr 22, 2023
5b657ae
update docker-compose.yaml
alimy Apr 23, 2023
e4b75b8
update CHANGELOG.md
alimy Apr 23, 2023
8c0c76e
ajust create a simple instance use docker compose's commend in README.md
alimy Apr 24, 2023
44de2f1
update ddl
rocboss Apr 24, 2023
30e4961
mod: bump gorm.io/driver/mysql from 1.4.7 to 1.5.0
dependabot[bot] Apr 24, 2023
470c596
mod: bump modernc.org/sqlite from 1.21.2 to 1.22.0
dependabot[bot] Apr 24, 2023
43fb56b
Merge pull request #277 from rocboss/dependabot/go_modules/dev/gorm.i…
alimy Apr 24, 2023
6772324
Merge pull request #279 from rocboss/dependabot/go_modules/dev/modern…
alimy Apr 24, 2023
af6db94
mod: bump gorm.io/plugin/soft_delete from 1.2.0 to 1.2.1
dependabot[bot] Apr 24, 2023
48d59f3
Merge pull request #278 from rocboss/dependabot/go_modules/dev/gorm.i…
alimy Apr 24, 2023
bbc4a3c
frontend: optimize web ui in mobile enviroment
alimy Apr 25, 2023
8ed21b5
Merge pull request #280 from alimy/pr-tweet-mobile
alimy Apr 25, 2023
60b217b
support comments pagination.
rocboss Apr 25, 2023
41b608a
update web/dist
alimy Apr 25, 2023
9c03dfd
update changelog.md
alimy Apr 25, 2023
05e8d13
mod: bump gorm.io/driver/mysql from 1.4.7 to 1.5.0
dependabot[bot] Apr 24, 2023
4073a5d
mod: bump modernc.org/sqlite from 1.21.2 to 1.22.0
dependabot[bot] Apr 24, 2023
f2b17ce
mod: bump gorm.io/plugin/soft_delete from 1.2.0 to 1.2.1
dependabot[bot] Apr 24, 2023
e2df1fc
frontend: optimize web ui in mobile enviroment
alimy Apr 25, 2023
e9213da
support comments pagination.
rocboss Apr 25, 2023
4c40fcf
update web/dist
alimy Apr 25, 2023
15d7a52
update changelog.md
alimy Apr 25, 2023
6c3a5b2
update ddl
alimy Apr 25, 2023
e28fe95
Merge branch 'alpha' into beta
alimy Apr 25, 2023
554551e
update docker-compose.yaml
alimy Apr 25, 2023
9021bca
frontend: fixed reply butthon margin size incorrect in comment list
alimy Apr 25, 2023
36c04fe
Merge branch 'alpha' into beta
alimy Apr 25, 2023
0fb820d
frontend: optmize web ui in mobile environment
alimy Apr 25, 2023
4fbd469
Merge branch 'alpha' into beta
alimy Apr 25, 2023
8dcec81
frontend: fixed add comments not refresh comment list error, but not …
alimy Apr 25, 2023
6179fe0
frontend: optimize comment load more logic
alimy Apr 25, 2023
081f7d3
frontend: optimize load more comments logic in tweet detail page
alimy Apr 26, 2023
d1cca76
Merge pull request #282 from alimy/pr-load-more-comment
alimy Apr 26, 2023
491bbb9
Merge branch 'alpha' into beta
alimy Apr 26, 2023
6b255db
update docker-compose.yaml
alimy Apr 26, 2023
edbd99e
frontend: optimize load more comments logic
alimy Apr 26, 2023
6a47f71
Merge branch 'alpha' into beta
alimy Apr 26, 2023
f24b0d2
add build-image.sh to optimize docker image build script
alimy Apr 27, 2023
f322e70
add build-release.sh to help build release package
alimy Apr 27, 2023
7f818e3
Merge branch 'alpha' into beta
alimy Apr 27, 2023
da79b3f
merge from main branch
alimy Apr 27, 2023
ce65722
update docker-compose.yaml
alimy Apr 27, 2023
1a2275b
merge from alpha branch
alimy Apr 27, 2023
517fdd2
frontend: optimize load more comments display logic
alimy Apr 27, 2023
3d24a39
Merge branch 'dev' into alpha
alimy Apr 27, 2023
f355cc0
Merge branch 'alpha' into beta
alimy Apr 27, 2023
6588203
fixed comments thumbs up/down state incorrect error
alimy Apr 28, 2023
661554a
update CHANGELOG.md
alimy Apr 28, 2023
9c17ad7
Merge pull request #283 from alimy/pr-comments-thumbs-state
alimy Apr 28, 2023
d1fb1f2
Merge branch 'dev' into alpha
alimy Apr 28, 2023
b64110e
Merge branch 'alpha' into beta
alimy Apr 28, 2023
3300fee
update docker-compose.yaml
alimy Apr 28, 2023
a11cdd8
update docker-compose.yaml
alimy Apr 28, 2023
14b2f88
frontend: optimize index page display layout
alimy Apr 28, 2023
decc0eb
frontend: ajust index page display
alimy Apr 28, 2023
5c54b85
Merge branch 'dev' into alpha
alimy Apr 28, 2023
2b2ff79
Merge branch 'alpha' into beta
alimy Apr 28, 2023
8ecd6dd
Merge branch 'beta' into t/v0.3.0
alimy Apr 28, 2023
94e25a7
frontend: optimize index page disply
alimy Apr 30, 2023
888a665
Merge branch 'dev' into alpha
alimy Apr 30, 2023
297aaab
Merge branch 'alpha' into beta
alimy Apr 30, 2023
6a2c1d5
Merge branch 'beta' into t/v0.3.0
alimy Apr 30, 2023
ec469d0
mod: bump github.com/bytedance/sonic from 1.8.7 to 1.8.8
dependabot[bot] May 1, 2023
ec20259
mod: bump modernc.org/sqlite from 1.22.0 to 1.22.1
dependabot[bot] May 1, 2023
389c53e
Merge pull request #285 from rocboss/dependabot/go_modules/dev/modern…
alimy May 4, 2023
f48494a
Merge pull request #284 from rocboss/dependabot/go_modules/dev/github…
alimy May 4, 2023
5aa1ea3
frontend: add custom get unread message loop interval in .env
alimy May 3, 2023
37bff87
bugfix: Compatible with different browsers for uploading zip mimetype
shadowhenry May 4, 2023
20d9f18
optmize #286
alimy May 4, 2023
5d119c3
just remove redudent file
alimy May 4, 2023
4796981
Merge branch 'dev' into alpha
alimy May 4, 2023
7f508a3
Merge branch 'alpha' into beta
alimy May 4, 2023
85f5a5c
frontend: upgrade tauri version => v1.3
alimy May 5, 2023
d34068a
merge from dev branch
alimy May 6, 2023
595ac79
upgrade meilisearch version => v1.1.1
alimy May 6, 2023
ae8e5b6
Merge pull request #288 from alimy/pr-meili-upgrade
alimy May 6, 2023
fe30446
update deployed-sites.md
alimy May 6, 2023
b55b4f0
update CHANGELOG
alimy May 6, 2023
c19a83c
Merge branch 'dev' into alpha
alimy May 6, 2023
b21ab9c
Merge branch 'alpha' into beta
alimy May 6, 2023
4a3ffb9
Merge branch 'beta' into t/v0.3.0
alimy May 6, 2023
1319b5d
merge from ain branch
alimy May 6, 2023
7dd6623
Merge branch 'dev' into alpha
alimy May 6, 2023
46ab951
Merge branch 'alpha' into beta
alimy May 6, 2023
f85f4eb
Merge branch 'beta' into t/v0.3.0
alimy May 6, 2023
ac61e0c
update CHANGELOG.md
alimy May 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: Test
strategy:
matrix:
go-version: [ 1.18.x, 1.19.x ]
go-version: [ 1.20.x ]
platform: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -66,7 +66,7 @@ jobs:
name: TestOnWindows
strategy:
matrix:
go-version: [ 1.18.x, 1.19.x ]
go-version: [ 1.20.x ]
platform: [ windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DS_Store
.idea
.vscode
__debug_bin
!*.example
/config.yaml
*.log
Expand Down
4 changes: 4 additions & 0 deletions .vscode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
*.log
__debug_bin
settings.json
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "paopao-ce [debug]",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/.vscode/__debug_bin",
"preLaunchTask": "go: build (debug)",
"cwd": "${workspaceFolder}"
}
]
}
4 changes: 4 additions & 0 deletions .vscode/sort_launch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let launch = require('./launch.json');
launch.configurations.sort((a, b) => a.name.localeCompare(b.name));
let fs = require('fs');
fs.writeFileSync('launch.json', JSON.stringify(launch, null, 4));
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "go: build (debug)",
"type": "shell",
"command": "go",
"args": [
"build",
"-gcflags=all=-N -l",
"-tags",
"'embed go_json'",
"-o",
"${workspaceFolder}/.vscode/__debug_bin"
],
"options": {
"cwd": "${workspaceFolder}"
}
}
]
}
101 changes: 100 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,114 @@
# Changelog

All notable changes to paopao-ce are documented in this file.
## 0.4.0+dev ([`dev`](https://github.com/rocboss/paopao-ce/tree/dev))

## 0.3.0+dev ([`dev`](https://github.com/rocboss/paopao-ce/tree/dev))
## 0.3.0
### Added

- add custom comment sort strategy support [#243](https://github.com/rocboss/paopao-ce/pull/243)
- add `RedisCacheIndex` feature [#250](https://github.com/rocboss/paopao-ce/pull/250)
- add `Sentry` feature [#258](https://github.com/rocboss/paopao-ce/pull/258)
- add simple tweet share feature(just copy tweet link to clipboard now) support [#264](https://github.com/rocboss/paopao-ce/pull/264)
- add default tweet max length configure in web/.env support. [&a1160ca](https://github.com/rocboss/paopao-ce/commit/a1160ca79380445157146d9eae1710543c153cce 'commit a1160ca')
Set the value of `VITE_DEFAULT_TWEET_MAX_LENGTH` in file web/.env to change the tweet max default length.
- add custom whether provide user register configure in web/.env support. [#267](https://github.com/rocboss/paopao-ce/pull/267)
Set the value of `VITE_ALLOW_USER_REGISTER` in file web/.env to custom whether provide user register feature.
```
# file: web/.env or web/.env.local
...
# 局部参数
VITE_ALLOW_USER_REGISTER=true
...
```
and disallow user register in backend(add `Web:DisallowUserRegister` feature in `config.yaml`):
```yaml
# file config.yaml
...
Features:
Default: ["Base", "Postgres", "Zinc", "LocalOSS", "LoggerZinc", "BigCacheIndex", "Friendship", "Service", "Web:DisallowUserRegister"]
...
```
- add topic follow feature support [#273](https://github.com/rocboss/paopao-ce/pull/273)
mirgration database first(sql ddl file in `scripts/migration/**/*_topic_follow.up.sql`):
```sql
CREATE TABLE `p_topic_user` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`topic_id` BIGINT UNSIGNED NOT NULL COMMENT '标签ID',
`user_id` BIGINT UNSIGNED NOT NULL COMMENT '创建者ID',
`alias_name` VARCHAR ( 255 ) COMMENT '别名',
`remark` VARCHAR ( 512 ) COMMENT '备注',
`quote_num` BIGINT UNSIGNED COMMENT '引用数',
`is_top` TINYINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否置顶 0 为未置顶、1 为已置顶',
`created_on` BIGINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '创建时间',
`modified_on` BIGINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '修改时间',
`deleted_on` BIGINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '删除时间',
`is_del` TINYINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
`reserve_a` VARCHAR ( 255 ) COMMENT '保留字段a',
`reserve_b` VARCHAR ( 255 ) COMMENT '保留字段b',
PRIMARY KEY ( `id` ) USING BTREE,
UNIQUE KEY `idx_topic_user_uid_tid` ( `topic_id`, `user_id` ) USING BTREE
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户话题';
```
- add tweet comment thumbs up/down feature support [#275](https://github.com/rocboss/paopao-ce/pull/275)
mirgration database first(sql ddl file in `scripts/migration/**/*_comment_thumbs.up.sql`):
- add load more comments feature support [&60b217b](https://github.com/rocboss/paopao-ce/commit/60b217bcd950c69ba45cebcaa17efdf8048d5a4f 'commit 60b217b')
### Fixed
- fixed sql ddl p_contact's column `is_delete` define error (change to `is_del`) in scripts/paopao-mysql.sql [&afd8fe1](https://github.com/rocboss/paopao-ce/commit/afd8fe18d2dce08a4af846c2f822379d99a3d3b3 'commit afd8fe1')
- fixed cache index not expire in delete/add tweet error [#266](https://github.com/rocboss/paopao-ce/pull/266)
- fixed tweet's owner not allow star/collection action when tweet is private error [#274](https://github.com/rocboss/paopao-ce/pull/274)
- fixed user not list owner's collectioned private tweet error [#274](https://github.com/rocboss/paopao-ce/pull/274)
- fixed comments thumbs up/down state incorrect error [#283](https://github.com/rocboss/paopao-ce/pull/283)
### Changed
- use [github.com/rueian/rueidis](https://github.com/rueian/rueidis) as Redis client [#249](https://github.com/rocboss/paopao-ce/pull/249)
the **Old** redis client configure field
```yaml
...
Redis:
Host: redis:6379
Password:
DB:
```
the **New** redis client configure field
```yaml
...
Redis:
InitAddress:
- redis:6379
Username:
Password:
SelectDB:
ConnWriteTimeout: 60 # 连接写超时时间 多少秒 默认 60秒
```
- optimize web frontend dark theme [&b082a8f](https://github.com/rocboss/paopao-ce/commit/b082a8fa5e43dd6dacf459df93fa7e243dd901ea 'commit b082a8f')
- change web frontend main content layout default size to 544px [&b082a8f](https://github.com/rocboss/paopao-ce/commit/b082a8fa5e43dd6dacf459df93fa7e243dd901ea 'commit b082a8f')
- optimize web frontend in mobile environment use Drawer to display menu [#265](https://github.com/rocboss/paopao-ce/pull/265)
- optimize Dockerfile use pre-build builder/runner image to prevent network latency problem (`bitbus/paopao-ce-backend-builder` `bitbus/paopao-ce-backend-runner`) [#265](https://github.com/rocboss/paopao-ce/pull/265)
- optimize web ui in mobile environment [#280](https://github.com/rocboss/paopao-ce/pull/280)
- optimize upload zip attachment compatible with different browsers for uploading zip mimetype [#286](https://github.com/rocboss/paopao-ce/pull/286)
- adapte meilisearch to version v1.1 [#288](https://github.com/rocboss/paopao-ce/pull/288)
### Removed
- remove `Deprecated:OldWeb` feature [#256](https://github.com/rocboss/paopao-ce/pull/256)
## 0.2.5
### Changed
- fixed sql ddl error for contact table [#281](https://github.com/rocboss/paopao-ce/pull/281)
## 0.2.4
### Added
- add PWA support for web frontend [#242](https://github.com/rocboss/paopao-ce/pull/242)
## 0.2.3
### Added
Expand Down
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:experimental

# build frontend
FROM node:19-alpine as frontend
ARG API_HOST
Expand All @@ -11,15 +13,11 @@ RUN [ $EMBED_UI != yes ] || [ $USE_DIST != no ] || (yarn && yarn build)
RUN [ $EMBED_UI = yes ] || mkdir dist || echo ""

# build backend
FROM golang:1.20-alpine AS backend
FROM bitbus/paopao-ce-backend-builder:latest AS backend
ARG API_HOST
ARG USE_API_HOST=yes
ARG EMBED_UI=yes
ARG USE_DIST=no
RUN apk --no-cache --no-progress add --virtual \
build-deps \
build-base \
git

WORKDIR /paopao-ce
COPY . .
Expand All @@ -28,13 +26,12 @@ ENV GOPROXY=https://goproxy.cn
RUN [ $EMBED_UI != yes ] || make build TAGS='embed go_json'
RUN [ $EMBED_UI = yes ] || make build TAGS='go_json'

FROM alpine:3.17
FROM bitbus/paopao-ce-backend-runner:latest
ARG API_HOST
ARG USE_API_HOST=yes
ARG EMBED_UI=yes
ARG USE_DIST=no
ENV TZ=Asia/Shanghai
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates

WORKDIR /app/paopao-ce
COPY --from=backend /paopao-ce/release/paopao-ce .
Expand Down
33 changes: 17 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ TARGET = paopao-ce
ifeq ($(OS),Windows_NT)
TARGET := $(TARGET).exe
endif
TARGET_BIN = $(basename $(TARGET))

ifeq (n$(CGO_ENABLED),n)
CGO_ENABLED := 1
CGO_ENABLED := 0
endif

RELEASE_ROOT = release
Expand All @@ -16,15 +17,15 @@ RELEASE_DARWIN_AMD64 = $(RELEASE_ROOT)/darwin-amd64/$(TARGET)
RELEASE_DARWIN_ARM64 = $(RELEASE_ROOT)/darwin-arm64/$(TARGET)
RELEASE_WINDOWS_AMD64 = $(RELEASE_ROOT)/windows-amd64/$(TARGET)

BUILD_VERSION := $(shell git describe --tags | cut -f 1 -d "-")
BUILD_VERSION := $(shell git describe --tags --always | cut -f1 -f2 -d "-")
BUILD_DATE := $(shell date +'%Y-%m-%d %H:%M:%S')
SHA_SHORT := $(shell git rev-parse --short HEAD)

TAGS = ""
MOD_NAME = github.com/rocboss/paopao-ce
LDFLAGS = -X "${MOD_NAME}/pkg/debug.version=${BUILD_VERSION}" \
-X "${MOD_NAME}/pkg/debug.buildDate=${BUILD_DATE}" \
-X "${MOD_NAME}/pkg/debug.commitID=${SHA_SHORT}" -w -s
LDFLAGS = -X "${MOD_NAME}/pkg/version.version=${BUILD_VERSION}" \
-X "${MOD_NAME}/pkg/version.buildDate=${BUILD_DATE}" \
-X "${MOD_NAME}/pkg/version.commitID=${SHA_SHORT}" -w -s

all: fmt build

Expand All @@ -50,23 +51,23 @@ release: linux-amd64 darwin-amd64 darwin-arm64 windows-x64

.PHONY: linux-amd64
linux-amd64:
@echo Build paopao-ce [linux-amd64] CGO_ENABLED=$(CGO_ENABLED)
@CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_LINUX_AMD64)/$(TARGET)
@echo Build paopao-ce [linux-amd64] CGO_ENABLED=$(CGO_ENABLED) TAGS="'$(TAGS)'"
@CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_LINUX_AMD64)/$(TARGET_BIN)

.PHONY: darwin-amd64
darwin-amd64:
@echo Build paopao-ce [darwin-amd64] CGO_ENABLED=$(CGO_ENABLED)
@CGO_ENABLED=$(CGO_ENABLED) GOOS=darwin GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_DARWIN_AMD64)/$(TARGET)
@echo Build paopao-ce [darwin-amd64] CGO_ENABLED=$(CGO_ENABLED) TAGS="'$(TAGS)'"
@CGO_ENABLED=$(CGO_ENABLED) GOOS=darwin GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_DARWIN_AMD64)/$(TARGET_BIN)

.PHONY: darwin-arm64
darwin-arm64:
@echo Build paopao-ce [darwin-arm64] CGO_ENABLED=$(CGO_ENABLED)
@CGO_ENABLED=$(CGO_ENABLED) GOOS=darwin GOARCH=arm64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_DARWIN_ARM64)/$(TARGET)
@echo Build paopao-ce [darwin-arm64] CGO_ENABLED=$(CGO_ENABLED) TAGS="'$(TAGS)'"
@CGO_ENABLED=$(CGO_ENABLED) GOOS=darwin GOARCH=arm64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_DARWIN_ARM64)/$(TARGET_BIN)

.PHONY: windows-x64
windows-x64:
@echo Build paopao-ce [windows-x64] CGO_ENABLED=$(CGO_ENABLED)
@CGO_ENABLED=$(CGO_ENABLED) GOOS=windows GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_WINDOWS_AMD64)/$(basename $(TARGET)).exe
@echo Build paopao-ce [windows-x64] CGO_ENABLED=$(CGO_ENABLED) TAGS="'$(TAGS)'"
@CGO_ENABLED=$(CGO_ENABLED) GOOS=windows GOARCH=amd64 go build -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $(RELEASE_WINDOWS_AMD64)/$(TARGET_BIN).exe

.PHONY: generate
generate: gen-mir gen-grpc
Expand Down Expand Up @@ -109,9 +110,9 @@ pre-commit: fmt

.PHONY: install-protobuf-plugins
install-protobuf-plugins:
@go install github.com/bufbuild/buf/cmd/buf@v1.11.0
@go install github.com/bufbuild/buf/cmd/protoc-gen-buf-breaking@v1.11.0
@go install github.com/bufbuild/buf/cmd/protoc-gen-buf-lint@v1.11.0
@go install github.com/bufbuild/buf/cmd/buf@v1.15.1
@go install github.com/bufbuild/buf/cmd/protoc-gen-buf-breaking@v1.15.1
@go install github.com/bufbuild/buf/cmd/protoc-gen-buf-lint@v1.15.1
@go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Expand Down
Loading