diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..c7be0775 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "bun" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a9817d0d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +# Reference: +# https://bun.com/docs/test#how-to-install-bun-in-a-github-actions-workflow +name: test + +on: + - push + - pull_request + +permissions: + contents: read + +jobs: + build: + name: build-app + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Install bun + uses: oven-sh/setup-bun@v2 + - name: Install dependencies + run: bun install + - name: Audit Formatting + run: bun run check + - name: Run tests + run: bun test diff --git a/arctracker-ui/en.json b/arctracker-ui/en.json index 9d29d635..21f383a0 100644 --- a/arctracker-ui/en.json +++ b/arctracker-ui/en.json @@ -2666,38 +2666,138 @@ "closeCipher": "Close", "sendMessage": "Send message", "tools": { - "searchItems": { "active": "Scanning item database...", "done": "Scanned item database" }, - "getItem": { "active": "Pulling item data...", "done": "Pulled item data" }, - "getItemDropLocations": { "active": "Analyzing drop locations...", "done": "Analyzed drop locations" }, - "searchQuests": { "active": "Scanning quest records...", "done": "Scanned quest records" }, - "getQuest": { "active": "Pulling quest data...", "done": "Pulled quest data" }, - "getHideoutModules": { "active": "Checking hideout modules...", "done": "Checked hideout modules" }, - "getUserQuestProgress": { "active": "Checking quest progress...", "done": "Checked quest progress" }, - "getUserHideoutProgress": { "active": "Checking hideout progress...", "done": "Checked hideout progress" }, - "getUserNeededItems": { "active": "Calculating needed items...", "done": "Calculated needed items" }, - "getUserStash": { "active": "Accessing stash records...", "done": "Accessed stash" }, - "getUserLoadout": { "active": "Pulling loadout config...", "done": "Pulled loadout" }, - "checkStashForItem": { "active": "Scanning stash...", "done": "Scanned stash" }, - "getRaidHistory": { "active": "Pulling raid logs...", "done": "Pulled raid logs" }, - "getRaidStats": { "active": "Crunching raid data...", "done": "Crunched raid data" }, - "getPlayerStats": { "active": "Pulling player metrics...", "done": "Pulled player metrics" }, - "getWeaponKills": { "active": "Pulling weapon data...", "done": "Pulled weapon data" }, - "getWeaponDamage": { "active": "Analyzing weapon damage...", "done": "Analyzed weapon damage" }, - "getItemDropStats": { "active": "Analyzing drop rates...", "done": "Analyzed drop rates" }, - "getItemFarmingContext": { "active": "Analyzing farming context...", "done": "Analyzed farming context" }, - "findBestFarmingMaps": { "active": "Optimizing farming routes...", "done": "Optimized farming routes" }, - "getMapEvents": { "active": "Checking map events...", "done": "Checked map events" }, - "createChart": { "active": "Generating visual...", "done": "Generated visual" }, - "searchCraftableItems": { "active": "Searching recipes...", "done": "Searched recipes" }, - "searchSkillNodes": { "active": "Searching skill tree...", "done": "Searched skill tree" }, - "getSkillNode": { "active": "Loading skill details...", "done": "Loaded skill details" }, - "getProjects": { "active": "Loading projects...", "done": "Loaded projects" }, - "getUserLists": { "active": "Loading your lists...", "done": "Loaded your lists" }, - "getListItems": { "active": "Loading list items...", "done": "Loaded list items" }, - "addItemToList": { "active": "Adding to list...", "done": "Added to list", "denied": "Cancelled" }, - "removeItemFromList": { "active": "Removing from list...", "done": "Removed from list", "denied": "Cancelled" }, - "createList": { "active": "Creating list...", "done": "Created list", "denied": "Cancelled" }, - "deleteList": { "active": "Deleting list...", "done": "Deleted list", "denied": "Cancelled" }, + "searchItems": { + "active": "Scanning item database...", + "done": "Scanned item database" + }, + "getItem": { + "active": "Pulling item data...", + "done": "Pulled item data" + }, + "getItemDropLocations": { + "active": "Analyzing drop locations...", + "done": "Analyzed drop locations" + }, + "searchQuests": { + "active": "Scanning quest records...", + "done": "Scanned quest records" + }, + "getQuest": { + "active": "Pulling quest data...", + "done": "Pulled quest data" + }, + "getHideoutModules": { + "active": "Checking hideout modules...", + "done": "Checked hideout modules" + }, + "getUserQuestProgress": { + "active": "Checking quest progress...", + "done": "Checked quest progress" + }, + "getUserHideoutProgress": { + "active": "Checking hideout progress...", + "done": "Checked hideout progress" + }, + "getUserNeededItems": { + "active": "Calculating needed items...", + "done": "Calculated needed items" + }, + "getUserStash": { + "active": "Accessing stash records...", + "done": "Accessed stash" + }, + "getUserLoadout": { + "active": "Pulling loadout config...", + "done": "Pulled loadout" + }, + "checkStashForItem": { + "active": "Scanning stash...", + "done": "Scanned stash" + }, + "getRaidHistory": { + "active": "Pulling raid logs...", + "done": "Pulled raid logs" + }, + "getRaidStats": { + "active": "Crunching raid data...", + "done": "Crunched raid data" + }, + "getPlayerStats": { + "active": "Pulling player metrics...", + "done": "Pulled player metrics" + }, + "getWeaponKills": { + "active": "Pulling weapon data...", + "done": "Pulled weapon data" + }, + "getWeaponDamage": { + "active": "Analyzing weapon damage...", + "done": "Analyzed weapon damage" + }, + "getItemDropStats": { + "active": "Analyzing drop rates...", + "done": "Analyzed drop rates" + }, + "getItemFarmingContext": { + "active": "Analyzing farming context...", + "done": "Analyzed farming context" + }, + "findBestFarmingMaps": { + "active": "Optimizing farming routes...", + "done": "Optimized farming routes" + }, + "getMapEvents": { + "active": "Checking map events...", + "done": "Checked map events" + }, + "createChart": { + "active": "Generating visual...", + "done": "Generated visual" + }, + "searchCraftableItems": { + "active": "Searching recipes...", + "done": "Searched recipes" + }, + "searchSkillNodes": { + "active": "Searching skill tree...", + "done": "Searched skill tree" + }, + "getSkillNode": { + "active": "Loading skill details...", + "done": "Loaded skill details" + }, + "getProjects": { + "active": "Loading projects...", + "done": "Loaded projects" + }, + "getUserLists": { + "active": "Loading your lists...", + "done": "Loaded your lists" + }, + "getListItems": { + "active": "Loading list items...", + "done": "Loaded list items" + }, + "addItemToList": { + "active": "Adding to list...", + "done": "Added to list", + "denied": "Cancelled" + }, + "removeItemFromList": { + "active": "Removing from list...", + "done": "Removed from list", + "denied": "Cancelled" + }, + "createList": { + "active": "Creating list...", + "done": "Created list", + "denied": "Cancelled" + }, + "deleteList": { + "active": "Deleting list...", + "done": "Deleted list", + "denied": "Cancelled" + }, "fallbackActive": "Using {toolName}...", "fallbackDone": "Used {toolName}", "fallbackDenied": "Cancelled {toolName}" diff --git a/test/prettier.config.test.js b/test/prettier.config.test.js new file mode 100644 index 00000000..fc25f9a2 --- /dev/null +++ b/test/prettier.config.test.js @@ -0,0 +1,10 @@ +import config from "../prettier.config.js"; +import { test, expect } from "bun:test"; + +test("Use spaces instead of tabs", () => { + expect(config.useTabs).toBe(false); +}); + +test("Use two spaces for a tab", () => { + expect(config.tabWidth).toBe(2); +});