remove "doors" from admin ConfigModel (is public)
This commit is contained in:
parent
2ae4fb8695
commit
b73185e4fb
2 changed files with 2 additions and 5 deletions
|
@ -31,7 +31,6 @@ class ConfigModel(BaseModel):
|
||||||
class __Calendar(BaseModel):
|
class __Calendar(BaseModel):
|
||||||
config_file: str
|
config_file: str
|
||||||
background: str
|
background: str
|
||||||
doors: list[int]
|
|
||||||
|
|
||||||
class __Image(BaseModel):
|
class __Image(BaseModel):
|
||||||
class __Font(BaseModel):
|
class __Font(BaseModel):
|
||||||
|
@ -73,7 +72,6 @@ async def get_config_model(
|
||||||
"calendar": {
|
"calendar": {
|
||||||
"config_file": cfg.puzzle.calendar,
|
"config_file": cfg.puzzle.calendar,
|
||||||
"background": cal_cfg.background,
|
"background": cal_cfg.background,
|
||||||
"doors": [door.day for door in cal_cfg.doors],
|
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
"size": 500, # TODO
|
"size": 500, # TODO
|
||||||
|
|
|
@ -49,7 +49,8 @@
|
||||||
|
|
||||||
<dt>Türchen</dt>
|
<dt>Türchen</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<span>{{ admin_config_model.calendar.doors.join(", ") }}</span>
|
<!-- <span>{{ admin_config_model.calendar.doors.join(", ") }}</span> -->
|
||||||
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
|
||||||
<span class="tag is-danger ml-2">
|
<span class="tag is-danger ml-2">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<font-awesome-icon icon="fa-solid fa-bolt" />
|
<font-awesome-icon icon="fa-solid fa-bolt" />
|
||||||
|
@ -133,7 +134,6 @@ interface ConfigModel {
|
||||||
calendar: {
|
calendar: {
|
||||||
config_file: string;
|
config_file: string;
|
||||||
background: string;
|
background: string;
|
||||||
doors: number[];
|
|
||||||
};
|
};
|
||||||
image: {
|
image: {
|
||||||
size: number;
|
size: number;
|
||||||
|
@ -165,7 +165,6 @@ export default class extends Vue {
|
||||||
calendar: {
|
calendar: {
|
||||||
config_file: "default.toml",
|
config_file: "default.toml",
|
||||||
background: "adventskalender.jpg",
|
background: "adventskalender.jpg",
|
||||||
doors: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
|
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
size: 500,
|
size: 500,
|
||||||
|
|
Loading…
Reference in a new issue