Implements Phases 1-8 of the TFTSR implementation plan. Rust backend (Tauri 2.x, src-tauri/): - Multi-provider AI: OpenAI-compatible, Anthropic, Gemini, Mistral, Ollama - PII detection engine: 11 regex patterns with overlap resolution - SQLCipher AES-256 encrypted database with 10 versioned migrations - 28 Tauri IPC commands for triage, analysis, document, and system ops - Ollama: hardware probe, model recommendations, pull/delete with events - RCA and blameless post-mortem Markdown document generators - PDF export via printpdf - Audit log: SHA-256 hash of every external data send - Integration stubs for Confluence, ServiceNow, Azure DevOps (v0.2) Frontend (React 18 + TypeScript + Vite, src/): - 9 pages: full triage workflow NewIssue→LogUpload→Triage→Resolution→RCA→Postmortem→History+Settings - 7 components: ChatWindow, TriageProgress, PiiDiffViewer, DocEditor, HardwareReport, ModelSelector, UI primitives - 3 Zustand stores: session, settings (persisted), history - Type-safe tauriCommands.ts matching Rust backend types exactly - 8 IT domain system prompts (Linux, Windows, Network, K8s, DB, Virt, HW, Obs) DevOps: - .woodpecker/test.yml: rustfmt, clippy, cargo test, tsc, vitest on every push - .woodpecker/release.yml: linux/amd64 + linux/arm64 builds, Gogs release upload Verified: - cargo check: zero errors - tsc --noEmit: zero errors - vitest run: 13/13 unit tests passing Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| CHANGELOG.md | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
CSS Shorthand Properties
A simple way to list all shorthand CSS properties and which properties they expand to.
I tried to search for an existing simple list but couldn't find one, so I trawled through the various W3C CSS specs and collated the data.
Only specs that are Candidate Recommendations or better are counted, with the exception of some Working Drafts that have a lot of traction in browser implementations. So far the WD specs included here are Animation and Transitions.
Usage
Available on npm as css-shorthand-properties, or in the browser as a global called cssShorthandProps
Properties
shorthandProperties
The core data as a simple JS object. Each key is a CSS shorthand property. Each value is a compacted list of CSS properties that the shorthand expands to.
There is a convenience method (listed below) that means you shouldn’t need to access this list directly, but it’s available for other use cases.
Methods
isShorthand
- Returns a boolean indicating if a CSS property is a shorthand.
- Parameters:
property(String) Shorthand property to expand.
- Returns: Boolean
cssShorthandProps.isShorthand('border'); // true
cssShorthandProps.isShorthand('display'); // false
expand
- Takes a CSS shorthand property and returns a list of longhand properties.
- Parameters:
property(String) Shorthand property to expand.recurse(Boolean – optional, defaultfalse) If true, each longhand property will also be run throughexpand(). This is only useful for theborderproperty.
- Returns: Array with a list of longhand properties that the given property expands to. If the property is not a shorthand, the array contains only the original property.
// Standard usage
cssShorthandProps.expand('list-style');
// ['list-style-type', 'list-style-position', 'list-style-image']
// Non-shorthand properties return themselves in an array
cssShorthandProps.expand('color');
// ['color']
// Using 'border' in normal mode...
cssShorthandProps.expand('border');
// ['border-width', 'border-style', 'border-color']
// ...but the border properties are also shorthands
cssShorthandProps.expand('border-width');
// ['border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width']
// Using 'border' with recursion returns an array of arrays
cssShorthandProps.expand('border', true);
/*
[
['border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width'],
['border-top-style', 'border-right-style', 'border-bottom-style', 'border-left-style'],
['border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color']
]
*/