Skip to content

Commit

Permalink
🔀 Merge v0.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw authored Jan 29, 2023
2 parents ab3c085 + cf45b4c commit 53012da
Show file tree
Hide file tree
Showing 60 changed files with 897 additions and 536 deletions.
2 changes: 1 addition & 1 deletion data/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const REPO_URL = 'ajnart/homarr';
export const CURRENT_VERSION = 'v0.11.2';
export const CURRENT_VERSION = 'v0.11.3';
export const ICON_PICKER_SLICE_LIMIT = 36;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homarr",
"version": "0.11.2",
"version": "0.11.3",
"description": "Homarr - A homepage for your server.",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions public/locales/da/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/de/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/el/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
2 changes: 1 addition & 1 deletion public/locales/el/settings/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Ρυθμίσεις",
"tooltip": "Ρυθμίσεις",
"tabs": {
"common": "Συχνά",
"common": "Συχνές επιλογές",
"customizations": "Παραμετροποιήσεις"
},
"tips": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/el/settings/general/config-changer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
}
}
},
"saveCopy": "Αποθήκευση αντιγράφου"
"saveCopy": "Αποθηκεύστε ένα αντίγραφο"
},
"dropzone": {
"notifications": {
Expand Down
7 changes: 7 additions & 0 deletions public/locales/en/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "Search something...",
"searchLimitationTitle": "Limited to 30 results",
"searchLimitationMessage": "Search results were limited to 30 because there were too many matches"
}
}
7 changes: 7 additions & 0 deletions public/locales/es/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/fr/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/he/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/it/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
8 changes: 4 additions & 4 deletions public/locales/it/modules/torrents-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"card": {
"footer": {
"error": "Errore",
"lastUpdated": "Ultimo aggiornamento {{time}} ago"
"lastUpdated": "Ultimo aggiornamento {{time}} fa"
},
"table": {
"header": {
Expand All @@ -30,7 +30,7 @@
"progress": "Avanzamento"
},
"item": {
"text": "Gestito da {{appName}}, rapporto {{ratio}}"
"text": "Gestito da {{appName}}, {{ratio}} ratio"
},
"body": {
"nothingFound": "Nessun torrent trovato"
Expand Down Expand Up @@ -61,10 +61,10 @@
"introductionPrefix": "Gestito da",
"metrics": {
"queuePosition": "Posizione in coda - {{position}}",
"progress": "Progressi - {{progress}}%",
"progress": "Progresso - {{progress}}%",
"totalSelectedSize": "Totale - {{totalSize}}",
"state": "Stato - {{state}}",
"ratio": "Rapporto -",
"ratio": "Ratio -",
"completed": "Completato"
}
}
Expand Down
7 changes: 7 additions & 0 deletions public/locales/ja/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/ko/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/lol/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/nl/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/pl/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/pt/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/ru/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/sl/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
2 changes: 1 addition & 1 deletion public/locales/sv/layout/modals/about.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"i18n": "Laddade namnområden för I18n-översättningar",
"locales": "Konfigurerade I18n lokalspråk",
"contact": "Har du problem eller frågor? Kontakta oss!",
"addToDashboard": "Lägg till i instrumentpanel"
"addToDashboard": "Lägg till instrumentpanel"
}
2 changes: 1 addition & 1 deletion public/locales/sv/layout/modals/add-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"appearance": {
"icon": {
"label": "Appikon",
"description": "Ikonen som kommer att visas på instrumentpanelen."
"description": "Ikon som kommer att visas på instrumentpanelen."
}
},
"integration": {
Expand Down
4 changes: 2 additions & 2 deletions public/locales/sv/layout/modals/change-position.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"xPosition": "X axel position",
"xPosition": "Position X-axel",
"width": "Bredd",
"height": "Höjd",
"yPosition": "Y axel position",
"yPosition": "Position Y-axel",
"zeroOrHigher": "0 eller högre",
"betweenXandY": "Mellan {{min}} och {{max}}"
}
7 changes: 7 additions & 0 deletions public/locales/sv/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
2 changes: 1 addition & 1 deletion public/locales/sv/modules/dashdot.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"label": "Flerkärnig CPU vy"
},
"storageMultiView": {
"label": "Visning av flera lagrings enheter"
"label": "Visning av flera lagringsenheter"
},
"useCompactView": {
"label": "Använd kompakt vy"
Expand Down
7 changes: 7 additions & 0 deletions public/locales/uk/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
4 changes: 2 additions & 2 deletions public/locales/uk/modules/torrents-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
"title": "Завантаження..."
},
"popover": {
"introductionPrefix": "Під керівництвом",
"introductionPrefix": "Керується",
"metrics": {
"queuePosition": "Позиція в черзі - {{position}}",
"progress": "Прогрес - {{progress}}%.",
"totalSelectedSize": "Всього - {{totalSize}}",
"state": "Держава - {{state}}",
"state": "Стан - {{state}}",
"ratio": "Коефіцієнт -",
"completed": "Завершено"
}
Expand Down
7 changes: 7 additions & 0 deletions public/locales/vi/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
7 changes: 7 additions & 0 deletions public/locales/zh/layout/modals/icon-picker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iconPicker": {
"textInputPlaceholder": "",
"searchLimitationTitle": "",
"searchLimitationMessage": ""
}
}
2 changes: 1 addition & 1 deletion public/locales/zh/settings/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"enablelsidebar": "启用左边的侧边栏",
"enablesearchbar": "启用搜索栏",
"enabledocker": "启用docker集成",
"enableping": "启用平移功能",
"enableping": "启用Ping功能",
"enablelsidebardesc": "可选的。只能用于应用程序和集成",
"enablersidebardesc": "可选的。只能用于应用程序和集成"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createStyles, Flex, Tabs, TextInput } from '@mantine/core';
import { Autocomplete, createStyles, Flex, Tabs, TextInput } from '@mantine/core';
import { UseFormReturnType } from '@mantine/form';
import { useQuery } from '@tanstack/react-query';
import { useTranslation } from 'next-i18next';
import { AppType } from '../../../../../../types/app';
import { DebouncedAppIcon } from '../Shared/DebouncedAppIcon';
Expand All @@ -18,16 +19,21 @@ export const AppearanceTab = ({
}: AppearanceTabProps) => {
const { t } = useTranslation('layout/modals/add-app');
const { classes } = useStyles();
const { isLoading, error, data } = useQuery({
queryKey: ['autocompleteLocale'],
queryFn: () => fetch('/api/getLocalImages').then((res) => res.json()),
});

return (
<Tabs.Panel value="appearance" pt="lg">
<Flex gap={5}>
<TextInput
<Autocomplete
className={classes.textInput}
icon={<DebouncedAppIcon form={form} width={20} height={20} />}
label={t('appearance.icon.label')}
description={t('appearance.icon.description')}
variant="default"
data={data?.files ?? []}
withAsterisk
required
{...form.getInputProps('appearance.iconUrl')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface IconSelectorProps {
}

export const IconSelector = ({ onChange, allowAppNamePropagation, form }: IconSelectorProps) => {
const { t } = useTranslation('layout/tools');
const { t } = useTranslation('layout/modals/icon-picker');

const { data, isLoading } = useRepositoryIconsQuery<WalkxcodeRepositoryIcon>({
url: 'https://api.github.com/repos/walkxcode/Dashboard-Icons/contents/png',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const AvailableElementTypes = ({
{
id: uuidv4(),
// Thank you ChatGPT ;)
position: previousConfig.wrappers.length + 1,
position: previousConfig.categories.length + 1,
},
],
categories: [
Expand Down
Loading

1 comment on commit 53012da

@vercel
Copy link

@vercel vercel bot commented on 53012da Jan 29, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

homarr – ./

homarr-ajnart.vercel.app
demo.homarr.dev
homarr-git-master-ajnart.vercel.app

Please sign in to comment.