From af0a6c64c51d71cd90942cb5397688bbd35edc9b Mon Sep 17 00:00:00 2001 From: Andrew Simard <41052272+500Foods@users.noreply.github.com> Date: Sun, 24 Dec 2023 22:10:01 -0800 Subject: [PATCH] Initial commit --- .gitattributes | 6 ++++ .github/FUNDING.yml | 2 ++ .github/workflows/main.yml | 54 ++++++++++++++++++++++++++++ .gitignore | 74 ++++++++++++++++++++++++++++++++++++++ LICENSE | 24 +++++++++++++ README.md | 56 +++++++++++++++++++++++++++++ 6 files changed, 216 insertions(+) create mode 100644 .gitattributes create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/main.yml create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..0908be0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Auto detect text files and perform LF normalization +* text=auto +*.css linguist-detectable=false +*.js linguist-detectable=false +*.html linguist-detectable=false +*.ps1 linguist-detectable=false diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..6bc699d --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: [500Foods] +custom: [www.buymeacoffee.com/andrewsimard500] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c8c515b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,54 @@ +name: Count Lines of Code + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the main branch +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + cloc: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs djdefi/cloc-action + - name: Count Lines of Code (cloc) + uses: djdefi/cloc-action@main + with: + options: --report-file=cloc.txt --ignored=cloc-ignored.txt + + # Copy the new cloc.txt contents into the README.md file at the appropriate spot + - run: csplit README.md /\<\!--CLOC/ {1} + - run: cp xx00 README.md + - run: echo "" >> README.md + - run: echo "\`\`\`" >> README.md + - run: echo "NOW=$(date +'%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_ENV + - run: echo "Last updated at ${{ env.NOW }}" >> README.md + - run: tail -n +2 cloc.txt >> README.md + - run: echo "SKIP=$(wc -l < cloc-ignored.txt)" >> $GITHUB_ENV + - run: echo "${{ env.SKIP }} Files (without source code) were skipped" >> README.md +# - run: cat cloc-ignored.txt >> README.md + - run: echo "\`\`\`" >> README.md + - run: cat xx02 >> README.md + + # Save the output back to the repository + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + skip_dirty_check: true + branch: main + file_pattern: 'README.md' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a54394f --- /dev/null +++ b/.gitignore @@ -0,0 +1,74 @@ +# Uncomment these types if you want even more clean repository. But be careful. +# It can make harm to an existing project source. Read explanations below. +# +# Resource files are binaries containing manifest, project icon and version info. +# They can not be viewed as text or compared by diff-tools. Consider replacing them with .rc files. +#*.res +# +# Type library file (binary). In old Delphi versions it should be stored. +# Since Delphi 2009 it is produced from .ridl file and can safely be ignored. +#*.tlb +# +# Diagram Portfolio file. Used by the diagram editor up to Delphi 7. +# Uncomment this if you are not using diagrams or use newer Delphi version. +#*.ddp +# +# Visual LiveBindings file. Added in Delphi XE2. +# Uncomment this if you are not using LiveBindings Designer. +#*.vlb +# +# Deployment Manager configuration file for your project. Added in Delphi XE2. +# Uncomment this if it is not mobile development and you do not use remote debug feature. +#*.deployproj +# +# C++ object files produced when C/C++ Output file generation is configured. +# Uncomment this if you are not using external objects (zlib library for example). +#*.obj +# + +# Delphi compiler-generated binaries (safe to delete) +*.exe +*.dll +*.bpl +*.bpi +*.dcp +*.so +*.apk +*.drc +*.map +*.dres +*.rsm +*.tds +*.dcu +*.lib +*.a +*.o +*.ocx + +# Delphi autogenerated files (duplicated info) +*.cfg +*.hpp +*Resource.rc + +# Delphi local files (user-specific info) +*.local +*.identcache +*.projdata +*.tvsconfig +*.dsk + +# Delphi history and backups +__history/ +__recovery/ +*.~* + +# Castalia statistics file (since XE7 Castalia is distributed with Delphi) +*.stat + +# Boss dependency manager vendor folder https://github.com/HashLoad/boss +modules/ + +# These do not need to be included in the repository on GitHub +Win32/ +Win64/ +TMSWeb/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fdddb29 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md new file mode 100644 index 0000000..04c0b64 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Template + +This repository contains... + +## Key Dependencies +As with any modern web application, other JavaScript libraries/dependencies have been used in this project. Most of the time, this is handled via a CDN link (usually JSDelivr) in the Project.html file. In some cases, for performance or other reasons, they may be included directly. +- [TMS WEB Core](https://www.tmssoftware.com/site/tmswebcore.asp) - This is a TMS WEB Core project, after all +- [AdminLTE 4](https://github.com/ColorlibHQ/AdminLTE/tree/v4-dev) - Naturally +- [Home Assistant](https://www.home-assistant.io/) - Need a current Home Assistant server to be of much use +- [Bootstrap](https://getbootstrap.com/) - No introduction needed +- [Tabulator](https://www.tabulator.info) - Fantastic pure JavaScript web data tables +- [Font Awesome](https://www.fontawesome.com) - The very best icons +- [Material Design Icons](https://pictogrammers.com/library/mdi/) - Used throughout Home Assistant +- [Leaflet](https://www.leafletjs.com) - Excellent mapping library +- [OpenStreetMap](https://www.openstreetmap.org) - Mapping tile data +- [Luxon](https://moment.github.io/luxon/#/) - For handling date/time conversions +- [Shoelace](https://shoelace.style/) - Web components, particularly the color picker for lights +- [Peity Vanilla JS](https://github.com/railsjazz/peity_vanilla) - Fast and simple charts +- [Meteocons](https://github.com/basmilius/weather-icons) - Animated Weather Icons by [Bas Milius](https://bas.dev/) +- [SwiperJS](https://swiperjs.com) - Currently works well with v10 +- [FlatPickr](https://flatpickr.js.org) - Main UI date pickers +- [Vanilla Lazy Load](https://github.com/verlok/vanilla-lazyload) - So placeholders can be used +- [FlagPack](https://github.com/jackiboy/flagpack) - For displaying citizenship flags +- [PanZoom](https://github.com/timmywil/panzoom) - Used when viewing photos/posters/backgrounds +- [HackTimer](https://github.com/turuslan/HackTimer) - Bypasses normal JavaScript timer behaviour +- [AudioBuffer-ArrayBuffer-Serializer](https://github.com/suzuito/audiobuffer-arraybuffer-serializer) - Useful for moving audio data around +- [InteractJS](https://interactjs.io/) - Dragging and resizing UI elements of all kinds +- [Simplebar](https://github.com/Grsmto/simplebar) - Used to create the custom hexagonal scrollbars +- [D3](https://d3js.org/) - Used here to draw audio waveforms +- [FileSaver](https://moment.github.io/luxon/#/?id=luxon) - For downloading HexaGong projects + +## Additional Notes +While this project is currently under active development, feel free to give it a try and post any issues you encounter. Or start a discussion if you would like to help steer the project in a particular direction. Early days yet, so a good time to have your voice heard. As the project unfolds, additional resources will be made available, including platform binaries, more documentation, demos, and so on. + +## Repository Information +[![Count Lines of Code](https://github.com/500Foods/Template/actions/workflows/main.yml/badge.svg)](https://github.com/500Foods/Template/actions/workflows/main.yml) + +``` +Last updated at 2023-12-24 05:05:43 UTC +------------------------------------------------------------------------------- +Language files blank comment code +------------------------------------------------------------------------------- +Markdown 1 6 2 48 +YAML 2 8 13 35 +------------------------------------------------------------------------------- +SUM: 3 14 15 83 +------------------------------------------------------------------------------- +3 Files (without source code) were skipped +``` + + +## Sponsor / Donate / Support +If you find this work interesting, helpful, or valuable, or that it has saved you time, money, or both, please consider directly supporting these efforts financially via [GitHub Sponsors](https://github.com/sponsors/500Foods) or donating via [Buy Me a Pizza](https://www.buymeacoffee.com/andrewsimard500). Also, check out these other [GitHub Repositories](https://github.com/500Foods?tab=repositories&q=&sort=stargazers) that may interest you. + +## More TMS WEB Core and TMS XData Content +If you're interested in other TMS WEB Core and TMS XData content, follow along on 𝕏 at [@WebCoreAndMore](https://x.com/WebCoreAndMore), join our 𝕏 [Web Core and More Community](https://twitter.com/i/communities/1683267402384183296), or check out the [TMS Software Blog](https://www.tmssoftware.com/site/blog.asp).