Skip to content

Commit cd67865

Browse files
committed
feat: add viewcontext and appcontext placeholders
1 parent 2384ad1 commit cd67865

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.zed/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"tab_size": 2,
55
"hard_tabs": false
66
}
7-
}
7+
},
8+
"format_on_save": "off"
89
}

scripts/commands/extensions/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ InstallExtension() {
332332
-e "s~!{target~{__BP_ESCAPED__target~g" \
333333
-e "s~!{root~{__BP_ESCAPED__root~g" \
334334
-e "s~!{webroot~{__BP_ESCAPED__webroot~g" \
335+
-e "s~!{viewcontext~{__BP_ESCAPED__viewcontext~g" \
336+
-e "s~!{appcontext~{__BP_ESCAPED__appcontext~g" \
335337
-e "s~!{engine~{__BP_ESCAPED__engine~g" \
336338
-e "s~!{fs~{__BP_ESCAPED__fs~g" \
337339
-e "s~!{is_~{__BP_ESCAPED__is_~g" \
@@ -346,6 +348,8 @@ InstallExtension() {
346348
-e "s~{target}~$VERSION~g" \
347349
-e "s~{root}~$FOLDER~g" \
348350
-e "s~{webroot}~/~g" \
351+
-e "s~{viewcontext}~blueprint.extensions.$identifier~g" \
352+
-e "s~{appcontext}~Pterodactyl\\BlueprintFramework\\Extensions\\$identifier~g" \
349353
-e "s~{engine}~$BLUEPRINT_ENGINE~g" \
350354
-e "s~{fs}~blueprint:$identifier~g" \
351355
\
@@ -371,6 +375,8 @@ InstallExtension() {
371375
-e "s~{__BP_ESCAPED__target~{target~g" \
372376
-e "s~{__BP_ESCAPED__root~{root~g" \
373377
-e "s~{__BP_ESCAPED__webroot~{webroot~g" \
378+
-e "s~{__BP_ESCAPED__viewcontext~{viewcontext~g" \
379+
-e "s~{__BP_ESCAPED__appcontext~{appcontext~g" \
374380
-e "s~{__BP_ESCAPED__engine~{engine~g" \
375381
-e "s~{__BP_ESCAPED__fs~{fs~g" \
376382
-e "s~{__BP_ESCAPED__is_~{is~g" \

0 commit comments

Comments
 (0)