Compare commits

...

723 commits

Author SHA1 Message Date
Eric Wang
bdc9c413e2
Merge pull request #119 from AnushK-Fro/patch-3
Updates the code to start the server upon unsuspension
2024-11-06 12:06:20 -05:00
Anush
2b16841702
Updates the code to start the server upon unsuspension 2024-11-06 10:30:38 -05:00
Eric Wang
1d6390ddd6
Merge pull request #117 from Adekabang/patch-1
Delete panel.tar.gz
2024-10-17 13:47:56 -04:00
Mohammad Raska
3eb3c7e746
Delete panel.tar.gz 2024-10-17 13:59:23 +07:00
Eric Wang
b47adacb95 Fix release.yml not adding example env 2024-10-14 18:30:27 -04:00
Eric Wang
bc6f9e4c42 Fix release.yml not adding example env 2024-10-14 18:24:29 -04:00
Eric Wang
3643a717e9 Fix release.yml not adding example env 2024-10-14 18:22:02 -04:00
Eric Wang
a9214aa820 Fix release.yml not adding example env 2024-10-14 18:17:00 -04:00
Eric Wang
561aca99df Fix release.yml not adding example env 2024-10-14 18:12:58 -04:00
Eric Wang
2841c09510 Fix release.yml not adding example env 2024-10-14 13:31:03 -04:00
Eric Wang
bdaf07a0dc Fix release.yml not adding example env 2024-10-14 13:28:54 -04:00
Eric Wang
b3b96ee361 Fix release.yml not adding example env 2024-10-14 13:27:48 -04:00
Eric Wang
4558b31385 Fix release.yml not adding example env 2024-10-14 13:22:35 -04:00
Eric Wang
98bf2ec95c Fix release.yml not adding example env 2024-10-14 12:59:02 -04:00
Eric Wang
7957141128 Fix release.yml not adding example env 2024-10-14 12:51:08 -04:00
Eric Wang
7380d50fc2 Fix release.yml not adding example env 2024-10-14 12:41:56 -04:00
Eric Wang
c780ca0218 Fix no compression backup failures 2024-10-12 17:54:14 -04:00
Eric Wang
63ee5f2a2b Fix CHANGELOG.md 2024-10-12 17:07:23 -04:00
Eric Wang
75f81a9b4e Add v4.2.3 CHANGELOG.md 2024-10-12 17:00:17 -04:00
Eric Wang
f1fda8ba0a Add PHPUnit Cache to gitignore 2024-10-12 16:56:46 -04:00
Eric Wang
1bf95fa2bd Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 16:56:35 -04:00
Eric Wang
a14d754e79 Prevent unnecessary override of VM settings 2024-10-12 16:56:24 -04:00
Eric Wang
a19a5d5907 Add types to ProxmoxConfigRepository.php 2024-10-12 16:55:40 -04:00
Eric Wang
a368951705 Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 13:10:54 -04:00
Eric Wang
93b641be86 Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 13:04:18 -04:00
Eric Wang
80672e249e Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 13:00:56 -04:00
Eric Wang
8fe890a5e1 Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 12:54:38 -04:00
Eric Wang
27e9e821b6 Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 12:47:09 -04:00
Eric Wang
31f93264a5 Fix ServerRateLimitsSyncServiceTest.php test 2024-10-12 12:47:06 -04:00
Eric Wang
290b1c34ca
Merge pull request #114 from AnushK-Fro/patch-2
Update NIC Code
2024-10-12 12:33:11 -04:00
Anush
db40a05daf
This piece of code used to always update the NIC regardless if it needs updating. This caused the logs to be constantly spammed on Proxmox hypervisors with NICs being updated, even though no changes were actually being made. 2024-09-27 01:43:19 -04:00
Eric Wang
504db753dc
Update license section 2024-04-09 10:46:25 -05:00
Eric Wang
dfeefc0907 Fix v4.2.3-rc.2 to v4.2.2-rc.2 2024-03-15 11:23:58 -05:00
Eric Wang
31e2ef82d9 Merge remote-tracking branch 'origin/develop' into develop 2024-03-15 11:19:37 -05:00
Eric Wang
903ae10e0d v4.2.3-rc.2 2024-03-15 11:19:29 -05:00
Eric Wang
1893eca377
Update LICENSE.md 2024-03-13 00:05:39 -05:00
Eric Wang
d526ef4b86 Add v4.2.3-rc.1 working CHANGELOG.md 2024-03-07 21:14:46 -06:00
Eric Wang
68440a78ec Fix US char validation localization 2024-03-07 21:14:14 -06:00
Eric Wang
0e674742f2 Merge remote-tracking branch 'origin/develop' into develop 2024-03-07 21:11:44 -06:00
Eric Wang
00d903ec1b Fix US Keyboard Characters validation 2024-03-07 21:11:31 -06:00
Eric Wang
52e9c05963 Fix US Keyboard Characters validation 2024-03-07 21:09:27 -06:00
Eric Wang
93ff72584a
Update LICENSE.md 2024-03-06 22:54:27 -06:00
Eric Wang
e3fec37359 Update LICENSE.md 2024-03-04 19:07:58 -06:00
Eric Wang
35bc7da3f0 Add v4.2.2-rc.1 CHANGELOG.md 2024-03-04 16:01:53 -06:00
Eric Wang
7f44101875 Shorten exception messages 2024-03-04 15:57:25 -06:00
Eric Wang
1b1e62cf99 Scope VMID check to a node 2024-03-04 15:57:15 -06:00
Eric Wang
874857e577 Properly parse file query errors 2024-03-04 15:41:06 -06:00
Eric Wang
5a1aff0f48 Add display exceptions 2024-03-04 15:14:12 -06:00
Eric Wang
ab24c2b177 Generate unique VMID 2024-03-04 15:13:57 -06:00
Eric Wang
ca8bdb5ebb Remove snapshots dead code 2024-03-04 15:07:31 -06:00
Eric Wang
570dabccb4 Add ISO tests 2024-03-04 14:53:22 -06:00
Eric Wang
83314c9888 Add explicit types 2024-03-04 14:32:06 -06:00
Eric Wang
fe78aa8d85 Remove unnecessary policy param 2024-03-04 14:31:51 -06:00
Eric Wang
18605091c9 Test unauthorized access to backups 2024-03-04 14:31:32 -06:00
Eric Wang
c802a8cb84 Scope route bindings 2024-03-04 14:31:03 -06:00
Eric Wang
620e4b4c6a Format ServerControllerTest.php 2024-03-04 14:29:05 -06:00
Eric Wang
73f36839c0 Remove snapshots dead code 2024-03-04 14:28:38 -06:00
Eric Wang
137f94a89c Remove stray console.log 2024-02-16 09:42:25 -06:00
Eric Wang
727f1449b8 Add tests for AddressController 2024-02-16 09:41:59 -06:00
Eric Wang
cb737161d9 Allow mass fill and disable timestamps 2024-02-16 09:41:42 -06:00
Eric Wang
85cf136cb1 Remove unnecessary docs from ISOFactory.php 2024-02-16 09:41:21 -06:00
Eric Wang
d544501c12 Delete dead AddressController routes 2024-02-16 09:41:05 -06:00
Eric Wang
110b623383 Delete dead AddressController routes 2024-02-16 09:40:56 -06:00
Eric Wang
20cc82e90a Create factory for AddressPool.php 2024-02-16 09:40:40 -06:00
Eric Wang
7c678fae4d Create factory for Address.php 2024-02-16 09:40:22 -06:00
Eric Wang
cec4d437ff Delete dead code from AddressController.php 2024-02-16 09:40:07 -06:00
Eric Wang
4ec316c67c Add more tests 2024-02-15 23:51:29 -06:00
Eric Wang
970278ff2c Refactor tests 2024-02-15 16:16:15 -06:00
Eric Wang
24027698b4 Refactor tests 2024-02-15 16:15:16 -06:00
Eric Wang
52593e47c7 Remove dangling Coterm properties 2024-02-15 16:15:09 -06:00
Eric Wang
c648328500 Fix redis compose config 2024-02-04 19:17:11 -06:00
Eric Wang
e417e60298 Fix buggy nodes lookup in NodesMultiSelect 2024-02-04 19:07:14 -06:00
Eric Wang
4e9ecc5692 Update compose files to support special chars 2024-02-01 12:46:24 -06:00
Eric Wang
1bf116ce43 Add v4.2.1-rc.1 CHANGELOG.md 2024-01-30 10:19:49 -06:00
Eric Wang
486d019e9a Potential fix for disk resize timeout? 2024-01-30 10:17:37 -06:00
Eric Wang
272f6c01fa Revert "Update ISSUE_TEMPLATE log utility"
This reverts commit 1cca349672.
2024-01-30 10:17:22 -06:00
Eric Wang
1cca349672 Update ISSUE_TEMPLATE log utility 2024-01-30 00:42:41 -06:00
Eric Wang
9822a3aea1 Update ISSUE_TEMPLATE log utility 2024-01-30 00:39:41 -06:00
Eric Wang
0229253b3b Remove test changelog 2024-01-30 00:01:05 -06:00
Eric Wang
d3c176b22d Fix workflow release.yml 2024-01-29 23:58:54 -06:00
Eric Wang
44ff4766cf Fix workflow release.yml 2024-01-29 23:55:18 -06:00
Eric Wang
3f38588e4e Update action checkout version 2024-01-29 23:50:25 -06:00
Eric Wang
4a238c9a31 Add test changelog 2024-01-29 23:48:53 -06:00
Eric Wang
1ccf39846f Update release workflow 2024-01-29 23:45:02 -06:00
Eric Wang
9b2f7ee7b4 Add verify tls to CHANGELOG.md 2024-01-28 11:44:49 -06:00
Eric Wang
855e86c02f Finish rest of verify tls implementation 2024-01-28 11:40:26 -06:00
Eric Wang
18929d9397 Verify TLS based on node settings 2024-01-28 11:36:06 -06:00
Eric Wang
92405f8759 Add verify_tls to REST API 2024-01-28 11:25:05 -06:00
Eric Wang
73caf89769 Remove unused Node store 2024-01-28 11:24:11 -06:00
Eric Wang
44b267d36c Clean up node requests 2024-01-28 11:15:37 -06:00
Eric Wang
0fc821a22b Remove unused CotermTokenCreationService from NodesController 2024-01-28 11:14:56 -06:00
Eric Wang
378f4fb85b Add TLS verification boolean to nodes table 2024-01-28 11:13:42 -06:00
Eric Wang
d1a14f699c Remove Coterm methods from NodeController.php 2024-01-28 11:13:07 -06:00
Eric Wang
6f9a92fdc7 Remove unused UpdateCotermRequest.php 2024-01-28 11:12:48 -06:00
Eric Wang
b81a251ef5 Add copy server UUID to ServersTable.tsx 2024-01-28 11:12:02 -06:00
Eric Wang
564e334e6f Refactor Coterm 2024-01-28 11:11:40 -06:00
Eric Wang
07394ce868 Add v4.1.0-beta CHANGELOG.md 2024-01-25 21:55:17 -06:00
Eric Wang
5fa841dd02 Update healthcheck command 2024-01-25 21:46:22 -06:00
Eric Wang
84c82b5553 Add health checks & remove root pass requirement 2024-01-25 21:25:49 -06:00
Eric Wang
82159777cb Remove root pass var & make redis pass var empty 2024-01-25 21:25:20 -06:00
Eric Wang
1683a966e9 Clean up StoreServerRequest a little 2024-01-25 21:24:31 -06:00
Eric Wang
e3836eac1d
Update acknowledgements 2024-01-22 16:26:25 -06:00
Eric Wang
179df29922
Add v4 release banner 2024-01-22 16:19:28 -06:00
Eric Wang
eeed061029 Add v4.0.0-beta changelog 2024-01-22 16:02:21 -06:00
Eric Wang
8f67cf6bb6 Include bug tag with bug reports 2024-01-13 15:45:03 -06:00
Eric Wang
62c5193d7d Fix wrong MiB to bytes bandwidth limit conversion 2024-01-13 15:39:27 -06:00
Eric Wang
a6415d6772 add v4.0.0-rc.5 changelog 2024-01-05 09:43:14 -06:00
Eric Wang
e310c61b39 Fix missing SSO endpoint 2024-01-05 09:16:23 -06:00
Eric Wang
6aee64bb70 add v4.0.0-rc.4 changelog 2024-01-01 21:44:55 -06:00
Eric Wang
120874658c Fix types on Eloquent models 2024-01-01 21:44:45 -06:00
Eric Wang
54423911ab Re-organize services 2024-01-01 21:17:32 -06:00
Eric Wang
77573054cc Prune unused composer packages 2024-01-01 21:17:03 -06:00
Eric Wang
3b352eeded Fix IPv6 importing 2024-01-01 21:16:51 -06:00
Eric Wang
d5ad9e6e4d Add network helpers 2024-01-01 19:46:48 -06:00
Eric Wang
0ffdf3cfeb Add ext requirements & autoload helpers 2024-01-01 19:46:39 -06:00
Eric Wang
8d8d63c179 Enforce lowercase IPs, mac addresses, and gateways 2024-01-01 19:43:12 -06:00
Eric Wang
bd72ea276e add types to Address model 2024-01-01 19:39:34 -06:00
Eric Wang
fdad850fb4 format array of filters in AddressController 2024-01-01 19:39:15 -06:00
Eric Wang
84388b0a18 tidy up & add types to models 2024-01-01 19:38:39 -06:00
Eric Wang
43bb0b8d0b change source for php extension installer 2024-01-01 19:36:50 -06:00
Eric Wang
888c20923c add v4.0.0-rc.3 changelog 2023-12-22 11:01:36 -06:00
Eric Wang
3f42c012c1 filter servers by addressPoolId for IPAM 2023-12-22 10:59:36 -06:00
Eric Wang
12f0d6195b add types to query filters 2023-12-22 10:58:27 -06:00
Eric Wang
8942fee6f2 Refresh server relation when updating address 2023-12-22 10:57:32 -06:00
Eric Wang
2c16256861 Rename filters 2023-12-21 11:20:22 -06:00
Eric Wang
9aa2b9e781 fix attaching/detaching addresses to servers 2023-12-21 10:35:12 -06:00
Eric Wang
f91e3a93f4 Clean up jobs code 2023-12-21 10:34:07 -06:00
Eric Wang
52190c0d91 add v4.0.0-rc.2 2023-12-15 12:03:58 -06:00
Eric Wang
34c4eb7f40 sync changes with v3 branch 2023-12-15 12:00:57 -06:00
Eric Wang
5dbf0d1308 clone VM's to target storage 2023-12-15 11:52:04 -06:00
Eric Wang
e93b8f471b
Create FUNDING.yml 2023-12-12 19:22:58 -06:00
Eric Wang
32419a88a1 increased Coterm session token lifetime 2023-12-12 18:42:48 -06:00
Eric Wang
613870193b removed api request throttling 2023-12-12 18:41:54 -06:00
Eric Wang
c2b9df8160 update docs url 2023-12-12 18:41:36 -06:00
Eric Wang
c76f36eaee remove rate limiter for api routes 2023-12-08 20:33:41 -06:00
Eric Wang
a870a4bab8 add v4 rc.1 CHANGELOG.md 2023-12-05 14:23:57 -06:00
Eric Wang
d785179e1d update application API routes 2023-12-05 14:11:53 -06:00
Eric Wang
3e627efdb0 add copy ID to clipboard for nodes & templates 2023-12-05 14:07:02 -06:00
Eric Wang
2e1156f242 clean http api 2023-12-05 14:07:02 -06:00
Eric Wang
740b2ceed1
Remove Pterodactyl hyperlink 2023-12-04 15:12:51 -06:00
Eric Wang
fcd1d01218 rename xterm functions to xtermjs 2023-12-04 13:03:06 -06:00
Eric Wang
bafb77b206 get Coterm working again! 2023-11-30 22:59:23 -06:00
Eric Wang
d5908d2a81 Remove AllowedNullableFilter 2023-11-30 21:06:03 -06:00
Eric Wang
d61ea6d5ae Rename base API controller 2023-11-29 19:28:44 -06:00
Eric Wang
95491e39dc Add backend support for Coterm 2023-11-29 19:27:05 -06:00
Eric Wang
8d14047c05 Clean up ApplicationApiController.php 2023-11-29 18:52:02 -06:00
Eric Wang
764aa9ed80 Remove Axios timeout argument 2023-11-29 18:51:47 -06:00
Eric Wang
1eccc2b72b Export new Horizon frontend assets 2023-11-28 15:34:29 -06:00
Eric Wang
1121bf36f1 Update Node.js and clean up Docker files 2023-11-28 15:34:12 -06:00
Eric Wang
e72e07d1d8 Allow admins to view/modify backups of other users' servers 2023-11-28 15:30:38 -06:00
Eric Wang
42c9fd5e7f Test if admins can access/modify backups of other users' servers 2023-11-28 15:30:24 -06:00
Eric Wang
9d5aca7a92 Refactor database factories 2023-11-28 15:29:42 -06:00
Eric Wang
cbe2144ec7 Update Laravel framework 2023-11-28 15:29:24 -06:00
Eric Wang
7852d40c27 fix server settings tests 2023-11-27 21:14:29 -06:00
Eric Wang
9d179b5cd4 create skeleton for implementing Coterm 2023-11-27 21:06:54 -06:00
Eric Wang
4376991426 update package.json 2023-11-27 21:06:37 -06:00
Eric Wang
73260a748c purge unused enums 2023-11-27 21:06:28 -06:00
Eric Wang
fae34af2b3 rename getNodesAllocatedTo to getAttachedNodes for address pools 2023-11-27 21:03:26 -06:00
Eric Wang
375e338309 use policy authorization for client-side server endpoints 2023-11-27 20:46:08 -06:00
Eric Wang
948c659681 refactor server setting route/function names to be more expressive/natural-sounding 2023-11-27 20:44:40 -06:00
Eric Wang
854dbca8e5 export IDE code formatting rules for IntelliJ 2023-11-27 20:41:32 -06:00
Eric Wang
8e687338be Merge remote-tracking branch 'origin/develop' into develop 2023-11-22 13:39:13 -06:00
Eric Wang
134c189b4a
Make search by address exact in Address Resource 2023-11-21 22:34:19 -06:00
Eric Wang
bd5a32362f Make search by address explicit in Address Resource 2023-11-21 22:30:53 -06:00
Eric Wang
b52638dfc2
Create CODE_OF_CONDUCT.md 2023-11-12 17:59:56 -06:00
Eric Wang
7cc2709c4e fix tests failing & made coterm_id optional 2023-11-12 03:09:57 +00:00
Eric Wang
9750e02659 format HardwareDetailsCard.tsx 2023-11-12 01:42:18 +00:00
Eric Wang
bac71c7f02 close mobile navigation menu on navigate 2023-11-12 01:42:08 +00:00
Eric Wang
44805fd8ed fix helpers type error 2023-11-12 01:41:36 +00:00
Eric Wang
f3e6356263 add database changes for Coterm & base controller 2023-11-12 01:00:10 +00:00
Eric Wang
e6cec05078 validate whether the user is detaching a node that's using IPs from the pool 2023-11-12 00:26:58 +00:00
Eric Wang
c28294d613 indicate whether EditPoolModal is fetching attached nodes 2023-11-12 00:24:16 +00:00
Eric Wang
81f64188dc omit value prop from multiselectform 2023-11-12 00:23:38 +00:00
Eric Wang
17284f9706 override the rightSection of Select if in loading state 2023-11-12 00:22:55 +00:00
Eric Wang
b8758dfbf5 allow NodesMultiSelect to have a loading prop 2023-11-12 00:22:13 +00:00
Eric Wang
c97b1b8bb6 remove deprecated zod functions in EditAddressModal 2023-11-12 00:22:00 +00:00
Eric Wang
665ed1b7c1 allow IP address assigned server to be nullable 2023-11-11 23:33:53 +00:00
Eric Wang
5dd4211f3a remove Pterodactyl from issue templates 2023-11-11 17:50:13 +00:00
Eric Wang
99d50a67fa remove server migrations between nodes 2023-11-11 17:28:22 +00:00
Eric Wang
63fbdff46f rename server deletion failed modal action button 2023-11-11 17:27:42 +00:00
Eric Wang
26db9c2525 rename server deletion failed modal action button 2023-11-11 17:25:53 +00:00
Eric Wang
9cb2cf0da0 fix reading undefined size attribute off of disks 2023-11-11 17:11:22 +00:00
Eric Wang
411a45967f update CI docker compose redis version 2023-11-11 16:59:54 +00:00
Eric Wang
24c567d78e update CI docker compose mysql version 2023-11-11 16:05:24 +00:00
Eric Wang
d8618cbe74 resolve typo on disk overallocation field 2023-11-11 16:01:34 +00:00
Eric Wang
4d08de5642 add IPAM node allocation - NEEDS WORK! 2023-11-11 06:39:33 +00:00
Eric Wang
c5c0820f2b refactor address resource additional validation rules to leverage Laravel's features 2023-11-11 05:38:36 +00:00
Eric Wang
58da50e57e Delete old node address resource validators 2023-11-11 05:37:48 +00:00
Eric Wang
24048894af upgrade laravel 2023-11-11 05:37:07 +00:00
Eric Wang
bd915a6f7b Fix file name validation error on ISO creation 2023-11-11 05:36:48 +00:00
Eric Wang
7b9dd75c1b change panel logs template to input & clean up templates 2023-11-06 05:33:49 +00:00
Eric Wang
311aa04c0a optimize frontend imports & complete migration admin node page migration from store context to SWR 2023-11-06 04:41:30 +00:00
Eric Wang
5889d1abb9 optimize imports project-wide 2023-11-06 04:20:25 +00:00
Eric Wang
3eb076967c organize imports in the front end 2023-11-06 04:12:03 +00:00
Eric Wang
15af8bceed add prettier plugin sort 2023-11-06 04:07:28 +00:00
Eric Wang
927896748e so fucking much 2023-11-06 04:07:11 +00:00
Eric Wang
4b39f3d3b1 update label on feature requests template 2023-11-06 02:05:07 +00:00
Eric Wang
18264ab54f add github issue templates 2023-11-06 00:53:36 +00:00
Eric Wang
cb827d38cc add sql query to insert ips in bulk 2023-09-03 18:32:53 +00:00
Eric Wang
c2d6c03d25 idk 2023-09-02 03:51:16 +00:00
Eric Wang
abcbf3a0cf update i18next dep to fix pluralization 2023-09-02 02:53:31 +00:00
Eric Wang
f64afe2196 add ip range counting 2023-09-02 02:51:55 +00:00
Eric Wang
92f5df310f fix redis password can't have special chars 2023-08-26 22:41:29 +00:00
Eric Wang
e965e1bd4e add frontend support for bulk imports 2023-08-07 05:08:45 +00:00
Eric Wang
4510937d8b add bulk address import (unfinished) 2023-08-07 01:25:37 +00:00
Eric Wang
4a621cb013 add address deleting and updating 2023-08-07 00:51:47 +00:00
Eric Wang
d0e5f7876c add address pool creation, deletion, and editing 2023-08-06 17:42:25 +00:00
Eric Wang
2547e84a1f add create pool modal 2023-08-05 16:24:28 +00:00
Eric Wang
c60711a74a add address updating/deleting 2023-07-31 14:47:21 +00:00
Eric Wang
c845d5cbd2 add address updating/deleting 2023-07-31 04:20:30 +00:00
Eric Wang
a22154d676 do not prepend address if not first page 2023-07-30 22:11:20 +00:00
Eric Wang
930a5ae42b add address creation 2023-07-30 22:10:30 +00:00
Eric Wang
3f0dc8a962 disable revalidate on mount 2023-07-18 23:50:36 +00:00
Eric Wang
f22971d980 delete old Checkbox component & add breadcrumbs 2023-07-18 23:33:31 +00:00
Eric Wang
cb412ae97c add address pool addresses page table 2023-07-18 17:08:08 +00:00
Eric Wang
20e23c4d34 Update image versions + redis save interval 2023-07-18 04:02:34 +00:00
Eric Wang
5c25206448 update list of files to delete/include in release workflow 2023-07-18 03:34:21 +00:00
Eric Wang
3ab8a1421c add address pools index page and addresses base for now 2023-07-12 21:15:09 +00:00
Eric Wang
21ef402c2a [3.0-SAFE] Fix workspace container failing to build 2023-06-23 12:46:14 +00:00
Eric Wang
0064ca2426 [3.0-SAFE] Fix password error msg, lowered sync build job timeout, use is_null over isset for Mebibytes cast 2023-06-21 04:22:03 +00:00
Eric Wang
cb14f88501 [3.0-SAFE] CreateIsoModal.tsx change "new" to "download" button text 2023-06-20 01:53:48 +00:00
Eric Wang
72e3040ebf [3.0-SAFE] add v3.10.0-beta changelog 2023-06-20 01:24:40 +00:00
Eric Wang
b329f4b0cf [3.0-SAFE] add ISO imports 2023-06-20 01:15:19 +00:00
Eric Wang
28cef99de9 Make file_name non-nullable in ISO Library table 2023-06-19 23:42:52 +00:00
Eric Wang
a6ae710156 [3.0-SAFE] Refactor Create ISO Modal 2023-06-19 23:40:39 +00:00
Eric Wang
34cf4ccaf4 add index AddressController method, add AddressTransformer return type, and optimize imports 2023-06-17 19:34:40 +00:00
Eric Wang
fe94183705 add 2nd simpler server data structure, refactor includes to include, use address pool in address transformers 2023-06-17 01:43:57 +00:00
Eric Wang
50793df204 add changelog for v3.9.3-beta 2023-06-15 01:03:17 +00:00
Eric Wang
ac8644bd40 Move addressPoolController and its related AddressController to a separate folder 2023-06-15 00:58:27 +00:00
Eric Wang
34b800b841 Lock workspace container to Debian bullseye 2023-06-15 00:57:49 +00:00
Eric Wang
2d5d9becaa add unfinished backend for ip pool support 2023-06-13 04:13:52 +00:00
Eric Wang
c8868a854e add new progress indicator 2023-06-12 01:26:17 +00:00
Eric Wang
bbe98f06fc create a logo component 2023-06-11 16:39:20 +00:00
Eric Wang
70fab52ea0 update caniuse definitions 2023-06-11 16:14:45 +00:00
Eric Wang
ac58cce1de update vite config bundle visualizer path 2023-06-11 16:14:25 +00:00
Eric Wang
0f7e5bf26e Convert admin/users to use SWR over easy peasy 2023-06-11 16:00:48 +00:00
Eric Wang
6b1f29a22d add new logo 2023-06-10 22:00:10 +00:00
Eric Wang
5cff938d55 add v3.9.2-beta 2023-06-10 21:00:03 +00:00
Eric Wang
73201b6c47 update v3.9.1-beta changelog 2023-06-10 15:08:50 +00:00
Eric Wang
851372a265 add v3.9.1-beta changelog 2023-06-10 14:56:02 +00:00
Eric Wang
00a38872d4 update coterm validation rules + fix frontend routes 2023-06-10 14:47:17 +00:00
Eric Wang
d1e8cf95a6 reorganize frontend routes 2023-06-10 03:22:32 +00:00
Eric Wang
c882c9e7a0 include mysql client in workspace 2023-06-08 01:38:17 +00:00
Eric Wang
c5f28e1185 use ip pools and squash migrations 2023-06-08 01:11:42 +00:00
Eric Wang
fadcc013ca add 2023-06-07 03:38:45 +00:00
Eric Wang
ed7bff8443 add v3.9.0-beta 2023-06-04 14:53:22 +00:00
Eric Wang
75bcb66260 Merge branch 'develop' of https://github.com/Performave/convoy into develop 2023-05-28 15:32:36 +00:00
Eric Wang
2786de38ff Rename IPAddress to Address, add AddressPool, use JWT for SSO tokens 2023-05-28 15:32:34 +00:00
Eric Wang
d080a2a93d rename IPAddress to Address, add AddressPool, use JWT for SSO Token 2023-05-28 15:31:58 +00:00
Eric Wang
5adfb40510
add heavynode to acknowledgements 2023-05-25 23:13:15 -05:00
Eric Wang
e1548ce35e add warning to v3.9.0-rc.9 notes 2023-05-26 03:27:07 +00:00
Eric Wang
921d278ae5 add v3.9.0-rc.9 2023-05-26 03:25:03 +00:00
Eric Wang
94e673c3f4 Fix+refactor stuff related to web console 2023-05-22 20:57:54 +00:00
Eric Wang
6e04664c55 add coterm support 2023-05-21 16:03:57 +00:00
Eric Wang
dc439c9efd Add Coterm reset modal and form reset 2023-05-21 14:12:16 +00:00
Eric Wang
b7607815e9 i don't know 2023-05-21 04:45:06 +00:00
Eric Wang
9bed33d655 refactor nodes info card & add coterm authenticate 2023-05-21 01:34:12 +00:00
Eric Wang
9b1f4624ac make Laravel use en_US instead of en locale 2023-05-20 20:57:39 +00:00
Eric Wang
c6a3026dc0 rename en locale to en_US and use underscore instead of hyphens 2023-05-20 20:56:58 +00:00
Eric Wang
01677416c2 Update crowdin to preserve hierarchy 2023-05-20 20:38:18 +00:00
Eric Wang
fe8ee56009 add coterm_enabled column 2023-05-20 20:12:11 +00:00
Eric Wang
d95281c3fd refactor admin servers page 2023-05-19 04:17:27 +00:00
Eric Wang
594927ea97 refactor servers page (overview + general settings) 2023-05-16 04:07:48 +00:00
Eric Wang
aebdf693eb refactor create server modal 2023-05-15 04:34:42 +00:00
Eric Wang
0ce66307ac refactor nodes index page 2023-05-13 23:02:07 +00:00
Eric Wang
591f83a679 add Coterm JWT, node secret encryption, and Coterm columns on nodes table 2023-05-11 04:34:22 +00:00
Eric Wang
7f31eb2a84 refactor locations page + add translations for it 2023-05-06 21:41:50 +00:00
Eric Wang
1cb6e1175e refactor locations page + add translations for it 2023-05-06 21:41:34 +00:00
Eric Wang
a98b155f9a rename terminal to console, add more types for user credentials, other QOL changes and refactoring 2023-05-01 01:42:57 +00:00
Eric Wang
17eef5850b add coterm base routes 2023-04-29 03:22:54 +00:00
Eric Wang
9c825b921f
Merge pull request #23 from ConvoyPanel/shift-89545
Laravel 10.x Shift
2023-04-28 21:42:47 -05:00
Eric Wang
69989d828e add manual intervention to upgrade to laravel 10 2023-04-29 02:33:05 +00:00
Shift
cb057117b1
Shift cleanup 2023-04-28 06:51:18 +00:00
Shift
c193e54ef8
Remove redundant typing from DocBlocks 2023-04-28 06:51:15 +00:00
Shift
c42a4428ef
Add type hints from DocBlocks 2023-04-28 06:51:14 +00:00
Shift
fff1337830
Add type hints for Laravel 10 2023-04-28 06:51:12 +00:00
Shift
f1ac58eba8
Update method signatures for Laravel contracts 2023-04-28 06:51:09 +00:00
Shift
90ce42e32c
Rename password_resets table 2023-04-28 06:51:08 +00:00
Shift
44f96d7c53
Add migration for Sanctum 3.0 2023-04-28 06:51:05 +00:00
Shift
fd9f9b2540
Bump Laravel dependencies 2023-04-28 06:51:05 +00:00
Shift
6785ec04ac
Default config files
In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
2023-04-28 06:51:05 +00:00
Shift
53737c3cdf
Shift config files 2023-04-28 06:51:05 +00:00
Shift
fca183b98d
Shift core files 2023-04-28 06:51:04 +00:00
Shift
67387e7ce4
Remove explicit call to register policies 2023-04-28 06:50:55 +00:00
Shift
fc804cba34
Convert deprecated $dates property to $casts 2023-04-28 06:50:55 +00:00
Shift
5687ffb1d1
Convert route options to fluent methods
Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods.
2023-04-28 06:50:54 +00:00
Shift
46719500f4
Use Faker methods
Accessing Faker properties was deprecated in Faker 1.14.
2023-04-28 06:50:54 +00:00
Shift
34987cc425
Convert optional() to nullsafe operator 2023-04-28 06:50:54 +00:00
Shift
445b1965b7
Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
2023-04-28 06:50:51 +00:00
Eric Wang
d72840aed7 Revert "Delete .env.ci"
This reverts commit 484cf85c62.
2023-04-23 04:51:26 +00:00
Eric Wang
484cf85c62
Delete .env.ci 2023-04-22 23:49:54 -05:00
Eric Wang
0cad2ab81e Merge branch 'develop' of https://github.com/Performave/convoy into develop 2023-04-18 22:48:46 +00:00
Eric Wang
a3a1cd5357 add v3.9.0-rc.8 2023-04-18 22:48:45 +00:00
Eric Wang
6fb7afbef2 Update Crowdin configuration file 2023-04-14 22:14:27 -05:00
Eric Wang
1a89798cee update server password changing feature test 2023-04-15 02:56:30 +00:00
Eric Wang
bc58863292 translate client side and refactor to use react hook forms 2023-04-15 02:53:28 +00:00
Eric Wang
f11a445137 add v3.9.0-rc.7 2023-04-13 03:46:39 +00:00
Eric Wang
49db66af5b remove zod test translation 2023-04-13 03:06:28 +00:00
Eric Wang
7463ccba60 add v3.9.0-rc.6 2023-04-13 03:05:08 +00:00
Eric Wang
121405087c add v3.9.0-rc.5 2023-04-13 02:51:30 +00:00
Eric Wang
8751300789 add caddyfile prod cache policy 2023-04-10 01:21:40 +00:00
Eric Wang
a114b4f72a translate server general settings + convert to RHF 2023-04-10 01:01:35 +00:00
Eric Wang
ff3c32be8e add localization to zod 2023-04-09 20:11:02 +00:00
Eric Wang
e22bf061bb localize backup restore/delete + refactor 2023-04-09 16:14:18 +00:00
Eric Wang
58fc558516 I don't know what to name this commit 2023-04-09 15:43:01 +00:00
Eric Wang
579b3355cb add translations for client dashboard and client server overview 2023-04-07 16:54:50 +00:00
Eric Wang
1b7ebe806b add v3.9.0-rc.3 2023-04-07 01:58:25 +00:00
Eric Wang
089225ea13 fully remove laravel-react-i18n 2023-04-06 23:07:24 +00:00
Eric Wang
486277feda auto refactor 2023-04-06 23:00:56 +00:00
Eric Wang
ea7e5d41b6 add v3.9.0-rc.2 2023-04-04 04:25:09 +00:00
Eric Wang
cd8e1ab543 add v3.9.0-rc.1 2023-03-25 16:33:20 +00:00
Eric Wang
9a761e3c21 refactor server building and deletion 2023-03-25 15:54:19 +00:00
Eric Wang
1b54b3d4ac fix server installations and deletions 2023-03-17 17:35:03 +00:00
Eric Wang
98b44f56b0 clean up db after tests run 2023-03-13 00:28:43 +00:00
Eric Wang
04c4501649 add tests for server sync services 2023-03-13 00:24:35 +00:00
Eric Wang
042178af5b add more tests 2023-03-12 23:42:50 +00:00
Eric Wang
f7eb4c7744 add more tests 2023-03-12 21:02:55 +00:00
Eric Wang
3b00dbee24 remove build workflow 2023-03-12 18:46:07 +00:00
Eric Wang
22e442cf57 add frontend asset building to workflow 2023-03-12 18:42:58 +00:00
Eric Wang
6738451945 fix misplaced -f shorthand 2023-03-12 18:40:13 +00:00
Eric Wang
1114a806b4 use prebuilt workspace image 2023-03-12 18:39:28 +00:00
Eric Wang
eb508b13ac use docker-compose.yml 2023-03-12 18:28:50 +00:00
Eric Wang
4d76c69572 fix workflow again 2023-03-12 18:25:09 +00:00
Eric Wang
7e757f8e28 fix workflow again 2023-03-12 18:21:19 +00:00
Eric Wang
de664f9170 fix workflow again 2023-03-12 17:56:23 +00:00
Eric Wang
f70083b084 fix workflow again 2023-03-12 17:53:50 +00:00
Eric Wang
93285eb3eb add migration to workflow 2023-03-12 16:51:55 +00:00
Eric Wang
306e810e37 use database for feature tests 2023-03-12 16:49:45 +00:00
Eric Wang
92e695e10f use pest instead of phpunit 2023-03-12 16:46:48 +00:00
Eric Wang
c39768842e add tests 2023-03-12 16:45:12 +00:00
Eric Wang
71814edc16 add tests 2023-03-12 16:04:26 +00:00
Eric Wang
b64e7fed3f fix broken file metadata query 2023-03-12 05:53:55 +00:00
Eric Wang
5e6d14f578 convert all repositories to laravel http client 2023-03-12 05:41:03 +00:00
Eric Wang
0ce6c4290d partially convert the repositories to Laravel http client 2023-03-12 02:17:34 +00:00
Eric Wang
4a2d1d7c1e Remove ProxmoxService abstract class 2023-03-12 01:09:56 +00:00
Eric Wang
2e0769f3f7 add v3.8.1-beta 2023-03-12 00:57:59 +00:00
Eric Wang
a711d718ea add v3.8.0-beta 2023-03-08 03:55:00 +00:00
Eric Wang
a1dc3fa0cb add v3.7.5-beta 2023-03-07 23:42:26 +00:00
Eric Wang
1ceff8ffc4 fix version number 2023-03-07 23:40:21 +00:00
Eric Wang
5bb3cd9953 add v3.7-5-beta 2023-03-07 23:38:49 +00:00
Eric Wang
23877aa796 fix broken power commands 2023-03-07 03:30:12 +00:00
Eric Wang
eebada208f add v3.7.3-beta changelog 2023-03-07 01:32:16 +00:00
Eric Wang
27eebea923 rename serverstateconflictexception 2023-03-07 00:18:53 +00:00
Eric Wang
91ce48b567 a load of refactors including laravel/framework upgrade 2023-03-07 00:17:31 +00:00
Eric Wang
79c9d0c5df add v3.7.2-beta 2023-03-01 05:31:52 +00:00
Eric Wang
d869146ad9 remove performance bug from recalculating ending date over and over again 2023-03-01 03:03:37 +00:00
Eric Wang
2a28470d86 add v3.7.1-beta 2023-03-01 03:01:16 +00:00
Eric Wang
97669e4af0 add back missing supervisor dependency in workers dockerfile 2023-03-01 03:01:01 +00:00
Eric Wang
00c22fac2d add back missing supervisor dependency in workers dockerfile 2023-03-01 00:27:57 +00:00
Eric Wang
c6a26ea45a refactor dockerfiles 2023-02-28 23:48:27 +00:00
Eric Wang
6693411db8 rename data unit cast and rename redundant force option with backups 2023-02-26 23:24:26 +00:00
Eric Wang
291b8f79a8 rename data unit cast and rename redundant force option with backups 2023-02-26 23:24:16 +00:00
Eric Wang
f3f2e40742 add v3.7.0-beta 2023-02-26 23:04:32 +00:00
Eric Wang
758fb32ca3 add prune users command to cron 2023-02-24 02:01:35 +00:00
Eric Wang
8ab1ca3300 read changelog diff for what changed 2023-02-24 02:00:15 +00:00
Eric Wang
100b507580 clean up phpstan errors, update dependencies, add entity 2023-02-22 03:29:01 +00:00
Eric Wang
a464d041a1 update menu component and clean up code 2023-02-20 18:53:07 +00:00
Eric Wang
e8030fc1aa add ssh keys migration 2023-02-20 05:55:11 +00:00
Eric Wang
92bdb41ab7 refactor all settings pages 2023-02-20 05:26:41 +00:00
Eric Wang
84b061a814 remove unused code 2023-02-19 00:51:55 +00:00
Eric Wang
ffd0a1779d refactor searchbar 2023-02-15 00:18:20 +00:00
Eric Wang
3a00bddf1e add search bars 2023-02-14 23:59:51 +00:00
Eric Wang
ae569169a1 add patch v3.6.2-beta 2023-02-11 22:56:55 +00:00
Eric Wang
161a58749b release update v3.6.1-beta 2023-02-10 03:13:58 +00:00
Eric Wang
1f83a0fa4e add units for bandwidth limit 2023-02-10 01:05:40 +00:00
Eric Wang
3388bbdb70
Delete AuthorizeProprietaryToken.php 2023-02-04 23:30:45 -06:00
Eric Wang
49f9c3533f
Delete external.php 2023-02-04 23:30:21 -06:00
Eric Wang
a03569ce6a
remove external secret 2023-02-04 23:30:05 -06:00
Eric Wang
72e2a0e273 add google analytics 2023-02-05 03:57:37 +00:00
Eric Wang
35796d3691 upgrade workflow php to 8.2 from 8.1 2023-02-04 20:48:31 +00:00
Eric Wang
ec343c6552 upgrade to php 8.2 and fix navigation bar 2023-02-04 20:12:55 +00:00
Eric Wang
eb556775bd add v3.6.0-beta 2023-02-02 02:52:13 +00:00
Eric Wang
9cf203b9bf Merge branch 'develop' of https://github.com/Performave/convoy into develop 2023-01-31 21:34:40 +00:00
Eric Wang
983dccdae3 add extra change log line for v3.5.1-beta 2023-01-31 21:34:37 +00:00
Eric Wang
214b7cc297 add fix for v3.5.1-beta 2023-01-31 21:33:40 +00:00
Eric Wang
85db4f84bd
set default redis host 2023-01-31 14:02:57 -06:00
Eric Wang
80fdfbcf03 unround vertical nav tab on mobile 2023-01-29 19:28:47 +00:00
Eric Wang
b6e0e6853d release v3.5.0-beta 2023-01-29 19:22:03 +00:00
Eric Wang
d79ff6c144 Add v3.4.0-beta 2023-01-28 05:26:58 +00:00
Eric Wang
ed80eabac1 fix admin dashboard navbar routes 2023-01-28 04:38:42 +00:00
Eric Wang
cc7ea08094 fix navigationbar 2023-01-28 04:29:42 +00:00
Eric Wang
e1b03f7982 refactor routes 2023-01-28 03:54:35 +00:00
Eric Wang
3f76d37ff6 refactor routes 2023-01-28 03:54:32 +00:00
Eric Wang
de83ce8557 use diff router 2023-01-28 03:00:46 +00:00
Eric Wang
66609e3ece finalize v3.3.0-beta 2023-01-24 00:51:23 +00:00
Eric Wang
6f9a002aba bug fixes for v3.2.0-beta 2023-01-22 16:05:19 +00:00
Eric Wang
3aa1e0f7ad
Update README.md 2023-01-22 09:12:43 -06:00
Eric Wang
e84b7b081d
add a person to acknowledgements 2023-01-22 09:08:11 -06:00
Eric Wang
5700a9d468 disable save button when theres no changes 2023-01-21 22:10:25 +00:00
Eric Wang
29c52ae436 add changelog for v3.1.2-beta 2023-01-21 22:05:55 +00:00
Eric Wang
673767b82b remove scoped bindings for routing 2023-01-21 22:05:13 +00:00
Eric Wang
611a385233 update changelog for v3.1.1-beta 2023-01-21 21:11:36 +00:00
Eric Wang
c5a92dda5b Merge branch 'develop' of https://github.com/Performave/convoy into develop 2023-01-21 21:10:21 +00:00
Eric Wang
12c274eee5 fix route optimizing conflicting named routes bug 2023-01-21 21:10:20 +00:00
Eric Wang
2483e3cbcc
Update README.md 2023-01-21 14:55:29 -06:00
Eric Wang
22473b0911
Delete id, 2023-01-21 14:47:42 -06:00
Eric Wang
2956607fb9 update workflow and remove weird file 2023-01-21 20:03:55 +00:00
Eric Wang
21cd066165 fix workflow 2023-01-21 19:58:39 +00:00
Eric Wang
a7883b5a36 add v3.1.0-beta changelog 2023-01-21 19:55:29 +00:00
Eric Wang
8a2591a82d Fix bugs 2023-01-21 19:51:42 +00:00
Eric Wang
2217eaafba fix tests shield 2023-01-21 18:19:58 +00:00
Eric Wang
dbfc97a9bb fix tests shield 2023-01-21 18:19:14 +00:00
Eric Wang
dbafb21c81 update changelog and readme 2023-01-21 18:16:02 +00:00
Eric Wang
3f699db9c4 fix routes and add version number 2023-01-21 17:59:11 +00:00
Eric Wang
35c4cbfe7a add tokens page 2023-01-21 17:19:55 +00:00
Eric Wang
46a92cda83 utilize personal access tokens 2023-01-21 04:45:40 +00:00
Eric Wang
dcdf87cd2a add SSO token generation and remove old application api 2023-01-21 04:26:42 +00:00
Eric Wang
1da77f317f add users admin page 2023-01-21 04:14:06 +00:00
Eric Wang
783a9bafe6 add server deletion 2023-01-15 20:51:13 +00:00
Eric Wang
6b23fdc6dd add partial frontend 2023-01-15 17:03:42 +00:00
Eric Wang
258028096f add server deletion 2023-01-15 16:38:51 +00:00
Eric Wang
088043d42e add server suspension and server build modification 2023-01-13 00:46:07 +00:00
Eric Wang
77038ca9c4 enable reinitialize 2023-01-07 01:47:28 +00:00
Eric Wang
555235cfbe add general server settings 2023-01-07 01:46:55 +00:00
Eric Wang
5179702845 switch order of media and boot order container 2023-01-04 04:02:42 +00:00
Eric Wang
027b455fd6 make server reinstall work 2023-01-04 03:47:27 +00:00
Eric Wang
7cbe88dbee add mounting and unmounting of isos 2023-01-04 00:21:19 +00:00
Eric Wang
2998c84ce9 add partial media container 2023-01-03 17:35:58 +00:00
Eric Wang
a0200f4152 add more info to boot order config 2023-01-03 16:45:41 +00:00
Eric Wang
8b6de84307 add disk tagging 2023-01-03 07:18:02 +00:00
Eric Wang
d6fdec4c5a fix password minimum length from 10 to 8 characters 2023-01-03 03:05:47 +00:00
Eric Wang
f04bfe4e14 add password setting and fix backuplimit indicator 2023-01-03 01:43:43 +00:00
Eric Wang
94d680fbdb change hostname to fqdn in terminal transformer 2023-01-02 21:33:38 +00:00
Eric Wang
281198f4dd make server creation work 2023-01-02 21:18:22 +00:00
Eric Wang
8340cdd8f6 me and the homies hate js 2023-01-02 05:55:02 +00:00
Eric Wang
a64401d722 fix serversselectformik 2023-01-02 05:21:19 +00:00
Eric Wang
1dd46fc936
Update Server.php 2023-01-01 22:37:17 -06:00
Eric Wang
d399c1ebab
Update Server.php 2023-01-01 22:35:19 -06:00
Eric Wang
63232b33a6 show only available ips 2023-01-02 03:41:28 +00:00
Eric Wang
1348a71e5f add server creation modal 2023-01-02 03:16:01 +00:00
Eric Wang
6ed81e380b Add user searching and rewrite server creation 2023-01-02 02:00:18 +00:00
Eric Wang
acb8226221 Add address multi select 2023-01-02 01:11:38 +00:00
Eric Wang
639c201bb0 finish node page 2023-01-01 02:37:02 +00:00
Eric Wang
611f69e8b9 add node settings frontend for now 2023-01-01 01:17:45 +00:00
Eric Wang
49ae53a041 fix select form searching by adding custom filters 2023-01-01 01:06:42 +00:00
Eric Wang
a10c798ed9 add addresses page 2022-12-30 02:07:55 +00:00
Eric Wang
acc45d803f add radio element 2022-12-29 05:56:02 +00:00
Eric Wang
b23b62e815 add addresses resource 2022-12-28 22:34:40 +00:00
Eric Wang
52f30eea2f add address backend 2022-12-28 22:32:48 +00:00
Eric Wang
5ce4f6a6b0 Revert "Revert "add""
This reverts commit 76329b8cdd.
2022-12-28 21:40:47 +00:00
Eric Wang
76329b8cdd Revert "add"
This reverts commit f44982a399.
2022-12-28 21:31:05 +00:00
Eric Wang
f44982a399 add 2022-12-28 21:28:49 +00:00
Eric Wang
0907a35cc2 add addresses table 2022-12-28 20:52:06 +00:00
Eric Wang
659aef6086 Merge branch '3.0-develop' into develop 2022-12-28 05:24:04 +00:00
Eric Wang
3923ec2b3c add eye icon 2022-12-28 05:17:46 +00:00
Eric Wang
8616a62216 remove activation constraints 2022-12-28 05:13:28 +00:00
Eric Wang
50a3c503f8 add template reordering 2022-12-28 05:10:45 +00:00
Eric Wang
4b0553db89 complete templates page 2022-12-28 04:59:03 +00:00
Eric Wang
8485ca0a0a add template code backend 2022-12-28 01:24:33 +00:00
Eric Wang
3fa45c34a5 Add template creation and editing 2022-12-27 21:25:18 +00:00
Eric Wang
2753548190 fix reordering 2022-12-26 23:40:14 +00:00
Eric Wang
7741fb0ae7 Fix drag issue and add saving 2022-12-26 21:47:01 +00:00
Eric Wang
2ebc285d14 fix padding 2022-12-25 04:58:57 +00:00
Eric Wang
c79fd6ab1f fix hover effects 2022-12-25 04:55:14 +00:00
Eric Wang
7f1eb27d2f add base templates 2022-12-25 04:50:30 +00:00
Eric Wang
2fc14c56d4 Add templates backend and frontend fetching 2022-12-25 03:24:41 +00:00
Eric Wang
6a1c5b20bc add template groups and template and sortable 2022-12-25 01:36:05 +00:00
Eric Wang
f8ea49052b Fix validation rules 2022-12-24 03:41:58 +00:00
Eric Wang
23f56cedf5 Add visibility changer 2022-12-24 03:31:31 +00:00
Eric Wang
a883dedcfe Fix grid 2022-12-23 21:33:52 +00:00
Eric Wang
53bd539bb7 Add importing and deleting ISOs 2022-12-23 21:26:07 +00:00
Eric Wang
8997a74a92 Add iso modal 2022-12-23 18:24:49 +00:00
Eric Wang
f355151562 Add part of iso download backend 2022-12-22 20:57:42 +00:00
Eric Wang
8fd90f3204 Add server table and base iso library 2022-12-22 18:43:47 +00:00
Eric Wang
fbf0fba7a6 Refactor textinput 2022-12-21 02:40:37 +00:00
Eric Wang
777ea7c9f2 Add more api endpoints 2022-12-21 01:33:32 +00:00
Eric Wang
c333a7fc70 Add node allocated details 2022-12-18 17:56:20 +00:00
Eric Wang
d23044445d Add node page 2022-12-18 17:15:53 +00:00
Eric Wang
b1fed692f1 Fix API files and add node deletion 2022-12-18 00:38:03 +00:00
Eric Wang
68a5cd257a Remove default values 2022-12-17 03:20:08 +00:00
Eric Wang
bd2e87b345 Fix select alignment on mobile 2022-12-17 03:13:08 +00:00
Eric Wang
7b834b8a49 Redirect to intended location after login 2022-12-17 02:58:28 +00:00
Eric Wang
5ec8f46810 add funny message 2022-12-17 02:49:09 +00:00
Eric Wang
729cab1836 Fix select dark theme 2022-12-17 02:48:48 +00:00
Eric Wang
ff8517ecaf Add create node form 2022-12-17 02:34:11 +00:00
Eric Wang
4083c34575 Upgrade dependencies 2022-12-16 23:12:56 +00:00
Eric Wang
3b38febb7f Fix table types 2022-12-16 23:01:37 +00:00
Eric Wang
f955e85b8c Add node modal 2022-12-16 18:01:11 +00:00
Eric Wang
d0f0242730 Fix positioning 2022-12-16 05:52:49 +00:00
Eric Wang
e00d919d9a Fix menu and textareas 2022-12-16 05:50:23 +00:00
Eric Wang
58971f7023 Add nodes viewing page 2022-12-16 04:14:52 +00:00
Eric Wang
f5dca5d1cc Update dependencies 2022-12-16 02:51:58 +00:00
Eric Wang
bf38323c85 Add location 2022-12-15 05:47:17 +00:00
Eric Wang
6ca5f8a66c Add locations 2022-12-15 05:37:24 +00:00
Eric Wang
c18f96cca2 Add locations 2022-12-11 04:04:12 +00:00
Eric Wang
0b00a29deb Add location groups 2022-12-07 01:50:32 +00:00
Eric Wang
a616956aee Fix table, add user CLI, fix ratelimiting 2022-12-07 00:37:00 +00:00
Eric Wang
5844fd0c37 Add table 2022-12-05 00:09:12 +00:00
Eric Wang
e6280f1403 add table 2022-12-04 03:01:15 +00:00
Eric Wang
bf5575b74d add site configuration 2022-12-03 23:39:13 +00:00
Eric Wang
a107044e8a Add admin boilerplate 2022-12-03 23:35:13 +00:00
Eric Wang
d1c1efc0ae Use pending boot config when available 2022-12-03 00:57:16 +00:00
Eric Wang
1a57fc34f6 Remove selection on boot device 2022-12-03 00:54:41 +00:00
Eric Wang
658a09af42 Add drag and drop boot order config 2022-12-03 00:48:39 +00:00
Eric Wang
6e603ed2c4 Remove old frontend 2022-12-01 23:21:32 +00:00
Eric Wang
60cf5cbbe1 Update dependencies and clean up components 2022-12-01 23:19:23 +00:00
Eric Wang
5b91726362 Update dependencies 2022-12-01 23:11:47 +00:00
Eric Wang
f531dd2506 Add server proxmox details fetching 2022-12-01 23:11:27 +00:00
Eric Wang
c36aa64d5f Add password dots 2022-11-28 04:45:08 +00:00
Eric Wang
e3dea18612 Fix loading dots and mobile responsiveness 2022-11-28 04:40:01 +00:00
Eric Wang
58e386baae Change server status when initiating a restore 2022-11-28 02:57:44 +00:00
Eric Wang
b655f68e76 Change messagebox styles 2022-11-28 02:26:54 +00:00
Eric Wang
b413741aa7 Remove hover effect on tab link on mobile 2022-11-28 01:58:31 +00:00
Eric Wang
fb6b474a29 Fix weird jumping bug after submit 2022-11-27 23:54:33 +00:00
Eric Wang
4793668ebf Fix mobile responsiveness 2022-11-27 22:18:35 +00:00
Eric Wang
e921b60eb0 Add security updating 2022-11-27 22:16:37 +00:00
Eric Wang
83f4be9a04 Add update nameservers 2022-11-27 17:10:39 +00:00
Eric Wang
f869fa18d8 Fix focus and alignment issue 2022-11-25 16:00:55 +00:00
Eric Wang
c4982474f5 Fix style overriding 2022-11-25 03:48:14 +00:00
Eric Wang
b171a034f7 Fix preflight 2022-11-25 03:42:39 +00:00
Eric Wang
7e49decb56 Update login container styles 2022-11-25 03:22:07 +00:00
Eric Wang
28bc0c9a4b Fix preflight error 2022-11-25 03:19:20 +00:00
Eric Wang
3946dc4006 Add settings page 2022-11-25 02:53:02 +00:00
Eric Wang
22af909d9b Fix broken power commands 2022-11-24 23:16:25 +00:00
Eric Wang
f0b494ba16 Add disable prop to menu item 2022-11-24 22:58:39 +00:00
Eric Wang
57344d6fa6 Add hostname display 2022-11-24 22:55:07 +00:00
Eric Wang
e70cd04b1c Rewrite server update service 2022-11-24 22:51:10 +00:00
Eric Wang
9c00d55304 Remove unused imports 2022-11-24 20:49:32 +00:00
Eric Wang
ff22fdb70a Fix backup limit of 0 being confused with unlimit 2022-11-24 20:40:36 +00:00
Eric Wang
d4f08e8132 Refactor backup methods 2022-11-24 20:27:29 +00:00
Eric Wang
ea74e2583d Add badge and fix too many backups 2022-11-24 03:40:53 +00:00
Eric Wang
2c48b579cc Fix Proxmox erroring when compression is none 2022-11-24 01:45:44 +00:00
Eric Wang
04ef425fcd use backupcount instead of pagination count 2022-11-24 01:27:04 +00:00
Eric Wang
ca2b0a4b1a Add backup restoration and deletion 2022-11-24 01:22:30 +00:00
Eric Wang
f0974edc29 Fix minor typos 2022-11-23 17:05:10 +00:00
Eric Wang
00933bca79 Add more backup stuff 2022-11-23 17:01:29 +00:00
Eric Wang
d0e505668b Add rest of backup mockup 2022-11-23 03:43:31 +00:00
Eric Wang
8c513f86e6 Add menu component base 2022-11-21 06:16:27 +00:00
Eric Wang
adb87fd40a Fix non dismissable 2022-11-21 00:23:48 +00:00
Eric Wang
6dced28c8f Fix type error 2022-11-21 00:22:46 +00:00
Eric Wang
b346812ec4 Add listbox 2022-11-21 00:21:55 +00:00
Eric Wang
9b47cb922c Refactor modal and create backup button 2022-11-20 18:46:26 +00:00
Eric Wang
c2f2369127 Add backup creation 2022-11-20 18:30:38 +00:00
Eric Wang
da991e8a1c Fix button active classes 2022-11-20 04:08:54 +00:00
Eric Wang
44848baed3 Fix dialog button mobile responsiveness 2022-11-20 03:50:55 +00:00
Eric Wang
6ea4b9d1a2 Make buttons mobile responsive 2022-11-20 03:48:51 +00:00
Eric Wang
7ea4ec70f7 Remove bottom border on modal on mobile 2022-11-20 03:40:39 +00:00
Eric Wang
cc5a7759d3 fix border color on filled accent button on mobile 2022-11-20 03:35:41 +00:00
Eric Wang
e2fade23ec Remove ugly mobile rectangle 2022-11-20 03:32:05 +00:00
Eric Wang
1734370258 Add custom button and modal 2022-11-20 03:29:21 +00:00
Eric Wang
875b8f7177 Fix modal 2022-11-18 00:42:33 +00:00
Eric Wang
870cead241 Add dialog 2022-11-17 01:10:00 +00:00
Eric Wang
ce0552cc09 Fix logo color 2022-11-14 14:14:54 +00:00
Eric Wang
93493d6b2c Add server backups 2022-11-13 22:04:44 +00:00
Eric Wang
914244d37b Add horizon and custom navbar 2022-11-13 03:27:51 +00:00
Eric Wang
09701b1d34 Update button 2022-11-11 02:25:48 +00:00
Eric Wang
9c0aeb27b3 Add custom button 2022-11-11 01:16:43 +00:00
Eric Wang
0cfed3952f Add unit when bandwidth is unlimited 2022-11-10 03:52:14 +00:00
Eric Wang
ff151dacf9 Add terminal 2022-11-10 02:22:18 +00:00
Eric Wang
978b54a345 Update server terminal block boundaries 2022-11-09 01:38:45 +00:00
Eric Wang
0b1465a78f Remove unused imports 2022-11-09 01:29:02 +00:00
Eric Wang
3ac3e64935 Add terminal block 2022-11-09 01:27:42 +00:00
Eric Wang
a072c4037e Add circle indicator color transition 2022-11-09 00:57:33 +00:00
Eric Wang
ca7dcb6dbf Add power buttons 2022-11-09 00:56:13 +00:00
Eric Wang
eca04f5953 Move stats outside skeleton block 2022-11-06 22:24:20 +00:00
Eric Wang
3cb35e746f Refactor and add colors to bandwidth circle 2022-11-06 22:21:47 +00:00
Eric Wang
3993a976d4 Add Proxmox polling 2022-11-06 22:00:28 +00:00
Eric Wang
7446fd56d3 Add server statistics 2022-11-06 16:19:43 +00:00
Eric Wang
1aba32bbb5 Add server state fetching 2022-11-06 02:38:15 +00:00
Eric Wang
a4fd0eff4e Add favicon logo 2022-11-05 03:02:15 +00:00
Eric Wang
c4112c148f Add server overview page 2022-11-05 02:51:09 +00:00
Eric Wang
cdced4c92e Refactor data transfer objects 2022-11-05 01:13:38 +00:00
Eric Wang
e015991e7f Update navigation bar 2022-11-05 00:04:29 +00:00
Eric Wang
85af17294a Fix pagination 2022-11-04 23:01:03 +00:00
Eric Wang
b25bb5232a Add fade and fix paddings 2022-11-04 04:44:42 +00:00
Eric Wang
f11f1759ab Add mobile responsive navbar 2022-11-04 00:50:59 +00:00
Eric Wang
803aae601a Fix broken loading screen when signing out 2022-11-02 22:52:03 +00:00
Eric Wang
5aacd0eaa8 Refactor activity logs table and eloquent model 2022-11-02 22:45:33 +00:00
Eric Wang
3ba19382cc Improve error handling and optimize payload size 2022-11-02 22:33:41 +00:00
Eric Wang
4be878741e Remove live server installations 2022-11-02 22:23:36 +00:00
Eric Wang
2a10e4ccb5 Remove lodash 2022-11-01 03:45:01 +00:00
Eric Wang
df79f9f5dd Add server router 2022-11-01 03:41:03 +00:00
Eric Wang
1dc68ede52 Add navbar cool thing 2022-10-31 00:58:44 +00:00
Eric Wang
8766fcf64e Fix conflicting route 2022-10-30 20:58:08 +00:00
Eric Wang
7883b5a2c5 Add dashboard 2022-10-30 20:33:54 +00:00
Eric Wang
6db72e63b8 Add signing out 2022-10-30 04:24:09 +00:00
Eric Wang
ab71ad2c97 Update changelog 2022-10-30 04:12:19 +00:00
Eric Wang
cd1853359b Fix unable to delete IP Address 2022-10-30 04:10:02 +00:00
Eric Wang
7d93c364bb Add navbar 2022-10-30 04:08:28 +00:00
Eric Wang
e4fdcec9a1 update workflows 2022-10-30 01:58:05 +00:00
Eric Wang
185c7dd4e8 Add 404 page 2022-10-30 00:59:45 +00:00
Eric Wang
20930974f0 Fix http error handling 2022-10-29 23:32:49 +00:00
Eric Wang
3909fe710c Fix credentials leaking 2022-10-29 22:27:31 +00:00
Eric Wang
7603ba0341 Remove unused imports 2022-10-29 19:08:06 +00:00
Eric Wang
6de552b91d Remove unused code 2022-10-29 19:06:43 +00:00
Eric Wang
c9a9bf938b Update colors 2022-10-29 19:06:25 +00:00
Eric Wang
c4e5e7af6f Add blocks 2022-10-29 18:58:35 +00:00
Eric Wang
0d90598859 Remove unused imports 2022-10-29 15:29:27 +00:00
Eric Wang
7ea3dd578c Add dashboard router 2022-10-29 15:28:40 +00:00
Eric Wang
473503c343 Add suspense 2022-10-29 14:36:17 +00:00
Eric Wang
d5276439ec Fix padding on flash message 2022-10-29 05:07:59 +00:00
Eric Wang
2dfe0d1e63 Add flash message renderer and auth logic 2022-10-29 04:28:49 +00:00
Eric Wang
8d172ea381 Add dark mode 2022-10-29 02:14:16 +00:00
Eric Wang
92c8b7f7d5 Fix router and add progress bar 2022-10-28 01:22:13 +00:00
Eric Wang
c1f3421569 Scaffold react app 2022-10-27 23:41:39 +00:00
Eric Wang
8aeb72fb67 Upgrade dependencies and create wrapper 2022-10-26 00:03:41 +00:00
Eric Wang
9ef62f6f26 Fix fqdn validator 2022-10-25 04:19:47 +00:00
Eric Wang
0d51e86d8a Fix can't unset ssh key 2022-10-24 22:12:08 +00:00
Eric Wang
790ce4a329 Merge branch 'develop' of https://github.com/Performave/convoy into develop 2022-10-24 21:50:42 +00:00
Eric Wang
5c79a3c58c Show errors when Public key is invalid 2022-10-24 21:50:40 +00:00
Eric Wang
476c9482a2
Update README.md 2022-10-23 23:15:07 -05:00
Eric Wang
719f8462d0
Update CHANGELOG.md 2022-10-23 16:49:56 -05:00
Eric Wang
6fb4f4df07 Fix workflow again 2022-10-23 19:47:59 +00:00
Eric Wang
cfa408fa5a Fix workflow 2022-10-23 19:45:11 +00:00
Eric Wang
738721845f Update changelog 2022-10-23 19:41:52 +00:00
Eric Wang
68e3bc9d9c Update readme and fix updatebasicinfo 2022-10-23 19:36:25 +00:00
Eric Wang
64c7c03a45 Update application api, fix workflows 2022-10-23 17:11:05 +00:00
Eric Wang
f1680fcf89 Remove used import 2022-10-22 19:31:43 +00:00
Eric Wang
382db565dd Use network service 2022-10-22 19:31:29 +00:00
Eric Wang
d81c3816f9 Use single param to update addresses 2022-10-22 19:23:49 +00:00
Eric Wang
d2bae3016a Add updateAddresses 2022-10-22 16:45:27 +00:00
Eric Wang
e8b0bddf30 Fix atomic lock problems 2022-10-22 16:00:41 +00:00
Eric Wang
5167f8fa57 Update application api server creation 2022-10-22 04:55:55 +00:00
Eric Wang
5684cd537c Fix additional addresses & server installation 2022-10-22 01:24:16 +00:00
Eric Wang
cdd321f34e Add default value for bandwidth_usage in servers 2022-10-20 22:03:20 +00:00
Eric Wang
05fc3f7a38 Add server suspension button 2022-10-18 22:39:23 +00:00
Eric Wang
a3daad9939 Update licensing terms 2022-10-18 01:43:19 +00:00
Eric Wang
ab3803d198 Change directory of supervisor logs 2022-10-18 00:35:04 +00:00
Eric Wang
16a70fcc49 Add suspension pages 2022-10-18 00:01:58 +00:00
Eric Wang
1d0bcb31db Clean up usages command 2022-10-16 21:35:28 +00:00
Eric Wang
22d29836f7 Prevent compounding bandwidth usage 2022-10-16 20:00:47 +00:00
Eric Wang
e447376095 Fix incorrect usage measurement 2022-10-16 19:51:04 +00:00
Eric Wang
950903ddc9 Prevent registration of console commands 2022-10-16 16:42:24 +00:00
Eric Wang
2744be65fc Add details for quota and usage 2022-10-16 16:40:10 +00:00
Eric Wang
2598c04c66 Add bandwidth limiting and logging 2022-10-16 15:06:39 +00:00
Eric Wang
754e6c2a0d Fix update service not updating IPs 2022-10-14 23:28:23 +00:00
Eric Wang
d63b0e0edb Add metrics fetching 2022-10-14 17:37:08 +00:00
Eric Wang
2d4477425e Fix event hydrating and deprecate installing field 2022-10-13 23:24:54 +00:00
Eric Wang
0e32bdd3c0 Add server details updating 2022-10-13 03:34:45 +00:00
Eric Wang
39888e8f57 Clean up code styles 2022-10-10 00:18:22 +00:00
Eric Wang
d12125b975 Merge branch 'develop' of https://github.com/Performave/convoy into develop 2022-10-09 15:47:18 +00:00
Eric Wang
17e100f688 Revert from using uuid to id for now 2022-10-09 15:47:16 +00:00
Eric Wang
f6c1269a3c
Update LICENSE.md 2022-10-08 15:15:44 -05:00
Eric Wang
40b5cd6c0e Fix type errors 2022-10-08 16:54:12 +00:00
Eric Wang
0555fab267 Use uuid for servers 2022-10-08 04:24:52 +00:00
Eric Wang
821ebbbe54 Update license 2022-10-07 00:01:50 +00:00
Eric Wang
92d3f1f2a7 Bump packages in composer.lock 2022-10-05 23:26:21 +00:00
Eric Wang
4b7272bd31 Add workflows for testing, building, and releasing 2022-10-05 23:23:09 +00:00
Eric Wang
d466c696a8 Revert "Add auto creation"
This reverts commit 2d8fbfa22c.
2022-10-05 01:41:11 +00:00
Eric Wang
470540261a
Merge pull request #6 from ericwang401/develop
Add auto creation
2022-10-04 19:58:23 -05:00
Eric Wang
2d8fbfa22c Add auto creation 2022-10-05 00:57:45 +00:00
Eric Wang
8163527609 Use backup and snapshot limits 2022-10-02 16:11:58 +00:00
Eric Wang
c2f379ac5a Set runners as erroring if job errors 2022-10-02 04:50:09 +00:00
Eric Wang
c08e739fb5 Sync network device on server builds 2022-10-02 04:44:22 +00:00
Eric Wang
c2bc5a487f Fix regular expression for detecting disk size 2022-10-01 01:11:53 +00:00
Eric Wang
722ebb0b72 use network and storage columns 2022-10-01 00:29:48 +00:00
Eric Wang
df4002e809 Fix disk updating in update service 2022-09-30 23:03:30 +00:00
Eric Wang
f472aeab3b Fix user subnavigation 2022-09-30 22:04:55 +00:00
Eric Wang
bc3c7d62e2 Create a caddy dev and prod file 2022-09-30 03:02:51 +00:00
Eric Wang
8f783b676b Fix APP URL not being used 2022-09-30 00:07:23 +00:00
Eric Wang
1ba0f29806 Replace Nginx with Caddy 2022-09-29 23:53:30 +00:00
Eric Wang
38182ebebc Remove limits from configuration object 2022-09-29 01:25:38 +00:00
Eric Wang
e89bd487d9 Use local database for server specifications 2022-09-29 00:14:58 +00:00
Eric Wang
3f578442f2 Prevent ddos 2022-09-28 00:42:00 +00:00
Eric Wang
a37772879e Remove lodash 2022-09-26 23:02:04 +00:00
Eric Wang
3c2637678d Refactor rules 2022-09-25 16:59:54 +00:00
Eric Wang
f86dec84db Refactor rules 2022-09-25 16:59:31 +00:00
Eric Wang
dc8457136e Add new migrations and add validationrules 2022-09-25 16:17:53 +00:00
Eric Wang
9bca7b17ef Fix button not disabling 2022-09-24 03:54:11 +00:00
Eric Wang
ec99e4c80e Make live updates work 2022-09-24 03:49:22 +00:00
Eric Wang
a85e8fcf21 Refactor model to repository & clean up packages 2022-09-21 01:44:33 +00:00
Eric Wang
752aeeca61 Do a little bit of refactoring of the namespaces 2022-09-20 00:14:17 +00:00
Eric Wang
dfebc888a7 Add repository 2022-09-20 00:10:16 +00:00
Eric Wang
77de3afc7e Fix navigation bar 2022-09-18 02:22:40 +00:00
Eric Wang
7e2fec811e Fix preflight injection 2022-09-18 01:31:51 +00:00
Eric Wang
e6348c9af6 Fix tabs 2022-09-18 01:14:21 +00:00
Eric Wang
6231b788bd Add cron job to update runners 2022-09-17 19:12:43 +00:00
Eric Wang
ed39f756ef Fix server creation service 2022-09-17 18:01:00 +00:00
Eric Wang
00c9774f07 Update building prompt 2022-09-17 04:56:12 +00:00
Eric Wang
74cdee9271 Add activity api to frontend 2022-09-17 02:32:25 +00:00
Eric Wang
daf2faafa4 Fix websockets 2022-09-17 01:00:47 +00:00
Eric Wang
9c420d05d4 Fix update service 2022-09-15 00:38:07 +00:00
Eric Wang
22d2e642bc Add opcache 2022-09-15 00:23:22 +00:00
Eric Wang
28bdd4e427
Create CONTRIBUTOR_LICENSE_AGREEMENT 2022-09-12 20:54:49 -05:00
Eric Wang
24a9e76bb8 Add activity broadcasting 2022-09-12 22:44:41 +00:00
Eric Wang
d18331cbb6 Rename install to build 2022-09-12 22:18:18 +00:00
Eric Wang
c64158cbe8 Rename install to build 2022-09-12 22:13:51 +00:00
Eric Wang
8d4109a770 Add multiple IPs support 2022-09-11 19:01:34 +00:00
Eric Wang
f0823481db Refactor validation rules into one file 2022-09-11 02:34:35 +00:00
Eric Wang
a956a8fa55 Refactor constructors and add logging to installer 2022-09-11 01:31:44 +00:00
Eric Wang
a8e50de9de Add Runner commands 2022-09-10 15:57:30 +00:00
Eric Wang
8e323c5fda Do some refactoring 2022-09-10 03:20:54 +00:00
Eric Wang
1ce801108a Fix timestamps and missing dependencies 2022-09-10 02:46:13 +00:00
Eric Wang
c52b58c853 Add Activity Provider and refactor constructors 2022-09-10 02:35:23 +00:00
Eric Wang
6e671fe544 Start adding logging in server installations 2022-09-09 23:29:33 +00:00
Eric Wang
9fa723fdbb Add middlewares and refactor middlewares 2022-09-09 22:33:51 +00:00
Eric Wang
e2b5945b7b Add activity log service 2022-09-09 22:22:14 +00:00
Eric Wang
19c9fadb12
Delete public/vendor/telescope directory 2022-09-06 21:05:15 -05:00
Eric Wang
f08f362a90 Add websockets 2022-09-07 02:01:52 +00:00
Eric Wang
53a8a1c883 Update icons for snapshots and backups 2022-09-07 01:25:07 +00:00
Eric Wang
b14df895cb Add paginators to admin area 2022-09-07 01:16:58 +00:00
Eric Wang
364f0fc2d4 Allow patch operations on specifications 2022-09-06 05:23:47 +00:00
Eric Wang
66ad187ed3 Fix factories and add pagination without buttons 2022-09-06 05:00:30 +00:00
Eric Wang
6cb26134c5 Fix undefined disk and cache server details 2022-09-06 04:39:57 +00:00
Eric Wang
f4329af025 Remove used imports 2022-09-06 04:32:20 +00:00
Eric Wang
576feeae3b Refactor "configuration" to "config" 2022-09-06 04:25:48 +00:00
Eric Wang
86945cf2f7 Replace optional with null 2022-09-06 03:33:12 +00:00
Eric Wang
1d318e36f7 Refactor most of backend to Laravel Data 2022-09-06 03:30:49 +00:00
Eric Wang
208de6513f Strongly type detailservice and update xdebug 2022-09-04 04:42:53 +00:00
Eric Wang
9855c99e54 Strongly type detailservice and update xdebug 2022-09-04 04:42:52 +00:00
Eric Wang
10bc4f53cd Fix markdown 2022-09-03 21:03:07 +00:00
Eric Wang
62899e01a6 Update guide for xdebug 2022-09-03 21:01:44 +00:00
Eric Wang
51f13bfead Update disk array 2022-09-03 20:41:39 +00:00
Eric Wang
e1d7f4d174 Remove debug statement 2022-09-03 20:37:25 +00:00
Eric Wang
5ab3938ab1 Add Xdebug 2022-09-03 19:36:12 +00:00
Eric Wang
8bcaebe8c3 Filter cdroms from disks list 2022-09-03 15:51:13 +00:00
Eric Wang
33f54ad697 Fix misspelling 2022-09-03 05:20:13 +00:00
Eric Wang
4fa45c4a8e Add Data Transfer Object 2022-09-03 04:12:37 +00:00
Eric Wang
49ca833736 Rename worker and add scheduler to supervisor 2022-09-03 01:12:59 +00:00
Eric Wang
5695b6c21f Merge branch 'master' of https://github.com/Performave/convoy 2022-09-03 00:57:27 +00:00
Eric Wang
b6d40bf947 Remove Telescope 2022-09-03 00:57:26 +00:00
Eric Wang
1494d16d86
Change default app name 2022-09-01 22:00:08 -05:00
Eric Wang
fb9bfdaace
Fix missing unzip problem 2022-08-31 17:58:43 -05:00
Eric Wang
5df076e463
Update README.md 2022-08-30 18:29:02 -05:00
Eric Wang
2f8c797839
Add discord server 2022-08-30 18:28:54 -05:00
Eric Wang
ab3c75137a Refactor search queries and extend time out 2022-08-22 02:59:51 +00:00
Eric Wang
55792958ab Refactor search queries and extend timeout 2022-08-22 02:59:42 +00:00
Eric Wang
3fcdf8fbd3 Update frontend and make reinstallations stable 2022-08-21 20:56:24 +00:00
Eric Wang
a7d2ba7651 Refactor search APIs and hide node credentials 2022-08-21 20:01:15 +00:00
Eric Wang
2d0446967e Fix cannot update cluster 2022-08-21 02:24:17 +00:00
Eric Wang
5bf98b72ec update node without changing credentials 2022-08-20 05:39:18 +00:00
Eric Wang
9a13171f7d Wait for server to delete before proceeding 2022-08-19 04:10:11 +00:00
Eric Wang
28de068edc Fix VncService in Proxmox VE 7.2 2022-08-19 00:18:15 +00:00
1053 changed files with 46914 additions and 21033 deletions

818
.editorconfig Normal file
View file

@ -0,0 +1,818 @@
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides =
ij_wrap_on_typing = false
[*.blade.php]
ij_blade_keep_indents_on_empty_lines = false
[*.css]
ij_css_align_closing_brace_with_properties = false
ij_css_blank_lines_around_nested_selector = 1
ij_css_blank_lines_between_blocks = 1
ij_css_block_comment_add_space = false
ij_css_brace_placement = end_of_line
ij_css_enforce_quotes_on_format = false
ij_css_hex_color_long_format = false
ij_css_hex_color_lower_case = false
ij_css_hex_color_short_format = false
ij_css_hex_color_upper_case = false
ij_css_keep_blank_lines_in_code = 2
ij_css_keep_indents_on_empty_lines = false
ij_css_keep_single_line_blocks = false
ij_css_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
ij_css_space_after_colon = true
ij_css_space_before_opening_brace = true
ij_css_use_double_quotes = true
ij_css_value_alignment = do_not_align
[*.feature]
indent_size = 2
ij_gherkin_keep_indents_on_empty_lines = false
[*.less]
indent_size = 2
ij_less_align_closing_brace_with_properties = false
ij_less_blank_lines_around_nested_selector = 1
ij_less_blank_lines_between_blocks = 1
ij_less_block_comment_add_space = false
ij_less_brace_placement = 0
ij_less_enforce_quotes_on_format = false
ij_less_hex_color_long_format = false
ij_less_hex_color_lower_case = false
ij_less_hex_color_short_format = false
ij_less_hex_color_upper_case = false
ij_less_keep_blank_lines_in_code = 2
ij_less_keep_indents_on_empty_lines = false
ij_less_keep_single_line_blocks = false
ij_less_line_comment_add_space = false
ij_less_line_comment_at_first_column = false
ij_less_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
ij_less_space_after_colon = true
ij_less_space_before_opening_brace = true
ij_less_use_double_quotes = true
ij_less_value_alignment = 0
[*.sass]
indent_size = 2
ij_sass_align_closing_brace_with_properties = false
ij_sass_blank_lines_around_nested_selector = 1
ij_sass_blank_lines_between_blocks = 1
ij_sass_brace_placement = 0
ij_sass_enforce_quotes_on_format = false
ij_sass_hex_color_long_format = false
ij_sass_hex_color_lower_case = false
ij_sass_hex_color_short_format = false
ij_sass_hex_color_upper_case = false
ij_sass_keep_blank_lines_in_code = 2
ij_sass_keep_indents_on_empty_lines = false
ij_sass_keep_single_line_blocks = false
ij_sass_line_comment_add_space = false
ij_sass_line_comment_at_first_column = false
ij_sass_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
ij_sass_space_after_colon = true
ij_sass_space_before_opening_brace = true
ij_sass_use_double_quotes = true
ij_sass_value_alignment = 0
[*.scss]
indent_size = 2
ij_scss_align_closing_brace_with_properties = false
ij_scss_blank_lines_around_nested_selector = 1
ij_scss_blank_lines_between_blocks = 1
ij_scss_block_comment_add_space = false
ij_scss_brace_placement = 0
ij_scss_enforce_quotes_on_format = false
ij_scss_hex_color_long_format = false
ij_scss_hex_color_lower_case = false
ij_scss_hex_color_short_format = false
ij_scss_hex_color_upper_case = false
ij_scss_keep_blank_lines_in_code = 2
ij_scss_keep_indents_on_empty_lines = false
ij_scss_keep_single_line_blocks = false
ij_scss_line_comment_add_space = false
ij_scss_line_comment_at_first_column = false
ij_scss_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
ij_scss_space_after_colon = true
ij_scss_space_before_opening_brace = true
ij_scss_use_double_quotes = true
ij_scss_value_alignment = 0
[*.twig]
ij_twig_keep_indents_on_empty_lines = false
ij_twig_spaces_inside_comments_delimiters = true
ij_twig_spaces_inside_delimiters = true
ij_twig_spaces_inside_variable_delimiters = true
[*.vue]
indent_size = 2
tab_width = 2
ij_continuation_indent_size = 4
ij_vue_indent_children_of_top_level = template
ij_vue_interpolation_new_line_after_start_delimiter = true
ij_vue_interpolation_new_line_before_end_delimiter = true
ij_vue_interpolation_wrap = off
ij_vue_keep_indents_on_empty_lines = false
ij_vue_spaces_within_interpolation_expressions = true
[.editorconfig]
ij_editorconfig_align_group_field_declarations = false
ij_editorconfig_space_after_colon = false
ij_editorconfig_space_after_comma = true
ij_editorconfig_space_before_colon = false
ij_editorconfig_space_before_comma = false
ij_editorconfig_spaces_around_assignment_operators = true
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.rng,*.tld,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,phpunit.xml.dist}]
ij_xml_align_attributes = true
ij_xml_align_text = false
ij_xml_attribute_wrap = normal
ij_xml_block_comment_add_space = false
ij_xml_block_comment_at_first_column = true
ij_xml_keep_blank_lines = 2
ij_xml_keep_indents_on_empty_lines = false
ij_xml_keep_line_breaks = true
ij_xml_keep_line_breaks_in_text = true
ij_xml_keep_whitespaces = false
ij_xml_keep_whitespaces_around_cdata = preserve
ij_xml_keep_whitespaces_inside_cdata = false
ij_xml_line_comment_at_first_column = true
ij_xml_space_after_tag_name = false
ij_xml_space_around_equals_in_attribute = false
ij_xml_space_inside_empty_tag = false
ij_xml_text_wrap = normal
[{*.ats,*.cts,*.mts,*.ts}]
ij_continuation_indent_size = 4
ij_typescript_align_imports = false
ij_typescript_align_multiline_array_initializer_expression = false
ij_typescript_align_multiline_binary_operation = false
ij_typescript_align_multiline_chained_methods = false
ij_typescript_align_multiline_extends_list = false
ij_typescript_align_multiline_for = true
ij_typescript_align_multiline_parameters = true
ij_typescript_align_multiline_parameters_in_calls = false
ij_typescript_align_multiline_ternary_operation = false
ij_typescript_align_object_properties = 0
ij_typescript_align_union_types = false
ij_typescript_align_var_statements = 0
ij_typescript_array_initializer_new_line_after_left_brace = false
ij_typescript_array_initializer_right_brace_on_new_line = false
ij_typescript_array_initializer_wrap = off
ij_typescript_assignment_wrap = off
ij_typescript_binary_operation_sign_on_next_line = false
ij_typescript_binary_operation_wrap = off
ij_typescript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/**
ij_typescript_blank_lines_after_imports = 1
ij_typescript_blank_lines_around_class = 1
ij_typescript_blank_lines_around_field = 0
ij_typescript_blank_lines_around_field_in_interface = 0
ij_typescript_blank_lines_around_function = 1
ij_typescript_blank_lines_around_method = 1
ij_typescript_blank_lines_around_method_in_interface = 1
ij_typescript_block_brace_style = end_of_line
ij_typescript_block_comment_add_space = false
ij_typescript_block_comment_at_first_column = true
ij_typescript_call_parameters_new_line_after_left_paren = false
ij_typescript_call_parameters_right_paren_on_new_line = false
ij_typescript_call_parameters_wrap = off
ij_typescript_catch_on_new_line = false
ij_typescript_chained_call_dot_on_new_line = true
ij_typescript_class_brace_style = end_of_line
ij_typescript_comma_on_new_line = false
ij_typescript_do_while_brace_force = never
ij_typescript_else_on_new_line = false
ij_typescript_enforce_trailing_comma = keep
ij_typescript_enum_constants_wrap = on_every_item
ij_typescript_extends_keyword_wrap = off
ij_typescript_extends_list_wrap = off
ij_typescript_field_prefix = _
ij_typescript_file_name_style = relaxed
ij_typescript_finally_on_new_line = false
ij_typescript_for_brace_force = never
ij_typescript_for_statement_new_line_after_left_paren = false
ij_typescript_for_statement_right_paren_on_new_line = false
ij_typescript_for_statement_wrap = off
ij_typescript_force_quote_style = false
ij_typescript_force_semicolon_style = false
ij_typescript_function_expression_brace_style = end_of_line
ij_typescript_if_brace_force = never
ij_typescript_import_merge_members = global
ij_typescript_import_prefer_absolute_path = global
ij_typescript_import_sort_members = true
ij_typescript_import_sort_module_name = false
ij_typescript_import_use_node_resolution = true
ij_typescript_imports_wrap = on_every_item
ij_typescript_indent_case_from_switch = true
ij_typescript_indent_chained_calls = true
ij_typescript_indent_package_children = 0
ij_typescript_jsdoc_include_types = false
ij_typescript_jsx_attribute_value = braces
ij_typescript_keep_blank_lines_in_code = 2
ij_typescript_keep_first_column_comment = true
ij_typescript_keep_indents_on_empty_lines = false
ij_typescript_keep_line_breaks = true
ij_typescript_keep_simple_blocks_in_one_line = false
ij_typescript_keep_simple_methods_in_one_line = false
ij_typescript_line_comment_add_space = true
ij_typescript_line_comment_at_first_column = false
ij_typescript_method_brace_style = end_of_line
ij_typescript_method_call_chain_wrap = off
ij_typescript_method_parameters_new_line_after_left_paren = false
ij_typescript_method_parameters_right_paren_on_new_line = false
ij_typescript_method_parameters_wrap = off
ij_typescript_object_literal_wrap = on_every_item
ij_typescript_object_types_wrap = on_every_item
ij_typescript_parentheses_expression_new_line_after_left_paren = false
ij_typescript_parentheses_expression_right_paren_on_new_line = false
ij_typescript_place_assignment_sign_on_next_line = false
ij_typescript_prefer_as_type_cast = false
ij_typescript_prefer_explicit_types_function_expression_returns = false
ij_typescript_prefer_explicit_types_function_returns = false
ij_typescript_prefer_explicit_types_vars_fields = false
ij_typescript_prefer_parameters_wrap = false
ij_typescript_property_prefix =
ij_typescript_reformat_c_style_comments = false
ij_typescript_space_after_colon = true
ij_typescript_space_after_comma = true
ij_typescript_space_after_dots_in_rest_parameter = false
ij_typescript_space_after_generator_mult = true
ij_typescript_space_after_property_colon = true
ij_typescript_space_after_quest = true
ij_typescript_space_after_type_colon = true
ij_typescript_space_after_unary_not = false
ij_typescript_space_before_async_arrow_lparen = true
ij_typescript_space_before_catch_keyword = true
ij_typescript_space_before_catch_left_brace = true
ij_typescript_space_before_catch_parentheses = true
ij_typescript_space_before_class_lbrace = true
ij_typescript_space_before_class_left_brace = true
ij_typescript_space_before_colon = true
ij_typescript_space_before_comma = false
ij_typescript_space_before_do_left_brace = true
ij_typescript_space_before_else_keyword = true
ij_typescript_space_before_else_left_brace = true
ij_typescript_space_before_finally_keyword = true
ij_typescript_space_before_finally_left_brace = true
ij_typescript_space_before_for_left_brace = true
ij_typescript_space_before_for_parentheses = true
ij_typescript_space_before_for_semicolon = false
ij_typescript_space_before_function_left_parenth = true
ij_typescript_space_before_generator_mult = false
ij_typescript_space_before_if_left_brace = true
ij_typescript_space_before_if_parentheses = true
ij_typescript_space_before_method_call_parentheses = false
ij_typescript_space_before_method_left_brace = true
ij_typescript_space_before_method_parentheses = false
ij_typescript_space_before_property_colon = false
ij_typescript_space_before_quest = true
ij_typescript_space_before_switch_left_brace = true
ij_typescript_space_before_switch_parentheses = true
ij_typescript_space_before_try_left_brace = true
ij_typescript_space_before_type_colon = false
ij_typescript_space_before_unary_not = false
ij_typescript_space_before_while_keyword = true
ij_typescript_space_before_while_left_brace = true
ij_typescript_space_before_while_parentheses = true
ij_typescript_spaces_around_additive_operators = true
ij_typescript_spaces_around_arrow_function_operator = true
ij_typescript_spaces_around_assignment_operators = true
ij_typescript_spaces_around_bitwise_operators = true
ij_typescript_spaces_around_equality_operators = true
ij_typescript_spaces_around_logical_operators = true
ij_typescript_spaces_around_multiplicative_operators = true
ij_typescript_spaces_around_relational_operators = true
ij_typescript_spaces_around_shift_operators = true
ij_typescript_spaces_around_unary_operator = false
ij_typescript_spaces_within_array_initializer_brackets = false
ij_typescript_spaces_within_brackets = false
ij_typescript_spaces_within_catch_parentheses = false
ij_typescript_spaces_within_for_parentheses = false
ij_typescript_spaces_within_if_parentheses = false
ij_typescript_spaces_within_imports = false
ij_typescript_spaces_within_interpolation_expressions = false
ij_typescript_spaces_within_method_call_parentheses = false
ij_typescript_spaces_within_method_parentheses = false
ij_typescript_spaces_within_object_literal_braces = false
ij_typescript_spaces_within_object_type_braces = true
ij_typescript_spaces_within_parentheses = false
ij_typescript_spaces_within_switch_parentheses = false
ij_typescript_spaces_within_type_assertion = false
ij_typescript_spaces_within_union_types = true
ij_typescript_spaces_within_while_parentheses = false
ij_typescript_special_else_if_treatment = true
ij_typescript_ternary_operation_signs_on_next_line = false
ij_typescript_ternary_operation_wrap = off
ij_typescript_union_types_wrap = on_every_item
ij_typescript_use_chained_calls_group_indents = false
ij_typescript_use_double_quotes = true
ij_typescript_use_explicit_js_extension = auto
ij_typescript_use_path_mapping = always
ij_typescript_use_public_modifier = false
ij_typescript_use_semicolon_after_statement = true
ij_typescript_var_declaration_wrap = normal
ij_typescript_while_brace_force = never
ij_typescript_while_on_new_line = false
ij_typescript_wrap_comments = false
[{*.bash,*.sh,*.zsh}]
indent_size = 2
tab_width = 2
ij_shell_binary_ops_start_line = false
ij_shell_keep_column_alignment_padding = false
ij_shell_minify_program = false
ij_shell_redirect_followed_by_space = false
ij_shell_switch_cases_indented = false
ij_shell_use_unix_line_separator = true
[{*.cjs,*.js}]
ij_continuation_indent_size = 4
ij_javascript_align_imports = false
ij_javascript_align_multiline_array_initializer_expression = false
ij_javascript_align_multiline_binary_operation = false
ij_javascript_align_multiline_chained_methods = false
ij_javascript_align_multiline_extends_list = false
ij_javascript_align_multiline_for = true
ij_javascript_align_multiline_parameters = true
ij_javascript_align_multiline_parameters_in_calls = false
ij_javascript_align_multiline_ternary_operation = false
ij_javascript_align_object_properties = 0
ij_javascript_align_union_types = false
ij_javascript_align_var_statements = 0
ij_javascript_array_initializer_new_line_after_left_brace = false
ij_javascript_array_initializer_right_brace_on_new_line = false
ij_javascript_array_initializer_wrap = off
ij_javascript_assignment_wrap = off
ij_javascript_binary_operation_sign_on_next_line = false
ij_javascript_binary_operation_wrap = off
ij_javascript_blacklist_imports = rxjs/Rx,node_modules/**,**/node_modules/**,@angular/material,@angular/material/typings/**
ij_javascript_blank_lines_after_imports = 1
ij_javascript_blank_lines_around_class = 1
ij_javascript_blank_lines_around_field = 0
ij_javascript_blank_lines_around_function = 1
ij_javascript_blank_lines_around_method = 1
ij_javascript_block_brace_style = end_of_line
ij_javascript_block_comment_add_space = false
ij_javascript_block_comment_at_first_column = true
ij_javascript_call_parameters_new_line_after_left_paren = false
ij_javascript_call_parameters_right_paren_on_new_line = false
ij_javascript_call_parameters_wrap = off
ij_javascript_catch_on_new_line = false
ij_javascript_chained_call_dot_on_new_line = true
ij_javascript_class_brace_style = end_of_line
ij_javascript_comma_on_new_line = false
ij_javascript_do_while_brace_force = never
ij_javascript_else_on_new_line = false
ij_javascript_enforce_trailing_comma = keep
ij_javascript_extends_keyword_wrap = off
ij_javascript_extends_list_wrap = off
ij_javascript_field_prefix = _
ij_javascript_file_name_style = relaxed
ij_javascript_finally_on_new_line = false
ij_javascript_for_brace_force = never
ij_javascript_for_statement_new_line_after_left_paren = false
ij_javascript_for_statement_right_paren_on_new_line = false
ij_javascript_for_statement_wrap = off
ij_javascript_force_quote_style = false
ij_javascript_force_semicolon_style = false
ij_javascript_function_expression_brace_style = end_of_line
ij_javascript_if_brace_force = never
ij_javascript_import_merge_members = global
ij_javascript_import_prefer_absolute_path = global
ij_javascript_import_sort_members = true
ij_javascript_import_sort_module_name = false
ij_javascript_import_use_node_resolution = true
ij_javascript_imports_wrap = on_every_item
ij_javascript_indent_case_from_switch = true
ij_javascript_indent_chained_calls = true
ij_javascript_indent_package_children = 0
ij_javascript_jsx_attribute_value = braces
ij_javascript_keep_blank_lines_in_code = 2
ij_javascript_keep_first_column_comment = true
ij_javascript_keep_indents_on_empty_lines = false
ij_javascript_keep_line_breaks = true
ij_javascript_keep_simple_blocks_in_one_line = false
ij_javascript_keep_simple_methods_in_one_line = false
ij_javascript_line_comment_add_space = true
ij_javascript_line_comment_at_first_column = false
ij_javascript_method_brace_style = end_of_line
ij_javascript_method_call_chain_wrap = off
ij_javascript_method_parameters_new_line_after_left_paren = false
ij_javascript_method_parameters_right_paren_on_new_line = false
ij_javascript_method_parameters_wrap = off
ij_javascript_object_literal_wrap = on_every_item
ij_javascript_object_types_wrap = on_every_item
ij_javascript_parentheses_expression_new_line_after_left_paren = false
ij_javascript_parentheses_expression_right_paren_on_new_line = false
ij_javascript_place_assignment_sign_on_next_line = false
ij_javascript_prefer_as_type_cast = false
ij_javascript_prefer_explicit_types_function_expression_returns = false
ij_javascript_prefer_explicit_types_function_returns = false
ij_javascript_prefer_explicit_types_vars_fields = false
ij_javascript_prefer_parameters_wrap = false
ij_javascript_property_prefix =
ij_javascript_reformat_c_style_comments = false
ij_javascript_space_after_colon = true
ij_javascript_space_after_comma = true
ij_javascript_space_after_dots_in_rest_parameter = false
ij_javascript_space_after_generator_mult = true
ij_javascript_space_after_property_colon = true
ij_javascript_space_after_quest = true
ij_javascript_space_after_type_colon = true
ij_javascript_space_after_unary_not = false
ij_javascript_space_before_async_arrow_lparen = true
ij_javascript_space_before_catch_keyword = true
ij_javascript_space_before_catch_left_brace = true
ij_javascript_space_before_catch_parentheses = true
ij_javascript_space_before_class_lbrace = true
ij_javascript_space_before_class_left_brace = true
ij_javascript_space_before_colon = true
ij_javascript_space_before_comma = false
ij_javascript_space_before_do_left_brace = true
ij_javascript_space_before_else_keyword = true
ij_javascript_space_before_else_left_brace = true
ij_javascript_space_before_finally_keyword = true
ij_javascript_space_before_finally_left_brace = true
ij_javascript_space_before_for_left_brace = true
ij_javascript_space_before_for_parentheses = true
ij_javascript_space_before_for_semicolon = false
ij_javascript_space_before_function_left_parenth = true
ij_javascript_space_before_generator_mult = false
ij_javascript_space_before_if_left_brace = true
ij_javascript_space_before_if_parentheses = true
ij_javascript_space_before_method_call_parentheses = false
ij_javascript_space_before_method_left_brace = true
ij_javascript_space_before_method_parentheses = false
ij_javascript_space_before_property_colon = false
ij_javascript_space_before_quest = true
ij_javascript_space_before_switch_left_brace = true
ij_javascript_space_before_switch_parentheses = true
ij_javascript_space_before_try_left_brace = true
ij_javascript_space_before_type_colon = false
ij_javascript_space_before_unary_not = false
ij_javascript_space_before_while_keyword = true
ij_javascript_space_before_while_left_brace = true
ij_javascript_space_before_while_parentheses = true
ij_javascript_spaces_around_additive_operators = true
ij_javascript_spaces_around_arrow_function_operator = true
ij_javascript_spaces_around_assignment_operators = true
ij_javascript_spaces_around_bitwise_operators = true
ij_javascript_spaces_around_equality_operators = true
ij_javascript_spaces_around_logical_operators = true
ij_javascript_spaces_around_multiplicative_operators = true
ij_javascript_spaces_around_relational_operators = true
ij_javascript_spaces_around_shift_operators = true
ij_javascript_spaces_around_unary_operator = false
ij_javascript_spaces_within_array_initializer_brackets = false
ij_javascript_spaces_within_brackets = false
ij_javascript_spaces_within_catch_parentheses = false
ij_javascript_spaces_within_for_parentheses = false
ij_javascript_spaces_within_if_parentheses = false
ij_javascript_spaces_within_imports = false
ij_javascript_spaces_within_interpolation_expressions = false
ij_javascript_spaces_within_method_call_parentheses = false
ij_javascript_spaces_within_method_parentheses = false
ij_javascript_spaces_within_object_literal_braces = false
ij_javascript_spaces_within_object_type_braces = true
ij_javascript_spaces_within_parentheses = false
ij_javascript_spaces_within_switch_parentheses = false
ij_javascript_spaces_within_type_assertion = false
ij_javascript_spaces_within_union_types = true
ij_javascript_spaces_within_while_parentheses = false
ij_javascript_special_else_if_treatment = true
ij_javascript_ternary_operation_signs_on_next_line = false
ij_javascript_ternary_operation_wrap = off
ij_javascript_union_types_wrap = on_every_item
ij_javascript_use_chained_calls_group_indents = false
ij_javascript_use_double_quotes = true
ij_javascript_use_explicit_js_extension = auto
ij_javascript_use_path_mapping = always
ij_javascript_use_public_modifier = false
ij_javascript_use_semicolon_after_statement = true
ij_javascript_var_declaration_wrap = normal
ij_javascript_while_brace_force = never
ij_javascript_while_on_new_line = false
ij_javascript_wrap_comments = false
[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
max_line_length = 100
ij_continuation_indent_size = 4
ij_php_align_assignments = false
ij_php_align_class_constants = false
ij_php_align_enum_cases = false
ij_php_align_group_field_declarations = false
ij_php_align_inline_comments = false
ij_php_align_key_value_pairs = false
ij_php_align_match_arm_bodies = false
ij_php_align_multiline_array_initializer_expression = false
ij_php_align_multiline_binary_operation = false
ij_php_align_multiline_chained_methods = true
ij_php_align_multiline_extends_list = false
ij_php_align_multiline_for = true
ij_php_align_multiline_parameters = true
ij_php_align_multiline_parameters_in_calls = false
ij_php_align_multiline_ternary_operation = false
ij_php_align_named_arguments = true
ij_php_align_phpdoc_comments = false
ij_php_align_phpdoc_param_names = false
ij_php_anonymous_brace_style = end_of_line
ij_php_api_weight = 28
ij_php_array_initializer_new_line_after_left_brace = false
ij_php_array_initializer_right_brace_on_new_line = false
ij_php_array_initializer_wrap = off
ij_php_assignment_wrap = off
ij_php_attributes_wrap = off
ij_php_author_weight = 28
ij_php_binary_operation_sign_on_next_line = false
ij_php_binary_operation_wrap = off
ij_php_blank_lines_after_class_header = 0
ij_php_blank_lines_after_function = 1
ij_php_blank_lines_after_imports = 1
ij_php_blank_lines_after_opening_tag = 0
ij_php_blank_lines_after_package = 0
ij_php_blank_lines_around_class = 1
ij_php_blank_lines_around_constants = 0
ij_php_blank_lines_around_enum_cases = 0
ij_php_blank_lines_around_field = 0
ij_php_blank_lines_around_method = 1
ij_php_blank_lines_before_class_end = 0
ij_php_blank_lines_before_imports = 1
ij_php_blank_lines_before_method_body = 0
ij_php_blank_lines_before_package = 1
ij_php_blank_lines_before_return_statement = 0
ij_php_blank_lines_between_imports = 0
ij_php_block_brace_style = end_of_line
ij_php_call_parameters_new_line_after_left_paren = true
ij_php_call_parameters_right_paren_on_new_line = true
ij_php_call_parameters_wrap = normal
ij_php_catch_on_new_line = false
ij_php_category_weight = 28
ij_php_class_brace_style = next_line
ij_php_comma_after_last_argument = true
ij_php_comma_after_last_array_element = true
ij_php_comma_after_last_closure_use_var = true
ij_php_comma_after_last_match_arm = true
ij_php_comma_after_last_parameter = true
ij_php_concat_spaces = true
ij_php_copyright_weight = 28
ij_php_deprecated_weight = 28
ij_php_do_while_brace_force = never
ij_php_else_if_style = combine
ij_php_else_on_new_line = false
ij_php_example_weight = 28
ij_php_extends_keyword_wrap = off
ij_php_extends_list_wrap = off
ij_php_fields_default_visibility = private
ij_php_filesource_weight = 28
ij_php_finally_on_new_line = false
ij_php_for_brace_force = never
ij_php_for_statement_new_line_after_left_paren = false
ij_php_for_statement_right_paren_on_new_line = false
ij_php_for_statement_wrap = off
ij_php_force_empty_methods_in_one_line = false
ij_php_force_short_declaration_array_style = true
ij_php_getters_setters_naming_style = camel_case
ij_php_getters_setters_order_style = getters_first
ij_php_global_weight = 28
ij_php_group_use_wrap = on_every_item
ij_php_if_brace_force = never
ij_php_if_lparen_on_next_line = false
ij_php_if_rparen_on_next_line = false
ij_php_ignore_weight = 28
ij_php_import_sorting = alphabetic
ij_php_indent_break_from_case = true
ij_php_indent_case_from_switch = true
ij_php_indent_code_in_php_tags = false
ij_php_internal_weight = 28
ij_php_keep_blank_lines_after_lbrace = 2
ij_php_keep_blank_lines_before_right_brace = 2
ij_php_keep_blank_lines_in_code = 2
ij_php_keep_blank_lines_in_declarations = 2
ij_php_keep_control_statement_in_one_line = true
ij_php_keep_first_column_comment = true
ij_php_keep_indents_on_empty_lines = false
ij_php_keep_line_breaks = true
ij_php_keep_rparen_and_lbrace_on_one_line = false
ij_php_keep_simple_classes_in_one_line = false
ij_php_keep_simple_methods_in_one_line = false
ij_php_lambda_brace_style = end_of_line
ij_php_license_weight = 28
ij_php_line_comment_add_space = false
ij_php_line_comment_at_first_column = true
ij_php_link_weight = 28
ij_php_lower_case_boolean_const = true
ij_php_lower_case_keywords = true
ij_php_lower_case_null_const = true
ij_php_method_brace_style = next_line
ij_php_method_call_chain_wrap = normal
ij_php_method_parameters_new_line_after_left_paren = true
ij_php_method_parameters_right_paren_on_new_line = true
ij_php_method_parameters_wrap = normal
ij_php_method_weight = 28
ij_php_modifier_list_wrap = false
ij_php_multiline_chained_calls_semicolon_on_new_line = false
ij_php_namespace_brace_style = 1
ij_php_new_line_after_php_opening_tag = true
ij_php_null_type_position = in_the_end
ij_php_package_weight = 28
ij_php_param_weight = 0
ij_php_parameters_attributes_wrap = off
ij_php_parentheses_expression_new_line_after_left_paren = false
ij_php_parentheses_expression_right_paren_on_new_line = false
ij_php_phpdoc_blank_line_before_tags = false
ij_php_phpdoc_blank_lines_around_parameters = false
ij_php_phpdoc_keep_blank_lines = true
ij_php_phpdoc_param_spaces_between_name_and_description = 1
ij_php_phpdoc_param_spaces_between_tag_and_type = 1
ij_php_phpdoc_param_spaces_between_type_and_name = 1
ij_php_phpdoc_use_fqcn = false
ij_php_phpdoc_wrap_long_lines = false
ij_php_place_assignment_sign_on_next_line = false
ij_php_place_parens_for_constructor = 1
ij_php_property_read_weight = 28
ij_php_property_weight = 28
ij_php_property_write_weight = 28
ij_php_return_type_on_new_line = false
ij_php_return_weight = 1
ij_php_see_weight = 28
ij_php_since_weight = 28
ij_php_sort_phpdoc_elements = true
ij_php_space_after_colon = true
ij_php_space_after_colon_in_enum_backed_type = true
ij_php_space_after_colon_in_named_argument = true
ij_php_space_after_colon_in_return_type = true
ij_php_space_after_comma = true
ij_php_space_after_for_semicolon = true
ij_php_space_after_quest = true
ij_php_space_after_type_cast = false
ij_php_space_after_unary_not = false
ij_php_space_before_array_initializer_left_brace = false
ij_php_space_before_catch_keyword = true
ij_php_space_before_catch_left_brace = true
ij_php_space_before_catch_parentheses = true
ij_php_space_before_class_left_brace = true
ij_php_space_before_closure_left_parenthesis = true
ij_php_space_before_colon = true
ij_php_space_before_colon_in_enum_backed_type = false
ij_php_space_before_colon_in_named_argument = false
ij_php_space_before_colon_in_return_type = false
ij_php_space_before_comma = false
ij_php_space_before_do_left_brace = true
ij_php_space_before_else_keyword = true
ij_php_space_before_else_left_brace = true
ij_php_space_before_finally_keyword = true
ij_php_space_before_finally_left_brace = true
ij_php_space_before_for_left_brace = true
ij_php_space_before_for_parentheses = true
ij_php_space_before_for_semicolon = false
ij_php_space_before_if_left_brace = true
ij_php_space_before_if_parentheses = true
ij_php_space_before_method_call_parentheses = false
ij_php_space_before_method_left_brace = true
ij_php_space_before_method_parentheses = false
ij_php_space_before_quest = true
ij_php_space_before_short_closure_left_parenthesis = true
ij_php_space_before_switch_left_brace = true
ij_php_space_before_switch_parentheses = true
ij_php_space_before_try_left_brace = true
ij_php_space_before_unary_not = false
ij_php_space_before_while_keyword = true
ij_php_space_before_while_left_brace = true
ij_php_space_before_while_parentheses = true
ij_php_space_between_ternary_quest_and_colon = false
ij_php_spaces_around_additive_operators = true
ij_php_spaces_around_arrow = false
ij_php_spaces_around_assignment_in_declare = false
ij_php_spaces_around_assignment_operators = true
ij_php_spaces_around_bitwise_operators = true
ij_php_spaces_around_equality_operators = true
ij_php_spaces_around_logical_operators = true
ij_php_spaces_around_multiplicative_operators = true
ij_php_spaces_around_null_coalesce_operator = true
ij_php_spaces_around_pipe_in_union_type = false
ij_php_spaces_around_relational_operators = true
ij_php_spaces_around_shift_operators = true
ij_php_spaces_around_unary_operator = false
ij_php_spaces_around_var_within_brackets = false
ij_php_spaces_within_array_initializer_braces = false
ij_php_spaces_within_brackets = false
ij_php_spaces_within_catch_parentheses = false
ij_php_spaces_within_for_parentheses = false
ij_php_spaces_within_if_parentheses = false
ij_php_spaces_within_method_call_parentheses = false
ij_php_spaces_within_method_parentheses = false
ij_php_spaces_within_parentheses = false
ij_php_spaces_within_short_echo_tags = true
ij_php_spaces_within_switch_parentheses = false
ij_php_spaces_within_while_parentheses = false
ij_php_special_else_if_treatment = false
ij_php_subpackage_weight = 28
ij_php_ternary_operation_signs_on_next_line = false
ij_php_ternary_operation_wrap = off
ij_php_throws_weight = 2
ij_php_todo_weight = 28
ij_php_treat_multiline_arrays_and_lambdas_multiline = false
ij_php_unknown_tag_weight = 28
ij_php_upper_case_boolean_const = false
ij_php_upper_case_null_const = false
ij_php_uses_weight = 28
ij_php_var_weight = 28
ij_php_variable_naming_style = mixed
ij_php_version_weight = 28
ij_php_while_brace_force = never
ij_php_while_on_new_line = false
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,composer.lock,jest.config}]
indent_size = 2
ij_json_array_wrapping = split_into_lines
ij_json_keep_blank_lines_in_code = 0
ij_json_keep_indents_on_empty_lines = false
ij_json_keep_line_breaks = true
ij_json_keep_trailing_comma = false
ij_json_object_wrapping = split_into_lines
ij_json_property_alignment = do_not_align
ij_json_space_after_colon = true
ij_json_space_after_comma = true
ij_json_space_before_colon = false
ij_json_space_before_comma = false
ij_json_spaces_within_braces = false
ij_json_spaces_within_brackets = false
ij_json_wrap_long_lines = false
[{*.htm,*.html,*.ng,*.sht,*.shtm,*.shtml}]
ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3
ij_html_align_attributes = true
ij_html_align_text = false
ij_html_attribute_wrap = normal
ij_html_block_comment_add_space = false
ij_html_block_comment_at_first_column = true
ij_html_do_not_align_children_of_min_lines = 0
ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p
ij_html_do_not_indent_children_of_tags = html,body,thead,tbody,tfoot
ij_html_enforce_quotes = false
ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var
ij_html_keep_blank_lines = 2
ij_html_keep_indents_on_empty_lines = false
ij_html_keep_line_breaks = true
ij_html_keep_line_breaks_in_text = true
ij_html_keep_whitespaces = false
ij_html_keep_whitespaces_inside = span,pre,textarea
ij_html_line_comment_at_first_column = true
ij_html_new_line_after_last_attribute = never
ij_html_new_line_before_first_attribute = never
ij_html_quote_style = double
ij_html_remove_new_line_before_tags = br
ij_html_space_after_tag_name = false
ij_html_space_around_equality_in_attribute = false
ij_html_space_inside_empty_tag = false
ij_html_text_wrap = normal
[{*.http,*.rest}]
indent_size = 0
ij_continuation_indent_size = 4
ij_http-request_call_parameters_wrap = normal
ij_http-request_method_parameters_wrap = split_into_lines
ij_http-request_space_before_comma = true
ij_http-request_spaces_around_assignment_operators = true
[{*.markdown,*.md}]
ij_markdown_force_one_space_after_blockquote_symbol = true
ij_markdown_force_one_space_after_header_symbol = true
ij_markdown_force_one_space_after_list_bullet = true
ij_markdown_force_one_space_between_words = true
ij_markdown_format_tables = true
ij_markdown_insert_quote_arrows_on_wrap = true
ij_markdown_keep_indents_on_empty_lines = false
ij_markdown_keep_line_breaks_inside_text_blocks = true
ij_markdown_max_lines_around_block_elements = 1
ij_markdown_max_lines_around_header = 1
ij_markdown_max_lines_between_paragraphs = 1
ij_markdown_min_lines_around_block_elements = 1
ij_markdown_min_lines_around_header = 1
ij_markdown_min_lines_between_paragraphs = 1
ij_markdown_wrap_text_if_long = true
ij_markdown_wrap_text_inside_blockquotes = true
[{*.yaml,*.yml}]
indent_size = 2
ij_yaml_align_values_properties = do_not_align
ij_yaml_autoinsert_sequence_marker = true
ij_yaml_block_mapping_on_new_line = false
ij_yaml_indent_sequence_value = true
ij_yaml_keep_indents_on_empty_lines = false
ij_yaml_keep_line_breaks = true
ij_yaml_sequence_on_new_line = false
ij_yaml_space_before_colon = false
ij_yaml_spaces_within_braces = true
ij_yaml_spaces_within_brackets = true

38
.env.ci Normal file
View file

@ -0,0 +1,38 @@
APP_NAME=Convoy
APP_ENV=local
APP_KEY=base64:+5q+lnrWbT8DykRkTZS8JZ+mTU7Efwv35bnTCyff02w=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=database
DB_PORT=3306
DB_DATABASE=convoy
DB_USERNAME=convoy_user
DB_PASSWORD=YzLa2BCBwDGWVkpG
CACHE_DRIVER=redis
FILESYSTEM_DISK=local
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=525600
REDIS_HOST=redis
REDIS_PASSWORD=YzLa2BCBwDGWVkpG
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
PHP_XDEBUG=false
PHP_XDEBUG_MODE='debug'

View file

@ -1,4 +1,4 @@
APP_NAME=Laravel
APP_NAME=Convoy
APP_ENV=local
APP_KEY=
APP_DEBUG=true
@ -9,24 +9,20 @@ LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_HOST=database
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_DATABASE=convoy
DB_USERNAME=convoy_user
DB_PASSWORD=
DB_ROOT_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
CACHE_DRIVER=redis
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=525600
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_HOST=redis
REDIS_PASSWORD=
REDIS_PORT=6379
MAIL_MAILER=smtp
@ -38,26 +34,5 @@ MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
SCOUT_DRIVER=database
EXTERNAL_SECRET=
PHP_XDEBUG=false
PHP_XDEBUG_MODE='debug'

1
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1 @@
custom: ['https://donate.stripe.com/dR6dRIgbafyIaek000', 'https://console.convoypanel.com']

91
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View file

@ -0,0 +1,91 @@
name: Bug Report
description: Something isn't working quite right in the software.
labels: [ bug,not confirmed ]
body:
- type: markdown
attributes:
value: |
Bug reports should only be used for reporting issues with how the software works. For assistance installing this software, as well as debugging issues with dependencies, please use our [Discord server](https://discord.convoypanel.com).
- type: textarea
attributes:
label: Current Behavior
description: Please provide a clear & concise description of the issue.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: Please describe what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Steps to Reproduce
description: Please be as detailed as possible when providing steps to reproduce, failure to provide steps will result in this issue being closed.
validations:
required: true
- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.
- type: input
attributes:
label: Proxmox OS Version
description: The version of your Proxmox node
placeholder: 7.4-13
validations:
required: true
- type: input
attributes:
label: Operating System
description: The OS you are using on your own computer to use Convoy.
placeholder: Windows 11 22H2
validations:
required: true
- type: input
attributes:
label: Browser
description: Your browser and its version
placeholder: e.g. Chrome 69, Firefox 420, Chromium 69, Edge 420
validations:
required: true
- type: textarea
attributes:
label: Additional Context
description: Add any other context about the problem here.
- type: input
id: panel-version
attributes:
label: Panel Version
description: Version number of your Panel (latest is not a version)
placeholder: 3.10.0-beta
validations:
required: true
- type: input
id: panel-logs
attributes:
label: Error Logs
description: |
Check out [this page on our documentation](https://convoypanel.com/docs/project/support.html#collecting-panel-logs) for the log collector utility. You will need to run this on the server
hosting your instance of Convoy.
placeholder: "https://paste.frocdn.com/"
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](https://github.com/convoypanel/panel/issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues before opening this issue.
required: true
- label: I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
required: true

11
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: Installation Help
url: https://discord.convoypanel.com
about: Please visit our Discord for help with your installation.
- name: General Question
url: https://discord.convoypanel.com
about: Please visit our Discord for general questions about Convoy.
- name: Documentation
url: https://convoypanel.com
about: Our documentation may have an answer for your issue/question.

View file

@ -0,0 +1,30 @@
name: Feature Request
description: Suggest a new feature or improvement for the software.
labels: [enhancement]
body:
- type: checkboxes
attributes:
label: Is there an existing feature request for this?
description: Please [search here](https://github.com/convoypanel/panel/issues?q=is%3Aissue) to see if someone else has already suggested this.
options:
- label: I have searched the existing issues before opening this feature request.
required: true
- type: textarea
attributes:
label: Describe the feature you would like to see.
description: "A clear & concise description of the feature you'd like to have added, and what issues it would solve."
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like.
description: "You must explain how you'd like to see this feature implemented. Technical implementation details are not necessary, rather an idea of how you'd like to see this feature used."
validations:
required: true
- type: textarea
attributes:
label: Additional context to this request.
description: "Add any other context or screenshots about the feature request."

80
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,80 @@
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Update Embedded Version String
env:
REF: ${{ github.ref }}
run: |
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php
- name: Build Assets
run: |
npm install
npm run build
- name: Create Release Archive
run: |
# Array of files and directories to remove
files_to_remove=(
"node_modules/"
"tests/"
"CODE_OF_CONDUCT.md"
"CONTRIBUTOR_LICENSE_AGREEMENT"
"crowdin.yml"
"docker-compose.ci.yml"
"phpstan.neon"
"phpunit.xml"
"stats.html"
)
# Loop over the files to remove and delete them
rm -rf "${files_to_remove[@]}"
# Array of specific dot files to include
files_to_include=(
".editorconfig"
".env.example"
".gitattributes"
".gitignore"
".prettierignore"
".prettierrc.json"
)
# Archive files, using * directly outside the array for proper expansion
tar --exclude=panel.tar.gz -czf panel.tar.gz * "${files_to_include[@]}"
- name: Extract Changelog
id: extract_changelog
env:
REF: ${{ github.ref }}
run: |
sed -n "/^## ${REF:10}/,/^## /{/^## /b;p}" CHANGELOG.md > ./RELEASE_CHANGELOG
echo "version_name=${REF:10}" >> $GITHUB_OUTPUT
- name: Create Checksum and Add to Changelog
run: |
SUM=`sha256sum panel.tar.gz`
echo -e "\n#### SHA256 Checksum\n\n\`\`\`\n$SUM\n\`\`\`\n" >> ./RELEASE_CHANGELOG
echo $SUM > checksum.txt
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.extract_changelog.outputs.version_name }}
body_path: ./RELEASE_CHANGELOG
draft: true
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') || contains(github.ref, 'rc') }}
files: |
panel.tar.gz
checksum.txt

37
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Tests
on:
push:
branches:
- 'develop'
- '3.0-develop'
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create environment file
run: cp .env.ci .env
- name: Start Docker Containers
run: docker compose -f docker-compose.ci.yml up -d
- name: Install Composer dependencies
run: docker compose -f docker-compose.ci.yml exec workspace composer install --prefer-dist --no-interaction --no-progress
- name: Install NPM dependencies
run: docker compose -f docker-compose.ci.yml exec workspace npm install
- name: Build frontend assets
run: docker compose -f docker-compose.ci.yml exec workspace npm run build
- name: Run database migrations
run: docker compose -f docker-compose.ci.yml exec workspace php artisan migrate
- name: Run feature tests
run: docker compose -f docker-compose.ci.yml exec workspace vendor/bin/pest --bootstrap vendor/autoload.php tests/Feature
- name: Run unit tests
run: docker compose -f docker-compose.ci.yml exec workspace vendor/bin/pest --bootstrap vendor/autoload.php tests/Unit

7
.gitignore vendored
View file

@ -14,4 +14,9 @@ yarn-error.log
/.idea
/.vscode
/supervisord.log
/supervisord.pid
/supervisord.pid
_ide_*.php
stats.html
.fleet
lang/php_*.json
.phpunit.cache

4
.prettierignore Normal file
View file

@ -0,0 +1,4 @@
.github
public
node_modules
resources/views

29
.prettierrc.json Normal file
View file

@ -0,0 +1,29 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": true,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "consistent",
"requirePragma": false,
"semi": false,
"singleAttributePerLine": false,
"singleQuote": true,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"tabWidth": 4,
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"importOrder": [
"^@/api/(.*)$",
"^@/components/elements/(.*)$",
"^@/components/(.*)$",
"^[./]"
],
"plugins": ["@trivago/prettier-plugin-sort-imports"]
}

View file

@ -1,12 +1,12 @@
php:
preset: laravel
disabled:
- no_unused_imports
finder:
not-name:
- index.php
preset: laravel
disabled:
- no_unused_imports
finder:
not-name:
- index.php
js:
finder:
not-name:
- vite.config.js
finder:
not-name:
- vite.config.js
css: true

29
ACKNOWLEDGEMENTS.md Normal file
View file

@ -0,0 +1,29 @@
# Acknowledgements
## tslib
```
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
```
## fakerphp/faker
Translations are under the CC-BY-SA-3.0 license.
https://github.com/FakerPHP/Faker
## caniuse-lite
https://github.com/browserslist/caniuse-lite

572
CHANGELOG.md Normal file
View file

@ -0,0 +1,572 @@
# Changelog
This file is a running track of new features and fixes to each version of the panel released starting with `v2.0.0`.
This project follows [Semantic Versioning](http://semver.org) guidelines.
## v4.2.4
### Changes
- Fixed a bug where initiating a backup with no compression fails. #87
## v4.2.3
### Changes
- Updated code for applying rate limits to NIC. Convoy will no longer override settings other than ratelimit, NIC
model (e.g., e1000, vmxnet3, virtio, etc.), and firewall status.
#### From v4.2.2-rc.2
- Fix US keyboard characters validation #80
- Fixed a visual bug on the bandwidth usage card where the text wasn't centered.
#### From v4.2.2-rc.1
- Fix special character support in environment file.
- Added checks in server creation to use unique VMID. #78
- Add error messages instead of generic server error messages. #49
- Scope route model binding by default to prevent unauthorized access of related resources.
- Removed a lot of dead code.
- Added more tests (getting closer to full release! 😁😩).
#### From v4.2.1-rc.1
- Potential fix for disk resize timeout?
## v4.2.2-rc.2
### Changes
- Fix US keyboard characters validation #80
- Fixed a visual bug on the bandwidth usage card where the text wasn't centered.
## v4.2.2-rc.1
### Changes
- Fix special character support in environment file.
- Added checks in server creation to use unique VMID. #78
- Add error messages instead of generic server error messages. #49
- Scope route model binding by default to prevent unauthorized access of related resources.
- Removed a lot of dead code.
- Added more tests (getting closer to full release! 😁😩).
## v4.2.1-rc.1
### Changes
- Potential fix for disk resize timeout?
## v4.2.0-beta
### Changes
- Added server UUID copy to clipboard button in the admin area server table.
- Added ability to toggle TLS verification per node basis.
## v4.1.0-beta
### Changes
- Removed the `DB_ROOT_PASSWORD` variable from the environment file. It is now automatically generated, but we still
aren't planning on using it.
- Added health checks to the Docker compose configuration to prevent the containers from exploding when its dependencies
don't start up in time.
## v4.0.0-beta
If you use Convoy for a production or commercial environment/purpose, please subscribe to a
license [here](https://console.convoypanel.com). It supports my work, and you are also violating the license agreement
if you don't. Your deployment of Convoy may be disabled without warning if you don't adhere to the terms of the license
agreement.
### Changes
- **BREAKING**: Overhauled the IP address management system to add IP pools that can be shared among nodes. #51
- **BREAKING**: Fixed Coterm where it doesn't support multiple nodes #50
- Fixed inability to use special characters for Redis password.
- Fixed error when trying to parse a vm's disk that has no `size` attribute #48
- Fixed typo in the input labels on the node creation modal #42
- Fixed the mobile navigation menu where it won't automatically close when you click on a link #41
- Added ability to copy node and template IDs #40
- Fixed incorrect conversion from mebibytes to bytes of a server's bandwidth limit during manual server creation through
the admin area UI #70
- Fixed missing SSO token creation endpoint
- Fixed bulk importing of IPv6 addresses #66
- Fixed inability to create servers with IP addresses.
- Fixed minor UI bug where addresses in IPAM won't optimistically update after making a change.
- Made the IPAM address table sort by descending.
- Removed API request throttling
- Increased Coterm session token lifetime from 30 seconds to a minute.
- Fixed cloning of VM's to the wrong storage location #64
## v4.0.0-rc.5
### Changes
- Fixed missing SSO token creation endpoint
## v4.0.0-rc.4
### Changes
- Fixed bulk importing of IPv6 addresses #66
## v4.0.0-rc.3
### Changes
- Fixed inability to create servers with IP addresses.
- Fixed minor UI bug where addresses in IPAM won't optimistically update after making a change.
- Made the IPAM address table sort by descending.
## v3.10.2-beta
### Changes
- Fixed cloning of VM's to the wrong storage location #64
## v4.0.0-rc.2
### Changes
- Removed API request throttling
- Increased Coterm session token lifetime from 30 seconds to a minute.
- Fixed cloning of VM's to the wrong storage location #64
## v4.0.0-rc.1
If you use Convoy for a production or commercial environment/purpose, please subscribe to a
license [here](https://console.convoypanel.com). It supports my work, and you are also violating the license agreement
if you don't. Your deployment of Convoy may be disabled without warning if you don't adhere to the terms of the license
agreement.
### Changes
- **BREAKING**: Overhauled the IP address management system to add IP pools that can be shared among nodes. #51
- **BREAKING**: Fixed Coterm where it doesn't support multiple nodes #50
- Fixed inability to use special characters for Redis password.
- Fixed error when trying to parse a vm's disk that has no `size` attribute #48
- Fixed typo in the input labels on the node creation modal #42
- Fixed the mobile navigation menu where it won't automatically close when you click on a link #41
- Added ability to copy node and template IDs #40
## v3.10.1-beta
### Fixes
- Fixed `workspace` image failing to build because PHP Composer hash changed from a recent update.
## v3.10.0-beta
### Additions
- Added ISO imports (thanks A LOTTTT Fro!!!)
- Added new logo courtesy of Yatin Manuel from [Halvex Inc.](https://halvex.net/)
- This changelog was forgotten, so I will add it now
### Changes
- mind-numbing frontend refactorings
## v3.9.3-beta
### Fixes
- Fixed inability to successfully build the `workspace` container because the PHP Docker image recently upgraded from
Debian 11 to 12 while Nodesource hasn't added stable support for Debian 12.
## v3.9.2-beta
### Fixes
- Fixed inability to save new password/ssh keys on Client > Server > Settings > Security > Authentication
## v3.9.1-beta
### Fixes
- Fixed coterm fields required when trying to update node information instead of updating Coterm information.
### Changes
- Reorganized frontend React Router routes
## v3.9.0-beta
The release candidate process for non-beta v3.9.0 was discontinued. Convoy will be keeping its beta status while more
improvements to the product are made.
If you are upgrading from v3.8.1-beta, keep note of these notices:
- v3.9.0-rc.9: :warning: This release may require you to regenerate your Proxmox API token credentials for each of your
nodes with the implementation of encryption of node credentials in Convoy from this point on.
- v3.9.0-rc.3: :warning: This release makes changes to the data in your database. Rows that have a non-null `deleted_at`
field in
your `servers` and `users` table will be purged. If your routine relies on soft deletes, please make changes now to
stop
relying on them as they are removed in this update.
### Fixed
- Servers using IP addresses that they shouldn't have access to.
### Added
- Address pools (not in use yet)
### Changed
- IPAddress internal naming to Address
- SSO to use JWT instead of generating+saving tokens to the database
## v3.9.0-rc.9
:warning: This release may require you to regenerate your Proxmox API token credentials for each of your nodes with the
implementation of encryption of node credentials in Convoy from this point on.
### Added
- Coterm support (DEV PREVIEW)
- Encryption for PVE node credentials
### Fixed
- Potential security vulnerability allowing unauthorized users to access another user's server
## v3.9.0-rc.8
### Fixed
- Inability to reimport the same IP address across different nodes.
## v3.9.0-rc.7
### Fixed
- Password updating when marked optional in a server import
## v3.9.0-rc.6
### Fixed
- Email max length on the login screen
## v3.9.0-rc.5
### Fixed
- Password setting when rebuilding/creating a new server
## v3.9.0-rc.4
### Fixed
- Browser history hijacking on client server settings page
## v3.9.0-rc.3
:warning: This release makes changes to the data in your database. Rows that have a non-null `deleted_at` field in
your `servers` and `users` table will be purged. If your routine relies on soft deletes, please make changes now to stop
relying on them as they are removed in this update.
### Fixed
- Adding both a IPv4 and IPv6 address to a server
### Added
- Base code for adding translations/localizations to Convoy
### Removed
- Soft deletes from `servers` and `users` table
### Changes
- Some automatic refactors done by PHPStorm
- Renamed Media to Iso
## v3.9.0-rc.2
### Fixed
- Server reinstallations firing wrong job chain
- can sync server usages test
- ISO download progress monitor
- Backup creation progress monitor
## v3.9.0-rc.1
### Added
- Tests
### Changed
- Internal HTTP client from Guzzle to a wrapper of it from Laravel
- VM building, deletion, and server deletion logic
- This should improve reliability of Convoy tremendously
## v3.8.1-beta
### Fixed
- Rate limit throttling
## v3.8.0-beta
### Changed
- Made system OS password optional if create server option isn't checked when creating a new server in the administrator
area
## v3.7.5-beta
### Fixed
- English keyboard characters validation rule in create server modal in the administrator area.
### Changed
- Some minor refactoring that changed the namespacings of some files to improve code consistency.
## v3.7.4-beta
### Fixed
- Server power commands
## v3.7.3-beta
### Fixed
- Server deletion failing when the virtual machine is running
## v3.7.2-beta
### Fixed
- Error unmounting media (or ISOs) in the server control panel in the client area
## v3.7.1-beta
### Fixed
- Server bandwidth statistic not updating #14
## v3.7.0-beta
### Fixed
- Overallocation check logic whenever an administrator tries to update a server's build #16
- Issue where you can't use IPv6 for nameservers
### Changed
- Made account_password required by default for creating new servers and server installations
- Refactored all settings pages
- Refactored menu component to reduce bundle size
- Refactored Server Usages and Rate Limit sync for better scaling
- Minor frontend styling
- Refactored disk data transfer object
- All password inputs (except for Convoy user account password) has these two validation rules:
1. `/^[A-Za-z0-9!@#$%^&*()_+\-=[\]{}|;\':",.\/<>?\\ ]*$/` for checking if the password contains only characters on
the U.S. English keyboard.
2. `/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/` for checking if the password contains 8
characters, 1 uppercase, 1 lowercase, 1 number and 1 special character.
### Added
- Search bars in the administrator area
- Log rotation for Laravel log file
- Proxmox user pruning to prune expired temporary NoVNC users
## v3.6.2-beta
### Fixed
- IP Addresses being clipped if too long in the UI (x2)
- Hostname validation regex in frontend
- Viewport glitch when a server name or hostname is too long
- Validation rule not catching special characters from other languages for OS password validation
### Note
If you are developing automation software for Convoy, please implement these regular expressions in your code.
Otherwise, your code will error when you send invalid requests.
- server `account_password` validation
- `/^[A-z0-9!@£$%^&*()\'~*_+\-]+$/` to detect special characters from other language
- `/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/u` minimum password requirements
- server `hostname` validation
- `/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/`
## v3.6.1-beta
### Fixed
- IP Addresses being clipped if too long in the UI
- Awkward delete address modal
## v3.6.0-beta
### Fixed
- IPv6 addresses wouldn't display in client area settings
- Confusing "account password" placeholder when creating a server in the admin area
### Added
- Ability to view IP addresses of a server on the dashboard in the client area
## v3.5.1-beta
### Added
- Support for hosting Convoy without a hostname
### Changed
- Default redis configuration in .env because some people were getting confused by the documentation
## v3.5.0-beta
### Changed
- Settings layout for client side server settings
### Fixed
- possibility that `address_ids` will cause an exception when it's null when creating a new server
## v3.4.0-beta
### Changed
- Refactored routes
### Added
- Navigation Bar Context. Now switching pages are even more seamless
## v3.3.0-beta
### Fixed
- Lack of cancel button when deleting an API key
### Added
- Ability for administrators to impersonate the client view for a server and also visit the server's configuration in
the admin area.
- Warnings when creating a new node to disable privilege separation and grant root permissions.
## v3.2.0-beta
### Fixed
- Broken network syncing when updating an address's assigned server
- Text alignment for server counter on the users table in the admin area
### Added
- Hyperlinks to the owner on the servers table
## v3.1.2-beta
### Fixed
- Scoped routing bindings in RouteServiceProvider that were breaking some routes
## v3.1.1-beta
### Fixed
- Conflicting named routes that would break route optimization/caching
## v3.1.0-beta
### Fixed
- IP Address updating
- Server build updating
### Removed
- Option to sync or not sync network settings when deleting an IP address
- The default behavior is always to sync
## v3.0.0-beta (Tuxedo)
### Fixed
- Server installs
- a bunch of other stuff
### Changed
- from proprietary hard-coded api tokens to Bearer tokens for the application/external api
- the whole entire frontend
### Added
- Server hostnames
- Node location grouping
### Notes
- This release is so big that I can't really summarize everything
![The maxwell cat meme is the mascot for v3](https://imgur.com/mowvogE.png)
## v2.0.3-beta
### Fixed
- Inability to delete IP address from the admin user interface
## v2.0.2-beta
### Fixed
- FQDN validator for the hostname field when adding a new node
## v2.0.1-beta
### Fixed
- Problem where validation errors for the SSH key wouldn't show up
- Bug where user couldn't unset a SSH key after saving one
## v2.0.0-beta (Bombay)
### Added
- Storing of CPU, memory, disk, snapshots, backups, and bandwidth limits
- Added server suspensions
- Added real-time status updates of server installs (though it will be deprecated in v3.x.x)
- Automatic bandwidth throttler when a user exceeds the bandwidth limit
### Changed
- Internally, server details are now passed around the application using Laravel Data by Spatie. Though in v3.x.x, we
are planning on switching to Data Transfer Objects by Spatie. We pulled the wrong package and didn't realize until one
month in using the package LOL.
- Virtual machines are now limited to one disk. Multiple disks may be supported when a daemon is available in the
future.
- The built-in web server is now Caddy instead of Nginx. This provides auto SSL out of the box.
### Fixed
- The commands in the node viewing page for installing the VNC Broker and templates.
### Known Bugs
- The real-time server installation communication is known to be buggy and will be resolved in v3.x.x
- Editing the server field for IP Addresses will sometime result in the first server of the node to be used. This will
be resolved in v3.x.x
![The Bombay cat breed is the mascot for v2](https://imgur.com/fP6oxn9.png)

128
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
eric@performave.com.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.

View file

@ -0,0 +1,66 @@
### Performave Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Performave or its affiliates (“Performave”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Performave in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact eric@performave.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to Performave a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transferable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute your Contributions and such derivative works, with the right to sublicense the foregoing rights through multiple tiers of sublicensees.
**Patent License.** You hereby grant, and agree to grant, to Performave a non-exclusive, perpetual, irrevocable,
worldwide, fully-paid, royalty-free, transferable patent license to make, have made, use, offer to sell, sell,
import, and otherwise transfer your Contributions, where such license applies only to those patent claims
licensable by you that are necessarily infringed by your Contributions alone or by combination of your
Contributions with the Project to which such Contributions were submitted, with the right to sublicense the
foregoing rights through multiple tiers of sublicensees.
**Moral Rights.** To the fullest extent permitted under applicable law, you hereby waive, and agree not to
assert, all of your “moral rights” in or relating to your Contributions for the benefit of Performave, its assigns, and
their respective direct and indirect sublicensees.
**Third Party Content/Rights.** If your Contribution includes or is based on any source code, object code, bug
fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or
other works of authorship that were not authored by you (“Third Party Content”) or if you are aware of any
third party intellectual property or proprietary rights associated with your Contribution (“Third Party Rights”),
then you agree to include with the submission of your Contribution full details respecting such Third Party
Content and Third Party Rights, including, without limitation, identification of which aspects of your
Contribution contain Third Party Content or are associated with Third Party Rights, the owner/author of the
Third Party Content and Third Party Rights, where you obtained the Third Party Content, and any applicable
third party license terms or restrictions respecting the Third Party Content and Third Party Rights. For greater
certainty, the foregoing obligations respecting the identification of Third Party Content and Third Party Rights
do not apply to any portion of a Project that is incorporated into your Contribution to that same Project.
**Representations.** You represent that, other than the Third Party Content and Third Party Rights identified by
you in accordance with this Agreement, you are the sole author of your Contributions and are legally entitled
to grant the foregoing licenses and waivers in respect of your Contributions. If your Contributions were
created in the course of your employment with your past or present employer(s), you represent that such
employer(s) has authorized you to make your Contributions on behalf of such employer(s) or such employer
(s) has waived all of their right, title or interest in or to your Contributions.
**Disclaimer.** To the fullest extent permitted under applicable law, your Contributions are provided on an "asis"
basis, without any warranties or conditions, express or implied, including, without limitation, any implied
warranties or conditions of non-infringement, merchantability or fitness for a particular purpose. You are not
required to provide support for your Contributions, except to the extent you desire to provide support.
**No Obligation.** You acknowledge that Performave is under no obligation to use or incorporate your Contributions
into any of the Projects. The decision to use or incorporate your Contributions into any of the Projects will be
made at the sole discretion of Performave or its authorized delegates.
**Disputes.** This Agreement shall be governed by and construed in accordance with the laws of the State of
Oklahoma, United States of America, without giving effect to its principles or rules regarding conflicts of laws,
other than such principles directing application of Oklahoma law. The parties hereby submit to venue in, and
jurisdiction of the courts located in Oklahoma, Oklahoma for purposes relating to this Agreement. In the event
that any of the provisions of this Agreement shall be held by a court or other tribunal of competent jurisdiction
to be unenforceable, the remaining portions hereof shall remain in full force and effect.
**Assignment.** You agree that Performave may assign this Agreement, and all of its rights, obligations and licenses
hereunder.

180
LICENSE
View file

@ -1,180 +0,0 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
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 them 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.
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based on the Program.
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU Affero 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 that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
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.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.

124
LICENSE.md Normal file
View file

@ -0,0 +1,124 @@
# Convoy Software End User License Agreement (EULA)
**Effective Date:** March 3th, 2024
**Last Updated:** March 13th, 2024
**License Grantor:** Performave
## 1. Acceptance of Terms
By installing, copying, downloading, accessing, or otherwise using the Convoy Panel software ("Software"), you agree to
be bound by the terms of this End User License Agreement ("EULA"). If you do not agree to the terms of this EULA, do not
install or use the Software.
## 2. License Grant
### 2.1 Personal Use License
Performave grants you a non-exclusive, non-transferable, free license to download, install, and use the Software for
personal, non-commercial purposes, provided that you comply with all the terms and conditions of this EULA.
### 2.2 Enterprise License
If you wish to use the Software for commercial purposes, including but not limited to production environments, business
operations, or any activity intended for profit, you must subscribe to an Enterprise License. The Enterprise License is
subscription-based, and the fees are based on the number of nodes on which the Software is used. The specific terms,
including the fee structure and the number of nodes allowed, will be determined at the time of the subscription. Each
license permits the use of the Software on the number of nodes paid for and is non-transferable.
### 2.3 Non-Profit Organization License
Non-profit organizations, upon providing proof of 501(c)(3) registration or its equivalent, are granted a non-exclusive,
non-transferable license to use the Software for free. The Software may be used for the organization's operational
purposes, subject to the terms and conditions of this EULA.
### 2.4 Partnership Licenses
Licenses obtained through partnerships or negotiations with Performave are valid as per the agreements made during such
negotiations. These licenses are subject to the specific terms agreed upon and must also adhere to the general terms and
conditions of this EULA.
### 2.5 Insider License
Performave may grant an Insider License to individuals recruited specifically for testing new versions or features of
the Software. This license includes a waiver of fees associated with the use of the Software during the testing period.
Testers are expected to be available to test the Software as required and provide feedback to Performave. Performave
reserves the right to revoke this license at any time at its discretion, including for lack of participation or if the
tester's needs no longer align with the testing program's objectives.
## 3. Legal Use Requirement
You agree to use the Software only for lawful purposes and in compliance with all applicable laws and regulations. Any
use of the Software for illegal or criminal activities is strictly prohibited. Performave reserves the right to
terminate your license if you engage in any illegal conduct with the Software. In the event of such termination,
Performave isn't obligated to refund any transactions.
## 4. Restrictions
The following restrictions apply to your use of the Software, but these are not all-inclusive. Additional restrictions
may also apply as outlined elsewhere in this EULA or as otherwise determined by Performave:
- You may not modify the Software in a manner that interferes with its licensing mechanism or changes its copyright
information without making substantial other modifications.
- You are permitted to modify the Software for your personal or enterprise use to tailor it to your needs, provided such
modifications do not violate the restrictions stated in this EULA.
- You may not distribute or sublicense modified versions of the Software that violate the terms of this EULA.
- You may not use the Software in any manner that could damage, disable, overburden, or impair any Performave server, or
the network(s) connected to any Performave server, or interfere with any other party's use and enjoyment of the
Software.
### 4.1 Additional Licensing Terms for Modifications and Contributions
Any modifications, enhancements, derivative works of the Software, or any code from the Software that is incorporated into other works by you or any third party are considered part of the Software and subject to the terms and conditions of this EULA. Such modifications, derivative works, or incorporated code must be offered under the same terms and conditions as those set forth in this EULA, including any provisions regarding distribution and sublicensing. You may not alter the terms of this EULA or sublicense any modifications, derivative works, or incorporated code under terms that differ from those specified in this EULA.
## 5. License Enforcement and Digital Rights Management
Performave employs various measures, including Digital Rights Management (DRM), to enforce the terms of this EULA and prevent unauthorized use of the Software. These measures may include, but are not limited to, remotely disabling access to the Software or specific features of the Software for users who are found to be in violation of this EULA. By using the Software, you acknowledge and agree that Performave may, at its sole discretion, implement such measures.
You further agree that Performave shall not be responsible or liable for any loss, damage, or inconvenience you may suffer as a result of such actions taken to enforce this EULA. Your rights under this EULA may be subject to termination and denial of access to the Software without notice if any form of tampering with or circumvention of the DRM or other license enforcement mechanisms is detected.
This section is designed to inform users of the license enforcement practices and to legally protect Performave from liability for actions taken in good faith to protect its intellectual property rights.
## 6. Intellectual Property Rights
The Software is protected by intellectual property laws and treaties. Performave or its suppliers own all title,
copyright, and interest in and to the Software, including any intellectual property rights therein. This EULA grants you
no rights to use such content. All rights not expressly granted are reserved by Performave.
## 7. Termination
This EULA is effective until terminated. Your rights under this EULA will terminate automatically without notice from
Performave if you fail to comply with any term(s) of this EULA. Upon termination, you shall cease all use of the
Software and destroy all copies, full or partial, of the Software.
## 8. Disclaimer of Warranty
The Software is provided "AS IS," with all faults, without warranty of any kind, and Performave hereby disclaims all
warranties and conditions with respect to the Software, either express, implied, or statutory, including, but not
limited to, the implied warranties and/or conditions of merchantability, of satisfactory quality, of fitness for a
particular purpose, of accuracy, of quiet enjoyment, and non-infringement of third-party rights.
## 9. Limitation of Liability
In no event shall Performave be liable for any indirect, incidental, special, consequential, or punitive damages
whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business
information, or any other pecuniary loss) arising out of the use of or inability to use the Software, even if Performave
has been advised of the possibility of such damages.
## 10. Governing Law
This EULA shall be governed by the laws of the jurisdiction in which Performave is located, without reference to
conflict of laws principles.
## 11. Entire Agreement
This EULA constitutes the entire agreement between you and Performave relating to the Software and supersedes all prior
or contemporaneous oral or written communications, proposals, and representations with respect to the Software or any
other subject matter covered by this EULA.
## 12. Amendment
Performave reserves the right to amend this EULA at any time, at its sole discretion, by posting an updated version to
its website or through the Software. Your continued use of the Software following the posting of an updated EULA will
mean that you accept those changes.

View file

@ -1 +1,30 @@
Documentation can be found here: https://docs.convoypanel.com
![Version 4 release announcement banner](https://github.com/ConvoyPanel/panel/assets/37554696/4629321b-7214-4eb1-8cc5-85c89229b5bf)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/convoypanel/panel/tests.yml?branch=develop)
![Discord](https://img.shields.io/discord/746612878261616700?label=Discord&logo=Discord&logoColor=white)
![GitHub Releases](https://img.shields.io/github/downloads/convoypanel/panel/latest/total)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FConvoyPanel%2Fpanel.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FConvoyPanel%2Fpanel?ref=badge_shield)
# Convoy
Convoy is a modern and performant KVM server management panel for hosting businesses. It's built with PHP and React and proven technology like Proxmox, making it easier to drop Convoy in an existing system.
Stop paying hundreds of dollars for unreliable and slow software. Subscribe to a license to use Convoy today for $6/node/mo
![Screenshot of Convoy](https://imgur.com/GsORIRQ.png)
## Documentation
- [Panel Documentation](https://docs.convoypanel.com)
- [Discord Community](https://discord.convoypanel.com)
## Acknowledgements
Please [visit this page](https://convoypanel.com/docs/project/about.html#acknowledgements) on our website to view acknowledgements.
## License
Convoy is licensed under our own proprietary license.
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FConvoyPanel%2Fpanel.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FConvoyPanel%2Fpanel?ref=badge_large)

View file

@ -0,0 +1,35 @@
<?php
namespace Convoy\Actions\Fortify;
use Convoy\Models\User;
use Illuminate\Validation\Rule;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\CreatesNewUsers;
class CreateNewUser implements CreatesNewUsers
{
use PasswordValidationRules;
public function create(array $input): User
{
Validator::make($input, [
'name' => ['required', 'string', 'max:255'],
'email' => [
'required',
'string',
'email',
'max:255',
Rule::unique(User::class),
],
'password' => $this->passwordRules(),
])->validate();
return User::create([
'name' => $input['name'],
'email' => $input['email'],
'password' => Hash::make($input['password']),
]);
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Actions\Fortify;
use Laravel\Fortify\Rules\Password;
trait PasswordValidationRules
{
/**
* Get the validation rules used to validate passwords.
*/
protected function passwordRules(): array
{
return ['required', 'string', new Password, 'confirmed'];
}
}

View file

@ -0,0 +1,28 @@
<?php
namespace Convoy\Actions\Fortify;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\ResetsUserPasswords;
class ResetUserPassword implements ResetsUserPasswords
{
use PasswordValidationRules;
/**
* Validate and reset the user's forgotten password.
*
* @param mixed $user
*/
public function reset($user, array $input): void
{
Validator::make($input, [
'password' => $this->passwordRules(),
])->validate();
$user->forceFill([
'password' => Hash::make($input['password']),
])->save();
}
}

View file

@ -0,0 +1,31 @@
<?php
namespace Convoy\Actions\Fortify;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\UpdatesUserPasswords;
class UpdateUserPassword implements UpdatesUserPasswords
{
use PasswordValidationRules;
/**
* Validate and update the user's password.
*
* @param mixed $user
*/
public function update($user, array $input): void
{
Validator::make($input, [
'current_password' => ['required', 'string', 'current_password:web'],
'password' => $this->passwordRules(),
], [
'current_password.current_password' => __('The provided password does not match your current password.'),
])->validateWithBag('updatePassword');
$user->forceFill([
'password' => Hash::make($input['password']),
])->save();
}
}

View file

@ -0,0 +1,57 @@
<?php
namespace Convoy\Actions\Fortify;
use Illuminate\Validation\Rule;
use Illuminate\Support\Facades\Validator;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Laravel\Fortify\Contracts\UpdatesUserProfileInformation;
class UpdateUserProfileInformation implements UpdatesUserProfileInformation
{
/**
* Validate and update the given user's profile information.
*
* @param mixed $user
*/
public function update($user, array $input): void
{
Validator::make($input, [
'name' => ['required', 'string', 'max:255'],
'email' => [
'required',
'string',
'email',
'max:255',
Rule::unique('users')->ignore($user->id),
],
])->validateWithBag('updateProfileInformation');
if ($input['email'] !== $user->email &&
$user instanceof MustVerifyEmail) {
$this->updateVerifiedUser($user, $input);
} else {
$user->forceFill([
'name' => $input['name'],
'email' => $input['email'],
])->save();
}
}
/**
* Update the given verified user's profile information.
*
* @param mixed $user
*/
protected function updateVerifiedUser($user, array $input): void
{
$user->forceFill([
'name' => $input['name'],
'email' => $input['email'],
'email_verified_at' => null,
])->save();
$user->sendEmailVerificationNotification();
}
}

View file

@ -0,0 +1,25 @@
<?php
namespace Convoy\Casts;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
class MebibytesToAndFromBytes implements CastsAttributes
{
/**
* Cast the given value.
*/
public function get(Model $model, string $key, mixed $value, array $attributes): ?int
{
return !is_null($value) ? $value * 1048576 : $value; // Convert from megabytes to bytes
}
/**
* Prepare the given value for storage.
*/
public function set(Model $model, string $key, mixed $value, array $attributes): ?int
{
return !is_null($value) ? intval(floor($value / 1048576)) : $value; // Convert from bytes to megabytes to prevent overflow
}
}

View file

@ -0,0 +1,30 @@
<?php
namespace Convoy\Casts;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
class NullableEncrypter implements CastsAttributes
{
/**
* Cast the given value.
*
* @param array<string, mixed> $attributes
*/
public function get(Model $model, string $key, mixed $value, array $attributes): ?string
{
return !empty($value) ? app(Encrypter::class)->decrypt($value) : null;
}
/**
* Prepare the given value for storage.
*
* @param array<string, mixed> $attributes
*/
public function set(Model $model, string $key, mixed $value, array $attributes): ?string
{
return !empty($value) ? app(Encrypter::class)->encrypt($value) : null;
}
}

View file

@ -0,0 +1,48 @@
<?php
namespace Convoy\Console\Commands\Maintenance;
use Carbon\CarbonImmutable;
use InvalidArgumentException;
use Illuminate\Console\Command;
use Convoy\Repositories\Eloquent\BackupRepository;
class PruneOrphanedBackupsCommand extends Command
{
/**
* @var string
*/
protected $signature = 'c:maintenance:prune-backups {--prune-age=}';
/**
* @var string
*/
protected $description = 'Marks all backups that have not completed in the last "n" minutes as being failed.';
public function handle(BackupRepository $repository): void
{
$since = $this->option('prune-age') ?? config('backups.prune_age', 360);
if (! $since || ! is_int($since)) {
throw new InvalidArgumentException('The "--prune-age" argument must be a value greater than 0.');
}
$query = $repository->getBuilder()
->whereNull('completed_at')
->where('created_at', '<=', CarbonImmutable::now()->subMinutes($since)->toDateTimeString());
$count = $query->count();
if (! $count) {
$this->info('There are no orphaned backups to be marked as failed.');
return;
}
$this->warn("Marking {$count} backups that have not been marked as completed in the last {$since} minutes as failed.");
$query->update([
'is_successful' => false,
'completed_at' => CarbonImmutable::now(),
'updated_at' => CarbonImmutable::now(),
]);
}
}

View file

@ -0,0 +1,43 @@
<?php
namespace Convoy\Console\Commands\Maintenance;
use Convoy\Models\Node;
use Illuminate\Console\Command;
use Convoy\Jobs\Node\PruneUsersJob;
use Illuminate\Console\View\Components\Task;
class PruneUsersCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'c:maintenance:prune-users';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Prunes all users on all nodes that have expired.';
/**
* Execute the console command.
*/
public function handle(): int
{
$this->info('Queuing user prune request.');
$nodes = Node::all();
$nodes->each(function (Node $node) {
(new Task($this->output))->render("Node {$node->fqdn}", function () use ($node) {
PruneUsersJob::dispatch($node->id);
});
});
return Command::SUCCESS;
}
}

View file

@ -0,0 +1,31 @@
<?php
namespace Convoy\Console\Commands\Server;
use Convoy\Models\Server;
use Illuminate\Console\Command;
class ResetUsagesCommand extends Command
{
/**
* @var string
*/
protected $description = 'Reset the bandwidth usage of all servers on the first of each month.';
/**
* @var string
*/
protected $signature = 'c:server:reset-usages';
/**
* Handle command execution.
*/
public function handle(): void
{
if (date('d') === '01') {
Server::query()->update([
'bandwidth_usage' => 0,
]);
}
}
}

View file

@ -0,0 +1,39 @@
<?php
namespace Convoy\Console\Commands\Server;
use Convoy\Models\Node;
use Illuminate\Console\Command;
use Illuminate\Console\View\Components\Task;
use Convoy\Jobs\Node\SyncServerRateLimitsJob;
class UpdateRateLimitsCommand extends Command
{
/**
* @var string
*/
protected $description = 'Sync the network rate limits of all servers.';
/**
* @var string
*/
protected $signature = 'c:servers:sync-rate-limits';
/**
* Handle command execution.
*/
public function handle(): int
{
$this->info('Queuing rate limits sync request.');
$nodes = Node::all();
$nodes->each(function (Node $node) {
(new Task($this->output))->render("Node {$node->fqdn}", function () use ($node) {
SyncServerRateLimitsJob::dispatch($node->id);
});
});
return Command::SUCCESS;
}
}

View file

@ -0,0 +1,39 @@
<?php
namespace Convoy\Console\Commands\Server;
use Convoy\Models\Node;
use Illuminate\Console\Command;
use Convoy\Jobs\Node\SyncServerUsagesJob;
use Illuminate\Console\View\Components\Task;
class UpdateUsagesCommand extends Command
{
/**
* @var string
*/
protected $description = 'Sync the usages of all the servers.';
/**
* @var string
*/
protected $signature = 'c:servers:sync-usages';
/**
* Handle command execution.
*/
public function handle(): int
{
$this->info('Queuing usage sync.');
$nodes = Node::all();
$nodes->each(function (Node $node) {
(new Task($this->output))->render("Node {$node->fqdn}", function () use ($node) {
SyncServerUsagesJob::dispatch($node->id);
});
});
return Command::SUCCESS;
}
}

View file

@ -0,0 +1,67 @@
<?php
/*
Pterodactyl®
Copyright © Dane Everitt <dane@daneeveritt.com> and contributors
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 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.
*/
namespace Convoy\Console\Commands\User;
use Exception;
use Convoy\Models\User;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Hash;
use Convoy\Exceptions\Model\DataValidationException;
class MakeUserCommand extends Command
{
protected $description = 'Creates a user on the system via the CLI.';
protected $signature = 'c:user:make {--email=} {--name=} {--password=} {--admin=}';
/**
* Handle command request to create a new user.
*
* @throws Exception
* @throws DataValidationException
*/
public function handle(): void
{
$root_admin = $this->option('admin') ?? $this->confirm('Is this user an administrator?');
$email = $this->option('email') ?? $this->ask('Email Address');
$name = $this->option('name') ?? $this->ask('Name');
$password = $this->option('password') ?? $this->secret('Password');
$user = User::create([
'name' => $name,
'email' => $email,
'root_admin' => (bool) $root_admin,
'password' => Hash::make($password),
]);
$this->table(['Field', 'Value'], [
['Internal ID', $user->id],
['Email', $user->email],
['Name', $user->name],
['Admin', $user->root_admin ? 'Yes' : 'No'],
]);
}
}

View file

@ -1,32 +1,48 @@
<?php
namespace App\Console;
namespace Convoy\Console;
use Convoy\Models\ActivityLog;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Database\Console\PruneCommand;
use Convoy\Console\Commands\Server\ResetUsagesCommand;
use Convoy\Console\Commands\Server\UpdateUsagesCommand;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Convoy\Console\Commands\Maintenance\PruneUsersCommand;
use Convoy\Console\Commands\Server\UpdateRateLimitsCommand;
use Convoy\Console\Commands\Maintenance\PruneOrphanedBackupsCommand;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
protected function schedule(Schedule $schedule): void
{
// $schedule->command('inspire')->hourly();
$schedule->command('queue:prune-batches')->daily();
if (config('backups.prune_age')) {
// Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted.
$schedule->command(PruneOrphanedBackupsCommand::class)->everyThirtyMinutes();
}
if (config('activity.prune_days')) {
$schedule->command(PruneCommand::class, ['--model' => [ActivityLog::class]])->daily();
}
$schedule->command(ResetUsagesCommand::class)->daily();
$schedule->command(PruneUsersCommand::class)->daily();
$schedule->command(UpdateUsagesCommand::class)->everyFiveMinutes();
$schedule->command(UpdateRateLimitsCommand::class)->everyTenMinutes();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
protected function commands(): void
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
//require base_path('routes/console.php');
}
}

View file

@ -0,0 +1,14 @@
<?php
namespace Convoy\Contracts\Repository;
use Convoy\Models\Server;
use Convoy\Models\ActivityLog;
interface ActivityRepositoryInterface extends RepositoryInterface
{
/**
* Return the server model associated with an activity
*/
public function getServer(ActivityLog $activity): ?Server;
}

View file

@ -1,16 +1,19 @@
<?php
namespace App\Contracts\Repository;
namespace Convoy\Contracts\Repository;
use Closure;
use Illuminate\Support\Collection;
use Convoy\Exceptions\Model\DataValidationException;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Convoy\Exceptions\Repository\RecordNotFoundException;
interface RepositoryInterface
{
/**
* Return an identifier or Model object to be used by the repository.
*
* @return string|\Closure|object
* @return string|Closure|object
*/
public function model();
@ -38,8 +41,7 @@ interface RepositoryInterface
/**
* An array of columns to filter the response by.
*
* @param array|string $columns
*
* @param array|string $columns
* @return $this
*/
public function setColumns($columns = ['*']);
@ -72,7 +74,7 @@ interface RepositoryInterface
*
* @return mixed
*
* @throws \App\Exceptions\Model\DataValidationException
* @throws DataValidationException
*/
public function create(array $fields, bool $validate = true, bool $force = false);
@ -81,7 +83,7 @@ interface RepositoryInterface
*
* @return mixed
*
* @throws \App\Exceptions\Repository\RecordNotFoundException
* @throws RecordNotFoundException
*/
public function find(int $id);
@ -95,7 +97,7 @@ interface RepositoryInterface
*
* @return mixed
*
* @throws \App\Exceptions\Repository\RecordNotFoundException
* @throws RecordNotFoundException
*/
public function findFirstWhere(array $fields);
@ -117,12 +119,11 @@ interface RepositoryInterface
/**
* Update a given ID with the passed array of fields.
*
* @param int $id
*
* @param int $id
* @return mixed
*
* @throws \App\Exceptions\Model\DataValidationException
* @throws \App\Exceptions\Repository\RecordNotFoundException
* @throws DataValidationException
* @throws RecordNotFoundException
*/
public function update($id, array $fields, bool $validate = true, bool $force = false);
@ -137,7 +138,7 @@ interface RepositoryInterface
*
* @return mixed
*
* @throws \App\Exceptions\Model\DataValidationException
* @throws DataValidationException
*/
public function updateOrCreate(array $where, array $fields, bool $validate = true, bool $force = false);
@ -166,4 +167,4 @@ interface RepositoryInterface
* Get the amount of entries in the database.
*/
public function count(): int;
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace Convoy\Contracts\Repository;
use Convoy\Models\Server;
use Convoy\Exceptions\Repository\RecordNotFoundException;
interface ServerRepositoryInterface extends RepositoryInterface
{
/**
* Check if a given UUID and UUID-Short string are unique to a server.
*/
public function isUniqueUuidCombo(string $uuid, string $short): bool;
/**
* Return a server by UUID.
*
* @throws RecordNotFoundException
*/
public function getByUuid(string $uuid): Server;
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Data\Helpers;
use Spatie\LaravelData\Data;
use Convoy\Enums\Helpers\ChecksumAlgorithm;
class ChecksumData extends Data
{
public function __construct(
public string $checksum,
public ChecksumAlgorithm $algorithm,
)
{
}
}

View file

@ -0,0 +1,27 @@
<?php
namespace Convoy\Data\Node\Access;
use Carbon\Carbon;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Casts\EnumCast;
use Convoy\Enums\Node\Access\RealmType;
use Spatie\LaravelData\Attributes\WithCast;
use Spatie\LaravelData\Attributes\Validation\Min;
use Spatie\LaravelData\Attributes\Validation\Max;
class CreateUserData extends Data
{
public function __construct(
#[WithCast(EnumCast::class)]
public RealmType $realm_type,
public bool $enabled,
#[Min(1), Max(60)]
public ?string $username = null,
#[Min(1), Max(64)]
public ?string $password = null,
public ?Carbon $expires_at = null,
)
{
}
}

View file

@ -0,0 +1,29 @@
<?php
namespace Convoy\Data\Node\Access;
use Spatie\LaravelData\Data;
use Convoy\Enums\Node\Access\RealmType;
class UserCredentialsData extends Data
{
public function __construct(
public string $username,
public RealmType $realm_type,
public string $ticket,
public string $csrf_token,
)
{
}
public static function fromRaw(array $raw): UserCredentialsData
{
return new self(...[
'username' => explode('@', $raw['username'])[0],
'realm_type' => RealmType::from(explode('@', $raw['username'])[1]),
'ticket' => $raw['ticket'],
'csrf_token' => $raw['CSRFPreventionToken'],
]);
}
}

View file

@ -0,0 +1,35 @@
<?php
namespace Convoy\Data\Node\Access;
use Carbon\Carbon;
use Illuminate\Support\Arr;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Casts\EnumCast;
use Convoy\Enums\Node\Access\RealmType;
use Spatie\LaravelData\Attributes\WithCast;
class UserData extends Data
{
public function __construct(
public string $username,
public ?string $email,
#[WithCast(EnumCast::class)]
public RealmType $realm_type,
public bool $enabled,
public ?Carbon $expires_at,
)
{
}
public static function fromRaw(array $raw): UserData
{
return new self(...[
'username' => explode('@', $raw['userid'])[0],
'email' => Arr::get($raw, 'email'),
'realm_type' => RealmType::from($raw['realm-type']),
'enabled' => (bool)$raw['enable'],
'expires_at' => Arr::get($raw, 'expire') ? Carbon::createFromTimestamp($raw['expire']) : null,
]);
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Data\Node\Storage;
use Spatie\LaravelData\Data;
class FileMetaData extends Data
{
public function __construct(
public string $file_name,
public string $mime_type,
public int $size,
)
{
}
}

View file

@ -0,0 +1,17 @@
<?php
namespace Convoy\Data\Node\Storage;
use Carbon\CarbonInterface;
use Spatie\LaravelData\Data;
class IsoData extends Data
{
public function __construct(
public string $file_name,
public int $size,
public CarbonInterface $created_at,
)
{
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Data\Server\Deployments;
use Spatie\LaravelData\Data;
use Convoy\Data\Server\Eloquent\AddressData;
class CloudinitAddressConfigData extends Data
{
public function __construct(
public ?AddressData $ipv4,
public ?AddressData $ipv6,
)
{
}
}

View file

@ -0,0 +1,20 @@
<?php
namespace Convoy\Data\Server\Deployments;
use Convoy\Models\Server;
use Convoy\Models\Template;
use Spatie\LaravelData\Data;
class ServerDeploymentData extends Data
{
public function __construct(
public Server $server,
public ?Template $template,
public ?string $account_password,
public bool $should_create_server,
public bool $start_on_completion,
)
{
}
}

View file

@ -0,0 +1,25 @@
<?php
namespace Convoy\Data\Server\Eloquent;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Attributes\Validation\IP;
use Spatie\LaravelData\Attributes\Validation\In;
class AddressData extends Data
{
public function __construct(
public int $id,
public int $address_pool_id,
public ?int $server_id,
#[In(['ipv4', 'ipv6'])]
public string $type,
#[IP]
public string $address,
public int $cidr,
public string $gateway,
public ?string $mac_address,
)
{
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace Convoy\Data\Server\Eloquent;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\DataCollection;
use Spatie\LaravelData\Attributes\DataCollectionOf;
class ServerAddressesData extends Data
{
public function __construct(
#[DataCollectionOf(AddressData::class)]
public DataCollection $ipv4,
#[DataCollectionOf(AddressData::class)]
public DataCollection $ipv6,
)
{
}
}

View file

@ -0,0 +1,23 @@
<?php
namespace Convoy\Data\Server\Eloquent;
use Spatie\LaravelData\Data;
class ServerEloquentData extends Data
{
public function __construct(
public int $id,
public string $uuid_short,
public string $uuid,
public int $node_id,
public string $hostname,
public string $name,
public ?string $description,
public ?string $status,
public ServerUsagesData $usages,
public ServerLimitsData $limits,
)
{
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace Convoy\Data\Server\Eloquent;
use Spatie\LaravelData\Data;
class ServerLimitsData extends Data
{
public function __construct(
public int $cpu,
public int $memory,
public int $disk,
public ?int $snapshots,
public ?int $backups,
public ?int $bandwidth,
public ServerAddressesData $addresses,
public ?string $mac_address,
)
{
}
}

View file

@ -0,0 +1,14 @@
<?php
namespace Convoy\Data\Server\Eloquent;
use Spatie\LaravelData\Data;
class ServerUsagesData extends Data
{
public function __construct(
public int $bandwidth,
)
{
}
}

View file

@ -0,0 +1,15 @@
<?php
namespace Convoy\Data\Server;
use Spatie\LaravelData\Data;
class MacAddressData extends Data
{
public function __construct(
public ?string $proxmox,
public ?string $eloquent,
)
{
}
}

View file

@ -0,0 +1,15 @@
<?php
namespace Convoy\Data\Server\Proxmox\Config;
use Spatie\LaravelData\Data;
class AddressConfigData extends Data
{
public function __construct(
public ?AddressData $ipv4,
public ?AddressData $ipv6,
)
{
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Data\Server\Proxmox\Config;
use Spatie\LaravelData\Data;
class AddressData extends Data
{
public function __construct(
public string $address,
public int $cidr,
public string $gateway,
)
{
}
}

View file

@ -0,0 +1,24 @@
<?php
namespace Convoy\Data\Server\Proxmox\Config;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Casts\EnumCast;
use Convoy\Enums\Server\DiskInterface;
use Spatie\LaravelData\Attributes\WithCast;
class DiskData extends Data
{
public function __construct(
#[WithCast(EnumCast::class)]
public DiskInterface $interface,
public bool $is_primary_disk,
public bool $is_media,
public ?string $media_name,
public int $size,
)
{
}
}

View file

@ -0,0 +1,14 @@
<?php
namespace Convoy\Data\Server\Proxmox\Config;
use Spatie\LaravelData\Data;
class MediaData extends Data
{
public function __construct(
//
)
{
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace Convoy\Data\Server\Proxmox\Config;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\DataCollection;
use Spatie\LaravelData\Attributes\DataCollectionOf;
class ServerConfigData extends Data
{
public function __construct(
public string $mac_address,
#[DataCollectionOf(DiskData::class)]
public DataCollection $boot_order,
#[DataCollectionOf(DiskData::class)]
public DataCollection $disks,
/* public AddressConfigData $addresses */
)
{
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Data\Server\Proxmox\Console;
use Spatie\LaravelData\Data;
class NoVncCredentialsData extends Data
{
public function __construct(
public int $port,
public string $ticket,
public string $pve_auth_cookie,
)
{
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace Convoy\Data\Server\Proxmox\Console;
use Spatie\LaravelData\Data;
use Convoy\Enums\Node\Access\RealmType;
class XTermCredentialsData extends Data
{
public function __construct(
public int $port,
public string $ticket,
public string $username,
public RealmType $realm_type,
public string $pve_auth_cookie,
)
{
}
}

View file

@ -0,0 +1,21 @@
<?php
namespace Convoy\Data\Server\Proxmox;
use Spatie\LaravelData\Data;
use Convoy\Data\Server\Proxmox\Config\ServerConfigData;
class ServerProxmoxData extends Data
{
public function __construct(
public int $id,
public string $uuid_short,
public string $uuid,
public int $node_id,
public string $state,
public bool $locked,
public ServerConfigData $config,
)
{
}
}

View file

@ -0,0 +1,30 @@
<?php
namespace Convoy\Data\Server\Proxmox;
use Spatie\LaravelData\Data;
use Convoy\Enums\Server\State;
class ServerStateData extends Data
{
public function __construct(
public State $state,
public float $cpu_used,
public int $memory_total,
public int $memory_used,
public int $uptime,
)
{
}
public static function fromRaw(array $raw)
{
return new self(...[
'state' => State::from($raw['status']),
'uptime' => $raw['uptime'],
'cpu_used' => $raw['cpu'],
'memory_total' => $raw['maxmem'],
'memory_used' => $raw['mem'],
]);
}
}

View file

@ -0,0 +1,15 @@
<?php
namespace Convoy\Data\Server\Proxmox\Usages;
use Spatie\LaravelData\Data;
class ServerDiskData extends Data
{
public function __construct(
public int $write,
public int $read,
)
{
}
}

View file

@ -0,0 +1,15 @@
<?php
namespace Convoy\Data\Server\Proxmox\Usages;
use Spatie\LaravelData\Data;
class ServerNetworkData extends Data
{
public function __construct(
public int $in,
public int $out,
)
{
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Data\Server\Proxmox\Usages;
use Spatie\LaravelData\Data;
class ServerUsagesData extends Data
{
public function __construct(
public int $bandwidth,
public ServerNetworkData $network,
public ServerDiskData $disk,
)
{
}
}

View file

@ -0,0 +1,10 @@
<?php
namespace Convoy\Enums\Activity;
enum Status: string
{
case OK = 'ok';
case ERROR = 'error';
case RUNNING = 'running';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Api;
enum ApiKeyType: string
{
case ACCOUNT = 'account';
case APPLICATION = 'application';
}

View file

@ -0,0 +1,13 @@
<?php
namespace Convoy\Enums\Helpers;
enum ChecksumAlgorithm: string
{
case MD5 = 'md5';
case SHA1 = 'sha1';
case SHA224 = 'sha224';
case SHA256 = 'sha256';
case SHA384 = 'sha384';
case SHA512 = 'sha512';
}

View file

@ -1,12 +1,9 @@
<?php
namespace App\Enums\Network;
namespace Convoy\Enums\Network;
enum AddressType: string
{
case IPV4 = 'ipv4';
case GWV4 = 'gw'; //gateway
case IPV6 = 'ipv6';
case GWV6 = 'gw6';
}
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Node\Access;
enum RealmType: string
{
case PAM = 'pam';
case PVE = 'pve';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Node\Storage;
enum ContentType: string
{
case ISO = 'iso';
case VZTMPL = 'vztmpl';
}

View file

@ -1,9 +0,0 @@
<?php
namespace App\Enums\Proxmox;
enum AuthenticationType: string
{
case PVE = 'pve'; // use PVE if the user doesn't exist as a Linux user
case PAM = 'pam'; // use PAM only if the user exists as a Linux user
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Server;
enum AuthenticationType: string
{
case KEY = 'ssh_keys';
case PASSWORD = 'password';
}

View file

@ -0,0 +1,11 @@
<?php
namespace Convoy\Enums\Server;
enum BackupCompressionType: string
{
case NONE = 'none';
case LZO = 'lzo';
case GZIP = 'gzip';
case ZSTD = 'zstd';
}

View file

@ -0,0 +1,10 @@
<?php
namespace Convoy\Enums\Server;
enum BackupMode: string
{
case SNAPSHOT = 'snapshot';
case SUSPEND = 'suspend';
case KILL = 'kill';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Server;
enum BiosType: string
{
case OVMF = 'ovmf';
case SEABIOS = 'seabios';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Server;
enum ConsoleType: string
{
case NOVNC = 'novnc';
case XTERMJS = 'xtermjs';
}

View file

@ -0,0 +1,66 @@
<?php
namespace Convoy\Enums\Server;
enum DiskInterface: string
{
case IDE0 = 'ide0';
case IDE1 = 'ide1';
case IDE2 = 'ide2';
case IDE3 = 'ide3';
case SCSI0 = 'scsi0';
case SCSI1 = 'scsi1';
case SCSI2 = 'scsi2';
case SCSI3 = 'scsi3';
case SCSI4 = 'scsi4';
case SCSI5 = 'scsi5';
case SCSI6 = 'scsi6';
case SCSI7 = 'scsi7';
case SCSI8 = 'scsi8';
case SCSI9 = 'scsi9';
case SCSI10 = 'scsi10';
case SCSI11 = 'scsi11';
case SCSI12 = 'scsi12';
case SCSI13 = 'scsi13';
case SCSI14 = 'scsi14';
case SCSI15 = 'scsi15';
case SCSI16 = 'scsi16';
case SCSI17 = 'scsi17';
case SCSI18 = 'scsi18';
case SCSI19 = 'scsi19';
case SCSI20 = 'scsi20';
case SCSI21 = 'scsi21';
case SCSI22 = 'scsi22';
case SCSI23 = 'scsi23';
case SCSI24 = 'scsi24';
case SCSI25 = 'scsi25';
case SCSI26 = 'scsi26';
case SCSI27 = 'scsi27';
case SCSI28 = 'scsi28';
case SCSI29 = 'scsi29';
case SCSI30 = 'scsi30';
case VIRTIO0 = 'virtio0';
case VIRTIO1 = 'virtio1';
case VIRTIO2 = 'virtio2';
case VIRTIO3 = 'virtio3';
case VIRTIO4 = 'virtio4';
case VIRTIO5 = 'virtio5';
case VIRTIO6 = 'virtio6';
case VIRTIO7 = 'virtio7';
case VIRTIO8 = 'virtio8';
case VIRTIO9 = 'virtio9';
case VIRTIO10 = 'virtio10';
case VIRTIO11 = 'virtio11';
case VIRTIO12 = 'virtio12';
case VIRTIO13 = 'virtio13';
case VIRTIO14 = 'virtio14';
case VIRTIO15 = 'virtio15';
case SATA0 = 'sata0';
case SATA1 = 'sata1';
case SATA2 = 'sata2';
case SATA3 = 'sata3';
case SATA4 = 'sata4';
case SATA5 = 'sata5';
case EFIDISK0 = 'efidisk0';
case TPMSTATE0 = 'tpmstate0';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Server;
enum MetricParameter: string
{
case AVERAGE = 'AVERAGE';
case MAX = 'MAX';
}

View file

@ -0,0 +1,12 @@
<?php
namespace Convoy\Enums\Server;
enum MetricTimeframe: string
{
case HOUR = 'hour';
case DAY = 'day';
case WEEK = 'week';
case MONTH = 'month';
case YEAR = 'year';
}

View file

@ -0,0 +1,14 @@
<?php
namespace Convoy\Enums\Server;
enum PowerAction: string
{
case RESTART = 'restart';
case RESET = 'reset';
case RESUME = 'resume';
case SHUTDOWN = 'shutdown';
case START = 'start';
case KILL = 'kill';
case SUSPEND = 'suspend';
}

View file

@ -0,0 +1,14 @@
<?php
namespace Convoy\Enums\Server;
enum State: string
{
case STOPPED = 'stopped';
case RUNNING = 'running';
/* Synthetic states (not part of Proxmox but used in Convoy) */
case STOPPING = 'stopping';
case STARTING = 'starting';
case SHUTTING_DOWN = 'shutting_down';
}

View file

@ -0,0 +1,14 @@
<?php
namespace Convoy\Enums\Server;
enum Status: string
{
case INSTALLING = 'installing';
case INSTALL_FAILED = 'install_failed';
case SUSPENDED = 'suspended';
case RESTORING_BACKUP = 'restoring_backup';
case RESTORING_SNAPSHOT = 'restoring_snapshot';
case DELETING = 'deleting';
case DELETION_FAILED = 'deletion_failed';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Enums\Server;
enum SuspensionAction: string
{
case SUSPEND = 'suspend';
case UNSUSPEND = 'unsuspend';
}

View file

@ -1,9 +0,0 @@
<?php
namespace App\Enums\Servers\Cloudinit;
enum AuthenticationType: string
{
case KEY = 'sshkeys';
case PASSWORD = 'cipassword';
}

View file

@ -1,9 +0,0 @@
<?php
namespace App\Enums\Servers\Cloudinit;
enum BiosType: string
{
case OVMF = 'ovmf';
case SEABIOS = 'seabios';
}

View file

@ -0,0 +1,40 @@
<?php
namespace Convoy\Events\Activity;
use Illuminate\Support\Str;
use Convoy\Models\ActivityLog;
use Illuminate\Database\Eloquent\Model;
abstract class Activity
{
public function __construct(public ActivityLog $model)
{
}
public function is(string $event): bool
{
return $this->model->event === $event;
}
public function actor(): ?Model
{
return $this->isSystem() ? null : $this->model->actor;
}
public function isServerEvent(): bool
{
return Str::startsWith($this->model->event, 'server:');
}
public function isUserEvent(): bool
{
return Str::startsWith($this->model->event, 'user:');
}
public function isSystem()
{
// @phpstan-ignore-next-line
return is_null($this->model->actor_id);
}
}

View file

@ -1,9 +1,9 @@
<?php
namespace App\Exceptions;
namespace Convoy\Exceptions;
use Exception;
class ConvoyException extends Exception
{
}
}

View file

@ -0,0 +1,82 @@
<?php
namespace Convoy\Exceptions;
use Exception;
use Throwable;
use Psr\Log\LoggerInterface;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Http\JsonResponse;
use Illuminate\Container\Container;
use Illuminate\Http\RedirectResponse;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
class DisplayException extends ConvoyException implements HttpExceptionInterface
{
public const LEVEL_DEBUG = 'debug';
public const LEVEL_INFO = 'info';
public const LEVEL_WARNING = 'warning';
public const LEVEL_ERROR = 'error';
/**
* DisplayException constructor.
*/
public function __construct(string $message, ?Throwable $previous = null, protected string $level = self::LEVEL_ERROR, int $code = 0)
{
parent::__construct($message, $code, $previous);
}
public function getErrorLevel(): string
{
return $this->level;
}
public function getStatusCode(): int
{
return Response::HTTP_BAD_REQUEST;
}
public function getHeaders(): array
{
return [];
}
/**
* Render the exception to the user by adding a flashed message to the session
* and then redirecting them back to the page that they came from. If the
* request originated from an API hit, return the error in JSONAPI spec format.
*/
public function render(Request $request): JsonResponse|RedirectResponse
{
if ($request->expectsJson()) {
return response()->json(Handler::toArray($this), $this->getStatusCode(), $this->getHeaders());
}
return redirect()->back()->withInput();
}
/**
* Log the exception to the logs using the defined error level only if the previous
* exception is set.
*
* @throws Throwable
*/
public function report()
{
if (! $this->getPrevious() instanceof Exception || ! Handler::isReportable($this->getPrevious())) {
return null;
}
try {
$logger = Container::getInstance()->make(LoggerInterface::class);
} catch (Exception) {
throw $this->getPrevious();
}
return $logger->{$this->getErrorLevel()}($this->getPrevious());
}
}

View file

@ -1,30 +1,14 @@
<?php
namespace App\Exceptions;
namespace Convoy\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Exception;
use Throwable;
use Illuminate\Container\Container;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of exception types with their corresponding custom log levels.
*
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
*/
protected $levels = [
//
];
/**
* A list of the exception types that are not reported.
*
* @var array<int, class-string<\Throwable>>
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed to the session on validation exceptions.
*
@ -38,13 +22,28 @@ class Handler extends ExceptionHandler
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
public function register(): void
{
$this->reportable(function (Throwable $e) {
//
});
}
/**
* Return an array of exceptions that should not be reported.
*/
public static function isReportable(Exception $exception): bool
{
return (new static(Container::getInstance()))->shouldReport($exception);
}
/**
* Helper method to allow reaching into the handler to convert an exception
* into the expected array response type.
*/
public static function toArray(Throwable $e): array
{
return (new self(app()))->convertExceptionToArray($e);
}
}

View file

@ -0,0 +1,26 @@
<?php
namespace Convoy\Exceptions\Http\Server;
use Throwable;
use Convoy\Models\Server;
use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
class ServerStatusConflictException extends ConflictHttpException
{
/**
* Exception thrown when the server is in an unsupported state for API access or
* certain operations within the codebase.
*/
public function __construct(Server $server, Throwable $previous = null)
{
$message = 'This server is currently in an unsupported status, please try again later.';
if ($server->isSuspended()) {
$message = 'This server is currently suspended and the functionality requested is unavailable.';
} elseif (! $server->isInstalled()) {
$message = 'This server has not yet completed its installation process, please try again later.';
}
parent::__construct($message, $previous);
}
}

View file

@ -1,10 +1,11 @@
<?php
namespace App\Exceptions\Model;
namespace Convoy\Exceptions\Model;
use Illuminate\Support\MessageBag;
use Convoy\Exceptions\ConvoyException;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Validation\Validator;
use App\Exceptions\ConvoyException;
use Illuminate\Contracts\Support\MessageProvider;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
@ -40,27 +41,20 @@ class DataValidationException extends ConvoyException implements HttpExceptionIn
/**
* Return the validator message bag.
*
* @return \Illuminate\Support\MessageBag
*/
public function getMessageBag()
public function getMessageBag(): MessageBag
{
return $this->validator->errors();
}
/**
* Return the status code for this request.
*
* @return int
*/
public function getStatusCode(): int
{
return 500;
}
/**
* @return array
*/
public function getHeaders(): array
{
return [];
@ -75,4 +69,4 @@ class DataValidationException extends ConvoyException implements HttpExceptionIn
{
return $this->model;
}
}
}

View file

@ -1,9 +1,15 @@
<?php
namespace App\Exceptions\Repository\Proxmox;
namespace Convoy\Exceptions\Repository\Proxmox;
use App\Exceptions\Repository\RepositoryException;
use Illuminate\Http\Client\Response;
use Illuminate\Http\Client\RequestException;
use Convoy\Exceptions\Repository\RepositoryException;
class ProxmoxConnectionException extends RepositoryException
{
}
public function __construct(Response $response, RequestException $exception)
{
parent::__construct($response->reason() . PHP_EOL . $exception->getMessage() . PHP_EOL . $exception->getTraceAsString(), $exception->getCode(), $exception);
}
}

View file

@ -1,6 +1,6 @@
<?php
namespace App\Exceptions\Repository;
namespace Convoy\Exceptions\Repository;
use Illuminate\Http\Response;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
@ -9,8 +9,6 @@ class RecordNotFoundException extends RepositoryException implements HttpExcepti
{
/**
* Returns the status code.
*
* @return int
*/
public function getStatusCode(): int
{
@ -19,11 +17,9 @@ class RecordNotFoundException extends RepositoryException implements HttpExcepti
/**
* Returns response headers.
*
* @return array
*/
public function getHeaders(): array
{
return [];
}
}
}

View file

@ -1,9 +1,9 @@
<?php
namespace App\Exceptions\Repository;
namespace Convoy\Exceptions\Repository;
use App\Exceptions\ConvoyException;
use Convoy\Exceptions\ConvoyException;
class RepositoryException extends ConvoyException
{
}
}

View file

@ -0,0 +1,13 @@
<?php
namespace Convoy\Exceptions\Service\Api;
use Throwable;
use Convoy\Exceptions\ConvoyException;
class InvalidJWTException extends ConvoyException
{
public function __construct(?Throwable $previous = null)
{
parent::__construct(message: 'Invalid JWT token', previous: $previous);
}
}

View file

@ -0,0 +1,16 @@
<?php
namespace Convoy\Exceptions\Service\Backup;
use Convoy\Exceptions\DisplayException;
class BackupLockedException extends DisplayException
{
/**
* TooManyBackupsException constructor.
*/
public function __construct()
{
parent::__construct('Cannot delete a backup that is marked as locked.');
}
}

View file

@ -0,0 +1,18 @@
<?php
namespace Convoy\Exceptions\Service\Backup;
use Convoy\Exceptions\DisplayException;
class TooManyBackupsException extends DisplayException
{
/**
* TooManyBackupsException constructor.
*/
public function __construct(int $backupLimit)
{
parent::__construct(
sprintf('Cannot create a new backup, this server has reached its limit of %d backups.', $backupLimit)
);
}
}

View file

@ -0,0 +1,9 @@
<?php
namespace Convoy\Exceptions\Service\Deployment;
use Convoy\Exceptions\DisplayException;
class InvalidTemplateException extends DisplayException
{
}

View file

@ -0,0 +1,18 @@
<?php
namespace Convoy\Exceptions\Service\Network;
use Convoy\Exceptions\DisplayException;
class AddressInUseException extends DisplayException
{
/**
* TooManyBackupsException constructor.
*/
public function __construct(int $addressId)
{
parent::__construct(
sprintf('Address %d is currently in use by another server.', $addressId),
);
}
}

View file

@ -0,0 +1,13 @@
<?php
namespace Convoy\Exceptions\Service\Node\IsoLibrary;
use Convoy\Exceptions\DisplayException;
class InvalidIsoLinkException extends DisplayException
{
public function __construct()
{
parent::__construct('The ISO link provided is either unreachable or invalid.');
}
}

View file

@ -0,0 +1,13 @@
<?php
namespace Convoy\Exceptions\Service\Server\Allocation;
use Convoy\Exceptions\DisplayException;
class IsoAlreadyMountedException extends DisplayException
{
public function __construct()
{
parent::__construct('The requested ISO is already mounted');
}
}

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