Compare commits
43 Commits
main
...
2022-03-24
Author | SHA1 | Date |
---|---|---|
Luca | c9fa7131bd | 3 years ago |
Luca | 52e8c895cb | 3 years ago |
Luca | 8dfabec920 | 3 years ago |
Luca | f8d7c080d9 | 3 years ago |
Luca | 5a8d94e21e | 3 years ago |
Luca | 89d903d360 | 3 years ago |
Luca | 4291107050 | 3 years ago |
Luca | 6ffcaf3f8b | 3 years ago |
Luca | 099d8371b3 | 3 years ago |
Luca | 9def5d689e | 3 years ago |
Luca | 1ba5cd9fe8 | 3 years ago |
Luca | aacd2ae83c | 3 years ago |
Luca | 4c1396398c | 3 years ago |
Luca | 91f40167e2 | 3 years ago |
Luca | 82076f2003 | 3 years ago |
Luca | c585115e2a | 3 years ago |
Luca | 673aa60bcd | 3 years ago |
Luca | 08d6f8e3e5 | 3 years ago |
Luca | 633e36b5f3 | 3 years ago |
Luca | 1d586e0ee6 | 3 years ago |
Luca | a50e415d24 | 3 years ago |
Luca | 64b281c4c8 | 3 years ago |
Luca | 0f4f90cfa3 | 3 years ago |
Luca | 9d7fbd56fa | 3 years ago |
Luca | c0f19eb2ff | 3 years ago |
Luca | 0419e7b217 | 3 years ago |
Luca | a562914339 | 3 years ago |
Luca | 1c10c21ad2 | 3 years ago |
Luca | ba2cc09dc0 | 3 years ago |
Luca | d84a336310 | 3 years ago |
Luca | 915b35c7b0 | 3 years ago |
Luca | 2870d84a0a | 3 years ago |
Luca | b1cb122b86 | 3 years ago |
Luca | a788bc9cde | 3 years ago |
Luca | c8706d527e | 3 years ago |
Luca | 15c677a28c | 3 years ago |
Luca | b2356afb79 | 3 years ago |
Luca | 9b4dda44b0 | 3 years ago |
Luca | 2e71130a4c | 3 years ago |
Luca | 11c8aa2536 | 3 years ago |
Luca | efe62792e1 | 3 years ago |
Luca | 7f5c2da582 | 3 years ago |
Luca | d5640c4c69 | 3 years ago |
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../includes/application.php';
|
||||
|
||||
require_once __DIR__ . '/../includes/pages/schedule/ImportSchedule.php';
|
||||
use Engelsystem\Controllers\Admin\Schedule\ImportSchedule;
|
||||
|
||||
$script = array_shift($argv);
|
||||
if (count($argv) === 0) {
|
||||
echo "usage: $script '*'|SCHEDULE_ID [SCHEDULE_ID...]" . PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
|
||||
$app = app();
|
||||
|
||||
$scheduleIds = $argv;
|
||||
if ($argv[0] === '*') {
|
||||
$db = $app->get('db');
|
||||
$scheduleIds = array_map(fn(stdClass $schedule) => $schedule->id, $db->select('SELECT id FROM schedules'));
|
||||
}
|
||||
|
||||
$importer = $app->get(ImportSchedule::class);
|
||||
|
||||
foreach ($scheduleIds as $id) {
|
||||
try {
|
||||
$importer->doImport($id);
|
||||
} catch (ErrorException $e) {
|
||||
echo "import '$id' failed:" . PHP_EOL . $e->getMessage() . PHP_EOL;
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Engelsystem\Migrations;
|
||||
|
||||
use Engelsystem\Database\Migration\Migration;
|
||||
|
||||
class RenameGroups extends Migration
|
||||
{
|
||||
const GROUPS = [
|
||||
[-10, '1-Gast', '1-Besucher*in'],
|
||||
[-20, '2-Engel', '2-Helfer*in'],
|
||||
[-40, '3-Shift Coordinator', '3-Schicht-Koordinator*in'],
|
||||
[-50, '4-Team Coordinator', '4-Team-Koordinator*in'],
|
||||
[-60, '5-Bürokrat', '5-Bürokrat*in'],
|
||||
[-70, '6-Developer', '6-Entwickler*in'],
|
||||
];
|
||||
|
||||
/**
|
||||
* Run the migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$connection = $this->schema->getConnection();
|
||||
|
||||
foreach (self::GROUPS as [$id, $old, $new]) {
|
||||
$connection->update(
|
||||
'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?',
|
||||
[$new, $id]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
$connection = $this->schema->getConnection();
|
||||
|
||||
foreach (self::GROUPS as [$id, $old, $new]) {
|
||||
$connection->update(
|
||||
'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?',
|
||||
[$old, $id]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
# Run schedule import every minute
|
||||
*/1 * * * * /app/bin/import '*'
|
@ -1,5 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="135mm" height="135mm">
|
||||
<g transform="rotate(180 255.7 239.5)">
|
||||
<path d="m262.16 408.63c-70.507 0-127.66-66.46-127.66-148.44 0-45.996 17.956-87.059 46.202-114.29v-34.156l-179.95-52.779v-100.51l510.58-0.01416 0.0743 96.124-165.36 59.377h-2.432v31.957c28.247 27.228 46.202 68.291 46.202 114.29 0 81.983-57.157 148.44-127.66 148.44zm0 70.373c-124.23 0-224.93-40.861-224.93-91.265s100.71-91.265 224.93-91.265 224.93 40.861 224.93 91.265-100.71 91.265-224.93 91.265zm0-46.182c102.74 0 186.02-28.553 186.02-63.775s-83.286-63.776-186.02-63.776c-102.74 0-186.02 28.553-186.02 63.776s83.286 63.775 186.02 63.775z"/>
|
||||
</g>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="28.00242mm" width="28.00242mm"><path style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 25.83203,27.114244 C 11.6334,27.114244 0,38.747274 0,52.946274 c 0,14.19863 11.6334,25.775401 25.83203,25.775401 14.19875,0 25.77539,-11.576771 25.77539,-25.775401 0,-14.199 -11.57664,-25.83203 -25.77539,-25.83203 z m 54.22656,0 c -14.19863,0 -25.83008,11.63303 -25.83008,25.83203 0,14.19863 11.63145,25.775401 25.83008,25.775401 14.19875,0 25.77734,-11.576771 25.77734,-25.775401 0,-14.199 -11.57859,-25.83203 -25.77734,-25.83203 z m -62.14453,7.75391 h 6.16992 l 18.07617,18.07812 -18.02148,18.01953 h -6.28125 l 18.07617,-18.01953 z m 64.00195,0.0547 h 6.28125 l -18.07617,18.07618 18.07617,18.02148 H 81.9707 L 63.94921,52.999034 Z"/></svg>
|
||||
|
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 869 B |
@ -0,0 +1,135 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Engelsystem 2.0\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Last-Translator: \n"
|
||||
"Language: de_DE\n"
|
||||
|
||||
msgid "auth.not-found"
|
||||
msgstr ""
|
||||
"Es wurde kein Benutzer gefunden oder das Passwort ist falsch. Probiere es bitte noch einmal. Wenn das Problem "
|
||||
"weiterhin besteht, melde dich beim Infopoint."
|
||||
|
||||
msgid "validation.password.required"
|
||||
msgstr "Bitte gib ein Passwort an."
|
||||
|
||||
msgid "validation.login.required"
|
||||
msgstr "Bitte gib einen Benutzernamen an."
|
||||
|
||||
msgid "validation.email.required"
|
||||
msgstr "Bitte gib eine E-Mail-Adresse an."
|
||||
|
||||
msgid "validation.email.email"
|
||||
msgstr "Die E-Mail-Adresse ist nicht gültig."
|
||||
|
||||
msgid "validation.password.min"
|
||||
msgstr "Dein neues Passwort ist zu kurz."
|
||||
|
||||
msgid "validation.new_password.min"
|
||||
msgstr "Dein neues Passwort ist zu kurz."
|
||||
|
||||
msgid "validation.password.confirmed"
|
||||
msgstr "Deine Passwörter stimmen nicht überein."
|
||||
|
||||
msgid "validation.password_confirmation.required"
|
||||
msgstr "Du musst dein Passwort bestätigen."
|
||||
|
||||
msgid "schedule.edit.success"
|
||||
msgstr "Das Programm wurde erfolgreich konfiguriert."
|
||||
|
||||
msgid "schedule.import"
|
||||
msgstr "Programm importieren"
|
||||
|
||||
msgid "schedule.import.request-error"
|
||||
msgstr "Das Programm konnte nicht abgerufen werden."
|
||||
|
||||
msgid "schedule.import.read-error"
|
||||
msgstr "Das Programm konnte nicht gelesen werden."
|
||||
|
||||
msgid "schedule.import.invalid-shift-type"
|
||||
msgstr "Der Schichttyp konnte nicht gefunden werden."
|
||||
|
||||
msgid "schedule.import.success"
|
||||
msgstr "Das Programm wurde erfolgreich importiert."
|
||||
|
||||
msgid "validation.schedule-url.required"
|
||||
msgstr "Bitte gib eine Programm-URL an."
|
||||
|
||||
msgid "validation.schedule-url.url"
|
||||
msgstr "Die Programm-URL muss eine URL sein."
|
||||
|
||||
msgid "validation.shift-type.required"
|
||||
msgstr "Der Schichttyp ist erforderlich."
|
||||
|
||||
msgid "validation.shift-type.int"
|
||||
msgstr "Der Schichttyp muss eine Zahl sein."
|
||||
|
||||
msgid "validation.minutes-before.int"
|
||||
msgstr "Die Minuten vor dem Programmpunkt müssen eine Zahl sein."
|
||||
|
||||
msgid "validation.minutes-after.int"
|
||||
msgstr "Die Minuten nach dem Programmpunkt müssen eine Zahl sein."
|
||||
|
||||
msgid "news.comment.success"
|
||||
msgstr "Kommentar gespeichert"
|
||||
|
||||
msgid "news.comment-delete.success"
|
||||
msgstr "Kommentar erfolgreich gelöscht"
|
||||
|
||||
msgid "news.edit.success"
|
||||
msgstr "News erfolgreich aktualisiert"
|
||||
|
||||
msgid "news.delete.success"
|
||||
msgstr "News erfolgreich gelöscht"
|
||||
|
||||
msgid "oauth.invalid-state"
|
||||
msgstr "Ungültiger OAuth-Status"
|
||||
|
||||
msgid "oauth.provider-error"
|
||||
msgstr "Login-Provider-Fehler"
|
||||
|
||||
msgid "oauth.already-connected"
|
||||
msgstr "Dieser Account wurde bereits mit einem anderen Helfer*innen-Benutzer verbunden."
|
||||
|
||||
msgid "oauth.connected"
|
||||
msgstr "Login-Provider verbunden"
|
||||
|
||||
msgid "oauth.disconnected"
|
||||
msgstr "Login-Provider getrennt"
|
||||
|
||||
msgid "oauth.not-found"
|
||||
msgstr "Account nicht gefunden"
|
||||
|
||||
msgid "oauth.provider-not-found"
|
||||
msgstr "OAuth-Provider nicht gefunden"
|
||||
|
||||
msgid "settings.profile"
|
||||
msgstr "Profil"
|
||||
|
||||
msgid "settings.password.success"
|
||||
msgstr "Passwort wurde erfolgreich geändert"
|
||||
|
||||
msgid "faq.delete.success"
|
||||
msgstr "FAQ-Eintrag erfolgreich gelöscht"
|
||||
|
||||
msgid "faq.edit.success"
|
||||
msgstr "FAQ-Eintrag erfolgreich aktualisiert"
|
||||
|
||||
msgid "question.delete.success"
|
||||
msgstr "Frage erfolgreich gelöscht"
|
||||
|
||||
msgid "question.add.success"
|
||||
msgstr "Frage erstellt"
|
||||
|
||||
msgid "question.edit.success"
|
||||
msgstr "Frage erfolgreich bearbeitet"
|
||||
|
||||
msgid "notification.news.new"
|
||||
msgstr "Neuer Newspost: %s"
|
||||
|
||||
msgid "user.edit.success"
|
||||
msgstr "Benutzer erfolgreich bearbeitet"
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue