mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00

* Add AnkiHub section to preferences screen * Add short intro for AnkiWeb and AnkiHub to syncing section * Add AnkiHub login screen * Implement login methods in backend * Set minimum dialog width * Add missing colon * Respect the ANKIHUB_APP_URL env var This is used by the add-on. * Simplify login error reporting * Fix from_prefs_screen not passed to subcall * Add missing ankihub_pb2 import * Install AnkiHub add-on after sign-in * Avoid .exec() * Update ftl/core/sync.ftl Co-authored-by: Damien Elmes <dae@users.noreply.github.com> * Split translation string * Support login by username/email * Fix entered username/email not being passed back to on_done * Remove unused import * Move to 'Third-party services' section * Tweak login dialog's heading * Remove 'third-party' from intro text * Tweak copy * Prefix profile keys * Tweak strings * Remove description from login dialog * Remove signup links * Clear credentials in ankihub_logout() * Call .adjustSize() * Title Case * Add padding to third-party services, and fix tab order from other PR
60 lines
1.1 KiB
Rust
60 lines
1.1 KiB
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
#![deny(unused_must_use)]
|
|
|
|
pub mod adding;
|
|
pub(crate) mod ankidroid;
|
|
pub mod ankihub;
|
|
pub mod backend;
|
|
pub mod browser_table;
|
|
pub mod card;
|
|
pub mod card_rendering;
|
|
pub mod cloze;
|
|
pub mod collection;
|
|
pub mod config;
|
|
pub mod dbcheck;
|
|
pub mod deckconfig;
|
|
pub mod decks;
|
|
pub mod error;
|
|
pub mod findreplace;
|
|
pub mod i18n;
|
|
pub mod image_occlusion;
|
|
pub mod import_export;
|
|
pub mod latex;
|
|
pub mod links;
|
|
pub mod log;
|
|
mod markdown;
|
|
pub mod media;
|
|
pub mod notes;
|
|
pub mod notetype;
|
|
pub mod ops;
|
|
mod preferences;
|
|
pub mod prelude;
|
|
mod progress;
|
|
pub mod revlog;
|
|
pub mod scheduler;
|
|
pub mod search;
|
|
pub mod serde;
|
|
pub mod services;
|
|
mod stats;
|
|
pub mod storage;
|
|
pub mod sync;
|
|
pub mod tags;
|
|
pub mod template;
|
|
pub mod template_filters;
|
|
pub(crate) mod tests;
|
|
pub mod text;
|
|
pub mod timestamp;
|
|
mod typeanswer;
|
|
pub mod types;
|
|
pub mod undo;
|
|
pub mod version;
|
|
|
|
use std::env;
|
|
|
|
use lazy_static::lazy_static;
|
|
|
|
lazy_static! {
|
|
pub(crate) static ref PYTHON_UNIT_TESTS: bool = env::var("ANKI_TEST_MODE").is_ok();
|
|
}
|