Initial commit

This commit is contained in:
MassiveBox 2023-02-25 23:04:11 +01:00
commit c573b95984
36 changed files with 22555 additions and 0 deletions

View file

@ -0,0 +1,69 @@
import React from 'react';
import clsx from 'clsx';
import styles from './styles.module.css';
import Link from '@docusaurus/Link';
const FeatureList = [
{
title: 'Easy to Use',
imgName: 'easy-to-use-icon.svg',
description: (
<>
EcoDash is built to be simple to install and use, both for the administrators and the end users.
</>
),
buttonLabel: "Install",
buttonDest: "/docs/install"
},
{
title: 'All the data you need, nothing more',
imgName: 'data-analysis-icon.svg',
description: (
<>
The dashboard has all the most useful information, while keeping itself clean, minimalistic and easy to understand by anyone.
</>
),
buttonLabel: "See the demo",
buttonDest: "https://demo.ecodash.xyz"
},
{
title: 'Widely compatible',
imgName: 'power-cord-icon.svg',
description: (
<>
EcoDash supports a wide range of electricity consumption monitoring devices, including Zigbee smart plugs.
</>
),
buttonLabel: "Compatibility table",
buttonDest: "o"
},
];
function Feature({title, imgName, description, buttonLabel, buttonDest}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<img src={'/img/' + imgName} className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<p>{description}</p>
<p><a href={buttonDest}>{buttonLabel}</a></p>
</div>
</div>
);
}
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}

View file

@ -0,0 +1,11 @@
.features {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}
.featureSvg {
height: 200px;
width: 200px;
}

29
src/css/custom.css Normal file
View file

@ -0,0 +1,29 @@
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #00a440;
--ifm-color-primary-dark: #008031;
--ifm-color-primary-darker: #004d1d;
--ifm-color-primary-darkest: #001a0a;
--ifm-color-primary-light: #00cc4e;
--ifm-color-primary-lighter: #00ff62;
--ifm-color-primary-lightest: #33ff81;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
[data-theme='dark'] {
--ifm-color-primary: #00cc4e;
--ifm-color-primary-dark: #00b344;
--ifm-color-primary-darker: #008031;
--ifm-color-primary-darkest: #004d1d;
--ifm-color-primary-light: #1aff71;
--ifm-color-primary-lighter: #4dff91;
--ifm-color-primary-lightest: #80ffb0;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

26
src/pages/contribute.md Normal file
View file

@ -0,0 +1,26 @@
# Contribute
You can contribute to EcoDash's development either by help with coding or donations. Choose whatever you like, we will be very grateful to you regardless!
## Code contributions
You can help us further develop EcoDash with code contributions. Just check out what our goals are, implement new features or fix bugs, and open a Pull Request! Make sure to talk in the [community channels](/docs/support) to make sure that your work isn't overlapping anybody else's.
A good starting point to always know what has to be done are the [issues on Gitea](https://gitea.massivebox.net/ecodash/ecodash/issues).
## Financial support
You can help us pay the bills in several ways:
- Via Credit Card: [payment link](https://revolut.me/scatola)
- Referrals (we do not endorse these products, rewards are not guaranteed):
- [Mega.nz](https://mega.nz/aff=FTCD_qygL6U) - cheap encrypted cloud that pays me if you sign up for premium
- [Binance](https://www.binance.com/en/activity/referral-entry/CPA?fromActivityPage=true&ref=CPA_001OSDNNFB) - deposit $50 within 14 days and we [should](https://www.binance.com/en/support/faq/how-to-use-binance-lite-referral-5e284447daa34a338a968d64f7023c73) both get 100 USDT
- With crypto:
- BTC: `1EybumHaeSLp44R3tzxpxj84E7yFwGoNEA`
- ETH: `0x1192e4C951F207B5C6b463C968902d57C2c8Ce0f`
- XMR: `44xyoXhUXVV6XZ4uFEVMncXq8bibb9jhaKiK9f1DQFeZFby9hjsvPwhhkY9ot3CGABK7Nctdv9KgTaGsA7L27Maf1ZjYRpJ`
- LTC: `Lbn6PK6YU2CFio6cVpE1XUfCX67UYoeWs7`
- BNB: `bnb1q2ay88jmly7tuk4xjae205stzhmjxgsedgc77w`
These funds will go to [MassiveBox](https://massivebox.net), the main developer of EcoDash. They will be spent to pay the running costs we have and improve EcoDash even more.

52
src/pages/index.js Normal file
View file

@ -0,0 +1,52 @@
import React from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import ThemedImage from '@theme/ThemedImage';
import styles from './index.module.css';
function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<ThemedImage sources={{
light: '/img/light/logo.svg',
dark: '/img/dark/logo.svg',
}} width="200px" />
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--primary button--lg"
to="https://demo.ecodash.xyz">
🔧 See the demo
</Link>
<Link
className="button button--secondary button--lg"
to="/docs">
Get Started
</Link>
</div>
</div>
</header>
);
}
export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title="Home"
description="Description will go into a meta tag in <head />">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}

View file

@ -0,0 +1,23 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/
.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
}
@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
}
}
.buttons {
display: flex;
align-items: center;
justify-content: center;
}

46
src/pages/privacy.md Normal file
View file

@ -0,0 +1,46 @@
# Privacy Policy
This document describes how the EcoDash Website, Support and Software treat their users'data.
## EcoDash Website
By EcoDash Website we mean the https://ecodash.xyz website, all its subfolders and subdomains.
The EcoDash website doesn't use cookies or any other tracking technology.
Access and error logs are kept for a maximum of seven days. They include the following information:
- IP address
- Exact time of request
- HTTP protocol version
- HTTP method
- Requested URL
- Response status code
These information are stored exclusively in the server which we own and are the only ones who have access to, located in Italy. They are never transferred elsewhere.
They are exclusively used to spot programming errors and see how users interact with the site.
We don't knowingly collect information of individuals under the age of 13. This website is not aimed at them.
Some third-parties provide services which we need for the core functionality of the EcoDash Website. Their privacy policies might differ from ours, so you're encouraged to check them.
- [**Hurricane Electric DNS**](https://dns.he.net/): DNS routing ([Privacy](https://he.net/privacy.html))
- [**WindTre**](https://www.windtre.it/): This server's Internet Service Provider ([Privacy](https://d1qsjop7tycsfb.cloudfront.net/fileadmin/mainbrand/footer/privacy/Informativa_PRIVACY_consumer_ex_artt_13_e_14_GDPR_20052022_DEF.pdf))
The EcoDash Website contains links to external sites. Their privacy policies might differ from ours, so you're encouraged to check them.
In case you want your information removed from our storage, or have any other question, contact [legal@ecodash.xyz](mailto:legal@ecodash.xyz).
## EcoDash Support
EcoDash provides several support channels on external platforms. Their privacy policies might differ from ours, so you're encouraged to check them.
- Matrix: [Privacy](https://placeholder.com/)
- Telegram: [Privacy](https://telegram.org/privacy)
- Email: We use Yandex.Mail for our support email. [Privacy](https://yandex.com/legal/privacy/)
## EcoDash Software
The EcoDash software doesn't have analytics or any other way to send data to its developers.
Depending on which source you use to obtain the EcoDash software, some analytics might be collected at the time of download. Consult the source of the download for further details.