Skip to content

Commit

Permalink
Add axios dependency, move index.js, i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Fosten committed Oct 20, 2024
1 parent f652289 commit 1e72b33
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ build
core
node_modules
results
yarn.lock
pnpm-lock.yaml
/public
2 changes: 1 addition & 1 deletion mrs.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"package": "@plone/volto",
"url": "[email protected]:plone/volto.git",
"https": "https://github.com/plone/volto.git",
"tag": "18.0.0-alpha.43"
"tag": "18.0.0-alpha.46"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fosten/volto-home-assistant",
"version": "2.0.0",
"name": "volto-home-assistant-dev",
"version": "2.0.0-alpha.0",
"description": "Volto add-on to pull data from the Home Assistant API",
"author": "Brian Davis",
"homepage": "https://github.com/fosten/volto-home-assistant",
Expand Down
2 changes: 2 additions & 0 deletions packages/volto-home-assistant/locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ msgstr ""
"Content-Type: \n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"


2 changes: 2 additions & 0 deletions packages/volto-home-assistant/locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ msgstr ""
"Content-Type: \n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"


2 changes: 2 additions & 0 deletions packages/volto-home-assistant/locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ msgstr ""
"Domain: volto\n"
"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"
"X-Generator: Poedit 2.2.1\n"


Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ msgstr ""
"Language-Name: Português do Brasil\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"


4 changes: 3 additions & 1 deletion packages/volto-home-assistant/locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2024-03-22T12:43:34.158Z\n"
"POT-Creation-Date: 2024-10-20T02:42:22.077Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"Content-Type: text/plain; charset=utf-8\n"
Expand All @@ -12,3 +12,5 @@ msgstr ""
"Language-Name: English\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"


6 changes: 4 additions & 2 deletions packages/volto-home-assistant/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "volto-home-assistant",
"version": "1.0.0-alpha.0",
"version": "2.0.0-alpha.0",
"description": "Volto add-on to pull data from the Home Assistant API",
"main": "src/index.js",
"license": "MIT",
Expand All @@ -26,7 +26,9 @@
"release-major-alpha": "release-it major --preRelease=alpha",
"release-alpha": "release-it --preRelease=alpha"
},
"dependencies": {},
"dependencies": {
"axios": "*"
},
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
15 changes: 0 additions & 15 deletions packages/volto-home-assistant/src/components/index.js

This file was deleted.

10 changes: 10 additions & 0 deletions packages/volto-home-assistant/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import '@plone/volto/config';
import customBlocks from './components/Blocks/customBlocks';

const applyConfig = (config) => {
config.blocks = {
...config.blocks,
blocksConfig: {
...config.blocks.blocksConfig,
...customBlocks,
},
};
return config;
};

Expand Down

0 comments on commit 1e72b33

Please sign in to comment.