@necrolab/dashboard 0.4.221 → 0.5.2

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.
Files changed (141) hide show
  1. package/.prettierrc +27 -1
  2. package/.vscode/extensions.json +1 -1
  3. package/README.md +64 -2
  4. package/artwork/image.png +0 -0
  5. package/backend/api.js +26 -24
  6. package/backend/auth.js +2 -2
  7. package/backend/batching.js +1 -1
  8. package/backend/endpoints.js +8 -11
  9. package/backend/index.js +2 -2
  10. package/backend/mock-data.js +27 -36
  11. package/backend/mock-src/classes/logger.js +5 -7
  12. package/backend/mock-src/classes/utils.js +3 -2
  13. package/backend/mock-src/ticketmaster.js +4 -4
  14. package/backend/validator.js +2 -2
  15. package/config/configs.json +0 -1
  16. package/dev-server.js +134 -0
  17. package/exit +209 -0
  18. package/index.html +80 -8
  19. package/index.js +1 -1
  20. package/jsconfig.json +16 -0
  21. package/package.json +39 -25
  22. package/postcss.config.js +1 -1
  23. package/postinstall.js +124 -20
  24. package/public/android-chrome-192x192.png +0 -0
  25. package/public/android-chrome-512x512.png +0 -0
  26. package/public/apple-touch-icon.png +0 -0
  27. package/public/favicon-16x16.png +0 -0
  28. package/public/favicon-32x32.png +0 -0
  29. package/public/favicon.ico +0 -0
  30. package/public/img/logo_trans.png +0 -0
  31. package/public/img/necro_logo.png +0 -0
  32. package/public/manifest.json +16 -10
  33. package/public/reconnect-logo.png +0 -0
  34. package/run +176 -9
  35. package/src/App.vue +498 -85
  36. package/src/assets/css/base/reset.scss +43 -0
  37. package/src/assets/css/base/scroll.scss +114 -0
  38. package/src/assets/css/base/typography.scss +37 -0
  39. package/src/assets/css/components/buttons.scss +216 -0
  40. package/src/assets/css/components/forms.scss +221 -0
  41. package/src/assets/css/components/modals.scss +13 -0
  42. package/src/assets/css/components/tables.scss +27 -0
  43. package/src/assets/css/components/toasts.scss +100 -0
  44. package/src/assets/css/main.scss +202 -122
  45. package/src/assets/img/background.svg +2 -2
  46. package/src/assets/img/background.svg.backup +11 -0
  47. package/src/assets/img/logo_trans.png +0 -0
  48. package/src/components/Auth/LoginForm.vue +95 -11
  49. package/src/components/Editors/Account/Account.vue +116 -40
  50. package/src/components/Editors/Account/AccountCreator.vue +88 -39
  51. package/src/components/Editors/Account/AccountView.vue +102 -34
  52. package/src/components/Editors/Account/CreateAccount.vue +80 -32
  53. package/src/components/Editors/Profile/CreateProfile.vue +269 -83
  54. package/src/components/Editors/Profile/Profile.vue +132 -47
  55. package/src/components/Editors/Profile/ProfileCountryChooser.vue +82 -20
  56. package/src/components/Editors/Profile/ProfileView.vue +89 -32
  57. package/src/components/Editors/TagLabel.vue +67 -6
  58. package/src/components/Editors/TagToggle.vue +7 -2
  59. package/src/components/Filter/Filter.vue +288 -71
  60. package/src/components/Filter/FilterPreview.vue +202 -31
  61. package/src/components/Filter/PriceSortToggle.vue +76 -6
  62. package/src/components/Table/Header.vue +1 -1
  63. package/src/components/Table/Row.vue +1 -1
  64. package/src/components/Table/Table.vue +19 -2
  65. package/src/components/Tasks/CheckStock.vue +6 -8
  66. package/src/components/Tasks/Controls/DesktopControls.vue +27 -17
  67. package/src/components/Tasks/Controls/MobileControls.vue +8 -45
  68. package/src/components/Tasks/CreateTaskAXS.vue +80 -72
  69. package/src/components/Tasks/CreateTaskTM.vue +95 -141
  70. package/src/components/Tasks/MassEdit.vue +4 -6
  71. package/src/components/Tasks/QuickSettings.vue +199 -30
  72. package/src/components/Tasks/ScrapeVenue.vue +5 -6
  73. package/src/components/Tasks/Stats.vue +50 -24
  74. package/src/components/Tasks/Task.vue +384 -179
  75. package/src/components/Tasks/TaskLabel.vue +2 -2
  76. package/src/components/Tasks/TaskView.vue +136 -48
  77. package/src/components/Tasks/Utilities.vue +25 -10
  78. package/src/components/Tasks/ViewTask.vue +321 -0
  79. package/src/components/icons/Bag.vue +1 -1
  80. package/src/components/icons/Check.vue +5 -0
  81. package/src/components/icons/Close.vue +21 -0
  82. package/src/components/icons/CloseX.vue +5 -0
  83. package/src/components/icons/Eye.vue +6 -0
  84. package/src/components/icons/Key.vue +21 -0
  85. package/src/components/icons/Loyalty.vue +1 -1
  86. package/src/components/icons/Mail.vue +2 -2
  87. package/src/components/icons/Pencil.vue +21 -0
  88. package/src/components/icons/Play.vue +2 -2
  89. package/src/components/icons/Profile.vue +18 -0
  90. package/src/components/icons/Reload.vue +4 -5
  91. package/src/components/icons/Sandclock.vue +2 -2
  92. package/src/components/icons/Sell.vue +21 -0
  93. package/src/components/icons/Spinner.vue +42 -0
  94. package/src/components/icons/SquareCheck.vue +18 -0
  95. package/src/components/icons/SquareUncheck.vue +18 -0
  96. package/src/components/icons/Stadium.vue +1 -1
  97. package/src/components/icons/Wildcard.vue +18 -0
  98. package/src/components/icons/index.js +26 -1
  99. package/src/components/ui/Modal.vue +107 -13
  100. package/src/components/ui/Navbar.vue +175 -40
  101. package/src/components/ui/ReconnectIndicator.vue +351 -55
  102. package/src/components/ui/Splash.vue +5 -35
  103. package/src/components/ui/controls/CountryChooser.vue +200 -62
  104. package/src/components/ui/controls/atomic/Checkbox.vue +119 -10
  105. package/src/components/ui/controls/atomic/Dropdown.vue +216 -39
  106. package/src/components/ui/controls/atomic/LoadingButton.vue +45 -0
  107. package/src/components/ui/controls/atomic/MultiDropdown.vue +300 -37
  108. package/src/components/ui/controls/atomic/Switch.vue +53 -25
  109. package/src/composables/useClickOutside.js +21 -0
  110. package/src/composables/useDropdownPosition.js +174 -0
  111. package/src/libs/Filter.js +60 -24
  112. package/src/registerServiceWorker.js +1 -1
  113. package/src/stores/connection.js +4 -4
  114. package/src/stores/sampleData.js +172 -199
  115. package/src/stores/ui.js +55 -20
  116. package/src/stores/utils.js +30 -4
  117. package/src/types/index.js +41 -0
  118. package/src/utils/debug.js +1 -0
  119. package/src/views/Accounts.vue +116 -50
  120. package/src/views/Console.vue +394 -77
  121. package/src/views/Editor.vue +1176 -123
  122. package/src/views/FilterBuilder.vue +528 -250
  123. package/src/views/Login.vue +75 -14
  124. package/src/views/Profiles.vue +119 -34
  125. package/src/views/Tasks.vue +266 -98
  126. package/static/offline.html +192 -50
  127. package/switch-branch.sh +41 -0
  128. package/tailwind.config.js +119 -27
  129. package/vite.config.js +73 -16
  130. package/workbox-config.cjs +63 -0
  131. package/ICONS.md +0 -21
  132. package/public/img/background.svg +0 -14
  133. package/public/img/logo.png +0 -0
  134. package/public/img/logo_icon.png +0 -0
  135. package/public/img/logo_icon_2.png +0 -0
  136. package/src/assets/css/_input.scss +0 -143
  137. package/src/assets/img/logo.png +0 -0
  138. package/src/assets/img/logo_icon.png +0 -0
  139. package/src/assets/img/logo_icon_2.png +0 -0
  140. package/vue.config.js +0 -32
  141. package/workbox-config.js +0 -7
package/run CHANGED
@@ -1,10 +1,177 @@
1
+ #!/bin/bash
1
2
 
2
- if [[ $1 == 'build' ]]; then
3
- echo "Building files..."
4
- cd src/
5
- npm run build
6
- cd ..
7
- echo "Done!"
8
- fi
9
- echo "Starting server..."
10
- node .
3
+ # 🎯 Necro Dashboard Runner - Fire Edition 🔥
4
+ # Enhanced runner script with style and robust functionality
5
+
6
+ # Colors for that fire output 🌈
7
+ RED='\033[0;31m'
8
+ GREEN='\033[0;32m'
9
+ YELLOW='\033[1;33m'
10
+ BLUE='\033[0;34m'
11
+ PURPLE='\033[0;35m'
12
+ CYAN='\033[0;36m'
13
+ WHITE='\033[1;37m'
14
+ BOLD='\033[1m'
15
+ NC='\033[0m' # No Color
16
+
17
+ # Fire emojis for maximum style
18
+ FIRE="🔥"
19
+ ROCKET="🚀"
20
+ GEAR="⚙️"
21
+ CHECK="✅"
22
+ CROSS="❌"
23
+ LIGHTNING="⚡"
24
+
25
+ # Banner function
26
+ show_banner() {
27
+ echo -e "${PURPLE}${BOLD}"
28
+ echo " ███╗ ██╗███████╗ ██████╗██████╗ ██████╗ "
29
+ echo " ████╗ ██║██╔════╝██╔════╝██╔══██╗██╔═══██╗"
30
+ echo " ██╔██╗ ██║█████╗ ██║ ██████╔╝██║ ██║"
31
+ echo " ██║╚██╗██║██╔══╝ ██║ ██╔══██╗██║ ██║"
32
+ echo " ██║ ╚████║███████╗╚██████╗██║ ██║╚██████╔╝"
33
+ echo " ╚═╝ ╚═══╝╚══════╝ ╚═════╝╚═╝ ╚═╝ ╚═════╝ "
34
+ echo -e "${NC}"
35
+ echo -e "${CYAN}${BOLD}Dashboard Runner ${FIRE} v2.0${NC}"
36
+ echo -e "${WHITE}────────────────────────────────────────────${NC}"
37
+ }
38
+
39
+ # Spinner function for loading animations
40
+ spinner() {
41
+ local pid=$1
42
+ local delay=0.1
43
+ local spinstr='⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏'
44
+ while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
45
+ local temp=${spinstr#?}
46
+ printf " [%c] " "$spinstr"
47
+ local spinstr=$temp${spinstr%"$temp"}
48
+ sleep $delay
49
+ printf "\b\b\b\b\b\b"
50
+ done
51
+ printf " \b\b\b\b"
52
+ }
53
+
54
+ # Success message
55
+ success() {
56
+ echo -e "${GREEN}${BOLD}${CHECK} $1${NC}"
57
+ }
58
+
59
+ # Error message
60
+ error() {
61
+ echo -e "${RED}${BOLD}${CROSS} $1${NC}"
62
+ }
63
+
64
+ # Info message
65
+ info() {
66
+ echo -e "${CYAN}${BOLD}${LIGHTNING} $1${NC}"
67
+ }
68
+
69
+ # Warning message
70
+ warn() {
71
+ echo -e "${YELLOW}${BOLD}⚠️ $1${NC}"
72
+ }
73
+
74
+ # Check if npm is available
75
+ check_npm() {
76
+ if ! command -v npm &> /dev/null; then
77
+ error "npm is not installed or not in PATH"
78
+ exit 1
79
+ fi
80
+ }
81
+
82
+ # Check if node is available
83
+ check_node() {
84
+ if ! command -v node &> /dev/null; then
85
+ error "Node.js is not installed or not in PATH"
86
+ exit 1
87
+ fi
88
+ }
89
+
90
+ # Build function with proper error handling
91
+ build_project() {
92
+ info "Initiating build sequence ${GEAR}"
93
+
94
+ # Check dependencies
95
+ check_npm
96
+
97
+ echo -e "${YELLOW}${BOLD}Building production files...${NC}"
98
+
99
+ # Run build with error handling
100
+ if npm run build; then
101
+ success "Build completed successfully ${ROCKET}"
102
+ return 0
103
+ else
104
+ error "Build failed! Check the output above for details."
105
+ exit 1
106
+ fi
107
+ }
108
+
109
+ # Start server function
110
+ start_server() {
111
+ info "Starting Necro Dashboard server ${ROCKET}"
112
+
113
+ # Check if Node.js is available
114
+ check_node
115
+
116
+ # Check if index.js exists
117
+ if [[ ! -f "index.js" ]]; then
118
+ error "index.js not found in current directory"
119
+ exit 1
120
+ fi
121
+
122
+ echo -e "${GREEN}${BOLD}Server starting...${NC}"
123
+ echo -e "${CYAN}Press ${WHITE}Ctrl+C${CYAN} to stop the server${NC}"
124
+ echo -e "${WHITE}────────────────────────────────────────────${NC}"
125
+
126
+ # Start the server
127
+ node index.js
128
+ }
129
+
130
+ # Help function
131
+ show_help() {
132
+ echo -e "${WHITE}${BOLD}Usage:${NC}"
133
+ echo -e " ${CYAN}./run${NC} ${WHITE}Start the server${NC}"
134
+ echo -e " ${CYAN}./run build${NC} ${WHITE}Build project then start server${NC}"
135
+ echo -e " ${CYAN}./run help${NC} ${WHITE}Show this help message${NC}"
136
+ echo ""
137
+ echo -e "${WHITE}${BOLD}Examples:${NC}"
138
+ echo -e " ${YELLOW}./run${NC} ${GREEN}# Quick start for development${NC}"
139
+ echo -e " ${YELLOW}./run build${NC} ${GREEN}# Production build + start${NC}"
140
+ echo ""
141
+ echo -e "${PURPLE}Made with ${FIRE} for ticket automation${NC}"
142
+ }
143
+
144
+ # Main execution flow
145
+ main() {
146
+ # Clear screen for clean output
147
+ clear
148
+
149
+ # Show the fire banner
150
+ show_banner
151
+
152
+ case "${1:-}" in
153
+ "build")
154
+ build_project
155
+ echo ""
156
+ start_server
157
+ ;;
158
+ "help"|"-h"|"--help")
159
+ show_help
160
+ ;;
161
+ "")
162
+ start_server
163
+ ;;
164
+ *)
165
+ warn "Unknown command: $1"
166
+ echo ""
167
+ show_help
168
+ exit 1
169
+ ;;
170
+ esac
171
+ }
172
+
173
+ # Error handling for script interruption
174
+ trap 'echo -e "\n${YELLOW}${BOLD}${LIGHTNING} Server stopped${NC}"; exit 0' INT
175
+
176
+ # Run the main function
177
+ main "$@"