Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }}
Expand All @@ -36,13 +36,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }}
Expand All @@ -60,7 +60,7 @@ jobs:
#mkdocs:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v5
# - uses: actions/checkout@v6
# - name: Setup python ${{ env.PYTHON_VERSION }}
# uses: actions/setup-python@v6
# with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Release

on: workflow_dispatch

permissions:
contents: write
issues: write
pull-requests: write

env:
NODE_VERSION: '24.x'
PYTHON_VERSION: '3.13'
Expand All @@ -16,13 +21,13 @@ jobs:
new_release_version: ${{ steps.semantic.outputs.new_release_version }}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache Node.js modules
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }}
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [1.1.1-dev.1](https://github.com/Lint-Free-Technology/flipdown-timer-card/compare/v1.1.0...v1.1.1-dev.1) (2026-02-11)

### Bug Fixes

* Styling button width fails when buttons are placed at bottom. ([b1d363c](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/b1d363c7babf5ad63edeebbdebd353bf6c4bc9fb)), closes [#13](https://github.com/Lint-Free-Technology/flipdown-timer-card/issues/13)

### Miscellaneous

* Add context for rollup to fix formatjs warning/issue ([03a1f71](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/03a1f7137efa8580185eae4711a556223320fbc7))
* Fix links in package.json ([4990551](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/49905511d405fabb91e5a2adc9fa5992435689f2))
* Update console installed notification branding ([c25cb70](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/c25cb70bcb2beeff79537f04824ddb6506def9d4))

## [1.1.0](https://github.com/dcapslock/flipdown-timer-card/compare/v1.0.1...v1.1.0) (2025-11-07)

### Features
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flipdown-timer-card",
"version": "1.1.0",
"version": "1.1.1-dev.1",
"description": "Flipdown timer card for lovelace",
"main": "dist/flipdown-timer-card.js",
"type": "module",
Expand All @@ -15,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/dcapslock/flipdown-timer-card.git"
"url": "git@github.com:Lint-Free-Technology/flipdown-timer-card.git"
},
"keywords": [
"lovelace"
Expand All @@ -26,9 +26,9 @@
],
"license": "MIT",
"bugs": {
"url": "https://github.com/dcapslock/flipdown-timer-card/issues"
"url": "https://github.com/Lint-Free-Technology/flipdown-timer-card/issues"
},
"homepage": "https://github.com/dcapslock/flipdown-timer-card#readme",
"homepage": "https://github.com/Lint-Free-Technology/flipdown-timer-card#readme",
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
Expand Down
19 changes: 12 additions & 7 deletions release.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ module.exports = {
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'Fix', section: 'Bug Fixes' },
{ type: 'doc', hidden: false, section: 'Documentation' },
{ type: 'docs', hidden: false, section: 'Documentation' },
{ type: 'chore', hidden: true, section: 'Chores' },
{ type: 'feat', section: '⭐ New Features' },
{ type: 'fix', section: '🐞 Bug Fixes' },
{ type: 'Fix', section: '🐞 Bug Fixes' },
{ type: 'perf', hidden: false, section: '⚡ Performance Improvements' },
{ type: 'doc', hidden: false, section: '📔 Documentation' },
{ type: 'docs', hidden: false, section: '📔 Documentation' },
{ type: 'chore', hidden: true, section: '🔧 Chores' },
{ type: 'build', hidden: false, section: '⚙️ Miscellaneous' },
{ type: 'ci', hidden: false, section: '⚙️ Miscellaneous' },
{ type: 'refactor', hidden: false, section: '⚙️ Miscellaneous' },
{ type: 'test', hidden: false, section: '⚙️ Miscellaneous' },
],
},
},
Expand All @@ -44,5 +49,5 @@ module.exports = {
],
],
preset: 'conventionalcommits',
branches: [{ name: 'master' }, { name: 'dev', channel: 'beta', prerelease: true }],
branches: [{ name: 'master' }, { name: 'dev', channel: 'beta', prerelease: 'beta' }],
};
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ export default [
watch: {
exclude: 'node_modules/**',
},
context: 'window',
},
];
9 changes: 5 additions & 4 deletions src/flipdown-timer-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import { FlipDown } from './library/flipdown.js';
import { styles } from './styles';

/* eslint no-console: 0 */
console.info(
`%c FLIPDOWN-TIMER-CARD \n%c ${localize('common.version')} ${pjson.version} `,
'color: orange; font-weight: bold; background: black',
'color: white; font-weight: bold; background: dimgray',
console.groupCollapsed(
`%c💡 FLIPDOWN-TIMER-CARD ${pjson.version} IS INSTALLED 💡`,
'color: white; background-color: #CE3226; padding: 2px 5px; font-weight: bold; border-radius: 5px;',
);
console.log('Readme:', 'https://github.com/Lint-Free-Technology/flipdown-timer-card');
console.groupEnd();

// This puts your card into the UI card picker dialog
(window as any).customCards = (window as any).customCards || [];
Expand Down
7 changes: 3 additions & 4 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,9 @@ export const styles = css`
.flipdown .button-group.button-bottom .btn-top,
.flipdown .button-group.button-bottom .btn-bottom {
overflow: hidden;
width: var(
var(--flipdown-button-width, var(--button-width, 50px)),
calc(var(--flipdown-rotor-width, var(--rotor-width, 50px)) * 2 + 5px)
);
--flipdown-calculated-button-width: calc(var(--flipdown-rotor-width, var(--rotor-width, 50px)) * 2 + 5px);
--flipdown-styled-button-width: var(--flipdown-button-width, var(--button-width));
width: var(--flipdown-styled-button-width, var(--flipdown-calculated-button-width));
margin: 0px;
height: var(--flipdown-button-height, var(--button-height, 20px));
padding: 0px;
Expand Down