Skip to content

Commit

Permalink
feat: change shops' display names; change display order
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaharico committed Feb 3, 2024
1 parent 9751394 commit e29130d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/get-bonus/src/animate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { removeExtraSpaces } from '../utils';

export class Animate extends Provider {
constructor() {
super('animate', 'https://www.animate-onlineshop.jp');
super('Animate', 'https://www.animate-onlineshop.jp');
}

async search(text: string, options: Partial<SearchOptions>): Promise<SearchResult[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/get-bonus/src/comiczin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { removeExtraSpaces } from '../utils';

export class Comiczin extends Provider {
constructor() {
super('comiczin', 'https://shop.comiczin.jp');
super('Comic Zin', 'https://shop.comiczin.jp');
}

async search(text: string, options: Partial<SearchOptions>): Promise<SearchResult[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/get-bonus/src/gamers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { removeExtraSpaces } from '../utils';

export class Gamers extends Provider {
constructor() {
super('gamers', 'https://www.gamers.co.jp');
super('Gamers', 'https://www.gamers.co.jp');
}

async search(text: string, options: Partial<SearchOptions>): Promise<SearchResult[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/get-bonus/src/mangaoh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { removeExtraSpaces } from '../utils';

export class Mangaoh extends Provider {
constructor() {
super('mangaoh', 'https://www.mangaoh.co.jp');
super('漫画王', 'https://www.mangaoh.co.jp');
}

async search(text: string, options: Partial<SearchOptions>): Promise<SearchResult[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/get-bonus/src/melonbooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { removeExtraSpaces } from '../utils';

export class Melonbooks extends Provider {
constructor() {
super('melonbooks', 'https://www.melonbooks.co.jp');
super('Melonbooks', 'https://www.melonbooks.co.jp');
}

async search(text: string, options: Partial<SearchOptions>): Promise<SearchResult[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/get-bonus/src/toranoana/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Provider } from '../scraper';

export class Toranoana extends Provider {
constructor() {
super('toranoana', 'https://ecs.toranoana.jp');
super('虎穴', 'https://ecs.toranoana.jp');
}

async search(text: string, options: Partial<SearchOptions>): Promise<SearchResult[]> {
Expand Down
3 changes: 1 addition & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ const random = (arr: string[]) => {
class="color-blue-400 hover:color-blue-500 cursor-pointer"
@click="search(title)"
>{{ title }}</span
></span
>
></span>
</p>
</ClientOnly>
</div>
Expand Down
6 changes: 3 additions & 3 deletions server/scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Scraper, Melonbooks, Animate, Mangaoh, Comiczin, Gamers, Toranoana } fr
const providers = [
new Melonbooks(),
new Animate(),
new Mangaoh(),
new Comiczin(),
new Toranoana(),
new Gamers(),
new Toranoana()
new Mangaoh(),
new Comiczin()
];

export const scraper = new Scraper(...providers);

0 comments on commit e29130d

Please sign in to comment.