Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7451205bf4 | |||
| 7b65d8c9b5 | |||
| 09b9886ee7 |
4 changed files with 11 additions and 10 deletions
|
|
@ -2,14 +2,14 @@ import os
|
|||
|
||||
from granian import Granian
|
||||
from granian.constants import Interfaces, Loops
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, PositiveInt
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class WorkersSettings(BaseModel):
|
||||
per_core: int = Field(1, ge=1)
|
||||
max: int | None = Field(None, ge=1)
|
||||
exact: int | None = Field(None, ge=1)
|
||||
per_core: PositiveInt = 1
|
||||
max: PositiveInt | None = None
|
||||
exact: PositiveInt | None = None
|
||||
|
||||
@property
|
||||
def count(self) -> int:
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
"animate.css": "^4.1.1",
|
||||
"axios": "^1.13.5",
|
||||
"bulma": "^1.0.4",
|
||||
"bulma-toast": "2.4.3",
|
||||
"bulma-toast": "2.4.4",
|
||||
"eslint": "^10.0.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-oxlint": "~1.49.0",
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ advent22Store().init();
|
|||
app.mount("#app");
|
||||
|
||||
toast_set_defaults({
|
||||
message: "",
|
||||
duration: 10e3,
|
||||
pauseOnHover: true,
|
||||
dismissible: true,
|
||||
|
|
|
|||
10
ui/yarn.lock
10
ui/yarn.lock
|
|
@ -2075,7 +2075,7 @@ __metadata:
|
|||
animate.css: "npm:^4.1.1"
|
||||
axios: "npm:^1.13.5"
|
||||
bulma: "npm:^1.0.4"
|
||||
bulma-toast: "npm:2.4.3"
|
||||
bulma-toast: "npm:2.4.4"
|
||||
eslint: "npm:^10.0.1"
|
||||
eslint-config-prettier: "npm:^10.1.8"
|
||||
eslint-plugin-oxlint: "npm:~1.49.0"
|
||||
|
|
@ -2311,10 +2311,10 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"bulma-toast@npm:2.4.3":
|
||||
version: 2.4.3
|
||||
resolution: "bulma-toast@npm:2.4.3"
|
||||
checksum: 10c0/40dd9668643338496eb28caca9b772a6002d9c6fbdc5d76237cbdaaa8f56c8ced39965705f92f5d5a29f3e6df57f70a8fa311cf05c14075aacf93f96f7338470
|
||||
"bulma-toast@npm:2.4.4":
|
||||
version: 2.4.4
|
||||
resolution: "bulma-toast@npm:2.4.4"
|
||||
checksum: 10c0/ccb36b5c632585e9e5bca4b7da7fa5f5e0e87da6244cca580bbb95fc8f3d0dc78d8b279fe0dfe024818baa1c47c2139e50d052447b130fb525ae5ffdb297acfd
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue