Compare commits
3291 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52f6fefed0 | ||
|
|
840555df42 | ||
|
|
9aa867e8aa | ||
|
|
d70b39f445 | ||
|
|
33055ecbf9 | ||
|
|
2e39fbce77 | ||
|
|
1b3b020d52 | ||
|
|
33d805ee82 | ||
|
|
57c02dd51c | ||
|
|
5b6bb98860 | ||
|
|
c01112a6c1 | ||
|
|
064b0967fc | ||
|
|
9f4c59abec | ||
|
|
d8547a0a3d | ||
|
|
9c51bd602b | ||
|
|
bc3f504ca3 | ||
|
|
761cbb7828 | ||
|
|
01fe3eb4cb | ||
|
|
f03dd8122b | ||
|
|
cfda2a6bf8 | ||
|
|
74ce668221 | ||
|
|
5a18d24464 | ||
|
|
5125862f80 | ||
|
|
fa791857ec | ||
|
|
24ad29ea99 | ||
|
|
cdfb972bd0 | ||
|
|
1985ce6ff8 | ||
|
|
d84eb65d55 | ||
|
|
16474fb5d0 | ||
|
|
186138b884 | ||
|
|
9ca6e37e39 | ||
|
|
866e182c31 | ||
|
|
739b9c97d7 | ||
|
|
0a43c5aa67 | ||
|
|
35bd4524e6 | ||
|
|
eba91d5f1d | ||
|
|
d764836244 | ||
|
|
b1b4a71c3e | ||
|
|
fb74b43d64 | ||
|
|
2a24506c15 | ||
|
|
f436c056e0 | ||
|
|
77b58de7ef | ||
|
|
f5a5367e3e | ||
|
|
b811a7ae41 | ||
|
|
d96dff1144 | ||
|
|
169ca11030 | ||
|
|
b25b7588a9 | ||
|
|
46cccdb708 | ||
|
|
7d9b34ecc9 | ||
|
|
a13879f2df | ||
|
|
1e8c0f85d5 | ||
|
|
2a181c9a77 | ||
|
|
1698f1162e | ||
|
|
cba50ecc59 | ||
|
|
908f191ac8 | ||
|
|
5a5dbea05b | ||
|
|
950f2e6c7a | ||
|
|
ec7be1bf63 | ||
|
|
5c4afe8f80 | ||
|
|
ececb3486b | ||
|
|
bebdea9c20 | ||
|
|
b8188c91be | ||
|
|
0b516d02c5 | ||
|
|
82dd87703f | ||
|
|
63b828d46b | ||
|
|
7d005f7e4a | ||
|
|
5750c1ae94 | ||
|
|
7eff0cb66d | ||
|
|
eff859a864 | ||
|
|
64dea61ec9 | ||
|
|
0b169df679 | ||
|
|
e72b68f8d6 | ||
|
|
f1414c1dcb | ||
|
|
7086098536 | ||
|
|
fb35d58a65 | ||
|
|
9120efe1c6 | ||
|
|
564672b436 | ||
|
|
cc8873ec31 | ||
|
|
fa90b96682 | ||
|
|
f1c7845b8d | ||
|
|
be244cde60 | ||
|
|
2dc2409d3f | ||
|
|
32fa6a8a52 | ||
|
|
ec790b41f1 | ||
|
|
b8337bed19 | ||
|
|
73e308f15a | ||
|
|
3e50237846 | ||
|
|
33b64625d9 | ||
|
|
c2c6ef8e51 | ||
|
|
a153753dc5 | ||
|
|
e965a53c18 | ||
|
|
1a7f76ea69 | ||
|
|
fe7307d655 | ||
|
|
411f85b43b | ||
|
|
4303d14e64 | ||
|
|
b7c3e06590 | ||
|
|
8fd8b806b1 | ||
|
|
2786626a3f | ||
|
|
8279817d8c | ||
|
|
b737a65f5f | ||
|
|
01f3bd4eea | ||
|
|
a8f2f64260 | ||
|
|
b190ffb3d2 | ||
|
|
3686f6a2bd | ||
|
|
b35a526d7b | ||
|
|
e7d4eaa69a | ||
|
|
d3599b1a1c | ||
|
|
aa55856d91 | ||
|
|
ac63dc368c | ||
|
|
c81fd58ec4 | ||
|
|
f0a692f492 | ||
|
|
68701d1b3c | ||
|
|
190642224d | ||
|
|
6ebe817b47 | ||
|
|
0f31756643 | ||
|
|
f90a8c5371 | ||
|
|
0394597b52 | ||
|
|
9384e7dde6 | ||
|
|
eca2dffc31 | ||
|
|
cca94c85ad | ||
|
|
899de768f0 | ||
|
|
74db97c644 | ||
|
|
ccbb4f42f0 | ||
|
|
e57038256c | ||
|
|
663d9120b6 | ||
|
|
205f89bfc5 | ||
|
|
7b267497c0 | ||
|
|
c0112c7e25 | ||
|
|
81b7d0d7b7 | ||
|
|
d4ea48c904 | ||
|
|
e4d35ad012 | ||
|
|
2452ed06da | ||
|
|
b738b388ae | ||
|
|
157994aaea | ||
|
|
c2a6ba9570 | ||
|
|
5596c636b7 | ||
|
|
5fc5c2c8c2 | ||
|
|
424ab20db1 | ||
|
|
8b3376bf9b | ||
|
|
ca42d65d1c | ||
|
|
ab58c86695 | ||
|
|
3ebaf81880 | ||
|
|
8ecfc076fd | ||
|
|
fce1e8874f | ||
|
|
192c968bae | ||
|
|
04065aa427 | ||
|
|
1cfbbd6967 | ||
|
|
e4bd8a7702 | ||
|
|
b42f87eaa2 | ||
|
|
7de23b6652 | ||
|
|
b8205cd71f | ||
|
|
e0bbc2f3f5 | ||
|
|
5579bed8f0 | ||
|
|
1c105629fc | ||
|
|
1b55037db6 | ||
|
|
69e54d3198 | ||
|
|
11a2c602ee | ||
|
|
72be88b494 | ||
|
|
2530f13f60 | ||
|
|
89db8299bb | ||
|
|
1b00600c3b | ||
|
|
b2c5cca240 | ||
|
|
efa20f4940 | ||
|
|
faea0126ea | ||
|
|
88b5da401a | ||
|
|
f3d1b196ff | ||
|
|
0276d2a35b | ||
|
|
e253e7bff5 | ||
|
|
09b7f949b7 | ||
|
|
07c79da198 | ||
|
|
e89b65afdf | ||
|
|
6db0a0adeb | ||
|
|
458791df14 | ||
|
|
3f7ba49c2c | ||
|
|
2c579a4043 | ||
|
|
d98beae262 | ||
|
|
014864e47d | ||
|
|
b5eecc837d | ||
|
|
e0d6403499 | ||
|
|
79ec6e206a | ||
|
|
e8ec0c4c0d | ||
|
|
61f0bf174f | ||
|
|
ff017573c3 | ||
|
|
c12c1fbd01 | ||
|
|
7512eeb465 | ||
|
|
2b4364f2f7 | ||
|
|
4044e50aa5 | ||
|
|
d8a02a6a46 | ||
|
|
61ce97ad79 | ||
|
|
a79cb1c639 | ||
|
|
e1262b4179 | ||
|
|
20e299e6c3 | ||
|
|
1f24e75f76 | ||
|
|
861412dcfb | ||
|
|
38a6e436a9 | ||
|
|
4875564ee4 | ||
|
|
baf4921479 | ||
|
|
1b0e9ae8d5 | ||
|
|
b886556137 | ||
|
|
12801e5f04 | ||
|
|
ab8d1a970c | ||
|
|
3ef1b249f4 | ||
|
|
46c0119c7f | ||
|
|
35963a7e70 | ||
|
|
7388e46a2d | ||
|
|
af76ac1a6b | ||
|
|
073da66623 | ||
|
|
9c54427b08 | ||
|
|
b941210d3c | ||
|
|
7e04f72292 | ||
|
|
1ad19878f8 | ||
|
|
09bba22227 | ||
|
|
7381699690 | ||
|
|
ed82469f88 | ||
|
|
c9838025f6 | ||
|
|
c4e292c877 | ||
|
|
b7af1ebf19 | ||
|
|
6226784b10 | ||
|
|
5550b877df | ||
|
|
bb0a1dbc40 | ||
|
|
8813e58269 | ||
|
|
9cf1269798 | ||
|
|
14fd06a11f | ||
|
|
332b8cf7ef | ||
|
|
0a74ddd903 | ||
|
|
4ccee9e47e | ||
|
|
387fe81a60 | ||
|
|
5fb4240a47 | ||
|
|
6f638dd9fc | ||
|
|
2b474437f0 | ||
|
|
25a93d79b7 | ||
|
|
49df9d92a0 | ||
|
|
97057bc432 | ||
|
|
fa3a3a16cb | ||
|
|
1db946e372 | ||
|
|
de1f596401 | ||
|
|
460153104c | ||
|
|
28b80278ba | ||
|
|
45a854450e | ||
|
|
ad6eabff0d | ||
|
|
7be5a4ea62 | ||
|
|
89bb2b4db9 | ||
|
|
6f97c1efcc | ||
|
|
eae6ff887c | ||
|
|
4020571e53 | ||
|
|
d229cb1190 | ||
|
|
9a88570387 | ||
|
|
03076a9405 | ||
|
|
f2ddcb6ce4 | ||
|
|
746832a9f6 | ||
|
|
928d6ffa8c | ||
|
|
d5fd4e4c1b | ||
|
|
2b620c3338 | ||
|
|
4ae6368931 | ||
|
|
64f2beda02 | ||
|
|
5b7bf8e7aa | ||
|
|
84c544b683 | ||
|
|
34c90b50f2 | ||
|
|
b07e227e91 | ||
|
|
7e8f7a4a68 | ||
|
|
d2ffb5b9bf | ||
|
|
66eb658410 | ||
|
|
17ad007d40 | ||
|
|
2163356f7e | ||
|
|
4731fc0940 | ||
|
|
3669f18e6f | ||
|
|
cf4ebfeaff | ||
|
|
e9dc9ab32f | ||
|
|
43d410081e | ||
|
|
ddb939e562 | ||
|
|
d3ebd0432e | ||
|
|
9bfc0e6076 | ||
|
|
311b0690fc | ||
|
|
a5921770f0 | ||
|
|
0959ec02d1 | ||
|
|
2c226fb1fd | ||
|
|
986a64fe71 | ||
|
|
59f7bc106d | ||
|
|
4054301101 | ||
|
|
6bc5d4468d | ||
|
|
3146144733 | ||
|
|
fad9e87990 | ||
|
|
27499848f1 | ||
|
|
3815b9d4c6 | ||
|
|
aa78ca9535 | ||
|
|
2751e824b9 | ||
|
|
d6ac5eb5d1 | ||
|
|
f9d3a500db | ||
|
|
1d82dcb5df | ||
|
|
171ea171d5 | ||
|
|
93a3d64eff | ||
|
|
f6971892a3 | ||
|
|
81a343dd56 | ||
|
|
22193a4991 | ||
|
|
f665c7fe31 | ||
|
|
9916ad1344 | ||
|
|
5f4ad85f0f | ||
|
|
10d5b95358 | ||
|
|
5d2384498c | ||
|
|
acddaf92ba | ||
|
|
02ca2108a3 | ||
|
|
a783470343 | ||
|
|
02b66161e0 | ||
|
|
999674457c | ||
|
|
d13e1ba2af | ||
|
|
479e1cbda3 | ||
|
|
b9de4223f8 | ||
|
|
5449ac6395 | ||
|
|
03c705ec35 | ||
|
|
9998786b9b | ||
|
|
8f731e9031 | ||
|
|
d75a7d3ead | ||
|
|
3c6325ca46 | ||
|
|
963334e5ee | ||
|
|
5b738ffe6f | ||
|
|
d10bcae197 | ||
|
|
fe1a03fd8f | ||
|
|
0f791f42cc | ||
|
|
bf860d6a68 | ||
|
|
3f717e1d1e | ||
|
|
f4201f091d | ||
|
|
423b46d006 | ||
|
|
995d191afb | ||
|
|
7f8f773ceb | ||
|
|
e9dbb5f713 | ||
|
|
765b63d5cb | ||
|
|
7997393fb3 | ||
|
|
9b416897dc | ||
|
|
ade67fa6f8 | ||
|
|
76a78e187f | ||
|
|
7e4d58d9f0 | ||
|
|
6b50357347 | ||
|
|
3a874a1aba | ||
|
|
2066987bde | ||
|
|
353db6f250 | ||
|
|
f607ba8a41 | ||
|
|
e50aed9017 | ||
|
|
36ad2cf781 | ||
|
|
db57a56e25 | ||
|
|
b5a1f2ffc2 | ||
|
|
8f2e48df52 | ||
|
|
20b172c842 | ||
|
|
701541a4ad | ||
|
|
8baca0306a | ||
|
|
5517e70cda | ||
|
|
f33ee62c92 | ||
|
|
b4527664d6 | ||
|
|
58da4edf2f | ||
|
|
d4546e24f3 | ||
|
|
a4849c702a | ||
|
|
2d92d6f35c | ||
|
|
11305acc6a | ||
|
|
dce22c49ad | ||
|
|
5f6f84bb4c | ||
|
|
aea797869b | ||
|
|
cc4549d059 | ||
|
|
2d1bac84e0 | ||
|
|
58a4d6bea0 | ||
|
|
6a161d6ee1 | ||
|
|
92bd000181 | ||
|
|
60f711143d | ||
|
|
05b0437e4c | ||
|
|
30c4779f3b | ||
|
|
743f9119a6 | ||
|
|
c145803840 | ||
|
|
2bfa018e96 | ||
|
|
62ac0f5f9c | ||
|
|
e786fff10d | ||
|
|
9856157cec | ||
|
|
5a5c255f77 | ||
|
|
c798b4cb25 | ||
|
|
08e9f8be98 | ||
|
|
b44d0724ef | ||
|
|
96a3f5d987 | ||
|
|
a6c10ced20 | ||
|
|
9feb567d41 | ||
|
|
bf01939452 | ||
|
|
44a31de2cd | ||
|
|
49ff44ee6f | ||
|
|
6b695a745b | ||
|
|
feda32b726 | ||
|
|
a28abb70ac | ||
|
|
0bf1458b0a | ||
|
|
14e969ebbb | ||
|
|
e9f8be1653 | ||
|
|
cf40ca01ea | ||
|
|
cd01b26168 | ||
|
|
26c04824d7 | ||
|
|
56c1c481f5 | ||
|
|
6b7e7a8370 | ||
|
|
a26ddfbf19 | ||
|
|
a12b8aeefa | ||
|
|
d38e159205 | ||
|
|
42c10d7856 | ||
|
|
2d68b3c818 | ||
|
|
c8af8ccd3e | ||
|
|
db74a9c051 | ||
|
|
e018ced5d8 | ||
|
|
d4e482abb7 | ||
|
|
b8dab4b57a | ||
|
|
d242c124e9 | ||
|
|
62a5e856e3 | ||
|
|
9c5945235c | ||
|
|
54fda11cb4 | ||
|
|
78491fcca6 | ||
|
|
017db1788b | ||
|
|
d87791ab3d | ||
|
|
9b6bf7ba7a | ||
|
|
aa4c34dd01 | ||
|
|
49b7483cdb | ||
|
|
a3ea8e3c62 | ||
|
|
ea26abcc3b | ||
|
|
4e3ce6782f | ||
|
|
db2e04ab64 | ||
|
|
835ce71a16 | ||
|
|
ae687b8cf5 | ||
|
|
a955fdfefa | ||
|
|
87bc54e6f8 | ||
|
|
38943ababf | ||
|
|
694f882931 | ||
|
|
78c1373960 | ||
|
|
98714a8851 | ||
|
|
ffef98ad2e | ||
|
|
ce43f9a586 | ||
|
|
49b18783ba | ||
|
|
7a78c612bf | ||
|
|
56ec01f32a | ||
|
|
ffc5ae4619 | ||
|
|
d4aa16773d | ||
|
|
94a28806e1 | ||
|
|
5a42f3c44d | ||
|
|
a7b9d19b9b | ||
|
|
dba8e5a035 | ||
|
|
06b937f8ce | ||
|
|
07ba462073 | ||
|
|
ef7dfd2a71 | ||
|
|
4d22e0d2ee | ||
|
|
153d852f76 | ||
|
|
46f4a1b3c5 | ||
|
|
f4161d8fc5 | ||
|
|
6568ed311d | ||
|
|
86c39e6b12 | ||
|
|
9f6cec56a8 | ||
|
|
d018f207f3 | ||
|
|
6c4eb5441e | ||
|
|
40300ca17f | ||
|
|
2df480fe94 | ||
|
|
1a914b0db6 | ||
|
|
44a86e70c5 | ||
|
|
f22867c7cf | ||
|
|
2fb67537df | ||
|
|
322b1a4c5e | ||
|
|
7bcee679c7 | ||
|
|
aeb8a0800c | ||
|
|
1e85794256 | ||
|
|
95fed10535 | ||
|
|
b0ea5cdd63 | ||
|
|
30e25cf0a8 | ||
|
|
88e3ed7a07 | ||
|
|
de95ea8111 | ||
|
|
0053df977a | ||
|
|
73c529c152 | ||
|
|
b9a40af92d | ||
|
|
ab264604e0 | ||
|
|
c7b8cdab40 | ||
|
|
a1ce50609f | ||
|
|
78f6c6c286 | ||
|
|
946896117a | ||
|
|
160dbff834 | ||
|
|
3b7d3c2c34 | ||
|
|
f1294c8f57 | ||
|
|
9141af2a70 | ||
|
|
0ce4610c0c | ||
|
|
b8d85ad2b3 | ||
|
|
d991db1640 | ||
|
|
d09fcc0f96 | ||
|
|
8dde6e0e2f | ||
|
|
fa30825656 | ||
|
|
3841459bcf | ||
|
|
70bf5f10bc | ||
|
|
7ae9a05f0c | ||
|
|
f4c2da3b31 | ||
|
|
e54fecd6e5 | ||
|
|
f78d37cd6e | ||
|
|
a451c498d6 | ||
|
|
e4d8289eba | ||
|
|
b8ab1f41e5 | ||
|
|
1f291bd671 | ||
|
|
069ec27e6f | ||
|
|
d40bc66438 | ||
|
|
a3aa914520 | ||
|
|
a454f526ba | ||
|
|
cf95b3a345 | ||
|
|
ecc3d02167 | ||
|
|
1f842a09dd | ||
|
|
d7f92bf3b2 | ||
|
|
f6650c1636 | ||
|
|
c121747cc0 | ||
|
|
b8a4dd8e34 | ||
|
|
eabcc540e2 | ||
|
|
0acfa1174b | ||
|
|
ba251beeca | ||
|
|
d86bdd22d9 | ||
|
|
30e4c7d28a | ||
|
|
dde61d31f4 | ||
|
|
4d25b2042d | ||
|
|
248362487f | ||
|
|
1cf4101cde | ||
|
|
c662121ad9 | ||
|
|
2656b92fce | ||
|
|
5094cff07a | ||
|
|
46223eba4f | ||
|
|
6f55045f9e | ||
|
|
f36852a24b | ||
|
|
8b2f2db6eb | ||
|
|
d2d549b657 | ||
|
|
975464efb6 | ||
|
|
9bcace175d | ||
|
|
cb2e7bb866 | ||
|
|
d6953ac5bb | ||
|
|
cde0c7bbbb | ||
|
|
d9dbe8ee65 | ||
|
|
2c0bd3be74 | ||
|
|
3bcdcd0533 | ||
|
|
de44c0b785 | ||
|
|
9211e6fb33 | ||
|
|
3e919367dd | ||
|
|
12dab489d6 | ||
|
|
361868038f | ||
|
|
24d3a2e50a | ||
|
|
cccaef302a | ||
|
|
d1afc6645c | ||
|
|
93880b5ac1 | ||
|
|
ed73106116 | ||
|
|
3e2ff83cc8 | ||
|
|
8f6c2fc8b8 | ||
|
|
6de0f8ef60 | ||
|
|
6b536a04ac | ||
|
|
3ba1726774 | ||
|
|
71ba65bd85 | ||
|
|
31a3fa6564 | ||
|
|
abf19161f9 | ||
|
|
3395bda800 | ||
|
|
8b0891d1da | ||
|
|
68d57da1d9 | ||
|
|
6d84747458 | ||
|
|
e0c7dc346e | ||
|
|
1a894513c5 | ||
|
|
1042de2f8f | ||
|
|
907d370b19 | ||
|
|
50502baea7 | ||
|
|
8a59985180 | ||
|
|
c48583dd6d | ||
|
|
ec24dff36a | ||
|
|
16b4ee7b6d | ||
|
|
dfeff83b5e | ||
|
|
291efe730f | ||
|
|
c0d9d18efc | ||
|
|
bfe205ddb3 | ||
|
|
94642a7cd7 | ||
|
|
42508a9990 | ||
|
|
b9c986db59 | ||
|
|
3556f29a24 | ||
|
|
3e1a10a461 | ||
|
|
f795194dc3 | ||
|
|
b8c60aa948 | ||
|
|
2f3dbe7f89 | ||
|
|
496b732cb9 | ||
|
|
fff60b37ac | ||
|
|
370311db54 | ||
|
|
6ecb068376 | ||
|
|
15af883976 | ||
|
|
504d985c8d | ||
|
|
88d9901e77 | ||
|
|
5e051eadfe | ||
|
|
63556cabae | ||
|
|
b4b75151fd | ||
|
|
ca8d743870 | ||
|
|
0e755dbc53 | ||
|
|
437ac5b120 | ||
|
|
b183dae6bd | ||
|
|
0dbdcc255e | ||
|
|
e6f919940f | ||
|
|
3ad2f93c82 | ||
|
|
1b7f14e0e0 | ||
|
|
7c6bfd6271 | ||
|
|
d7849346cc | ||
|
|
aff278622c | ||
|
|
3df0f1c65a | ||
|
|
6e82468692 | ||
|
|
80d67c4518 | ||
|
|
af351d211b | ||
|
|
c6ef42d477 | ||
|
|
55990f24be | ||
|
|
5ea1187f2a | ||
|
|
840722c80b | ||
|
|
bec071fdb9 | ||
|
|
262dca0f8e | ||
|
|
c9a8fddd57 | ||
|
|
79b770a8f0 | ||
|
|
70e9570057 | ||
|
|
f4eae872d1 | ||
|
|
57632d52bc | ||
|
|
beb2c96aef | ||
|
|
00eaa15cf2 | ||
|
|
7093eaedd1 | ||
|
|
75887efda6 | ||
|
|
1669269ca3 | ||
|
|
f0e3b6a866 | ||
|
|
cad6845e68 | ||
|
|
d116b10b16 | ||
|
|
800370ca47 | ||
|
|
7479217d03 | ||
|
|
b53ccd4801 | ||
|
|
ef4e925058 | ||
|
|
71a1caf95d | ||
|
|
0f45600e21 | ||
|
|
04703cc7e5 | ||
|
|
2039a0a554 | ||
|
|
ca37fa8db2 | ||
|
|
988b0ace8c | ||
|
|
afd7ea993b | ||
|
|
67f2d513ea | ||
|
|
7afdc9e9ba | ||
|
|
31bd48eec7 | ||
|
|
a4e51def37 | ||
|
|
efb2bdccea | ||
|
|
6423afdc2d | ||
|
|
31ebd8bd35 | ||
|
|
33e249f5d2 | ||
|
|
850efe9fe2 | ||
|
|
058e0d9f22 | ||
|
|
a886935b12 | ||
|
|
fd2e3f2c1b | ||
|
|
b7ac9bbfa1 | ||
|
|
9e87f42dd9 | ||
|
|
33dbb9a3da | ||
|
|
490f8f3bac | ||
|
|
361444ca7e | ||
|
|
6c4f5d61f4 | ||
|
|
1c97734bf6 | ||
|
|
5d9bb28281 | ||
|
|
b93efb91ae | ||
|
|
9f560c67bd | ||
|
|
0efcde3172 | ||
|
|
6dc22f73f7 | ||
|
|
aa835f7d03 | ||
|
|
2e78da928b | ||
|
|
effba662a0 | ||
|
|
231b9ee5bf | ||
|
|
8f2f57ffc8 | ||
|
|
6bd7e4744f | ||
|
|
2229fcf66b | ||
|
|
1b8c335cac | ||
|
|
375fcb38b4 | ||
|
|
9a29df2a07 | ||
|
|
dbef3043eb | ||
|
|
3fbf32ed14 | ||
|
|
458d462831 | ||
|
|
530ed88bd1 | ||
|
|
04dfdfb6c2 | ||
|
|
be46c524ef | ||
|
|
4417cdc0c4 | ||
|
|
f4276d1ccf | ||
|
|
c219a0f03f | ||
|
|
1d6da0eab9 | ||
|
|
4007a46736 | ||
|
|
79bacf69e0 | ||
|
|
c50f265b8e | ||
|
|
ce297f66f9 | ||
|
|
4c981529e1 | ||
|
|
d57dabe188 | ||
|
|
24adc02f17 | ||
|
|
ced43d4277 | ||
|
|
4c52f82393 | ||
|
|
d603f48bad | ||
|
|
76f0b040ad | ||
|
|
b6c58ef23f | ||
|
|
2c313ebde2 | ||
|
|
a2e8632ca4 | ||
|
|
a409404263 | ||
|
|
0671964ead | ||
|
|
d27034425a | ||
|
|
4f76f05003 | ||
|
|
2a3d9c544d | ||
|
|
52340ff28c | ||
|
|
ecf2f6792f | ||
|
|
dd44b43b04 | ||
|
|
9ca87451ed | ||
|
|
9f8f1e786a | ||
|
|
60c628dd11 | ||
|
|
ff7f81939d | ||
|
|
9ff956a9f8 | ||
|
|
2907ad4bb4 | ||
|
|
a879af3405 | ||
|
|
76a504bb9c | ||
|
|
b1801f0819 | ||
|
|
63cb6ad657 | ||
|
|
97705755c5 | ||
|
|
8a07597265 | ||
|
|
f1f6a6fafb | ||
|
|
24a5962576 | ||
|
|
b63149d30a | ||
|
|
7d3325966b | ||
|
|
496f5a5b23 | ||
|
|
8cfe2e1292 | ||
|
|
271c950ad9 | ||
|
|
ba757d98a8 | ||
|
|
ccfcceed37 | ||
|
|
4ce25a918c | ||
|
|
59f8f33df7 | ||
|
|
cd2f977bff | ||
|
|
dcd48a086c | ||
|
|
b66a48181f | ||
|
|
31c56e9121 | ||
|
|
5d426e8c92 | ||
|
|
6463a33744 | ||
|
|
db49cedb06 | ||
|
|
4d3f6a29ca | ||
|
|
0eb7d50d1c | ||
|
|
48de60b43a | ||
|
|
f6d3b014ad | ||
|
|
a47973f4f2 | ||
|
|
eb0da1a0d4 | ||
|
|
537d34c0bf | ||
|
|
ed04dd1740 | ||
|
|
998c5f011a | ||
|
|
f3e57756a5 | ||
|
|
18a2817472 | ||
|
|
27e6042b93 | ||
|
|
d4c3264324 | ||
|
|
bc0531c737 | ||
|
|
5052e9ab04 | ||
|
|
63eb7c3d74 | ||
|
|
af24dcf9f9 | ||
|
|
a804bb8d7b | ||
|
|
9d624fd299 | ||
|
|
c4ce144be2 | ||
|
|
60373e6290 | ||
|
|
25394ddf50 | ||
|
|
ed588a9569 | ||
|
|
5d977882bb | ||
|
|
33c6f00da6 | ||
|
|
4dde7fc13c | ||
|
|
898e178d45 | ||
|
|
3cb6f40be5 | ||
|
|
9ab8a5ca8b | ||
|
|
afd0858b24 | ||
|
|
97cd8974f3 | ||
|
|
57beeb2c86 | ||
|
|
efc71da574 | ||
|
|
054b25da6d | ||
|
|
bec33650f0 | ||
|
|
73d83bd191 | ||
|
|
56d5e20d3b | ||
|
|
1b0e1b154b | ||
|
|
f721ac269c | ||
|
|
39e135e644 | ||
|
|
7e61f27106 | ||
|
|
e2c10c78ac | ||
|
|
76bf342681 | ||
|
|
5ac9b59116 | ||
|
|
d811f92dda | ||
|
|
ec4e222c0e | ||
|
|
ca7db2585f | ||
|
|
19ad09920b | ||
|
|
9dca4c1585 | ||
|
|
89055fe192 | ||
|
|
576a4c442f | ||
|
|
3dcd6bfac1 | ||
|
|
34f4faaff1 | ||
|
|
ec948ef1c2 | ||
|
|
6a7d9d0fde | ||
|
|
8e104c2422 | ||
|
|
a6dc3bd068 | ||
|
|
22f68cd9fc | ||
|
|
d119b054be | ||
|
|
55f9ba1cff | ||
|
|
2d57248654 | ||
|
|
39ed588d83 | ||
|
|
36328f1cb8 | ||
|
|
aa1ce17351 | ||
|
|
210244f5b4 | ||
|
|
a5085af86c | ||
|
|
5b7055611d | ||
|
|
d6834a2ead | ||
|
|
6e559ef90e | ||
|
|
dc62f87b74 | ||
|
|
de08ab6736 | ||
|
|
82dade1ee1 | ||
|
|
b083ee8788 | ||
|
|
54c4891fd2 | ||
|
|
93f64b034f | ||
|
|
de64694002 | ||
|
|
5917e62286 | ||
|
|
09c5aae79a | ||
|
|
54b948d01e | ||
|
|
d9f55d610c | ||
|
|
ef2da499e5 | ||
|
|
6430576761 | ||
|
|
f0599d5a88 | ||
|
|
e01af8e7d9 | ||
|
|
100e5960e7 | ||
|
|
25a31302ae | ||
|
|
2bd1a8c073 | ||
|
|
1d87171808 | ||
|
|
e6cb4072e5 | ||
|
|
36a516d584 | ||
|
|
4953e15369 | ||
|
|
364608a0c6 | ||
|
|
6b714ad7b3 | ||
|
|
d62db082e7 | ||
|
|
60e883c5e7 | ||
|
|
225985834a | ||
|
|
999167e11e | ||
|
|
7c144b3e14 | ||
|
|
11e927cc61 | ||
|
|
ad528520ca | ||
|
|
be0f74ad64 | ||
|
|
4c066ac38a | ||
|
|
cd3260af3e | ||
|
|
640a714d8e | ||
|
|
dff01981d7 | ||
|
|
8bb6f2e53c | ||
|
|
7ecea9e7e6 | ||
|
|
85f9f8378a | ||
|
|
4c735aa8e4 | ||
|
|
078fcf47ec | ||
|
|
16916fd006 | ||
|
|
8c06286607 | ||
|
|
cf6f1aa547 | ||
|
|
9e792b9c3a | ||
|
|
52629f6cc4 | ||
|
|
c87d19f258 | ||
|
|
c1923cfaa1 | ||
|
|
780b6800ba | ||
|
|
6c64d191ab | ||
|
|
092eedfdf4 | ||
|
|
1807309449 | ||
|
|
4a97edbd53 | ||
|
|
f46737c8e3 | ||
|
|
1170a528d6 | ||
|
|
b816eb1c06 | ||
|
|
97ec85b289 | ||
|
|
d85c6d840b | ||
|
|
6b3446cf86 | ||
|
|
b1ccdb47f2 | ||
|
|
6c221c28d6 | ||
|
|
04c3c7908c | ||
|
|
d7a60a842d | ||
|
|
c3a0018219 | ||
|
|
1eba808974 | ||
|
|
3c8f820780 | ||
|
|
9608555345 | ||
|
|
516c5ef762 | ||
|
|
70d8614d84 | ||
|
|
1c5cb7fdba | ||
|
|
18765a7133 | ||
|
|
2abadd65b1 | ||
|
|
bcca87936a | ||
|
|
9988520f45 | ||
|
|
8703495f8f | ||
|
|
1829f1dab5 | ||
|
|
02fecd46ae | ||
|
|
5b2d2743a6 | ||
|
|
d4202149e1 | ||
|
|
1f5c0af0aa | ||
|
|
e97d2743fb | ||
|
|
611f6c8cee | ||
|
|
22128d360c | ||
|
|
07566c4c16 | ||
|
|
f9e4436503 | ||
|
|
b220b60ece | ||
|
|
874bc8a73e | ||
|
|
9aac544d0c | ||
|
|
cd2af03663 | ||
|
|
a18f068387 | ||
|
|
4689010466 | ||
|
|
1f899d1393 | ||
|
|
d40726a718 | ||
|
|
7f46e1510b | ||
|
|
56e63b8c38 | ||
|
|
71543da2f7 | ||
|
|
c868b05232 | ||
|
|
cf8358fdcd | ||
|
|
10d0957d66 | ||
|
|
ad1201b226 | ||
|
|
facd92356c | ||
|
|
9eae104402 | ||
|
|
4efd787460 | ||
|
|
87256a56e9 | ||
|
|
cf497ad38c | ||
|
|
b0435351fa | ||
|
|
78ae974e7a | ||
|
|
2b827cf651 | ||
|
|
0195b0fbd0 | ||
|
|
da422ab1e8 | ||
|
|
cb9aaf35f1 | ||
|
|
7314b19a85 | ||
|
|
166bd2e5ef | ||
|
|
3ab0d12a71 | ||
|
|
ae4be6fbda | ||
|
|
591b9969aa | ||
|
|
3e249a9902 | ||
|
|
95d1ebe3ba | ||
|
|
8c8e7bbc23 | ||
|
|
35c07cdb63 | ||
|
|
2d73124fed | ||
|
|
85d0104362 | ||
|
|
fd61380758 | ||
|
|
9cc83dad30 | ||
|
|
e21fb0fa31 | ||
|
|
ab24dfe5bf | ||
|
|
4c3b9f0cb6 | ||
|
|
fa2048c7bd | ||
|
|
1e21f4508c | ||
|
|
6bf003e7dc | ||
|
|
a14688264b | ||
|
|
52cd75ca54 | ||
|
|
60ccc1174a | ||
|
|
d61eb8a098 | ||
|
|
cb3527cd35 | ||
|
|
ef1a092ca3 | ||
|
|
703a760b24 | ||
|
|
6b6cec7f43 | ||
|
|
79a96ec6d8 | ||
|
|
25f9eb7f22 | ||
|
|
0b5596ce33 | ||
|
|
91fbb42431 | ||
|
|
25a7134d63 | ||
|
|
ff1dd4bacd | ||
|
|
810c8ec878 | ||
|
|
ee4d0f6fea | ||
|
|
c2b81efb4b | ||
|
|
a3e74065f9 | ||
|
|
6ead313999 | ||
|
|
c6959ebc81 | ||
|
|
759ea01146 | ||
|
|
37f8355dd4 | ||
|
|
7b3b528e6c | ||
|
|
0eaae1387e | ||
|
|
96fd445415 | ||
|
|
7950132954 | ||
|
|
d5ffea34d9 | ||
|
|
d5aad4375f | ||
|
|
56bd71c063 | ||
|
|
4af30bdbac | ||
|
|
a697a9a5d3 | ||
|
|
920d45a723 | ||
|
|
65d82fba64 | ||
|
|
6aa28f88e7 | ||
|
|
dec36d0771 | ||
|
|
4a6ad15217 | ||
|
|
1480815123 | ||
|
|
243a164063 | ||
|
|
0958ab99ea | ||
|
|
cc3e5a9609 | ||
|
|
f9b32c8e69 | ||
|
|
eb62e04c1c | ||
|
|
66becb27d0 | ||
|
|
8a66a70ced | ||
|
|
0b09be3e9c | ||
|
|
ce5b343617 | ||
|
|
e3a34a4013 | ||
|
|
13d372411e | ||
|
|
18f3cb8571 | ||
|
|
6fc099bb34 | ||
|
|
61eea2b980 | ||
|
|
7e8929d34f | ||
|
|
a70260ca41 | ||
|
|
ba93788fc9 | ||
|
|
551b1334fc | ||
|
|
776e8652a0 | ||
|
|
4cc7b4441f | ||
|
|
060578ca95 | ||
|
|
5f202c3cee | ||
|
|
ed9d856c43 | ||
|
|
8aec8e5028 | ||
|
|
322ef7cdeb | ||
|
|
a9e11f7785 | ||
|
|
e7be95d3e2 | ||
|
|
7e3b61be7a | ||
|
|
f306b4af9f | ||
|
|
c91919b6d9 | ||
|
|
c5829ded76 | ||
|
|
f41b912e53 | ||
|
|
ec42b4b4eb | ||
|
|
264369699a | ||
|
|
beec114717 | ||
|
|
6cd5e9a1e7 | ||
|
|
1e4454cdc0 | ||
|
|
c858bbf5be | ||
|
|
cece411eae | ||
|
|
99461cabd0 | ||
|
|
f414849051 | ||
|
|
2da0a3576b | ||
|
|
b1ae902091 | ||
|
|
92282daa9e | ||
|
|
aada1148fb | ||
|
|
991475041b | ||
|
|
a0a950089e | ||
|
|
e5b8a130a0 | ||
|
|
84afc32d84 | ||
|
|
c75f4429ac | ||
|
|
2b538685ff | ||
|
|
6aa458c95b | ||
|
|
66c3c016f7 | ||
|
|
6321cea0da | ||
|
|
f8844cb549 | ||
|
|
ff6277a0ca | ||
|
|
c665adf1c8 | ||
|
|
0fbf16acad | ||
|
|
a724543dac | ||
|
|
383e20acbd | ||
|
|
a43e8036c5 | ||
|
|
9871e2e484 | ||
|
|
6cb0747270 | ||
|
|
7235375581 | ||
|
|
3d578963ea | ||
|
|
d2b8835c94 | ||
|
|
7aa044324c | ||
|
|
b085698b01 | ||
|
|
52dae783e8 | ||
|
|
5df36ae8ea | ||
|
|
96c22e20af | ||
|
|
eb6a012c72 | ||
|
|
a9372265d9 | ||
|
|
e394e7491a | ||
|
|
bf4623c6ef | ||
|
|
ee872104b0 | ||
|
|
1fc607a00b | ||
|
|
200a5b2352 | ||
|
|
8958cf489b | ||
|
|
3cb6d09046 | ||
|
|
195c4e26aa | ||
|
|
b21e1e5566 | ||
|
|
76a9ce6aab | ||
|
|
e9007c10a9 | ||
|
|
6d4d2ea62c | ||
|
|
facc043df7 | ||
|
|
c424465321 | ||
|
|
55b9b5ad9e | ||
|
|
4be0e0e4e1 | ||
|
|
5b8e344ce9 | ||
|
|
c0d6256efd | ||
|
|
74452a70de | ||
|
|
2a2491ac93 | ||
|
|
bb898ea2e4 | ||
|
|
d232bb4672 | ||
|
|
82140b6893 | ||
|
|
84f760d930 | ||
|
|
3b1866ffba | ||
|
|
146c12f26e | ||
|
|
c2f4d3a008 | ||
|
|
9403ae356d | ||
|
|
19efd013f6 | ||
|
|
f51e2d7b9d | ||
|
|
4a9af2d5df | ||
|
|
792062451a | ||
|
|
93a7bae30d | ||
|
|
acde755e43 | ||
|
|
5fc2b2f612 | ||
|
|
2f774d9111 | ||
|
|
f2afe728e7 | ||
|
|
cbad417f03 | ||
|
|
050fa45993 | ||
|
|
d5205ede35 | ||
|
|
a87320fe09 | ||
|
|
8cb65dd846 | ||
|
|
79307561c9 | ||
|
|
62221c05a7 | ||
|
|
899a495f80 | ||
|
|
e91185461a | ||
|
|
deab8be4a8 | ||
|
|
21c28c8b1c | ||
|
|
e38d74455c | ||
|
|
06a43b5f72 | ||
|
|
65111d3609 | ||
|
|
a75e116510 | ||
|
|
0d5864106d | ||
|
|
7dd7bb0adc | ||
|
|
54d3b76c13 | ||
|
|
a72d46d2f2 | ||
|
|
b7d845ee51 | ||
|
|
bc0e830758 | ||
|
|
99649ff9ea | ||
|
|
21d416671a | ||
|
|
5718567bea | ||
|
|
2b0eb3101c | ||
|
|
efd6f44aea | ||
|
|
9ff8ea0893 | ||
|
|
7c0bf46c3c | ||
|
|
f9f2796529 | ||
|
|
98522a5cce | ||
|
|
9aaaa20d52 | ||
|
|
803ea2899d | ||
|
|
5b5740b74b | ||
|
|
b99246234b | ||
|
|
cac1c7eb31 | ||
|
|
13a2cd9b18 | ||
|
|
5d1dce347f | ||
|
|
c567b12adc | ||
|
|
1d0ae52c7b | ||
|
|
402eec0b3c | ||
|
|
e4685ad649 | ||
|
|
e3483375e0 | ||
|
|
e48bd1f9c6 | ||
|
|
9402f5f83e | ||
|
|
3fc176e07a | ||
|
|
9ccb620fe4 | ||
|
|
1e625f75bf | ||
|
|
3264e376cb | ||
|
|
be86f161a2 | ||
|
|
df3c1687ad | ||
|
|
cdb7456ab2 | ||
|
|
ed80b2373b | ||
|
|
3f7a4212d1 | ||
|
|
8f350b206f | ||
|
|
347399c944 | ||
|
|
cfa552157f | ||
|
|
70280d0acc | ||
|
|
c44ff192ba | ||
|
|
016e11b40b | ||
|
|
3d3e488443 | ||
|
|
15c3c0423a | ||
|
|
c9cdc6640c | ||
|
|
fb3f58856c | ||
|
|
49bf12675d | ||
|
|
8bb617623e | ||
|
|
048441071e | ||
|
|
eb0818dc27 | ||
|
|
5465399eda | ||
|
|
deb8c44e45 | ||
|
|
c976a5c5f8 | ||
|
|
0c6fe77492 | ||
|
|
63ac1c11dd | ||
|
|
47ae815ce0 | ||
|
|
e68f54f655 | ||
|
|
ca4d1b5d04 | ||
|
|
602fde7227 | ||
|
|
567999909f | ||
|
|
c607990991 | ||
|
|
44fe418eee | ||
|
|
5d8814e900 | ||
|
|
7021ef49b4 | ||
|
|
17c267ea55 | ||
|
|
625cc08b81 | ||
|
|
28a4144ed1 | ||
|
|
de49318bc6 | ||
|
|
29eb0afa2c | ||
|
|
197c3d8333 | ||
|
|
e01f034ffd | ||
|
|
061c9d7f56 | ||
|
|
f7f0d9e3ec | ||
|
|
937186e34b | ||
|
|
3481dc75fc | ||
|
|
cd9fa0b3d3 | ||
|
|
70726a1c5a | ||
|
|
3ee84f766d | ||
|
|
f4be149bf3 | ||
|
|
3b457ce329 | ||
|
|
4fcdfc2b7e | ||
|
|
5fa956dfb6 | ||
|
|
d51374fe99 | ||
|
|
42f0135704 | ||
|
|
eeec2e0435 | ||
|
|
bf778e9405 | ||
|
|
eedcfdf957 | ||
|
|
72aa2c39ac | ||
|
|
43ede5b274 | ||
|
|
857827bcdc | ||
|
|
372c7768d0 | ||
|
|
e67df90978 | ||
|
|
f117a4f3c7 | ||
|
|
560ed2c2fd | ||
|
|
d871af1906 | ||
|
|
eb836357b8 | ||
|
|
f182f799f6 | ||
|
|
3594b7abf8 | ||
|
|
85a67a5332 | ||
|
|
15f988f04d | ||
|
|
3071ece7ba | ||
|
|
fb0dcd4ad3 | ||
|
|
d15fd0b36d | ||
|
|
18019d85e6 | ||
|
|
d92e1738dc | ||
|
|
93183debda | ||
|
|
197b61b9d6 | ||
|
|
b7ee522d86 | ||
|
|
8b7e63d237 | ||
|
|
5932f8984b | ||
|
|
2709d09823 | ||
|
|
a14ff87d0d | ||
|
|
b0dbba1475 | ||
|
|
eeb75ed8e9 | ||
|
|
283ab51259 | ||
|
|
457594797c | ||
|
|
0651fdac67 | ||
|
|
6003292d60 | ||
|
|
c125696712 | ||
|
|
562c3690a8 | ||
|
|
29ce9d3df1 | ||
|
|
eed205b7f9 | ||
|
|
fab3da8f7f | ||
|
|
3f42d9dfc9 | ||
|
|
bcc4adfae2 | ||
|
|
c281a444f0 | ||
|
|
aa635c16af | ||
|
|
2952d86c5e | ||
|
|
28f80a2ef0 | ||
|
|
eae0c07ff6 | ||
|
|
dcf7300499 | ||
|
|
b771134688 | ||
|
|
9209febd96 | ||
|
|
06b4ec0dbe | ||
|
|
55346ac4c0 | ||
|
|
d9262c055c | ||
|
|
4de51a464a | ||
|
|
bbdd75ad44 | ||
|
|
7443766f4c | ||
|
|
4c51924940 | ||
|
|
abaa88444f | ||
|
|
7929de7891 | ||
|
|
5fab376248 | ||
|
|
d8eb04dc18 | ||
|
|
c5da87b681 | ||
|
|
07d08c7ad8 | ||
|
|
744964424e | ||
|
|
2731225f4e | ||
|
|
3f4837bb35 | ||
|
|
73beea6af4 | ||
|
|
67bcfc65a5 | ||
|
|
a0daad44d9 | ||
|
|
61d5ebe172 | ||
|
|
160dc3e877 | ||
|
|
80cc47279f | ||
|
|
d41bbe201c | ||
|
|
9cd46fdbaf | ||
|
|
53781536e7 | ||
|
|
2d30deb279 | ||
|
|
88a8968490 | ||
|
|
8552d2f7b5 | ||
|
|
777fc23151 | ||
|
|
1ccddf5e74 | ||
|
|
0cf26f4ce9 | ||
|
|
fe55b0be9d | ||
|
|
718c7a61a5 | ||
|
|
bb719bd089 | ||
|
|
e62ad371f1 | ||
|
|
c387794e17 | ||
|
|
a082bec096 | ||
|
|
788a2d5c6e | ||
|
|
a9e4d17cbb | ||
|
|
9bc839e8a5 | ||
|
|
82ddeb63c4 | ||
|
|
588b4db2c6 | ||
|
|
a4d4dcfa9c | ||
|
|
0d005707bd | ||
|
|
4196a952e0 | ||
|
|
83330c0dfd | ||
|
|
8ee6c6725f | ||
|
|
68343b0a31 | ||
|
|
0105c6b016 | ||
|
|
4529d1e219 | ||
|
|
2eb4f4e2d4 | ||
|
|
dffe7fc060 | ||
|
|
cd493b946f | ||
|
|
94ef51ea0d | ||
|
|
4df5d867a9 | ||
|
|
21d4636877 | ||
|
|
8eb4c8688d | ||
|
|
a4fe2243af | ||
|
|
58b132167c | ||
|
|
1c2220ef94 | ||
|
|
caa6ca69cf | ||
|
|
b28c8a8bf1 | ||
|
|
53069d53e3 | ||
|
|
db5640dc62 | ||
|
|
f9f12e2ff6 | ||
|
|
1580d72590 | ||
|
|
63216304ee | ||
|
|
a36c31e5bd | ||
|
|
4c2c74dafb | ||
|
|
2f08a7db37 | ||
|
|
a94b526179 | ||
|
|
7a7cc2ddd9 | ||
|
|
3d88d56a9d | ||
|
|
eb3124e3a0 | ||
|
|
ab7b3841b5 | ||
|
|
e8108959e3 | ||
|
|
be9f6011bb | ||
|
|
f93e0d1755 | ||
|
|
8fa8c6173e | ||
|
|
0bbeaa7246 | ||
|
|
7ae8a6325d | ||
|
|
f1232724df | ||
|
|
83247087cb | ||
|
|
f064b9271c | ||
|
|
00d7d5481e | ||
|
|
e811d1afc3 | ||
|
|
a69bafd915 | ||
|
|
1edb4ac824 | ||
|
|
d2c75cd35a | ||
|
|
5229340412 | ||
|
|
cd84f1f8a6 | ||
|
|
7cb3e246a8 | ||
|
|
0a1f9ea3d6 | ||
|
|
27afc73571 | ||
|
|
66182eaabc | ||
|
|
07c52dd463 | ||
|
|
bf1e813d7d | ||
|
|
696cadb5f5 | ||
|
|
42d212dc95 | ||
|
|
672e80991a | ||
|
|
7c4e567cb5 | ||
|
|
abe9562fdb | ||
|
|
f14faf16e3 | ||
|
|
a6d300f592 | ||
|
|
345317d105 | ||
|
|
e9c326e61e | ||
|
|
ad7f885235 | ||
|
|
eb55313ef3 | ||
|
|
fab432f415 | ||
|
|
f7a998b54c | ||
|
|
6fd990c06c | ||
|
|
95c2866b01 | ||
|
|
50dbd4ee52 | ||
|
|
ef50c635c3 | ||
|
|
503e0d486a | ||
|
|
23f8ee408e | ||
|
|
3bbb4d656f | ||
|
|
ee979cfb2a | ||
|
|
00d238d945 | ||
|
|
a9affdced9 | ||
|
|
baef165dbc | ||
|
|
b9b99d822e | ||
|
|
74f56916ad | ||
|
|
e182bb2c84 | ||
|
|
6eee0233c3 | ||
|
|
2ed8001d27 | ||
|
|
b1353554eb | ||
|
|
937db919ac | ||
|
|
d0609af143 | ||
|
|
4741fa987d | ||
|
|
9d2ec9a955 | ||
|
|
979290c71c | ||
|
|
4012cfc46f | ||
|
|
b4ab63907c | ||
|
|
1269fdaa82 | ||
|
|
9bb6c4b84c | ||
|
|
00d715d0bf | ||
|
|
705be701fe | ||
|
|
5fbe935af8 | ||
|
|
8ef45c37e3 | ||
|
|
f4cbda6168 | ||
|
|
6b6fb8d33d | ||
|
|
f53ce777b3 | ||
|
|
f249ea80e3 | ||
|
|
7127970f23 | ||
|
|
9c0c72c166 | ||
|
|
aec1c1312e | ||
|
|
929cc14761 | ||
|
|
f88e60e07f | ||
|
|
5e1ea64c66 | ||
|
|
090c3b661b | ||
|
|
72780a6217 | ||
|
|
7dc59cf444 | ||
|
|
776d1eee1e | ||
|
|
a4c9736dfa | ||
|
|
09eed5da43 | ||
|
|
a35e265e66 | ||
|
|
f590763993 | ||
|
|
c6ff0f62e0 | ||
|
|
7e3145d230 | ||
|
|
9eb7b037ab | ||
|
|
1925115d57 | ||
|
|
b119a8de6d | ||
|
|
26a2b58048 | ||
|
|
7d37bc6cb1 | ||
|
|
4e5276ca87 | ||
|
|
5ef0aebe62 | ||
|
|
7b8b318402 | ||
|
|
85eefad0b1 | ||
|
|
2eab303457 | ||
|
|
d418083495 | ||
|
|
059c948b1c | ||
|
|
b43055cf83 | ||
|
|
beb252ecab | ||
|
|
90836c6d1e | ||
|
|
86c9def60f | ||
|
|
e91d6f2cb5 | ||
|
|
cee336547d | ||
|
|
04269b57e9 | ||
|
|
d8aca0b8d5 | ||
|
|
51c9bac405 | ||
|
|
c2906ecc4f | ||
|
|
9197b8b095 | ||
|
|
69de61aedd | ||
|
|
a576be78c3 | ||
|
|
7982ae2661 | ||
|
|
47d1f50cb2 | ||
|
|
33c345b6e6 | ||
|
|
5ea5d76b70 | ||
|
|
0880e1e51e | ||
|
|
8a240d0533 | ||
|
|
8599e36cc0 | ||
|
|
a9844142aa | ||
|
|
49d41750b7 | ||
|
|
b4e23ce79f | ||
|
|
6032297baa | ||
|
|
403089157a | ||
|
|
d519a4824a | ||
|
|
f297788806 | ||
|
|
60ad06cfbb | ||
|
|
9d2bf8ad40 | ||
|
|
13b18c2489 | ||
|
|
c5f0b0eb58 | ||
|
|
c7d56637f4 | ||
|
|
f7c8dc87ce | ||
|
|
d40b267eb1 | ||
|
|
2ffc2244ec | ||
|
|
fb10962ff9 | ||
|
|
9d2990389d | ||
|
|
9f93aca8a1 | ||
|
|
0c858cb6c3 | ||
|
|
b5ee28e60a | ||
|
|
22d49f972d | ||
|
|
2b575d7a8f | ||
|
|
4348cd7020 | ||
|
|
777e786873 | ||
|
|
1e1f138902 | ||
|
|
9578836c87 | ||
|
|
112b6d27ba | ||
|
|
a769d91464 | ||
|
|
fc0a9ccf6b | ||
|
|
2a5ba76b07 | ||
|
|
a7ac10bc8c | ||
|
|
be9449a794 | ||
|
|
d8bec1d1fb | ||
|
|
b365b1c4bf | ||
|
|
34933d9159 | ||
|
|
86bed61a0e | ||
|
|
7224b32c8f | ||
|
|
fd70a7182f | ||
|
|
8a2aaccabe | ||
|
|
f731c672bc | ||
|
|
fe5b7c7380 | ||
|
|
b5122c6044 | ||
|
|
15f22dd10c | ||
|
|
25256b0814 | ||
|
|
51e4efba7b | ||
|
|
1a98e7937d | ||
|
|
748c275969 | ||
|
|
262d48e1f7 | ||
|
|
6918a46ae8 | ||
|
|
e2c125648f | ||
|
|
6f2345efe4 | ||
|
|
a9d858a4ea | ||
|
|
1ae0329083 | ||
|
|
d2ad6107d1 | ||
|
|
122477c5c3 | ||
|
|
f82ebb9a8b | ||
|
|
f224a1be96 | ||
|
|
64f25ef95f | ||
|
|
1c205f6842 | ||
|
|
3a4bd6b24b | ||
|
|
9d31faa533 | ||
|
|
168413b710 | ||
|
|
6d03e47526 | ||
|
|
fd541e7365 | ||
|
|
d8f08176a2 | ||
|
|
b70004ec0f | ||
|
|
0486ddc5a1 | ||
|
|
6507f2699f | ||
|
|
7f58d92590 | ||
|
|
f8bba6b7b7 | ||
|
|
e6fc975796 | ||
|
|
573cca5c5d | ||
|
|
bae2a5d3a8 | ||
|
|
3c6a75c9bc | ||
|
|
e2594c2ab7 | ||
|
|
d01ca18431 | ||
|
|
79e5909bdd | ||
|
|
b626832475 | ||
|
|
35a0a4850c | ||
|
|
836e9938a0 | ||
|
|
bebffa28a6 | ||
|
|
bb3fecf57c | ||
|
|
d8d80f2729 | ||
|
|
ade8b0e5a6 | ||
|
|
ff4fa1eefa | ||
|
|
228c2df73e | ||
|
|
8eb174a6dc | ||
|
|
8bab3699ba | ||
|
|
2baad6e9f4 | ||
|
|
b36aa1c9f9 | ||
|
|
3526f72425 | ||
|
|
017261e019 | ||
|
|
5206f28c4e | ||
|
|
d86e4c1805 | ||
|
|
7f2d410a0a | ||
|
|
5e42368d69 | ||
|
|
1c72171a5e | ||
|
|
d55387a0d3 | ||
|
|
7e70281fb2 | ||
|
|
c9f75f70d1 | ||
|
|
53b305393c | ||
|
|
2cd3e47606 | ||
|
|
fee7ad7b53 | ||
|
|
6da5094cb4 | ||
|
|
09b9959bc8 | ||
|
|
23a9f018ca | ||
|
|
298b6edf66 | ||
|
|
8fa1477d7d | ||
|
|
4c4023bbc2 | ||
|
|
e32983a1a1 | ||
|
|
a24e34cf5e | ||
|
|
d7b78324f8 | ||
|
|
45aaa819b8 | ||
|
|
293668960a | ||
|
|
b9c2cdff6b | ||
|
|
c5d2082308 | ||
|
|
108bd260a4 | ||
|
|
4305b722ca | ||
|
|
eda7e1ce30 | ||
|
|
cd8d6c8e2a | ||
|
|
eca20dec50 | ||
|
|
772f7d9dce | ||
|
|
666344936e | ||
|
|
d309f8fbbf | ||
|
|
29b0c1e5a3 | ||
|
|
634f0b726a | ||
|
|
aa30d5a41e | ||
|
|
e2c6028196 | ||
|
|
c5eefbd061 | ||
|
|
3fc7dc6a21 | ||
|
|
d6abaccdf9 | ||
|
|
13559e229d | ||
|
|
b23538c47e | ||
|
|
ac4fb12e42 | ||
|
|
3b55adc445 | ||
|
|
bf479ad6a6 | ||
|
|
1f2d7a98ce | ||
|
|
58437a1b97 | ||
|
|
a5d0b3f137 | ||
|
|
bd86b7936a | ||
|
|
b8b8a8493c | ||
|
|
6d5ab8ed2e | ||
|
|
4897656425 | ||
|
|
3022f9f337 | ||
|
|
444dee3f14 | ||
|
|
50e855bb71 | ||
|
|
92dbca70d4 | ||
|
|
d16e7a3dfa | ||
|
|
e87c52d30f | ||
|
|
7e4d439da9 | ||
|
|
3a8504c1bf | ||
|
|
d9efa1d5ff | ||
|
|
c57a8c8316 | ||
|
|
d867b0921b | ||
|
|
7eaf166063 | ||
|
|
8521217d4a | ||
|
|
7589ec8f2b | ||
|
|
1e3816d1d4 | ||
|
|
fd01a352a4 | ||
|
|
005f801c0d | ||
|
|
e7f8503578 | ||
|
|
867ef34628 | ||
|
|
44edb23ba2 | ||
|
|
e49c40cc08 | ||
|
|
9989291941 | ||
|
|
e2b4153dab | ||
|
|
cb72ca5571 | ||
|
|
cbfce9ab2e | ||
|
|
9a095732fa | ||
|
|
d8d9923224 | ||
|
|
9feed83fcc | ||
|
|
f16c416176 | ||
|
|
19a51f8df7 | ||
|
|
afc5854615 | ||
|
|
be41f1a6b8 | ||
|
|
f6845ab22c | ||
|
|
37cc838137 | ||
|
|
a311e814d1 | ||
|
|
77e69f23e3 | ||
|
|
c01e362ae0 | ||
|
|
a5d2659d98 | ||
|
|
64658fd9f2 | ||
|
|
3e7836b9ff | ||
|
|
e25a3623a5 | ||
|
|
ddc65ddd23 | ||
|
|
164195e0dc | ||
|
|
3622ed7548 | ||
|
|
716423bd88 | ||
|
|
a1e38eec1f | ||
|
|
0876d41421 | ||
|
|
c60e36b1a0 | ||
|
|
b6cf6d21a1 | ||
|
|
9e14a3cffb | ||
|
|
f7c03a3fac | ||
|
|
c168970723 | ||
|
|
51713c5b16 | ||
|
|
04b8f73ac4 | ||
|
|
d5903f6412 | ||
|
|
a3f3e11927 | ||
|
|
2397ebc565 | ||
|
|
1fa155c213 | ||
|
|
f6040707e1 | ||
|
|
84b2a5f0a4 | ||
|
|
cd1efcdcfc | ||
|
|
7c9735b7b1 | ||
|
|
8a5002d1a5 | ||
|
|
623ebfc3e2 | ||
|
|
e71e74cd5b | ||
|
|
2267a2cadb | ||
|
|
311e9b61d7 | ||
|
|
b4ef665848 | ||
|
|
aec3fe4a87 | ||
|
|
6793ccea30 | ||
|
|
21707dbe5d | ||
|
|
8845958ec4 | ||
|
|
f9c659036d | ||
|
|
0f20e99ac1 | ||
|
|
3a4844a5dd | ||
|
|
6c31b3465f | ||
|
|
4b553c3c92 | ||
|
|
9bed8d022d | ||
|
|
40ea4c0911 | ||
|
|
d27dc54377 | ||
|
|
3366237828 | ||
|
|
accdffa88a | ||
|
|
61b687275f | ||
|
|
9c2e3e52ad | ||
|
|
2cb334b091 | ||
|
|
8a6aeb0657 | ||
|
|
c770cd017e | ||
|
|
a4c49d6634 | ||
|
|
33d431606d | ||
|
|
d8295dff33 | ||
|
|
749339f331 | ||
|
|
9828f66f5d | ||
|
|
b426bc36a7 | ||
|
|
e0a8d4cb3e | ||
|
|
d06e17dfdc | ||
|
|
bf364c5f5f | ||
|
|
b6668a8eeb | ||
|
|
30e07a9c3b | ||
|
|
f64e6494c6 | ||
|
|
0e58460d21 | ||
|
|
ae38c4d391 | ||
|
|
d1d4c54818 | ||
|
|
cfe419d41c | ||
|
|
83c1806d2b | ||
|
|
5d80b8e06a | ||
|
|
3b033be048 | ||
|
|
9633625e3d | ||
|
|
70f5d059f0 | ||
|
|
1891cf1b6c | ||
|
|
34441f587e | ||
|
|
36f2e86a42 | ||
|
|
d54a9e4602 | ||
|
|
9872221dc3 | ||
|
|
a1cfbe7f5b | ||
|
|
0dfdf593ca | ||
|
|
70c9226bf8 | ||
|
|
afb65615b0 | ||
|
|
3bf9b18d64 | ||
|
|
e2d63da311 | ||
|
|
b4f1bb2402 | ||
|
|
dac2c32ff4 | ||
|
|
eec2832116 | ||
|
|
1c5f732c3c | ||
|
|
62f545531d | ||
|
|
ec78b7452a | ||
|
|
e5f998af5d | ||
|
|
5235ac23b0 | ||
|
|
19001b16dc | ||
|
|
b770e52fe8 | ||
|
|
fade13cdab | ||
|
|
0bca03284c | ||
|
|
d1c81de9b9 | ||
|
|
0210f1857c | ||
|
|
61e20cd615 | ||
|
|
3aefa7697b | ||
|
|
684d84bad5 | ||
|
|
1ac8419be5 | ||
|
|
bed07054ee | ||
|
|
8bb84da1ad | ||
|
|
f14b1a8297 | ||
|
|
9f8ba49c0d | ||
|
|
1e7071ebe3 | ||
|
|
2e8885d238 | ||
|
|
95472adfbd | ||
|
|
9ec677dacd | ||
|
|
f6a7f26a45 | ||
|
|
4d90e5e785 | ||
|
|
31866f12a5 | ||
|
|
8a9ea940a4 | ||
|
|
6778fc6d08 | ||
|
|
1a16ca2096 | ||
|
|
c4b3cc89b0 | ||
|
|
13fade2773 | ||
|
|
3a147c8ec4 | ||
|
|
5f2f3a0d45 | ||
|
|
1a45ca9340 | ||
|
|
f3bdc551cd | ||
|
|
d93a5410d9 | ||
|
|
1afa36e8e9 | ||
|
|
5915b3ec17 | ||
|
|
fb89859dd2 | ||
|
|
1d7d058933 | ||
|
|
a8bccaca44 | ||
|
|
fc44b09df1 | ||
|
|
4e52bf41e1 | ||
|
|
c10197461f | ||
|
|
c4d26a4c10 | ||
|
|
acacd09253 | ||
|
|
d45d287d93 | ||
|
|
c036e72642 | ||
|
|
ceac906771 | ||
|
|
891676c7ef | ||
|
|
cd2711942e | ||
|
|
a75b358751 | ||
|
|
69b6d3685d | ||
|
|
9d890648e4 | ||
|
|
28828f3356 | ||
|
|
d9aabe206d | ||
|
|
63b352d670 | ||
|
|
995c653fec | ||
|
|
5332589b65 | ||
|
|
3cf19d8656 | ||
|
|
71e17a26ae | ||
|
|
6dadf537f3 | ||
|
|
4d78150453 | ||
|
|
23deb5c46f | ||
|
|
1ff8e631fe | ||
|
|
b5f35f6379 | ||
|
|
e4861bf0c6 | ||
|
|
5c8f4028ea | ||
|
|
9ddf5ec311 | ||
|
|
577dd0ed83 | ||
|
|
6b793d4527 | ||
|
|
c160065c28 | ||
|
|
cca0b67988 | ||
|
|
2aa3e6732e | ||
|
|
e8bdf93e92 | ||
|
|
e7e579ffa5 | ||
|
|
e380d82962 | ||
|
|
893fda4abe | ||
|
|
e528547b89 | ||
|
|
f26f3ccbde | ||
|
|
5309106b1d | ||
|
|
e44b3b5d22 | ||
|
|
709ecf6f9b | ||
|
|
aa46c08c00 | ||
|
|
6d93a78d22 | ||
|
|
f7b5046a38 | ||
|
|
31df74b318 | ||
|
|
e62744dc21 | ||
|
|
083a0a2895 | ||
|
|
0a21090dca | ||
|
|
f28b8236fb | ||
|
|
7826cb1914 | ||
|
|
0ba95365cf | ||
|
|
674ff77fc4 | ||
|
|
0d0d0453cc | ||
|
|
4da5c874f6 | ||
|
|
ec5744b968 | ||
|
|
5f0955c58f | ||
|
|
9386992fde | ||
|
|
0d4f34770e | ||
|
|
9e05b7c843 | ||
|
|
1fe1aab59c | ||
|
|
7ae8626d98 | ||
|
|
acca012245 | ||
|
|
058d616d6a | ||
|
|
46e7ef256d | ||
|
|
92d3934649 | ||
|
|
d70503cda7 | ||
|
|
4bd1367d9e | ||
|
|
54dbd91975 | ||
|
|
14f80ab573 | ||
|
|
fe821c3e8b | ||
|
|
91763122c7 | ||
|
|
2e81094d15 | ||
|
|
3ddb560e33 | ||
|
|
8255765ce4 | ||
|
|
3d2a4b3df9 | ||
|
|
752bb80885 | ||
|
|
b6a4353d38 | ||
|
|
be4cddd450 | ||
|
|
fa7ba87eea | ||
|
|
8a0992220a | ||
|
|
c0cac28e72 | ||
|
|
bbebc3c459 | ||
|
|
86397a6641 | ||
|
|
f810232331 | ||
|
|
657ea8cffa | ||
|
|
b64e769f5a | ||
|
|
889e461bd6 | ||
|
|
091abbdf69 | ||
|
|
02b7c6158d | ||
|
|
82ab3289db | ||
|
|
1e120d3ec7 | ||
|
|
12539d5f9d | ||
|
|
ca7c7087ff | ||
|
|
61f657a197 | ||
|
|
19fe7460c9 | ||
|
|
14368e851c | ||
|
|
01da6cb89f | ||
|
|
adff1f9c97 | ||
|
|
cfbfe60f89 | ||
|
|
607c207e2c | ||
|
|
54d12c5bf3 | ||
|
|
ae7639c1d4 | ||
|
|
8ed5ea6fc5 | ||
|
|
60478a3658 | ||
|
|
362a84d038 | ||
|
|
9def3808e3 | ||
|
|
eedb7e8449 | ||
|
|
764c4ae94d | ||
|
|
972c639730 | ||
|
|
43051bad90 | ||
|
|
6bfe30b394 | ||
|
|
205a8f54f0 | ||
|
|
ab34d7aa4f | ||
|
|
8ee01b7adb | ||
|
|
0d6cc52d23 | ||
|
|
bfd71feac0 | ||
|
|
9f0e08b84f | ||
|
|
130d16a2f0 | ||
|
|
4cd1d91f39 | ||
|
|
87100e9ae7 | ||
|
|
e355c8df68 | ||
|
|
d01daa4137 | ||
|
|
a09648c79d | ||
|
|
016367a0a8 | ||
|
|
4c40900910 | ||
|
|
f0d4e5bfdb | ||
|
|
4db7872c02 | ||
|
|
cd43fb6f0e | ||
|
|
23b360e8d7 | ||
|
|
d32d72ee4d | ||
|
|
955041cc41 | ||
|
|
8359967b16 | ||
|
|
6e4a1dfc6f | ||
|
|
47207476ff | ||
|
|
544b30c830 | ||
|
|
f20e2bcfe3 | ||
|
|
f55412035d | ||
|
|
a864adbfb8 | ||
|
|
5be159eede | ||
|
|
e69b8758e3 | ||
|
|
f319bcd85a | ||
|
|
1a079c90c4 | ||
|
|
9b11f2cf9b | ||
|
|
35488ecca1 | ||
|
|
825e376777 | ||
|
|
f9db70676c | ||
|
|
bc8319e20e | ||
|
|
af9cf005ff | ||
|
|
932f9e9bb2 | ||
|
|
839bb88359 | ||
|
|
36f9fee280 | ||
|
|
a790d21ee8 | ||
|
|
4a23b8d858 | ||
|
|
808906a7b3 | ||
|
|
93bf63eda5 | ||
|
|
c09544d942 | ||
|
|
5fcb33bf16 | ||
|
|
3dd5943e17 | ||
|
|
0c82cd3950 | ||
|
|
7ec7eb2467 | ||
|
|
f1378367d7 | ||
|
|
1f58f2f524 | ||
|
|
0f869cac3e | ||
|
|
ba6564a282 | ||
|
|
83c675d2fc | ||
|
|
e66a112713 | ||
|
|
9b3eff0f3a | ||
|
|
5a2c010f3b | ||
|
|
313bc50103 | ||
|
|
f3fab514a5 | ||
|
|
94652f4257 | ||
|
|
43b8ca3b3f | ||
|
|
7b8b9dc379 | ||
|
|
7103d52a6e | ||
|
|
ce11b56444 | ||
|
|
fbafb8daa7 | ||
|
|
abb3ced69c | ||
|
|
7e050ed632 | ||
|
|
6eac8cf2c7 | ||
|
|
30c05ea9b8 | ||
|
|
f058b92ca9 | ||
|
|
0a2f952056 | ||
|
|
1c2e3a19ca | ||
|
|
d30f049111 | ||
|
|
a8fa68a611 | ||
|
|
23b2abdfaf | ||
|
|
aff8e9f058 | ||
|
|
1275ca92e3 | ||
|
|
e6d35dd400 | ||
|
|
ef3f9fccaa | ||
|
|
dd2f2030da | ||
|
|
da8ac77ace | ||
|
|
98d228da4c | ||
|
|
4e10159781 | ||
|
|
cf03da0a2e | ||
|
|
e6e989281c | ||
|
|
47a0a24a5e | ||
|
|
f6d022c377 | ||
|
|
32104da31f | ||
|
|
6b4812b251 | ||
|
|
f25fdad9dc | ||
|
|
7797d16b04 | ||
|
|
37bdaceeb9 | ||
|
|
fc16a98987 | ||
|
|
5b3b2da64c | ||
|
|
e1d686d1a7 | ||
|
|
ad32b718eb | ||
|
|
0cedd45cd7 | ||
|
|
b7018e1f59 | ||
|
|
6d505d275b | ||
|
|
2305a80102 | ||
|
|
8139bb7b0f | ||
|
|
6775728c50 | ||
|
|
16dbc6cff0 | ||
|
|
3ac4a98ecb | ||
|
|
57bf10dbc5 | ||
|
|
b7f0a5b23e | ||
|
|
799ccf83ec | ||
|
|
4a72442fdb | ||
|
|
939d71923b | ||
|
|
0ef92a5565 | ||
|
|
9000bd6916 | ||
|
|
3bf29b529d | ||
|
|
b7b3e32f22 | ||
|
|
b5468cc143 | ||
|
|
706ca1938b | ||
|
|
daaedeed7e | ||
|
|
40deffb3b9 | ||
|
|
bf8ec12645 | ||
|
|
f83d5850a1 | ||
|
|
d657e88dd8 | ||
|
|
767436610c | ||
|
|
71cd20052b | ||
|
|
deda5cf11c | ||
|
|
d39f95d634 | ||
|
|
2f9ded7646 | ||
|
|
298dfc1064 | ||
|
|
c3f8044743 | ||
|
|
733e694ba0 | ||
|
|
a573f0efe3 | ||
|
|
f17cc18995 | ||
|
|
190e54578a | ||
|
|
7e4ae5381b | ||
|
|
f71a9b3dd8 | ||
|
|
d32eb379ba | ||
|
|
96af04433c | ||
|
|
85d9677a64 | ||
|
|
131540e3f1 | ||
|
|
b3876468b2 | ||
|
|
b343707978 | ||
|
|
59e4bf628e | ||
|
|
c0ac92604f | ||
|
|
a9e4827e32 | ||
|
|
4470b7ba9c | ||
|
|
0889276494 | ||
|
|
b29caca472 | ||
|
|
718ec2f7b4 | ||
|
|
7cfb961e2b | ||
|
|
fea37bc512 | ||
|
|
5778605417 | ||
|
|
f7d156ac79 | ||
|
|
be798afe5c | ||
|
|
ca1f5fdb69 | ||
|
|
519782e0f3 | ||
|
|
9b846a4733 | ||
|
|
c9e92bbbbb | ||
|
|
d566c3bc31 | ||
|
|
7fdb6da915 | ||
|
|
516a7b4798 | ||
|
|
cb95c40055 | ||
|
|
9699a4434a | ||
|
|
6d4db993e4 | ||
|
|
887fcbdc90 | ||
|
|
365f38c781 | ||
|
|
9e92684593 | ||
|
|
ceadadbe95 | ||
|
|
e3b5cbc36f | ||
|
|
ca9a025fad | ||
|
|
05c6ce13bc | ||
|
|
023968ef9d | ||
|
|
b0bdc3e7b2 | ||
|
|
f0e177d62d | ||
|
|
061f7ff6f8 | ||
|
|
4e9c0b9d45 | ||
|
|
0198cf84f5 | ||
|
|
8fd5350ee3 | ||
|
|
c333720fa3 | ||
|
|
472477efa0 | ||
|
|
6c6c01fb16 | ||
|
|
6a14339c56 | ||
|
|
79eb2a3be0 | ||
|
|
8a83a176ce | ||
|
|
5e4bc4b564 | ||
|
|
a2e6315198 | ||
|
|
33de864504 | ||
|
|
3c2aa37967 | ||
|
|
9765122df4 | ||
|
|
270d2a335b | ||
|
|
b0097eacbd | ||
|
|
43afaa3e8d | ||
|
|
2927090bb7 | ||
|
|
3dfa5c6e4e | ||
|
|
d946810c46 | ||
|
|
5788fb93c1 | ||
|
|
7e72e3c01b | ||
|
|
b7f0ddd7f0 | ||
|
|
5bccfd3d26 | ||
|
|
ba25161515 | ||
|
|
379ddd5251 | ||
|
|
72946e2474 | ||
|
|
f97504d164 | ||
|
|
7ab91a568d | ||
|
|
21dfb21c41 | ||
|
|
7206f5952b | ||
|
|
8d23a14c79 | ||
|
|
0423bef836 | ||
|
|
b1faa99a90 | ||
|
|
7985321022 | ||
|
|
7b000bcab0 | ||
|
|
6102d27530 | ||
|
|
6c6cecc5bd | ||
|
|
5b72834c62 | ||
|
|
821357cf35 | ||
|
|
2eb6e294cf | ||
|
|
1a475b5bc8 | ||
|
|
7072481f90 | ||
|
|
f88096a15f | ||
|
|
b666f59554 | ||
|
|
9e3d663a7d | ||
|
|
48704bd3ce | ||
|
|
0c1e225364 | ||
|
|
e69e7be1d9 | ||
|
|
d3abbcdf82 | ||
|
|
f43ce12a87 | ||
|
|
3946314ae0 | ||
|
|
862468f51f | ||
|
|
4f0827f834 | ||
|
|
ee7ee72530 | ||
|
|
18274d4d22 | ||
|
|
e7c2ceeeb4 | ||
|
|
69e9641bf4 | ||
|
|
83c40cfd40 | ||
|
|
9eeaf5989e | ||
|
|
c120c58dda | ||
|
|
608f3fbe4b | ||
|
|
f6dec9d447 | ||
|
|
148b6f6cc5 | ||
|
|
c3934702e0 | ||
|
|
35832a6993 | ||
|
|
93b3a165ab | ||
|
|
3cf5c646c6 | ||
|
|
11afeea08d | ||
|
|
5e3e2bf688 | ||
|
|
e30e538d5f | ||
|
|
26e81eba6e | ||
|
|
e60d73b410 | ||
|
|
d05cd4aab2 | ||
|
|
d16483bacb | ||
|
|
e2703aad84 | ||
|
|
5a9c9a6d3a | ||
|
|
aa149f4f3e | ||
|
|
02ba6ed3df | ||
|
|
60996020f4 | ||
|
|
9700bf11e3 | ||
|
|
11b6078c57 | ||
|
|
1dc145cc9a | ||
|
|
10a0cd09db | ||
|
|
6031562851 | ||
|
|
0da5c0ce41 | ||
|
|
b2a514d3fe | ||
|
|
ad99714882 | ||
|
|
0233e44ccd | ||
|
|
07e5d8b3ec | ||
|
|
8bd60624a0 | ||
|
|
201fe21e6d | ||
|
|
0ded695295 | ||
|
|
712b754c09 | ||
|
|
5b1667d798 | ||
|
|
4fd3a07224 | ||
|
|
a646d76bf3 | ||
|
|
fdf618b2be | ||
|
|
c783285a16 | ||
|
|
24b2107c48 | ||
|
|
389de2aa84 | ||
|
|
fa1c780786 | ||
|
|
3c24a166e8 | ||
|
|
fa7bc18364 | ||
|
|
9c4cd920d7 | ||
|
|
7820616b77 | ||
|
|
e6fb9d5e4c | ||
|
|
c6d8108c8c | ||
|
|
a8a3ba4ec9 | ||
|
|
3df2f2dda9 | ||
|
|
556f8268f3 | ||
|
|
29c004da9c | ||
|
|
9cd6e0945d | ||
|
|
0f7d44a2c9 | ||
|
|
9f2cf446b1 | ||
|
|
c374a25f5a | ||
|
|
0ba04749f7 | ||
|
|
a53743862f | ||
|
|
4fce311046 | ||
|
|
590f62d035 | ||
|
|
5a0908517e | ||
|
|
306650fcdd | ||
|
|
d9c0c2140c | ||
|
|
209d74ab7a | ||
|
|
ca684d14d8 | ||
|
|
aa00c65a7a | ||
|
|
c7f6b6ba8d | ||
|
|
65f1596eae | ||
|
|
f3ef8d30f1 | ||
|
|
437bec5b63 | ||
|
|
7c20f1ab49 | ||
|
|
67b8c698b0 | ||
|
|
1c44b7e416 | ||
|
|
ec5eaeff81 | ||
|
|
28cef74dd1 | ||
|
|
b520a464cb | ||
|
|
b6cda88ae4 | ||
|
|
3f78b3755a | ||
|
|
709baae712 | ||
|
|
5b485b7b10 | ||
|
|
c82d9e55a4 | ||
|
|
97d2d9cac2 | ||
|
|
29576fd08e | ||
|
|
7524041a76 | ||
|
|
3f77c98783 | ||
|
|
b74cc0dd59 | ||
|
|
f8052b9c9b | ||
|
|
d3486f3a40 | ||
|
|
68d3fb1eb4 | ||
|
|
d1442902b2 | ||
|
|
4c44fa47cd | ||
|
|
4e6478c8f9 | ||
|
|
f9774e9275 | ||
|
|
d65d6e298e | ||
|
|
d859d9ce49 | ||
|
|
b1974ffafd | ||
|
|
3143cf0838 | ||
|
|
aa68641eba | ||
|
|
e28f01abf3 | ||
|
|
8e2b2c78fc | ||
|
|
2cea484f50 | ||
|
|
023a48aa8a | ||
|
|
3748c8ecd5 | ||
|
|
7bd7deca37 | ||
|
|
0c7878f494 | ||
|
|
85baa91a4a | ||
|
|
79746f9e81 | ||
|
|
16c2ba8b64 | ||
|
|
ef77bd7018 | ||
|
|
e1b2f1806b | ||
|
|
5f3155baa4 | ||
|
|
3db7799b65 | ||
|
|
15ff81d6bb | ||
|
|
e1df46b7cd | ||
|
|
da34062a9c | ||
|
|
def8cc39b6 | ||
|
|
12b32fce3d | ||
|
|
f2477f437b | ||
|
|
40485253ec | ||
|
|
3d9478a75c | ||
|
|
815fef7f3d | ||
|
|
b4e8b7e8c9 | ||
|
|
4da044146f | ||
|
|
967e1642d3 | ||
|
|
cae51b3a7a | ||
|
|
86a5631431 | ||
|
|
0a307e9221 | ||
|
|
334eb7c3c5 | ||
|
|
657cfdfe36 | ||
|
|
a2be506272 | ||
|
|
c45b478de2 | ||
|
|
89ae8480da | ||
|
|
f24aeb5a7a | ||
|
|
e7f95fe956 | ||
|
|
c9f9a8ddb2 | ||
|
|
abde385776 | ||
|
|
6926ae21ff | ||
|
|
b7a2d368f7 | ||
|
|
53fd30f093 | ||
|
|
64b904107a | ||
|
|
36064873e3 | ||
|
|
a2ad367651 | ||
|
|
924fedc116 | ||
|
|
ef2e44c5e9 | ||
|
|
520a9c3b97 | ||
|
|
3d99e9a88e | ||
|
|
f3220ee526 | ||
|
|
18c0755aa2 | ||
|
|
2da122f5cf | ||
|
|
6cb26bf2d8 | ||
|
|
c0ae401600 | ||
|
|
9c5a48f2a8 | ||
|
|
8c7970f17c | ||
|
|
073748e50b | ||
|
|
f0c598c11c | ||
|
|
f94886ce2f | ||
|
|
7cf044b2ce | ||
|
|
6448b3bbab | ||
|
|
62af291091 | ||
|
|
4c54a391be | ||
|
|
da48fd84dc | ||
|
|
efe5c6229c | ||
|
|
a13d5a947a | ||
|
|
31391be8c3 | ||
|
|
4d8856e0f4 | ||
|
|
459439f132 | ||
|
|
249c9f290d | ||
|
|
0373c0ada6 | ||
|
|
d54709c23d | ||
|
|
0a0b25b5af | ||
|
|
76b607dfd2 | ||
|
|
d2d8eef15f | ||
|
|
9505efb797 | ||
|
|
6d579f8b1e | ||
|
|
ada46e567c | ||
|
|
9bf7dccb64 | ||
|
|
98e27151ff | ||
|
|
b876b99459 | ||
|
|
0bb3ef55b3 | ||
|
|
2d43a05a54 | ||
|
|
9ec6477ef5 | ||
|
|
5e00131db4 | ||
|
|
35c5b469a0 | ||
|
|
3725ec26f7 | ||
|
|
6a977b6de4 | ||
|
|
5889df5b63 | ||
|
|
8ceec96224 | ||
|
|
c2855e2e1d | ||
|
|
90af85d00f | ||
|
|
3ebc206e7d | ||
|
|
a1cbac0afb | ||
|
|
d01c18b379 | ||
|
|
dd3f645e80 | ||
|
|
e05d2064b8 | ||
|
|
0bc68090a8 | ||
|
|
42e06e8954 | ||
|
|
77f828c817 | ||
|
|
f73758ea25 | ||
|
|
7e6cc96e5e | ||
|
|
dcc132700c | ||
|
|
30c98b734d | ||
|
|
40c8e69614 | ||
|
|
59c18ea6c3 | ||
|
|
a05b75b30b | ||
|
|
d580264d8c | ||
|
|
288ad14b6d | ||
|
|
14517b1638 | ||
|
|
74f17494a4 | ||
|
|
6f516cc2eb | ||
|
|
acadfd73bb | ||
|
|
49deeb3f99 | ||
|
|
846f29ef6d | ||
|
|
55a137f014 | ||
|
|
776a0a67ae | ||
|
|
b1fa8c098b | ||
|
|
f4c21a0cb2 | ||
|
|
a5615eb090 | ||
|
|
325d150908 | ||
|
|
04a88a2e30 | ||
|
|
88502a3db1 | ||
|
|
11852b81f1 | ||
|
|
46c246b5ff | ||
|
|
e33ac27d6c | ||
|
|
38b6307776 | ||
|
|
e4ee22ad75 | ||
|
|
bec9bdf3f3 | ||
|
|
76b6d68bc2 | ||
|
|
26742e3ae3 | ||
|
|
97874039c6 | ||
|
|
a97128da1e | ||
|
|
3e5e2cc0ec | ||
|
|
946e0c12e3 | ||
|
|
b834264c3e | ||
|
|
4ebd54707e | ||
|
|
14b7cc670c | ||
|
|
09ccae26c4 | ||
|
|
88f7fe6850 | ||
|
|
577c5ab8df | ||
|
|
157c9e8b22 | ||
|
|
55c2fb38ac | ||
|
|
163396c6d9 | ||
|
|
2e5c1f7890 | ||
|
|
79038d3c63 | ||
|
|
1ab25e80e6 | ||
|
|
99aee71cc8 | ||
|
|
7d48c6a609 | ||
|
|
6cd5fce271 | ||
|
|
a413927980 | ||
|
|
b19565bf8b | ||
|
|
faa73bebc9 | ||
|
|
aaf612f2d9 | ||
|
|
6b2393e9e9 | ||
|
|
81b76d12ce | ||
|
|
2612bf1cfe | ||
|
|
9f19897528 | ||
|
|
f8e033db15 | ||
|
|
dd75c20464 | ||
|
|
08afd5df89 | ||
|
|
e5db3a720c | ||
|
|
488691afa4 | ||
|
|
ef7f75b184 | ||
|
|
fc83b1ba0a | ||
|
|
42a5426881 | ||
|
|
544a6ae56a | ||
|
|
622885d9c0 | ||
|
|
42a42ef8c7 | ||
|
|
0f065ef202 | ||
|
|
788a30a26e | ||
|
|
85b44fd31d | ||
|
|
6c7b494f16 | ||
|
|
64d8b44a13 | ||
|
|
72bf7d084b | ||
|
|
c1c01d5b03 | ||
|
|
6a5a198b1d | ||
|
|
9eb21ada8b | ||
|
|
594954dbe2 | ||
|
|
4d21fb5b02 | ||
|
|
c345b4dab3 | ||
|
|
bce4ed4a42 | ||
|
|
249ac1b505 | ||
|
|
c14e52a663 | ||
|
|
739bc17c3a | ||
|
|
8d1adc7e4d | ||
|
|
ed27972608 | ||
|
|
b6ffa970cf | ||
|
|
abd27055c1 | ||
|
|
2a895e1b88 | ||
|
|
71438446fe | ||
|
|
74d6b55483 | ||
|
|
3171d78d5e | ||
|
|
1216bd3539 | ||
|
|
6df8babc7d | ||
|
|
d32f942e2b | ||
|
|
70f3a0047f | ||
|
|
b948f27692 | ||
|
|
52281dd25c | ||
|
|
231a91e367 | ||
|
|
4bf0de92c5 | ||
|
|
64d6900434 | ||
|
|
0f611d56f6 | ||
|
|
19f75f4a0d | ||
|
|
3ab2db4133 | ||
|
|
1852e9f4fb | ||
|
|
a55f150eac | ||
|
|
efb7cf07e5 | ||
|
|
86c5343c55 | ||
|
|
c1553e5b55 | ||
|
|
c25332008f | ||
|
|
37654eb807 | ||
|
|
0771c4c2dd | ||
|
|
a2edc469ac | ||
|
|
cb2ce86aae | ||
|
|
b5ca6ff3aa | ||
|
|
0db59a7a59 | ||
|
|
dd90ee9f8f | ||
|
|
56be384dfd | ||
|
|
fe721bd833 | ||
|
|
4bf1058c46 | ||
|
|
a8f4397be4 | ||
|
|
b06051dd91 | ||
|
|
01a0d58c7d | ||
|
|
bc7679fd0d | ||
|
|
96633db340 | ||
|
|
cf0b1e3cac | ||
|
|
a716e0cae1 | ||
|
|
89243cb066 | ||
|
|
904ab9f05b | ||
|
|
d5f7c704dd | ||
|
|
5fd8ef62aa | ||
|
|
3e798d9cc5 | ||
|
|
07110d2580 | ||
|
|
21011ef277 | ||
|
|
12d46659ec | ||
|
|
f29ab3042d | ||
|
|
2ea4920851 | ||
|
|
0566d4e7e0 | ||
|
|
beb4b08f88 | ||
|
|
e170d6685f | ||
|
|
d15217ddcb | ||
|
|
9f5c84aba9 | ||
|
|
153f515f15 | ||
|
|
28c4d555d4 | ||
|
|
4e546076ef | ||
|
|
235141e2d9 | ||
|
|
c731bd023a | ||
|
|
d1faaf64f5 | ||
|
|
54a0ac3618 | ||
|
|
a8ac404c98 | ||
|
|
52a18195cd | ||
|
|
3a74329548 | ||
|
|
7d7b35f5fd | ||
|
|
eb0e5bc589 | ||
|
|
1154b219fe | ||
|
|
397da60f4f | ||
|
|
8bb885d476 | ||
|
|
a51523e54c | ||
|
|
104f5a32a7 | ||
|
|
fe04c49f7e | ||
|
|
ddb0e0bff8 | ||
|
|
d9206e955d | ||
|
|
b5a857ef68 | ||
|
|
b873ffef9c | ||
|
|
d9abb7c99f | ||
|
|
8df825d16a | ||
|
|
c87bcf1e3e | ||
|
|
c9bdc1b6e9 | ||
|
|
f4dc8cbcf9 | ||
|
|
b6506e2776 | ||
|
|
34962255a2 | ||
|
|
a0d1924165 | ||
|
|
e83b9d1268 | ||
|
|
10801b8f7d | ||
|
|
1957f97807 | ||
|
|
88ed00660a | ||
|
|
fda8d9fd35 | ||
|
|
b7df1b362c | ||
|
|
f07cc0f76f | ||
|
|
44196fa9e6 | ||
|
|
27c7a77f04 | ||
|
|
6aebb483a1 | ||
|
|
3560db200c | ||
|
|
a053c5388c | ||
|
|
2ed5dad582 | ||
|
|
48c8aeb6ff | ||
|
|
2665d5c56b | ||
|
|
b800d6fe07 | ||
|
|
a47070f4e3 | ||
|
|
6eacd7e378 | ||
|
|
5365164ef5 | ||
|
|
e6030842aa | ||
|
|
189a796a7f | ||
|
|
dfbe6400d4 | ||
|
|
2ca383628e | ||
|
|
d9552e268c | ||
|
|
97bcfa2686 | ||
|
|
b54ddb6fb2 | ||
|
|
e134296565 | ||
|
|
9d16e20db5 | ||
|
|
2649840644 | ||
|
|
8f0487b0ee | ||
|
|
ca9aded3df | ||
|
|
e0fee86ea7 | ||
|
|
ffc2de2e4a | ||
|
|
602e52d9e6 | ||
|
|
8a8a4e57ee | ||
|
|
8a6ef9e437 | ||
|
|
8abed82899 | ||
|
|
12bdac3bb4 | ||
|
|
c723f0a780 | ||
|
|
800cebcc8f | ||
|
|
911724881c | ||
|
|
44999af7d8 | ||
|
|
4b8a40ce59 | ||
|
|
93364ef723 | ||
|
|
b0f29c5036 | ||
|
|
293cb0e457 | ||
|
|
4311af2a5f | ||
|
|
fdea88eb2b | ||
|
|
16ff93c32d | ||
|
|
5c7b8bf6b2 | ||
|
|
874f4bd681 | ||
|
|
f53bb7acb6 | ||
|
|
7607beebaf | ||
|
|
80f82b4b87 | ||
|
|
8056216d3f | ||
|
|
b6dfc1c2a4 | ||
|
|
5b15b6922c | ||
|
|
4ae8ed2d82 | ||
|
|
e708c0363e | ||
|
|
ec76dbb57a | ||
|
|
2b0f8b20c1 | ||
|
|
98ff895d3b | ||
|
|
8b002ab157 | ||
|
|
2986e6babd | ||
|
|
ec9598ae16 | ||
|
|
2c9ba2c277 | ||
|
|
f2b51fbd2a | ||
|
|
6e5ed604cd | ||
|
|
3e27625064 | ||
|
|
e3e70a59e6 | ||
|
|
7dcc1eb87e | ||
|
|
1d09b41dd6 | ||
|
|
5db84529de | ||
|
|
c19eec5a90 | ||
|
|
59ec13d95a | ||
|
|
c4a2b22c30 | ||
|
|
0d338ab4a7 | ||
|
|
989b29a43a | ||
|
|
4c248bd88a | ||
|
|
d8f94a68fb | ||
|
|
8498d7c76d | ||
|
|
b198ce5d35 | ||
|
|
22984ceef1 | ||
|
|
233b2d4e39 | ||
|
|
24137cf2a9 | ||
|
|
81bc32fa6d | ||
|
|
38018276e5 | ||
|
|
097194d542 | ||
|
|
2804a2b079 | ||
|
|
a58a8fef28 | ||
|
|
314fde72e8 | ||
|
|
a086584a41 | ||
|
|
ea7c7b55e8 | ||
|
|
21febf0117 | ||
|
|
c6850f41bb | ||
|
|
f9b812b156 | ||
|
|
9f6096c7fc | ||
|
|
b13552e5d1 | ||
|
|
c16ae91de0 | ||
|
|
49fd8e4eb3 | ||
|
|
e180a38544 | ||
|
|
100314dfd7 | ||
|
|
5fb237f01a | ||
|
|
2be20b4bee | ||
|
|
2a419628f9 | ||
|
|
2461b47d75 | ||
|
|
13e51464f6 | ||
|
|
294b008880 | ||
|
|
c628a3da3e | ||
|
|
120df57edf | ||
|
|
4cfb3f27f6 | ||
|
|
47c758c5c0 | ||
|
|
9ff5bbfcaa | ||
|
|
a0494ce3d0 | ||
|
|
db15ff2314 | ||
|
|
fd17d3ac75 | ||
|
|
5f9eb0b6fd | ||
|
|
9486f19f5d | ||
|
|
10a9397fd0 | ||
|
|
ad159c7f20 | ||
|
|
3fcb991ac7 | ||
|
|
74fc9eb2b0 | ||
|
|
6ad7660939 | ||
|
|
ba6ae737ca | ||
|
|
10f86d4253 | ||
|
|
79f1608780 | ||
|
|
5f9f799580 | ||
|
|
6c34392c11 | ||
|
|
38e24f4642 | ||
|
|
07b3a025a5 | ||
|
|
954329a8e7 | ||
|
|
f6aadc71f0 | ||
|
|
06aae6a164 | ||
|
|
3569c43fb2 | ||
|
|
118d8cc649 | ||
|
|
1d4dca0ff3 | ||
|
|
ee81077b00 | ||
|
|
482f6efa02 | ||
|
|
7d9535007e | ||
|
|
c018e132c8 | ||
|
|
acb4d643f7 | ||
|
|
4276b56e0c | ||
|
|
f5dd7c8c5f | ||
|
|
fbf6b203e1 | ||
|
|
2b175249cb | ||
|
|
967ef3e1b0 | ||
|
|
6ef9f90beb | ||
|
|
c2fa342aae | ||
|
|
30fb7bdedf | ||
|
|
8790f4b630 | ||
|
|
f00033ab1b | ||
|
|
994b827643 | ||
|
|
7f966ce80d | ||
|
|
658a2d48f5 | ||
|
|
c603ff0386 | ||
|
|
6c462d0a96 | ||
|
|
53d1a6627d | ||
|
|
8a0cd184e3 | ||
|
|
6c11b8f256 | ||
|
|
2125e05bc2 | ||
|
|
cc6afebfec | ||
|
|
36014020e5 | ||
|
|
27e9dea422 | ||
|
|
1830cd2e54 | ||
|
|
d2f16b6b68 | ||
|
|
1de6b6be8b | ||
|
|
8f3505d62e | ||
|
|
c4f8004b41 | ||
|
|
fb64056cbd | ||
|
|
177c25bfb4 | ||
|
|
d36ac3643b | ||
|
|
9be6c356d2 | ||
|
|
4ae6d868bb | ||
|
|
91d528d311 | ||
|
|
ad459653b4 | ||
|
|
3b96166ee8 | ||
|
|
932382d5c8 | ||
|
|
acedbcce0b | ||
|
|
47b0b17c15 | ||
|
|
d622e455c7 | ||
|
|
f0a76dad04 | ||
|
|
dcbeb35155 | ||
|
|
ee5fec149e | ||
|
|
f7159e0bbb | ||
|
|
6d6abf41f5 | ||
|
|
b861dbc0b5 | ||
|
|
2250b00c0a | ||
|
|
3ca85aff8f | ||
|
|
57937ac458 | ||
|
|
35e49e58ab | ||
|
|
4c8d390d47 | ||
|
|
77af4d2f95 | ||
|
|
b9aa8618d0 | ||
|
|
d4453df8c2 | ||
|
|
9f1446fafb | ||
|
|
59d7a9c4c2 | ||
|
|
098d0ed7b8 | ||
|
|
dbef0b0efd | ||
|
|
526d4b6be2 | ||
|
|
11754a63fd | ||
|
|
866ce9a04f | ||
|
|
6a8b1df491 | ||
|
|
2c4d2f9189 | ||
|
|
75431a14ca | ||
|
|
ac975d8e9c | ||
|
|
e0a4667cc8 | ||
|
|
cbec1d3869 | ||
|
|
228c17ca68 | ||
|
|
1d7dc13e18 | ||
|
|
da7a0ac606 | ||
|
|
f31bd85445 | ||
|
|
886b15de87 | ||
|
|
5e567c48a5 | ||
|
|
c37091d0f1 | ||
|
|
53777163d9 | ||
|
|
33b89db7f5 | ||
|
|
043dabaccf | ||
|
|
04de047b8a | ||
|
|
af48273465 | ||
|
|
2ee71b6d98 | ||
|
|
70bed0c4c3 | ||
|
|
0adce0240e | ||
|
|
6e0ecf4d96 | ||
|
|
8677cd9376 | ||
|
|
372be47ac8 | ||
|
|
55f8c87b92 | ||
|
|
94495614c3 | ||
|
|
2807c3ce6d | ||
|
|
58014e9b1e | ||
|
|
be23dac2b3 | ||
|
|
65acb7426b | ||
|
|
c9a3c0549b | ||
|
|
4f30cc6eb7 | ||
|
|
56cefa1ca5 | ||
|
|
139db5c08d | ||
|
|
efd57bfce0 | ||
|
|
28a66cba18 | ||
|
|
011b6e6e04 | ||
|
|
8e75b3b605 | ||
|
|
223081cf05 | ||
|
|
27113f8b4b | ||
|
|
325ea187e0 | ||
|
|
2bff6a080f | ||
|
|
5370e4904c | ||
|
|
a858456d38 | ||
|
|
6ff4ad0c33 | ||
|
|
637189ddf6 | ||
|
|
5055deb3cb | ||
|
|
55534bb52b | ||
|
|
05edc193ae | ||
|
|
91ff0fd2a7 | ||
|
|
28ea2b2858 | ||
|
|
3811f7d704 | ||
|
|
9b6c18cd6b | ||
|
|
6834b68948 | ||
|
|
4ef6fba0c6 | ||
|
|
3a527137d4 | ||
|
|
721f8750ae | ||
|
|
d2a2b81652 | ||
|
|
0d006dac66 | ||
|
|
eb3b963dca | ||
|
|
a91da6cf3c | ||
|
|
b84a137cf7 | ||
|
|
58a2e10c0a | ||
|
|
7004ab627c | ||
|
|
589be0c892 | ||
|
|
fbea8e0905 | ||
|
|
5fc43ed45b | ||
|
|
b232503fab | ||
|
|
be4af844fe | ||
|
|
fdf2a82e2e | ||
|
|
36925139db | ||
|
|
11c88f28cd | ||
|
|
b42ad27f6f | ||
|
|
ccbed31ab2 | ||
|
|
a51c55f4d8 | ||
|
|
a77e87288a | ||
|
|
739bff4633 | ||
|
|
a6751473f6 | ||
|
|
1ee3ecd462 | ||
|
|
821cd025e9 | ||
|
|
e0a59900a3 | ||
|
|
ea1948dc59 | ||
|
|
4e6cd56c39 | ||
|
|
b63cceddf3 | ||
|
|
e9ace93035 | ||
|
|
fb4e080e30 | ||
|
|
f71190e286 | ||
|
|
6aaec6f658 | ||
|
|
167c40f550 | ||
|
|
0df49ff670 | ||
|
|
5c042ae0ab | ||
|
|
2559f7907b | ||
|
|
e6fedfd2f3 | ||
|
|
f3e803f57f | ||
|
|
329f4c86bc | ||
|
|
84e4d97f00 | ||
|
|
7f79a654bd | ||
|
|
429dc7c7a7 | ||
|
|
e35fa9b85a | ||
|
|
a877fa0788 | ||
|
|
e6a08c5229 | ||
|
|
c615612889 | ||
|
|
121cc4ea6d | ||
|
|
c849ed21fa | ||
|
|
d6e810da4a | ||
|
|
55414072e7 | ||
|
|
688bf668e8 | ||
|
|
b0714795bd | ||
|
|
82ada0930b | ||
|
|
02fe0c67f1 | ||
|
|
cfdf000b25 | ||
|
|
1b1a198839 | ||
|
|
9186146437 | ||
|
|
923b048e4f | ||
|
|
0aa68aeb58 | ||
|
|
ab4c72184a | ||
|
|
86d82931bb | ||
|
|
7f0e9a4178 | ||
|
|
b01d0fded2 | ||
|
|
c09700ea57 | ||
|
|
1717095cef | ||
|
|
d0a5191a61 | ||
|
|
a22357d1c6 | ||
|
|
f81c405dba | ||
|
|
98a0d70571 | ||
|
|
41e0a628d6 | ||
|
|
f0532dcc6c | ||
|
|
5efd875b06 | ||
|
|
fa9629e796 | ||
|
|
a4ad0d7e19 | ||
|
|
a079331bf8 | ||
|
|
7ead22de93 | ||
|
|
e71f608d18 | ||
|
|
975e34db95 | ||
|
|
ee4cbd2092 | ||
|
|
e3af929579 | ||
|
|
e119ba073c | ||
|
|
6a8cbc97e2 | ||
|
|
bafa285903 | ||
|
|
486286245f | ||
|
|
fd7afd2ead | ||
|
|
1618707e5d | ||
|
|
4ee1d0a78a | ||
|
|
65b0109d39 | ||
|
|
c81ee6ecf3 | ||
|
|
459c325597 | ||
|
|
a877e93c3a | ||
|
|
03fbf61cf8 | ||
|
|
af95ef11d6 | ||
|
|
446149c9ef | ||
|
|
5304062b40 | ||
|
|
3dabe909b4 | ||
|
|
783fcf5a4b | ||
|
|
ae92f54122 | ||
|
|
e3dee247b4 | ||
|
|
fb54ca8281 | ||
|
|
ddc84518ee | ||
|
|
901fb8c67d | ||
|
|
33f684f791 | ||
|
|
2e9ae091da | ||
|
|
c86dc05572 | ||
|
|
084e04c30a | ||
|
|
d5bb4ed6bf | ||
|
|
206e7e7d1c | ||
|
|
15c3c55142 | ||
|
|
74c07d8353 | ||
|
|
8602e795d9 | ||
|
|
713e87ce00 | ||
|
|
eb8f33ef8f | ||
|
|
6f7e6534ba | ||
|
|
5861b6f03b | ||
|
|
f0ef6dec0d | ||
|
|
e598b37db4 | ||
|
|
1e57e9cef4 | ||
|
|
effa0a42df | ||
|
|
1cdfb139c1 | ||
|
|
85645a0e6a | ||
|
|
6d5105b5cd | ||
|
|
a6dbd3998d | ||
|
|
629dd20113 | ||
|
|
197009cf2c | ||
|
|
734efafe53 | ||
|
|
d9b364556b | ||
|
|
23f6e4b35e | ||
|
|
f102512204 | ||
|
|
c52f0e092d | ||
|
|
2ad59839a5 | ||
|
|
8507860b15 | ||
|
|
41f24b9a3a | ||
|
|
0fe9cf19b4 | ||
|
|
d51ab2bfc6 | ||
|
|
9642c1c9b0 | ||
|
|
a207810ab9 | ||
|
|
b816664428 | ||
|
|
a5a48789c5 | ||
|
|
2c890730b6 | ||
|
|
cb04820196 | ||
|
|
8571384c4a | ||
|
|
c9daa8a02b | ||
|
|
0a3ea9b1e1 | ||
|
|
963a8a516b | ||
|
|
6c1311db5e | ||
|
|
97539d4178 | ||
|
|
b455fe6f06 | ||
|
|
9ef9137688 | ||
|
|
a172eb0def | ||
|
|
35c978697b | ||
|
|
0fe1391750 | ||
|
|
48c02f1f01 | ||
|
|
d35f7b3249 | ||
|
|
5e3e1e64d4 | ||
|
|
11d08b9545 | ||
|
|
300d5c4b6f | ||
|
|
fd622e2eb8 | ||
|
|
fe8291d05c | ||
|
|
c6bee0727f | ||
|
|
691f26e736 | ||
|
|
b73c819142 | ||
|
|
bc73947b6b | ||
|
|
1fa51927bb | ||
|
|
681a56a741 | ||
|
|
91411f5563 | ||
|
|
f5c9e08ad6 | ||
|
|
2e1b073c55 | ||
|
|
f30c7c8aa4 | ||
|
|
ac0ef4e086 | ||
|
|
635b13b7d2 | ||
|
|
31001f15ae | ||
|
|
2b55346a0c | ||
|
|
fde6005cbf | ||
|
|
16709fdae0 | ||
|
|
7ed653e876 | ||
|
|
fffb8fd441 | ||
|
|
9f02cf26c1 | ||
|
|
0dd6d0125c | ||
|
|
cfd289c0c8 | ||
|
|
8196324f73 | ||
|
|
bde548de40 | ||
|
|
124b98f9d7 | ||
|
|
3df7cbc0b6 | ||
|
|
1caae0dd75 | ||
|
|
9290f1d2a7 | ||
|
|
1798d07210 | ||
|
|
3949ddd59c | ||
|
|
35d71b331b | ||
|
|
fc4b64ca34 | ||
|
|
f7fd47f2d6 | ||
|
|
cebae55ca5 | ||
|
|
0fc0bc9c2b | ||
|
|
20cdea101f | ||
|
|
03d5768f40 | ||
|
|
adcc681721 | ||
|
|
f11070dcf0 | ||
|
|
ca775a2809 | ||
|
|
b7dc5e395e | ||
|
|
15154eda7f | ||
|
|
776109f487 | ||
|
|
bd1579d7fb | ||
|
|
7e23d08285 | ||
|
|
cc74d4020d | ||
|
|
f7458bc638 | ||
|
|
368656d807 | ||
|
|
07589b54d0 | ||
|
|
1e7030236e | ||
|
|
e4bd07f86a | ||
|
|
986b20a0ad | ||
|
|
0362b1c1dd | ||
|
|
12d3538904 | ||
|
|
6e726df521 | ||
|
|
dd71272904 | ||
|
|
6170144fb1 | ||
|
|
56bfcd0b67 | ||
|
|
dddd66d49e | ||
|
|
e1525cfad4 | ||
|
|
889dfad9fa | ||
|
|
4de91cc543 | ||
|
|
cece50e1a3 | ||
|
|
98505984e1 | ||
|
|
875cff557d | ||
|
|
2e8139809b | ||
|
|
8e6d902ca3 | ||
|
|
f1b966b12d | ||
|
|
fe1bc5980c | ||
|
|
825efbb150 | ||
|
|
e75bd60fd8 | ||
|
|
0e3418dc56 | ||
|
|
8970c17472 | ||
|
|
c6b2d6c1cc | ||
|
|
1875210f3f | ||
|
|
89acfaff8f | ||
|
|
6fbaf4175b | ||
|
|
af90c653e9 | ||
|
|
ced8e30797 | ||
|
|
b137b88952 | ||
|
|
0e5d18c0a1 | ||
|
|
4a862c6ecc | ||
|
|
3a9d1fc665 | ||
|
|
0b17fa4799 | ||
|
|
321262d737 | ||
|
|
932d2c1cfb | ||
|
|
bd450ac8d0 | ||
|
|
98edbc1d96 | ||
|
|
4d2523425b | ||
|
|
31c27f657f | ||
|
|
01e4289f77 | ||
|
|
08c54acae7 | ||
|
|
6e4e50168c | ||
|
|
16b562ea2f | ||
|
|
96ae3957f8 | ||
|
|
76c305d8c3 | ||
|
|
497c762879 | ||
|
|
7b9077d085 | ||
|
|
62b21528ee | ||
|
|
fbee383d5f | ||
|
|
e28be4cc32 | ||
|
|
46bf958215 | ||
|
|
6dbcc7aacd | ||
|
|
c6cedc8ca3 | ||
|
|
013edd87ac | ||
|
|
67ef857544 | ||
|
|
8b586bddf6 | ||
|
|
7d7432a374 | ||
|
|
d4623f453d | ||
|
|
3d83f3278c | ||
|
|
22be48c309 | ||
|
|
38d7808dfa | ||
|
|
fba53c1fe5 | ||
|
|
a03a515613 | ||
|
|
8241e98121 | ||
|
|
ddfdbb4ab0 | ||
|
|
ab472d8fd2 | ||
|
|
88f1ca4f23 | ||
|
|
066d468fa4 | ||
|
|
3d3b2541dc | ||
|
|
6cef94924e | ||
|
|
2926f28add | ||
|
|
2934273086 | ||
|
|
b72252d109 | ||
|
|
c0363f5915 | ||
|
|
03da79e482 | ||
|
|
c0c0478472 | ||
|
|
09d0be1414 | ||
|
|
f011eb576c | ||
|
|
52d367ac1d | ||
|
|
659e1ec200 | ||
|
|
bba4078ea5 | ||
|
|
d76f0d17c1 | ||
|
|
baeb967857 | ||
|
|
8b9d902908 | ||
|
|
9a249fa7ab | ||
|
|
91c388b991 | ||
|
|
4edac09d28 | ||
|
|
b515ade385 | ||
|
|
8386d0b8d1 | ||
|
|
d35a492576 | ||
|
|
0ca9ba2b24 | ||
|
|
a14c1c1a0e | ||
|
|
2e2f15ac1a | ||
|
|
4b54b218d5 | ||
|
|
c6d0f9f6b7 | ||
|
|
61e148efd8 | ||
|
|
c6a20e910a | ||
|
|
63bc3ec4e0 | ||
|
|
ce099562d2 | ||
|
|
d24bd761b8 | ||
|
|
7b0dc771ba | ||
|
|
48ebec183f | ||
|
|
77d1000070 | ||
|
|
054c7d87ed | ||
|
|
3107cc2bcb | ||
|
|
dcbaabaa35 | ||
|
|
74caacf6df | ||
|
|
9ea7b15e9e | ||
|
|
00678628d2 | ||
|
|
881d73263a | ||
|
|
a0da888c1d | ||
|
|
1ce097c4e9 | ||
|
|
e527d42fd1 | ||
|
|
02d2102687 | ||
|
|
7e7e4a7da5 | ||
|
|
68d5062941 | ||
|
|
e3dccf23d6 | ||
|
|
acfc7c4478 | ||
|
|
320a11023f | ||
|
|
494d9c717b | ||
|
|
b5e339cc0e | ||
|
|
90675e7aeb | ||
|
|
7f8f882458 | ||
|
|
64082f187d | ||
|
|
537389fadc | ||
|
|
5f63daf075 | ||
|
|
eb3c2f01b3 | ||
|
|
3990382f2f | ||
|
|
32be43a42a | ||
|
|
ea4faf6e33 | ||
|
|
115b12029a | ||
|
|
ca6490daf2 | ||
|
|
05757dd7d7 | ||
|
|
dc6d1422ff | ||
|
|
1eb9fabc8e | ||
|
|
6ba21b151d | ||
|
|
beacdfa650 | ||
|
|
cda005d5d6 | ||
|
|
ef227b1045 | ||
|
|
f2c1c4a851 | ||
|
|
fca201178a | ||
|
|
60c07d58c2 | ||
|
|
c5ee4b9da2 | ||
|
|
3984381bed | ||
|
|
bdb9e16bbe | ||
|
|
04c475746b | ||
|
|
0e155a0f5c | ||
|
|
b565c9e0ff | ||
|
|
5aeb12ddcb | ||
|
|
6b9da34f1c | ||
|
|
2fce503b63 | ||
|
|
b3d7dd98b8 | ||
|
|
4dcb5772a6 | ||
|
|
c978ce5594 | ||
|
|
e550add61a | ||
|
|
1a19bc065d | ||
|
|
999a5b040b | ||
|
|
0de5c4ad53 | ||
|
|
b4f1e12c00 | ||
|
|
80e5623432 | ||
|
|
78d0e75d44 | ||
|
|
1af02caff4 | ||
|
|
0de6ec510a | ||
|
|
3768e4c4d4 | ||
|
|
15faca947d | ||
|
|
a709a1065b | ||
|
|
c099d6f4a0 | ||
|
|
5e821ad0a4 | ||
|
|
b32d11e4ce | ||
|
|
a95ce92bd5 | ||
|
|
dedabf1fac | ||
|
|
99b514e318 | ||
|
|
9818c9a4b6 | ||
|
|
faa99d43eb | ||
|
|
a0c97985cd | ||
|
|
5bb974aff5 | ||
|
|
488049dea4 | ||
|
|
4767ff988e | ||
|
|
a7065fe5e6 | ||
|
|
3b8175ddb0 | ||
|
|
1fdfdd07bb | ||
|
|
b164f515a8 | ||
|
|
f48bb00982 | ||
|
|
ae77730228 | ||
|
|
8943021945 | ||
|
|
3fefbff618 | ||
|
|
ca2cd43df3 | ||
|
|
cb6ef24038 | ||
|
|
07a563de3b | ||
|
|
d3c027f619 | ||
|
|
c72793a230 | ||
|
|
de509dbf8a | ||
|
|
95890dce1a | ||
|
|
6759d2948a | ||
|
|
d99ea35ce1 | ||
|
|
fa44d65081 | ||
|
|
e0a9a267e3 | ||
|
|
9cd9c0fae6 | ||
|
|
24add61102 | ||
|
|
af2bcba4bd | ||
|
|
2425bf5561 | ||
|
|
0dc2ecd566 | ||
|
|
f807aa879c | ||
|
|
05a7880299 | ||
|
|
9749393cc0 | ||
|
|
cc1c3f5668 | ||
|
|
a3604f3341 | ||
|
|
532ba30e99 | ||
|
|
1b76f33e0b | ||
|
|
3fbc76fd5b | ||
|
|
4db7176b6e | ||
|
|
456372d085 | ||
|
|
1b1dff7863 | ||
|
|
37381fdf60 | ||
|
|
36eea7e767 | ||
|
|
e220018413 | ||
|
|
79e49201ab | ||
|
|
eb05fec6fb | ||
|
|
4d52abb2ae | ||
|
|
fccb628eef | ||
|
|
d7317b98cb | ||
|
|
791195c44d | ||
|
|
68762bdc64 | ||
|
|
9734a20227 | ||
|
|
6a9a3be06c | ||
|
|
25d3309255 | ||
|
|
751606c336 | ||
|
|
3547c1b3c4 | ||
|
|
12e55bb97f | ||
|
|
bd02b33149 | ||
|
|
b231cfeaa3 | ||
|
|
25a16c87d7 | ||
|
|
1bdd2dc6d7 | ||
|
|
e1d44e9adf | ||
|
|
005f5335ad | ||
|
|
e4a30c149c | ||
|
|
424d198db9 | ||
|
|
d37f6659aa | ||
|
|
a04d8acefa | ||
|
|
e36a3f43ab | ||
|
|
619d69f858 | ||
|
|
d0c67d7110 | ||
|
|
2c043824a8 | ||
|
|
5ac2de58f3 | ||
|
|
8921fe38c8 | ||
|
|
8383e076e3 | ||
|
|
7f091823ad | ||
|
|
b941d0f381 | ||
|
|
3cd76bc459 | ||
|
|
d218737f18 | ||
|
|
52eaaa932a | ||
|
|
79c050da98 | ||
|
|
21cb849a74 | ||
|
|
65771a11f3 | ||
|
|
8f9dfa9f0a | ||
|
|
84a032cdac | ||
|
|
34b73d8c59 | ||
|
|
c4339e37de | ||
|
|
bf65bee5e6 | ||
|
|
a2c1cf05c6 | ||
|
|
9dabe3bcc7 | ||
|
|
6abe1dbd87 | ||
|
|
45cd25222b | ||
|
|
44183f0a3f | ||
|
|
5b18a3e236 | ||
|
|
9da56ee94f | ||
|
|
0cfd957621 | ||
|
|
85b93197d1 | ||
|
|
bd5879ae4b | ||
|
|
f89b8efe04 | ||
|
|
ec78b27939 | ||
|
|
7e57cc263b | ||
|
|
fbbc3225f1 | ||
|
|
c5ab42d9d5 | ||
|
|
dd52eb89aa | ||
|
|
5f9b80e55a | ||
|
|
a18170ff1e | ||
|
|
5076902214 | ||
|
|
1ebc01df47 | ||
|
|
eb2170beda | ||
|
|
bfd405cc20 | ||
|
|
6fd45b5d70 | ||
|
|
83f78c0d4c | ||
|
|
18997cc0ef | ||
|
|
a8cfdd3f01 | ||
|
|
82f6025ebc | ||
|
|
d4c3c9ef10 | ||
|
|
301b426a6e | ||
|
|
3be967b672 | ||
|
|
b254dc5c1e | ||
|
|
e082cc4f53 | ||
|
|
be234dd12e | ||
|
|
148b03b512 | ||
|
|
f9f6b5168a | ||
|
|
f6f57c3ca2 | ||
|
|
f539aba035 | ||
|
|
81d7262627 | ||
|
|
ccd40d867d | ||
|
|
19ed1f5174 | ||
|
|
70c2cd74cd | ||
|
|
959298e43a | ||
|
|
2e1160d571 | ||
|
|
36aa4e3bc0 | ||
|
|
d2ab82a8d7 | ||
|
|
b7efe23d10 | ||
|
|
fe94a22669 | ||
|
|
63ccf02f3b | ||
|
|
cf8c6f38b3 | ||
|
|
50cfb0f7c9 | ||
|
|
5f401a5ba3 | ||
|
|
e18dec19a1 | ||
|
|
78dedd874e | ||
|
|
ee22504a9b | ||
|
|
ad25e21036 | ||
|
|
cb56c9efc6 | ||
|
|
2e533418ab | ||
|
|
e5f74bbd73 | ||
|
|
9fb8424cfe | ||
|
|
e5fd39e13c | ||
|
|
80dca173a7 | ||
|
|
3015a36cdb | ||
|
|
faecd06b10 | ||
|
|
df281252ab | ||
|
|
7a93550064 | ||
|
|
09ef7a195d | ||
|
|
bfdfb25971 | ||
|
|
28d318cd91 | ||
|
|
f7500f50fa | ||
|
|
d6f87e129e | ||
|
|
dc51f46c49 | ||
|
|
30ac85295c | ||
|
|
752757e1fe | ||
|
|
706a4cb8c1 | ||
|
|
0827b2337b | ||
|
|
ac8ae16786 | ||
|
|
3b33d8a17f | ||
|
|
07e699f64e | ||
|
|
711a744304 | ||
|
|
524b037c08 | ||
|
|
b0ad3fa412 | ||
|
|
314214de10 | ||
|
|
88ecd13c24 | ||
|
|
537fe6a5bf | ||
|
|
28f48e2d26 | ||
|
|
0f8f80c641 | ||
|
|
b7f34254c3 | ||
|
|
e57fb63005 | ||
|
|
8bb79c286a | ||
|
|
bde0d9aac5 | ||
|
|
a95105205b | ||
|
|
8052d5a90a | ||
|
|
9a00e39e42 | ||
|
|
6e0553ddbf | ||
|
|
f2f6654107 | ||
|
|
b43b19abe4 | ||
|
|
15b9715aef | ||
|
|
9caab363d2 | ||
|
|
1ac1364fd5 | ||
|
|
2086d51b12 | ||
|
|
78de8dcf0f | ||
|
|
b95bc35d82 | ||
|
|
381914f718 | ||
|
|
5219aa7017 | ||
|
|
901e318124 | ||
|
|
f1dd0e7d4a | ||
|
|
f6eaf2e09a | ||
|
|
512e0ad7b8 | ||
|
|
f11b742ffc | ||
|
|
4835d5f48a | ||
|
|
9d29cf380b | ||
|
|
41085d2846 | ||
|
|
334d69766e | ||
|
|
1cecd5b508 | ||
|
|
0686829a5e | ||
|
|
a1fe95ae43 | ||
|
|
a89fe5dc1b | ||
|
|
9026ae2a6a | ||
|
|
eaed7ba3d9 | ||
|
|
ab39d14cba | ||
|
|
542e20fb54 | ||
|
|
1d0192ba18 | ||
|
|
10d6c6ec9e | ||
|
|
cc3137b7f1 | ||
|
|
f6380b93bb | ||
|
|
220263b15e | ||
|
|
b14eafa612 | ||
|
|
f093f1c72e | ||
|
|
7787a75af8 | ||
|
|
9a5e3c91b3 | ||
|
|
38e9532da2 | ||
|
|
5a3df577ee | ||
|
|
78bc738ebd | ||
|
|
9d2133bb2d | ||
|
|
07a85045b1 | ||
|
|
ef834df88b | ||
|
|
d992ab28a9 | ||
|
|
33683c9661 | ||
|
|
5e8a50495f | ||
|
|
b8588bf7f9 |
45
.devcontainer/.env.devcontainer
Normal file
45
.devcontainer/.env.devcontainer
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
APP_DEBUG=true
|
||||
APP_ENV=development
|
||||
APP_FALLBACK_LOCALE=en
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=blessingskin
|
||||
DB_USERNAME=username
|
||||
DB_PASSWORD=secret
|
||||
DB_PREFIX=
|
||||
|
||||
# Hash Algorithm for Passwords
|
||||
#
|
||||
# Available values:
|
||||
# - BCRYPT, ARGON2I, PHP_PASSWORD_HASH
|
||||
# - MD5, SALTED2MD5
|
||||
# - SHA256, SALTED2SHA256
|
||||
# - SHA512, SALTED2SHA512
|
||||
#
|
||||
# New sites are *highly* recommended to use BCRYPT.
|
||||
#
|
||||
PWD_METHOD=BCRYPT
|
||||
APP_KEY=base64:JaytOHG/JlLgulTVAhiS0tRqnAfCkQydbdP6VRmoAMY=
|
||||
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=
|
||||
MAIL_PORT=465
|
||||
MAIL_USERNAME=
|
||||
MAIL_PASSWORD=
|
||||
MAIL_ENCRYPTION=
|
||||
MAIL_FROM_ADDRESS=
|
||||
MAIL_FROM_NAME=
|
||||
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
|
||||
REDIS_CLIENT=phpredis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
PLUGINS_DIR=null
|
||||
PLUGINS_URL=null
|
||||
26
.devcontainer/Dockerfile
Normal file
26
.devcontainer/Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# [Choice] PHP version (use -bullseye variants on local arm64/Apple Silicon): 8, 8.1, 8.0, 7, 7.4, 7.3, 8-bullseye, 8.1-bullseye, 8.0-bullseye, 7-bullseye, 7.4-bullseye, 7.3-bullseye, 8-buster, 8.1-buster, 8.0-buster, 7-buster, 7.4-buster
|
||||
ARG VARIANT=8-bullseye
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/php:0-${VARIANT}
|
||||
|
||||
# Install MariaDB client
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get install -y mariadb-client zlib1g-dev libpng-dev libzip-dev libwebp-dev \
|
||||
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install php-mysql driver
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql gd zip
|
||||
|
||||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
|
||||
ARG NODE_VERSION="none"
|
||||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
|
||||
|
||||
# Enable Apache rewrite module
|
||||
RUN a2enmod rewrite
|
||||
|
||||
# [Optional] Uncomment this section to install additional OS packages.
|
||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
||||
|
||||
# [Optional] Uncomment this line to install global node packages.
|
||||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
||||
|
||||
13
.devcontainer/blessing-skin.apache.conf
Normal file
13
.devcontainer/blessing-skin.apache.conf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Listen 8080
|
||||
|
||||
<Directory /workspace/public/>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<VirtualHost *:8080>
|
||||
DocumentRoot /workspace/public
|
||||
ErrorLog /workspace/storage/logs/apache-error.log
|
||||
CustomLog /workspace/storage/logs/apache-access.log combined
|
||||
</VirtualHost>
|
||||
34
.devcontainer/devcontainer.json
Normal file
34
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/php-mariadb
|
||||
// Update the VARIANT arg in docker-compose.yml to pick a PHP version
|
||||
{
|
||||
"name": "PHP & MariaDB (Community)",
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "app",
|
||||
"workspaceFolder": "/workspace",
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {},
|
||||
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"xdebug.php-debug",
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
"mrmlnc.vscode-apache"
|
||||
],
|
||||
|
||||
// For use with PHP or Apache (e.g.php -S localhost:8080 or apache2ctl start)
|
||||
"forwardPorts": [8080, 3306],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
"postCreateCommand": "sudo truncate -s 0 /etc/apache2/ports.conf && sudo rm -f /etc/apache2/sites-enabled/000-default.conf && sudo ln -sf /workspace/.devcontainer/blessing-skin.apache.conf /etc/apache2/sites-enabled/ && ln -sf .devcontainer/.env.devcontainer .env && composer install && yarn install",
|
||||
|
||||
// Start apache2 after the container is started
|
||||
"postStartCommand": "apache2ctl start && echo '\\n👉 \\e[0;32mPlease run '\\'yarn build\\'' to build the frontend. Application is available on port 8080.\\e[0m 👈\\n'",
|
||||
|
||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "vscode",
|
||||
"features": {
|
||||
"powershell": "latest"
|
||||
}
|
||||
}
|
||||
47
.devcontainer/docker-compose.yml
Normal file
47
.devcontainer/docker-compose.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
# Update 'VARIANT' to pick a version of PHP version: 8, 8.1, 8.0, 7, 7.4
|
||||
# Append -bullseye or -buster to pin to an OS version.
|
||||
# Use -bullseye variants on local arm64/Apple Silicon.
|
||||
VARIANT: "8-bullseye"
|
||||
# Optional Node.js version
|
||||
NODE_VERSION: "lts/*"
|
||||
|
||||
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
|
||||
# Overrides default command so things don't shut down after the process ends.
|
||||
command: sleep infinity
|
||||
|
||||
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
||||
network_mode: service:db
|
||||
|
||||
# Uncomment the next line to use a non-root user for all processes.
|
||||
# user: vscode
|
||||
|
||||
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
|
||||
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
||||
|
||||
db:
|
||||
image: mariadb:10.4
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- mariadb-data:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: mariadb
|
||||
MYSQL_DATABASE: blessingskin
|
||||
MYSQL_USER: username
|
||||
MYSQL_PASSWORD: secret
|
||||
|
||||
# Add "forwardPorts": ["3306"] to **devcontainer.json** to forward MariaDB locally.
|
||||
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
||||
|
||||
volumes:
|
||||
mariadb-data:
|
||||
59
.dockerignore
Normal file
59
.dockerignore
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
.git/
|
||||
.github/
|
||||
.vscode/
|
||||
.idea/
|
||||
.cache/
|
||||
.cache-loader/
|
||||
coverage/
|
||||
node_modules/
|
||||
plugins/**
|
||||
public/app/*
|
||||
public/lang/*
|
||||
public/plugins/**
|
||||
resources/assets/tests/
|
||||
storage/*.db
|
||||
storage/*.sqlite
|
||||
storage/insane-profile-cache
|
||||
storage/oauth-public.key
|
||||
storage/oauth-private.key
|
||||
storage/install.lock
|
||||
storage/options.php
|
||||
storage/debugbar
|
||||
storage/framework/cache/**
|
||||
storage/framework/sessions/**
|
||||
storage/framework/testing/
|
||||
storage/framework/views/**
|
||||
storage/logs/**
|
||||
storage/packages/**
|
||||
storage/textures/*
|
||||
storage/update_cache/*
|
||||
target/
|
||||
tests/
|
||||
vendor/*
|
||||
_ide_helper.php
|
||||
.dockerignore
|
||||
.editorconfig
|
||||
.env
|
||||
.env.testing
|
||||
.eslintignore
|
||||
.eslintrc.yml
|
||||
.gitignore
|
||||
.php_cs.*
|
||||
.php-cs-fixer.cache
|
||||
.php-cs-fixer.dist.php
|
||||
.phpstorm.meta.php
|
||||
.phpunit.result.cache
|
||||
.sass-cache
|
||||
.uini
|
||||
azure-pipelines.yml
|
||||
crowdin.yml
|
||||
docker-compose.yml
|
||||
Dockerfile*
|
||||
index.html
|
||||
junit.xml
|
||||
phpunit.xml
|
||||
README*.md
|
||||
server.php
|
||||
tsconfig.dev.json
|
||||
tsconfig.eslint.json
|
||||
yarn-error.log
|
||||
13
.editorconfig
Normal file
13
.editorconfig
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{php,md,ps1,Dockerfile}]
|
||||
indent_size = 4
|
||||
45
.env.example
Normal file
45
.env.example
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
APP_DEBUG=false
|
||||
APP_ENV=production
|
||||
APP_FALLBACK_LOCALE=en
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=blessingskin
|
||||
DB_USERNAME=username
|
||||
DB_PASSWORD=secret
|
||||
DB_PREFIX=
|
||||
|
||||
# Hash Algorithm for Passwords
|
||||
#
|
||||
# Available values:
|
||||
# - BCRYPT, ARGON2I, PHP_PASSWORD_HASH
|
||||
# - MD5, SALTED2MD5
|
||||
# - SHA256, SALTED2SHA256
|
||||
# - SHA512, SALTED2SHA512
|
||||
#
|
||||
# New sites are *highly* recommended to use BCRYPT.
|
||||
#
|
||||
PWD_METHOD=BCRYPT
|
||||
APP_KEY=
|
||||
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=
|
||||
MAIL_PORT=465
|
||||
MAIL_USERNAME=
|
||||
MAIL_PASSWORD=
|
||||
MAIL_ENCRYPTION=
|
||||
MAIL_FROM_ADDRESS=
|
||||
MAIL_FROM_NAME=
|
||||
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
|
||||
REDIS_CLIENT=phpredis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
PLUGINS_DIR=null
|
||||
PLUGINS_URL=null
|
||||
105
.env.testing
Normal file
105
.env.testing
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
APP_DEBUG=false
|
||||
APP_ENV=testing
|
||||
|
||||
DB_CONNECTION=sqlite
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=:memory:
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=root
|
||||
DB_PREFIX=
|
||||
|
||||
PWD_METHOD=BCRYPT
|
||||
BCRYPT_ROUNDS=4
|
||||
APP_KEY=base64:eVX/xzF5NhpGB2luswliFx9XSBsbbAP21wOi68X/P34=
|
||||
|
||||
MAIL_MAILER=array
|
||||
MAIL_HOST=localhost
|
||||
MAIL_PORT=465
|
||||
MAIL_USERNAME=
|
||||
MAIL_PASSWORD=
|
||||
MAIL_ENCRYPTION=ssl
|
||||
|
||||
CACHE_DRIVER=array
|
||||
SESSION_DRIVER=array
|
||||
QUEUE_CONNECTION=sync
|
||||
LOG_CHANNEL=null
|
||||
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=
|
||||
REDIS_PORT=6379
|
||||
|
||||
PLUGINS_DIR=plugins
|
||||
PLUGINS_URL=
|
||||
|
||||
TEXTURES_DIR=
|
||||
|
||||
JWT_SECRET=1tdM3gXarxYI4KlAHMBo238iC2tEb4I3EtBlZTQQXvInXIt7V2ix7hJ1KTvxCKZW
|
||||
|
||||
PASSPORT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----
|
||||
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQC6q6SCprX3yfOE
|
||||
DFBnfFk3R+33qvoe26nYQkavKfv7zA9KQxCBNHEsFKOQ6ui+ViebVHAIHBPm2518
|
||||
REVMLN2JONvXbPETV6gJO/b6FFwo2Aow/GbTnesLhWEAPW11ei0/hBbjWF9hQZ/n
|
||||
x3YsFk0xtml2iPDijfUohwp50iFyCQylw4S5Sy3vuVdM063dkxvECsU6wmHDev9C
|
||||
PxFZGl3W2iLSwttYl7xmlwll8xuqxDQUJpJbOxrPeDKdDI1ikarSqA1c8bV1YLT+
|
||||
CHxB7T5b1EPeaYRmeLl+wyd/ZxeBWWgDLBusi5wPFpSEIVxu1RzTYarOXEpD+XNV
|
||||
Ohpb7LxpbJx8YRJru1B6CBouVO2pqoCEM21GtG7zSDNtaY+yVcj9Kf2SIbfz0e6a
|
||||
SLAcyOT0q3aId4+z9q8TAfPVV7y0D7B3PaOz/3pMC+jHDjCRwQkN/DR7ODUKEjCd
|
||||
UjsveGHtseBa3qBoKWcg39ZvwYeDF0P/cFa/yOqw5JxyWhbjk95YdPaSixdUyyMG
|
||||
XkFTOrnBREVtBAfdTOG6WTFcIlyJK+ST0cJXVcrjFonbmJCCwTJqxz9t+935CfTt
|
||||
CzLLPdONU16jZJ7j1cVoWb4L8o0OA+FBSawBxFOKyhFlh3+HKRnSCZSDqaSDsYUf
|
||||
M3IupiGUcByhpZ9mNqhnLeivIXwapwIDAQABAoICAFu27F+S2DH0A9S7lh+aPV1H
|
||||
VniKhVR2+aZ6va7fUmJ++n4yoB/TK82MIGcZu5uUyeXr4RVi8jZJbcF565BHNNtw
|
||||
V7cq2/F0bmeHEkwBh9w7dRpnUIAlhS/GawfKpoaDLksYM4SkzUwECbQ/0GRN2sST
|
||||
ipKGKtAtDihI3RFIeE1Ge/PPsdy2Ps4bAnUJRdHpLsmtvwSlL5JzUonyYawlI7jl
|
||||
uRlTSqDnAFZpW+E+xjerKalC4EK5se0AceGuoqKszkCs98/UJCMVDigH9EER9sL4
|
||||
chYLQtVz+DN7X+MdPDO9wThZygkHGPhi0DpxB7CevYhv4pN8TbLDE3Lq1ruWf2T3
|
||||
7ts21ymjVIiOayBA9l86P0FSS/lP9KF53LyeNkOJKUy5On6xHoW5IKlrMJdmGwFH
|
||||
B4yaR7bw5vxErhpMTzcYJVWqjCbo+PBJhdy7x+2XrrBLs9X0hfS/jeeAIuRlzju1
|
||||
9xe3zO6U41sDjkCkrUavOn57DL6jh9LMgxT8cZkSdrP6rpawEyjPUi5kMbbQkv0j
|
||||
eWiqz0vozJN5HcVpj36F5kqZyCnIojmeo4FCKdn7n/wvyGYQPSAekVpV80KzoJ2j
|
||||
GQ440Q7Sgozj/Lw4cCPgG3/MA1Dwu+TUuaddFjBH2oqZ2X0bCqVCEVWhfmaD4z2R
|
||||
I9C9nLvpxoMtcCHkG1VFAoIBAQDfawcBHMPxZQOy/qTqXZd7YR3bzGgd/SkLEWwg
|
||||
PtDGKe36tDf3E/RGRij4HGl9v/fA7N/CufW0tJY7Ii/cn7yYdZg/dzaCoYIZbICl
|
||||
CytWtsM0iH3XPuY3UpgsOwML0xK8hdD1U7qBKk5rnjF9Q9vKrB8ATR9hM0bPaGtr
|
||||
Bqfx8A+kj6wqRpA8jbN0kZxJVv0/LgZSCrH3qUjHfXoYYtLhMBZd8UydyvyETo/1
|
||||
Z44WS9oNqX8mBUvHjsuOQx3+eFPOr69QPIo06QMxytSEzMilgz40QUBWF68gKwGi
|
||||
NYdUfR3IXVTmvJhYH2mQWqMKVk+KJFd2UanjKbBCOKrDSG4TAoIBAQDV5LMp/ztd
|
||||
YQvMCWJzUrpazGqkoEGli/qxWb/pDpemgQT++lt6PBRQmmLKXZfNp9VJdZdP6+lF
|
||||
ypGcA8tACY93m7Fk4wtewXG+0oTxmBkWqSiiO3ExoBQTxXLoZ9GwKt/exaM25QJ1
|
||||
O2livxrYFFJbUe1YRqQENIURYk13RgeIaWS0gd9vp/yp0EhZAvGUPHFjKRsLjw7Y
|
||||
gZDJ+lXj2pXg9THUzkhVDm+fM6blIsLcvf7qc8yKQI3nwZr00e/ba7xSNF8AhpdP
|
||||
rxw59vm1RzsngZpZOK0Z1143gFRtGhhVWtvmhCvJo1EOssFu01ixE0bNq5nRIIJo
|
||||
O/mY7NC9bCOdAoIBAEBfcyYz5pUwGM/DJTtN+i6XfeXt0HYLkn7Y50GnN7pRLHuW
|
||||
36U2P6Tb5EQQ06hi3nzdA1/0+sG1Yq/pGsdD0zBOea6Xp8IdzQGMTMjBHhyfDkGd
|
||||
rjyNqAF6r9PWsPsANx7Qo7N8C3nZ+bxyWSoRmkucKlaI4ii8gIOUP5cX1N4V4Dv3
|
||||
FZEcwcRgw7srlU9gXBmPJk0PPdXxFcI8+if6mW4+z8MDmqLAcN+iT0JTMxJjipFz
|
||||
K+qFjh8Smr4Dwqmme+dKoYXJ27yBAuWe3nrhElL2LL8bqfDkZBYtrgvRxotmfWVU
|
||||
1vigkHibnGv2YZHB6qsP649w2jVUtq9t6m3X+bcCggEAEKDqCN7N17GewCsOm1aY
|
||||
JEz2EXxf/iXGxJjsoYq/4XLwV35RNEyNa8LE4WSrU5KzszVQISd/CCz6av2khIL5
|
||||
w1u4S9aW4LP7StGFAl9HvApEnXAvmaMPTIYyK70+gQqkQuZsjOz65vBKfiHLTXcu
|
||||
++h/ojhDsgv/OF3DFf28wi8nZB0gqMaPjwghR8JB07trOUFN1/U0O0K/ZeRvXvp0
|
||||
YnvNdvTejLZFmUPjuracHZsrwUBla24fWiAkEtprYkya5G0r4ZeVFd3QPPVlbmFu
|
||||
SOD7heoxEuw6Z+gzKBQ6RhB9PguSd+eZeqINBbeqkoGkJIMtvyNe4AmhmvD2PXO1
|
||||
xQKCAQAx12vD3q2+DHrpJ4fKGp1RbCxFIOYgXcBJ6zCozVZXpLUa54IBTLyQyDNF
|
||||
D8+Wq5b1IbCnxBn55tsgq/CSLkVHigVfUDGnAt3lD+ggLdZmu7ayQY0BNe1quF5M
|
||||
EgkOE0uYtq+2p+u4gxRB+gnQd1YIlPs0U0mrawbzV5ZX2vR5Ry1XpBno75JpnUbN
|
||||
3D9DuIDVLuqsKJcx6KClWef2PzJB2uN7jDf4UnCtp5QCFB1GNt+5AzCNh9Bozas8
|
||||
OflASrSn64AeyCZycCplmRY/F4BnH++7YI0Q/mjawByW7qYoHkFzmKuUcgakh200
|
||||
y/ieeWy8Vunl0e4T4Bz/0zInBifn
|
||||
-----END PRIVATE KEY-----"
|
||||
|
||||
PASSPORT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----
|
||||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuqukgqa198nzhAxQZ3xZ
|
||||
N0ft96r6Htup2EJGryn7+8wPSkMQgTRxLBSjkOrovlYnm1RwCBwT5tudfERFTCzd
|
||||
iTjb12zxE1eoCTv2+hRcKNgKMPxm053rC4VhAD1tdXotP4QW41hfYUGf58d2LBZN
|
||||
MbZpdojw4o31KIcKedIhcgkMpcOEuUst77lXTNOt3ZMbxArFOsJhw3r/Qj8RWRpd
|
||||
1toi0sLbWJe8ZpcJZfMbqsQ0FCaSWzsaz3gynQyNYpGq0qgNXPG1dWC0/gh8Qe0+
|
||||
W9RD3mmEZni5fsMnf2cXgVloAywbrIucDxaUhCFcbtUc02GqzlxKQ/lzVToaW+y8
|
||||
aWycfGESa7tQeggaLlTtqaqAhDNtRrRu80gzbWmPslXI/Sn9kiG389HumkiwHMjk
|
||||
9Kt2iHePs/avEwHz1Ve8tA+wdz2js/96TAvoxw4wkcEJDfw0ezg1ChIwnVI7L3hh
|
||||
7bHgWt6gaClnIN/Wb8GHgxdD/3BWv8jqsOSccloW45PeWHT2kosXVMsjBl5BUzq5
|
||||
wURFbQQH3UzhulkxXCJciSvkk9HCV1XK4xaJ25iQgsEyasc/bfvd+Qn07Qsyyz3T
|
||||
jVNeo2Se49XFaFm+C/KNDgPhQUmsAcRTisoRZYd/hykZ0gmUg6mkg7GFHzNyLqYh
|
||||
lHAcoaWfZjaoZy3oryF8GqcCAwEAAQ==
|
||||
-----END PUBLIC KEY-----"
|
||||
9
.eslintignore
Normal file
9
.eslintignore
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
public/
|
||||
vendor/
|
||||
coverage/
|
||||
plugins/
|
||||
node_modules/
|
||||
*.d.ts
|
||||
resources/assets/tests/__mocks__/
|
||||
resources/assets/tests/ts-shims/
|
||||
resources/assets/tests/*.ts
|
||||
27
.eslintrc.yml
Normal file
27
.eslintrc.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
root: true
|
||||
parser: '@typescript-eslint/parser'
|
||||
parserOptions:
|
||||
project: tsconfig.eslint.json
|
||||
plugins:
|
||||
- '@typescript-eslint/eslint-plugin'
|
||||
extends:
|
||||
- eslint:recommended
|
||||
- plugin:@typescript-eslint/recommended
|
||||
- plugin:@typescript-eslint/recommended-requiring-type-checking
|
||||
- plugin:react-hooks/recommended
|
||||
rules:
|
||||
prefer-const: error
|
||||
'@typescript-eslint/no-unsafe-assignment': off
|
||||
'@typescript-eslint/no-unsafe-member-access': off
|
||||
'@typescript-eslint/no-unsafe-return': off
|
||||
'@typescript-eslint/no-unused-vars': off
|
||||
'@typescript-eslint/explicit-module-boundary-types': off
|
||||
'@typescript-eslint/no-explicit-any': off
|
||||
'@typescript-eslint/ban-ts-comment': off
|
||||
'@typescript-eslint/no-non-null-assertion': off
|
||||
'@typescript-eslint/no-floating-promises': off
|
||||
'@typescript-eslint/no-misused-promises':
|
||||
- off
|
||||
- checksVoidReturn: false
|
||||
'@typescript-eslint/unbound-method': off
|
||||
'@typescript-eslint/restrict-template-expressions': off
|
||||
81
.github/CONTRIBUTING.md
vendored
Normal file
81
.github/CONTRIBUTING.md
vendored
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
# 贡献指南
|
||||
|
||||
欢迎您为 Blessing Skin 作出贡献!
|
||||
|
||||
## 分支约定
|
||||
|
||||
不管是直接 push 代码还是提交 Pull Request,都必须使 commit 指向 `dev` 分支。
|
||||
|
||||
## 开发
|
||||
|
||||
### 环境设置
|
||||
|
||||
首先确保您安装好以下工具:
|
||||
|
||||
- [Git](https://git-scm.org)
|
||||
- [Node.js](https://nodejs.org)
|
||||
- [Yarn](https://yarnpkg.com)
|
||||
- [Composer](https://getcomposer.org)
|
||||
- [PowerShell Core](https://github.com/PowerShell/PowerShell#get-powershell)
|
||||
|
||||
然后执行以下命令:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/bs-community/blessing-skin-server.git
|
||||
cd blessing-skin-server
|
||||
composer install
|
||||
cp .env.example .env
|
||||
php artisan key:generate
|
||||
yarn
|
||||
```
|
||||
|
||||
然后在 `.env` 中配置好您的环境信息,务必设置好 `ASSET_URL`,否则无法编译前端资源。
|
||||
|
||||
### 进行开发
|
||||
|
||||
运行 Blessing Skin 前,前端代码需要并构建。
|
||||
|
||||
当 `.env` 中的 `APP_ENV` 为 `development` 时,您需要先执行 `yarn dev` 并保持此进程的运行。这样 Blessing Skin 的前端资源才能被正确加载,同时使页面带有热重载功能。(有时热重载可能会失效,此时需要您手动刷新页面)
|
||||
|
||||
另外,在运行 `yarn dev` 即运行 `webpack-dev-server` 时,由于 `webpack-dev-server` 的端口往往与 Blessing Skin 的端口不同,因此有可能导致热重载失败。此时可以在 Nginx 中添加以下配置:
|
||||
|
||||
```
|
||||
location ~* \w+\.hot-update\.json$ {
|
||||
rewrite (\w+\.hot-update\.json)$ /$1 break;
|
||||
proxy_pass http://$host:8080;
|
||||
}
|
||||
```
|
||||
|
||||
当 `APP_ENV` 为其它值时,您需要事先执行 `pwsh ./tools/build.ps1`。此命令将构建并压缩前端资源。通常用于生产环境。
|
||||
|
||||
> 如果传递 `-Simple` 参数给 `build.ps1` 脚本,则只会运行 webpack 来编译代码,而不会复制首页背景以及生成 commit 信息。
|
||||
|
||||
### 测试
|
||||
|
||||
进行前端测试:
|
||||
|
||||
```bash
|
||||
yarn test
|
||||
```
|
||||
|
||||
请尽量保证前端测试的覆盖率为 100%。
|
||||
|
||||
进行 PHP 代码测试:
|
||||
|
||||
```bash
|
||||
./vendor/bin/phpunit
|
||||
```
|
||||
|
||||
## 代码规范
|
||||
|
||||
请确保您的编辑器或 IDE 安装好 EditorConfig 插件。如果进行前端开发,推荐安装上 ESLint 插件。(您也可以通过执行 `yarn lint` 进行检查)
|
||||
|
||||
## 发布
|
||||
|
||||
> 本节仅针对本项目的维护成员。
|
||||
|
||||
首先请确保您当前处于 `dev` 分支。然后,运行 `yarn new-version <action>` 即可发布新版本,不需要其它人工操作。
|
||||
|
||||
其中 `action` 参数是必需的,且只能为 `patch`、`minor`、`major` 中的其中一个。
|
||||
|
||||
另外,可以不定期地将 `dev` 上的 commits 合并到 `master` 分支,以满足一些想尝鲜的用户。但尽管如此,这不意味着 `dev` 分支是随意的—— `dev` 分支上的功能、特性可以是未完成的,但不应该影响用户的使用,因为也允许用户使用 `dev` 分支上的代码去体验新特性。
|
||||
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
custom: https://afdian.net/@blessing-skin
|
||||
71
.github/ISSUE_TEMPLATE/bug-report-zh.yml
vendored
Normal file
71
.github/ISSUE_TEMPLATE/bug-report-zh.yml
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
name: Bug 报告
|
||||
description: 发起 bug 报告
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
在报告问题之前,请确保您已经 **认真** 阅读:
|
||||
- [FAQ](https://blessing.netlify.app/en/faq.html)
|
||||
- [报告问题的正确姿势](https://blessing.netlify.app/report.html)
|
||||
- type: input
|
||||
id: bs
|
||||
attributes:
|
||||
label: Blessing Skin 版本
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: php
|
||||
attributes:
|
||||
label: PHP 版本
|
||||
options:
|
||||
- '7.3'
|
||||
- '7.4'
|
||||
- '8.0'
|
||||
- '8.1'
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: browsers
|
||||
attributes:
|
||||
label: 出现问题时所使用的浏览器
|
||||
multiple: true
|
||||
options:
|
||||
- Firefox
|
||||
- Chrome
|
||||
- Safari
|
||||
- Microsoft Edge
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: web-server
|
||||
attributes:
|
||||
label: 您正在使用的 Web Server
|
||||
options:
|
||||
- Nginx
|
||||
- Apache
|
||||
- type: checkboxes
|
||||
id: baota
|
||||
attributes:
|
||||
label: 您正在使用宝塔吗?
|
||||
options:
|
||||
- label: 是
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: 出现了什么问题?
|
||||
description: 顺便告诉我们,您期望的行为是怎样的?
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: 错误日志
|
||||
description: 您可以粘贴 Blessing Skin 的日志或 Web Server 的日志。Blessing Skin 的日志位于 `storage/logs` 目录里。
|
||||
render: text
|
||||
- type: textarea
|
||||
id: reproduction
|
||||
attributes:
|
||||
label: 重现步骤
|
||||
description: 详细描述您出错前的操作步骤
|
||||
validations:
|
||||
required: true
|
||||
64
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal file
64
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
name: Bug Report
|
||||
description: File a bug report
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Please filing an issue, please make sure you've read:
|
||||
- [FAQ](https://blessing.netlify.app/en/faq.html)
|
||||
- type: input
|
||||
id: bs
|
||||
attributes:
|
||||
label: Which version of Blessing Skin are you using?
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: php
|
||||
attributes:
|
||||
label: Which version of PHP are you using?
|
||||
options:
|
||||
- '7.3'
|
||||
- '7.4'
|
||||
- '8.0'
|
||||
- '8.1'
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: browsers
|
||||
attributes:
|
||||
label: What browsers are you seeing the problem on?
|
||||
multiple: true
|
||||
options:
|
||||
- Firefox
|
||||
- Chrome
|
||||
- Safari
|
||||
- Microsoft Edge
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: web-server
|
||||
attributes:
|
||||
label: Which web server are you using?
|
||||
options:
|
||||
- Nginx
|
||||
- Apache
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: Also tell us, what did you expect to happen?
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Error Logs
|
||||
description: You can paste logs of Blessing Skin or your web server. Logs of Blessing Skin can be found at `storage/logs` directory.
|
||||
render: text
|
||||
- type: textarea
|
||||
id: reproduction
|
||||
attributes:
|
||||
label: Steps to Reproduce
|
||||
description: Tell us how to reproduce this issue.
|
||||
validations:
|
||||
required: true
|
||||
20
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
20
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Ask questions about using Blessing Skin
|
||||
url: https://github.com/bs-community/blessing-skin-server/discussions
|
||||
about: If you're not going to report a bug, please ask and answer questions there.
|
||||
- name: Report Issue about Blessing Skin plugins
|
||||
url: https://github.com/bs-community/blessing-skin-plugins/issues
|
||||
about: Please ask and answer questions there.
|
||||
- name: Report Issue about integrating with Flarum
|
||||
url: https://github.com/bs-community/flarum-oauth-client/issues
|
||||
about: Please ask and answer questions there.
|
||||
- name: 询问关于使用 Blessing Skin 的问题
|
||||
url: https://github.com/bs-community/blessing-skin-server/discussions
|
||||
about: 如果您并不是要报告 bug,请在那里进行讨论。
|
||||
- name: 报告与 Blessing Skin 插件有关的问题
|
||||
url: https://github.com/bs-community/blessing-skin-plugins/issues
|
||||
about: 请在那里报告问题。
|
||||
- name: 报告与 Flarum 对接有关的问题
|
||||
url: https://github.com/bs-community/flarum-oauth-client/issues
|
||||
about: 请在那里报告问题。
|
||||
155
.github/workflows/CI.yml
vendored
Normal file
155
.github/workflows/CI.yml
vendored
Normal file
|
|
@ -0,0 +1,155 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
paths-ignore:
|
||||
- 'resources/lang/**'
|
||||
- '**.md'
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
paths-ignore:
|
||||
- 'resources/lang/**'
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
php-lint:
|
||||
name: PHP Linting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.3
|
||||
coverage: none
|
||||
extensions: mbstring, dom, fileinfo, gd, imagick
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
composer install --prefer-dist --no-progress
|
||||
- name: Prepare
|
||||
run: |
|
||||
cp .env.example .env
|
||||
mkdir -p resources/views/overrides
|
||||
- name: Validate Twig templates
|
||||
run: php artisan twig:lint -v
|
||||
- name: Check coding style
|
||||
run: ./vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --diff --format=txt
|
||||
php:
|
||||
name: PHP ${{ matrix.php }} Tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php: ['8.2', '8.3']
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup PHP only
|
||||
uses: shivammathur/setup-php@v2
|
||||
if: matrix.php != '8.3'
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
coverage: none
|
||||
extensions: mbstring, dom, fileinfo, sqlite, gd, zip, imagick
|
||||
- name: Setup PHP with Xdebug
|
||||
uses: shivammathur/setup-php@v2
|
||||
if: matrix.php == '8.3'
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
coverage: xdebug
|
||||
extensions: mbstring, dom, fileinfo, sqlite, gd, zip, imagick
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Install Composer dependencies
|
||||
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
||||
- name: Run tests only
|
||||
if: matrix.php != '8.3'
|
||||
run: ./vendor/bin/phpunit
|
||||
- name: Run tests with coverage report
|
||||
if: matrix.php == '8.3'
|
||||
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||
- name: Upload coverage report
|
||||
uses: codecov/codecov-action@v1
|
||||
if: matrix.php == '8.3' && success()
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
name: github-actions
|
||||
lint:
|
||||
name: Frontend Linting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
- name: Run checks
|
||||
run: |
|
||||
yarn lint
|
||||
yarn fmt:check
|
||||
yarn type:check
|
||||
jest:
|
||||
name: Frontend Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
- name: Run tests
|
||||
run: yarn test --coverage
|
||||
- name: Upload coverage report
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
name: github-actions
|
||||
build:
|
||||
name: Snapshot Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.2
|
||||
coverage: none
|
||||
extensions: mbstring, dom, fileinfo, sqlite, gd, zip, imagick
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache Node dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-lock-${{ hashFiles('yarn.lock') }}
|
||||
restore-keys: ${{ runner.os }}-yarn-lock-
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
composer install --prefer-dist --no-progress --no-dev
|
||||
yarn install --frozen-lockfile
|
||||
- name: Build frontend
|
||||
run: |
|
||||
yarn build
|
||||
cp resources/assets/src/images/bg.webp public/app/
|
||||
cp resources/assets/src/images/favicon.ico public/app/
|
||||
- uses: benjlevesque/short-sha@v3.0
|
||||
id: short-sha
|
||||
- name: Archive release
|
||||
run: zip -9 -r blessing-skin-server-${{ steps.short-sha.outputs.sha }}.zip app bootstrap config database plugins public resources/lang resources/views resources/misc/textures routes storage vendor .env.example artisan LICENSE README.md README-zh.md index.html
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
if-no-files-found: error
|
||||
name: blessing-skin-server-${{ steps.short-sha.outputs.sha }}.zip
|
||||
path: blessing-skin-server-${{ steps.short-sha.outputs.sha }}.zip
|
||||
40
.github/workflows/Release.yml
vendored
Normal file
40
.github/workflows/Release.yml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*.*.*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Build and create archive
|
||||
run: ./tools/release.ps1
|
||||
shell: pwsh
|
||||
env:
|
||||
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
|
||||
- name: Upload release asset
|
||||
id: upload_release_asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./blessing-skin-server-${{ steps.get_version.outputs.VERSION }}.zip
|
||||
asset_name: blessing-skin-server-${{ steps.get_version.outputs.VERSION }}.zip
|
||||
asset_content_type: application/zip
|
||||
37
.github/workflows/Telegram.yml
vendored
Normal file
37
.github/workflows/Telegram.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: Telegram
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
paths:
|
||||
- 'app/**'
|
||||
- 'bootstrap/**'
|
||||
- 'config/**'
|
||||
- 'database/**'
|
||||
- 'public/**'
|
||||
- 'resources/**'
|
||||
- 'routes/**'
|
||||
- '*.lock'
|
||||
- 'webpack.*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
notification:
|
||||
name: Send Message
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download bot
|
||||
run: |
|
||||
$headers = @{ Authorization = 'Bearer ${{ secrets.GITHUB_TOKEN }}' }
|
||||
$botRelease = (Invoke-WebRequest -Headers $headers 'https://api.github.com/repos/bs-community/telegram-bot/releases/latest').Content | ConvertFrom-Json
|
||||
$botBinUrl = ((Invoke-WebRequest -Headers $headers $botRelease.assets_url).Content | ConvertFrom-Json).browser_download_url
|
||||
bash -c "curl --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -fSL $botBinUrl -o bot"
|
||||
chmod +x ./bot
|
||||
shell: pwsh
|
||||
- name: Run bot
|
||||
run: ./bot diff
|
||||
shell: pwsh
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
30
.gitignore
vendored
30
.gitignore
vendored
|
|
@ -1 +1,29 @@
|
|||
textures/*
|
||||
.env
|
||||
.sass-cache
|
||||
coverage
|
||||
.idea/
|
||||
.cache/
|
||||
.cache-loader/
|
||||
vendor/*
|
||||
storage/textures
|
||||
storage/textures/*
|
||||
storage/update_cache/*
|
||||
node_modules/*
|
||||
target/
|
||||
yarn-error.log
|
||||
_ide_helper.php
|
||||
.phpstorm.meta.php
|
||||
.uini
|
||||
junit.xml
|
||||
storage/*.db
|
||||
storage/*.sqlite
|
||||
storage/insane-profile-cache
|
||||
storage/oauth-public.key
|
||||
storage/oauth-private.key
|
||||
storage/install.lock
|
||||
storage/options.php
|
||||
.phpunit.result.cache
|
||||
.php-cs-fixer.cache
|
||||
resources/views/overrides
|
||||
.DS_Store
|
||||
*/.DS_Store
|
||||
41
.gitpod.yml
Normal file
41
.gitpod.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
tasks:
|
||||
- init: yarn install
|
||||
command: yarn dev
|
||||
- init: composer install
|
||||
command: |
|
||||
cp .env.example .env
|
||||
mkdir public/app/
|
||||
cp resources/assets/src/images/bg.webp resources/assets/src/images/favicon.ico public/app
|
||||
touch storage/database.db
|
||||
sed 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/' -i .env
|
||||
sed 's/DB_DATABASE=blessingskin/DB_DATABASE=\/workspace\/blessing-skin-server\/storage\/database\.db/' -i .env
|
||||
php artisan key:generate
|
||||
php artisan serve --host=0.0.0.0
|
||||
- command: gp ports await 8080 && gp preview $(gp url 8000)
|
||||
|
||||
github:
|
||||
prebuilds:
|
||||
# enable for the master/default branch (defaults to true)
|
||||
master: true
|
||||
# enable for all branches in this repo (defaults to false)
|
||||
branches: false
|
||||
# enable for pull requests coming from this repo (defaults to true)
|
||||
pullRequests: true
|
||||
# add a check to pull requests (defaults to true)
|
||||
addCheck: true
|
||||
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
|
||||
addComment: false
|
||||
|
||||
vscode:
|
||||
extensions:
|
||||
- 'editorconfig.editorconfig'
|
||||
- 'eamodio.gitlens'
|
||||
- 'bmewburn.vscode-intelephense-client'
|
||||
- 'esbenp.prettier-vscode'
|
||||
- 'jpoissonnier.vscode-styled-components'
|
||||
- 'mblode.twig-language-2'
|
||||
- 'felixfbecker.php-debug'
|
||||
|
||||
ports:
|
||||
- port: 8080
|
||||
visibility: public
|
||||
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn pretty-quick --staged
|
||||
23
.php-cs-fixer.dist.php
Normal file
23
.php-cs-fixer.dist.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in('app')
|
||||
->in('database')
|
||||
->in('routes')
|
||||
->in('tests');
|
||||
|
||||
$config = new PhpCsFixer\Config();
|
||||
return $config->setRules([
|
||||
'@Symfony' => true,
|
||||
'align_multiline_comment' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'increment_style' => ['style' => 'post'],
|
||||
'list_syntax' => ['syntax' => 'short'],
|
||||
'yoda_style' => false,
|
||||
'global_namespace_import' => [
|
||||
'import_constants' => true,
|
||||
'import_functions' => true,
|
||||
'import_classes' => null,
|
||||
],
|
||||
])
|
||||
->setFinder($finder);
|
||||
7
.vscode/extensions.json
vendored
Normal file
7
.vscode/extensions.json
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"editorconfig.editorconfig",
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
||||
34
.vscode/launch.json
vendored
Normal file
34
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Jest Tests",
|
||||
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
||||
"args": ["${file}"],
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
"skipFiles": ["<node_internals>/**"]
|
||||
},
|
||||
{
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"name": "Launch with XDebug",
|
||||
"ignore": ["**/vendor/**/*.php"]
|
||||
},
|
||||
{
|
||||
"type": "firefox",
|
||||
"request": "launch",
|
||||
"reAttach": true,
|
||||
"name": "Launch with Firefox Debugger",
|
||||
"url": "http://localhost/",
|
||||
"webRoot": "${workspaceFolder}",
|
||||
"pathMappings": [
|
||||
{
|
||||
"url": "webpack:///",
|
||||
"path": "${workspaceFolder}/"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
}
|
||||
82
Dockerfile
Normal file
82
Dockerfile
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
FROM composer:latest as vendor
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY composer.json composer.lock ./
|
||||
|
||||
RUN composer install \
|
||||
--prefer-dist \
|
||||
--no-dev \
|
||||
--no-suggest \
|
||||
--no-progress \
|
||||
--no-autoloader \
|
||||
--no-scripts \
|
||||
--no-interaction \
|
||||
--ignore-platform-reqs
|
||||
|
||||
FROM node:alpine as frontend
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY postcss.config.js tsconfig.build.json tsconfig.json webpack.config.ts ./
|
||||
COPY tools/*Plugin.ts ./tools/
|
||||
|
||||
COPY resources ./resources
|
||||
|
||||
RUN yarn build && \
|
||||
cp resources/assets/src/images/bg.webp public/app/ && \
|
||||
cp resources/assets/src/images/favicon.ico public/app/ && \
|
||||
# Strip unused files
|
||||
rm -rf *.config.js *.config.ts tsconfig.* \
|
||||
package.json yarn.lock node_modules/ \
|
||||
resources/assets/ resources/lang resources/misc resources/misc/backgrounds/ \
|
||||
tools/
|
||||
|
||||
FROM composer:latest as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . ./
|
||||
|
||||
COPY --from=vendor /app ./
|
||||
COPY --from=frontend /app/public ./public
|
||||
COPY --from=frontend /app/resources/views/assets ./resources/views/assets
|
||||
|
||||
RUN composer dump-autoload -o --no-dev -n && \
|
||||
rm -rf *.config.js *.config.ts tsconfig.* \
|
||||
package.json yarn.lock node_modules/ \
|
||||
resources/assets/ resources/misc resources/misc/backgrounds/ \
|
||||
tools/ && \
|
||||
mv .env.example .env && \
|
||||
php artisan key:generate && \
|
||||
mv .env storage/ && \
|
||||
ln -s storage/.env .env && \
|
||||
touch storage/database.db && \
|
||||
mkdir storage/plugins && \
|
||||
sed 's/PLUGINS_DIR=null/PLUGINS_DIR=\/app\/storage\/plugins/' -i storage/.env && \
|
||||
sed 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/' -i storage/.env && \
|
||||
sed 's/DB_DATABASE=blessingskin/DB_DATABASE=\/app\/storage\/database\.db/' -i storage/.env
|
||||
|
||||
FROM php:8-apache
|
||||
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||
install-php-extensions gd zip
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app ./
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT /app/public
|
||||
RUN chown -R www-data:www-data . && \
|
||||
sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \
|
||||
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf && \
|
||||
a2enmod rewrite headers
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
VOLUME ["/app/storage"]
|
||||
353
LICENSE
353
LICENSE
|
|
@ -1,340 +1,21 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
MIT License
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
Copyright (c) 2016-present The Blessing Skin Team
|
||||
|
||||
Preamble
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{description}
|
||||
Copyright (C) {year} {fullname}
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
{signature of Ty Coon}, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
|
|||
92
README-zh.md
Normal file
92
README-zh.md
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
- **简体中文**
|
||||
- [English](./README.md)
|
||||
|
||||
<p align="center"><img src="https://media.githubusercontent.com/media/bs-community/logo/main/logo.png"></p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/actions"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/bs-community/blessing-skin-server/CI?style=flat-square"></a>
|
||||
<a href="https://codecov.io/gh/bs-community/blessing-skin-server"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/bs-community/blessing-skin-server?style=flat-square"></a>
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/releases"><img alt="GitHub release (latest SemVer including pre-releases)" src="https://img.shields.io/github/v/release/bs-community/blessing-skin-server?include_prereleases&style=flat-square"></a>
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/bs-community/blessing-skin-server?style=flat-square"></a>
|
||||
<a href="https://discord.com/invite/QAsyEyt"><img alt="Discord" src="https://discord.com/api/guilds/761226550921658380/widget.png"></a>
|
||||
</p>
|
||||
|
||||
优雅的开源 Minecraft 皮肤站,现在,回应您的等待。
|
||||
|
||||
Blessing Skin 是一款能让您上传、管理和分享您的 Minecraft 皮肤和披风的 Web 应用程序。与修改游戏材质包不同的是,所有人都能在游戏中看到各自的皮肤和披风(当然,前提是玩家们要使用同一个皮肤站)。
|
||||
|
||||
Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在您的服务器上部署它。
|
||||
|
||||
## 特性
|
||||
|
||||
- 完整实现了一个皮肤站该有的功能
|
||||
- 支持单用户多个角色
|
||||
- 通过皮肤库来分享您的皮肤和披风!
|
||||
- 易于使用
|
||||
- 可视化的用户、角色、材质管理页面
|
||||
- 详细的站点配置页面
|
||||
- 多处 UI/UX 优化只为更好的用户体验
|
||||
- 安全
|
||||
- 支持多种安全密码 Hash 算法
|
||||
- 注册可要求 Email 验证
|
||||
- 防止恶意请求的积分系统
|
||||
- 强大的可扩展性
|
||||
- 多种多样的插件
|
||||
- 支持与 Authme/Discuz 等程序的用户数据对接(插件)
|
||||
- 支持自定义 Yggdrasil API 外置登录系统(插件)
|
||||
|
||||
## 环境要求
|
||||
|
||||
Blessing Skin 对您的服务器有一定的要求。在大多数情况下,下列所需的 PHP 扩展已经开启。
|
||||
|
||||
- 一台支持 URL 重写的主机,Nginx 或 Apache
|
||||
- PHP >= 8.1.0
|
||||
- 安装并启用如下 PHP 扩展:
|
||||
- OpenSSL >= 1.1.1 (TLS 1.3)
|
||||
- PDO
|
||||
- Mbstring
|
||||
- Tokenizer
|
||||
- GD
|
||||
- XML
|
||||
- Ctype
|
||||
- JSON
|
||||
- fileinfo
|
||||
- zip
|
||||
- Imagick
|
||||
|
||||
## 快速使用
|
||||
|
||||
请参阅 [安装指南](https://blessing.netlify.app/setup.html)。
|
||||
|
||||
## 插件系统
|
||||
|
||||
Blessing Skin 提供了强大的插件系统,您可以通过添加多种多样的插件来为您的皮肤站添加功能。
|
||||
|
||||
## 自行构建
|
||||
|
||||
详情可阅读 [这里](https://blessing.netlify.app/build.html)。
|
||||
|
||||
> 您可以订阅我们的 Telegram 频道 [Blessing Skin News](https://t.me/blessing_skin_news) 来获取最新开发动态。当有新的 Commit 被推送时,我们的机器人将会在频道内发送一条消息来提示您能否拉取最新代码,以及拉取后应该做什么。
|
||||
|
||||
## 国际化(i18n)
|
||||
|
||||
Blessing Skin 可支持多种语言,当前支持英语、简体中文和西班牙语。
|
||||
|
||||
如果您愿意将您的翻译贡献出来,欢迎参与 [我们的 Crowdin 项目](https://crowdin.com/project/blessing-skin)。
|
||||
|
||||
## 问题报告
|
||||
|
||||
请参阅 [报告问题的正确姿势](https://blessing.netlify.app/report.html)。
|
||||
|
||||
## 相关链接
|
||||
|
||||
- [用户手册](https://blessing.netlify.app/)
|
||||
- [插件开发文档](https://bs-plugin.netlify.app/)
|
||||
|
||||
## 版权
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016-present The Blessing Skin Team
|
||||
|
||||
程序原作者为 [@printempw](https://printempw.github.io/),转载请注明。
|
||||
145
README.md
145
README.md
|
|
@ -1,109 +1,90 @@
|
|||
# Blessing Skin Server
|
||||
- [简体中文](./README-zh.md)
|
||||
- **English**
|
||||
|
||||
Just a simple open-source Minecraft skin server write in PHP. [Live demo](https://work.prinzeugen.net/blessing-skin-server/)
|
||||
<p align="center"><img src="https://media.githubusercontent.com/media/bs-community/logo/main/logo.png"></p>
|
||||
|
||||

|
||||
<p align="center">
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/actions"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/bs-community/blessing-skin-server/CI.yml?branch=dev&style=flat-square"></a>
|
||||
<a href="https://codecov.io/gh/bs-community/blessing-skin-server"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/bs-community/blessing-skin-server?style=flat-square"></a>
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/releases"><img alt="GitHub release (latest SemVer including pre-releases)" src="https://img.shields.io/github/v/release/bs-community/blessing-skin-server?include_prereleases&style=flat-square"></a>
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/bs-community/blessing-skin-server?style=flat-square"></a>
|
||||
<a href="https://discord.com/invite/QAsyEyt"><img alt="Discord" src="https://discord.com/api/guilds/761226550921658380/widget.png"></a>
|
||||
</p>
|
||||
|
||||
Features:
|
||||
-----------
|
||||
Puzzled by losing your custom skins in Minecraft servers runing in offline mode? Now you can easily get them back with the help of Blessing Skin!
|
||||
|
||||
- Support latest [UniSkinAPI](https://github.com/RecursiveG/UniSkinServer/blob/master/doc/UniSkinAPI_zh-CN.md)
|
||||
- Support CustomSkinLoader API
|
||||
- Also support legacy link to access image directly
|
||||
- Nothing else...
|
||||
Blessing Skin is a web application where you can upload, manage and share your custom skins & capes! Unlike modifying a resource pack, everyone in the game will see the different skins of each other (of course they should register at the same website too).
|
||||
|
||||
Installation:
|
||||
-----------
|
||||
Blessing Skin is an open-source project written in PHP, which means you can deploy it freely on your own web server!
|
||||
|
||||
1. Configure your database information in config.php
|
||||
2. Run `./admin/install.php`
|
||||
3. Configure your rewrite rules in your `nginx.conf`
|
||||
3. Register or login with `admin/123456`
|
||||
4. Upload your skin/cape
|
||||
5. Configure your url in `UniSkinMod.cfg` of Minecraft client
|
||||
6. Enjoy~
|
||||
## Features
|
||||
|
||||
Server configure:
|
||||
------------
|
||||
- A fully functional skin hosting service
|
||||
- Multiple player names can be owned by one user on the website
|
||||
- Share your skins and capes online with skin library!
|
||||
- Easy-to-use
|
||||
- Visual page for user/player/texture management
|
||||
- Detailed option pages
|
||||
- Many tweaks for a better UI/UX
|
||||
- Security
|
||||
- Support many secure password hash algorithms
|
||||
- Email verification for registration
|
||||
- Score system for preventing evil requests
|
||||
- Incredibly extensible
|
||||
- Plenty of plugins available
|
||||
- Integration with Authme/Discuz (available as plugin)
|
||||
- Support custom Yggdrasil API authentication (available as plugin)
|
||||
|
||||
Add rewrite rules to your nginx.conf:
|
||||
## Requirements
|
||||
|
||||
```
|
||||
rewrite ^/([^/]*).json$ /get.php?type=json&uname=$1 last;
|
||||
rewrite ^/(skin|cape)/([^/-]*)(|-)(|alex|steve).png$ /get.php?type=$1&model=$4&uname=$2 last;
|
||||
# Optional
|
||||
rewrite ^/(usm|csl)/([^/]*).json$ /get.php?type=json&uname=$2&api=$1 last;
|
||||
rewrite ^/(usm|csl)/textures/(.*)$ /textures/$2 last;
|
||||
```
|
||||
You can also use optional rewrite rules to support both CustomSkinLoader API & UniSkinAPI.
|
||||
Blessing Skin has only a few system requirements. In most cases, these PHP extensions are already enabled.
|
||||
|
||||
If you installed the skin server to subdirectory, you should configure the rules as this:
|
||||
- Web server with URL rewriting enabled (Nginx or Apache)
|
||||
- PHP >= 8.1.0
|
||||
- PHP Extensions
|
||||
- OpenSSL >= 1.1.1 (TLS 1.3)
|
||||
- PDO
|
||||
- Mbstring
|
||||
- Tokenizer
|
||||
- GD
|
||||
- XML
|
||||
- Ctype
|
||||
- JSON
|
||||
- fileinfo
|
||||
- zip
|
||||
- Imagick
|
||||
|
||||
```
|
||||
rewrite ^/subdir/([^/]*).json$ /subdir/get.php?type=json&uname=$1 last;
|
||||
```
|
||||
## Quick Install
|
||||
|
||||
Now you can access `http://example.com/username.json` to get your json profile of your preferred API. Another API is also available `http://example.com/(usm|csl)/username.json`.
|
||||
Please read [Installation Guide](https://blessing.netlify.app/en/setup.html).
|
||||
|
||||
After uploading skins, you can also access `http://example.com/skin/username.png` for prefered model's skin image or `http://example.com/cape/username.png` for cape. Secondary model's texture is available on `http://example.com/skin/username-(alex|steve).png`.
|
||||
## Plugin System
|
||||
|
||||
Client configure:
|
||||
------------
|
||||
Blessing Skin provides an elegant and powerful plugin system, and you can attach plenty of functions and customization to your site via installing plugins.
|
||||
|
||||
#### For UniSkinMod version >= 1.3
|
||||
## Build From Source
|
||||
|
||||
Put your root directory of skin server( like `/path/to/root` above ) into your `/config/UniSkinMod.cfg` of Minecraft client
|
||||
Please refer to [Manual Build](https://blessing.netlify.app/build.html).
|
||||
|
||||
Sample:
|
||||
## Internationalization
|
||||
|
||||
```
|
||||
# Line starts with '#' is a commit line
|
||||
# Line starts with 'Root: ' indicates a server
|
||||
# All servers will be queried in that order.
|
||||
# Server in front has higher priority
|
||||
# Official server has the lowest priority
|
||||
# No more legacy style link support!
|
||||
Blessing Skin supports multiple languages, while currently supporting English, Simplified Chinese and Spanish.
|
||||
|
||||
# SkinMe Default
|
||||
Root: http://www.skinme.cc/uniskin
|
||||
# Your Server
|
||||
Root: http://example.com
|
||||
```
|
||||
If you are willing to contribute your translation, welcome to join [our Crowdin project](https://crowdin.com/project/blessing-skin).
|
||||
|
||||
#### For UniSkinMod version < 1.3 or other
|
||||
## Report Bugs
|
||||
|
||||
Also put your url into `/config/UniSkinMod.cfg`, but you need to fill 2 urls for skin and cape
|
||||
Read [FAQ](https://blessing.netlify.app/faq.html) and double check if your situation doesn't suit any case mentioned there before reporting.
|
||||
|
||||
Sample:
|
||||
When reporting a problem, please attach your log file (located at `storage/logs/laravel.log`) and the information of your server where the error occured on. You should also read this [guide](https://blessing.netlify.app/report.html) before reporting a problem.
|
||||
|
||||
```
|
||||
Version: 1
|
||||
# Do not edit the line above
|
||||
## Related Links
|
||||
|
||||
Skin: http://skins.minecraft.net/MinecraftSkins/%s.png
|
||||
Cape: http://skins.minecraft.net/MinecraftCloaks/%s.png
|
||||
# Your Server
|
||||
Skin: http://example.com/skin/%s.png
|
||||
Cape: http://example.com/cape/%s.png
|
||||
```
|
||||
- [User Manual](https://blessing.netlify.app/en/)
|
||||
- [Plugins Development Documentation](https://bs-plugin.netlify.app/)
|
||||
|
||||
FAQ
|
||||
------------
|
||||
## Copyright & License
|
||||
|
||||
If everything works well, you will get an awesome skin in game:
|
||||
MIT License
|
||||
|
||||

|
||||
|
||||
And the log will be like this:
|
||||
|
||||
```
|
||||
[16:23:56] [launcher/INFO] [UniSkinMod]: Loading configuration ... @D:\Minecraft\1.8\.minecraft\config\UniSkinMod.cfg
|
||||
[16:23:56] [launcher/INFO] [UniSkinMod]: Root Url Added: http://127.0.0.1/blessing-skin-server
|
||||
|
||||
[16:24:23] [Client thread/INFO] [UniSkinMod]: Filling profile for player: 621sama
|
||||
[16:24:23] [Client thread/INFO] [UniSkinMod]: Fetching URL: http://127.0.0.1/blessing-skin-server/621sama.json
|
||||
[16:24:23] [Client thread/INFO] [UniSkinMod]: Player Skin Selected: 621sama default 3f14a21723023642b9e8d2bc008b443780698aaedbb7d4e29960e8a2c754a771
|
||||
[16:24:23] [Client thread/INFO] [UniSkinMod]: Player Cape Selected: 621sama aed8c3fc67aae4906b72fa74c27e15866c89752f0838f6b2a1c44bb4d59cec1e
|
||||
```
|
||||
|
||||
If not, please check your log to locate where error occured.
|
||||
Copyright (c) 2016-present The Blessing Skin Team
|
||||
|
|
|
|||
|
|
@ -1,76 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @Author: prpr
|
||||
* @Date: 2016-02-04 13:53:55
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-04 18:42:22
|
||||
*/
|
||||
session_start();
|
||||
$dir = dirname(dirname(__FILE__));
|
||||
require "$dir/includes/autoload.inc.php";
|
||||
|
||||
if(isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
|
||||
$_SESSION['uname'] = $_COOKIE['uname'];
|
||||
$_SESSION['token'] = $_COOKIE['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Check token, won't allow non-admin user to access
|
||||
*/
|
||||
if (isset($_SESSION['uname'])) {
|
||||
$admin = new user($_SESSION['uname']);
|
||||
if ($_SESSION['token'] != $admin->getToken()) {
|
||||
header('Location: ../index.php?msg=Invalid token. Please login.');
|
||||
} else if (!$admin->is_admin) {
|
||||
header('Location: ../index.php?msg=Looks like that you are not administrator :(');
|
||||
}
|
||||
} else {
|
||||
header('Location: ../index.php?msg=Illegal access. Please login.');
|
||||
}
|
||||
|
||||
/*
|
||||
* No protection here,
|
||||
* I don't think you wanna fuck yourself :(
|
||||
*/
|
||||
if (isset($_GET['action'])) {
|
||||
$action = $_GET['action'];
|
||||
$user = new user($_GET['uname']);
|
||||
|
||||
if ($action == "upload") {
|
||||
$type = isset($_GET['type']) ? $_GET['type'] : "skin";
|
||||
$file = isset($_FILES['file']) ? $_FILES['file'] : null;
|
||||
if (!is_null($file)) {
|
||||
if ($user->setTexture($type, $file)) {
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Skin uploaded successfully.";
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Uncaught error.";
|
||||
}
|
||||
} else {
|
||||
utils::raise(1, 'No input file selected');
|
||||
}
|
||||
} else if ($action == "change") {
|
||||
if (user::checkValidPwd($_POST['passwd'])) {
|
||||
$user->changePasswd($_POST['passwd']);
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Password of ".$_GET['uname']." changed successfully.";
|
||||
} // Will raise exception if password invalid
|
||||
} else if ($action == "delete") {
|
||||
$user->unRegister();
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Account successfully deleted.";
|
||||
} else if ($action == "model") {
|
||||
if (isset($_POST['model']) && $_POST['model'] == 'slim' || $_POST['model'] == 'default') {
|
||||
$user->setPreference($_POST['model']);
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Model preference of ".$_GET['uname']." changed to ".$_POST['model']." successfully.";
|
||||
} else {
|
||||
utils::raise(1, 'Illegal parameters');
|
||||
}
|
||||
} else {
|
||||
utils::raise(1, 'Illegal parameters');
|
||||
}
|
||||
}
|
||||
|
||||
echo json_encode($json);
|
||||
114
admin/index.php
114
admin/index.php
|
|
@ -1,114 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @Author: prpr
|
||||
* @Date: 2016-02-03 14:39:50
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-05 16:05:42
|
||||
*/
|
||||
|
||||
session_start();
|
||||
$dir = dirname(dirname(__FILE__));
|
||||
require "$dir/includes/autoload.inc.php";
|
||||
|
||||
if(isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
|
||||
$_SESSION['uname'] = $_COOKIE['uname'];
|
||||
$_SESSION['token'] = $_COOKIE['token'];
|
||||
}
|
||||
|
||||
if (isset($_SESSION['uname'])) {
|
||||
$admin = new user($_SESSION['uname']);
|
||||
if ($_SESSION['token'] != $admin->getToken()) {
|
||||
header('Location: ../index.php?msg=Invalid token. Please login.');
|
||||
} else if (!$admin->is_admin) {
|
||||
header('Location: ../index.php?msg=Looks like that you are not administrator :(');
|
||||
}
|
||||
} else {
|
||||
header('Location: ../index.php?msg=Illegal access. Please login.');
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Console - <?php echo SITE_TITLE; ?></title>
|
||||
<link rel="shortcut icon" href="../assets/images/favicon.ico">
|
||||
<link rel="stylesheet" href="../libs/pure/pure-min.css">
|
||||
<link rel="stylesheet" href="../libs/pure/grids-responsive-min.css">
|
||||
<link rel="stylesheet" href="../assets/css/style.css">
|
||||
<link rel="stylesheet" href="../assets/css/profile.style.css">
|
||||
<link rel="stylesheet" href="../assets/css/admin.style.css">
|
||||
<link rel="stylesheet" href="../libs/ply/ply.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
|
||||
<a class="pure-menu-heading" href="../index.php"><?php echo SITE_TITLE; ?></a>
|
||||
<ul class="pure-menu-list">
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="../user/profile.php">Profile</a>
|
||||
</li>
|
||||
<li class="pure-menu-item">
|
||||
<span class="pure-menu-link">Welcome, <?php echo $_SESSION['uname']; ?>!</span> | <span class="pure-menu-link" id="logout">Log out?</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="home-menu-blur">
|
||||
<div class="home-menu-wrp">
|
||||
<div class="home-menu-bg"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Username</th>
|
||||
<th>Preview Textures</th>
|
||||
<th>Change Textures</th>
|
||||
<th>Opreation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
$db = new database();
|
||||
$result = $db->query("SELECT * FROM users");
|
||||
while ($row = $result->fetch_array()) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row['uid']; ?></td>
|
||||
<td><?php echo $row['username']; ?></td>
|
||||
<td>
|
||||
<?php echo '<img id="'.$row['username'].'_skin" width="64" '.(($row['hash_steve'] == "") ? '' : 'src="../skin/'.$row['username'].'-steve.png"').'/>'; ?>
|
||||
<?php echo '<img id="'.$row['username'].'_skin" width="64" '.(($row['hash_alex'] == "") ? '' : 'src="../skin/'.$row['username'].'-alex.png"').'/>'; ?>
|
||||
<?php echo '<img id="'.$row['username'].'_cape" width="64" '.(($row['hash_cape'] == "") ? '' : 'src="../cape/'.$row['username'].'.png"').'/>'; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:uploadSkin('<?php echo $row['username']; ?>');" class="pure-button pure-button-primary">Skin</a>
|
||||
<a href="javascript:uploadTexture('<?php echo $row['username']; ?>', 'cape');" class="pure-button pure-button-primary">Cape</a>
|
||||
<a href="javascript:changeModel('<?php echo $row['username']; ?>');" class="pure-button pure-button-default">Model</a>
|
||||
<span>(<?php echo $row['preference']; ?>)</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:changePasswd('<?php echo $row['username'] ?>');" class="pure-button pure-button-default">Password</a>
|
||||
<a href="javascript:deleteAccount('<?php echo $row['username'] ?>');" class="pure-button pure-button-error">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<script type="text/javascript" src="../libs/jquery/jquery-2.1.1.min.js"></script>
|
||||
<script type="text/javascript" src="../libs/ply/ply.min.js"></script>
|
||||
<script type="text/javascript" src="../libs/cookie.js"></script>
|
||||
<script type="text/javascript" src="../assets/js/utils.js"></script>
|
||||
<script type="text/javascript" src="../assets/js/admin.utils.js"></script>
|
||||
</html>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-16 23:01:33
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-05 12:36:34
|
||||
*
|
||||
* Create tables automatically
|
||||
*/
|
||||
|
||||
$dir = dirname(dirname(__FILE__));
|
||||
require "$dir/includes/autoload.inc.php";
|
||||
|
||||
echo "<style>body { font-family: Courier; }</style>";
|
||||
|
||||
if (!file_exists("./install.lock")) {
|
||||
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWD, DB_NAME);
|
||||
|
||||
echo "<h2>Blessing Skin Server Install</h2>";
|
||||
|
||||
if ($conn->connect_error) {
|
||||
utils::raise(-1, "Can not connect to mysql, check if database info correct in config.php. ".$conn->connect_error);
|
||||
} else {
|
||||
echo "Succesfully connected to database ".DB_USER."@".DB_HOST.". <br /><br />";
|
||||
}
|
||||
|
||||
echo "Start creating tables... <br /><br />";
|
||||
|
||||
$sql = "CREATE TABLE IF NOT EXISTS `users` (
|
||||
`uid` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`username` varchar(20) NOT NULL,
|
||||
`password` varchar(32) NOT NULL,
|
||||
`ip` varchar(32) NOT NULL,
|
||||
`preference` varchar(10) NOT NULL,
|
||||
`hash_steve` varchar(64) NOT NULL,
|
||||
`hash_alex` varchar(64) NOT NULL,
|
||||
`hash_cape` varchar(64) NOT NULL,
|
||||
`last_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`uid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15;";
|
||||
|
||||
if(!$conn->query($sql)) {
|
||||
die("Creating tables failed. <br /><br />".$conn->error);
|
||||
}
|
||||
|
||||
/**
|
||||
* username: admin
|
||||
* password: 123456
|
||||
*/
|
||||
$conn->query("INSERT INTO `users` (`uid`, `username`, `password`, `ip`, `preference`) VALUES(1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', '127.0.0.1', 'default')");
|
||||
|
||||
echo "Creating tables successfully <br /><br />";
|
||||
|
||||
echo "
|
||||
<pre style='font-family: Courier;'>
|
||||
+-------------------------------------------------------------------------------------------------+-----------------+
|
||||
| uid | username | password | ip | preference | hash_steve | hash_alex | hash_cape | last_modofied |
|
||||
+-------------------------------------------------------------------------------------------------+-----------------+
|
||||
| 1 | admin | 123456 | * | default | * | * | * | * |
|
||||
+-------------------------------------------------------------------------------------------------+-----------------+
|
||||
</pre>
|
||||
";
|
||||
|
||||
if (!is_dir("../textures/")) {
|
||||
echo mkdir("../textures/") ? "Creating textures directory...<br /><br />" :
|
||||
"Creating textures directory failed. Check permissons.<br /><br />";
|
||||
}
|
||||
|
||||
echo "Successfully installed. <a href='../index.php'>Index</a>";
|
||||
|
||||
if ($lock = fopen("./install.lock", 'w')) {
|
||||
fwrite($lock, time());
|
||||
fclose($lock);
|
||||
} else {
|
||||
die("Unable to write `install.lock`. Please check the permisson and create a `install.lock` file manually.");
|
||||
}
|
||||
|
||||
} else {
|
||||
echo "<br />";
|
||||
echo "It seems that you have already installed. <a href='../index.php'>Index</a><br /><br />";
|
||||
echo "May you should delete the file `install.lock` in ./admin to unlock installing.";
|
||||
}
|
||||
?>
|
||||
246
ajax.php
246
ajax.php
|
|
@ -1,246 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-16 23:01:33
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-05 15:35:31
|
||||
*
|
||||
* - login, register, logout
|
||||
* - upload, change, delete
|
||||
*
|
||||
* All ajax requests will be handled here
|
||||
*/
|
||||
|
||||
session_start();
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Content-type: application/json');
|
||||
|
||||
$dir = dirname(__FILE__);
|
||||
require "$dir/includes/autoload.inc.php";
|
||||
database::checkConfig();
|
||||
|
||||
if (isset($_POST['uname'])) {
|
||||
$uname = $_POST['uname'];
|
||||
if (user::checkValidUname($uname)) {
|
||||
$user = new user($_POST['uname']);
|
||||
} else {
|
||||
utils::raise(1, 'Invalid username. Only letters, numbers and _ is allowed.');
|
||||
}
|
||||
} else {
|
||||
utils::raise('1', 'Empty username.');
|
||||
}
|
||||
$action = isset($_GET['action']) ? $_GET['action'] : null;
|
||||
$json = null;
|
||||
|
||||
/**
|
||||
* Handle requests from index.php
|
||||
*/
|
||||
if ($action == "login") {
|
||||
if (checkPost()) {
|
||||
if (!$user->is_registered) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Non-existent user.";
|
||||
} else {
|
||||
if ($user->checkPasswd($_POST['passwd'])) {
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = 'Logging in succeed!';
|
||||
$json['token'] = $user->getToken();
|
||||
$_SESSION['token'] = $user->getToken();
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Incorrect usename or password.";
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if ($action == "register") {
|
||||
if (checkPost('register')) {
|
||||
if (!$user->is_registered) {
|
||||
if (user::checkValidPwd($_POST['passwd'])) {
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
} else {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
// If amount of registered accounts of IP is more than allowed mounts,
|
||||
// then reject the registration.
|
||||
if ($user->db->getNumRows('ip', $ip) < REGS_PER_IP) {
|
||||
// use once md5 to encrypt password
|
||||
if ($user->register(md5($_POST['passwd']), $ip)) {
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Registered successfully.";
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Uncaught error.";
|
||||
}
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "You can't create more than ".REGS_PER_IP." accounts with this IP.";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "User already registered.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkPost() {
|
||||
global $json;
|
||||
if (!isset($_POST['passwd'])) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Empty password!";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle request from user/index.php
|
||||
*/
|
||||
if ($action == "upload") {
|
||||
if (utils::getValue('token', $_SESSION) == $user->getToken()) {
|
||||
if (checkFile()) {
|
||||
if ($file = utils::getValue('skin_file', $_FILES)) {
|
||||
$model = (isset($_GET['model']) && $_GET['model'] == "steve") ? "steve" : "alex";
|
||||
if ($user->setTexture($model, $file)) {
|
||||
$json['skin']['errno'] = 0;
|
||||
$json['skin']['msg'] = "Skin uploaded successfully.";
|
||||
} else {
|
||||
$json['skin']['errno'] = 1;
|
||||
$json['skin']['msg'] = "Uncaught error.";
|
||||
}
|
||||
}
|
||||
if ($file = utils::getValue('cape_file', $_FILES)) {
|
||||
if ($user->setTexture('cape', $file)) {
|
||||
$json['cape']['errno'] = 0;
|
||||
$json['cape']['msg'] = "Cape uploaded successfully.";
|
||||
} else {
|
||||
$json['cape']['errno'] = 1;
|
||||
$json['cape']['msg'] = "Uncaught error.";
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Invalid token.";
|
||||
}
|
||||
} else if ($action == "model") {
|
||||
if (utils::getValue('token', $_SESSION) == $user->getToken()) {
|
||||
$new_model = ($user->getPreference() == "default") ? "slim" : "default";
|
||||
$user->setPreference($new_model);
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Preferred model successfully changed to ".$user->getPreference().".";
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Invalid token.";
|
||||
}
|
||||
}
|
||||
|
||||
function checkFile() {
|
||||
global $json;
|
||||
|
||||
if (!(utils::getValue('skin_file', $_FILES) || utils::getValue('cape_file', $_FILES))) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "No input file selected.";
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Check for skin_file
|
||||
*/
|
||||
if ((utils::getValue('skin_file', $_FILES)["type"] == "image/png") || (utils::getValue('skin_file', $_FILES)["type"] == "image/x-png")) {
|
||||
// if error occured while uploading file
|
||||
if (utils::getValue('skin_file', $_FILES)["error"] > 0) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = utils::getValue('skin_file', $_FILES)["error"];
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (utils::getValue('skin_file', $_FILES)) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = 'Skin file type error.';
|
||||
return false;
|
||||
} else {
|
||||
$json['skin']['errno'] = 0;
|
||||
$json['skin']['msg'] = 'No skin file selected.';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for cape_file
|
||||
*/
|
||||
if ((utils::getValue('cape_file', $_FILES)["type"] == "image/png") || (utils::getValue('cape_file', $_FILES)["type"] == "image/x-png")) {
|
||||
// if error occured while uploading file
|
||||
if (utils::getValue('cape_file', $_FILES)["error"] > 0) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = utils::getValue('cape_file', $_FILES)["error"];
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (utils::getValue('cape_file', $_FILES)) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = 'Cape file type error.';
|
||||
return false;
|
||||
} else {
|
||||
$json['cape']['errno'] = 0;
|
||||
$json['cape']['msg'] = 'No cape file selected.';
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle requests from user/profile.php
|
||||
*/
|
||||
if ($action == "change") {
|
||||
if (checkPost()) {
|
||||
if (isset($_POST['new_passwd'])) {
|
||||
if ($user->checkPasswd($_POST['passwd'])) {
|
||||
$user->changePasswd($_POST['new_passwd']);
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Password updated successfully.";
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Incorrect usename or password.";
|
||||
}
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "New password required.";
|
||||
}
|
||||
}
|
||||
} else if ($action == "delete") {
|
||||
if (isset($_SESSION['token']) && $_SESSION['token'] == $user->getToken()) {
|
||||
if (checkPost()) {
|
||||
if ($user->checkPasswd($_POST['passwd'])) {
|
||||
session_destroy();
|
||||
$user->unRegister();
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "Account successfully deleted.";
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Incorrect password.";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Invalid token.";
|
||||
}
|
||||
} else if ($action == "logout") {
|
||||
if (utils::getValue('token', $_SESSION)) {
|
||||
session_destroy();
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = 'Session destroyed.';
|
||||
} else {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = 'No available session.';
|
||||
}
|
||||
}
|
||||
|
||||
if (!$action) {
|
||||
$json['errno'] = 1;
|
||||
$json['msg'] = "Invalid parameters.";
|
||||
}
|
||||
|
||||
echo json_encode($json);
|
||||
52
app/Console/Commands/BsInstallCommand.php
Normal file
52
app/Console/Commands/BsInstallCommand.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
|
||||
class BsInstallCommand extends Command
|
||||
{
|
||||
protected $signature = 'bs:install {email} {password} {nickname}';
|
||||
|
||||
protected $description = 'Execute installation and create a super administrator.';
|
||||
|
||||
public function handle(Filesystem $filesystem)
|
||||
{
|
||||
if ($filesystem->exists(storage_path('install.lock'))) {
|
||||
$this->info('You have installed Blessing Skin Server. Nothing to do.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->call('migrate', ['--force' => true]);
|
||||
if (!$this->getLaravel()->runningUnitTests()) {
|
||||
// @codeCoverageIgnoreStart
|
||||
$this->call('key:generate');
|
||||
$this->call('passport:keys', ['--no-interaction' => true]);
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
option(['site_url' => url('/')]);
|
||||
|
||||
$admin = new User();
|
||||
$admin->email = $this->argument('email');
|
||||
$admin->nickname = $this->argument('nickname');
|
||||
$admin->score = option('user_initial_score');
|
||||
$admin->avatar = 0;
|
||||
$admin->password = app('cipher')->hash($this->argument('password'), config('secure.salt'));
|
||||
$admin->ip = '127.0.0.1';
|
||||
$admin->permission = User::SUPER_ADMIN;
|
||||
$admin->register_at = Carbon::now();
|
||||
$admin->last_sign_at = Carbon::now()->subDay();
|
||||
$admin->verified = true;
|
||||
$admin->save();
|
||||
|
||||
$filesystem->put(storage_path('install.lock'), '');
|
||||
|
||||
$this->info('Installation completed!');
|
||||
$this->info('We recommend to modify your "Site URL" option if incorrect.');
|
||||
}
|
||||
}
|
||||
28
app/Console/Commands/OptionsCacheCommand.php
Normal file
28
app/Console/Commands/OptionsCacheCommand.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\Option;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Foundation\Application;
|
||||
|
||||
class OptionsCacheCommand extends Command
|
||||
{
|
||||
protected $signature = 'options:cache';
|
||||
|
||||
protected $description = 'Cache Blessing Skin options';
|
||||
|
||||
public function handle(Filesystem $filesystem, Application $app)
|
||||
{
|
||||
$path = storage_path('options.php');
|
||||
$filesystem->delete($path);
|
||||
$app->forgetInstance(Option::class);
|
||||
|
||||
$content = var_export(resolve(Option::class)->all(), true);
|
||||
$notice = '// This is auto-generated. DO NOT edit manually.'.PHP_EOL;
|
||||
$content = '<?php'.PHP_EOL.$notice.'return '.$content.';';
|
||||
$filesystem->put($path, $content);
|
||||
$this->info('Options cached successfully.');
|
||||
}
|
||||
}
|
||||
25
app/Console/Commands/PluginDisableCommand.php
Normal file
25
app/Console/Commands/PluginDisableCommand.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\PluginManager;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class PluginDisableCommand extends Command
|
||||
{
|
||||
protected $signature = 'plugin:disable {name}';
|
||||
|
||||
protected $description = 'Disable a plugin';
|
||||
|
||||
public function handle(PluginManager $plugins)
|
||||
{
|
||||
$plugin = $plugins->get($this->argument('name'));
|
||||
if ($plugin) {
|
||||
$plugins->disable($this->argument('name'));
|
||||
$title = trans($plugin->title);
|
||||
$this->info(trans('admin.plugins.operations.disabled', ['plugin' => $title]));
|
||||
} else {
|
||||
$this->warn(trans('admin.plugins.operations.not-found'));
|
||||
}
|
||||
}
|
||||
}
|
||||
26
app/Console/Commands/PluginEnableCommand.php
Normal file
26
app/Console/Commands/PluginEnableCommand.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\PluginManager;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class PluginEnableCommand extends Command
|
||||
{
|
||||
protected $signature = 'plugin:enable {name}';
|
||||
|
||||
protected $description = 'Enable a plugin';
|
||||
|
||||
public function handle(PluginManager $plugins)
|
||||
{
|
||||
$name = $this->argument('name');
|
||||
$result = $plugins->enable($name);
|
||||
if ($result === true) {
|
||||
$plugin = $plugins->get($name);
|
||||
$title = trans($plugin->title);
|
||||
$this->info(trans('admin.plugins.operations.enabled', ['plugin' => $title]));
|
||||
} elseif ($result === false) {
|
||||
$this->warn(trans('admin.plugins.operations.not-found'));
|
||||
}
|
||||
}
|
||||
}
|
||||
44
app/Console/Commands/SaltRandomCommand.php
Normal file
44
app/Console/Commands/SaltRandomCommand.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class SaltRandomCommand extends Command
|
||||
{
|
||||
protected $signature = 'salt:random {--show : Display the salt instead of modifying files}';
|
||||
|
||||
protected $description = 'Set the application salt';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$salt = $this->generateRandomSalt();
|
||||
|
||||
if ($this->option('show')) {
|
||||
return $this->line('<comment>'.$salt.'</comment>');
|
||||
}
|
||||
|
||||
// Next, we will replace the application salt in the environment file so it is
|
||||
// automatically setup for this developer. This salt gets generated using a
|
||||
// secure random byte generator and is later base64 encoded for storage.
|
||||
$this->setKeyInEnvironmentFile($salt);
|
||||
|
||||
$this->laravel['config']['secure.salt'] = $salt;
|
||||
|
||||
$this->info("Application salt [$salt] set successfully.");
|
||||
}
|
||||
|
||||
protected function setKeyInEnvironmentFile(string $salt)
|
||||
{
|
||||
file_put_contents($this->laravel->environmentFilePath(), str_replace(
|
||||
'SALT = '.$this->laravel['config']['secure.salt'],
|
||||
'SALT = '.$salt,
|
||||
file_get_contents($this->laravel->environmentFilePath())
|
||||
));
|
||||
}
|
||||
|
||||
protected function generateRandomSalt(): string
|
||||
{
|
||||
return bin2hex(resolve(\Illuminate\Contracts\Encryption\Encrypter::class)->generateKey('AES-128-CBC'));
|
||||
}
|
||||
}
|
||||
49
app/Console/Commands/UpdateCommand.php
Normal file
49
app/Console/Commands/UpdateCommand.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Composer\Semver\Comparator;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Contracts\Console\Kernel as Artisan;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class UpdateCommand extends Command
|
||||
{
|
||||
protected $signature = 'update';
|
||||
|
||||
protected $description = 'Execute update.';
|
||||
|
||||
public function handle(Artisan $artisan, Filesystem $filesystem)
|
||||
{
|
||||
$this->procedures()->each(function ($procedure, $version) {
|
||||
if (Comparator::lessThan(option('version'), $version)) {
|
||||
$procedure();
|
||||
}
|
||||
});
|
||||
|
||||
option(['version' => config('app.version')]);
|
||||
$artisan->call('migrate', ['--force' => true]);
|
||||
$artisan->call('view:clear');
|
||||
$filesystem->put(storage_path('install.lock'), '');
|
||||
Cache::flush();
|
||||
|
||||
$this->info(trans('setup.updates.success.title'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
protected function procedures()
|
||||
{
|
||||
return collect([
|
||||
// this is just for testing
|
||||
'0.0.1' => fn () => event('__0.0.1'),
|
||||
'5.0.0' => function () {
|
||||
if (option('home_pic_url') === './app/bg.jpg') {
|
||||
option(['home_pic_url' => './app/bg.webp']);
|
||||
}
|
||||
},
|
||||
]);
|
||||
}
|
||||
}
|
||||
18
app/Console/Kernel.php
Normal file
18
app/Console/Kernel.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console;
|
||||
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
protected $commands = [
|
||||
\Laravel\Passport\Console\KeysCommand::class,
|
||||
Commands\BsInstallCommand::class,
|
||||
Commands\OptionsCacheCommand::class,
|
||||
Commands\PluginDisableCommand::class,
|
||||
Commands\PluginEnableCommand::class,
|
||||
Commands\SaltRandomCommand::class,
|
||||
Commands\UpdateCommand::class,
|
||||
];
|
||||
}
|
||||
14
app/Events/ConfigureAdminMenu.php
Normal file
14
app/Events/ConfigureAdminMenu.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class ConfigureAdminMenu extends Event
|
||||
{
|
||||
public $menu;
|
||||
|
||||
public function __construct(array &$menu)
|
||||
{
|
||||
// Pass array by reference
|
||||
$this->menu = &$menu;
|
||||
}
|
||||
}
|
||||
14
app/Events/ConfigureExploreMenu.php
Normal file
14
app/Events/ConfigureExploreMenu.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class ConfigureExploreMenu extends Event
|
||||
{
|
||||
public $menu;
|
||||
|
||||
public function __construct(array &$menu)
|
||||
{
|
||||
// Pass array by reference
|
||||
$this->menu = &$menu;
|
||||
}
|
||||
}
|
||||
15
app/Events/ConfigureRoutes.php
Normal file
15
app/Events/ConfigureRoutes.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use Illuminate\Routing\Router;
|
||||
|
||||
class ConfigureRoutes extends Event
|
||||
{
|
||||
public $router;
|
||||
|
||||
public function __construct(Router $router)
|
||||
{
|
||||
$this->router = $router;
|
||||
}
|
||||
}
|
||||
13
app/Events/ConfigureUserMenu.php
Normal file
13
app/Events/ConfigureUserMenu.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class ConfigureUserMenu extends Event
|
||||
{
|
||||
public $menu;
|
||||
|
||||
public function __construct(array &$menu)
|
||||
{
|
||||
$this->menu = &$menu;
|
||||
}
|
||||
}
|
||||
7
app/Events/Event.php
Normal file
7
app/Events/Event.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
abstract class Event
|
||||
{
|
||||
}
|
||||
15
app/Events/PlayerProfileUpdated.php
Normal file
15
app/Events/PlayerProfileUpdated.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\Player;
|
||||
|
||||
class PlayerProfileUpdated extends Event
|
||||
{
|
||||
public $player;
|
||||
|
||||
public function __construct(Player $player)
|
||||
{
|
||||
$this->player = $player;
|
||||
}
|
||||
}
|
||||
15
app/Events/PlayerRetrieved.php
Normal file
15
app/Events/PlayerRetrieved.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\Player;
|
||||
|
||||
class PlayerRetrieved extends Event
|
||||
{
|
||||
public $player;
|
||||
|
||||
public function __construct(Player $player)
|
||||
{
|
||||
$this->player = $player;
|
||||
}
|
||||
}
|
||||
15
app/Events/PlayerWasAdded.php
Normal file
15
app/Events/PlayerWasAdded.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\Player;
|
||||
|
||||
class PlayerWasAdded extends Event
|
||||
{
|
||||
public $player;
|
||||
|
||||
public function __construct(Player $player)
|
||||
{
|
||||
$this->player = $player;
|
||||
}
|
||||
}
|
||||
13
app/Events/PlayerWasDeleted.php
Normal file
13
app/Events/PlayerWasDeleted.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class PlayerWasDeleted extends Event
|
||||
{
|
||||
public $playerName;
|
||||
|
||||
public function __construct($playerName)
|
||||
{
|
||||
$this->playerName = $playerName;
|
||||
}
|
||||
}
|
||||
13
app/Events/PlayerWillBeAdded.php
Normal file
13
app/Events/PlayerWillBeAdded.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class PlayerWillBeAdded extends Event
|
||||
{
|
||||
public $playerName;
|
||||
|
||||
public function __construct($playerName)
|
||||
{
|
||||
$this->playerName = $playerName;
|
||||
}
|
||||
}
|
||||
15
app/Events/PlayerWillBeDeleted.php
Normal file
15
app/Events/PlayerWillBeDeleted.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\Player;
|
||||
|
||||
class PlayerWillBeDeleted extends Event
|
||||
{
|
||||
public $player;
|
||||
|
||||
public function __construct(Player $player)
|
||||
{
|
||||
$this->player = $player;
|
||||
}
|
||||
}
|
||||
15
app/Events/PluginBootFailed.php
Normal file
15
app/Events/PluginBootFailed.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Services\Plugin;
|
||||
|
||||
class PluginBootFailed extends Event
|
||||
{
|
||||
public Plugin $plugin;
|
||||
|
||||
public function __construct(Plugin $plugin)
|
||||
{
|
||||
$this->plugin = $plugin;
|
||||
}
|
||||
}
|
||||
15
app/Events/PluginWasDeleted.php
Normal file
15
app/Events/PluginWasDeleted.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Services\Plugin;
|
||||
|
||||
class PluginWasDeleted extends Event
|
||||
{
|
||||
public $plugin;
|
||||
|
||||
public function __construct(Plugin $plugin)
|
||||
{
|
||||
$this->plugin = $plugin;
|
||||
}
|
||||
}
|
||||
15
app/Events/PluginWasDisabled.php
Normal file
15
app/Events/PluginWasDisabled.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Services\Plugin;
|
||||
|
||||
class PluginWasDisabled extends Event
|
||||
{
|
||||
public $plugin;
|
||||
|
||||
public function __construct(Plugin $plugin)
|
||||
{
|
||||
$this->plugin = $plugin;
|
||||
}
|
||||
}
|
||||
15
app/Events/PluginWasEnabled.php
Normal file
15
app/Events/PluginWasEnabled.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Services\Plugin;
|
||||
|
||||
class PluginWasEnabled extends Event
|
||||
{
|
||||
public $plugin;
|
||||
|
||||
public function __construct(Plugin $plugin)
|
||||
{
|
||||
$this->plugin = $plugin;
|
||||
}
|
||||
}
|
||||
13
app/Events/RenderingBadges.php
Normal file
13
app/Events/RenderingBadges.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class RenderingBadges extends Event
|
||||
{
|
||||
public $badges;
|
||||
|
||||
public function __construct(array &$badges)
|
||||
{
|
||||
$this->badges = &$badges;
|
||||
}
|
||||
}
|
||||
18
app/Events/RenderingFooter.php
Normal file
18
app/Events/RenderingFooter.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class RenderingFooter extends Event
|
||||
{
|
||||
public $contents;
|
||||
|
||||
public function __construct(array &$contents)
|
||||
{
|
||||
$this->contents = &$contents;
|
||||
}
|
||||
|
||||
public function addContent(string $content)
|
||||
{
|
||||
$this->contents[] = $content;
|
||||
}
|
||||
}
|
||||
18
app/Events/RenderingHeader.php
Normal file
18
app/Events/RenderingHeader.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class RenderingHeader extends Event
|
||||
{
|
||||
public $contents;
|
||||
|
||||
public function __construct(array &$contents)
|
||||
{
|
||||
$this->contents = &$contents;
|
||||
}
|
||||
|
||||
public function addContent(string $content)
|
||||
{
|
||||
$this->contents[] = $content;
|
||||
}
|
||||
}
|
||||
13
app/Events/TextureDeleting.php
Normal file
13
app/Events/TextureDeleting.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class TextureDeleting extends Event
|
||||
{
|
||||
public $texture;
|
||||
|
||||
public function __construct(\App\Models\Texture $texture)
|
||||
{
|
||||
$this->texture = $texture;
|
||||
}
|
||||
}
|
||||
15
app/Events/UserAuthenticated.php
Normal file
15
app/Events/UserAuthenticated.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class UserAuthenticated extends Event
|
||||
{
|
||||
public $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
15
app/Events/UserLoggedIn.php
Normal file
15
app/Events/UserLoggedIn.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class UserLoggedIn extends Event
|
||||
{
|
||||
public $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
17
app/Events/UserProfileUpdated.php
Normal file
17
app/Events/UserProfileUpdated.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class UserProfileUpdated extends Event
|
||||
{
|
||||
public $type;
|
||||
public $user;
|
||||
|
||||
public function __construct($type, User $user)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
15
app/Events/UserRegistered.php
Normal file
15
app/Events/UserRegistered.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
class UserRegistered extends Event
|
||||
{
|
||||
public $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
16
app/Events/UserTryToLogin.php
Normal file
16
app/Events/UserTryToLogin.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
class UserTryToLogin extends Event
|
||||
{
|
||||
public $identification;
|
||||
|
||||
public $authType;
|
||||
|
||||
public function __construct($identification, $authType)
|
||||
{
|
||||
$this->identification = $identification;
|
||||
$this->authType = $authType;
|
||||
}
|
||||
}
|
||||
65
app/Exceptions/Handler.php
Normal file
65
app/Exceptions/Handler.php
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Str;
|
||||
use Laravel\Passport\Exceptions\MissingScopeException;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
* A list of the exception types that should not be reported.
|
||||
*/
|
||||
protected $dontReport = [
|
||||
\Illuminate\Auth\AuthenticationException::class,
|
||||
\Illuminate\Auth\Access\AuthorizationException::class,
|
||||
\Symfony\Component\HttpKernel\Exception\HttpException::class,
|
||||
\Illuminate\Validation\ValidationException::class,
|
||||
\Illuminate\Session\TokenMismatchException::class,
|
||||
ModelNotFoundException::class,
|
||||
PrettyPageException::class,
|
||||
];
|
||||
|
||||
public function render($request, Throwable $exception)
|
||||
{
|
||||
if ($exception instanceof ModelNotFoundException) {
|
||||
$model = $exception->getModel();
|
||||
if (Str::endsWith($model, 'Texture')) {
|
||||
$exception = new ModelNotFoundException(trans('skinlib.non-existent'));
|
||||
}
|
||||
} elseif ($exception instanceof MissingScopeException) {
|
||||
return json($exception->getMessage(), 403);
|
||||
}
|
||||
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
|
||||
protected function convertExceptionToArray(Throwable $e)
|
||||
{
|
||||
return [
|
||||
'message' => $e->getMessage(),
|
||||
'exception' => true,
|
||||
'trace' => collect($e->getTrace())
|
||||
->map(fn ($trace) => Arr::only($trace, ['file', 'line']))
|
||||
->filter(fn ($trace) => Arr::has($trace, 'file'))
|
||||
->map(function ($trace) {
|
||||
$trace['file'] = str_replace(base_path().DIRECTORY_SEPARATOR, '', $trace['file']);
|
||||
|
||||
return $trace;
|
||||
})
|
||||
->filter(function ($trace) {
|
||||
// @codeCoverageIgnoreStart
|
||||
$isFromPlugins = !app()->runningUnitTests()
|
||||
&& Str::contains($trace['file'], resolve('plugins')->getPluginsDirs()->all());
|
||||
|
||||
// @codeCoverageIgnoreEnd
|
||||
return Str::startsWith($trace['file'], 'app') || $isFromPlugins;
|
||||
})
|
||||
->values(),
|
||||
];
|
||||
}
|
||||
}
|
||||
11
app/Exceptions/PrettyPageException.php
Normal file
11
app/Exceptions/PrettyPageException.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
class PrettyPageException extends \Exception
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return response()->view('errors.pretty', ['code' => $this->code, 'message' => $this->message]);
|
||||
}
|
||||
}
|
||||
149
app/Http/Controllers/AdminController.php
Normal file
149
app/Http/Controllers/AdminController.php
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Player;
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use App\Services\PluginManager;
|
||||
use Blessing\Filter;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class AdminController extends Controller
|
||||
{
|
||||
public function index(Filter $filter)
|
||||
{
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-6', 'md-6'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
[
|
||||
'admin.widgets.dashboard.usage',
|
||||
'admin.widgets.dashboard.notification',
|
||||
],
|
||||
['admin.widgets.dashboard.chart'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:admin.index', $grid);
|
||||
|
||||
return view('admin.index', [
|
||||
'grid' => $grid,
|
||||
'sum' => [
|
||||
'users' => User::count(),
|
||||
'players' => Player::count(),
|
||||
'textures' => Texture::count(),
|
||||
'storage' => Texture::select('size')->sum('size'),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function chartData()
|
||||
{
|
||||
$xAxis = Collection::times(31, fn ($i) => Carbon::today()->subDays(31 - $i)->isoFormat('l'));
|
||||
|
||||
$oneMonthAgo = Carbon::today()->subMonth();
|
||||
|
||||
$grouping = fn ($field) => fn ($item) => Carbon::parse($item->$field)->isoFormat('l');
|
||||
$mapping = fn ($item) => count($item);
|
||||
$aligning = fn ($data) => fn ($day) => $data->get($day) ?? 0;
|
||||
|
||||
/** @var Collection */
|
||||
$userRegistration = User::where('register_at', '>=', $oneMonthAgo)
|
||||
->select('register_at')
|
||||
->get()
|
||||
->groupBy($grouping('register_at'))
|
||||
->map($mapping);
|
||||
|
||||
/** @var Collection */
|
||||
$textureUploads = Texture::where('upload_at', '>=', $oneMonthAgo)
|
||||
->select('upload_at')
|
||||
->get()
|
||||
->groupBy($grouping('upload_at'))
|
||||
->map($mapping);
|
||||
|
||||
return [
|
||||
'labels' => [
|
||||
trans('admin.index.user-registration'),
|
||||
trans('admin.index.texture-uploads'),
|
||||
],
|
||||
'xAxis' => $xAxis,
|
||||
'data' => [
|
||||
$xAxis->map($aligning($userRegistration)),
|
||||
$xAxis->map($aligning($textureUploads)),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
public function status(
|
||||
Request $request,
|
||||
PluginManager $plugins,
|
||||
Filesystem $filesystem,
|
||||
Filter $filter,
|
||||
) {
|
||||
$db = config('database.connections.'.config('database.default'));
|
||||
$dbType = Arr::get([
|
||||
'mysql' => 'MySQL/MariaDB',
|
||||
'sqlite' => 'SQLite',
|
||||
'pgsql' => 'PostgreSQL',
|
||||
], config('database.default'), '');
|
||||
|
||||
$enabledPlugins = $plugins->getEnabledPlugins()->map(fn ($plugin) => [
|
||||
'title' => trans($plugin->title), 'version' => $plugin->version,
|
||||
]);
|
||||
|
||||
if ($filesystem->exists(base_path('.git'))) {
|
||||
$process = new \Symfony\Component\Process\Process(
|
||||
['git', 'log', '--pretty=%H', '-1']
|
||||
);
|
||||
$process->run();
|
||||
$commit = $process->isSuccessful() ? trim($process->getOutput()) : '';
|
||||
}
|
||||
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-6', 'md-6'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
['admin.widgets.status.info'],
|
||||
['admin.widgets.status.plugins'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:admin.status', $grid);
|
||||
|
||||
return view('admin.status')
|
||||
->with('grid', $grid)
|
||||
->with('detail', [
|
||||
'bs' => [
|
||||
'version' => config('app.version'),
|
||||
'env' => config('app.env'),
|
||||
'debug' => config('app.debug') ? trans('general.yes') : trans('general.no'),
|
||||
'commit' => Str::limit($commit ?? '', 16, ''),
|
||||
'laravel' => app()->version(),
|
||||
],
|
||||
'server' => [
|
||||
'php' => PHP_VERSION,
|
||||
'web' => $request->server('SERVER_SOFTWARE', trans('general.unknown')),
|
||||
'os' => sprintf('%s %s %s', php_uname('s'), php_uname('r'), php_uname('m')),
|
||||
],
|
||||
'db' => [
|
||||
'type' => $dbType,
|
||||
'host' => Arr::get($db, 'host', ''),
|
||||
'port' => Arr::get($db, 'port', ''),
|
||||
'username' => Arr::get($db, 'username'),
|
||||
'database' => Arr::get($db, 'database'),
|
||||
'prefix' => Arr::get($db, 'prefix'),
|
||||
],
|
||||
])
|
||||
->with('plugins', $enabledPlugins);
|
||||
}
|
||||
}
|
||||
373
app/Http/Controllers/AuthController.php
Normal file
373
app/Http/Controllers/AuthController.php
Normal file
|
|
@ -0,0 +1,373 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Events;
|
||||
use App\Exceptions\PrettyPageException;
|
||||
use App\Mail\ForgotPassword;
|
||||
use App\Models\Player;
|
||||
use App\Models\User;
|
||||
use App\Rules;
|
||||
use Blessing\Filter;
|
||||
use Blessing\Rejection;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Vectorface\Whip\Whip;
|
||||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
public function login(Filter $filter)
|
||||
{
|
||||
$whip = new Whip();
|
||||
$ip = $whip->getValidIpAddress();
|
||||
$ip = $filter->apply('client_ip', $ip);
|
||||
|
||||
$rows = [
|
||||
'auth.rows.login.notice',
|
||||
'auth.rows.login.message',
|
||||
'auth.rows.login.form',
|
||||
'auth.rows.login.registration-link',
|
||||
];
|
||||
$rows = $filter->apply('auth_page_rows:login', $rows);
|
||||
|
||||
return view('auth.login', [
|
||||
'rows' => $rows,
|
||||
'extra' => [
|
||||
'tooManyFails' => cache(sha1('login_fails_'.$ip)) > 3,
|
||||
'recaptcha' => option('recaptcha_sitekey'),
|
||||
'invisible' => (bool) option('recaptcha_invisible'),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function handleLogin(
|
||||
Request $request,
|
||||
Rules\Captcha $captcha,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
) {
|
||||
$data = $request->validate([
|
||||
'identification' => 'required',
|
||||
'password' => 'required|min:6|max:32',
|
||||
]);
|
||||
$identification = $data['identification'];
|
||||
$password = $data['password'];
|
||||
|
||||
$can = $filter->apply('can_login', null, [$identification, $password]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
// Guess type of identification
|
||||
$authType = filter_var($identification, FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
|
||||
|
||||
$dispatcher->dispatch('auth.login.attempt', [$identification, $password, $authType]);
|
||||
event(new Events\UserTryToLogin($identification, $authType));
|
||||
|
||||
if ($authType == 'email') {
|
||||
$user = User::where('email', $identification)->first();
|
||||
} else {
|
||||
$player = Player::where('name', $identification)->first();
|
||||
$user = optional($player)->user;
|
||||
}
|
||||
|
||||
// Require CAPTCHA if user fails to login more than 3 times
|
||||
$whip = new Whip();
|
||||
$ip = $whip->getValidIpAddress();
|
||||
$ip = $filter->apply('client_ip', $ip);
|
||||
$loginFailsCacheKey = sha1('login_fails_'.$ip);
|
||||
$loginFails = (int) Cache::get($loginFailsCacheKey, 0);
|
||||
|
||||
if ($loginFails > 3) {
|
||||
$request->validate(['captcha' => ['required', $captcha]]);
|
||||
}
|
||||
|
||||
if (!$user) {
|
||||
return json(trans('auth.validation.user'), 2);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('auth.login.ready', [$user]);
|
||||
|
||||
if ($user->verifyPassword($request->input('password'))) {
|
||||
Session::forget('login_fails');
|
||||
Cache::forget($loginFailsCacheKey);
|
||||
|
||||
Auth::login($user, $request->input('keep'));
|
||||
|
||||
$dispatcher->dispatch('auth.login.succeeded', [$user]);
|
||||
event(new Events\UserLoggedIn($user));
|
||||
|
||||
return json(trans('auth.login.success'), 0, [
|
||||
'redirectTo' => $request->session()->pull('last_requested_path', url('/user')),
|
||||
]);
|
||||
} else {
|
||||
$loginFails++;
|
||||
Cache::put($loginFailsCacheKey, $loginFails, 3600);
|
||||
$dispatcher->dispatch('auth.login.failed', [$user, $loginFails]);
|
||||
|
||||
return json(trans('auth.validation.password'), 1, [
|
||||
'login_fails' => $loginFails,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function logout(Dispatcher $dispatcher)
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
$dispatcher->dispatch('auth.logout.before', [$user]);
|
||||
Auth::logout();
|
||||
$dispatcher->dispatch('auth.logout.after', [$user]);
|
||||
|
||||
return json(trans('auth.logout.success'), 0);
|
||||
}
|
||||
|
||||
public function register(Filter $filter)
|
||||
{
|
||||
$rows = [
|
||||
'auth.rows.register.notice',
|
||||
'auth.rows.register.form',
|
||||
];
|
||||
$rows = $filter->apply('auth_page_rows:register', $rows);
|
||||
|
||||
return view('auth.register', [
|
||||
'site_name' => option_localized('site_name'),
|
||||
'rows' => $rows,
|
||||
'extra' => [
|
||||
'player' => (bool) option('register_with_player_name'),
|
||||
'recaptcha' => option('recaptcha_sitekey'),
|
||||
'invisible' => (bool) option('recaptcha_invisible'),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function handleRegister(
|
||||
Request $request,
|
||||
Rules\Captcha $captcha,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
) {
|
||||
$can = $filter->apply('can_register', null);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$rule = option('register_with_player_name') ?
|
||||
['player_name' => [
|
||||
'required',
|
||||
new Rules\PlayerName(),
|
||||
'min:'.option('player_name_length_min'),
|
||||
'max:'.option('player_name_length_max'),
|
||||
]] :
|
||||
['nickname' => 'required|max:255'];
|
||||
$data = $request->validate(array_merge([
|
||||
'email' => 'required|email|unique:users',
|
||||
'password' => 'required|min:8|max:32',
|
||||
'captcha' => ['required', $captcha],
|
||||
], $rule));
|
||||
$playerName = $request->input('player_name');
|
||||
|
||||
$dispatcher->dispatch('auth.registration.attempt', [$data]);
|
||||
|
||||
if (
|
||||
option('register_with_player_name')
|
||||
&& Player::where('name', $playerName)->count() > 0
|
||||
) {
|
||||
return json(trans('user.player.add.repeated'), 1);
|
||||
}
|
||||
|
||||
// If amount of registered accounts of IP is more than allowed amount,
|
||||
// reject this registration.
|
||||
$whip = new Whip();
|
||||
$ip = $whip->getValidIpAddress();
|
||||
$ip = $filter->apply('client_ip', $ip);
|
||||
if (User::where('ip', $ip)->count() >= option('regs_per_ip')) {
|
||||
return json(trans('auth.register.max', ['regs' => option('regs_per_ip')]), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('auth.registration.ready', [$data]);
|
||||
|
||||
$user = new User();
|
||||
$user->email = $data['email'];
|
||||
$user->nickname = $data[option('register_with_player_name') ? 'player_name' : 'nickname'];
|
||||
$user->score = option('user_initial_score');
|
||||
$user->avatar = 0;
|
||||
$password = app('cipher')->hash($data['password'], config('secure.salt'));
|
||||
$password = $filter->apply('user_password', $password);
|
||||
$user->password = $password;
|
||||
$user->ip = $ip;
|
||||
$user->permission = User::NORMAL;
|
||||
$user->register_at = Carbon::now();
|
||||
$user->last_sign_at = Carbon::now()->subDay();
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('auth.registration.completed', [$user]);
|
||||
event(new Events\UserRegistered($user));
|
||||
|
||||
if (option('register_with_player_name')) {
|
||||
$dispatcher->dispatch('player.adding', [$playerName, $user]);
|
||||
|
||||
$player = new Player();
|
||||
$player->uid = $user->uid;
|
||||
$player->name = $playerName;
|
||||
$player->tid_skin = 0;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.added', [$player, $user]);
|
||||
event(new Events\PlayerWasAdded($player));
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('auth.login.ready', [$user]);
|
||||
Auth::login($user);
|
||||
$dispatcher->dispatch('auth.login.succeeded', [$user]);
|
||||
|
||||
return json(trans('auth.register.success'), 0);
|
||||
}
|
||||
|
||||
public function forgot()
|
||||
{
|
||||
if (config('mail.default') != '') {
|
||||
return view('auth.forgot', [
|
||||
'extra' => [
|
||||
'recaptcha' => option('recaptcha_sitekey'),
|
||||
'invisible' => (bool) option('recaptcha_invisible'),
|
||||
],
|
||||
]);
|
||||
} else {
|
||||
throw new PrettyPageException(trans('auth.forgot.disabled'), 8);
|
||||
}
|
||||
}
|
||||
|
||||
public function handleForgot(
|
||||
Request $request,
|
||||
Rules\Captcha $captcha,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
) {
|
||||
$data = $request->validate([
|
||||
'email' => 'required|email',
|
||||
'captcha' => ['required', $captcha],
|
||||
]);
|
||||
|
||||
if (!config('mail.default')) {
|
||||
return json(trans('auth.forgot.disabled'), 1);
|
||||
}
|
||||
|
||||
$email = $data['email'];
|
||||
$dispatcher->dispatch('auth.forgot.attempt', [$email]);
|
||||
|
||||
$rateLimit = 180;
|
||||
$whip = new Whip();
|
||||
$ip = $whip->getValidIpAddress();
|
||||
$ip = $filter->apply('client_ip', $ip);
|
||||
$lastMailCacheKey = sha1('last_mail_'.$ip);
|
||||
$remain = $rateLimit + Cache::get($lastMailCacheKey, 0) - time();
|
||||
if ($remain > 0) {
|
||||
return json(trans('auth.forgot.frequent-mail'), 2);
|
||||
}
|
||||
|
||||
$user = User::where('email', $email)->first();
|
||||
if (!$user) {
|
||||
return json(trans('auth.forgot.unregistered'), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('auth.forgot.ready', [$user]);
|
||||
|
||||
$url = URL::temporarySignedRoute(
|
||||
'auth.reset',
|
||||
Carbon::now()->addHour(),
|
||||
['uid' => $user->uid],
|
||||
false
|
||||
);
|
||||
try {
|
||||
Mail::to($email)->send(new ForgotPassword(url($url)));
|
||||
} catch (\Exception $e) {
|
||||
report($e);
|
||||
$dispatcher->dispatch('auth.forgot.failed', [$user, $url]);
|
||||
|
||||
return json(trans('auth.forgot.failed', ['msg' => $e->getMessage()]), 2);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('auth.forgot.sent', [$user, $url]);
|
||||
Cache::put($lastMailCacheKey, time(), 3600);
|
||||
|
||||
return json(trans('auth.forgot.success'), 0);
|
||||
}
|
||||
|
||||
public function reset(Request $request, $uid)
|
||||
{
|
||||
abort_unless($request->hasValidSignature(false), 403, trans('auth.reset.invalid'));
|
||||
|
||||
return view('auth.reset')->with('user', User::find($uid));
|
||||
}
|
||||
|
||||
public function handleReset(Dispatcher $dispatcher, Request $request, $uid)
|
||||
{
|
||||
abort_unless($request->hasValidSignature(false), 403, trans('auth.reset.invalid'));
|
||||
|
||||
['password' => $password] = $request->validate([
|
||||
'password' => 'required|min:8|max:32',
|
||||
]);
|
||||
$user = User::find($uid);
|
||||
|
||||
$dispatcher->dispatch('auth.reset.before', [$user, $password]);
|
||||
$user->changePassword($password);
|
||||
$dispatcher->dispatch('auth.reset.after', [$user, $password]);
|
||||
|
||||
return json(trans('auth.reset.success'), 0);
|
||||
}
|
||||
|
||||
public function captcha(\Gregwar\Captcha\CaptchaBuilder $builder)
|
||||
{
|
||||
$builder->build(100, 34);
|
||||
session(['captcha' => $builder->getPhrase()]);
|
||||
|
||||
return response($builder->output(), 200, [
|
||||
'Content-Type' => 'image/jpeg',
|
||||
'Cache-Control' => 'no-store',
|
||||
]);
|
||||
}
|
||||
|
||||
public function fillEmail(Request $request)
|
||||
{
|
||||
$email = $request->validate(['email' => 'required|email|unique:users'])['email'];
|
||||
$user = $request->user();
|
||||
$user->email = $email;
|
||||
$user->save();
|
||||
|
||||
return redirect('/user');
|
||||
}
|
||||
|
||||
public function verify(Request $request)
|
||||
{
|
||||
if (!option('require_verification')) {
|
||||
throw new PrettyPageException(trans('user.verification.disabled'), 1);
|
||||
}
|
||||
|
||||
abort_unless($request->hasValidSignature(false), 403, trans('auth.verify.invalid'));
|
||||
|
||||
return view('auth.verify');
|
||||
}
|
||||
|
||||
public function handleVerify(Request $request, User $user)
|
||||
{
|
||||
abort_unless($request->hasValidSignature(false), 403, trans('auth.verify.invalid'));
|
||||
|
||||
['email' => $email] = $request->validate(['email' => 'required|email']);
|
||||
|
||||
if ($user->email !== $email) {
|
||||
return back()->with('errorMessage', trans('auth.verify.not-matched'));
|
||||
}
|
||||
|
||||
$user->verified = true;
|
||||
$user->save();
|
||||
|
||||
return redirect()->route('user.home');
|
||||
}
|
||||
}
|
||||
198
app/Http/Controllers/ClosetController.php
Normal file
198
app/Http/Controllers/ClosetController.php
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use Blessing\Filter;
|
||||
use Blessing\Rejection;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class ClosetController extends Controller
|
||||
{
|
||||
public function index(Filter $filter)
|
||||
{
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-8', 'md-4'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
[
|
||||
'user.widgets.email-verification',
|
||||
'user.widgets.closet.list',
|
||||
],
|
||||
['shared.previewer'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:user.closet', $grid);
|
||||
|
||||
return view('user.closet')
|
||||
->with('grid', $grid)
|
||||
->with('extra', [
|
||||
'unverified' => option('require_verification') && !auth()->user()->verified,
|
||||
'rule' => trans('user.player.player-name-rule.'.option('player_name_rule')),
|
||||
'length' => trans(
|
||||
'user.player.player-name-length',
|
||||
['min' => option('player_name_length_min'), 'max' => option('player_name_length_max')]
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
public function getClosetData(Request $request)
|
||||
{
|
||||
$category = $request->input('category', 'skin');
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
return $user
|
||||
->closet()
|
||||
->when(
|
||||
$category === 'cape',
|
||||
fn (Builder $query) => $query->where('type', 'cape'),
|
||||
fn (Builder $query) => $query->whereIn('type', ['steve', 'alex']),
|
||||
)
|
||||
->when(
|
||||
$request->input('q'),
|
||||
fn (Builder $query, $search) => $query->like('item_name', $search)
|
||||
)
|
||||
->orderBy('texture_tid', 'DESC')
|
||||
->paginate((int) $request->input('perPage', 6));
|
||||
}
|
||||
|
||||
public function allIds()
|
||||
{
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
return $user->closet()->pluck('texture_tid');
|
||||
}
|
||||
|
||||
public function add(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
) {
|
||||
['tid' => $tid, 'name' => $name] = $request->validate([
|
||||
'tid' => 'required|integer',
|
||||
'name' => 'required',
|
||||
]);
|
||||
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
$name = $filter->apply('add_closet_item_name', $name, [$tid]);
|
||||
$dispatcher->dispatch('closet.adding', [$tid, $name, $user]);
|
||||
|
||||
$can = $filter->apply('can_add_closet_item', true, [$tid, $name]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
if ($user->score < option('score_per_closet_item')) {
|
||||
return json(trans('user.closet.add.lack-score'), 1);
|
||||
}
|
||||
|
||||
$tid = $request->tid;
|
||||
$texture = Texture::find($tid);
|
||||
if (!$texture) {
|
||||
return json(trans('user.closet.add.not-found'), 1);
|
||||
}
|
||||
|
||||
if (!$texture->public && ($texture->uploader != $user->uid && !$user->isAdmin())) {
|
||||
return json(trans('skinlib.show.private'), 1);
|
||||
}
|
||||
|
||||
if ($user->closet()->where('tid', $request->tid)->count() > 0) {
|
||||
return json(trans('user.closet.add.repeated'), 1);
|
||||
}
|
||||
|
||||
$user->closet()->attach($tid, ['item_name' => $request->name]);
|
||||
$user->score -= option('score_per_closet_item');
|
||||
$user->save();
|
||||
|
||||
$texture->likes++;
|
||||
$texture->save();
|
||||
|
||||
$dispatcher->dispatch('closet.added', [$texture, $name, $user]);
|
||||
|
||||
$uploader = User::find($texture->uploader);
|
||||
if ($uploader && $uploader->uid != $user->uid) {
|
||||
$uploader->score += option('score_award_per_like', 0);
|
||||
$uploader->save();
|
||||
}
|
||||
|
||||
return json(trans('user.closet.add.success', ['name' => $request->input('name')]), 0);
|
||||
}
|
||||
|
||||
public function rename(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
$tid,
|
||||
) {
|
||||
['name' => $name] = $request->validate(['name' => 'required']);
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
$name = $filter->apply('rename_closet_item_name', $name, [$tid]);
|
||||
$dispatcher->dispatch('closet.renaming', [$tid, $name, $user]);
|
||||
|
||||
$item = $user->closet()->find($tid);
|
||||
if (empty($item)) {
|
||||
return json(trans('user.closet.remove.non-existent'), 1);
|
||||
}
|
||||
$previousName = $item->pivot->item_name;
|
||||
|
||||
$can = $filter->apply('can_rename_closet_item', true, [$item, $name]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$user->closet()->updateExistingPivot($tid, ['item_name' => $name]);
|
||||
|
||||
$dispatcher->dispatch('closet.renamed', [$item, $previousName, $user]);
|
||||
|
||||
return json(trans('user.closet.rename.success', ['name' => $name]), 0);
|
||||
}
|
||||
|
||||
public function remove(Dispatcher $dispatcher, Filter $filter, $tid)
|
||||
{
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
$dispatcher->dispatch('closet.removing', [$tid, $user]);
|
||||
|
||||
$item = $user->closet()->find($tid);
|
||||
if (empty($item)) {
|
||||
return json(trans('user.closet.remove.non-existent'), 1);
|
||||
}
|
||||
|
||||
$can = $filter->apply('can_remove_closet_item', true, [$item]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$user->closet()->detach($tid);
|
||||
|
||||
if (option('return_score')) {
|
||||
$user->score += option('score_per_closet_item');
|
||||
$user->save();
|
||||
}
|
||||
|
||||
$texture = Texture::find($tid);
|
||||
$texture->likes--;
|
||||
$texture->save();
|
||||
|
||||
$dispatcher->dispatch('closet.removed', [$texture, $user]);
|
||||
|
||||
$uploader = User::find($texture->uploader);
|
||||
$uploader->score -= option('score_award_per_like', 0);
|
||||
$uploader->save();
|
||||
|
||||
return json(trans('user.closet.remove.success'), 0);
|
||||
}
|
||||
}
|
||||
58
app/Http/Controllers/ClosetManagementController.php
Normal file
58
app/Http/Controllers/ClosetManagementController.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ClosetManagementController extends Controller
|
||||
{
|
||||
public function list(User $user)
|
||||
{
|
||||
return $user->closet;
|
||||
}
|
||||
|
||||
public function add(Request $request, Dispatcher $dispatcher, User $user)
|
||||
{
|
||||
$tid = $request->input('tid');
|
||||
$texture = Texture::find($tid);
|
||||
if (!$texture) {
|
||||
return json(trans('user.closet.add.not-found'), 1);
|
||||
}
|
||||
|
||||
if ($user->closet()->where('tid', $request->tid)->count() > 0) {
|
||||
return json(trans('user.closet.add.repeated'), 1);
|
||||
}
|
||||
|
||||
$name = $texture->name;
|
||||
|
||||
$dispatcher->dispatch('closet.adding', [$tid, $name, $user]);
|
||||
|
||||
$user->closet()->attach($texture->tid, ['item_name' => $name]);
|
||||
|
||||
$dispatcher->dispatch('closet.added', [$texture, $name, $user]);
|
||||
|
||||
return json('', 0, compact('user', 'texture'));
|
||||
}
|
||||
|
||||
public function remove(Request $request, Dispatcher $dispatcher, User $user)
|
||||
{
|
||||
$tid = $request->input('tid');
|
||||
$dispatcher->dispatch('closet.removing', [$tid, $user]);
|
||||
|
||||
$item = $user->closet()->find($tid);
|
||||
if (empty($item)) {
|
||||
return json(trans('user.closet.remove.non-existent'), 1);
|
||||
}
|
||||
|
||||
$user->closet()->detach($tid);
|
||||
|
||||
$texture = Texture::find($tid);
|
||||
|
||||
$dispatcher->dispatch('closet.removed', [$texture, $user]);
|
||||
|
||||
return json('', 0, compact('user', 'texture'));
|
||||
}
|
||||
}
|
||||
13
app/Http/Controllers/Controller.php
Normal file
13
app/Http/Controllers/Controller.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
|
||||
class Controller extends BaseController
|
||||
{
|
||||
use DispatchesJobs;
|
||||
use ValidatesRequests;
|
||||
}
|
||||
42
app/Http/Controllers/HomeController.php
Normal file
42
app/Http/Controllers/HomeController.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('home')
|
||||
->with('user', auth()->user())
|
||||
->with('site_description', option_localized('site_description'))
|
||||
->with('transparent_navbar', (bool) option('transparent_navbar', false))
|
||||
->with('fixed_bg', option('fixed_bg'))
|
||||
->with('hide_intro', option('hide_intro'))
|
||||
->with('home_pic_url', option('home_pic_url') ?: config('options.home_pic_url'));
|
||||
}
|
||||
|
||||
public function apiRoot()
|
||||
{
|
||||
$copyright = Arr::get(
|
||||
[
|
||||
'Powered with ❤ by Blessing Skin Server.',
|
||||
'Powered by Blessing Skin Server.',
|
||||
'Proudly powered by Blessing Skin Server.',
|
||||
'由 Blessing Skin Server 强力驱动。',
|
||||
'采用 Blessing Skin Server 搭建。',
|
||||
'使用 Blessing Skin Server 稳定运行。',
|
||||
'自豪地采用 Blessing Skin Server。',
|
||||
],
|
||||
option_localized('copyright_prefer', 0)
|
||||
);
|
||||
|
||||
return response()->json([
|
||||
'blessing_skin' => config('app.version'),
|
||||
'spec' => 0,
|
||||
'copyright' => $copyright,
|
||||
'site_name' => option('site_name'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
100
app/Http/Controllers/MarketController.php
Normal file
100
app/Http/Controllers/MarketController.php
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\Plugin;
|
||||
use App\Services\PluginManager;
|
||||
use App\Services\Unzip;
|
||||
use Composer\CaBundle\CaBundle;
|
||||
use Composer\Semver\Comparator;
|
||||
use Exception;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
class MarketController extends Controller
|
||||
{
|
||||
public function marketData(PluginManager $manager)
|
||||
{
|
||||
$plugins = $this->fetch()->map(function ($item) use ($manager) {
|
||||
$plugin = $manager->get($item['name']);
|
||||
|
||||
if ($plugin) {
|
||||
$item['installed'] = $plugin->version;
|
||||
$item['can_update'] = Comparator::greaterThan($item['version'], $item['installed']);
|
||||
} else {
|
||||
$item['installed'] = false;
|
||||
}
|
||||
|
||||
$requirements = Arr::get($item, 'require', []);
|
||||
unset($item['require']);
|
||||
$item['dependencies'] = [
|
||||
'all' => $requirements,
|
||||
'unsatisfied' => $manager->getUnsatisfied(new Plugin('', $item)),
|
||||
];
|
||||
|
||||
return $item;
|
||||
});
|
||||
|
||||
return $plugins;
|
||||
}
|
||||
|
||||
public function download(Request $request, PluginManager $manager, Unzip $unzip)
|
||||
{
|
||||
$name = $request->input('name');
|
||||
$plugins = $this->fetch();
|
||||
$metadata = $plugins->firstWhere('name', $name);
|
||||
|
||||
if (!$metadata) {
|
||||
return json(trans('admin.plugins.market.non-existent', ['plugin' => $name]), 1);
|
||||
}
|
||||
|
||||
$fakePlugin = new Plugin('', $metadata);
|
||||
$unsatisfied = $manager->getUnsatisfied($fakePlugin);
|
||||
$conflicts = $manager->getConflicts($fakePlugin);
|
||||
if ($unsatisfied->isNotEmpty() || $conflicts->isNotEmpty()) {
|
||||
$reason = $manager->formatUnresolved($unsatisfied, $conflicts);
|
||||
|
||||
return json(trans('admin.plugins.market.unresolved'), 1, compact('reason'));
|
||||
}
|
||||
|
||||
$path = tempnam(sys_get_temp_dir(), $name);
|
||||
$response = Http::withOptions([
|
||||
'sink' => $path,
|
||||
'verify' => CaBundle::getSystemCaRootBundlePath(),
|
||||
])->get($metadata['dist']['url']);
|
||||
|
||||
if ($response->ok()) {
|
||||
$unzip->extract($path, $manager->getPluginsDirs()->first());
|
||||
|
||||
return json(trans('admin.plugins.market.install-success'), 0);
|
||||
} else {
|
||||
return json(trans('admin.download.errors.download', ['error' => $response->status()]), 1);
|
||||
}
|
||||
}
|
||||
|
||||
protected function fetch(): Collection
|
||||
{
|
||||
$lang = in_array(app()->getLocale(), config('plugins.locales'))
|
||||
? app()->getLocale()
|
||||
: config('app.fallback_locale');
|
||||
|
||||
$plugins = collect(explode(',', config('plugins.registry')))
|
||||
->map(function ($registry) use ($lang) {
|
||||
$registry = str_replace('{lang}', $lang, $registry);
|
||||
$response = Http::withOptions([
|
||||
'verify' => CaBundle::getSystemCaRootBundlePath(),
|
||||
])->get(trim($registry));
|
||||
|
||||
if ($response->ok()) {
|
||||
return $response->json()['packages'];
|
||||
} else {
|
||||
throw new Exception(trans('admin.plugins.market.connection-error', ['error' => $response->status()]));
|
||||
}
|
||||
})
|
||||
->flatten(1);
|
||||
|
||||
return $plugins;
|
||||
}
|
||||
}
|
||||
72
app/Http/Controllers/NotificationsController.php
Normal file
72
app/Http/Controllers/NotificationsController.php
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Notifications;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use League\CommonMark\GithubFlavoredMarkdownConverter;
|
||||
|
||||
class NotificationsController extends Controller
|
||||
{
|
||||
public function send(Request $request)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'receiver' => 'required|in:all,normal,uid,email',
|
||||
'uid' => 'required_if:receiver,uid|nullable|integer|exists:users',
|
||||
'email' => 'required_if:receiver,email|nullable|email|exists:users',
|
||||
'title' => 'required|max:20',
|
||||
'content' => 'string|nullable',
|
||||
]);
|
||||
|
||||
$notification = new Notifications\SiteMessage($data['title'], $data['content']);
|
||||
|
||||
switch ($data['receiver']) {
|
||||
case 'all':
|
||||
$users = User::all();
|
||||
break;
|
||||
case 'normal':
|
||||
$users = User::where('permission', User::NORMAL)->get();
|
||||
break;
|
||||
case 'uid':
|
||||
$users = User::where('uid', $data['uid'])->get();
|
||||
break;
|
||||
case 'email':
|
||||
$users = User::where('email', $data['email'])->get();
|
||||
break;
|
||||
}
|
||||
Notification::send($users, $notification);
|
||||
|
||||
session(['sentResult' => trans('admin.notifications.send.success')]);
|
||||
|
||||
return redirect('/admin');
|
||||
}
|
||||
|
||||
public function all()
|
||||
{
|
||||
return auth()->user()
|
||||
->unreadNotifications
|
||||
->map(fn ($notification) => [
|
||||
'id' => $notification->id,
|
||||
'title' => $notification->data['title'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function read($id)
|
||||
{
|
||||
$notification = auth()
|
||||
->user()
|
||||
->unreadNotifications
|
||||
->first(fn ($notification) => $notification->id === $id);
|
||||
$notification->markAsRead();
|
||||
|
||||
$converter = new GithubFlavoredMarkdownConverter();
|
||||
|
||||
return [
|
||||
'title' => $notification->data['title'],
|
||||
'content' => $converter->convertToHtml($notification->data['content'] ?? '')->getContent(),
|
||||
'time' => $notification->created_at->toDateTimeString(),
|
||||
];
|
||||
}
|
||||
}
|
||||
270
app/Http/Controllers/OptionsController.php
Normal file
270
app/Http/Controllers/OptionsController.php
Normal file
|
|
@ -0,0 +1,270 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\Facades\Option;
|
||||
use App\Services\OptionForm;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class OptionsController extends Controller
|
||||
{
|
||||
public function customize(Request $request)
|
||||
{
|
||||
$homepage = Option::form('homepage', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->text('home_pic_url')->hint();
|
||||
|
||||
$form->text('favicon_url')->hint()->description();
|
||||
|
||||
$form->checkbox('transparent_navbar')->label();
|
||||
|
||||
$form->checkbox('hide_intro')->label();
|
||||
|
||||
$form->checkbox('fixed_bg')->label();
|
||||
|
||||
$form->select('copyright_prefer')
|
||||
->option('0', 'Powered with ❤ by Blessing Skin Server.')
|
||||
->option('1', 'Powered by Blessing Skin Server.')
|
||||
->option('2', 'Proudly powered by Blessing Skin Server.')
|
||||
->option('3', '由 Blessing Skin Server 强力驱动。')
|
||||
->option('4', '采用 Blessing Skin Server 搭建。')
|
||||
->option('5', '使用 Blessing Skin Server 稳定运行。')
|
||||
->option('6', '自豪地采用 Blessing Skin Server。')
|
||||
->description();
|
||||
|
||||
$form->textarea('copyright_text')->rows(6)->description();
|
||||
})->handle(function () {
|
||||
Option::set('copyright_prefer_'.config('app.locale'), request('copyright_prefer'));
|
||||
Option::set('copyright_text_'.config('app.locale'), request('copyright_text'));
|
||||
});
|
||||
|
||||
$customJsCss = Option::form('customJsCss', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->textarea('custom_css', 'CSS')->rows(6);
|
||||
$form->textarea('custom_js', 'JavaScript')->rows(6);
|
||||
})->addMessage()->handle();
|
||||
|
||||
if ($request->isMethod('post') && $request->input('action') === 'color') {
|
||||
$navbar = $request->input('navbar');
|
||||
if ($navbar) {
|
||||
option(['navbar_color' => $navbar]);
|
||||
}
|
||||
|
||||
$sidebar = $request->input('sidebar');
|
||||
if ($sidebar) {
|
||||
option(['sidebar_color' => $sidebar]);
|
||||
}
|
||||
}
|
||||
|
||||
return view('admin.customize', [
|
||||
'colors' => [
|
||||
'navbar' => [
|
||||
'primary', 'secondary', 'success', 'danger', 'indigo',
|
||||
'purple', 'pink', 'teal', 'cyan', 'dark', 'gray',
|
||||
'fuchsia', 'maroon', 'olive', 'navy',
|
||||
'lime', 'light', 'warning', 'white', 'orange',
|
||||
],
|
||||
'sidebar' => [
|
||||
'primary', 'warning', 'info', 'danger', 'success', 'indigo',
|
||||
'navy', 'purple', 'fuchsia', 'pink', 'maroon', 'orange',
|
||||
'lime', 'teal', 'olive',
|
||||
],
|
||||
],
|
||||
'forms' => [
|
||||
'homepage' => $homepage,
|
||||
'custom_js_css' => $customJsCss,
|
||||
],
|
||||
'extra' => [
|
||||
'navbar' => option('navbar_color'),
|
||||
'sidebar' => option('sidebar_color'),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function score()
|
||||
{
|
||||
$rate = Option::form('rate', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->group('score_per_storage')->text('score_per_storage')->addon();
|
||||
|
||||
$form->group('private_score_per_storage')
|
||||
->text('private_score_per_storage')->addon()->hint();
|
||||
|
||||
$form->group('score_per_closet_item')
|
||||
->text('score_per_closet_item')->addon();
|
||||
|
||||
$form->checkbox('return_score')->label();
|
||||
|
||||
$form->group('score_per_player')->text('score_per_player')->addon();
|
||||
|
||||
$form->text('user_initial_score');
|
||||
})->handle();
|
||||
|
||||
$report = Option::form('report', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->text('reporter_score_modification')->description();
|
||||
|
||||
$form->text('reporter_reward_score');
|
||||
})->handle();
|
||||
|
||||
$sign = Option::form('sign', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->group('sign_score')
|
||||
->text('sign_score_from')->addon(trans('options.sign.sign_score.addon1'))
|
||||
->text('sign_score_to')->addon(trans('options.sign.sign_score.addon2'));
|
||||
|
||||
$form->group('sign_gap_time')->text('sign_gap_time')->addon();
|
||||
|
||||
$form->checkbox('sign_after_zero')->label()->hint();
|
||||
})->after(function () {
|
||||
$sign_score = request('sign_score_from').','.request('sign_score_to');
|
||||
Option::set('sign_score', $sign_score);
|
||||
})->with([
|
||||
'sign_score_from' => @explode(',', option('sign_score'))[0],
|
||||
'sign_score_to' => @explode(',', option('sign_score'))[1],
|
||||
])->handle();
|
||||
|
||||
$sharing = Option::form('sharing', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->group('score_award_per_texture')
|
||||
->text('score_award_per_texture')
|
||||
->addon(trans('general.user.score'));
|
||||
$form->checkbox('take_back_scores_after_deletion')->label();
|
||||
$form->group('score_award_per_like')
|
||||
->text('score_award_per_like')
|
||||
->addon(trans('general.user.score'));
|
||||
})->handle();
|
||||
|
||||
return view('admin.score', ['forms' => compact('rate', 'report', 'sign', 'sharing')]);
|
||||
}
|
||||
|
||||
public function options()
|
||||
{
|
||||
$general = Option::form('general', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->text('site_name');
|
||||
$form->text('site_description')->description();
|
||||
|
||||
$form->text('site_url')
|
||||
->hint()
|
||||
->format(function ($url) {
|
||||
if (Str::endsWith($url, '/')) {
|
||||
$url = substr($url, 0, -1);
|
||||
}
|
||||
|
||||
if (Str::endsWith($url, '/index.php')) {
|
||||
$url = substr($url, 0, -10);
|
||||
}
|
||||
|
||||
return $url;
|
||||
});
|
||||
|
||||
$form->checkbox('register_with_player_name')->label();
|
||||
$form->checkbox('require_verification')->label();
|
||||
|
||||
$form->text('regs_per_ip');
|
||||
|
||||
$form->group('max_upload_file_size')
|
||||
->text('max_upload_file_size')->addon('KB')
|
||||
->hint(trans('options.general.max_upload_file_size.hint', ['size' => ini_get('upload_max_filesize')]));
|
||||
|
||||
$form->group('max_texture_width')
|
||||
->text('max_texture_width')->addon('px')
|
||||
->hint(trans('options.general.max_texture_width.hint'));
|
||||
|
||||
$form->select('player_name_rule')
|
||||
->option('official', trans('options.general.player_name_rule.official'))
|
||||
->option('cjk', trans('options.general.player_name_rule.cjk'))
|
||||
->option('utf8', trans('options.general.player_name_rule.utf8'))
|
||||
->option('custom', trans('options.general.player_name_rule.custom'));
|
||||
|
||||
$form->text('custom_player_name_regexp')->hint()->placeholder();
|
||||
|
||||
$form->group('player_name_length')
|
||||
->text('player_name_length_min')
|
||||
->addon('~')
|
||||
->text('player_name_length_max')
|
||||
->addon(trans('options.general.player_name_length.suffix'));
|
||||
|
||||
$form->checkbox('auto_del_invalid_texture')->label()->hint();
|
||||
|
||||
$form->checkbox('allow_downloading_texture')->label();
|
||||
|
||||
$form->select('status_code_for_private')
|
||||
->option('403', '403 Forbidden')
|
||||
->option('404', '404 Not Found');
|
||||
|
||||
$form->text('texture_name_regexp')->hint()->placeholder();
|
||||
|
||||
$form->textarea('content_policy')->rows(3)->description();
|
||||
})->handle(function () {
|
||||
Option::set('site_name_'.config('app.locale'), request('site_name'));
|
||||
Option::set('site_description_'.config('app.locale'), request('site_description'));
|
||||
Option::set('content_policy_'.config('app.locale'), request('content_policy'));
|
||||
});
|
||||
|
||||
$announ = Option::form('announ', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->textarea('announcement')->rows(10)->description();
|
||||
})->renderWithoutTable()->handle(function () {
|
||||
Option::set('announcement_'.config('app.locale'), request('announcement'));
|
||||
});
|
||||
|
||||
$meta = Option::form('meta', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->text('meta_keywords')->hint();
|
||||
$form->text('meta_description')->hint();
|
||||
$form->textarea('meta_extras')->rows(6);
|
||||
})->handle();
|
||||
|
||||
$recaptcha = Option::form('recaptcha', 'reCAPTCHA', function ($form) {
|
||||
$form->text('recaptcha_sitekey', 'sitekey');
|
||||
$form->text('recaptcha_secretkey', 'secretkey');
|
||||
$form->checkbox('recaptcha_invisible')->label();
|
||||
})->handle();
|
||||
|
||||
return view('admin.options')
|
||||
->with('forms', compact('general', 'announ', 'meta', 'recaptcha'));
|
||||
}
|
||||
|
||||
public function resource(Request $request)
|
||||
{
|
||||
$resources = Option::form('resources', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->checkbox('force_ssl')->label()->hint();
|
||||
$form->checkbox('auto_detect_asset_url')->label()->description();
|
||||
|
||||
$form->text('cache_expire_time')->hint(OptionForm::AUTO_DETECT);
|
||||
$form->text('cdn_address')
|
||||
->hint(OptionForm::AUTO_DETECT)
|
||||
->description(OptionForm::AUTO_DETECT);
|
||||
})
|
||||
->type('primary')
|
||||
->hint(OptionForm::AUTO_DETECT)
|
||||
->after(function () {
|
||||
$cdnAddress = request('cdn_address');
|
||||
if ($cdnAddress == null) {
|
||||
$cdnAddress = '';
|
||||
}
|
||||
if (Str::endsWith($cdnAddress, '/')) {
|
||||
$cdnAddress = substr($cdnAddress, 0, -1);
|
||||
}
|
||||
Option::set('cdn_address', $cdnAddress);
|
||||
})
|
||||
->handle();
|
||||
|
||||
$cache = Option::form('cache', OptionForm::AUTO_DETECT, function ($form) {
|
||||
$form->checkbox('enable_avatar_cache')->label();
|
||||
$form->checkbox('enable_preview_cache')->label();
|
||||
})
|
||||
->type('warning')
|
||||
->addButton([
|
||||
'text' => trans('options.cache.clear'),
|
||||
'type' => 'a',
|
||||
'class' => 'float-right',
|
||||
'style' => 'warning',
|
||||
'href' => '?clear-cache',
|
||||
])
|
||||
->addMessage(trans('options.cache.driver', ['driver' => config('cache.default')]), 'info');
|
||||
|
||||
if ($request->has('clear-cache')) {
|
||||
Cache::flush();
|
||||
$cache->addMessage(trans('options.cache.cleared'), 'success');
|
||||
}
|
||||
$cache->handle();
|
||||
|
||||
return view('admin.resource')->with('forms', compact('resources', 'cache'));
|
||||
}
|
||||
}
|
||||
260
app/Http/Controllers/PlayerController.php
Normal file
260
app/Http/Controllers/PlayerController.php
Normal file
|
|
@ -0,0 +1,260 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Events\PlayerWasAdded;
|
||||
use App\Events\PlayerWasDeleted;
|
||||
use App\Events\PlayerWillBeAdded;
|
||||
use App\Events\PlayerWillBeDeleted;
|
||||
use App\Models\Player;
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use App\Rules;
|
||||
use Blessing\Filter;
|
||||
use Blessing\Rejection;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class PlayerController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(function (Request $request, $next) {
|
||||
/** @var Player */
|
||||
$player = $request->route('player');
|
||||
if ($player->user->isNot($request->user())) {
|
||||
return json(trans('admin.players.no-permission'), 1)
|
||||
->setStatusCode(403);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}, [
|
||||
'only' => ['delete', 'rename', 'setTexture', 'clearTexture'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function index(Filter $filter)
|
||||
{
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-6', 'md-6'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
[
|
||||
'user.widgets.players.list',
|
||||
'user.widgets.players.notice',
|
||||
],
|
||||
['shared.previewer'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:user.player', $grid);
|
||||
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
return view('user.player')
|
||||
->with('grid', $grid)
|
||||
->with('extra', [
|
||||
'count' => $user->players()->count(),
|
||||
'rule' => trans('user.player.player-name-rule.'.option('player_name_rule')),
|
||||
'length' => trans(
|
||||
'user.player.player-name-length',
|
||||
['min' => option('player_name_length_min'), 'max' => option('player_name_length_max')]
|
||||
),
|
||||
'score' => auth()->user()->score,
|
||||
'cost' => (int) option('score_per_player'),
|
||||
]);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return Auth::user()->players;
|
||||
}
|
||||
|
||||
public function add(Request $request, Dispatcher $dispatcher, Filter $filter)
|
||||
{
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
|
||||
$name = $request->validate([
|
||||
'name' => [
|
||||
'required',
|
||||
new Rules\PlayerName(),
|
||||
'min:'.option('player_name_length_min'),
|
||||
'max:'.option('player_name_length_max'),
|
||||
'unique:players',
|
||||
],
|
||||
])['name'];
|
||||
$name = $filter->apply('new_player_name', $name);
|
||||
|
||||
$dispatcher->dispatch('player.add.attempt', [$name, $user]);
|
||||
|
||||
$can = $filter->apply('can_add_player', true, [$name]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
if ($user->score < (int) option('score_per_player')) {
|
||||
return json(trans('user.player.add.lack-score'), 7);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('player.adding', [$name, $user]);
|
||||
event(new PlayerWillBeAdded($name));
|
||||
|
||||
$player = new Player();
|
||||
$player->uid = $user->uid;
|
||||
$player->name = $name;
|
||||
$player->tid_skin = 0;
|
||||
$player->tid_cape = 0;
|
||||
$player->save();
|
||||
|
||||
$user->score -= (int) option('score_per_player');
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('player.added', [$player, $user]);
|
||||
event(new PlayerWasAdded($player));
|
||||
|
||||
return json(trans('user.player.add.success', ['name' => $name]), 0, $player->toArray());
|
||||
}
|
||||
|
||||
public function delete(
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
Player $player,
|
||||
) {
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
$playerName = $player->name;
|
||||
|
||||
$dispatcher->dispatch('player.delete.attempt', [$player, $user]);
|
||||
|
||||
$can = $filter->apply('can_delete_player', true, [$player]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('player.deleting', [$player, $user]);
|
||||
event(new PlayerWillBeDeleted($player));
|
||||
|
||||
$player->delete();
|
||||
|
||||
if (option('return_score')) {
|
||||
$user->score += (int) option('score_per_player');
|
||||
$user->save();
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('player.deleted', [$player, $user]);
|
||||
event(new PlayerWasDeleted($playerName));
|
||||
|
||||
return json(trans('user.player.delete.success', ['name' => $playerName]), 0);
|
||||
}
|
||||
|
||||
public function rename(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
Player $player,
|
||||
) {
|
||||
$name = $request->validate([
|
||||
'name' => [
|
||||
'required',
|
||||
new Rules\PlayerName(),
|
||||
'min:'.option('player_name_length_min'),
|
||||
'max:'.option('player_name_length_max'),
|
||||
Rule::unique('players')->ignoreModel($player),
|
||||
],
|
||||
])['name'];
|
||||
$name = $filter->apply('new_player_name', $name);
|
||||
|
||||
$dispatcher->dispatch('player.renaming', [$player, $name]);
|
||||
|
||||
$can = $filter->apply('can_rename_player', true, [$player, $name]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$old = $player->replicate();
|
||||
$player->name = $name;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.renamed', [$player, $old]);
|
||||
|
||||
return json(
|
||||
trans('user.player.rename.success', ['old' => $old->name, 'new' => $name]),
|
||||
0,
|
||||
$player->toArray()
|
||||
);
|
||||
}
|
||||
|
||||
public function setTexture(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
Player $player,
|
||||
) {
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
foreach (['skin', 'cape'] as $type) {
|
||||
$tid = $request->input($type);
|
||||
|
||||
$can = $filter->apply('can_set_texture', true, [$player, $type, $tid]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
if ($tid) {
|
||||
$texture = Texture::find($tid);
|
||||
if (empty($texture)) {
|
||||
return json(trans('skinlib.non-existent'), 1);
|
||||
}
|
||||
|
||||
if ($user->closet()->where('texture_tid', $tid)->doesntExist()) {
|
||||
return json(trans('user.closet.remove.non-existent'), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('player.texture.updating', [$player, $texture]);
|
||||
|
||||
$field = "tid_$type";
|
||||
$player->$field = $tid;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.texture.updated', [$player, $texture]);
|
||||
}
|
||||
}
|
||||
|
||||
return json(trans('user.player.set.success', ['name' => $player->name]), 0, $player->toArray());
|
||||
}
|
||||
|
||||
public function clearTexture(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
Player $player,
|
||||
) {
|
||||
$types = $request->input('type', []);
|
||||
|
||||
foreach (['skin', 'cape'] as $type) {
|
||||
$can = $filter->apply('can_clear_texture', true, [$player, $type]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
if ($request->has($type) || in_array($type, $types)) {
|
||||
$dispatcher->dispatch('player.texture.resetting', [$player, $type]);
|
||||
|
||||
$field = "tid_$type";
|
||||
$player->$field = 0;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.texture.reset', [$player, $type]);
|
||||
}
|
||||
}
|
||||
|
||||
return json(trans('user.player.clear.success', ['name' => $player->name]), 0, $player->toArray());
|
||||
}
|
||||
}
|
||||
136
app/Http/Controllers/PlayersManagementController.php
Normal file
136
app/Http/Controllers/PlayersManagementController.php
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Player;
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use App\Rules;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class PlayersManagementController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(function (Request $request, $next) {
|
||||
/** @var Player */
|
||||
$player = $request->route('player');
|
||||
$owner = $player->user;
|
||||
|
||||
/** @var User */
|
||||
$currentUser = $request->user();
|
||||
|
||||
if (
|
||||
$owner->uid !== $currentUser->uid
|
||||
&& $owner->permission >= $currentUser->permission
|
||||
) {
|
||||
return json(trans('admin.players.no-permission'), 1)
|
||||
->setStatusCode(403);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
})->except(['list']);
|
||||
}
|
||||
|
||||
public function list(Request $request)
|
||||
{
|
||||
$query = $request->query('q');
|
||||
|
||||
return Player::usingSearchString($query)->paginate(10);
|
||||
}
|
||||
|
||||
public function name(
|
||||
Player $player,
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
) {
|
||||
$name = $request->validate([
|
||||
'player_name' => [
|
||||
'required',
|
||||
new Rules\PlayerName(),
|
||||
'min:'.option('player_name_length_min'),
|
||||
'max:'.option('player_name_length_max'),
|
||||
'unique:players,name',
|
||||
],
|
||||
])['player_name'];
|
||||
|
||||
$dispatcher->dispatch('player.renaming', [$player, $name]);
|
||||
|
||||
$oldName = $player->name;
|
||||
$player->name = $name;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.renamed', [$player, $oldName]);
|
||||
|
||||
return json(trans('admin.players.name.success', ['player' => $player->name]), 0);
|
||||
}
|
||||
|
||||
public function owner(
|
||||
Player $player,
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
) {
|
||||
$uid = $request->validate(['uid' => 'required|integer'])['uid'];
|
||||
|
||||
$dispatcher->dispatch('player.owner.updating', [$player, $uid]);
|
||||
|
||||
/** @var User */
|
||||
$user = User::find($request->uid);
|
||||
if (empty($user)) {
|
||||
return json(trans('admin.users.operations.non-existent'), 1);
|
||||
}
|
||||
|
||||
$player->uid = $uid;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.owner.updated', [$player, $user]);
|
||||
|
||||
return json(trans('admin.players.owner.success', [
|
||||
'player' => $player->name,
|
||||
'user' => $user->nickname,
|
||||
]), 0);
|
||||
}
|
||||
|
||||
public function texture(
|
||||
Player $player,
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
) {
|
||||
$data = $request->validate([
|
||||
'tid' => 'required|integer',
|
||||
'type' => ['required', Rule::in(['skin', 'cape'])],
|
||||
]);
|
||||
$tid = (int) $data['tid'];
|
||||
$type = $data['type'];
|
||||
|
||||
$dispatcher->dispatch('player.texture.updating', [$player, $type, $tid]);
|
||||
|
||||
if (Texture::where('tid', $tid)->doesntExist() && $tid !== 0) {
|
||||
return json(trans('admin.players.textures.non-existent', ['tid' => $tid]), 1);
|
||||
}
|
||||
|
||||
$field = 'tid_'.$type;
|
||||
$previousTid = $player->$field;
|
||||
$player->$field = $tid;
|
||||
$player->save();
|
||||
|
||||
$dispatcher->dispatch('player.texture.updated', [$player, $type, $previousTid]);
|
||||
|
||||
return json(trans('admin.players.textures.success', ['player' => $player->name]), 0);
|
||||
}
|
||||
|
||||
public function delete(
|
||||
Player $player,
|
||||
Dispatcher $dispatcher,
|
||||
) {
|
||||
$dispatcher->dispatch('player.deleting', [$player]);
|
||||
|
||||
$player->delete();
|
||||
|
||||
$dispatcher->dispatch('player.deleted', [$player]);
|
||||
|
||||
return json(trans('admin.players.delete.success'), 0);
|
||||
}
|
||||
}
|
||||
140
app/Http/Controllers/PluginController.php
Normal file
140
app/Http/Controllers/PluginController.php
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\Plugin;
|
||||
use App\Services\PluginManager;
|
||||
use App\Services\Unzip;
|
||||
use Composer\CaBundle\CaBundle;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use League\CommonMark\GithubFlavoredMarkdownConverter;
|
||||
|
||||
class PluginController extends Controller
|
||||
{
|
||||
public function config(PluginManager $plugins, $name)
|
||||
{
|
||||
$plugin = $plugins->get($name);
|
||||
if ($plugin && $plugin->isEnabled()) {
|
||||
if ($plugin->hasConfigClass()) {
|
||||
return app()->call($plugin->getConfigClass().'@render');
|
||||
} elseif ($plugin->hasConfigView()) {
|
||||
return $plugin->getConfigView();
|
||||
} else {
|
||||
return abort(404, trans('admin.plugins.operations.no-config-notice'));
|
||||
}
|
||||
} else {
|
||||
return abort(404, trans('admin.plugins.operations.no-config-notice'));
|
||||
}
|
||||
}
|
||||
|
||||
public function readme(PluginManager $plugins, $name)
|
||||
{
|
||||
$plugin = $plugins->get($name);
|
||||
if (empty($plugin)) {
|
||||
return abort(404, trans('admin.plugins.operations.no-readme-notice'));
|
||||
}
|
||||
|
||||
$readmePath = $plugin->getReadme();
|
||||
if (empty($readmePath)) {
|
||||
return abort(404, trans('admin.plugins.operations.no-readme-notice'));
|
||||
}
|
||||
|
||||
$title = trans($plugin->title);
|
||||
$path = $plugin->getPath().'/'.$readmePath;
|
||||
$converter = new GithubFlavoredMarkdownConverter();
|
||||
$content = $converter->convertToHtml(file_get_contents($path));
|
||||
|
||||
return view('admin.plugin.readme', compact('content', 'title'));
|
||||
}
|
||||
|
||||
public function manage(Request $request, PluginManager $plugins)
|
||||
{
|
||||
$name = $request->input('name');
|
||||
$plugin = $plugins->get($name);
|
||||
|
||||
if ($plugin) {
|
||||
// Pass the plugin title through the translator.
|
||||
$plugin->title = trans($plugin->title);
|
||||
|
||||
switch ($request->get('action')) {
|
||||
case 'enable':
|
||||
$result = $plugins->enable($name);
|
||||
|
||||
if ($result === true) {
|
||||
return json(trans('admin.plugins.operations.enabled', ['plugin' => $plugin->title]), 0);
|
||||
} else {
|
||||
$reason = $plugins->formatUnresolved($result['unsatisfied'], $result['conflicts']);
|
||||
|
||||
return json(trans('admin.plugins.operations.unsatisfied.notice'), 1, compact('reason'));
|
||||
}
|
||||
|
||||
// no break
|
||||
case 'disable':
|
||||
$plugins->disable($name);
|
||||
|
||||
return json(trans('admin.plugins.operations.disabled', ['plugin' => $plugin->title]), 0);
|
||||
|
||||
case 'delete':
|
||||
$plugins->delete($name);
|
||||
|
||||
return json(trans('admin.plugins.operations.deleted'), 0);
|
||||
|
||||
default:
|
||||
return json(trans('admin.invalid-action'), 1);
|
||||
}
|
||||
} else {
|
||||
return json(trans('admin.plugins.operations.not-found'), 1);
|
||||
}
|
||||
}
|
||||
|
||||
public function getPluginData(PluginManager $plugins)
|
||||
{
|
||||
return $plugins->all()
|
||||
->map(function (Plugin $plugin) {
|
||||
return [
|
||||
'name' => $plugin->name,
|
||||
'title' => trans($plugin->title),
|
||||
'description' => trans($plugin->description ?? ''),
|
||||
'version' => $plugin->version,
|
||||
'enabled' => $plugin->isEnabled(),
|
||||
'readme' => (bool) $plugin->getReadme(),
|
||||
'config' => $plugin->hasConfig(),
|
||||
'icon' => array_merge(
|
||||
['fa' => 'plug', 'faType' => 'fas', 'bg' => 'navy'],
|
||||
$plugin->getManifestAttr('enchants.icon', [])
|
||||
),
|
||||
];
|
||||
})
|
||||
->values();
|
||||
}
|
||||
|
||||
public function upload(Request $request, PluginManager $manager, Unzip $unzip)
|
||||
{
|
||||
$request->validate(['file' => 'required|file|mimetypes:application/zip']);
|
||||
|
||||
$path = $request->file('file')->getPathname();
|
||||
$unzip->extract($path, $manager->getPluginsDirs()->first());
|
||||
|
||||
return json(trans('admin.plugins.market.install-success'), 0);
|
||||
}
|
||||
|
||||
public function wget(Request $request, PluginManager $manager, Unzip $unzip)
|
||||
{
|
||||
$data = $request->validate(['url' => 'required|url']);
|
||||
|
||||
$path = tempnam(sys_get_temp_dir(), 'wget-plugin');
|
||||
$response = Http::withOptions([
|
||||
'sink' => $path,
|
||||
'verify' => CaBundle::getSystemCaRootBundlePath(),
|
||||
])->get($data['url']);
|
||||
|
||||
if ($response->ok()) {
|
||||
$unzip->extract($path, $manager->getPluginsDirs()->first());
|
||||
|
||||
return json(trans('admin.plugins.market.install-success'), 0);
|
||||
} else {
|
||||
return json(trans('admin.download.errors.download', ['error' => $response->status()]), 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
170
app/Http/Controllers/ReportController.php
Normal file
170
app/Http/Controllers/ReportController.php
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Report;
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use Blessing\Filter;
|
||||
use Blessing\Rejection;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class ReportController extends Controller
|
||||
{
|
||||
public function submit(Request $request, Dispatcher $dispatcher, Filter $filter)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'tid' => 'required|exists:textures',
|
||||
'reason' => 'required',
|
||||
]);
|
||||
/** @var User */
|
||||
$reporter = auth()->user();
|
||||
$tid = $data['tid'];
|
||||
$reason = $data['reason'];
|
||||
|
||||
$can = $filter->apply('user_can_report', true, [$tid, $reason, $reporter]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('report.submitting', [$tid, $reason, $reporter]);
|
||||
|
||||
if (Report::where('reporter', $reporter->uid)->where('tid', $tid)->count() > 0) {
|
||||
return json(trans('skinlib.report.duplicate'), 1);
|
||||
}
|
||||
|
||||
$score = option('reporter_score_modification', 0);
|
||||
if ($score < 0 && $reporter->score < -$score) {
|
||||
return json(trans('skinlib.upload.lack-score'), 1);
|
||||
}
|
||||
$reporter->score += $score;
|
||||
$reporter->save();
|
||||
|
||||
$report = new Report();
|
||||
$report->tid = $tid;
|
||||
$report->uploader = Texture::find($tid)->uploader;
|
||||
$report->reporter = $reporter->uid;
|
||||
$report->reason = $reason;
|
||||
$report->status = Report::PENDING;
|
||||
$report->save();
|
||||
|
||||
$dispatcher->dispatch('report.submitted', [$report]);
|
||||
|
||||
return json(trans('skinlib.report.success'), 0);
|
||||
}
|
||||
|
||||
public function track()
|
||||
{
|
||||
$reports = Report::where('reporter', auth()->id())
|
||||
->orderBy('report_at', 'desc')
|
||||
->paginate(10);
|
||||
|
||||
return view('user.report', ['reports' => $reports]);
|
||||
}
|
||||
|
||||
public function manage(Request $request)
|
||||
{
|
||||
$q = $request->input('q');
|
||||
|
||||
return Report::usingSearchString($q)
|
||||
->with(['texture', 'textureUploader', 'informer'])
|
||||
->paginate(9);
|
||||
}
|
||||
|
||||
public function review(
|
||||
Report $report,
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
) {
|
||||
$data = $request->validate([
|
||||
'action' => ['required', Rule::in(['delete', 'ban', 'reject'])],
|
||||
]);
|
||||
$action = $data['action'];
|
||||
|
||||
$dispatcher->dispatch('report.reviewing', [$report, $action]);
|
||||
|
||||
if ($action == 'reject') {
|
||||
if (
|
||||
$report->informer
|
||||
&& ($score = option('reporter_score_modification', 0)) > 0
|
||||
&& $report->status == Report::PENDING
|
||||
) {
|
||||
$report->informer->score -= $score;
|
||||
$report->informer->save();
|
||||
}
|
||||
$report->status = Report::REJECTED;
|
||||
$report->save();
|
||||
|
||||
$dispatcher->dispatch('report.rejected', [$report]);
|
||||
|
||||
return json(trans('general.op-success'), 0, ['status' => Report::REJECTED]);
|
||||
}
|
||||
|
||||
switch ($action) {
|
||||
case 'delete':
|
||||
/** @var Texture */
|
||||
$texture = $report->texture;
|
||||
if ($texture) {
|
||||
$dispatcher->dispatch('texture.deleting', [$texture]);
|
||||
Storage::disk('textures')->delete($texture->hash);
|
||||
$texture->delete();
|
||||
$dispatcher->dispatch('texture.deleted', [$texture]);
|
||||
} else {
|
||||
// The texture has been deleted by its uploader
|
||||
// We will return the score, but will not give the informer any reward
|
||||
self::returnScore($report);
|
||||
$report->status = Report::RESOLVED;
|
||||
$report->save();
|
||||
|
||||
$dispatcher->dispatch('report.resolved', [$report, $action]);
|
||||
|
||||
return json(trans('general.texture-deleted'), 0, ['status' => Report::RESOLVED]);
|
||||
}
|
||||
break;
|
||||
case 'ban':
|
||||
$uploader = User::find($report->uploader);
|
||||
if (!$uploader) {
|
||||
return json(trans('admin.users.operations.non-existent'), 1);
|
||||
}
|
||||
if (auth()->user()->permission <= $uploader->permission) {
|
||||
return json(trans('admin.users.operations.no-permission'), 1);
|
||||
}
|
||||
$uploader->permission = User::BANNED;
|
||||
$uploader->save();
|
||||
$dispatcher->dispatch('user.banned', [$uploader]);
|
||||
break;
|
||||
}
|
||||
|
||||
self::returnScore($report);
|
||||
self::giveAward($report);
|
||||
$report->status = Report::RESOLVED;
|
||||
$report->save();
|
||||
|
||||
$dispatcher->dispatch('report.resolved', [$report, $action]);
|
||||
|
||||
return json(trans('general.op-success'), 0, ['status' => Report::RESOLVED]);
|
||||
}
|
||||
|
||||
public static function returnScore($report)
|
||||
{
|
||||
if (
|
||||
$report->status == Report::PENDING
|
||||
&& ($score = option('reporter_score_modification', 0)) < 0
|
||||
&& $report->informer
|
||||
) {
|
||||
$report->informer->score -= $score;
|
||||
$report->informer->save();
|
||||
}
|
||||
}
|
||||
|
||||
public static function giveAward($report)
|
||||
{
|
||||
if ($report->status == Report::PENDING && $report->informer) {
|
||||
$report->informer->score += option('reporter_reward_score', 0);
|
||||
$report->informer->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
157
app/Http/Controllers/SetupController.php
Normal file
157
app/Http/Controllers/SetupController.php
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Exceptions\PrettyPageException;
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Contracts\Console\Kernel as Artisan;
|
||||
use Illuminate\Database\Connection;
|
||||
use Illuminate\Database\DatabaseManager;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Str;
|
||||
use Vectorface\Whip\Whip;
|
||||
|
||||
class SetupController extends Controller
|
||||
{
|
||||
public function database(
|
||||
Request $request,
|
||||
Filesystem $filesystem,
|
||||
Connection $connection,
|
||||
DatabaseManager $manager,
|
||||
) {
|
||||
if ($request->isMethod('get')) {
|
||||
try {
|
||||
$connection->getPdo();
|
||||
|
||||
return redirect('setup/info');
|
||||
} catch (\Exception $e) {
|
||||
return view('setup.wizard.database', [
|
||||
'host' => env('DB_HOST'),
|
||||
'port' => env('DB_PORT'),
|
||||
'username' => env('DB_USERNAME'),
|
||||
'password' => env('DB_PASSWORD'),
|
||||
'database' => env('DB_DATABASE'),
|
||||
'prefix' => env('DB_PREFIX'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
config([
|
||||
'database.connections.temp.driver' => $request->input('type'),
|
||||
'database.connections.temp.host' => $request->input('host'),
|
||||
'database.connections.temp.port' => $request->input('port'),
|
||||
'database.connections.temp.username' => $request->input('username'),
|
||||
'database.connections.temp.password' => $request->input('password'),
|
||||
'database.connections.temp.database' => $request->input('db'),
|
||||
'database.connections.temp.prefix' => $request->input('prefix'),
|
||||
]);
|
||||
|
||||
try {
|
||||
$manager->connection('temp')->getPdo();
|
||||
} catch (\Exception $e) {
|
||||
$msg = $e->getMessage();
|
||||
$type = Arr::get([
|
||||
'mysql' => 'MySQL/MariaDB',
|
||||
'sqlite' => 'SQLite',
|
||||
'pgsql' => 'PostgreSQL',
|
||||
], $request->input('type'), '');
|
||||
|
||||
throw new PrettyPageException(trans('setup.database.connection-error', compact('msg', 'type')), $e->getCode());
|
||||
}
|
||||
|
||||
$content = $filesystem->get(base_path('.env'));
|
||||
$content = preg_replace(
|
||||
'/DB_CONNECTION.+/',
|
||||
'DB_CONNECTION='.$request->input('type', ''),
|
||||
$content
|
||||
);
|
||||
$content = preg_replace(
|
||||
'/DB_HOST.+/',
|
||||
'DB_HOST='.$request->input('host', ''),
|
||||
$content
|
||||
);
|
||||
$content = preg_replace(
|
||||
'/DB_PORT.+/',
|
||||
'DB_PORT='.$request->input('port', ''),
|
||||
$content
|
||||
);
|
||||
$content = preg_replace(
|
||||
'/DB_DATABASE.+/',
|
||||
'DB_DATABASE='.$request->input('db', ''),
|
||||
$content
|
||||
);
|
||||
$content = preg_replace(
|
||||
'/DB_USERNAME.+/',
|
||||
'DB_USERNAME='.$request->input('username', ''),
|
||||
$content
|
||||
);
|
||||
$content = preg_replace(
|
||||
'/DB_PASSWORD.+/',
|
||||
'DB_PASSWORD='.$request->input('password', ''),
|
||||
$content
|
||||
);
|
||||
$content = preg_replace(
|
||||
'/DB_PREFIX.+/',
|
||||
'DB_PREFIX='.$request->input('prefix', ''),
|
||||
$content
|
||||
);
|
||||
$filesystem->put(base_path('.env'), $content);
|
||||
|
||||
return redirect('setup/info');
|
||||
}
|
||||
|
||||
public function finish(Request $request, Filesystem $filesystem, Artisan $artisan)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'email' => 'required|email',
|
||||
'nickname' => 'required',
|
||||
'password' => 'required|min:8|max:32|confirmed',
|
||||
'site_name' => 'required',
|
||||
]);
|
||||
|
||||
$artisan->call('passport:keys', ['--no-interaction' => true]);
|
||||
|
||||
// Create tables
|
||||
$artisan->call('migrate', [
|
||||
'--force' => true,
|
||||
'--path' => [
|
||||
'database/migrations',
|
||||
'vendor/laravel/passport/database/migrations',
|
||||
],
|
||||
]);
|
||||
|
||||
$siteUrl = url('/');
|
||||
if (Str::endsWith($siteUrl, '/index.php')) {
|
||||
$siteUrl = substr($siteUrl, 0, -10); // @codeCoverageIgnore
|
||||
}
|
||||
option([
|
||||
'site_name' => $request->input('site_name'),
|
||||
'site_url' => $siteUrl,
|
||||
]);
|
||||
|
||||
$whip = new Whip();
|
||||
$ip = $whip->getValidIpAddress();
|
||||
|
||||
// Register super admin
|
||||
$user = new User();
|
||||
$user->email = $data['email'];
|
||||
$user->nickname = $data['nickname'];
|
||||
$user->score = option('user_initial_score');
|
||||
$user->avatar = 0;
|
||||
$user->password = app('cipher')->hash($data['password'], config('secure.salt'));
|
||||
$user->ip = $ip;
|
||||
$user->permission = User::SUPER_ADMIN;
|
||||
$user->register_at = Carbon::now();
|
||||
$user->last_sign_at = Carbon::now()->subDay();
|
||||
$user->verified = true;
|
||||
|
||||
$user->save();
|
||||
|
||||
$filesystem->put(storage_path('install.lock'), '');
|
||||
|
||||
return view('setup.wizard.finish');
|
||||
}
|
||||
}
|
||||
461
app/Http/Controllers/SkinlibController.php
Normal file
461
app/Http/Controllers/SkinlibController.php
Normal file
|
|
@ -0,0 +1,461 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use Blessing\Filter;
|
||||
use Blessing\Rejection;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Filesystem\FilesystemAdapter;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Validation\Rule;
|
||||
use Intervention\Image\Facades\Image;
|
||||
use League\CommonMark\GithubFlavoredMarkdownConverter;
|
||||
|
||||
class SkinlibController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(function (Request $request, $next) {
|
||||
/** @var User */
|
||||
$user = $request->user();
|
||||
/** @var Texture */
|
||||
$texture = $request->route('texture');
|
||||
|
||||
if ($texture->uploader != $user->uid && !$user->isAdmin()) {
|
||||
return json(trans('skinlib.no-permission'), 1)
|
||||
->setStatusCode(403);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
})->only(['rename', 'privacy', 'type', 'delete']);
|
||||
|
||||
$this->middleware(function (Request $request, $next) {
|
||||
/** @var User */
|
||||
$user = $request->user();
|
||||
/** @var Texture */
|
||||
$texture = $request->route('texture');
|
||||
|
||||
if (!$texture->public) {
|
||||
if (!Auth::check() || ($user->uid != $texture->uploader && !$user->isAdmin())) {
|
||||
$statusCode = (int) option('status_code_for_private');
|
||||
if ($statusCode === 404) {
|
||||
abort($statusCode, trans('skinlib.show.deleted'));
|
||||
} else {
|
||||
abort(403, trans('skinlib.show.private'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
})->only(['show', 'info']);
|
||||
}
|
||||
|
||||
public function library(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
// Available filters: skin, steve, alex, cape
|
||||
$type = $request->input('filter', 'skin');
|
||||
$uploader = $request->input('uploader');
|
||||
$keyword = $request->input('keyword');
|
||||
$sort = $request->input('sort', 'time');
|
||||
$sortBy = $sort == 'time' ? 'upload_at' : $sort;
|
||||
|
||||
return Texture::orderBy($sortBy, 'desc')
|
||||
->when(
|
||||
$type === 'skin',
|
||||
fn (Builder $query) => $query->whereIn('type', ['steve', 'alex']),
|
||||
fn (Builder $query) => $query->where('type', $type),
|
||||
)
|
||||
->when($keyword, fn (Builder $query, $keyword) => $query->like('name', $keyword))
|
||||
->when($uploader, fn (Builder $query, $uploader) => $query->where('uploader', $uploader))
|
||||
->when($user, function (Builder $query, User $user) {
|
||||
if (!$user->isAdmin()) {
|
||||
// use closure-style `where` clause to lift up SQL priority
|
||||
return $query->where(function (Builder $query) use ($user) {
|
||||
$query
|
||||
->where('public', true)
|
||||
->orWhere('uploader', $user->uid);
|
||||
});
|
||||
}
|
||||
}, function (Builder $query) {
|
||||
// show public textures only to anonymous visitors
|
||||
return $query->where('public', true);
|
||||
})
|
||||
->join('users', 'uid', 'uploader')
|
||||
->select(['tid', 'name', 'type', 'uploader', 'public', 'likes', 'nickname'])
|
||||
->paginate(20);
|
||||
}
|
||||
|
||||
public function show(Filter $filter, Texture $texture)
|
||||
{
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
/** @var FilesystemAdapter */
|
||||
$disk = Storage::disk('textures');
|
||||
|
||||
if ($disk->missing($texture->hash)) {
|
||||
if (option('auto_del_invalid_texture')) {
|
||||
$texture->delete();
|
||||
}
|
||||
abort(404, trans('skinlib.show.deleted'));
|
||||
}
|
||||
|
||||
$badges = [];
|
||||
$uploader = $texture->owner;
|
||||
if ($uploader) {
|
||||
if ($uploader->isAdmin()) {
|
||||
$badges[] = ['text' => 'STAFF', 'color' => 'primary'];
|
||||
}
|
||||
|
||||
$badges = $filter->apply('user_badges', $badges, [$uploader]);
|
||||
}
|
||||
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-8', 'md-4'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
['shared.previewer'],
|
||||
['skinlib.widgets.show.side'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:skinlib.show', $grid);
|
||||
|
||||
return view('skinlib.show')
|
||||
->with('texture', $texture)
|
||||
->with('grid', $grid)
|
||||
->with('extra', [
|
||||
'download' => (bool) option('allow_downloading_texture'),
|
||||
'currentUid' => $user ? $user->uid : 0,
|
||||
'admin' => $user && $user->isAdmin(),
|
||||
'inCloset' => $user && $user->closet()->where('tid', $texture->tid)->count() > 0,
|
||||
'uploaderExists' => (bool) $uploader,
|
||||
'nickname' => optional($uploader)->nickname ?? trans('general.unexistent-user'),
|
||||
'report' => intval(option('reporter_score_modification', 0)),
|
||||
'badges' => $badges,
|
||||
]);
|
||||
}
|
||||
|
||||
public function info(Texture $texture)
|
||||
{
|
||||
return $texture;
|
||||
}
|
||||
|
||||
public function upload(Filter $filter)
|
||||
{
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-6', 'md-6'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
['skinlib.widgets.upload.input'],
|
||||
['shared.previewer'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:skinlib.upload', $grid);
|
||||
|
||||
$converter = new GithubFlavoredMarkdownConverter();
|
||||
|
||||
return view('skinlib.upload')
|
||||
->with('grid', $grid)
|
||||
->with('extra', [
|
||||
'rule' => ($regexp = option('texture_name_regexp'))
|
||||
? trans('skinlib.upload.name-rule-regexp', compact('regexp'))
|
||||
: trans('skinlib.upload.name-rule'),
|
||||
'privacyNotice' => trans(
|
||||
'skinlib.upload.private-score-notice',
|
||||
['score' => option('private_score_per_storage')]
|
||||
),
|
||||
'score' => (int) auth()->user()->score,
|
||||
'scorePublic' => (int) option('score_per_storage'),
|
||||
'scorePrivate' => (int) option('private_score_per_storage'),
|
||||
'closetItemCost' => (int) option('score_per_closet_item'),
|
||||
'award' => (int) option('score_award_per_texture'),
|
||||
'contentPolicy' => $converter->convertToHtml(option_localized('content_policy'))->getContent(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function handleUpload(
|
||||
Request $request,
|
||||
Filter $filter,
|
||||
Dispatcher $dispatcher,
|
||||
) {
|
||||
$file = $request->file('file');
|
||||
if ($file && !$file->isValid()) {
|
||||
Log::error($file->getErrorMessage());
|
||||
}
|
||||
|
||||
$data = $request->validate([
|
||||
'name' => [
|
||||
'required',
|
||||
option('texture_name_regexp') ? 'regex:'.option('texture_name_regexp') : 'string',
|
||||
],
|
||||
'file' => 'required|mimes:png|max:'.option('max_upload_file_size'),
|
||||
'type' => ['required', Rule::in(['steve', 'alex', 'cape'])],
|
||||
'public' => 'required|boolean',
|
||||
]);
|
||||
|
||||
/** @var UploadedFile */
|
||||
$file = $filter->apply('uploaded_texture_file', $file);
|
||||
|
||||
$name = $data['name'];
|
||||
$name = $filter->apply('uploaded_texture_name', $name, [$file]);
|
||||
|
||||
$can = $filter->apply('can_upload_texture', true, [$file, $name]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$type = $data['type'];
|
||||
$size = getimagesize($file);
|
||||
|
||||
$maxWidth = option('max_texture_width', 8192);
|
||||
if ($size[0] > $maxWidth) {
|
||||
$message = trans('skinlib.upload.too-wide', [
|
||||
'width' => $size[0],
|
||||
'maxWidth' => $maxWidth,
|
||||
]);
|
||||
|
||||
return json($message, 1);
|
||||
}
|
||||
|
||||
if ($size[0] % 64 != 0 || $size[1] % 32 != 0) {
|
||||
$message = trans('skinlib.upload.invalid-size', [
|
||||
'type' => $type === 'cape' ? trans('general.cape') : trans('general.skin'),
|
||||
'width' => $size[0],
|
||||
'height' => $size[1],
|
||||
]);
|
||||
|
||||
return json($message, 1);
|
||||
}
|
||||
|
||||
$ratio = $size[0] / $size[1];
|
||||
if ($type == 'steve' || $type == 'alex') {
|
||||
if ($ratio != 2 && $ratio != 1 || $type === 'alex' && $ratio === 2) {
|
||||
$message = trans('skinlib.upload.invalid-size', [
|
||||
'type' => trans('general.skin'),
|
||||
'width' => $size[0],
|
||||
'height' => $size[1],
|
||||
]);
|
||||
|
||||
return json($message, 1);
|
||||
}
|
||||
} elseif ($type == 'cape') {
|
||||
if ($ratio != 2) {
|
||||
$message = trans('skinlib.upload.invalid-size', [
|
||||
'type' => trans('general.cape'),
|
||||
'width' => $size[0],
|
||||
'height' => $size[1],
|
||||
]);
|
||||
|
||||
return json($message, 1);
|
||||
}
|
||||
}
|
||||
|
||||
$image = Image::make($file);
|
||||
$imagick = $image->getCore();
|
||||
$imagick->setOption('png:compression-filter', '0');
|
||||
$imagick->setOption('png:compression-level', '9');
|
||||
$imagick->setOption('png:compression-strategy', '0');
|
||||
$imagick->setOption('png:exclude-chunk', 'all');
|
||||
$imagick->stripImage();
|
||||
$sanitized = $image->encode('png')->getEncoded();
|
||||
|
||||
$hash = hash('sha256', $image->encoded);
|
||||
$hash = $filter->apply('uploaded_texture_hash', $hash, [$image]);
|
||||
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
|
||||
$duplicated = Texture::where('hash', $hash)
|
||||
->where(
|
||||
fn (Builder $query) => $query->where('public', true)->orWhere('uploader', $user->uid)
|
||||
)
|
||||
->first();
|
||||
if ($duplicated) {
|
||||
// if the texture already uploaded was set to private,
|
||||
// then allow to re-upload it.
|
||||
return json(trans('skinlib.upload.repeated'), 2, ['tid' => $duplicated->tid]);
|
||||
}
|
||||
|
||||
$fileSize = ceil(strlen($sanitized) / 1024);
|
||||
$isPublic = is_string($data['public'])
|
||||
? $data['public'] === '1'
|
||||
: $data['public'];
|
||||
$cost = $fileSize * (
|
||||
$isPublic
|
||||
? option('score_per_storage')
|
||||
: option('private_score_per_storage')
|
||||
);
|
||||
$cost += option('score_per_closet_item');
|
||||
$cost -= option('score_award_per_texture', 0);
|
||||
if ($user->score < $cost) {
|
||||
return json(trans('skinlib.upload.lack-score'), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('texture.uploading', [$image, $name, $hash]);
|
||||
|
||||
$texture = new Texture();
|
||||
$texture->name = $name;
|
||||
$texture->type = $type;
|
||||
$texture->hash = $hash;
|
||||
$texture->size = $fileSize;
|
||||
$texture->public = $isPublic;
|
||||
$texture->uploader = $user->uid;
|
||||
$texture->likes = 1;
|
||||
$texture->save();
|
||||
|
||||
/** @var FilesystemAdapter */
|
||||
$disk = Storage::disk('textures');
|
||||
if ($disk->missing($hash)) {
|
||||
$disk->put($hash, $sanitized);
|
||||
}
|
||||
|
||||
$user->score -= $cost;
|
||||
$user->closet()->attach($texture->tid, ['item_name' => $name]);
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('texture.uploaded', [$texture, $image]);
|
||||
|
||||
return json(trans('skinlib.upload.success', ['name' => $name]), 0, [
|
||||
'tid' => $texture->tid,
|
||||
]);
|
||||
}
|
||||
|
||||
public function delete(Texture $texture, Dispatcher $dispatcher, Filter $filter)
|
||||
{
|
||||
$can = $filter->apply('can_delete_texture', true, [$texture]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('texture.deleting', [$texture]);
|
||||
|
||||
// check if file occupied
|
||||
if (Texture::where('hash', $texture->hash)->count() === 1) {
|
||||
Storage::disk('textures')->delete($texture->hash);
|
||||
}
|
||||
|
||||
$texture->delete();
|
||||
|
||||
$dispatcher->dispatch('texture.deleted', [$texture]);
|
||||
|
||||
return json(trans('skinlib.delete.success'), 0);
|
||||
}
|
||||
|
||||
public function privacy(Texture $texture, Dispatcher $dispatcher, Filter $filter)
|
||||
{
|
||||
$can = $filter->apply('can_update_texture_privacy', true, [$texture]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$uploader = $texture->owner;
|
||||
$score_diff = $texture->size
|
||||
* (option('private_score_per_storage') - option('score_per_storage'))
|
||||
* ($texture->public ? -1 : 1);
|
||||
if ($texture->public && option('take_back_scores_after_deletion', true)) {
|
||||
$score_diff -= option('score_award_per_texture', 0);
|
||||
}
|
||||
if ($uploader->score + $score_diff < 0) {
|
||||
return json(trans('skinlib.upload.lack-score'), 1);
|
||||
}
|
||||
|
||||
if (!$texture->public) {
|
||||
$duplicated = Texture::where('hash', $texture->hash)
|
||||
->where('public', true)
|
||||
->first();
|
||||
if ($duplicated) {
|
||||
return json(trans('skinlib.upload.repeated'), 2, ['tid' => $duplicated->tid]);
|
||||
}
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('texture.privacy.updating', [$texture]);
|
||||
|
||||
$uploader->score += $score_diff;
|
||||
$uploader->save();
|
||||
|
||||
$texture->public = !$texture->public;
|
||||
$texture->save();
|
||||
|
||||
$dispatcher->dispatch('texture.privacy.updated', [$texture]);
|
||||
|
||||
$message = trans('skinlib.privacy.success', [
|
||||
'privacy' => (
|
||||
$texture->public
|
||||
? trans('general.public')
|
||||
: trans('general.private')),
|
||||
]);
|
||||
|
||||
return json($message, 0);
|
||||
}
|
||||
|
||||
public function rename(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
Texture $texture,
|
||||
) {
|
||||
$data = $request->validate(['name' => [
|
||||
'required',
|
||||
option('texture_name_regexp')
|
||||
? 'regex:'.option('texture_name_regexp')
|
||||
: 'string',
|
||||
]]);
|
||||
$name = $data['name'];
|
||||
|
||||
$can = $filter->apply('can_update_texture_name', true, [$texture, $name]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('texture.name.updating', [$texture, $name]);
|
||||
|
||||
$old = $texture->replicate();
|
||||
$texture->name = $name;
|
||||
$texture->save();
|
||||
|
||||
$dispatcher->dispatch('texture.name.updated', [$texture, $old]);
|
||||
|
||||
return json(trans('skinlib.rename.success', ['name' => $name]), 0);
|
||||
}
|
||||
|
||||
public function type(
|
||||
Request $request,
|
||||
Dispatcher $dispatcher,
|
||||
Filter $filter,
|
||||
Texture $texture,
|
||||
) {
|
||||
$data = $request->validate([
|
||||
'type' => ['required', Rule::in(['steve', 'alex', 'cape'])],
|
||||
]);
|
||||
$type = $data['type'];
|
||||
|
||||
$can = $filter->apply('can_update_texture_type', true, [$texture, $type]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('texture.type.updating', [$texture, $type]);
|
||||
|
||||
$old = $texture->replicate();
|
||||
$texture->type = $type;
|
||||
$texture->save();
|
||||
|
||||
$dispatcher->dispatch('texture.type.updated', [$texture, $old]);
|
||||
|
||||
return json(trans('skinlib.model.success', ['model' => $type]), 0);
|
||||
}
|
||||
}
|
||||
180
app/Http/Controllers/TextureController.php
Normal file
180
app/Http/Controllers/TextureController.php
Normal file
|
|
@ -0,0 +1,180 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Player;
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use Blessing\Minecraft;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Intervention\Image\Facades\Image;
|
||||
|
||||
class TextureController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('cache.headers:public;max_age='.option('cache_expire_time'))
|
||||
->only(['json']);
|
||||
|
||||
$this->middleware('cache.headers:etag;public;max_age='.option('cache_expire_time'))
|
||||
->only([
|
||||
'preview',
|
||||
'raw',
|
||||
'texture',
|
||||
'avatarByPlayer',
|
||||
'avatarByUser',
|
||||
'avatarByTexture',
|
||||
]);
|
||||
}
|
||||
|
||||
public function json($player)
|
||||
{
|
||||
$player = Player::where('name', $player)->firstOrFail();
|
||||
$isBanned = $player->user->permission === User::BANNED;
|
||||
abort_if($isBanned, 403, trans('general.player-banned'));
|
||||
|
||||
return response()->json($player)->setLastModified($player->last_modified);
|
||||
}
|
||||
|
||||
public function previewByHash(Minecraft $minecraft, Request $request, $hash)
|
||||
{
|
||||
$texture = Texture::where('hash', $hash)->firstOrFail();
|
||||
|
||||
return $this->preview($minecraft, $request, $texture);
|
||||
}
|
||||
|
||||
public function preview(Minecraft $minecraft, Request $request, Texture $texture)
|
||||
{
|
||||
$tid = $texture->tid;
|
||||
$hash = $texture->hash;
|
||||
$usePNG = $request->has('png') || !(imagetypes() & IMG_WEBP);
|
||||
$format = $usePNG ? 'png' : 'webp';
|
||||
|
||||
$disk = Storage::disk('textures');
|
||||
abort_if($disk->missing($hash), 404);
|
||||
|
||||
$height = (int) $request->query('height', 200);
|
||||
$now = Carbon::now();
|
||||
$response = Cache::remember(
|
||||
'preview-t'.$tid."-$format",
|
||||
option('enable_preview_cache') ? $now->addYear() : $now->addMinute(),
|
||||
function () use ($minecraft, $disk, $texture, $hash, $height, $usePNG) {
|
||||
$file = $disk->get($hash);
|
||||
if ($texture->type === 'cape') {
|
||||
$image = $minecraft->renderCape($file, $height);
|
||||
} else {
|
||||
$image = $minecraft->renderSkin($file, 12, $texture->type === 'alex');
|
||||
}
|
||||
|
||||
$lastModified = $disk->lastModified($hash);
|
||||
|
||||
// TODO: refactor
|
||||
return \Intervention\Image\ImageManagerStatic::configure(['driver' => 'gd'])->make($image)
|
||||
->response($usePNG ? 'png' : 'webp', 100)
|
||||
->setLastModified(Carbon::createFromTimestamp($lastModified));
|
||||
}
|
||||
);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function raw($tid)
|
||||
{
|
||||
abort_unless(option('allow_downloading_texture'), 403);
|
||||
|
||||
$texture = Texture::findOrFail($tid);
|
||||
|
||||
return $this->texture($texture->hash);
|
||||
}
|
||||
|
||||
public function texture(string $hash)
|
||||
{
|
||||
$disk = Storage::disk('textures');
|
||||
abort_if($disk->missing($hash), 404);
|
||||
|
||||
$lastModified = Carbon::createFromTimestamp($disk->lastModified($hash));
|
||||
|
||||
return response($disk->get($hash))
|
||||
->withHeaders([
|
||||
'Content-Type' => 'image/png',
|
||||
'Content-Length' => $disk->size($hash),
|
||||
])
|
||||
->setLastModified($lastModified);
|
||||
}
|
||||
|
||||
public function avatarByPlayer(Minecraft $minecraft, Request $request, $name)
|
||||
{
|
||||
$player = Player::where('name', $name)->firstOrFail();
|
||||
|
||||
return $this->avatar($minecraft, $request, $player->skin);
|
||||
}
|
||||
|
||||
public function avatarByUser(Minecraft $minecraft, Request $request, $uid)
|
||||
{
|
||||
$texture = Texture::find(optional(User::find($uid))->avatar);
|
||||
|
||||
return $this->avatar($minecraft, $request, $texture);
|
||||
}
|
||||
|
||||
public function avatarByHash(Minecraft $minecraft, Request $request, $hash)
|
||||
{
|
||||
$texture = Texture::where('hash', $hash)->first();
|
||||
|
||||
return $this->avatar($minecraft, $request, $texture);
|
||||
}
|
||||
|
||||
public function avatarByTexture(Minecraft $minecraft, Request $request, $tid)
|
||||
{
|
||||
$texture = Texture::find($tid);
|
||||
|
||||
return $this->avatar($minecraft, $request, $texture);
|
||||
}
|
||||
|
||||
protected function avatar(Minecraft $minecraft, Request $request, ?Texture $texture)
|
||||
{
|
||||
if (!empty($texture) && $texture->type !== 'steve' && $texture->type !== 'alex') {
|
||||
return abort(422);
|
||||
}
|
||||
|
||||
$size = (int) $request->query('size', 100);
|
||||
$mode = $request->has('3d') ? '3d' : '2d';
|
||||
$usePNG = $request->has('png') || !(imagetypes() & IMG_WEBP);
|
||||
$format = $usePNG ? 'png' : 'webp';
|
||||
|
||||
$disk = Storage::disk('textures');
|
||||
if (is_null($texture) || $disk->missing($texture->hash)) {
|
||||
// TODO: refactor
|
||||
return \Intervention\Image\ImageManagerStatic::configure(['driver' => 'gd'])->make(resource_path("misc/textures/avatar$mode.png"))
|
||||
->resize($size, $size)
|
||||
->response($usePNG ? 'png' : 'webp', 100);
|
||||
}
|
||||
|
||||
$hash = $texture->hash;
|
||||
$now = Carbon::now();
|
||||
$response = Cache::remember(
|
||||
'avatar-'.$mode.'-t'.$texture->tid.'-s'.$size."-$format",
|
||||
option('enable_avatar_cache') ? $now->addYear() : $now->addMinute(),
|
||||
function () use ($minecraft, $disk, $hash, $size, $mode, $usePNG) {
|
||||
$file = $disk->get($hash);
|
||||
if ($mode === '3d') {
|
||||
$image = $minecraft->render3dAvatar($file, 25);
|
||||
} else {
|
||||
$image = $minecraft->render2dAvatar($file, 25);
|
||||
}
|
||||
|
||||
$lastModified = Carbon::createFromTimestamp($disk->lastModified($hash));
|
||||
|
||||
// TODO: refactor
|
||||
return \Intervention\Image\ImageManagerStatic::configure(['driver' => 'gd'])->make($image)
|
||||
->resize($size, $size)
|
||||
->response($usePNG ? 'png' : 'webp', 100)
|
||||
->setLastModified($lastModified);
|
||||
}
|
||||
);
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
70
app/Http/Controllers/TranslationsController.php
Normal file
70
app/Http/Controllers/TranslationsController.php
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\Translations\JavaScript;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Http\Request;
|
||||
use Spatie\TranslationLoader\LanguageLine;
|
||||
|
||||
class TranslationsController extends Controller
|
||||
{
|
||||
public function list()
|
||||
{
|
||||
return LanguageLine::paginate(10);
|
||||
}
|
||||
|
||||
public function create(Request $request, Application $app, JavaScript $js)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'group' => 'required|string',
|
||||
'key' => 'required|string',
|
||||
'text' => 'required|string',
|
||||
]);
|
||||
|
||||
$line = new LanguageLine();
|
||||
$line->group = $data['group'];
|
||||
$line->key = $data['key'];
|
||||
$line->setTranslation($app->getLocale(), $data['text']);
|
||||
$line->save();
|
||||
|
||||
if ($data['group'] === 'front-end') {
|
||||
$js->resetTime($app->getLocale());
|
||||
}
|
||||
$request->session()->put('success', true);
|
||||
|
||||
return redirect('/admin/i18n');
|
||||
}
|
||||
|
||||
public function update(
|
||||
Request $request,
|
||||
Application $app,
|
||||
JavaScript $js,
|
||||
LanguageLine $line,
|
||||
) {
|
||||
$data = $request->validate(['text' => 'required|string']);
|
||||
|
||||
$line->setTranslation($app->getLocale(), $data['text']);
|
||||
$line->save();
|
||||
|
||||
if ($line->group === 'front-end') {
|
||||
$js->resetTime($app->getLocale());
|
||||
}
|
||||
|
||||
return json(trans('admin.i18n.updated'), 0);
|
||||
}
|
||||
|
||||
public function delete(
|
||||
Application $app,
|
||||
JavaScript $js,
|
||||
LanguageLine $line,
|
||||
) {
|
||||
$line->delete();
|
||||
|
||||
if ($line->group === 'front-end') {
|
||||
$js->resetTime($app->getLocale());
|
||||
}
|
||||
|
||||
return json(trans('admin.i18n.deleted'), 0);
|
||||
}
|
||||
}
|
||||
93
app/Http/Controllers/UpdateController.php
Normal file
93
app/Http/Controllers/UpdateController.php
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\Unzip;
|
||||
use Cache;
|
||||
use Composer\CaBundle\CaBundle;
|
||||
use Composer\Semver\Comparator;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
class UpdateController extends Controller
|
||||
{
|
||||
public const SPEC = 2;
|
||||
|
||||
public function showUpdatePage()
|
||||
{
|
||||
$info = $this->getUpdateInfo();
|
||||
$canUpdate = $this->canUpdate(Arr::get($info, 'info'));
|
||||
|
||||
return view('admin.update', [
|
||||
'info' => [
|
||||
'latest' => Arr::get($info, 'info.latest'),
|
||||
'current' => config('app.version'),
|
||||
],
|
||||
'error' => Arr::get($info, 'error', $canUpdate['reason']),
|
||||
'can_update' => $canUpdate['can'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function download(Unzip $unzip, Filesystem $filesystem)
|
||||
{
|
||||
$info = $this->getUpdateInfo();
|
||||
if (!$info['ok'] || !$this->canUpdate($info['info'])['can']) {
|
||||
return json(trans('admin.update.info.up-to-date'), 1);
|
||||
}
|
||||
|
||||
$info = $info['info'];
|
||||
$path = tempnam(sys_get_temp_dir(), 'bs');
|
||||
|
||||
$response = Http::withOptions([
|
||||
'sink' => $path,
|
||||
'verify' => CaBundle::getSystemCaRootBundlePath(),
|
||||
])->get($info['url']);
|
||||
|
||||
if ($response->ok()) {
|
||||
$unzip->extract($path, base_path());
|
||||
|
||||
// Delete options cache. This allows us to update the version.
|
||||
$filesystem->delete(storage_path('options.php'));
|
||||
|
||||
return json(trans('admin.update.complete'), 0);
|
||||
} else {
|
||||
return json(trans('admin.download.errors.download', ['error' => $response->status()]), 1);
|
||||
}
|
||||
}
|
||||
|
||||
protected function getUpdateInfo()
|
||||
{
|
||||
$response = Http::withOptions([
|
||||
'verify' => CaBundle::getSystemCaRootBundlePath(),
|
||||
])->get(config('app.update_source'));
|
||||
|
||||
if ($response->ok()) {
|
||||
$info = $response->json();
|
||||
if (Arr::get($info, 'spec') === self::SPEC) {
|
||||
return ['ok' => true, 'info' => $info];
|
||||
} else {
|
||||
return ['ok' => false, 'error' => trans('admin.update.errors.spec')];
|
||||
}
|
||||
} else {
|
||||
return ['ok' => false, 'error' => 'HTTP status code: '.$response->status()];
|
||||
}
|
||||
}
|
||||
|
||||
protected function canUpdate($info = [])
|
||||
{
|
||||
$php = Arr::get($info, 'php');
|
||||
preg_match('/(\d+\.\d+\.\d+)/', PHP_VERSION, $matches);
|
||||
$version = $matches[1];
|
||||
if (Comparator::lessThan($version, $php)) {
|
||||
return [
|
||||
'can' => false,
|
||||
'reason' => trans('admin.update.errors.php', ['version' => $php]),
|
||||
];
|
||||
}
|
||||
|
||||
$can = Comparator::greaterThan(Arr::get($info, 'latest'), config('app.version'));
|
||||
|
||||
return ['can' => $can, 'reason' => ''];
|
||||
}
|
||||
}
|
||||
360
app/Http/Controllers/UserController.php
Normal file
360
app/Http/Controllers/UserController.php
Normal file
|
|
@ -0,0 +1,360 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Events\UserProfileUpdated;
|
||||
use App\Mail\EmailVerification;
|
||||
use App\Models\Texture;
|
||||
use App\Models\User;
|
||||
use Blessing\Filter;
|
||||
use Blessing\Rejection;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use League\CommonMark\GithubFlavoredMarkdownConverter;
|
||||
|
||||
class UserController extends Controller
|
||||
{
|
||||
public function user()
|
||||
{
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
return $user
|
||||
->makeHidden(['password', 'ip', 'remember_token', 'verification_token']);
|
||||
}
|
||||
|
||||
public function index(Filter $filter)
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
[$min, $max] = explode(',', option('sign_score'));
|
||||
$scoreIntro = trans('user.score-intro.introduction', [
|
||||
'initial_score' => option('user_initial_score'),
|
||||
'score-from' => $min,
|
||||
'score-to' => $max,
|
||||
'return-score' => option('return_score')
|
||||
? trans('user.score-intro.will-return-score')
|
||||
: trans('user.score-intro.no-return-score'),
|
||||
]);
|
||||
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-7', 'md-5'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
[
|
||||
'user.widgets.email-verification',
|
||||
'user.widgets.dashboard.usage',
|
||||
],
|
||||
['user.widgets.dashboard.announcement'],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:user.index', $grid);
|
||||
|
||||
$converter = new GithubFlavoredMarkdownConverter();
|
||||
|
||||
return view('user.index')->with([
|
||||
'score_intro' => $scoreIntro,
|
||||
'rates' => [
|
||||
'storage' => option('score_per_storage'),
|
||||
'player' => option('score_per_player'),
|
||||
'closet' => option('score_per_closet_item'),
|
||||
],
|
||||
'announcement' => $converter->convertToHtml(option_localized('announcement')),
|
||||
'grid' => $grid,
|
||||
'extra' => ['unverified' => option('require_verification') && !$user->verified],
|
||||
]);
|
||||
}
|
||||
|
||||
public function scoreInfo()
|
||||
{
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
|
||||
return response()->json([
|
||||
'user' => [
|
||||
'score' => $user->score,
|
||||
'lastSignAt' => $user->last_sign_at,
|
||||
],
|
||||
'rate' => [
|
||||
'storage' => (int) option('score_per_storage'),
|
||||
'players' => (int) option('score_per_player'),
|
||||
],
|
||||
'usage' => [
|
||||
'players' => $user->players()->count(),
|
||||
'storage' => (int) Texture::where('uploader', $user->uid)->sum('size'),
|
||||
],
|
||||
'signAfterZero' => (bool) option('sign_after_zero'),
|
||||
'signGapTime' => (int) option('sign_gap_time'),
|
||||
]);
|
||||
}
|
||||
|
||||
public function sign(Dispatcher $dispatcher, Filter $filter)
|
||||
{
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
|
||||
$can = $filter->apply('can_sign', true);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 2);
|
||||
}
|
||||
|
||||
$lastSignTime = Carbon::parse($user->last_sign_at);
|
||||
$remainingTime = option('sign_after_zero')
|
||||
? Carbon::now()->diffInSeconds(
|
||||
$lastSignTime <= Carbon::today() ? $lastSignTime : Carbon::tomorrow(),
|
||||
false
|
||||
)
|
||||
: Carbon::now()->diffInSeconds(
|
||||
$lastSignTime->addHours((int) option('sign_gap_time')),
|
||||
false
|
||||
);
|
||||
|
||||
if ($remainingTime <= 0) {
|
||||
[$min, $max] = explode(',', option('sign_score'));
|
||||
$acquiredScore = rand((int) $min, (int) $max);
|
||||
$acquiredScore = $filter->apply('sign_score', $acquiredScore);
|
||||
|
||||
$dispatcher->dispatch('user.sign.before', [$acquiredScore]);
|
||||
|
||||
$user->score += $acquiredScore;
|
||||
$user->last_sign_at = Carbon::now();
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.sign.after', [$acquiredScore]);
|
||||
|
||||
return json(trans('user.sign-success', ['score' => $acquiredScore]), 0, [
|
||||
'score' => $user->score,
|
||||
]);
|
||||
} else {
|
||||
return json('', 1);
|
||||
}
|
||||
}
|
||||
|
||||
public function sendVerificationEmail()
|
||||
{
|
||||
if (!option('require_verification')) {
|
||||
return json(trans('user.verification.disabled'), 1);
|
||||
}
|
||||
|
||||
// Rate limit of 60s
|
||||
$remain = 60 + session('last_mail_time', 0) - time();
|
||||
|
||||
if ($remain > 0) {
|
||||
return json(trans('user.verification.frequent-mail'), 1);
|
||||
}
|
||||
|
||||
$user = Auth::user();
|
||||
|
||||
if ($user->verified) {
|
||||
return json(trans('user.verification.verified'), 1);
|
||||
}
|
||||
|
||||
$url = URL::signedRoute('auth.verify', ['user' => $user], null, false);
|
||||
|
||||
try {
|
||||
Mail::to($user->email)->send(new EmailVerification(url($url)));
|
||||
} catch (\Exception $e) {
|
||||
report($e);
|
||||
|
||||
return json(trans('user.verification.failed', ['msg' => $e->getMessage()]), 2);
|
||||
}
|
||||
|
||||
Session::put('last_mail_time', time());
|
||||
|
||||
return json(trans('user.verification.success'), 0);
|
||||
}
|
||||
|
||||
public function profile(Filter $filter)
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
$grid = [
|
||||
'layout' => [
|
||||
['md-6', 'md-6'],
|
||||
],
|
||||
'widgets' => [
|
||||
[
|
||||
[
|
||||
'user.widgets.profile.avatar',
|
||||
'user.widgets.profile.password',
|
||||
],
|
||||
[
|
||||
'user.widgets.profile.nickname',
|
||||
'user.widgets.profile.email',
|
||||
'user.widgets.profile.delete-account',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
$grid = $filter->apply('grid:user.profile', $grid);
|
||||
|
||||
return view('user.profile')
|
||||
->with('user', $user)
|
||||
->with('grid', $grid)
|
||||
->with('site_name', option_localized('site_name'));
|
||||
}
|
||||
|
||||
public function handleProfile(Request $request, Filter $filter, Dispatcher $dispatcher)
|
||||
{
|
||||
$action = $request->input('action', '');
|
||||
/** @var User */
|
||||
$user = Auth::user();
|
||||
$addition = $request->except('action');
|
||||
|
||||
$can = $filter->apply('user_can_edit_profile', true, [$action, $addition]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('user.profile.updating', [$user, $action, $addition]);
|
||||
|
||||
switch ($action) {
|
||||
case 'nickname':
|
||||
$request->validate(['new_nickname' => 'required']);
|
||||
|
||||
$nickname = $request->input('new_nickname');
|
||||
$user->nickname = $nickname;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.profile.updated', [$user, $action, $addition]);
|
||||
event(new UserProfileUpdated($action, $user));
|
||||
|
||||
return json(trans('user.profile.nickname.success', ['nickname' => $nickname]), 0);
|
||||
|
||||
case 'password':
|
||||
$request->validate([
|
||||
'current_password' => 'required|min:6|max:32',
|
||||
'new_password' => 'required|min:8|max:32',
|
||||
]);
|
||||
|
||||
if (!$user->verifyPassword($request->input('current_password'))) {
|
||||
return json(trans('user.profile.password.wrong-password'), 1);
|
||||
}
|
||||
|
||||
$user->changePassword($request->input('new_password'));
|
||||
$dispatcher->dispatch('user.profile.updated', [$user, $action, $addition]);
|
||||
event(new UserProfileUpdated($action, $user));
|
||||
|
||||
Auth::logout();
|
||||
|
||||
return json(trans('user.profile.password.success'), 0);
|
||||
|
||||
case 'email':
|
||||
$data = $request->validate([
|
||||
'email' => 'required|email',
|
||||
'password' => 'required|min:6|max:32',
|
||||
]);
|
||||
|
||||
if (User::where('email', $data['email'])->count() > 0) {
|
||||
return json(trans('user.profile.email.existed'), 1);
|
||||
}
|
||||
|
||||
if (!$user->verifyPassword($data['password'])) {
|
||||
return json(trans('user.profile.email.wrong-password'), 1);
|
||||
}
|
||||
|
||||
$user->email = $data['email'];
|
||||
$user->verified = false;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.profile.updated', [$user, $action, $addition]);
|
||||
event(new UserProfileUpdated($action, $user));
|
||||
|
||||
Auth::logout();
|
||||
|
||||
return json(trans('user.profile.email.success'), 0);
|
||||
|
||||
case 'delete':
|
||||
$request->validate([
|
||||
'password' => 'required|min:6|max:32',
|
||||
]);
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
return json(trans('user.profile.delete.admin'), 1);
|
||||
}
|
||||
|
||||
if (!$user->verifyPassword($request->input('password'))) {
|
||||
return json(trans('user.profile.delete.wrong-password'), 1);
|
||||
}
|
||||
|
||||
Auth::logout();
|
||||
|
||||
$dispatcher->dispatch('user.deleting', [$user]);
|
||||
|
||||
$user->delete();
|
||||
$dispatcher->dispatch('user.deleted', [$user]);
|
||||
session()->flush();
|
||||
|
||||
return json(trans('user.profile.delete.success'), 0);
|
||||
|
||||
default:
|
||||
return json(trans('general.illegal-parameters'), 1);
|
||||
}
|
||||
}
|
||||
|
||||
public function setAvatar(Request $request, Filter $filter, Dispatcher $dispatcher)
|
||||
{
|
||||
$request->validate(['tid' => 'required|integer']);
|
||||
$tid = $request->input('tid');
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
|
||||
$can = $filter->apply('user_can_update_avatar', true, [$user, $tid]);
|
||||
if ($can instanceof Rejection) {
|
||||
return json($can->getReason(), 1);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('user.avatar.updating', [$user, $tid]);
|
||||
|
||||
if ($tid == 0) {
|
||||
$user->avatar = 0;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.avatar.updated', [$user, $tid]);
|
||||
|
||||
return json(trans('user.profile.avatar.success'), 0);
|
||||
}
|
||||
|
||||
$texture = Texture::find($tid);
|
||||
if ($texture) {
|
||||
if ($texture->type == 'cape') {
|
||||
return json(trans('user.profile.avatar.wrong-type'), 1);
|
||||
}
|
||||
|
||||
if (
|
||||
!$texture->public
|
||||
&& $user->uid !== $texture->uploader
|
||||
&& !$user->isAdmin()
|
||||
) {
|
||||
return json(trans('skinlib.show.private'), 1);
|
||||
}
|
||||
|
||||
$user->avatar = $tid;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.avatar.updated', [$user, $tid]);
|
||||
|
||||
return json(trans('user.profile.avatar.success'), 0);
|
||||
} else {
|
||||
return json(trans('skinlib.non-existent'), 1);
|
||||
}
|
||||
}
|
||||
|
||||
public function toggleDarkMode()
|
||||
{
|
||||
/** @var User */
|
||||
$user = auth()->user();
|
||||
$user->is_dark_mode = !$user->is_dark_mode;
|
||||
$user->save();
|
||||
|
||||
return response()->noContent();
|
||||
}
|
||||
}
|
||||
174
app/Http/Controllers/UsersManagementController.php
Normal file
174
app/Http/Controllers/UsersManagementController.php
Normal file
|
|
@ -0,0 +1,174 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class UsersManagementController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware(function (Request $request, $next) {
|
||||
/** @var User */
|
||||
$targetUser = $request->route('user');
|
||||
/** @var User */
|
||||
$authUser = $request->user();
|
||||
|
||||
if (
|
||||
$targetUser->isNot($authUser)
|
||||
&& $targetUser->permission >= $authUser->permission
|
||||
) {
|
||||
return json(trans('admin.users.operations.no-permission'), 1)
|
||||
->setStatusCode(403);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
})->except(['list']);
|
||||
}
|
||||
|
||||
public function list(Request $request)
|
||||
{
|
||||
$q = $request->input('q');
|
||||
|
||||
return User::usingSearchString($q)->paginate(10);
|
||||
}
|
||||
|
||||
public function email(User $user, Request $request, Dispatcher $dispatcher)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'email' => [
|
||||
'required', 'email', Rule::unique('users')->ignore($user),
|
||||
],
|
||||
]);
|
||||
$email = $data['email'];
|
||||
|
||||
$dispatcher->dispatch('user.email.updating', [$user, $email]);
|
||||
|
||||
$old = $user->replicate();
|
||||
$user->email = $email;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.email.updated', [$user, $old]);
|
||||
|
||||
return json(trans('admin.users.operations.email.success'), 0);
|
||||
}
|
||||
|
||||
public function verification(User $user, Dispatcher $dispatcher)
|
||||
{
|
||||
$dispatcher->dispatch('user.verification.updating', [$user]);
|
||||
|
||||
$user->verified = !$user->verified;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.verification.updated', [$user]);
|
||||
|
||||
return json(trans('admin.users.operations.verification.success'), 0);
|
||||
}
|
||||
|
||||
public function nickname(User $user, Request $request, Dispatcher $dispatcher)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'nickname' => 'required|string',
|
||||
]);
|
||||
$nickname = $data['nickname'];
|
||||
|
||||
$dispatcher->dispatch('user.nickname.updating', [$user, $nickname]);
|
||||
|
||||
$old = $user->replicate();
|
||||
$user->nickname = $nickname;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.nickname.updated', [$user, $old]);
|
||||
|
||||
return json(trans('admin.users.operations.nickname.success', [
|
||||
'new' => $request->input('nickname'),
|
||||
]), 0);
|
||||
}
|
||||
|
||||
public function password(User $user, Request $request, Dispatcher $dispatcher)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'password' => 'required|string|min:8|max:16',
|
||||
]);
|
||||
$password = $data['password'];
|
||||
|
||||
$dispatcher->dispatch('user.password.updating', [$user, $password]);
|
||||
|
||||
$user->changePassword($password);
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.password.updated', [$user]);
|
||||
|
||||
return json(trans('admin.users.operations.password.success'), 0);
|
||||
}
|
||||
|
||||
public function score(User $user, Request $request, Dispatcher $dispatcher)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'score' => 'required|integer',
|
||||
]);
|
||||
$score = (int) $data['score'];
|
||||
|
||||
$dispatcher->dispatch('user.score.updating', [$user, $score]);
|
||||
|
||||
$old = $user->replicate();
|
||||
$user->score = $score;
|
||||
$user->save();
|
||||
|
||||
$dispatcher->dispatch('user.score.updated', [$user, $old]);
|
||||
|
||||
return json(trans('admin.users.operations.score.success'), 0);
|
||||
}
|
||||
|
||||
public function permission(User $user, Request $request, Dispatcher $dispatcher)
|
||||
{
|
||||
$data = $request->validate([
|
||||
'permission' => [
|
||||
'required',
|
||||
Rule::in([User::BANNED, User::NORMAL, User::ADMIN]),
|
||||
],
|
||||
]);
|
||||
$permission = (int) $data['permission'];
|
||||
|
||||
if (
|
||||
$permission === User::ADMIN
|
||||
&& $request->user()->permission < User::SUPER_ADMIN
|
||||
) {
|
||||
return json(trans('admin.users.operations.no-permission'), 1)
|
||||
->setStatusCode(403);
|
||||
}
|
||||
|
||||
if ($user->is($request->user())) {
|
||||
return json(trans('admin.users.operations.no-permission'), 1)
|
||||
->setStatusCode(403);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('user.permission.updating', [$user, $permission]);
|
||||
|
||||
$old = $user->replicate();
|
||||
$user->permission = $permission;
|
||||
$user->save();
|
||||
|
||||
if ($permission === User::BANNED) {
|
||||
$dispatcher->dispatch('user.banned', [$user]);
|
||||
}
|
||||
|
||||
$dispatcher->dispatch('user.permission.updated', [$user, $old]);
|
||||
|
||||
return json(trans('admin.users.operations.permission'), 0);
|
||||
}
|
||||
|
||||
public function delete(User $user, Dispatcher $dispatcher)
|
||||
{
|
||||
$dispatcher->dispatch('user.deleting', [$user]);
|
||||
|
||||
$user->delete();
|
||||
|
||||
$dispatcher->dispatch('user.deleted', [$user]);
|
||||
|
||||
return json(trans('admin.users.operations.delete.success'), 0);
|
||||
}
|
||||
}
|
||||
71
app/Http/Kernel.php
Normal file
71
app/Http/Kernel.php
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http;
|
||||
|
||||
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
{
|
||||
/**
|
||||
* The application's global HTTP middleware stack.
|
||||
*
|
||||
* These middleware are run during every request to your application.
|
||||
*
|
||||
* @var array<int, class-string|string>
|
||||
*/
|
||||
protected $middleware = [
|
||||
\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
||||
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
|
||||
Middleware\ConvertEmptyStringsToNull::class,
|
||||
Middleware\DetectLanguagePrefer::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* The application's route middleware groups.
|
||||
*
|
||||
* @var array<string, array<int, class-string|string>>
|
||||
*/
|
||||
protected $middlewareGroups = [
|
||||
'web' => [
|
||||
\Illuminate\Cookie\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class,
|
||||
Middleware\EnforceEverGreen::class,
|
||||
Middleware\RedirectToSetup::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
'api' => [
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
'authorize' => [
|
||||
'auth:web',
|
||||
Middleware\RejectBannedUser::class,
|
||||
Middleware\EnsureEmailFilled::class,
|
||||
Middleware\FireUserAuthenticated::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* The application's middleware aliases.
|
||||
*
|
||||
* Aliases may be used instead of class names to conveniently assign middleware to routes and groups.
|
||||
*
|
||||
* @var array<string, class-string|string>
|
||||
*/
|
||||
protected $middlewareAliases = [
|
||||
'auth' => Middleware\Authenticate::class,
|
||||
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
||||
'guest' => Middleware\RedirectIfAuthenticated::class,
|
||||
'role' => Middleware\CheckRole::class,
|
||||
'setup' => Middleware\CheckInstallation::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'verified' => Middleware\CheckUserVerified::class,
|
||||
'scope' => \Laravel\Passport\Http\Middleware\CheckForAnyScope::class,
|
||||
'scopes' => \Laravel\Passport\Http\Middleware\CheckScopes::class,
|
||||
];
|
||||
}
|
||||
20
app/Http/Middleware/Authenticate.php
Normal file
20
app/Http/Middleware/Authenticate.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Auth\Middleware\Authenticate as Middleware;
|
||||
|
||||
class Authenticate extends Middleware
|
||||
{
|
||||
protected function redirectTo($request)
|
||||
{
|
||||
if (!$request->expectsJson()) {
|
||||
session([
|
||||
'last_requested_path' => $request->fullUrl(),
|
||||
'msg' => trans('auth.check.anonymous'),
|
||||
]);
|
||||
|
||||
return route('auth.login');
|
||||
}
|
||||
}
|
||||
}
|
||||
18
app/Http/Middleware/CheckInstallation.php
Normal file
18
app/Http/Middleware/CheckInstallation.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
|
||||
class CheckInstallation
|
||||
{
|
||||
public function handle($request, \Closure $next)
|
||||
{
|
||||
$hasLock = resolve(Filesystem::class)->exists(storage_path('install.lock'));
|
||||
if ($hasLock) {
|
||||
return response()->view('setup.locked');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
25
app/Http/Middleware/CheckRole.php
Normal file
25
app/Http/Middleware/CheckRole.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Models\User;
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CheckRole
|
||||
{
|
||||
protected $roles = [
|
||||
'banned' => User::BANNED,
|
||||
'normal' => User::NORMAL,
|
||||
'admin' => User::ADMIN,
|
||||
'super-admin' => User::SUPER_ADMIN,
|
||||
];
|
||||
|
||||
public function handle(Request $request, Closure $next, $role)
|
||||
{
|
||||
$permission = $request->user()->permission;
|
||||
abort_if($permission < $this->roles[$role], 403);
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
13
app/Http/Middleware/CheckUserVerified.php
Normal file
13
app/Http/Middleware/CheckUserVerified.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
class CheckUserVerified
|
||||
{
|
||||
public function handle($request, \Closure $next)
|
||||
{
|
||||
abort_if(option('require_verification') && !auth()->user()->verified, 403, trans('auth.check.verified'));
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
25
app/Http/Middleware/ConvertEmptyStringsToNull.php
Normal file
25
app/Http/Middleware/ConvertEmptyStringsToNull.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull as Converter;
|
||||
|
||||
class ConvertEmptyStringsToNull extends Converter
|
||||
{
|
||||
protected $excepts = [
|
||||
'admin/options',
|
||||
'admin/score',
|
||||
'admin/resource',
|
||||
'admin/customize',
|
||||
];
|
||||
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (in_array($request->path(), $this->excepts)) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
return parent::handle($request, $next);
|
||||
}
|
||||
}
|
||||
37
app/Http/Middleware/DetectLanguagePrefer.php
Normal file
37
app/Http/Middleware/DetectLanguagePrefer.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class DetectLanguagePrefer
|
||||
{
|
||||
public function handle(Request $request, \Closure $next)
|
||||
{
|
||||
$locale = $request->input('lang')
|
||||
?? $request->cookie('locale')
|
||||
?? $request->getPreferredLanguage();
|
||||
if (
|
||||
($info = Arr::get(config('locales'), $locale))
|
||||
&& ($alias = Arr::get($info, 'alias'))
|
||||
) {
|
||||
$locale = $alias;
|
||||
}
|
||||
$locale ?? app()->getLocale();
|
||||
if (!Arr::has(config('locales'), $locale)) {
|
||||
$locale = config('app.fallback_locale');
|
||||
}
|
||||
|
||||
app()->setLocale($locale);
|
||||
|
||||
/** @var Response */
|
||||
$response = $next($request);
|
||||
if (!in_array('api', optional($request->route())->middleware() ?? [])) {
|
||||
$response->cookie('locale', $locale, 120);
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
25
app/Http/Middleware/EnforceEverGreen.php
Normal file
25
app/Http/Middleware/EnforceEverGreen.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Exceptions\PrettyPageException;
|
||||
use Closure;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class EnforceEverGreen
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$userAgent = $request->userAgent();
|
||||
|
||||
preg_match('/Chrome\/(\d+)/', $userAgent, $matches);
|
||||
$isOldChrome = Arr::has($matches, 1) && $matches[1] < 55;
|
||||
|
||||
if ($isOldChrome || Str::contains($userAgent, ['Trident', 'MSIE'])) {
|
||||
throw new PrettyPageException(trans('errors.http.ie'));
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
19
app/Http/Middleware/EnsureEmailFilled.php
Normal file
19
app/Http/Middleware/EnsureEmailFilled.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
|
||||
class EnsureEmailFilled
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if ($request->user()->email != '' && $request->is('auth/bind')) {
|
||||
return redirect('/user');
|
||||
} elseif ($request->user()->email == '' && !$request->is('auth/bind')) {
|
||||
return redirect('/auth/bind');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
17
app/Http/Middleware/FireUserAuthenticated.php
Normal file
17
app/Http/Middleware/FireUserAuthenticated.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
|
||||
class FireUserAuthenticated
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
event(new \App\Events\UserAuthenticated($request->user()));
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
13
app/Http/Middleware/RedirectIfAuthenticated.php
Normal file
13
app/Http/Middleware/RedirectIfAuthenticated.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Auth;
|
||||
|
||||
class RedirectIfAuthenticated
|
||||
{
|
||||
public function handle($request, \Closure $next)
|
||||
{
|
||||
return Auth::check() ? redirect('user') : $next($request);
|
||||
}
|
||||
}
|
||||
33
app/Http/Middleware/RedirectToSetup.php
Normal file
33
app/Http/Middleware/RedirectToSetup.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Composer\Semver\Comparator;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
class RedirectToSetup
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$version = config('app.version');
|
||||
$hasLock = resolve(Filesystem::class)->exists(storage_path('install.lock'));
|
||||
|
||||
// If lock isn't existed, it means that BS isn't installed.
|
||||
// Database is unavailable at this time, so we should disable the loader.
|
||||
if (!$hasLock) {
|
||||
config(['translation-loader.translation_loaders' => []]);
|
||||
}
|
||||
|
||||
if ($hasLock && !$request->is('setup*') && Comparator::greaterThan($version, option('version', $version))) {
|
||||
Artisan::call('update');
|
||||
}
|
||||
|
||||
if ($hasLock || $request->is('setup*')) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
return redirect('/setup');
|
||||
}
|
||||
}
|
||||
29
app/Http/Middleware/RejectBannedUser.php
Normal file
29
app/Http/Middleware/RejectBannedUser.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RejectBannedUser
|
||||
{
|
||||
public function handle(Request $request, \Closure $next)
|
||||
{
|
||||
if ($request->route()->getName() === 'auth.logout') {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
if ($request->user()->permission == User::BANNED) {
|
||||
if ($request->expectsJson()) {
|
||||
$response = json(trans('auth.check.banned'), -1);
|
||||
$response->setStatusCode(403);
|
||||
|
||||
return $response;
|
||||
} else {
|
||||
abort(403, trans('auth.check.banned'));
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user