Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Jun 14, 2023
1 parent 804d635 commit b79b3cb
Show file tree
Hide file tree
Showing 29 changed files with 67 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ baseUrl := 'https://animepahe.com';
baseApiUrl := 'https://animepahe.org/api';

getSearchApiUrl := -> terms, length {
length = length ?? 8;
length ??= 8;
return '{}?m=search&l={}&q={}'.format([baseApiUrl, length, terms]);
};

episodesApiPerPage := 30;

getEpisodesApiUrl := -> id, page {
page = page ?? 1;
page ??= 1;
return '{}?m=release&id={}&sort=episode_asc&page={}'.format([baseApiUrl, id, page]);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# import '../../../shared/extractors/fembed.fbs' as fembed;
import '../../../shared/extractors/streamsb.fbs' as streamsb;
import '../../../shared/utils/debugx.fbs' as debugx;
import './parsers/gogoplay.fbs' as gogoplay;
import './config.fbs' as config;
# import '../../../shared/extractors/fembed.baize' as fembed;
import '../../../shared/extractors/streamsb.baize' as streamsb;
import '../../../shared/utils/debugx.baize' as debugx;
import './parsers/gogoplay.baize' as gogoplay;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../config.fbs' as config;
import '../config.baize' as config;

defaultHeaders := {
['User-Agent']: Http.defaultDesktopUserAgent(),
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

request := -> options {
if (options.isRetry) throw Exception.new('Failed to access site');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './config.fbs' as config;
import './fetcher.fbs' as fetcher;
import './config.baize' as config;
import './fetcher.baize' as fetcher;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './parsers/rapidcloud.fbs' as rapidcloud;
import './config.fbs' as config;
import './parsers/rapidcloud.baize' as rapidcloud;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TODO: Finish this

import '../config.fbs' as config;
import '../config.baize' as config;

parseId := -> url : RegExp.new(r'\/embed-6\/([^?]+)\?').firstMatch(url).group(1);

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ getMangaThumbnailUrl := -> slug : Url.ensure(
);

parseChapterId := -> id, trim {
trim = trim ?? true;
trim ??= true;
matched := RegExp.new(r'^(\d)(\d+)(\d)$').firstMatch(id);
mMid := matched.group(2);
mEnd := matched.group(3);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './config.fbs' as config;
import './config.baize' as config;

extractor := {
defaultLocale: config.defaultLocale,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../utils/hexify.fbs' as hexify;
import '../utils/hexify.baize' as hexify;

defaultHeaders := {
['User-Agent']: Http.defaultDesktopUserAgent(),
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions modules/shared/utils/hexify.baize
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
hexMap := '0123456789ABCDEF'.split('');

encode := -> input {
output := [];
input.toCodeUnits().forEach(-> x : {
output.push(String.from((x / 16).truncate()));
output.push(hexMap[x % 16]);
});
return output.join('');
};
15 changes: 0 additions & 15 deletions modules/shared/utils/hexify.fbs

This file was deleted.

68 changes: 34 additions & 34 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.11.0"
baize_compiler:
dependency: transitive
description:
path: "packages/baize_compiler"
ref: HEAD
resolved-ref: d365e1a165f95dce31c50323f27b1fa3228deee5
url: "https://github.com/zyrouge/baize.git"
source: git
version: "0.0.0"
baize_shared:
dependency: transitive
description:
path: "packages/baize_shared"
ref: HEAD
resolved-ref: d365e1a165f95dce31c50323f27b1fa3228deee5
url: "https://github.com/zyrouge/baize.git"
source: git
version: "0.0.0"
baize_vm:
dependency: transitive
description:
path: "packages/baize_vm"
ref: HEAD
resolved-ref: d365e1a165f95dce31c50323f27b1fa3228deee5
url: "https://github.com/zyrouge/baize.git"
source: git
version: "0.0.0"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -69,10 +96,10 @@ packages:
dependency: transitive
description:
name: csslib
sha256: "831883fb353c8bdc1d71979e5b342c7d88acfbc643113c14ae51e2442ea0f20f"
sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb"
url: "https://pub.dev"
source: hosted
version: "0.17.3"
version: "1.0.0"
devx:
dependency: "direct dev"
description:
Expand All @@ -90,41 +117,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.0.1"
fubuki_compiler:
dependency: transitive
description:
path: "packages/fubuki_compiler"
ref: HEAD
resolved-ref: "95c94133f1bd8f9241f8758b0d959444ea7bd998"
url: "https://github.com/yukino-org/fubuki.git"
source: git
version: "0.0.0"
fubuki_shared:
dependency: transitive
description:
path: "packages/fubuki_shared"
ref: HEAD
resolved-ref: "95c94133f1bd8f9241f8758b0d959444ea7bd998"
url: "https://github.com/yukino-org/fubuki"
source: git
version: "0.0.0"
fubuki_vm:
dependency: transitive
description:
path: "packages/fubuki_vm"
ref: HEAD
resolved-ref: "95c94133f1bd8f9241f8758b0d959444ea7bd998"
url: "https://github.com/yukino-org/fubuki.git"
source: git
version: "0.0.0"
html:
dependency: transitive
description:
name: html
sha256: "58e3491f7bf0b6a4ea5110c0c688877460d1a6366731155c4a4580e7ded773e8"
sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a"
url: "https://pub.dev"
source: hosted
version: "0.15.3"
version: "0.15.4"
http:
dependency: transitive
description:
Expand Down Expand Up @@ -210,7 +210,7 @@ packages:
description:
path: "."
ref: dart_tenka
resolved-ref: "08b6de044ed81e108228748d1c81f03fce179b75"
resolved-ref: dcdfe3337c28c5d9475abe9ac05eee5d8531f5a8
url: "https://github.com/yukino-org/packages.git"
source: git
version: "1.0.5"
Expand All @@ -219,7 +219,7 @@ packages:
description:
path: "."
ref: dart_tenka_dev_tools
resolved-ref: "05bfc8a802998d9aa673c26afbe2acdd7c15f3b5"
resolved-ref: f641ca1cc6fe736768816dc2b249ea7fbfb7ff82
url: "https://github.com/yukino-org/packages.git"
source: git
version: "0.0.0"
Expand All @@ -228,7 +228,7 @@ packages:
description:
path: "."
ref: dart_tenka_runtime
resolved-ref: "4d39882dab2fe73893486498138022364dc21f6e"
resolved-ref: abeadc5d0b9b95cb1629481314a8f8536a708ae2
url: "https://github.com/yukino-org/packages.git"
source: git
version: "0.0.0"
Expand Down
2 changes: 1 addition & 1 deletion tools/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class Emojis {
}

abstract class Utils {
static const String mainScriptFile = 'main.fbs';
static const String mainScriptFile = 'main.baize';

static final String baseDir = path.dirname(Directory.current.path);

Expand Down

0 comments on commit b79b3cb

Please sign in to comment.