Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: optimize imports #1822

Merged
merged 1 commit into from
Jan 15, 2024
Merged

refactor: optimize imports #1822

merged 1 commit into from
Jan 15, 2024

Conversation

manuel-rw
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Jan 14, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 16.36% 4653 / 28429
🔵 Statements 16.36% 4653 / 28429
🔵 Functions 6.54% 29 / 443
🔵 Branches 37.68% 124 / 329
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/Dashboard/Modals/SelectElement/Components/WidgetsTab/WidgetElementType.tsx 0% 0% 0% 0% 1-113
src/components/Dashboard/Wrappers/Category/CategoryEditModal.tsx 0% 0% 0% 0% 1-53
src/components/Dashboard/Wrappers/Category/useCategoryActions.tsx 3.65% 100% 0% 3.65% 12-301
src/config/provider.tsx 42.62% 100% 0% 42.62% 25-59
src/pages/401.tsx 0% 0% 0% 0% 1-55
src/pages/404.tsx 0% 0% 0% 0% 1-56
src/pages/_app.tsx 0% 0% 0% 0% 1-204
src/pages/_error.tsx 0% 0% 0% 0% 1-74
src/pages/auth/login.tsx 25.45% 75% 50% 25.45% 20-135, 148-154
src/pages/auth/invite/[inviteId].tsx 0% 0% 0% 0% 1-208
src/pages/board/index.tsx 0% 0% 0% 0% 1-76
src/pages/board/[slug]/customize.tsx 0% 0% 0% 0% 1-341
src/pages/manage/about.tsx 0% 0% 0% 0% 1-278
src/pages/manage/index.tsx 0% 0% 0% 0% 1-147
src/pages/manage/boards/index.tsx 0% 0% 0% 0% 1-294
src/pages/manage/tools/swagger.tsx 0% 0% 0% 0% 1-93
src/pages/manage/users/index.tsx 0% 0% 0% 0% 1-246
src/pages/manage/users/invites.tsx 0% 0% 0% 0% 1-165
src/pages/user/preferences.tsx 0% 0% 0% 0% 1-228
src/tools/server/loginBuilder.ts 75% 20% 100% 75% 16-22, 26-27
src/tools/server/images/github-icons-repository.ts 0% 0% 0% 0% 1-81
src/tools/server/images/jsdelivr-icons-repository.ts 0% 0% 0% 0% 1-63
src/tools/server/images/local-icons-repository.ts 0% 0% 0% 0% 1-41
src/tools/server/images/unpkg-icons-repository.ts 0% 0% 0% 0% 1-48
src/utils/api.ts 91.46% 66.66% 50% 91.46% 31-32, 44-46, 53-54
src/utils/i18n-zod-resolver.ts 19.53% 100% 0% 19.53% 7-11, 15-18, 21-49, 52-65, 68-81, 84-108, 110-121
Generated in workflow #6184

Copy link
Collaborator

@Meierschlumpf Meierschlumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@manuel-rw manuel-rw merged commit 5bae5bf into dev Jan 15, 2024
4 checks passed
truecharts-admin referenced this pull request in truecharts/public Jan 19, 2024
…ee7babc by renovate (#17301)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/ajnart/homarr](https://togithub.com/ajnart/homarr) | patch |
`0.14.3` -> `0.14.4` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>ajnart/homarr (ghcr.io/ajnart/homarr)</summary>

### [`v0.14.4`](https://togithub.com/ajnart/homarr/releases/tag/v0.14.4)

[Compare
Source](https://togithub.com/ajnart/homarr/compare/v0.14.3...v0.14.4)

#### Deeper integration in Home Assistant

Want to toggle your lights? Have a fun to switch on? Or maybe you want
to send a reminder to your family?
We've upgraded the existing entity state widget and added a new widget
that support invoking automations on your Homeassistant.
Homeassistant's vast library of integrations enable you to make complex
workflow that can be easily started with a single click from Homarr:

![294787853-80066fc3-545a-4486-80f6-eafff6c6fab3](https://togithub.com/ajnart/homarr/assets/30572287/e0b9b572-3b3c-4261-9fb2-f2dc8813fc2b)

#### Improved layout & performance for torrent widget

We've improved the layout for smaller screens and significantly cut down
the bandwidth required for the torrent widget.
This should result in less lag and faster updating on your widget.


![294015178-a7c82d43-6b6f-4eee-a578-32e0baf7f738](https://togithub.com/ajnart/homarr/assets/30572287/fc4814ac-eca3-45f1-9e58-fc3581d34a32)

#### Renaming & duplicating boards

We've heard you: boards can now be renamed / or duplicated. You don't
need to mess with any files on the filesystem.

#### JSON API

We know that there are many advanced users who want to take better
control of Homarr's capabilities.
Therefore, we've added a JSON API that can be used to execute almost any
action that you can from the WEB UI.
We provide an Open API specification document that enables you to easily
browse your API endpoints:

![296549433-8cc29984-7bfb-4238-869b-e02a48ae95e9](https://togithub.com/ajnart/homarr/assets/30572287/f3229f31-2f31-4124-86d3-f2038fa87ad0)

#### Fixed local paths in icon picker

Previously, the local icons were hard to use and had the wrong path by
default.
We have fixed this problem and added the size of the file as an
additional information.

#### Availability of media requests

[@&#8203;tancak](https://togithub.com/tancak) has contributed the
displaying of availability information on requests:

![294605516-1bd64ba4-4ba4-45f5-8539-7c69bb964694](https://togithub.com/ajnart/homarr/assets/30572287/9e2bad2d-169e-4d6d-93da-81e0b52f86a6)

##### What's Changed

- docs: updated dead installation links in README.md by
[@&#8203;stark1tty](https://togithub.com/stark1tty) in
[https://github.com/ajnart/homarr/pull/1775](https://togithub.com/ajnart/homarr/pull/1775)
- refactor: improve torrent table design by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1786](https://togithub.com/ajnart/homarr/pull/1786)
- docs: fix documentation link URL after creating user by
[@&#8203;StefanB7](https://togithub.com/StefanB7) in
[https://github.com/ajnart/homarr/pull/1796](https://togithub.com/ajnart/homarr/pull/1796)
- feat: add availability information about media requests by
[@&#8203;tancak](https://togithub.com/tancak) in
[https://github.com/ajnart/homarr/pull/1794](https://togithub.com/ajnart/homarr/pull/1794)
- feature: trigger automations by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1799](https://togithub.com/ajnart/homarr/pull/1799)
- feature:
[#&#8203;1765](https://togithub.com/ajnart/homarr/issues/1765) reduce
transferred torrent data by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1798](https://togithub.com/ajnart/homarr/pull/1798)
- fix: database is not initialized inside the docker container by
[@&#8203;anonysoul](https://togithub.com/anonysoul) in
[https://github.com/ajnart/homarr/pull/1806](https://togithub.com/ajnart/homarr/pull/1806)
- chore: increase version by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1811](https://togithub.com/ajnart/homarr/pull/1811)
- feature: improve admin security over dnshole controls by
[@&#8203;Tagaishi](https://togithub.com/Tagaishi) in
[https://github.com/ajnart/homarr/pull/1686](https://togithub.com/ajnart/homarr/pull/1686)
- feature: rss improvements by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1810](https://togithub.com/ajnart/homarr/pull/1810)
- feature: board operations by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1800](https://togithub.com/ajnart/homarr/pull/1800)
- revert: [#&#8203;1714](https://togithub.com/ajnart/homarr/issues/1714)
migrate to axios.get by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1819](https://togithub.com/ajnart/homarr/pull/1819)
- chore: new Crowdin updates by
[@&#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1772](https://togithub.com/ajnart/homarr/pull/1772)
- feature: add trpc openapi by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1818](https://togithub.com/ajnart/homarr/pull/1818)
- refactor: optimize imports by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1822](https://togithub.com/ajnart/homarr/pull/1822)
- chore: New Crowdin updates by
[@&#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1820](https://togithub.com/ajnart/homarr/pull/1820)
- fix: [#&#8203;1734](https://togithub.com/ajnart/homarr/issues/1734)
fix local icons path by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1821](https://togithub.com/ajnart/homarr/pull/1821)

#### New Contributors

- [@&#8203;stark1tty](https://togithub.com/stark1tty) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1775](https://togithub.com/ajnart/homarr/pull/1775)
- [@&#8203;StefanB7](https://togithub.com/StefanB7) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1796](https://togithub.com/ajnart/homarr/pull/1796)
- [@&#8203;tancak](https://togithub.com/tancak) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1794](https://togithub.com/ajnart/homarr/pull/1794)
- [@&#8203;anonysoul](https://togithub.com/anonysoul) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1806](https://togithub.com/ajnart/homarr/pull/1806)

**Full Changelog**:
ajnart/homarr@v0.14.3...v0.14.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Europe/Amsterdam, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNDAuOSIsInVwZGF0ZWRJblZlciI6IjM3LjE0MC45IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
GabrielBarzen referenced this pull request in GabrielBarzen/charts Feb 2, 2024
…ee7babc by renovate (truecharts#17301)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/ajnart/homarr](https://togithub.com/ajnart/homarr) | patch |
`0.14.3` -> `0.14.4` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>ajnart/homarr (ghcr.io/ajnart/homarr)</summary>

### [`v0.14.4`](https://togithub.com/ajnart/homarr/releases/tag/v0.14.4)

[Compare
Source](https://togithub.com/ajnart/homarr/compare/v0.14.3...v0.14.4)

#### Deeper integration in Home Assistant

Want to toggle your lights? Have a fun to switch on? Or maybe you want
to send a reminder to your family?
We've upgraded the existing entity state widget and added a new widget
that support invoking automations on your Homeassistant.
Homeassistant's vast library of integrations enable you to make complex
workflow that can be easily started with a single click from Homarr:

![294787853-80066fc3-545a-4486-80f6-eafff6c6fab3](https://togithub.com/ajnart/homarr/assets/30572287/e0b9b572-3b3c-4261-9fb2-f2dc8813fc2b)

#### Improved layout & performance for torrent widget

We've improved the layout for smaller screens and significantly cut down
the bandwidth required for the torrent widget.
This should result in less lag and faster updating on your widget.


![294015178-a7c82d43-6b6f-4eee-a578-32e0baf7f738](https://togithub.com/ajnart/homarr/assets/30572287/fc4814ac-eca3-45f1-9e58-fc3581d34a32)

#### Renaming & duplicating boards

We've heard you: boards can now be renamed / or duplicated. You don't
need to mess with any files on the filesystem.

#### JSON API

We know that there are many advanced users who want to take better
control of Homarr's capabilities.
Therefore, we've added a JSON API that can be used to execute almost any
action that you can from the WEB UI.
We provide an Open API specification document that enables you to easily
browse your API endpoints:

![296549433-8cc29984-7bfb-4238-869b-e02a48ae95e9](https://togithub.com/ajnart/homarr/assets/30572287/f3229f31-2f31-4124-86d3-f2038fa87ad0)

#### Fixed local paths in icon picker

Previously, the local icons were hard to use and had the wrong path by
default.
We have fixed this problem and added the size of the file as an
additional information.

#### Availability of media requests

[@&truecharts#8203;tancak](https://togithub.com/tancak) has contributed the
displaying of availability information on requests:

![294605516-1bd64ba4-4ba4-45f5-8539-7c69bb964694](https://togithub.com/ajnart/homarr/assets/30572287/9e2bad2d-169e-4d6d-93da-81e0b52f86a6)

##### What's Changed

- docs: updated dead installation links in README.md by
[@&truecharts#8203;stark1tty](https://togithub.com/stark1tty) in
[https://github.com/ajnart/homarr/pull/1775](https://togithub.com/ajnart/homarr/pull/1775)
- refactor: improve torrent table design by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1786](https://togithub.com/ajnart/homarr/pull/1786)
- docs: fix documentation link URL after creating user by
[@&truecharts#8203;StefanB7](https://togithub.com/StefanB7) in
[https://github.com/ajnart/homarr/pull/1796](https://togithub.com/ajnart/homarr/pull/1796)
- feat: add availability information about media requests by
[@&truecharts#8203;tancak](https://togithub.com/tancak) in
[https://github.com/ajnart/homarr/pull/1794](https://togithub.com/ajnart/homarr/pull/1794)
- feature: trigger automations by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1799](https://togithub.com/ajnart/homarr/pull/1799)
- feature:
[#&truecharts#8203;1765](https://togithub.com/ajnart/homarr/issues/1765) reduce
transferred torrent data by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1798](https://togithub.com/ajnart/homarr/pull/1798)
- fix: database is not initialized inside the docker container by
[@&truecharts#8203;anonysoul](https://togithub.com/anonysoul) in
[https://github.com/ajnart/homarr/pull/1806](https://togithub.com/ajnart/homarr/pull/1806)
- chore: increase version by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1811](https://togithub.com/ajnart/homarr/pull/1811)
- feature: improve admin security over dnshole controls by
[@&truecharts#8203;Tagaishi](https://togithub.com/Tagaishi) in
[https://github.com/ajnart/homarr/pull/1686](https://togithub.com/ajnart/homarr/pull/1686)
- feature: rss improvements by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1810](https://togithub.com/ajnart/homarr/pull/1810)
- feature: board operations by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1800](https://togithub.com/ajnart/homarr/pull/1800)
- revert: [#&truecharts#8203;1714](https://togithub.com/ajnart/homarr/issues/1714)
migrate to axios.get by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1819](https://togithub.com/ajnart/homarr/pull/1819)
- chore: new Crowdin updates by
[@&truecharts#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1772](https://togithub.com/ajnart/homarr/pull/1772)
- feature: add trpc openapi by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1818](https://togithub.com/ajnart/homarr/pull/1818)
- refactor: optimize imports by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1822](https://togithub.com/ajnart/homarr/pull/1822)
- chore: New Crowdin updates by
[@&truecharts#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1820](https://togithub.com/ajnart/homarr/pull/1820)
- fix: [#&truecharts#8203;1734](https://togithub.com/ajnart/homarr/issues/1734)
fix local icons path by
[@&truecharts#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1821](https://togithub.com/ajnart/homarr/pull/1821)

#### New Contributors

- [@&truecharts#8203;stark1tty](https://togithub.com/stark1tty) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1775](https://togithub.com/ajnart/homarr/pull/1775)
- [@&truecharts#8203;StefanB7](https://togithub.com/StefanB7) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1796](https://togithub.com/ajnart/homarr/pull/1796)
- [@&truecharts#8203;tancak](https://togithub.com/tancak) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1794](https://togithub.com/ajnart/homarr/pull/1794)
- [@&truecharts#8203;anonysoul](https://togithub.com/anonysoul) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1806](https://togithub.com/ajnart/homarr/pull/1806)

**Full Changelog**:
ajnart/homarr@v0.14.3...v0.14.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
Europe/Amsterdam, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNDAuOSIsInVwZGF0ZWRJblZlciI6IjM3LjE0MC45IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants