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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore(fast-html): use @microsoft/fast-build to build deep-merge fixture",
"packageName": "@microsoft/fast-html",
"email": "7559015+janechu@users.noreply.github.com",
"dependentChangeType": "none"
}
1 change: 1 addition & 0 deletions packages/fast-html/scripts/build-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { fileURLToPath } from "node:url";
const fixtures = [
"attribute",
"binding",
"deep-merge",
"event",
"ref",
"slotted",
Expand Down
156 changes: 156 additions & 0 deletions packages/fast-html/test/fixtures/deep-merge/entry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Deep Merge Test Fixture</title>
<style>
body {
font-family: system-ui, -apple-system, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: #f5f5f5;
}

h1 {
color: #333;
border-bottom: 2px solid #0078d4;
padding-bottom: 10px;
}

h2 {
color: #555;
margin-top: 30px;
}

.container {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats {
background: #e3f2fd;
padding: 15px;
border-radius: 6px;
margin: 20px 0;
}

.stats p {
margin: 8px 0;
}

.controls {
background: #f5f5f5;
padding: 15px;
border-radius: 6px;
margin: 20px 0;
}

button {
background: #0078d4;
color: white;
border: none;
padding: 10px 16px;
border-radius: 4px;
cursor: pointer;
margin: 5px;
font-size: 14px;
}

button:hover {
background: #106ebe;
}

button:active {
background: #005a9e;
}

.user-card {
border: 1px solid #ddd;
border-radius: 6px;
padding: 15px;
margin: 15px 0;
background: #fafafa;
}

.user-card h3 {
margin-top: 0;
color: #0078d4;
}

.profile {
background: white;
padding: 10px;
border-radius: 4px;
margin: 10px 0;
}

.profile h4 {
margin-top: 0;
}

.orders {
margin-top: 15px;
}

.order {
background: white;
padding: 10px;
border-radius: 4px;
margin: 10px 0;
border-left: 3px solid #0078d4;
}

.items {
list-style: none;
padding: 0;
margin: 10px 0;
}

.item {
padding: 8px;
margin: 5px 0;
background: #f9f9f9;
border-radius: 4px;
}

.stock {
margin-left: 10px;
font-size: 12px;
}

.tags {
margin-top: 5px;
font-size: 12px;
}

.tag {
background: #0078d4;
color: white;
padding: 2px 8px;
border-radius: 3px;
margin-right: 5px;
display: inline-block;
}

.metadata {
margin-top: 5px;
color: #666;
}

strong {
color: #333;
}

em {
color: #999;
}
</style>
</head>
<body>
<deep-merge-test-element ?show-details="{{showDetails}}"></deep-merge-test-element>
<script type="module" src="./main.ts"></script>
</body>
</html>
Loading
Loading