Skip to content

Commit b06ce7a

Browse files
committed
feat: improve stuff
1 parent 7f047ae commit b06ce7a

File tree

3 files changed

+61
-16
lines changed

3 files changed

+61
-16
lines changed

docs/pages/about/changelog/beta-2024-11.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
- `-info` values are now dimmed in supported terminal emulators.
1717
- `dbGet($table, $record)` now has an optional argument `$default` which will be returned if the database record is empty.
1818
- Migrations are now forced on extension installs. This change makes the [`developerForceMigrate` flag](?page=documentation/flags) obsolete.
19-
- Add `fs` modifier to `{root}` [placeholder](?page=documentation/placeholders).
2019
- Add `engine` [placeholder](?page=documentation/placeholders).
2120
- Broadcast `queue:restart` command on extension transaction.
2221
- Deprecated flags now provide warnings on extension transactions.
2322
- Add private version of ExtensionFS (`blueprint_private:<identifier>`) that is symlinked to the extension's private directory.
24-
- [`Components.yml`](?page=documentation/componentsyml) has a new "Global" scope.
23+
- [`Components.yml`](?page=documentation/componentsyml) has a new "Global" scope within "Dashboard".
24+
- Install, remove and export scripts now have access to the `$ENGINE` environment variable.
2525

2626
<br/>
2727

@@ -33,7 +33,7 @@
3333
<br/>
3434

3535
#### Breaking Changes
36-
- [`Conf.yml`](?page=documentation/confyml) `requests_controllers` has been deprecated and will alias to `requests_app`. This does not change implementation and can be resolved by renaming the configuration option.
36+
- [`conf.yml`](?page=documentation/confyml) `requests_controllers` has been deprecated and will alias to `requests_app`. This does not change implementation and can be resolved by renaming the configuration option.
3737
- [BlueprintExtensionLibrary](?page=documentation/$blueprint)'s `dbGet($table, $record)` method now returns `null` when a value is empty, instead of returning an empty string.
3838
- [BlueprintExtensionLibrary](?page=documentation/$blueprint)'s **legacy variation** is being phased out. All `notify` and `file` methods now return false. This does not impact admin, client and console variations.
3939
- Resolved docs/implementation mismatch causing `requests_routers` to default to `application` instead of `web`. Backwards compatibility is not provided with this change.

docs/pages/documentation/componentsyml.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ Component file paths cannot escape the components directory **and** cannot end w
3131
The YAML file shown below contains all configuration options that are currently supported by Blueprint's components feature.
3232

3333
```yaml
34-
Global:
35-
BeforeApplication: "" # beta-2024-11 and later
36-
AfterApplication: "" # beta-2024-11 and later
37-
3834
Navigation:
3935
NavigationBar:
4036
BeforeNavigation: ""
@@ -49,14 +45,18 @@ Navigation:
4945
# - { Name: "", Path: "", Type: "account/server", Component: "", AdminOnly: "boolean" }
5046

5147
Dashboard:
52-
BeforeContent: ""
53-
AfterContent: ""
54-
ServerRow:
55-
BeforeEntryName: ""
56-
AfterEntryName: ""
57-
BeforeEntryDescription: ""
58-
AfterEntryDescription: ""
59-
ResourceLimits: ""
48+
Global:
49+
BeforeSection: "" # beta-2024-11 and later
50+
AfterSection: "" # beta-2024-11 and later
51+
Serverlist:
52+
BeforeContent: ""
53+
AfterContent: ""
54+
ServerRow:
55+
BeforeEntryName: ""
56+
AfterEntryName: ""
57+
BeforeEntryDescription: ""
58+
AfterEntryDescription: ""
59+
ResourceLimits: ""
6060

6161
Authentication:
6262
Container:

docs/pages/documentation/scripts.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,49 @@ Scripts can **prevent extensions from being listed** on the [extension browse li
2020
- Updating extensions utilizing scripts must not break their modifications.
2121
- Scripts should use **environment variables** or [placeholders](?page=documentation/placeholders) for detecting the webserver folder.
2222

23-
**Export scripts are free from (most of) these limitations** as they are specifically made to help the developer automate actions upon export. As long as you don't cause permanent damages through export scripts, you should be fine.
23+
**Export scripts are free from (most of) these limitations** as they are specifically made to help the developer automate actions upon export. As long as you don't cause permanent damages through export scripts, you should be fine.
24+
25+
<br/>
26+
27+
### **Environment variables**
28+
These variables can be used anywhere in your scripts and are automatically assigned the correct value by Blueprint.
29+
30+
<!-- $ENGINE -->
31+
`$ENGINE`
32+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">remove.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
33+
Codename of the engine currently handling the extension.
34+
35+
<!-- $EXTENSION_IDENTIFIER -->
36+
`$EXTENSION_IDENTIFIER`
37+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">remove.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
38+
Provides the extension's identifier.
39+
40+
<!-- $EXTENSION_VERSION -->
41+
`$EXTENSION_VERSION`
42+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">remove.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
43+
Provides the extension's version.
44+
45+
<!-- $EXTENSION_TARGET -->
46+
`$EXTENSION_TARGET`
47+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">remove.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
48+
Provides the extension's defined target version, not to be confused with the version the extension is currently being installed on.
49+
50+
<!-- $PTERODACTYL_DIRECTORY -->
51+
`$PTERODACTYL_DIRECTORY`
52+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">remove.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
53+
Path towards the Pterodactyl webserver folder, commonly `/var/www/pterodactyl`.
54+
55+
<!-- $BLUEPRINT_VERSION -->
56+
`$BLUEPRINT_VERSION`
57+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">remove.sh <i class="bi bi-check"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
58+
Blueprint version currently installed on the target panel.
59+
60+
<!-- $BLUEPRINT_DEVELOPER -->
61+
`$BLUEPRINT_DEVELOPER`
62+
<span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">install.sh <i class="bi bi-check"></i></span> <span class="badge bg-secondary-subtle text-secondary-emphasis rounded-pill opacity-50">remove.sh <i class="bi bi-x"></i></span> <span class="badge bg-secondary-subtle text-secondary-emphasis rounded-pill opacity-50">export.sh <i class="bi bi-x"></i></span>\
63+
Either `true` or `false` depending on if the extension was installed through developer commands.
64+
65+
<!-- $BLUEPRINT_EXPORT_DIRECTORY -->
66+
`$BLUEPRINT_EXPORT_DIRECTORY`
67+
<span class="badge bg-secondary-subtle text-secondary-emphasis rounded-pill opacity-50">install.sh <i class="bi bi-x"></i></span> <span class="badge bg-secondary-subtle text-secondary-emphasis rounded-pill opacity-50">remove.sh <i class="bi bi-x"></i></span> <span class="badge bg-primary-subtle text-primary-emphasis rounded-pill">export.sh <i class="bi bi-check"></i></span>\
68+
Path towards the folder where Blueprint is building the extension package.

0 commit comments

Comments
 (0)