Skip to content
Open
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
5 changes: 5 additions & 0 deletions apps/harness-brother-ql/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ export const adapter: DriverAdapter<BrotherQLDevice, BrotherQLMedia> = {
groupBy,
swatch,
describe: m => m.name,
// Brother QL with media detection enabled is the canonical strict
// case — the printer reads the roll's continuous/die-cut shape and
// refuses to print on anything else. The shell renders the
// "Locked to detected media" banner with the catalogue disabled.
detectionEnforced: true,
},

buildDiagnosticImage: ({ device, engine, media, harnessVersion, driverVersion }) =>
Expand Down
9 changes: 9 additions & 0 deletions apps/harness-niimbot/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/// <reference types="vite/client" />
/// <reference types="web-bluetooth" />

declare module '*.vue' {
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const component: DefineComponent<Record<string, never>, Record<string, never>, any>;
export default component;
}
13 changes: 13 additions & 0 deletions apps/harness-niimbot/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>thermal-label · niimbot harness</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
39 changes: 39 additions & 0 deletions apps/harness-niimbot/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "@thermal-label/harness-niimbot",
"version": "0.0.0",
"private": true,
"description": "Browser-hosted niimbot hardware-reporting harness. Single-page guided UX, Web Bluetooth connect, diagnostic-print, prefilled GitHub-issue submit. Workspace-internal — released only as zipped static-bundle GitHub Release artifacts.",
"type": "module",
"license": "MIT",
"author": "Mannes Brak",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit -p tsconfig.json",
"test": "vitest run --passWithNoTests",
"lint": "eslint src"
},
"dependencies": {
"@mbtech-nl/bitmap": "^1.3.0",
"@thermal-label/contracts": "^0.6.0",
"@thermal-label/harness-components": "workspace:*",
"@thermal-label/harness-core": "workspace:*",
"@thermal-label/harness-shell": "workspace:*",
"@thermal-label/niimbot-core": "^0.1.0",
"@thermal-label/niimbot-web": "^0.1.0",
"@thermal-label/transport": "^0.5.0",
"vue": "^3.5.0"
},
"devDependencies": {
"@mbtech-nl/eslint-config": "^1.1.0",
"@mbtech-nl/tsconfig": "^1.1.0",
"@types/node": "^22.0.0",
"@types/web-bluetooth": "^0.0.20",
"@vitejs/plugin-vue": "^5.1.0",
"typescript": "~5.5.0",
"vite": "^5.4.0",
"vitest": "^2.0.0",
"vue-tsc": "^2.1.0"
}
}
Loading
Loading