Skip to content

Commit

Permalink
🔧 Update setPlayerInfo and StreamingMode.vue
Browse files Browse the repository at this point in the history
- In setPlayerInfo, changed the way playerStatsEl is accessed.
- In StreamingMode.vue, added a fallback value for player.sets.

📦 Update package.json dependencies

- Updated versions of various dependencies.

🔊 Update soundsStorage.ts

- Updated sound URLs for T, T15, T16, T17, T18, T19, T20, bull.
- Updated miss sound URLs.
- Updated bot and botOutside sound URLs.
- Updated cricketHit and cricketMiss sound URLs.
  • Loading branch information
creazy231 committed Jul 1, 2024
1 parent 6fb3780 commit 30988f7
Show file tree
Hide file tree
Showing 9 changed files with 9,894 additions and 7,018 deletions.
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 28;
DEVELOPMENT_TEAM = BXYGXAJ99T;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
Expand All @@ -708,7 +708,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -731,7 +731,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 28;
DEVELOPMENT_TEAM = BXYGXAJ99T;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
Expand All @@ -747,7 +747,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand Down Expand Up @@ -836,7 +836,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Tools for Autodarts.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 28;
DEVELOPMENT_TEAM = BXYGXAJ99T;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -850,7 +850,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -873,7 +873,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Tools for Autodarts.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 27;
CURRENT_PROJECT_VERSION = 28;
DEVELOPMENT_TEAM = BXYGXAJ99T;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -887,7 +887,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion entrypoints/match.content/StreamingMode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
index === 0 ? 'border-t-2' : 'border-t-0',
)"
>
{{ player.sets }}
{{ player.sets || 0 }}
</div>
<div
:class="twMerge(
Expand Down
2 changes: 1 addition & 1 deletion entrypoints/match.content/setPlayerInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function setPlayerInfo() {
const matchStatus: IMatchStatus = await AutodartsToolsMatchStatus.getValue();

const playerInfo: IPlayerInfo[] = [ ...document.querySelectorAll(".ad-ext-player") ].map((playerCardEl) => {
const playerStatsEl = playerCardEl.nextElementSibling?.children[0] as HTMLElement;
const playerStatsEl = playerCardEl?.children[0] as HTMLElement;

const matchhasLegs = playerStatsEl.children[0].children.length > 0;
const matchhasSets = playerStatsEl.children[0].children.length > 1;
Expand Down
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "autodarts-tools",
"description": "Autodarts Tools enhances the gaming experience on autodarts.io",
"version": "1.4.1",
"version": "1.4.2",
"type": "module",
"author": {
"name": "Tobias Thiele",
Expand All @@ -20,49 +20,49 @@
"postinstall": "wxt prepare"
},
"dependencies": {
"@floating-ui/dom": "^1.6.1",
"@headlessui/vue": "^1.7.19",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^10.9.0",
"@floating-ui/dom": "^1.6.7",
"@headlessui/vue": "^1.7.22",
"@vueuse/components": "^10.11.0",
"@vueuse/core": "^10.11.0",
"lodash": "^4.17.21",
"mitt": "^3.0.1",
"radix-vue": "^1.5.3",
"vue": "^3.4.13",
"vue-i18n": "^9.9.0"
"radix-vue": "^1.8.5",
"vue": "^3.4.31",
"vue-i18n": "^9.13.1"
},
"devDependencies": {
"@creazy231/eslint-config": "^1.0.14",
"@iconify/json": "^2.2.175",
"@iconify/tailwind": "^0.1.4",
"@intlify/unplugin-vue-i18n": "^2.0.0",
"@types/eslint": "^8.56.5",
"@types/lodash": "^4.17.0",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@iconify/json": "^2.2.223",
"@iconify/tailwind": "^1.1.1",
"@intlify/unplugin-vue-i18n": "^4.0.0",
"@types/eslint": "^8.56.10",
"@types/lodash": "^4.17.6",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@vitejs/plugin-vue": "^4.6.2",
"autoprefixer": "^10.4.17",
"dotenv": "^16.3.1",
"autoprefixer": "^10.4.19",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-tailwindcss": "^3.14.3",
"eslint-plugin-vue": "^9.22.0",
"eventsource-parser": "^1.1.1",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-tailwindcss": "^3.17.4",
"eslint-plugin-vue": "^9.26.0",
"eventsource-parser": "^1.1.2",
"json-stringify-pretty-compact": "^4.0.0",
"postcss": "^8.4.35",
"tailwind-merge": "^2.2.1",
"tailwindcss": "^3.4.1",
"tsx": "^4.7.1",
"typescript": "^5.4.2",
"undici": "^6.8.0",
"unplugin-auto-import": "^0.17.5",
"postcss": "^8.4.39",
"tailwind-merge": "^2.3.0",
"tailwindcss": "^3.4.4",
"tsx": "^4.16.0",
"typescript": "^5.5.2",
"undici": "^6.19.2",
"unplugin-auto-import": "^0.17.6",
"unplugin-vue-components": "^0.26.0",
"vue-eslint-parser": "^9.4.2",
"vue-tsc": "^2.0.6",
"wxt": "^0.18.2",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.0.24",
"wxt": "^0.18.10",
"zx": "^7.2.3"
}
}
30 changes: 15 additions & 15 deletions utils/soundsStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ export interface ISoundsConfig {

export const defaultSoundsConfig: ISoundsConfig = {
bust: { info: "https://www.myinstants.com/media/sounds/super-mario-dies.mp3" },
T: { info: "https://autodarts-plus.x10.mx/beep_1.mp3" },
T15: { info: "https://autodarts-plus.x10.mx/beep_1.mp3" },
T16: { info: "https://autodarts-plus.x10.mx/beep_1.mp3" },
T17: { info: "https://autodarts-plus.x10.mx/beep_2_17.wav" },
T18: { info: "https://autodarts-plus.x10.mx/beep_2_18.wav" },
T19: { info: "https://autodarts-plus.x10.mx/beep_2_19.wav" },
T20: { info: "https://autodarts-plus.x10.mx/beep_2_20.wav" },
bull: { info: "https://autodarts-plus.x10.mx/beep_2_bullseye.mp3" },
T: { info: "https://autodarts.x10.mx/beep_1.mp3" },
T15: { info: "https://autodarts.x10.mx/beep_1.mp3" },
T16: { info: "https://autodarts.x10.mx/beep_1.mp3" },
T17: { info: "https://autodarts.x10.mx/beep_2_17.wav" },
T18: { info: "https://autodarts.x10.mx/beep_2_18.wav" },
T19: { info: "https://autodarts.x10.mx/beep_2_19.wav" },
T20: { info: "https://autodarts.x10.mx/beep_2_20.wav" },
bull: { info: "https://autodarts.x10.mx/beep_2_bullseye.mp3" },
miss: [
{ info: "https://autodarts-plus.x10.mx/miss_1.mp3" },
{ info: "https://autodarts-plus.x10.mx/miss_2.mp3" },
{ info: "https://autodarts-plus.x10.mx/miss_3.mp3" },
{ info: "https://autodarts.x10.mx/miss_1.mp3" },
{ info: "https://autodarts.x10.mx/miss_2.mp3" },
{ info: "https://autodarts.x10.mx/miss_3.mp3" },
],
bot: { info: "https://autodarts-plus.x10.mx/sound_chopping-wood.mp3" },
botOutside: { info: "https://autodarts-plus.x10.mx/sound_wood-block.mp3" },
cricketHit: { info: "https://autodarts-plus.x10.mx/bonus-points.mp3" },
cricketMiss: { info: "https://autodarts-plus.x10.mx/sound_double_windart.wav" },
bot: { info: "https://autodarts.x10.mx/sound_chopping-wood.mp3" },
botOutside: { info: "https://autodarts.x10.mx/sound_wood-block.mp3" },
cricketHit: { info: "https://autodarts.x10.mx/bonus-points.mp3" },
cricketMiss: { info: "https://autodarts.x10.mx/sound_double_windart.wav" },
playerStart: { info: "" },
gameOn: { info: "" },
winner: [
Expand Down
Loading

0 comments on commit 30988f7

Please sign in to comment.