This repository aims to provide a dictionary of Tesla alerts and their meanings including an option to search for them.
View Website
·
Report Issue
·
Contribute
To get a local copy up and running follow these simple steps.
You can deploy the server however you want, this is just an example of how you can do it.
- Apache (for debian-based systems / using apt)
sudo apt install apache2
- Apache (for arch-based systems / using pacman)
pacman -S apache
- Clone the repo
git clone https://github.com/core-hacked/tesla-alerts-dictionary.git
- Start an Apache server to run the repo
Or on Debian 8.x+ based systems | Or on Ubuntu 15.04+
/etc/init.d/apache2 start
systemctl start apache2.service
- Copy the repo to the Apache server
cp -r tesla-alerts-dictionary/ /var/www/html/
4. Open the website in your browser
```sh
http://localhost/tesla-alerts-dictionary/
If you make changes to the code, be sure to run the following commands, to ensure that it actually updates.
- Install the dependencies
npm install
- Build the project. The JavaScript file will be generated in the
dist
folder.npm run build
- Configure / run TailwindCSS to generate the CSS file. The CSS file will be generated in the
dist
folder. It will also watch for changes to thesrc
folder and inside the HTML and automatically update theoutput.css
file in/dist/
.npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
- If you update the alerts dictionary/files inside the
/alerts/
folder, be sure to run themaker.py
script to automatically generate the buttons for the alerts. Then just copy them intoindex.html
. If needed reference theindex.html
file in the/src/
folder. The buttons will be generated into thealerts_index.html
file.cd tools/ python3 maker.py
- When contributing, be sure to run prettier to format the code. You may ignore the alert buttons as they take a lot of time to format. Don't forget to delete the
alerts_index.html
file after you're done.
See the open issues for a list of proposed features (and known issues).
- Document alerts, fix typos, and add more infomation.
- Fix the header/button overlap when a successful search is made.
- Fix not being able to return to home on fullscreen/new-tab alerts when using as PWA
- Possibly add a button to copy the alert code to the clipboard.
- Make the buttons in the alert popup more mobile friendly/less cramped.
- Autofocus/search when CTRL + F is pressed.
- Make the search system not depend on buttons inside the dom, but rather a json file.
- Let js generate the buttons from the json file, instead of having to manually copy them into the html file.
- Sync the creation process to GitHub Actions on PRs.
- Streamline the deployment process, and make it a one-click deploy.
Contributions are what make the open source community such an amazing place to be... learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU GPL v3 License. See LICENSE
for more information.