CoreLib
Update to v0.1.4 Add `is_function_in_file` and if the key is "<ORIGINAL>", the `TranslationManager.translate()` will return it directly. (For some strings that don't need to translate in specific language) Launcher Update to 0.1.0a0 Add plugin system support and add some useful apis for plugin. Add "Refresh avatar cache" to account page.
This commit is contained in:
1 parent
deb06f0190
commit
c3662d4cc6
34 files changed
+2192
-57
No files matched your search
@@ -3,7 +3,7 @@ import warnings
|
||||
from typing import Literal, Any
|
||||
from uuid import UUID
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, field_validator, model_validator
|
||||
from pydantic import BaseModel, ConfigDict, field_validator, model_validator, Field
|
||||
|
||||
from constant import CLIENT_ID
|
||||
|
||||
@@ -74,4 +74,7 @@ class AccountSettings(WarnExtraModel):
|
||||
def validate_token_refresh_interval(cls, value: int) -> int:
|
||||
if value < 60 or value > 86400:
|
||||
raise ValueError("token refresh interval must be at least 60 seconds and at most 1 day")
|
||||
return value
|
||||
return value
|
||||
|
||||
class PluginSettings(WarnExtraModel):
|
||||
enabled: list[str] = Field(default_factory=list)
|
||||
Reference in new issue
Block a user