Skip to content

Commit

Permalink
Remove search plugin due to reuqirements from Google
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegWock committed Jan 12, 2025
1 parent 19d287b commit 17394f7
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 322 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* Calculator
* Embedded page
* RSS reader
* Internet search
* Calendar
* Anori integration
* Pictures
Expand Down
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.21.0",
"version": "1.21.1",
"repository": "[email protected]:OlegWock/anori.git",
"author": "OlegWock",
"license": "AGPL-3.0",
Expand Down
15 changes: 1 addition & 14 deletions src/components/Onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { analyticsEnabledAtom } from '@utils/analytics';
import { Checkbox } from './Checkbox';
import { getIpInfo } from '@utils/network';
import { topSitesPlugin, topSitesWidgetDescriptorVertical } from '@plugins/top-sites/top-sites-plugin';
import { searchPlugin, searchWidgetDescriptor } from '@plugins/search/search-plugin';
import { tasksPlugin, tasksWidgetDescriptor } from '@plugins/tasks/tasks-plugin';
import { notesPlugin, notesWidgetDescriptor } from '@plugins/notes/notes-plugin';
import { rssFeedDescriptor, rssPlugin } from '@plugins/rss/rss-plugin';
Expand Down Expand Up @@ -98,18 +97,6 @@ export const Onboarding = ({ gridDimensions }: { gridDimensions: GridDimensions
});
}


addIfPossible({
plugin: searchPlugin,
widget: searchWidgetDescriptor,
config: {
defaultProvider: 'google'
},
position: {
x: 1 + compensationForTopSites,
y: 0,
}
});
addIfPossible({
plugin: tasksPlugin,
widget: tasksWidgetDescriptor,
Expand Down Expand Up @@ -248,7 +235,7 @@ export const Onboarding = ({ gridDimensions }: { gridDimensions: GridDimensions

const screenName = screens[screenIndex];

const { activeFolder } = useFolders({includeHome: true});
const { activeFolder } = useFolders({ includeHome: true });
const { addWidget } = useFolderWidgets(activeFolder);

const [ref, bounds] = useMeasure();
Expand Down
4 changes: 4 additions & 0 deletions src/components/WhatsNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const WhatsNew = () => {
<li>
Happy New Year and thank you for choosing Anori in 2024 :)
</li>
<li>
Unfortunately, I had to remove search widget from the Anori due to requirements from
Google. I apologize for any inconvenience, but unfortunately there is not much I can do about it.
</li>
<li>
Previously Anori would stop working if you had a lot of bookmarks in bookmarks bar widget.
This was fixed in this version, now it can handle <em>really big</em> number of bookmarks.
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/all.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AnoriPlugin } from "@utils/user-data/types";
import { bookmarkPlugin } from "./bookmark/bookmark-plugin";
import { datetimePlugin } from "./datetime/datetime-plugin";
import { searchPlugin } from "./search/search-plugin";
import { recentlyClosedPlugin } from "./recently-closed/recently-closed-plugin";
import { systemStatusPlugin } from "./system-status/system-status-plugin";
import { calendarPlugin } from "./calendar/calendar-plugin";
Expand Down Expand Up @@ -36,7 +35,6 @@ export const availablePlugins: AnoriPlugin<any, any>[] = [
notesPlugin,
tasksPlugin,
mathPlugin,
searchPlugin,
weatherPlugin,
calendarPlugin,
recentlyClosedPlugin,
Expand Down
166 changes: 0 additions & 166 deletions src/plugins/search/search-plugin.tsx

This file was deleted.

67 changes: 0 additions & 67 deletions src/plugins/search/styles.scss

This file was deleted.

7 changes: 0 additions & 7 deletions src/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,6 @@
"window": "نافذة"
},

"search-plugin": {
"name": "البحث على الإنترنت",
"widgetName": "بحث",
"defaultProvider": "مزود افتراضي",
"searchProviderForQ": "البحث عن {{provider}} عن «{{query}}»"
},

"system-status-plugin": {
"name": "حالة النظام",
"ramLoad": "حمل الرام",
Expand Down
6 changes: 0 additions & 6 deletions src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,6 @@
"tab": "Tab",
"window": "Fenster"
},
"search-plugin": {
"name": "Internetsuche",
"widgetName": "Suche",
"searchProviderForQ": "Durchsuche {{provider}} nach «{{query}}»",
"defaultProvider": "Standard-Suchmaschine"
},
"system-status-plugin": {
"name": "Systemstatus",
"ramLoad": "RAM Auslastung",
Expand Down
7 changes: 0 additions & 7 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,6 @@
"window": "Window"
},

"search-plugin": {
"name": "Internet search",
"widgetName": "Search",
"defaultProvider": "Default provider",
"searchProviderForQ": "Search {{provider}} for «{{query}}»"
},

"system-status-plugin": {
"name": "System status",
"ramLoad": "RAM load",
Expand Down
6 changes: 0 additions & 6 deletions src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@
"tab": "Pestaña",
"window": "Ventana"
},
"search-plugin": {
"name": "Búsqueda en internet",
"widgetName": "Buscar",
"defaultProvider": "Proveedor por defecto",
"searchProviderForQ": "Buscar {{provider}} para «{{query}}»"
},
"system-status-plugin": {
"name": "Estado del sistema",
"ramLoad": "Carga de RAM",
Expand Down
6 changes: 0 additions & 6 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@
"tab": "Onglet",
"window": "Fenêtre"
},
"search-plugin": {
"name": "Recherche Internet",
"widgetName": "Recherche",
"defaultProvider": "Fournisseur par défaut",
"searchProviderForQ": "Recherche {{provider}} pour «{{query}}»"
},
"system-status-plugin": {
"name": "État du système",
"ramLoad": "Chargement de la RAM",
Expand Down
6 changes: 0 additions & 6 deletions src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@
"tab": "Scheda",
"window": "Finestra"
},
"search-plugin": {
"name": "Ricerca su Internet",
"widgetName": "Ricerca",
"defaultProvider": "Provider predefinito",
"searchProviderForQ": "Cerca «{{query}}» su {{provider}}"
},
"system-status-plugin": {
"name": "System status",
"ramLoad": "RAM load",
Expand Down
Loading

0 comments on commit 17394f7

Please sign in to comment.