Implement multi-scheme animation name mapper for Owen Animation System
Some checks failed
CI/CD Pipeline / Test & Lint (16.x) (push) Has been cancelled
CI/CD Pipeline / Test & Lint (18.x) (push) Has been cancelled
CI/CD Pipeline / Test & Lint (20.x) (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Release (push) Has been cancelled
Release / Validate Version (push) Has been cancelled
Release / Build and Test (push) Has been cancelled
Release / Create Release (push) Has been cancelled
Release / Publish to NPM (push) Has been cancelled
Release / Deploy Demo (push) Has been cancelled
Animation Processing Pipeline / Validate Animation Names (push) Has been cancelled
Animation Processing Pipeline / Process Blender Animation Assets (push) Has been cancelled
Animation Processing Pipeline / Update Animation Documentation (push) Has been cancelled
Animation Processing Pipeline / Deploy Animation Demo (push) Has been cancelled

- Added AnimationNameMapper class to handle conversion between different animation naming schemes (legacy, artist, hierarchical, semantic).
- Included methods for initialization, pattern matching, conversion, and validation of animation names.
- Developed comprehensive unit tests for the animation name converter and demo pages using Playwright.
- Created a Vite configuration for the demo application, including asset handling and optimization settings.
- Enhanced the demo with features for batch conversion, performance metrics, and responsive design.
This commit is contained in:
2025-05-24 05:18:13 +02:00
parent d513e80c07
commit ad8dbb95dd
55 changed files with 20060 additions and 6686 deletions

306
demo/styles/examples.css Normal file
View File

@ -0,0 +1,306 @@
/* Examples Page Specific Styles */
.examples-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.examples-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.example-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
}
.example-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.example-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}
.framework-icon {
width: 32px;
height: 32px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: white;
font-size: 0.875rem;
}
.react-icon {
background: #61dafb;
color: #000;
}
.vue-icon {
background: #4fc08d;
}
.node-icon {
background: #339933;
}
.vanilla-icon {
background: #f7df1e;
color: #000;
}
.blender-icon {
background: #e87d0d;
}
.example-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}
.example-description {
color: var(--text-secondary);
margin-bottom: 1.5rem;
line-height: 1.6;
}
.code-example {
background: var(--bg-code);
border: 1px solid var(--border-color);
border-radius: 8px;
overflow: hidden;
margin-bottom: 1rem;
}
.code-header {
background: var(--bg-tertiary);
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
}
.code-language {
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary);
}
.copy-button {
background: none;
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 0.25rem 0.75rem;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.2s ease;
}
.copy-button:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.copy-button.copied {
background: var(--success-bg);
color: var(--success-text);
border-color: var(--success-border);
}
.code-content {
padding: 1rem;
font-family: "Fira Code", "Monaco", "Consolas", monospace;
font-size: 0.875rem;
line-height: 1.5;
color: var(--text-primary);
overflow-x: auto;
}
.integration-steps {
margin-top: 1.5rem;
}
.step {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1rem;
padding: 1rem;
background: var(--bg-tertiary);
border-radius: 8px;
border-left: 4px solid var(--accent-color);
}
.step-number {
background: var(--accent-color);
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: bold;
flex-shrink: 0;
margin-top: 0.125rem;
}
.step-content h4 {
margin: 0 0 0.5rem 0;
color: var(--text-primary);
font-size: 1rem;
}
.step-content p {
margin: 0;
color: var(--text-secondary);
line-height: 1.5;
}
.example-navigation {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.nav-filter {
padding: 0.5rem 1rem;
border: 1px solid var(--border-color);
background: var(--bg-secondary);
color: var(--text-secondary);
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.875rem;
}
.nav-filter:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.nav-filter.active {
background: var(--accent-color);
color: white;
border-color: var(--accent-color);
}
.features-list {
list-style: none;
padding: 0;
margin: 1rem 0;
}
.features-list li {
padding: 0.5rem 0;
padding-left: 1.5rem;
position: relative;
color: var(--text-secondary);
}
.features-list li::before {
content: "✓";
position: absolute;
left: 0;
color: var(--success-text);
font-weight: bold;
}
.download-section {
margin-top: 2rem;
padding: 1.5rem;
background: var(--bg-tertiary);
border-radius: 8px;
border: 1px solid var(--border-color);
}
.download-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
flex-wrap: wrap;
}
.download-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
background: var(--accent-color);
color: white;
text-decoration: none;
border-radius: 6px;
font-weight: 500;
transition: all 0.2s ease;
}
.download-link:hover {
background: var(--accent-hover);
transform: translateY(-1px);
}
.error-boundary {
border: 2px dashed var(--error-border);
background: var(--error-bg);
color: var(--error-text);
padding: 1rem;
border-radius: 8px;
margin: 1rem 0;
text-align: center;
}
@media (max-width: 768px) {
.examples-container {
padding: 1rem;
}
.examples-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.example-card {
padding: 1rem;
}
.example-navigation {
gap: 0.5rem;
}
.nav-filter {
padding: 0.375rem 0.75rem;
font-size: 0.8rem;
}
.download-links {
flex-direction: column;
}
.step {
flex-direction: column;
gap: 0.5rem;
}
.step-number {
align-self: flex-start;
}
}