koishi-plugin-warframe 1.7.4 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,71 +1,55 @@
1
1
  :root {
2
- --color_success_text: #4d8200;
3
- --color_success_border: #4d8200;
4
- --color_rgb_success_text: 77 130 0;
5
- --color_rgb_success_border: 77 130 0;
6
- --color_auction_participant: #1c8a62;
7
- --color_auction_sell: #909090;
8
- --color_auction_own: mediumpurple;
9
- --color_auction_archiving: gray;
10
- --color_rgb_auction_archiving: 128 128 128;
11
- --color_dark_background--light: #11262b;
12
- --color_dark_border--ligth: #283235;
13
- --color_dark_background: #171e21;
14
- --color_dark_border: #283235;
15
- --color_dark_background--darker: #071013;
16
- --color_dark_border--darker: #171e21;
17
- --color_rgb_dark_background--light: 17 38 43;
18
- --color_rgb_dark_border--ligth: 40 50 53;
19
- --color_rgb_dark_background: 23 30 33;
20
- --color_rgb_dark_border: 40 50 53;
21
- --color_rgb_dark_background--darker: 7 16 19;
22
- --color_rgb_dark_border--darker: 23 30 33;
23
- --color_place_order: #b53600;
24
- --color_place_order--hover: #e64400;
25
- --color_place_order--active: #ff8f00;
26
- --color_place_order_text: #f5f5f5;
27
- --color_create_auction: #8960db;
28
- --color_create_auction_text: #f5f5f5;
29
- --color_create_auction--hover: #b08cff;
30
- --color_create_auction--active: #9d92ff;
31
- --color_input_inner_shadow: 0 0 0;
32
- --color_input_text--highlight: #19a187;
33
- --color_attribute_text: white;
34
- --color_attribute_background_first: #19a187;
35
- --color_attribute_background_second: #358576;
36
- --color_attribute_background_third: #516965;
37
- --color_attribute_background_negative: #98392d;
38
- --color_rgb_attribute_background_first: 25 161 135;
39
- --color_rgb_attribute_background_second: 53 133 118;
40
- --color_rgb_attribute_background_third: 81 105 101;
41
- --color_rgb_attribute_background_negative: 152 57 45;
42
- --color_link_dimmed: #408698;
43
- --color_link_dimmed--hover: #a3dddb;
44
- --color_link_dimmed--active: #acb8dd;
45
- --color_rgb_link_dimmed: 64 134 152;
46
- --color_rgb_link_dimmed--hover: 163 221 219;
47
- --color_rgb_link_dimmed--active: 172 184 221;
48
- --color_dark_md_code_background: black;
49
- --color_dark_md_code_text: #39a57e;
50
- --color_rgb_dark_md_code_background: 0 0 0;
51
- --color_status-offline: darkred;
52
- --color_highlight: #b53600;
53
- --color_highlight_text: #f5f5f5;
54
- --color_tooltip_background: #1b2432;
55
- --color_tooltip_border: black;
56
- --color_tooltip_text: #aab3b6;
57
- --color_rgb_tooltip_background: 27 36 50;
58
- --color_text_svg: red;
59
- --color_dark_text: #aab3b6;
60
- --color_dark_h1: #fcfdfd;
61
- --color_dark_h2: #e1e4e5;
62
- --color_dark_h3: #c5ccce;
63
- --color_dark_disclaimer: #333d40;
2
+ /* ===== Backgrounds ===== */
3
+ --wf-bg-page: #f5f0e8;
4
+ --wf-bg-card: #ffffff;
5
+ --wf-bg-subtle: #f5f5f5;
6
+ --wf-bg-tint: #fff8f0;
7
+ --wf-bg-overlay: rgba(0, 0, 0, 0.03);
8
+
9
+ /* ===== Text ===== */
10
+ --wf-text-primary: #1a1a1a;
11
+ --wf-text-body: #333333;
12
+ --wf-text-secondary: #666666;
13
+ --wf-text-muted: #888888;
14
+ --wf-text-faint: #a0a0a0;
15
+
16
+ /* ===== Borders ===== */
17
+ --wf-border: rgba(0, 0, 0, 0.08);
18
+ --wf-border-strong: rgba(0, 0, 0, 0.12);
19
+ --wf-divider: rgba(0, 0, 0, 0.1);
20
+
21
+ /* ===== Rarity ===== */
22
+ --wf-rarity-rare: #ffd700;
23
+ --wf-rarity-uncommon: #c0c0c0;
24
+ --wf-rarity-common: #cd7f32;
25
+
26
+ /* ===== Semantic accents ===== */
27
+ --wf-success: #2e7d32;
28
+ --wf-warning: #ff8c42;
29
+ --wf-danger: #e05050;
30
+ --wf-info: #0d93b8;
31
+ --wf-accent: #47b5a5;
32
+
33
+ /* ===== Currency ===== */
34
+ --wf-platinum: #0d93b8;
35
+ --wf-ducats: #a0a000;
36
+
37
+ /* ===== Shadows ===== */
38
+ --wf-shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
39
+ --wf-shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
40
+ --wf-shadow-inner: 0 2px 4px rgba(0, 0, 0, 0.04);
41
+
42
+ /* ===== Radii ===== */
43
+ --wf-radius: 8px;
44
+ --wf-radius-md: 6px;
45
+ --wf-radius-sm: 4px;
64
46
  }
65
47
 
66
48
  body {
67
- font-family: Arial, sans-serif;
49
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
68
50
  padding: 20px;
51
+ background-color: var(--wf-bg-page);
52
+ color: var(--wf-text-body);
69
53
  }
70
54
 
71
55
  * {
package/lib/index.d.ts CHANGED
@@ -137,7 +137,7 @@ declare module "warframe/types/wf/relic" {
137
137
  items: OutputRelicReward[];
138
138
  }
139
139
  export interface OutputRelicReward extends RelicReward {
140
- ducats: number;
140
+ ducats?: number;
141
141
  platinum?: number;
142
142
  }
143
143
  }
@@ -503,7 +503,7 @@ declare module "warframe/data/wfm/globalRivenAttribute" {
503
503
  }>): void;
504
504
  }
505
505
  declare module "warframe/data/wfm/globalRivenItem" {
506
- import type { RivenItem } from "warframe/types/index";
506
+ import type { AsyncCache, RivenItem } from "warframe/types/index";
507
507
  export interface GlobalRivenItemWordPrefixCandidate {
508
508
  item: RivenItem;
509
509
  normalizedName: string;
@@ -515,12 +515,18 @@ declare module "warframe/data/wfm/globalRivenItem" {
515
515
  globalRivenItemNameToSlugDict: Record<string, string>;
516
516
  globalRivenItemWordPrefixCandidates: GlobalRivenItemWordPrefixCandidate[];
517
517
  }>;
518
- export const globalRivenItemData: import("warframe").AsyncCache<{
518
+ export let globalRivenItemData: AsyncCache<{
519
519
  globalRivenItemList: RivenItem[];
520
520
  globalRivenItemDict: Record<string, RivenItem>;
521
521
  globalRivenItemNameToSlugDict: Record<string, string>;
522
522
  globalRivenItemWordPrefixCandidates: GlobalRivenItemWordPrefixCandidate[];
523
523
  }>;
524
+ export function overrideGlobalRivenItemData(cache: AsyncCache<{
525
+ globalRivenItemList: RivenItem[];
526
+ globalRivenItemDict: Record<string, RivenItem>;
527
+ globalRivenItemNameToSlugDict: Record<string, string>;
528
+ globalRivenItemWordPrefixCandidates: GlobalRivenItemWordPrefixCandidate[];
529
+ }>): void;
524
530
  }
525
531
  declare module "warframe/infrastructure/ocr-api" {
526
532
  import type { OcrAPISecret } from "warframe/types/index";
@@ -571,7 +577,9 @@ declare module "warframe/services/wf-service" {
571
577
  }): WarframeResult<RivenStatAnalyzeResult>;
572
578
  }
573
579
  declare module "warframe/data/wfm/globalDucatnator" {
574
- export const globalDucatnatorIDDict: import("warframe").AsyncCache<Record<string, import("wfm-api-client").Ducatnator> | undefined>;
580
+ import type { AsyncCache, Ducatnator } from "warframe/types/index";
581
+ export let globalDucatnatorIDDict: AsyncCache<Record<string, Ducatnator> | undefined>;
582
+ export function overrideGlobalDucatnatorIDDict(cache: AsyncCache<Record<string, Ducatnator> | undefined>): void;
575
583
  }
576
584
  declare module "warframe/data/wfm/globalItem" {
577
585
  import type { AsyncCache, ItemShort } from "warframe/types/index";