-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Rewrite of the storage engine
- Loading branch information
Showing
110 changed files
with
4,948 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,34 @@ | ||
{ | ||
"php.version": "8.3", | ||
"cSpell.words": [ | ||
"tailwindcss" | ||
] | ||
"acaches", | ||
"asuccessful", | ||
"asuccessfully", | ||
"autoloader", | ||
"ccaches", | ||
"dbconfigure", | ||
"ealready", | ||
"ERRMODE", | ||
"fklmnor", | ||
"Inno", | ||
"jsyaml", | ||
"Kutzu", | ||
"mythicalcore", | ||
"mythicalframework", | ||
"rfiles", | ||
"Swal", | ||
"tailwindcss", | ||
"unban", | ||
"unic", | ||
"unverification", | ||
"unverify" | ||
], | ||
"cSpell.useGitignore": true, | ||
"cSpell.ignorePaths": [ | ||
"settings.json", | ||
"composer-lock.json", | ||
], | ||
"window.title": "${appName}", | ||
"window.autoDetectColorScheme": true, | ||
"editor.minimap.enabled": true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
use MythicalSystems\Api\Api as api; | ||
use MythicalSystemsFramework\Managers\LanguageManager; | ||
|
||
api::init(); | ||
api::allowOnlyGET(); | ||
|
||
if (isset($_GET['key']) && !$_GET['key'] == '') { | ||
if (isset($_GET['orElse']) && !$_GET['orElse'] == '') { | ||
$key = $_GET['key']; | ||
$orElse = $_GET['orElse']; | ||
if (isset($_GET['plain'])) { | ||
$plain = true; | ||
} else { | ||
$plain = false; | ||
} | ||
|
||
$translation = LanguageManager::getLang(); | ||
$translation = $translation[$key] ?? $orElse; | ||
|
||
if ($translation == $orElse) { | ||
$error = 'The translation does not exist!'; | ||
} else { | ||
$error = null; | ||
} | ||
|
||
if ($plain) { | ||
exit($translation); | ||
} else { | ||
api::OK('The translation exists!', ['RESULT' => $translation, 'result' => $translation, 'text' => $translation, 'message' => $translation, 'error' => $error]); | ||
} | ||
} else { | ||
api::BadRequest('You are missing the GET field for orElse!', []); | ||
} | ||
} else { | ||
api::BadRequest('You are missing the GET field for key!', []); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\Cli; | ||
|
||
interface CommandBuilder | ||
{ | ||
/** | ||
* Execute the command. | ||
* | ||
* @param bool $isFrameworkCommand Is it a framework command? | ||
* @param array $args the arguments passed to the command | ||
* | ||
* @return void it should return nothing as it is a void function | ||
*/ | ||
public static function execute(bool $isFrameworkCommand, array $args): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\Cli\Commands; | ||
|
||
use MythicalSystemsFramework\Cli\CommandBuilder; | ||
|
||
class Backup extends Command implements CommandBuilder | ||
{ | ||
public static string $description = 'A command to backup the application.'; | ||
|
||
public static function execute(bool $isFrameworkCommand, array $args): void | ||
{ | ||
echo self::log_info('Backing up the application...'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.