From 29284eca75ff41ac180260566d014a403dfb52af Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 12 Jul 2022 08:08:41 +0200 Subject: [PATCH] remove more ads stuff from client --- locales/ar-SA.yml | 1 - locales/bn-BD.yml | 1 - locales/de-DE.yml | 1 - locales/en-US.yml | 1 - locales/es-ES.yml | 1 - locales/fr-FR.yml | 1 - locales/id-ID.yml | 1 - locales/it-IT.yml | 1 - locales/ja-JP.yml | 1 - locales/ja-KS.yml | 1 - locales/ko-KR.yml | 1 - locales/pl-PL.yml | 1 - locales/ru-RU.yml | 1 - locales/sk-SK.yml | 1 - locales/vi-VN.yml | 1 - locales/zh-CN.yml | 1 - locales/zh-TW.yml | 1 - .../src/server/api/endpoints/admin/meta.ts | 24 ------------------- packages/client/src/store.ts | 4 ---- 19 files changed, 45 deletions(-) diff --git a/locales/ar-SA.yml b/locales/ar-SA.yml index 421271639..1ccb9a7c0 100644 --- a/locales/ar-SA.yml +++ b/locales/ar-SA.yml @@ -734,7 +734,6 @@ gallery: "المعرض" recentPosts: "المشاركات الحديثة" popularPosts: "المشاركات المتداولة" shareWithNote: "شاركه في ملاحظة" -ads: "الإعلانات" expiration: "ينتهي استطلاع الرأي في" memo: "تذكير" priority: "الأولوية" diff --git a/locales/bn-BD.yml b/locales/bn-BD.yml index d0aef3073..4129dc006 100644 --- a/locales/bn-BD.yml +++ b/locales/bn-BD.yml @@ -765,7 +765,6 @@ gallery: "গ্যালারী" recentPosts: "নতুন পোস্ট" popularPosts: "জনপ্রিয় পোস্ট" shareWithNote: "নোটের মাধ্যমে শেয়ার করুন" -ads: "বিজ্ঞাপন" expiration: "নির্দিষ্ট সময়সীমা" memo: "মেমো" priority: "অগ্রাধিকার" diff --git a/locales/de-DE.yml b/locales/de-DE.yml index c34137a5d..41b8f2f4a 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -766,7 +766,6 @@ gallery: "Galerie" recentPosts: "Neue Beiträge" popularPosts: "Beliebte Beiträge" shareWithNote: "Mit Notiz teilen" -ads: "Werbung" expiration: "Frist" memo: "Merkzettel" priority: "Priorität" diff --git a/locales/en-US.yml b/locales/en-US.yml index a18c7fdb6..06d854833 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -766,7 +766,6 @@ gallery: "Gallery" recentPosts: "Recent posts" popularPosts: "Popular posts" shareWithNote: "Share with note" -ads: "Advertisements" expiration: "Deadline" memo: "Memo" priority: "Priority" diff --git a/locales/es-ES.yml b/locales/es-ES.yml index 8e18af4aa..ec2ad6595 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -761,7 +761,6 @@ gallery: "Galería" recentPosts: "Posts recientes" popularPosts: "Más vistos" shareWithNote: "Compartir con una nota" -ads: "Anuncios" expiration: "Termina el" memo: "Notas" priority: "Prioridad" diff --git a/locales/fr-FR.yml b/locales/fr-FR.yml index 728dec0ca..afe9183f5 100644 --- a/locales/fr-FR.yml +++ b/locales/fr-FR.yml @@ -760,7 +760,6 @@ gallery: "Galerie" recentPosts: "Les plus récentes" popularPosts: "Les plus consultées" shareWithNote: "Partager dans une note" -ads: "Publicité" expiration: "Échéance" memo: "Pense-bête" priority: "Priorité" diff --git a/locales/id-ID.yml b/locales/id-ID.yml index 9ff94ef62..5457612d8 100644 --- a/locales/id-ID.yml +++ b/locales/id-ID.yml @@ -765,7 +765,6 @@ gallery: "Galeri" recentPosts: "Postingan terbaru" popularPosts: "Postingan populer" shareWithNote: "Bagikan dengan catatan" -ads: "Iklan" expiration: "Batas akhir" memo: "Memo" priority: "Prioritas" diff --git a/locales/it-IT.yml b/locales/it-IT.yml index 05e8ef5e5..d303e5e52 100644 --- a/locales/it-IT.yml +++ b/locales/it-IT.yml @@ -753,7 +753,6 @@ gallery: "Galleria" recentPosts: "Le più recenti" popularPosts: "Le più visualizzate" shareWithNote: "Condividere in nota" -ads: "Pubblicità" expiration: "Scadenza" memo: "Promemoria" priority: "Priorità" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 069ecf278..5f12894d2 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -768,7 +768,6 @@ gallery: "ギャラリー" recentPosts: "最近の投稿" popularPosts: "人気の投稿" shareWithNote: "ノートで共有" -ads: "広告" expiration: "期限" memo: "メモ" priority: "優先度" diff --git a/locales/ja-KS.yml b/locales/ja-KS.yml index 53779086c..d5ea43d4e 100644 --- a/locales/ja-KS.yml +++ b/locales/ja-KS.yml @@ -645,7 +645,6 @@ goBack: "戻る" info: "情報" user: "ユーザー" administration: "管理" -ads: "広告" expiration: "期限" memo: "メモ" high: "高い" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 0cc889f24..6911ecaf8 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -765,7 +765,6 @@ gallery: "갤러리" recentPosts: "최근 포스트" popularPosts: "인기 포스트" shareWithNote: "노트로 공유" -ads: "광고" expiration: "기한" memo: "메모" priority: "우선순위" diff --git a/locales/pl-PL.yml b/locales/pl-PL.yml index d8d7cdf0f..08552f3bc 100644 --- a/locales/pl-PL.yml +++ b/locales/pl-PL.yml @@ -739,7 +739,6 @@ gallery: "Galeria" recentPosts: "Ostatnie wpisy" popularPosts: "Popularne wpisy" shareWithNote: "Udostępnij z wpisem" -ads: "Reklamy" expiration: "Ankieta kończy się" memo: "Notatki" priority: "Priorytet" diff --git a/locales/ru-RU.yml b/locales/ru-RU.yml index 8e76fc25f..3e8ecf593 100644 --- a/locales/ru-RU.yml +++ b/locales/ru-RU.yml @@ -763,7 +763,6 @@ gallery: "Галерея" recentPosts: "Недавние публикации" popularPosts: "Популярные публикации" shareWithNote: "Поделиться заметкой" -ads: "Реклама" expiration: "Опрос длится" memo: "Памятка" priority: "Приоритет" diff --git a/locales/sk-SK.yml b/locales/sk-SK.yml index dfd02dd42..b0b3a66c3 100644 --- a/locales/sk-SK.yml +++ b/locales/sk-SK.yml @@ -764,7 +764,6 @@ gallery: "Galéria" recentPosts: "Najnovšie príspevky" popularPosts: "Populárne príspevky" shareWithNote: "Zdieľať s poznámkou" -ads: "Reklamy" expiration: "Ukončiť hlasovanie" memo: "Memo" priority: "Priorita" diff --git a/locales/vi-VN.yml b/locales/vi-VN.yml index de1455e2e..9bbca57f6 100644 --- a/locales/vi-VN.yml +++ b/locales/vi-VN.yml @@ -765,7 +765,6 @@ gallery: "Thư viện ảnh" recentPosts: "Tút gần đây" popularPosts: "Tút được xem nhiều nhất" shareWithNote: "Chia sẻ kèm với tút" -ads: "Quảng cáo" expiration: "Thời hạn" memo: "Lưu ý" priority: "Ưu tiên" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index ffe998e72..1a93c8e98 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -765,7 +765,6 @@ gallery: "图库" recentPosts: "最新发布" popularPosts: "热门投稿" shareWithNote: "在帖子中分享" -ads: "广告" expiration: "截止时间" memo: "便笺" priority: "优先级" diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index 4e1ad09de..4746d6f74 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -765,7 +765,6 @@ gallery: "相簿" recentPosts: "最新貼文" popularPosts: "熱門的貼文" shareWithNote: "在貼文中分享" -ads: "廣告" expiration: "期限" memo: "備忘錄" priority: "優先級" diff --git a/packages/backend/src/server/api/endpoints/admin/meta.ts b/packages/backend/src/server/api/endpoints/admin/meta.ts index 01f3c522c..5068da32b 100644 --- a/packages/backend/src/server/api/endpoints/admin/meta.ts +++ b/packages/backend/src/server/api/endpoints/admin/meta.ts @@ -97,30 +97,6 @@ export const meta = { }, }, }, - ads: { - type: 'array', - optional: false, nullable: false, - items: { - type: 'object', - optional: false, nullable: false, - properties: { - place: { - type: 'string', - optional: false, nullable: false, - }, - url: { - type: 'string', - optional: false, nullable: false, - format: 'url', - }, - imageUrl: { - type: 'string', - optional: false, nullable: false, - format: 'url', - }, - }, - }, - }, enableEmail: { type: 'boolean', optional: false, nullable: false, diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts index 31aab5c79..d1a5c0989 100644 --- a/packages/client/src/store.ts +++ b/packages/client/src/store.ts @@ -59,10 +59,6 @@ export const defaultStore = markRaw(new Storage('base', { where: 'account', default: [], }, - mutedAds: { - where: 'account', - default: [] as string[], - }, menu: { where: 'deviceAccount',