Skip to content

Commit

Permalink
Add pictures plugin to whats new
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegWock committed Apr 7, 2024
1 parent a74fe79 commit 4000ab4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Anori",
"description": "Customizable new tab: compose your own page from widgets",
"version": "1.17.0",
"version": "1.18.0",
"repository": "[email protected]:OlegWock/anori.git",
"author": "OlegWock",
"license": "AGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ console.log('Background init');

const VERSIONS_WITH_CHANGES = [
'1.1.0', '1.2.0', '1.5.0', '1.6.0', '1.8.0', '1.9.0', '1.10.0', '1.11.0', '1.12.0', '1.13.0', '1.14.0', '1.15.0',
'1.16.0', '1.17.0'
'1.16.0', '1.17.0', '1.18.0'
];

const compareVersions = (v1: string, v2: string): -1 | 0 | 1 => {
Expand Down
6 changes: 5 additions & 1 deletion src/components/WhatsNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ export const WhatsNew = () => {
<h2>1.18.0</h2>
<ul>
<li>
Added new Label plugin so you can better organize your widgets.
Added new Picture plugin to spring some ✨aesthetic✨ on your new tab.
This was contribution from @slayernominee. Thanks!
</li>
<li>
Added new Label plugin so you can better organize your widgets.
This was another contribution from @slayernominee. Thanks!
</li>
<li>
Now, after you navigated to another page from Anori and then clicked 'Back'
you will be taken to folder you navigated from rather than home/default folder.
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/picture/picture-plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type PicturePluginWidgetConfigType = {

const PictureConfigScreen = ({ saveConfiguration, currentConfig }: WidgetConfigurationScreenProps<PicturePluginWidgetConfigType>) => {
const { t } = useTranslation();
const [url, setUrl] = useState(currentConfig?.url ?? 'https://source.unsplash.com/random/256x256');
const [url, setUrl] = useState(currentConfig?.url ?? 'https://source.unsplash.com/random/512x512');

const onConfirm = () => {

Expand Down Expand Up @@ -48,7 +48,7 @@ const widgetDescriptor = {
mainScreen: PicturePlugin,
mock: () => {
return (<PicturePlugin instanceId="mock" config={{
url: 'https://source.unsplash.com/random/256x256'
url: 'https://source.unsplash.com/random/512x512'
}} />)
},
appearance: {
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/picture/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
align-items: center;
text-decoration: none;
flex-grow: 1;
max-height: 100%;
max-width: 100%;

}

Expand All @@ -27,7 +29,6 @@
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
user-select: none;
pointer-events: none;
}
8 changes: 0 additions & 8 deletions src/translations/uk-missing.json

This file was deleted.

4 changes: 4 additions & 0 deletions src/translations/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@
"name": "Заголовок",
"label": "Заголовок",
"text": "Опціональний опис"
},
"picture-plugin": {
"name": "Зображення",
"widgetName": "Зображення"
}
}
}

0 comments on commit 4000ab4

Please sign in to comment.