-
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.
added astro home control screenshot
- Loading branch information
Showing
23 changed files
with
203 additions
and
180 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,12 +1,15 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import {config} from './config.js' | ||
import {collect_content} from './integrations/integration-content-structure.js' | ||
|
||
import yaml from '@rollup/plugin-yaml'; | ||
|
||
export default defineConfig({ | ||
integrations: [collect_content(config.collect_content)], | ||
output: "static", | ||
outDir: config.outDir, | ||
base: config.base, | ||
trailingSlash: 'ignore' | ||
trailingSlash: 'ignore', | ||
vite: { | ||
plugins: [yaml()] | ||
} | ||
}); |
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
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,10 @@ | ||
# Astro Home Control | ||
|
||
* Home Automation MQTT Client running on Astro as SSR | ||
* Client page update with Server Sent Events | ||
* Custom switches with feedback and custom sliders with animated SVG | ||
|
||
:button[]{label="Github repo" link="https://github.com/MicroWebStacks/astro-home-control" icon="github"} | ||
|
||
![screenshot](./astro-home-control.png) | ||
|
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
import Kroki from './Kroki.astro' | ||
import kroki from './kroki.yaml' | ||
import {join} from 'path' | ||
import {config} from '@/config.js' | ||
import {readFile} from 'fs/promises' | ||
export interface Props { | ||
ext: string; | ||
url: string; | ||
dirpath: string; | ||
} | ||
const { ext, url, dirpath } = Astro.props as Props; | ||
let language = "" | ||
let code = "" | ||
const params = [] | ||
const is_kroki = Object.keys(kroki.formats).includes(ext) | ||
if(is_kroki){ | ||
language = kroki.formats[ext] | ||
const abs_file = join(config.content_path,dirpath,url) | ||
code = await readFile(abs_file,'utf-8') | ||
} | ||
--- | ||
{(is_kroki)&& | ||
<Kroki language={language} code={code} params={params} /> | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.