Skip to content

Commit dc2f10c

Browse files
committed
Refactor: Prevented unintended constants changes
1 parent f973ee4 commit dc2f10c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/recipes/hanayama_huzzles/HanayamaHuzzlesRecipe.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import { RecipeMarker } from '../helpers/RecipeMarker';
1010
import { HanayamaHuzzle } from './HanayamaHuzzle';
1111

1212
export class HanayamaHuzzlesRecipe implements Recipe {
13-
static NAME = 'Hanayama Huzzles';
14-
static WEBPAGE = 'https://hanayama-toys.com/product-category/puzzles/huzzle';
13+
static readonly NAME = 'Hanayama Huzzles';
14+
static readonly WEBPAGE = 'https://hanayama-toys.com/product-category/puzzles/huzzle';
1515

16-
static #HEADERS = ['Level', 'Index', 'Name', 'Picture', 'Status'];
17-
static #SCRAPE_URLS = [
16+
static readonly #HEADERS = ['Level', 'Index', 'Name', 'Picture', 'Status'];
17+
static readonly #SCRAPE_URLS = [
1818
'https://hanayama-toys.com/product-category/puzzles/huzzle/level-1-fun',
1919
'https://hanayama-toys.com/product-category/puzzles/huzzle/level-2-easy',
2020
'https://hanayama-toys.com/product-category/puzzles/huzzle/level-3-normal',

src/recipes/iq_puzzles/IQPuzzlesRecipe.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import { RecipeMarker } from '../helpers/RecipeMarker';
1010
import { IQPuzzle } from './IQPuzzle';
1111

1212
export class IQPuzzlesRecipe implements Recipe {
13-
static NAME = 'IQ Puzzles';
14-
static WEBPAGE = 'https://www.iqpuzzle.com';
13+
static readonly NAME = 'IQ Puzzles';
14+
static readonly WEBPAGE = 'https://www.iqpuzzle.com';
1515

16-
static #HEADERS = ['Name', 'Picture', 'Status'];
17-
static #SCRAPE_URL = 'https://www.iqpuzzle.com';
16+
static readonly #HEADERS = ['Name', 'Picture', 'Status'];
17+
static readonly #SCRAPE_URL = 'https://www.iqpuzzle.com';
1818

1919
#marker = new RecipeMarker(IQPuzzlesRecipe.NAME);
2020

src/settings/SettingsManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IQPuzzlesRecipeSettings } from 'src/recipes/iq_puzzles/IQPuzzlesRecipeS
44
import { RecipesPluginSettings } from './data/RecipesPluginSettings';
55

66
export class SettingsManager {
7-
static #DEFAULT_SETTINGS: Partial<RecipesPluginSettings> = {
7+
static readonly #DEFAULT_SETTINGS: Partial<RecipesPluginSettings> = {
88
hanayamaHuzzles: new HanayamaHuzzlesRecipeSettings(),
99
iqPuzzles: new IQPuzzlesRecipeSettings()
1010
};

0 commit comments

Comments
 (0)