generated from home-assistant/addons-example
-
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.
Merge pull request #4 from masterwendu/elysia
2.0.0 - Elysia
- Loading branch information
Showing
68 changed files
with
837 additions
and
18,850 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"biomejs.biome" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[tools] | ||
node = "20" | ||
bun = "1.1.6" | ||
bun = "1.1.10" |
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
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
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
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 |
---|---|---|
|
@@ -41,4 +41,4 @@ yarn-error.log* | |
package-lock.json | ||
**/*.bun | ||
|
||
public | ||
dist |
File renamed without changes.
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,26 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"style": { | ||
"noUselessElse": "off", | ||
"noNonNullAssertion": "off" | ||
}, | ||
"correctness": { | ||
"useJsxKeyInIterable": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"semicolons": "asNeeded", | ||
"quoteStyle": "single", | ||
"trailingComma": "all" | ||
} | ||
} | ||
} |
Binary file not shown.
File renamed without changes.
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,7 @@ | ||
If you want to save for example some manuals you can create download links with the HTML syntax: | ||
|
||
```html | ||
<a href="../files/sample.pdf" download>here</a> | ||
``` | ||
|
||
Download the file <a href="../files/sample.pdf" download>here</a> |
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,7 @@ | ||
# File in folder | ||
|
||
I am a markdown file: | ||
|
||
- 1. One | ||
- 2. Two | ||
- 3. Three |
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,8 @@ | ||
--- | ||
|
||
title: Subfolder | ||
|
||
--- | ||
|
||
|
||
This is a index file in a subfolder of a folder, with a defined title so the subfolder name will be overwritten. |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
--- | ||
title: Welcome to Homedocs | ||
--- | ||
|
||
![](./images/Home-Docs.png) | ||
|
||
## Congrats on setting up a new Homedocs project! | ||
|
||
Your documentation files are located in the homedocs folder inside your home assistant configuration. | ||
|
||
## Get started writing your homedocs! | ||
|
||
![](./images/documentation.gif) |
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 @@ | ||
{ | ||
"name": "server", | ||
"version": "1.0.50", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"dev": "bun run --watch src/index.ts", | ||
"start": "bun src/index.ts", | ||
"start:production": "NODE_ENV=production bun src/index.ts", | ||
"build": "bun run --bun scripts/build.ts" | ||
}, | ||
"dependencies": { | ||
"@kitajs/html": "4.1.0", | ||
"@kitajs/ts-html-plugin": "4.0.1", | ||
"chokidar": "3.6.0", | ||
"elysia": "1.0.22", | ||
"glob": "10.4.1", | ||
"markdown-it": "14.1.0", | ||
"markdown-it-emoji": "3.0.0", | ||
"zod": "3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.7.3", | ||
"@tailwindcss/typography": "0.5.13", | ||
"@types/chokidar": "2.1.3", | ||
"@types/markdown-it": "14.1.1", | ||
"@types/markdown-it-emoji": "3.0.1", | ||
"autoprefixer": "10.4.19", | ||
"bun-types": "1.1.10", | ||
"cssnano": "7.0.1", | ||
"daisyui": "4.11.1", | ||
"postcss": "8.4.38", | ||
"tailwindcss": "3.4.3" | ||
}, | ||
"module": "src/index.js" | ||
} |
File renamed without changes
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 @@ | ||
// import { build } from "bun" | ||
import { buildCss } from "./tailwind" | ||
|
||
// build css with tailwind and daisyui | ||
await buildCss() | ||
|
||
console.log('CSS build finished ✓') | ||
|
||
// build the server | ||
// TODO use optimized bun build | ||
// await Bun.build({ | ||
// entrypoints: ['./src/index.ts'], | ||
// outdir: './dist', | ||
// target: 'bun', | ||
// }) | ||
|
||
console.log('Server build finished ✓') |
Oops, something went wrong.