add history card title changes
This commit is contained in:
parent
d816974e6f
commit
3ff078e031
3 changed files with 11 additions and 0 deletions
|
@ -100,6 +100,9 @@ async function main() {
|
||||||
? "horizontal"
|
? "horizontal"
|
||||||
: undefined,
|
: undefined,
|
||||||
hide_title: core.getBooleanInput("common_hide_title"),
|
hide_title: core.getBooleanInput("common_hide_title"),
|
||||||
|
title: core.getInput("history_card_title")
|
||||||
|
? core.getInput("history_card_title")
|
||||||
|
: `Last ${parseNumber(core.getInput("history_card_language_count"))} days XP history`,
|
||||||
hide_border: core.getBooleanInput("common_hide_border"),
|
hide_border: core.getBooleanInput("common_hide_border"),
|
||||||
theme:
|
theme:
|
||||||
core.getInput("theme") in themes
|
core.getInput("theme") in themes
|
||||||
|
|
|
@ -94,6 +94,11 @@ inputs:
|
||||||
type: number
|
type: number
|
||||||
default: 14
|
default: 14
|
||||||
|
|
||||||
|
history_card_title:
|
||||||
|
description: Change the cards title
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
common_hide_languages:
|
common_hide_languages:
|
||||||
description: "Hide specific line, eg: `scminput,Log,Plain text`"
|
description: "Hide specific line, eg: `scminput,Log,Plain text`"
|
||||||
required: false
|
required: false
|
||||||
|
|
3
dist/action.js
vendored
3
dist/action.js
vendored
|
@ -145,6 +145,9 @@ function main() {
|
||||||
? "horizontal"
|
? "horizontal"
|
||||||
: undefined,
|
: undefined,
|
||||||
hide_title: core.getBooleanInput("common_hide_title"),
|
hide_title: core.getBooleanInput("common_hide_title"),
|
||||||
|
title: core.getInput("history_card_title")
|
||||||
|
? core.getInput("history_card_title")
|
||||||
|
: "Last ".concat((0, utils_1.parseNumber)(core.getInput("history_card_language_count")), " days XP history"),
|
||||||
hide_border: core.getBooleanInput("common_hide_border"),
|
hide_border: core.getBooleanInput("common_hide_border"),
|
||||||
theme: core.getInput("theme") in themes_json_1.default
|
theme: core.getInput("theme") in themes_json_1.default
|
||||||
? core.getInput("theme")
|
? core.getInput("theme")
|
||||||
|
|
Loading…
Add table
Reference in a new issue