Skip to content

Commit

Permalink
Update Super Linter & add markdown example
Browse files Browse the repository at this point in the history
  • Loading branch information
shgysk8zer0 committed Oct 14, 2024
1 parent c304d17 commit 95b260a
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:

# Valate Languages - Uncomment to Enable
# JS/TS/JSON Disabled until ESLint in super-linter is updated
VALIDATE_HTML: true
# VALIDATE_HTML: true
VALIDATE_CSS: true
# VALIDATE_JAVASCRIPT_ES: true
# VALIDATE_JAVASCRIPT_STANDARD: true
Expand Down
95 changes: 91 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"devDependencies": {
"@aegisjsproject/component": "^0.1.4",
"@aegisjsproject/core": "^0.2.15",
"@aegisjsproject/markdown": "^0.1.3",
"@aegisjsproject/state": "^1.0.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@shgysk8zer0/eslint-config": "^1.0.1",
Expand Down
7 changes: 6 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"imports": {
"@aegisjsproject/": "../node_modules/@aegisjsproject/",
"@aegisjsproject/router": "../router.js",
"@aegisjsproject/router/": "../"
"@aegisjsproject/router/": "../",
"@highlightjs/cdn-assets/": "https://unpkg.com/@highlightjs/[email protected]/es/",
"marked": "https://unpkg.com/[email protected]/lib/marked.esm.js",
"marked-highlight": "https://unpkg.com/[email protected]/src/index.js",
"highlight.js/": "https://unpkg.com/@highlightjs/[email protected]/es/"
}
}
</script>
Expand All @@ -27,6 +31,7 @@
<button type="button" class="btn btn-primary" data-link="/product/1" data-name="Product 1" accesskey="1">Product 1</button>
<button type="button" class="btn btn-primary" data-link="/product/2" data-name="Product 2" accesskey="2">Product 2</button>
<a href="/product/3" class="btn btn-primary" accesskey="3">Product 3</a>
<a href="/page/markdown" class="btn btn-primary" accesskey="m">Markdown Test</a>
<button type="button" class="btn btn-primary" data-link="/search?q=shoes" accesskey="?">Search for Shoes</button>
<button type="button" class="btn btn-primary" data-link="/img" accesskey="i">Random Image</button>
<button type="button" class="btn btn-primary" data-link="/dne" accesskey="x">404 Page</button>
Expand Down
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ globalThis.controller = new AbortController();

init({
'/product/:productId': '@aegisjsproject/router/test/views/product.js',
'/page/markdown': '@aegisjsproject/router/test/views/markdown.js',
'/test/': '@aegisjsproject/router/test/views/home.js',
'/search?q=:query': '@aegisjsproject/router/test/views/search.js',
'/img': '@aegisjsproject/router/test/views/img.js',
Expand Down
9 changes: 9 additions & 0 deletions test/views/markdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { md } from '@aegisjsproject/markdown/markdown.js';

export default md`
## This is a mardown example.
Go back to [home](/test/)
![missing image](https://cdn.kernvalley.us/img/raster/missing-image.png)
`;

0 comments on commit 95b260a

Please sign in to comment.