mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-21 12:32:24 +01:00
Put my logo everywhere
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,dependency-freshness) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,dependency-freshness) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Todo: 7808ee0a
This commit is contained in:
parent
3ecf9234c4
commit
9725e48044
@ -4,7 +4,7 @@
|
||||
aiohttp==3.14.5
|
||||
bandit==1.9.4
|
||||
codespell==2.4.3
|
||||
coverage==7.17.3
|
||||
coverage==7.17.4
|
||||
earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.22.0#subdirectory=earned_time
|
||||
howlongtobeatpy==1.0.24
|
||||
leisure-watch @ git+https://github.com/kuhyx/leisure-watch@leisure-watch-v0.2.8
|
||||
|
||||
@ -20,14 +20,15 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@kuhyx/web-ui": "github:kuhyx/utils#web_ui-v0.5.0&path:/web_ui",
|
||||
"astro": "7.4.12"
|
||||
"@kuhyx/kuhy-credit": "github:kuhyx/utils#kuhy-credit-v0.3.0&path:kuhy_credit/web",
|
||||
"astro": "7.4.13"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "0.9.12",
|
||||
"@eslint/js": "10.0.1",
|
||||
"@testing-library/dom": "10.4.2",
|
||||
"@testing-library/jest-dom": "7.0.1",
|
||||
"@testing-library/user-event": "14.6.12",
|
||||
"@testing-library/jest-dom": "8.0.0",
|
||||
"@testing-library/user-event": "14.6.13",
|
||||
"@types/node": "26.6.6",
|
||||
"@vitest/coverage-v8": "5.1.1",
|
||||
"eslint": "10.15.0",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@ import { button, setValue, submit } from '../test/events'
|
||||
import { apiError, bodiesOf, stubApi } from '../test/harness'
|
||||
import { field, found, openRunner, phraseInput, text } from '../test/runnerHelpers'
|
||||
import { runner } from '../lib/runner'
|
||||
import { RunnerDialogElement } from './runnerDialog'
|
||||
import './runnerDialog'
|
||||
|
||||
const waitText = (s: string | RegExp) => vi.waitFor(() => {
|
||||
expect(text()).toMatch(s)
|
||||
@ -109,7 +109,7 @@ describe('<runner-dialog> form', () => {
|
||||
runner.run('done')
|
||||
await found('Run done')
|
||||
expect(el.querySelector('dialog')).toHaveAttribute('aria-label', 'Done')
|
||||
expect((el as RunnerDialogElement).querySelectorAll('form')).toHaveLength(1)
|
||||
expect(el.querySelectorAll('form')).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// Registers every element the shell uses, then wires page-wide behaviour.
|
||||
import '@kuhyx/kuhy-credit'
|
||||
import '../commands/commandButton'
|
||||
import '../commands/palette'
|
||||
import '../commands/runnerDialog'
|
||||
|
||||
1
web/src/env.d.ts
vendored
1
web/src/env.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
/// <reference path="../.astro/types.d.ts" />
|
||||
/// <reference types="astro/client" />
|
||||
/// <reference path="../node_modules/@kuhyx/kuhy-credit/src/kuhy-credit.d.ts" />
|
||||
|
||||
@ -71,6 +71,7 @@ const href = (to: string) => (to === '/' ? '/' : `${to}/`)
|
||||
<job-indicator></job-indicator>
|
||||
<span class="grow"></span>
|
||||
<health-badges></health-badges>
|
||||
<kuhy-credit placement="below"></kuhy-credit>
|
||||
</header>
|
||||
<stale-banner></stale-banner>
|
||||
<main id="main" class="main" tabindex="-1">
|
||||
|
||||
23
web/src/layouts/shellCredit.test.ts
Normal file
23
web/src/layouts/shellCredit.test.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { resolve } from 'node:path'
|
||||
|
||||
describe('Shell layout credit component', () => {
|
||||
it('contains kuhy-credit with placement="below" after health-badges', () => {
|
||||
const shellPath = resolve(import.meta.dirname, 'Shell.astro')
|
||||
const content = readFileSync(shellPath, 'utf-8')
|
||||
|
||||
const healthBadgesIdx = content.indexOf('<health-badges></health-badges>')
|
||||
const creditIdx = content.indexOf('<kuhy-credit placement="below"></kuhy-credit>')
|
||||
|
||||
expect(healthBadgesIdx).toBeGreaterThan(-1)
|
||||
expect(creditIdx).toBeGreaterThan(-1)
|
||||
expect(creditIdx).toBeGreaterThan(healthBadgesIdx)
|
||||
})
|
||||
|
||||
it('registers kuhy-credit custom element', async () => {
|
||||
await import('@kuhyx/kuhy-credit')
|
||||
const el = customElements.get('kuhy-credit')
|
||||
expect(el).toBeDefined()
|
||||
})
|
||||
})
|
||||
@ -190,6 +190,8 @@ kbd {
|
||||
/* Keep keyboard-focused elements clear of the sticky top bar (operability rule 4). */
|
||||
html { scroll-padding-top: calc(var(--space-6) + var(--space-3)); }
|
||||
|
||||
.topbar kuhy-credit { --kuhy-credit-size: 2.25rem; flex: 0 0 auto; }
|
||||
|
||||
/* Slot wrappers that must not add a flex/grid gap of their own. */
|
||||
.contents { display: contents; }
|
||||
/* Custom elements are layout-transparent wrappers around their content. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user