-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lit-HTML Tree, Branch and Leaf components
- Loading branch information
1 parent
e4c3b74
commit b429164
Showing
24 changed files
with
7,153 additions
and
14,763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/node_modules | ||
/dist | ||
/cache | ||
/coverage | ||
/.github | ||
/.husky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/node_modules | ||
/coverage | ||
/.github | ||
/.husky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# JS-Proffessional-03-2023 | ||
# JS-Proffessional-03-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Lit-HTML tree/leaf component example</title> | ||
<link rel="stylesheet" href="./src/index.css" /> | ||
<script type="module" src="/src/my-leaf.ts"></script> | ||
<script type="module" src="/src/my-branch.ts"></script> | ||
<script type="module" src="/src/my-tree.ts"></script> | ||
<script type="module" src="/src/my-settings.ts"></script> | ||
<script type="module" src="/src/my-app.ts"></script> | ||
</head> | ||
<body> | ||
<my-app> | ||
<my-settings></my-settings> | ||
<div style="display: flex"> | ||
<my-tree | ||
str='{"id": "1", "items": [{"id": "2", "items": [{ "id": "3" }, { "id": "4" }, { "id": "5", "items": [{"id" : "10"}, {"id" : "12"}, {"id" : "14", "items" : [{"id" : "15"}]}]}, {"id": "13"}]}, {"id": "6", "items": [{ "id": "7" }, { "id": "8" }, { "id": "9" }]}, { "id": "11" }] }' | ||
> | ||
</my-tree> | ||
|
||
<my-tree | ||
str='{"id": "A", "items": [{"id": "B", "items": [{ "id": "C" }, { "id": "D" }, { "id": "O" }, { "id": "P" }, { "id": "Q" }]}, { "id": "R" }, { "id": "F" }, { "id": "E" } ]}' | ||
> | ||
</my-tree> | ||
|
||
<my-tree | ||
str='{"id": "A1", "items": [{"id": "B2", "items": [{ "id": "C3" }, { "id": "D4" }]}, {"id": "E5"}, {"id": "F6"}, {"id": "J13"}, {"id": "K6", "items": [{ "id": "L7" }, { "id": "M8" }, { "id": "N9" }]}, { "id": "O11" }] }' | ||
> | ||
</my-tree> | ||
</div> | ||
</my-app> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "jsdom", | ||
transformIgnorePatterns: [ | ||
"node_modules/(?!(lit-html|lit-element|lit|@lit)/)", | ||
], | ||
transform: { | ||
"^.+\\.(ts|tsx)?$": "ts-jest", | ||
"^.+\\.(js|jsx)$": [ | ||
"babel-jest", | ||
{ | ||
presets: ["@babel/preset-env"], | ||
plugins: [["@babel/transform-runtime"]], | ||
}, | ||
], | ||
}, | ||
}; |
Oops, something went wrong.