Commit Graph

492 Commits

Author SHA1 Message Date
Pig Fang
b0435351fa Use native fs functions for bootstrapping tests 2019-12-24 23:37:57 +08:00
Pig Fang
2b827cf651 Add more events for authentication 2019-12-24 17:09:30 +08:00
Pig Fang
0195b0fbd0 Tweak path of options cache file 2019-12-23 23:28:46 +08:00
Pig Fang
cb9aaf35f1 Tweak test 2019-12-23 10:08:19 +08:00
Pig Fang
166bd2e5ef Fix tests 2019-12-22 23:27:59 +08:00
Pig Fang
ae4be6fbda Refactor static routes 2019-12-22 17:28:55 +08:00
Pig Fang
591b9969aa Add filters for avatar 2019-12-22 17:22:05 +08:00
Pig Fang
35c07cdb63 Fix validating player name 2019-12-22 14:25:22 +08:00
Pig Fang
9cc83dad30 Remove restriction of texture name and nickname 2019-12-22 10:46:10 +08:00
Pig Fang
e21fb0fa31 Inline some helper functions 2019-12-21 15:50:29 +08:00
Pig Fang
ab24dfe5bf Add tests for Filters API 2019-12-21 10:41:38 +08:00
Pig Fang
25f9eb7f22 Mark verified for users from external services 2019-12-15 17:58:38 +08:00
Pig Fang
91fbb42431 Add OAuth client 2019-12-15 11:19:10 +08:00
Pig Fang
6ead313999 Apply php-cs-fixer 2019-12-14 11:10:37 +08:00
Pig Fang
7b3b528e6c Fix test 2019-12-13 21:23:16 +08:00
Pig Fang
0eaae1387e Fix tests 2019-12-13 19:45:18 +08:00
Pig Fang
920d45a723 Add "STAFF" badge for admin & show badges at texture detail page 2019-12-11 23:29:20 +08:00
Pig Fang
65d82fba64 Refactor 2019-12-10 23:40:32 +08:00
Pig Fang
cc3e5a9609 Fix tests 2019-12-10 10:57:03 +08:00
Pig Fang
f9b32c8e69 Check dependencies and conflicts before installing plugin
fixes #109
2019-12-09 23:30:49 +08:00
Pig Fang
66becb27d0 Detect Readme of plugin automatically 2019-12-08 23:58:44 +08:00
Pig Fang
a70260ca41 New method addAlert on OptionForm 2019-12-05 23:42:51 +08:00
Pig Fang
ba93788fc9 Fix coverage 2019-12-05 22:35:19 +08:00
Pig Fang
551b1334fc Fix test 2019-12-05 19:42:48 +08:00
Pig Fang
776e8652a0 Support specifying enchants.config in plugin 2019-12-05 19:28:12 +08:00
Pig Fang
ed9d856c43 Add new color settings 2019-12-04 16:45:09 +08:00
Pig Fang
8aec8e5028 Add more tests 2019-12-03 17:47:06 +08:00
Pig Fang
322ef7cdeb Blade -> Twig (for forms) 2019-12-03 17:03:30 +08:00
Pig Fang
c665adf1c8 Fix detecting unknown locale 2019-11-26 16:53:19 +08:00
Pig Fang
0fbf16acad Tweak webpack config 2019-11-26 13:01:15 +08:00
Pig Fang
52dae783e8 Upgrade to AdminLTE v3 2019-11-24 14:32:58 +08:00
Pig Fang
bf4623c6ef Add hooks for ReportController 2019-11-20 15:01:09 +08:00
Pig Fang
200a5b2352 Fix translation service at setup 2019-11-13 14:27:22 +08:00
Pig Fang
facc043df7 Upgrade dependencies 2019-10-07 22:40:48 +08:00
Pig Fang
74452a70de Fix loading style when development 2019-09-20 18:50:08 +08:00
Pig Fang
bb898ea2e4 Use message to report plugin errors
Instead of `notification`
2019-09-19 23:09:53 +08:00
Pig Fang
82140b6893 Blade -> Twig (almost finished) 2019-09-19 22:13:25 +08:00
Pig Fang
3b1866ffba Blade -> Twig 2019-09-18 23:06:48 +08:00
Pig Fang
146c12f26e Restructure tests 2019-09-17 23:57:29 +08:00
Pig Fang
9403ae356d Blade -> Twig (wip) 2019-09-17 23:10:44 +08:00
Pig Fang
19efd013f6 Tweak mocks 2019-09-16 12:49:33 +08:00
Pig Fang
4a9af2d5df Refactor retrieving assets 2019-09-15 10:18:49 +08:00
Pig Fang
a87320fe09 Clean up .env files 2019-09-12 19:06:18 +08:00
Pig Fang
e91185461a
Add GitHub Actions (#97)
* Add GitHub Actions

* Update branches trigger

* Fix .env file

* Fix default database connection

* Add test step

* Normalize PHP version

* Update main.yml

* Add more jobs

* Fix YAML syntax error

* Fix YAML syntax error

* Attempt to fix Windows job

* Update main.yml

* Update main.yml

* Update main.yml

* Attempt to use MySQL

* Update main.yml

* Fix possible error
2019-09-11 23:32:56 +08:00
Pig Fang
deab8be4a8 Upgrade to Laravel 6 2019-09-10 21:29:14 +08:00
Pig Fang
06a43b5f72 Remove response macros 2019-09-10 19:52:17 +08:00
Pig Fang
65111d3609 Fix event of plugin.versionChanged 2019-09-09 23:08:03 +08:00
Pig Fang
0d5864106d Tweak test 2019-09-08 19:39:32 +08:00
Pig Fang
54d3b76c13 Add support of customizing UI text 2019-09-08 18:57:19 +08:00
Pig Fang
21d416671a Tweak cache policy of parsing YAML 2019-09-08 09:19:32 +08:00
Pig Fang
5718567bea Load front end i18n of plugin automatically 2019-09-07 23:20:16 +08:00
Pig Fang
2b0eb3101c Remove redundant YAML parsing 2019-09-07 21:23:38 +08:00
Pig Fang
9ff8ea0893 Load front-end i18n text at back-end 2019-09-07 17:18:58 +08:00
Pig Fang
98522a5cce
Apply fixes from StyleCI (#96)
[ci skip] [skip ci]
2019-09-07 11:00:35 +08:00
Pig Fang
b99246234b Tweak tests and containers 2019-09-07 10:18:24 +08:00
Pig Fang
13a2cd9b18 Refactor setup 2019-09-06 23:53:47 +08:00
Pig Fang
5d1dce347f Switch to another translations loader 2019-09-06 18:52:34 +08:00
Pig Fang
1d0ae52c7b Switch to another captcha library 2019-09-05 12:23:46 +08:00
Pig Fang
e48bd1f9c6 Tweak TestCase 2019-09-04 21:28:21 +08:00
Pig Fang
9402f5f83e Fix priority of Filters API 2019-09-04 19:33:39 +08:00
Pig Fang
3fc176e07a Add more events and filters 2019-09-04 19:31:44 +08:00
Pig Fang
1e625f75bf Tweak Filters API 2019-09-03 23:07:10 +08:00
Pig Fang
be86f161a2 Reinvent wheel: Filters API 2019-09-03 18:41:19 +08:00
Pig Fang
df3c1687ad Add filter can_rename_player 2019-09-02 23:33:51 +08:00
Pig Fang
ed80b2373b Fix dispatching event 2019-09-02 20:42:26 +08:00
Pig Fang
8f350b206f Add new events for renaming player 2019-08-31 12:14:39 +08:00
Pig Fang
c44ff192ba Catch plugin's bootstrapper exceptions 2019-08-31 09:12:51 +08:00
Pig Fang
15c3c0423a Decrease PHP version requirement to 7.2.0 2019-08-28 17:36:20 +08:00
Pig Fang
c9cdc6640c Add more info at status page 2019-08-28 16:04:26 +08:00
Pig Fang
49bf12675d Add more info at status page 2019-08-28 14:52:51 +08:00
Pig Fang
eb0818dc27 Fix cleaning options cache 2019-08-26 11:01:49 +08:00
Pig Fang
deb8c44e45 Improve text of plugins management 2019-08-25 15:54:29 +08:00
Pig Fang
c976a5c5f8 Load translations of plugins even disabled 2019-08-25 14:51:56 +08:00
Pig Fang
63ac1c11dd Revert 2019-08-24 10:22:26 +08:00
Pig Fang
e68f54f655 Add tests 2019-08-23 17:21:49 +08:00
Pig Fang
ca4d1b5d04 Inject current plugin at bootstrapper 2019-08-23 14:20:04 +08:00
Pig Fang
602fde7227 Add tests 2019-08-23 10:59:44 +08:00
Pig Fang
567999909f Add tests 2019-08-22 22:48:51 +08:00
Pig Fang
c607990991 Add tests 2019-08-22 17:59:49 +08:00
Pig Fang
5d8814e900 Add test to cover 2019-08-22 11:44:51 +08:00
Pig Fang
7021ef49b4 Clean up 2019-08-22 11:29:30 +08:00
Pig Fang
17c267ea55 Tweak service container 2019-08-22 11:17:05 +08:00
Pig Fang
625cc08b81 Tweak service container 2019-08-22 10:49:05 +08:00
Pig Fang
28a4144ed1 Fix tests 2019-08-22 10:06:13 +08:00
Pig Fang
de49318bc6 Read options from cache if exists 2019-08-22 09:19:58 +08:00
Pig Fang
29eb0afa2c Tweak tests 2019-08-22 09:11:04 +08:00
Pig Fang
197c3d8333 Tweak options:cache command 2019-08-22 08:50:59 +08:00
Pig Fang
e01f034ffd Support caching options 2019-08-21 23:46:38 +08:00
Pig Fang
937186e34b Plugin system: allow to define conflicts 2019-08-21 11:48:42 +08:00
Pig Fang
70726a1c5a Tweak test 2019-08-20 11:50:07 +08:00
Pig Fang
3b457ce329 Add a test to cover 2019-08-20 09:40:44 +08:00
Pig Fang
4fcdfc2b7e Support multiple plugins directories 2019-08-19 23:06:17 +08:00
Pig Fang
42f0135704 Check plugin dependencies at PluginManager 2019-08-17 10:57:38 +08:00
Pig Fang
eeec2e0435 Improve UX of plugin-related Artisan commands 2019-08-16 17:35:13 +08:00
Pig Fang
72aa2c39ac Register service providers of plugins 2019-08-16 14:56:47 +08:00
Pig Fang
372c7768d0
Apply fixes from StyleCI (#93)
[ci skip] [skip ci]
2019-08-15 23:27:29 +08:00
Pig Fang
e67df90978 Tiny tweaks 2019-08-15 17:21:55 +08:00
Pig Fang
f117a4f3c7 Add test 2019-08-15 17:08:25 +08:00
Pig Fang
560ed2c2fd Refactor plugin system (part 11) 2019-08-15 16:54:12 +08:00
Pig Fang
d871af1906 Tweak test 2019-08-15 15:03:53 +08:00
Pig Fang
3594b7abf8 Refactor plugin system (part 8) 2019-08-13 22:44:32 +08:00
Pig Fang
85a67a5332 Refactor plugin system (part 7) 2019-08-13 18:42:17 +08:00
Pig Fang
3071ece7ba Refactor plugin system (part 6) 2019-08-12 17:37:52 +08:00
Pig Fang
fb0dcd4ad3 Refactor plugin system (part 5) 2019-08-12 15:59:01 +08:00
Pig Fang
d15fd0b36d Refactor plugin system (part 4) 2019-08-12 15:21:50 +08:00
Pig Fang
18019d85e6 Refactor plugin system (part 3) 2019-08-12 14:45:07 +08:00
Pig Fang
d92e1738dc Refactor plugin system (part 2) 2019-08-12 10:52:40 +08:00
Pig Fang
197b61b9d6 Fix test 2019-08-12 09:56:51 +08:00
Pig Fang
b7ee522d86 Attempt to fix test 2019-08-11 19:10:27 +08:00
Pig Fang
8b7e63d237 Fix test 2019-08-11 18:59:32 +08:00
Pig Fang
5932f8984b Skip test 2019-08-11 18:56:29 +08:00
Pig Fang
2709d09823 Refactor booting plugins (part 1) 2019-08-11 18:00:00 +08:00
Pig Fang
a14ff87d0d Add helper functions for Filter API 2019-08-10 12:16:24 +08:00
Pig Fang
457594797c Increase PHP version requirement 2019-08-09 22:56:54 +08:00
Pig Fang
0651fdac67 Upgrade PHPUnit and other dependencies 2019-08-09 22:49:17 +08:00
Pig Fang
562c3690a8 Add tests for artisan commands 2019-08-09 15:36:13 +08:00
Pig Fang
29ce9d3df1 Use built-in key:generate command 2019-08-09 11:20:36 +08:00
Pig Fang
fab3da8f7f Refactor 2019-08-09 10:13:55 +08:00
Pig Fang
c281a444f0 Allow to enable or disable a plugin via CLI 2019-08-08 23:03:48 +08:00
Pig Fang
b771134688 Fix test 2019-08-08 15:02:21 +08:00
Pig Fang
9209febd96 Don't convert remember_token field 2019-08-08 14:31:03 +08:00
Pig Fang
06b4ec0dbe Fix test 2019-08-08 13:55:41 +08:00
Pig Fang
d9262c055c Convert SQL query of user model
Automatically, for data integration.
2019-08-08 11:55:22 +08:00
Pig Fang
bbdd75ad44 Remove deprecated assertArraySubset 2019-08-07 15:46:34 +08:00
Pig Fang
67bcfc65a5 Refactor user model 2019-07-30 14:29:02 +08:00
Pig Fang
c387794e17 Add option for fixed background 2019-07-10 10:53:19 +08:00
Pig Fang
a082bec096 Add option for hiding introduction of home page 2019-07-10 10:18:10 +08:00
Pig Fang
4196a952e0 Optimize exception stack of Ajax error 2019-07-08 12:01:26 +08:00
Pig Fang
4529d1e219 Push notifications to queue (fix #78) 2019-07-05 22:48:23 +08:00
Pig Fang
a36c31e5bd Check PHP version before updating 2019-07-05 14:48:12 +08:00
Pig Fang
4c2c74dafb Only super admin can visit update pages 2019-07-05 12:40:14 +08:00
Pig Fang
2f08a7db37 New plugin API: pushMiddleware 2019-07-03 19:33:08 +08:00
Pig Fang
a94b526179 Fix test 2019-07-03 19:30:09 +08:00
Pig Fang
7a7cc2ddd9 Notifications 2019-07-03 16:19:13 +08:00
Pig Fang
3d88d56a9d Split tests 2019-07-03 13:19:57 +08:00
Pig Fang
e8108959e3 New plugin API: addUserBadge 2019-07-02 23:34:27 +08:00
Pig Fang
be9f6011bb Enable strict types partially 2019-07-02 22:22:05 +08:00
Pig Fang
a69bafd915 Fix that OAuth tables not created at installation (fix #72) 2019-06-30 23:25:48 +08:00
Pig Fang
5229340412 Allow open in new tab for side bar links 2019-06-29 00:07:40 +08:00
Pig Fang
66182eaabc Optimize panel of changing color 2019-06-15 17:55:18 +08:00
Pig Fang
696cadb5f5 Remove API tests 2019-06-04 23:13:02 +08:00
Pig Fang
42d212dc95 Allow to customize HTTP code
For rejecting accessing private texture
2019-06-04 22:45:57 +08:00
Pig Fang
7c4e567cb5 Fix test 2019-06-04 22:16:05 +08:00
Pig Fang
23f8ee408e Require verified email for OAuth routes (fix #59) 2019-05-22 10:13:01 +08:00
yushijinhun
00d238d945
Fix test
baef165dbc (diff-26172a0152bcc5300c2e3286ff0d0947L117)
2019-05-19 17:10:49 +08:00
yushijinhun
a9affdced9
Fix #57 2019-05-19 17:04:17 +08:00
yushijinhun
baef165dbc
Split tests 2019-05-19 16:16:16 +08:00
yushijinhun
b9b99d822e
Fix test
e182bb2c84 (diff-26172a0152bcc5300c2e3286ff0d0947R253)
2019-05-19 15:09:21 +08:00
Pig Fang
74f56916ad
Fix test 2019-05-19 14:49:49 +08:00
Pig Fang
e182bb2c84
Tweak test 2019-05-19 14:44:17 +08:00