Skip to content

Commit

Permalink
refactor: sora module
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Oct 31, 2023
1 parent ad51bde commit 3da8cf9
Show file tree
Hide file tree
Showing 43 changed files with 1,569 additions and 630 deletions.
5 changes: 2 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2022 yukino-org
Sora Copyright (C) 2023 yukino-org

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -652,7 +651,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

Tenka Modules Copyright (C) 2022 Yukino Org
Sora Copyright (C) 2023 yukino-org
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
By using this project, you agree to the [usage policy](https://yukino-org.github.io/wiki/tenka/disclaimer/).

[![License: GPL v3](https://img.shields.io/badge/License-GPL_v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Test Modules](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fyukino-org%2Fsora%2Fsummary%2Fbadge.json)](https://github.com/yukino-org/sora/actions/workflows/test-modules.yml)
[![Deploy](https://github.com/yukino-org/sora/actions/workflows/deploy.yml/badge.svg)](https://github.com/yukino-org/sora/actions/workflows/deploy.yml)
[![Test Modules](https://github.com/yukino-org/sora/actions/workflows/test-modules.yml/badge.svg)](https://github.com/yukino-org/sora/actions/workflows/test-modules.yml)
[![Test Modules Summary](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fyukino-org%2Fsora%2Fsummary%2Fbadge.json)](https://github.com/yukino-org/sora/actions/workflows/test-modules.yml)

## Anime

Expand Down
2 changes: 1 addition & 1 deletion modules/anime/animepahe_com/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/test/anime.dart';
import '../../../store/core/module.dart';

class AnimePahe extends SAnimeModule {
class AnimePahe extends $AnimeModule {
@override
String id() => 'animepahe_com';

Expand Down
12 changes: 2 additions & 10 deletions modules/anime/animepahe_com/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SAnimeModule module = AnimePahe();
final TenkaMetadata config = await module.config();
final MockedAnimeExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
await $test(AnimePahe());
}
2 changes: 1 addition & 1 deletion modules/anime/gogoanime_bid/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/test/anime.dart';
import '../../../store/core/module.dart';

class GogoAnime extends SAnimeModule {
class GogoAnime extends $AnimeModule {
@override
String id() => 'gogoanime_bid';

Expand Down
12 changes: 2 additions & 10 deletions modules/anime/gogoanime_bid/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SAnimeModule module = GogoAnime();
final TenkaMetadata config = await module.config();
final MockedAnimeExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
await $test(GogoAnime());
}
2 changes: 1 addition & 1 deletion modules/anime/hanime_tv/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/test/anime.dart';
import '../../../store/core/module.dart';

class HAnime extends SAnimeModule {
class HAnime extends $AnimeModule {
@override
String id() => 'hanime_tv';

Expand Down
12 changes: 2 additions & 10 deletions modules/anime/hanime_tv/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SAnimeModule module = HAnime();
final TenkaMetadata config = await module.config();
final MockedAnimeExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
await $test(HAnime());
}
2 changes: 1 addition & 1 deletion modules/manga/fanfox_net/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';

class FanFox extends SMangaModule {
class FanFox extends $MangaModule {
@override
String id() => 'fanfox_net';

Expand Down
12 changes: 2 additions & 10 deletions modules/manga/fanfox_net/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SMangaModule module = FanFox();
final TenkaMetadata config = await module.config();
final MockedMangaExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
$test(FanFox());
}
2 changes: 1 addition & 1 deletion modules/manga/mangadex_org/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';

class MangaDex extends SMangaModule {
class MangaDex extends $MangaModule {
@override
String id() => 'mangadex_org';

Expand Down
12 changes: 2 additions & 10 deletions modules/manga/mangadex_org/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SMangaModule module = MangaDex();
final TenkaMetadata config = await module.config();
final MockedMangaExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
$test(MangaDex());
}
2 changes: 1 addition & 1 deletion modules/manga/mangasee123_com/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';

class MangaSee123 extends SMangaModule {
class MangaSee123 extends $MangaModule {
@override
String id() => 'mangasee123_com';

Expand Down
12 changes: 2 additions & 10 deletions modules/manga/mangasee123_com/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SMangaModule module = MangaSee123();
final TenkaMetadata config = await module.config();
final MockedMangaExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
$test(MangaSee123());
}
2 changes: 1 addition & 1 deletion modules/manga/readm_org/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';

class ReadM extends SMangaModule {
class ReadM extends $MangaModule {
@override
String id() => 'readm_org';

Expand Down
12 changes: 2 additions & 10 deletions modules/manga/readm_org/test.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import 'package:tenka/tenka.dart';
import 'package:tenka_dev_tools/tenka_dev_tools.dart';
import '../../../store/core/module.dart';
import '../../../store/test.dart';
import '../../../store/helpers/mono_test.dart';
import 'module.dart';

Future<void> main() async {
final SMangaModule module = ReadM();
final TenkaMetadata config = await module.config();
final MockedMangaExtractor mocked = module.mock();
await STester.runProcedure(
() => mocked.run(config.source as TenkaLocalFileDS),
);
$test(ReadM());
}
Loading

0 comments on commit 3da8cf9

Please sign in to comment.