Skip to content

Commit bc786f7

Browse files
authored
Merge pull request #1194 from CatoTH/v4-release-bugfixes
V4 release bugfixes
2 parents ce586ec + 455f9c5 commit bc786f7

15 files changed

Lines changed: 75 additions & 70 deletions

composer.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/create-dist.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ cd local/antragsgruen-$ANTRAGSGRUEN_VERSION
4444
curl -sS https://getcomposer.org/installer | php
4545
./composer.phar install --no-dev
4646

47+
./docs/create-static-resources.php v$ANTRAGSGRUEN_VERSION
4748
./docs/create-dist-clean-repository.sh
4849

4950
mkdir plugins runtime
@@ -58,8 +59,6 @@ cp config/.htaccess vendor/
5859
sed -i -e 's/repository\-source/dist/g' config/defines.php
5960
rm -f config/defines.php-e
6061

61-
docs/create-static-resources.php v$ANTRAGSGRUEN_VERSION
62-
6362
cd ..
6463
mv antragsgruen-$ANTRAGSGRUEN_VERSION/local/cdn/v$ANTRAGSGRUEN_VERSION ../dist/antragsgruen-$ANTRAGSGRUEN_VERSION-cdn
6564
rmdir antragsgruen-$ANTRAGSGRUEN_VERSION/local/cdn

docs/create-static-resources.php

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,22 @@ function copyWithDirectory(SplFileInfo $from, string $to): void {
9292
}
9393
}
9494

95-
$files = new RecursiveIteratorIterator(
96-
new RecursiveDirectoryIterator($localPluginDir, RecursiveDirectoryIterator::SKIP_DOTS)
97-
);
98-
foreach ($files as $file) {
99-
/** @var SplFileInfo $file */
100-
if (isPluginRelevantForCDN($file)) {
101-
if (preg_match('/plugins\/(?<plugin>[a-z0-9_-]+)\/assets\/(?<filename>[a-z0-9_.\/-]+)$/siU', $file->getRealPath(), $matches)) {
102-
copyWithDirectory($file, $cdnDir . "/plugins/" . $matches['plugin'] . "/" . $matches['filename']);
103-
} else {
104-
echo "Skipping Plugin Asset: " . $file->getRealPath() . "\n";
95+
if (file_exists($localPluginDir)) {
96+
$files = new RecursiveIteratorIterator(
97+
new RecursiveDirectoryIterator($localPluginDir, RecursiveDirectoryIterator::SKIP_DOTS)
98+
);
99+
foreach ($files as $file) {
100+
/** @var SplFileInfo $file */
101+
if (isPluginRelevantForCDN($file)) {
102+
if (preg_match('/plugins\/(?<plugin>[a-z0-9_-]+)\/assets\/(?<filename>[a-z0-9_.\/-]+)$/siU', $file->getRealPath(), $matches)) {
103+
copyWithDirectory($file, $cdnDir . "/plugins/" . $matches['plugin'] . "/" . $matches['filename']);
104+
} else {
105+
echo "Skipping Plugin Asset: " . $file->getRealPath() . "\n";
106+
}
105107
}
106108
}
109+
} else {
110+
echo "Skipping Plugins\n";
107111
}
108112

109113
// --- Pass 1: collect integrity hashes and direct imports ---

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/js/modules/backend/ConsultationCreate.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class ConsultationCreate {
2525

2626
settingsTypeChanged() {
2727
if (document.getElementById('settingsTypeWizard').checked) {
28-
console.log("checked");
2928
document.querySelector('.settingsTypeWizard').classList.remove('hidden');
3029
document.querySelectorAll('.settingsTypeTemplate').forEach(el => el.classList.add('hidden'));
3130
document.querySelector('.templateSubselect').classList.add('hidden');

web/js/modules/shared/SiteCreateWizard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ export class SiteCreateWizard {
262262
$form.find(".radio-label input").on("change", function () {
263263
const $fieldset = $(this).parents("fieldset").first();
264264
$fieldset.find(".radio-label").removeClass("active");
265-
$(this).parents(".radio-label").first().addClass("active");
265+
const $active = $fieldset.find(".radio-label input:checked");
266+
$active.parents(".radio-label").first().addClass("active");
266267
}).trigger("change");
267268
$form.find(".checkbox-label input").on("change", function () {
268269
const $this = $(this);

web/js/vue/speech/SpeechCommonMixins.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ export function getSpeechCommonMixins() {
217217
this.showApplicationForm += '_poo';
218218
}
219219
this.$nextTick(function () {
220-
if (this.$refs.adderNameInput) {
221-
this.$refs.adderNameInput[0].focus();
222-
} else if (this.$refs.adderNameInput) {
220+
if (this.$refs.adderNameInput instanceof HTMLInputElement) {
221+
// Single Queue
223222
this.$refs.adderNameInput.focus();
223+
} else {
224+
// Multiple Queues
225+
this.$refs.adderNameInput[0].focus();
224226
}
225227
});
226228
},

web/js/vue/speech/UserFooterWidget.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/js/vue/speech/UserFullListWidget.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/js/vue/speech/UserInlineWidget.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)