Skip to content

Commit

Permalink
🔥 ✨ Complete rewrite (#308)
Browse files Browse the repository at this point in the history
- Complete rewrite in typescript
- New UI
- Directory restructure
- New cards
- Lots of breaking changes
- Plans to migrate old config when migrating (See todo)

* 🔨 Update config db to v2

* 📚 Clearout todos

* 🔨 Add new default config

* 🚑 Fix port

* 🔨 Fix layout

* 🔨 Remove empty title

* 🔨 Revert api

* 🔨 rework to previous config

* 🔨 Text sizes

* ⬆️ Updates

* 🔨 Cleanup

* 🔨 Hover for settings

* 🔨 Fix login

* 🔨 Adding

* 🔨 handle updates better

* 🔨 Cleanup

* ✨ Add header

* 🔨 Markdownify configuration

* 🔨 Make external links to target _blank

* 🔨 Configuration icons

* 🔨 configuration

* 🔨 Dialog and path fix

* 🔨 Configuration entities

* ✨ Add time, date and entities to header

* 🔨 Adjust

* 🔨 Font size

* 🔨 cleanup

* 🔨 honor date and time show config

* 🔨 Tweaks

* ✏️ Typo

* 🔨 Default update

* 🔨 Config

* 🔨 formatting

* 🔨 Fix edit height and overflow with popups

* 🚑 Fix

* 🔨 Card width and height

* 🔨 Edit overlay padding

* 🔨 state

* 🎨 Icons

* 🔨 Remove opacity

* 🔨 Tweaks

* 🔨 Tweak

* 🔨 Fix edit view

* 🔨 Small padding on markdown

* 🔨 Cleanup

* 🔨 Cleanups

* 🚑 Fix toggle

* ✏️ Typo

* 🔨 Adjustments

* 🔨 Allow interaction with card when not toggleable

* 🔨 Restructure edits

* 🔨 Rename card base

* 🔨 Rename directory

* 🔨 Switch round to square

* 🔨 Cleanup

* ⬆️ Upgrade packages

* ⬆️ Upgrade api packages

* 🔨 disable toggle when in edit mode

* 🔨 Fix

* 🚑 Fix switch

* 🔨 Fix add card

* 🔨 Cleanup

* ⬆️ Update eslint

* ⬆️ Update mui and flow-bin

* ⬆️ Upgrade to latest npm

* 🔨 Add key

* 🔨 Update lockfile
  • Loading branch information
timmo001 authored Jul 7, 2019
1 parent 82d1661 commit c387b54
Show file tree
Hide file tree
Showing 98 changed files with 6,801 additions and 9,910 deletions.
12 changes: 12 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[ignore]
.*/node_modules/**/.*

[include]

[libs]

[lints]

[options]

[strict]
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.16.0
12.5.0
10 changes: 10 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# TODO

- [ ] Add cards compatible with v1
- [ ] All entities previously supported
- [ ] Custom icons
- [ ] Get friendly_name for blank titles
- [ ] Custom sizes
- [ ] Fix round
- [ ] Make script to upgrade config for each user that logs in with an old
config
144 changes: 15 additions & 129 deletions api/config/config.default.json
Original file line number Diff line number Diff line change
@@ -1,149 +1,35 @@
{
"theme": {
"custom": [
{
"name": "Midnight",
"base": "dark",
"overrides": {
"primary": "pink",
"backgrounds": {
"main": "#383c45",
"default": "#383c45",
"card": {
"on": "pink[600]",
"off": "#434954",
"disabled": "#7f848e",
"alarm": {
"home": "pink[600]",
"away": "pink[600]"
}
}
},
"text": {
"light": "grey[50]",
"main": "grey[100]"
},
"secondary": "pink"
}
},
{
"name": "Forest",
"base": "light",
"overrides": {
"backgrounds": {
"main": "url(https://images.pexels.com/photos/4827/nature-forest-trees-fog.jpeg) no-repeat fixed center",
"card": {
"on": "lightGreen[700]",
"off": "rgba(160, 200, 160, 0.6)",
"alarm": {
"home": "lightGreen[700]",
"away": "lightGreen[700]"
}
}
}
}
}
]
"general": {
"dense_toolbar": false
},
"header": {
"left_outdoor_weather": {
"dark_sky_icon": "sensor.dark_sky_icon",
"condition": "sensor.pws_weather",
"data": [
{
"entity_id": "sensor.pws_temp_c",
"unit_of_measurement": "°C"
},
{
"entity_id": "sensor.pws_relative_humidity",
"unit_of_measurement": "%"
}
]
},
"right_indoor": [
{
"label": "Living Room",
"data": [
{
"entity_id": "sensor.dht22_01_temperature",
"unit_of_measurement": "°C"
},
{
"entity_id": "sensor.dht22_01_humidity",
"unit_of_measurement": "%"
}
]
}
]
"time_show": true,
"time_military": false,
"time_location": 0,
"date_show": true,
"date_format": "Do MMMM YYYY",
"date_location": 1,
"entities": []
},
"pages": [
{
"name": "Home",
"icon": "home"
},
{
"name": "Weather",
"icon": "weather-partlycloudy"
}
],
"items": [
{
"name": "Living Room",
"name": "Welcome Group",
"cards": [
{
"entity_id": "light.tv_light",
"name": "TV",
"icon": "lightbulb"
"content": "Hi there! Thanks for using Home Panel.\n\nMake sure to read the [docs](https://timmo.dev/home-panel) to get the most out of the app.",
"title": "Welcome!",
"type": "markdown",
"width": 3
}
],
"page": 1,
"width": 2
},
{
"name": "Dining Room",
"cards": [
{
"entity_id": "light.table_light",
"icon": "ceiling-light",
"name": "Table Light"
}
],
"page": 1,
"width": 2
},
{
"name": "Weather",
"page": 2,
"width": 8,
"cards": [
{
"type": "hass",
"name": "",
"entity_id": "weather.dark_sky",
"icon": "",
"width": 3,
"height": 2,
"size": {
"name": "",
"state": "",
"icon": ""
}
},
{
"type": "iframe",
"name": "",
"entity_id": "",
"icon": "",
"width": 4,
"height": 4,
"size": {
"name": "",
"state": "",
"icon": ""
},
"url": "https://embed.windy.com/embed2.html"
}
]
"width": 3
}
]
}
4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "home-panel-api",
"description": "Home Panel API",
"version": "1.0.0",
"version": "2.0.0",
"main": "src",
"keywords": [
"feathers"
Expand Down Expand Up @@ -44,7 +44,7 @@
"winston": "3.2.1"
},
"devDependencies": {
"eslint": "5.16.0",
"eslint": "6.0.1",
"mocha": "6.1.4",
"nodemon": "1.19.1",
"request": "2.88.0",
Expand Down
Loading

0 comments on commit c387b54

Please sign in to comment.