Commit graph

449 commits

Author SHA1 Message Date
purple
b7d16d3fde feat(core): Update fallback version to latest, 2023-10-10 21:27:41 +02:00
purple
9a693b571b fix(core): Updating extensions with public folders would remove all folders in public/extensions/. 2023-10-10 20:35:56 +02:00
purple
09d7e21fb1 feat(core): Update fallback version to latest. 2023-10-07 20:55:22 +02:00
purple
e3e1612615 fix(blueprint.sh): Finally get route removal working in -remove. 2023-10-01 15:40:32 +02:00
purple
27727b8a97 feat(assets, blueprint.sh): Update defaultExtensionLogo1, defaultExtensionLogo2, defaultExtensionLogo3, defaultExtensionLogo4, defaultExtensionLogo5, defaultExtensionLogo6.
Add defaultExtensionLogo7, defaultExtensionLogo8, defaultExtensionLogo9.
Update icon rolling to allow for 9 placeholder icons instead of 6.
2023-10-01 15:13:54 +02:00
purple
bbf98659ea fix(blueprint.sh): Make sure that not all extension routes become comments. 2023-10-01 15:01:05 +02:00
purple
17ce287e0b fix(blueprint.sh): Description field in -init used [INFO] instead of [INPUT] 2023-10-01 14:55:17 +02:00
purple
51f860b4fe fix(blueprint.sh): Correctly remove routes when removing extensions. 2023-10-01 14:52:10 +02:00
purple
ee057495ac fix(blueprint.sh): Extension installation crashed when providing no icon. 2023-10-01 14:39:28 +02:00
purple
a1e42cf37a feat(blueprint.sh): Try new way of removing admin routes when uninstalling extensions. 2023-10-01 14:29:33 +02:00
purple
aa54ad9a2a feat(blueprint.sh): Improve readability and add comments. 2023-10-01 14:25:10 +02:00
purple
cf90ee9b55 Remove extension route removal for now. 2023-09-30 17:33:38 +02:00
purple
64ab445c54 Attempt at fixing route removal. 2023-09-30 16:33:59 +02:00
purple
0506ee76ea "blueprint -install example.blueprint" will no longer cause a "not found" error. 2023-09-29 17:19:27 +02:00
purple
ff88db53e7 Stop misplaced "YN" string from ruining everything 2023-09-24 16:45:02 +02:00
purple
9e681ace33 Silence rm output on -wipe 2023-09-24 16:40:32 +02:00
purple
c3a36ac6fe Link filesystems when installing and mute route:cache output. 2023-09-24 15:58:26 +02:00
purple
3b4b1d67da Fix -wipe not wiping hidden files. 2023-09-24 11:20:37 +02:00
purple
f14e148307 Add "onboarding modal" template. 2023-09-23 17:31:39 +02:00
purple
e35390f633 Add shortcuts for dev commands and add new -wipe command. 2023-09-23 17:14:04 +02:00
purple
cdd2314092 Add "dashboard overlay" template. 2023-09-23 16:34:02 +02:00
purple
f6c3b98cd2 Add "theme" template. 2023-09-23 16:19:28 +02:00
purple
0f5706646e Fix bug regarding stacked -init answers and make templates work. 2023-09-23 16:07:49 +02:00
purple
b9cb4bc640 Create template file tree. 2023-09-23 15:46:10 +02:00
purple
9719547db9 Add template option to -init, doesn't do anything yet. 2023-09-23 15:36:32 +02:00
purple
b97f9d3023 Update fallback version to latest. 2023-09-19 20:10:00 +02:00
purple
c0954e9958 Add more telemetry messages. 2023-09-19 19:30:46 +02:00
purple
7af4762d46 Update "updating route cache" message log and mute output. 2023-09-13 14:55:15 +02:00
purple
aef3f8bef1 Clear route cache every time after changing them. 2023-09-12 19:55:48 +02:00
purple
fdabfb2399 Fix dependency error caused by code formatting, 2023-09-11 16:32:55 +02:00
purple
4820111540 Make new missing dependencies log functional. 2023-09-11 16:29:38 +02:00
purple
7538050826 Test better "missing dependencies" layout. 2023-09-11 16:23:49 +02:00
purple
08a7d5e541 Put dependency names between quotes for better readability. 2023-09-10 14:31:13 +02:00
purple
2b951c36eb Move backwards-compatible ExtensionLibrary back to Services/Helpers/ 2023-09-07 18:26:27 +02:00
purple
bffc7e02ba Reset terminal color after running custom extension installation script. 2023-09-07 18:22:41 +02:00
purple
465d7c32fc Fix wrong file path for BlueprintPlaceholderService. 2023-09-07 16:32:29 +02:00
purple
942285cab3 Move all Blueprint libraries into a new "BlueprintFramework" folder in the app directory.
I also added a "legacy" extensionlibrary for backwards compatability for now.
2023-09-07 16:17:04 +02:00
purple
f422110247 Improve readability on some if statements and add new string validations for installing extensions. 2023-09-06 17:54:23 +02:00
purple
1fe19cfd0e Fix adding rejected -init answers to the final string injected into conf.yml. 2023-09-06 17:30:34 +02:00
purple
0c8be71f95 Some characters were detected as "yes" when confirming upgrade warnings. 2023-09-06 15:00:07 +02:00
purple
3f8a4d1546 Add comment about .blueprint unarchiving in blueprint.sh. 2023-09-05 18:46:43 +02:00
purple
f30f5ff4f4 Update fallback version to latest. 2023-09-03 22:56:30 +02:00
purple
4d9485a034 Fix double checking of "unzip" dependency and add printDebug.sh tool. 2023-09-03 14:12:36 +02:00
purple
3eb0be9082 Check for "curl", "sed" and "php" as well. 2023-09-02 18:36:56 +02:00
purple
46f9c632dc Add "zip" and "unzip" as required internal dependencies. 2023-09-02 18:30:09 +02:00
purple
cb3ad3f731 Attempt at fixing broken upgrade due to unexpected script exits. 2023-08-31 18:33:19 +02:00
purple
7e92b24aa8 Fix installation script not running with latest changes. 2023-08-31 18:29:00 +02:00
purple
ceba097f60 Didn't make a correct if statement, somehow. 2023-08-31 18:23:40 +02:00
purple
f82478852f Attempt at fixing syntax error caused by unfinished command. 2023-08-31 18:21:07 +02:00
purple
3c1c6ed911 Improve installation folder variable changing. 2023-08-31 18:19:27 +02:00
purple
29ce62ff32 Allow easy changing of the Blueprint folder variable. 2023-08-31 18:13:44 +02:00
purple
79d1290c78 Attempt at fixing upgrading for non-default panel locations. 2023-08-31 18:00:27 +02:00
purple
c70581256b Installations with a non-default Pterodactyl installation folder are now able to use upgrade. 2023-08-31 17:46:19 +02:00
purple
c9622eaca8 Extension icons are no longer required. 2023-08-31 17:19:50 +02:00
purple
ce46c8b6f5 Add yet even more comments and tell what a lot of things do.
Improves readability a ton, trust me.
2023-08-31 10:51:44 +02:00
purple
ce19a77128 Move "check for docker installation" below version variables. 2023-08-27 16:01:36 +02:00
purple
722794fac3 Remove "remove database migrations (maybe)" text from blueprint.sh 2023-08-25 13:01:37 +02:00
purple
62724c9169 Database migrations on extension install has been improved 2023-08-23 21:42:34 +02:00
purple
d2c715d14b Upgrade fallback version to latest 2023-08-21 13:43:35 +02:00
purple
8f227d316f Try to find the conf.yml file before importing it into Blueprint. 2023-08-20 14:33:02 +02:00
purple
bb76e3bc8a Sanitize database migrations variable. 2023-08-20 10:46:52 +02:00
purple
8a3e1def4d Improve dependency checking. 2023-08-18 18:29:01 +02:00
purple
99dab8a3c0 Improve database migrations choice menu for Blueprint installation. 2023-08-17 11:44:09 +02:00
purple
2d0dec0306 Require a supported version of node to use Blueprint 2023-08-17 11:37:53 +02:00
purple
7d6adc155c Improve y/n questions by defaulting to the recommended answer when no input is given. 2023-08-16 18:45:50 +02:00
purple
7d86ec08fd Update "disabled" and "enabled" color scheme for developer command help. 2023-08-15 12:58:36 +02:00
purple
90d1fc474a Fix "-help" not showing correctly.
Includes a recode for help
2023-08-15 12:44:10 +02:00
purple
9eeeb6e9ba Clean up core and make it more readable. 2023-08-15 12:23:40 +02:00
purple
2322ec99f9 Show error when developer mode is not turned on for dev commands.
I also made unknown command a fatal error.
2023-08-15 12:10:30 +02:00
purple
694b820422 Prompt users to use -help when running an unknown command. 2023-08-15 12:05:59 +02:00
Ahwxorg
915c672c98
fix: rename --runinstall to --rerun-install 2023-08-14 13:28:15 +02:00
purple
83b80059fc
Undo minor formatting tweaks as this is intentional 2023-08-12 08:51:03 +02:00
Ahwxorg
1af65e42f2
Update blueprint.shfix(blueprint.sh) automatically display a help menu if someone tries to run an undefined/invalid command 2023-08-12 00:04:45 +02:00
Ahwxorg
ebc3ab0c1c
fix(blueprint.sh): minor formatting tweaks 2023-08-12 00:00:23 +02:00
purple
dee6349b78 Replace folder variable on telemetry.sh and updateAdminCacheReminder.sh 2023-08-11 21:54:25 +02:00
purple
82cb456dfd Reroll admin cache refresh reminder class name after (extension) installation. 2023-08-11 21:50:34 +02:00
purple
30dda95fc1 Add new function that generates a random classname for the admin cache reminder overlay. 2023-08-11 21:39:46 +02:00
purple
5b435aa183 Redo the -help command. 2023-08-11 16:11:53 +02:00
purple
374f7a7eee Add new assets: installWithBlueprintDarkGradient, defaultExtensionLogo5 and defaultExtensionLogo6. 2023-08-11 14:52:43 +02:00
purple
90ba1ae5e1 Do not allow extensions to be installed from other paths as it will lead into unexpected errors. 2023-08-10 11:40:26 +02:00
purple
cb0f86d090 Notify the user when the command they are trying to execute does not exist. 2023-08-09 12:57:18 +02:00
purple
1eec603c7d Developer commands no longer run without developer mode enabled. 2023-08-07 15:53:49 +02:00
purple
5a5154aeb9 Developer commands are now hidden when developer mode is not enabled. 2023-08-07 15:50:54 +02:00
purple
b65a485079 Logging will now still be possible after a failed upgrade/missing library, colors are not applied to those logs. 2023-08-06 13:41:56 +02:00
purple
8719d0d4bd Check for missing Blueprint libraries 2023-08-06 11:48:48 +02:00
purple
3f94763ea5 Fix incorrect path for chown. 2023-08-05 20:49:35 +02:00
purple
89c8f6e33f Require development files for exporting 2023-08-04 12:47:25 +02:00
purple
3ca3adca2a Require development files before building 2023-08-04 12:46:57 +02:00
purple
63a7a2f01b Update fallback version to latest. 2023-08-02 18:21:07 +02:00
purple
78940981f6 Another attempt at making chmod silent.
I've been able to get a simple theme working on the previous Blueprint commit, so that is pretty cool.
2023-08-02 14:28:38 +02:00
purple
0c5b6de6a0 Fix wrong path for -init placeholder icons, another fix for dashboard css and silence chmod output 2023-08-02 13:57:13 +02:00
purple
1d07c3a0a9 Dashboard css is now copied to resources/scripts/css 2023-08-02 13:46:05 +02:00
purple
5b2e62431a Dashboard css wasn't working because of a typo. 2023-08-02 13:32:54 +02:00
purple
c316d091d0 Change the filename of custom extension css for both the admin and client panel. 2023-08-02 10:32:04 +02:00
purple
fa4f2d7677 Update fallback version to latest. 2023-07-31 17:45:56 +02:00
purple
661a07f879 -remove is no longer experimental 2023-07-31 12:51:35 +02:00
purple
31f0917e08 Create function for checking dependencies. 2023-07-31 11:14:32 +02:00
purple
9e2fdee9a9 Add confirmation for removing extensions. 2023-07-31 11:10:39 +02:00
purple
1ba0ce77bd Mute duplicate mkdir logs, silence unzip and quote conf.yml options.
Also -remove works now! The quoted variables are for added security. :)
2023-07-30 22:22:08 +02:00
purple
7a32ee9bab Fix "unmatched }" on admin routes. 2023-07-30 21:11:46 +02:00
purple
c87989d366 Routes wouldn't build correctly, this is now fixed. 2023-07-30 21:02:48 +02:00
purple
486dad1804 Add begin and end string to admin routes, improve extension removal. 2023-07-30 18:22:10 +02:00
purple
6f734f4cca Begin work on -remove command. 2023-07-30 13:28:03 +02:00
purple
0328d36cf1 Add ahwxorg to contributors and move dependency checking to -install and installation script.
Thank you ahwxorg for contributing to Blueprint!
2023-07-30 12:13:53 +02:00
Ahwxorg
6b5ce812f0
feat(blueprint.sh): add checks to see if dependencies are installed 2023-07-30 09:46:15 +02:00
purple
560c9a1fc0 Improve installation instructions and check for the correct NodeJS version. 2023-07-29 21:56:05 +02:00
purple
a1c6d39687 Update README.md and build panel upon installation.
Yarn is now required and Byte will be worked on later.
2023-07-29 12:29:18 +02:00
purple
d4089ac475 Import Byte into blueprint.sh
Byte is probably not going to be released this update, I'm sorry. I need to think about how to implement it in Blueprint, I have a lot of ideas, just don't know where to start.
2023-07-29 11:02:49 +02:00
purple
9cf0883299 Say hello to Byte, only remove placeholder files if needed and fix recovering blueprint.sh after failed upgrade. 2023-07-28 22:12:59 +02:00
purple
4d670f53be Rebuild panel on extension installation if required. 2023-07-28 18:57:04 +02:00
purple
0b8cfd9d77 Move client css to /resources/scripts 2023-07-28 18:24:22 +02:00
purple
84dee8772c Add dashboard_css. 2023-07-28 14:04:46 +02:00
purple
a939916ffc Copy paste extension placeholder image from .blueprint/assets instead of including all of them. 2023-07-27 11:49:15 +02:00
purple
c631da4ff9 Improve non-default folder installations. 2023-07-26 09:24:13 +02:00
purple
bb86229500 Add better support for panels installed in other locations. 2023-07-25 22:42:32 +02:00
purple
027c9d0262 Update fallback version to latest. 2023-07-24 16:03:45 +02:00
purple
08c26c0191 Add dashboard_wrapper below content. 2023-07-23 18:35:37 +02:00
purple
75d4c94351 Attempt at making dashboard_wrapper useful 2023-07-23 18:27:09 +02:00
purple
865d71ec2e Forgot to add -e to echo when adding the newline.
I'm also experimenting with making the wrapper work correctly.
2023-07-23 18:20:01 +02:00
purple
b73bd9c96b Add a linebreak before identifier:stop 2023-07-23 17:54:13 +02:00
purple
e6398f7609 Fix for "input file is output file" 2023-07-23 17:41:32 +02:00
purple
e4e131aee4 Save identifier:start contents to file instead of logging output. 2023-07-23 17:35:00 +02:00
purple
e531e0b528 Another attempt at fixing wrapper updating. 2023-07-23 17:30:49 +02:00
purple
c9ff6a9c5f Attempt at fixing updating wrappers by using perl 2023-07-23 17:03:01 +02:00
purple
10b571a0a5 Fix dashboard_wrapper and admin_wrapper backup files. 2023-07-23 16:36:52 +02:00
purple
eb5a9957bc Change datafolder ownership to www-data when installing extensions. 2023-07-23 15:23:28 +02:00
purple
9f2a0572ee Update fallback version to latest. 2023-07-23 15:02:04 +02:00
purple
4ce4dd0170 Add extension updating support for admin and dashboard wrappers. 2023-07-22 13:13:00 +02:00
purple
3726e7d963 Improve file contents parsing for extension updating. 2023-07-22 12:54:01 +02:00
purple
94b3478d8c Extension upgrading did not work as expected, this commit contains a bugfix attempt. 2023-07-22 12:50:11 +02:00
purple
ea34890e74 Implement extension upgrading.
This works by backup up all generated values upon extension installation and using them when updating extensions. This also means you won't get duplicate extension buttons in your extensions admin page. Expect a few more commits with bug fixes after this one, as I've got to test everything.
2023-07-22 12:40:00 +02:00
purple
2454c3c0d0 Fix wrong variable and add warning for updating extensions. 2023-07-21 17:32:22 +02:00
purple
90841b7e3a My whole day has been ruined due to a single variable mistake. 2023-07-21 17:11:28 +02:00
purple
920ef8d0c3 Some characters were read as regex by sed when applying extension css. 2023-07-21 17:04:29 +02:00
purple
bff8733018 Use alternative method for applying admin css. 2023-07-21 16:53:03 +02:00
purple
7f0d342af2 Modify CSS placement. 2023-07-21 16:24:26 +02:00
purple
f45879b8b8 CSS was still not applied correctly as it was handled as a folder.
.... somehow
2023-07-21 16:17:03 +02:00
purple
318f783999 Applying custom css was skipped, this is now fixed. 2023-07-21 16:00:56 +02:00
purple
aac4302c36 Only skip including css on duplicate extensions 2023-07-21 15:57:30 +02:00
purple
8191990d80 Add duplicate checking to admin_css 2023-07-21 15:11:19 +02:00
purple
f7956655dd Fix telemetry id -config option. 2023-07-20 19:50:20 +02:00
purple
98dc6601fe Add admin wrapper. Behaves similarly to dashboard wrapper. 2023-07-20 17:26:09 +02:00
purple
6146d6b655 Fix wrongly colored [INFO] in blueprint.sh 2023-07-20 15:44:08 +02:00
purple
4271aa3ee1 Skip applying routes and buttons if extension has already been installed to prevent duplicates. 2023-07-20 15:36:58 +02:00
purple
6d26574d57 Make custom installation script executable before running it. 2023-07-20 13:07:22 +02:00
purple
f4051eeda9 Add new "name" placeholder. 2023-07-20 12:26:00 +02:00
purple
ecd0997113 dashboard_wrapper is now inserted outside of <head> and modify error text for users with a unfinished installation. 2023-07-20 11:46:42 +02:00
purple
29f576dd68
Remove -exec and add -config
-config uses a new thing I recently learned setting up my Raspberry Pi. This should make everything much simpler on the backend side of things and will be more user-friendly.

I'm also thinking of adding BP_xxx error codes, but that isn't final yet, so expect changes.

Well that was it from me again, thanks for checking out Blueprint.
2023-07-16 20:22:59 +02:00
purple
dde406c580
Update fallback version 2023-07-14 11:53:59 +02:00
purple
46f96fc2e8 Fix quit_red and insert "dashboard_wrapper" 2023-07-14 11:02:59 +02:00