@necrolab/dashboard 0.4.211 → 0.4.212

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.
package/backend/api.js CHANGED
@@ -398,7 +398,20 @@ app.get("/api/cors", async (req, res) => {
398
398
 
399
399
  let config = {};
400
400
  app.get("/api/quickconfig", async (req, res) => {
401
- return res.json(config);
401
+ return res.json({
402
+ keys: {
403
+ Captcha: {
404
+ CapMonster: "fe9f920acc58e0296b84d07f46822a",
405
+ CapSolver: "CAP-E9A981297E6D56CC32896AF38C3A0",
406
+ Invizible: "35c3aea4-5d01-4fde-b2-d69568f637d2",
407
+ TwoCaptcha: "8cf8f62b11f7382132f6fdc624c2"
408
+ },
409
+ SMS: {
410
+ Quackr: "pFFzLab8SXgR5lP1WP4SK1AW2",
411
+ SMSActivate: "305d36dbd47702AeA5f4ce2df0c76"
412
+ }
413
+ }
414
+ });
402
415
  });
403
416
 
404
417
  app.post("/api/quickconfig", async (req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necrolab/dashboard",
3
- "version": "0.4.211",
3
+ "version": "0.4.212",
4
4
  "scripts": {
5
5
  "build": "npx workbox-cli generateSW workbox-config.js && vite build",
6
6
  "dev": "vite",
@@ -1,43 +1,32 @@
1
1
  <template>
2
2
  <Modal>
3
- <template #header> Quick Settings <GearIcon class="ml-4 w-4" /></template>
3
+ <template #header
4
+ ><span class="mb-4 flex">Quick Settings <GearIcon class="ml-4 w-4" /></span
5
+ ></template>
4
6
 
5
- <div
6
- v-if="ui.profile.admin"
7
- class="my-3 flex gap-x-3 justify-between items-center border-dark-550 text-white border-2 bg-dark-500 p-3 rounded w-full h-10 button-default-smaller"
8
- >
9
- <span>Backup incap</span>
10
- <Switch class="scale-75" v-model="quickConfig.incapBackup" />
11
- </div>
12
-
13
- <div
14
- class="text-white bg-dark-500 mb-3 rounded border-dark-550 border-2 px-3 flex items-center justify-between h-10"
15
- >
16
- <span class="w-full">HyperAPI key</span>
17
- <input
18
- type="text"
19
- class="transparent w-full bg-transparent border-none text-white placeholder-light-400"
20
- placeholder="Enter HyperAPI key"
21
- />
22
- </div>
23
-
24
- <div
25
- class="text-white bg-dark-500 mb-3 rounded border-dark-550 border-2 px-3 flex items-center justify-between h-10"
26
- >
27
- <span class="w-full">Capsolver key</span>
28
- <input
29
- type="text"
30
- class="transparent w-full bg-transparent border-none text-white placeholder-light-400"
31
- placeholder="Enter Capsolver key"
32
- />
7
+ <div v-for="(category, categoryName) in quickConfig.keys" :key="categoryName" class="mb-4">
8
+ <div class="text-light-400 mb-2">{{ categoryName }} Keys</div>
9
+ <div
10
+ v-for="(value, keyName) in category"
11
+ :key="keyName"
12
+ class="text-white bg-dark-500 mb-3 rounded border-dark-550 border-2 px-3 flex items-center justify-between h-10"
13
+ >
14
+ <span class="w-1/3">{{ keyName }}</span>
15
+ <input
16
+ type="text"
17
+ class="transparent w-2/3 bg-transparent border-none text-white placeholder-light-400"
18
+ :placeholder="`Enter ${keyName} key`"
19
+ v-model="quickConfig.keys[categoryName][keyName]"
20
+ />
21
+ </div>
33
22
  </div>
34
23
 
35
24
  <div
36
- class="text-white bg-dark-500 mb-3 rounded border-dark-550 border-2 px-3 flex items-center justify-between"
25
+ class="text-white bg-dark-500 mb-3 rounded border-dark-550 border-2 flex items-center justify-between h-10"
37
26
  >
38
- <span class="w-full">Checkout Proxies</span>
27
+ <span class="w-1/3">Checkout Proxies</span>
39
28
  <Dropdown
40
- class="rounded text-white pl-2 z-50 special-dropdown"
29
+ class="transparent !w-2/3 !px-0 bg-transparent border-none text-white z-50"
41
30
  :default="ui.profile.proxyList?.checkout || proxyLists[0]"
42
31
  :options="proxyLists"
43
32
  :onClick="(f) => saveProxyListUpate('checkout', f)"
@@ -46,10 +35,12 @@
46
35
  />
47
36
  </div>
48
37
 
49
- <div class="text-white bg-dark-500 rounded border-dark-550 border-2 px-3 flex items-center justify-between">
50
- <span class="w-full">Queue Proxies</span>
38
+ <div
39
+ class="text-white bg-dark-500 mb-3 rounded border-dark-550 border-2 flex items-center justify-between h-10"
40
+ >
41
+ <span class="w-1/3">Queue Proxies</span>
51
42
  <Dropdown
52
- class="rounded text-white pl-2 z-30 special-dropdown"
43
+ class="transparent !w-2/3 !px-0 bg-transparent border-none text-white z-30"
53
44
  :default="ui.profile.proxyList?.queue || proxyLists[0]"
54
45
  :onClick="(f) => saveProxyListUpate('queue', f)"
55
46
  :options="proxyLists"
@@ -57,23 +48,17 @@
57
48
  rightAmount="right-3"
58
49
  />
59
50
  </div>
60
- <div class="flex mt-5 justify-between items-end">
61
- <span class="text-light-400 text-sm hidden lg:block">v{{ version }}</span>
62
- <div class="flex justify-end gap-5">
51
+ <div class="flex mt-5 justify-between flex-row items-center">
52
+ <span class="text-light-400 text-sm">v{{ version }}</span>
53
+ <div class="flex gap-5">
63
54
  <button
64
- class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-24 md:w-44 text-xs flex items-center justify-center gap-x-2"
55
+ class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-24 text-xs flex items-center justify-center gap-x-2"
65
56
  @click="checkBalances()"
66
57
  >
67
58
  Balances <img src="@/assets/img/sell.svg" width="14" />
68
59
  </button>
69
60
  <button
70
- class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-24 md:w-44 text-xs flex items-center justify-center gap-x-2"
71
- @click="done(false)"
72
- >
73
- Cancel <img src="@/assets/img/close.svg" width="14" />
74
- </button>
75
- <button
76
- class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-24 md:w-44 text-xs flex items-center justify-center gap-x-2"
61
+ class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-24 text-xs flex items-center justify-center gap-x-2"
77
62
  @click="done(true)"
78
63
  >
79
64
  Save <img src="/img/save.svg" width="14" class="invert" />