Skip to content

Commit d6f12ac

Browse files
committed
Add crud for election rounds
1 parent a8d59bf commit d6f12ac

File tree

31 files changed

+5870
-3899
lines changed

31 files changed

+5870
-3899
lines changed

api/src/Vote.Monitor.Api.Feature.ElectionRound/Create/Validator.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,5 @@ public Validator()
1818
.MinimumLength(3)
1919
.MaximumLength(256)
2020
.NotEmpty();
21-
22-
RuleFor(x => x.StartDate)
23-
.Must(startDate =>
24-
{
25-
var timeProvider = Resolve<ITimeProvider>();
26-
return startDate > timeProvider.UtcNowDate;
27-
})
28-
.WithMessage("Election start date must be in the future.");
2921
}
3022
}

web/package.json

Lines changed: 94 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -17,127 +17,128 @@
1717
"commitizen": "exec < /dev/tty && git cz --hook || true"
1818
},
1919
"dependencies": {
20-
"@hookform/resolvers": "^3.1.1",
20+
"@hookform/resolvers": "^3.10.0",
2121
"@mui/base": "5.0.0-beta.40",
22-
"@radix-ui/react-alert-dialog": "^1.0.5",
23-
"@radix-ui/react-checkbox": "^1.0.4",
24-
"@radix-ui/react-collapsible": "^1.0.3",
25-
"@radix-ui/react-dialog": "^1.0.5",
26-
"@radix-ui/react-dropdown-menu": "^2.0.6",
27-
"@radix-ui/react-icons": "^1.3.0",
28-
"@radix-ui/react-label": "^2.0.2",
29-
"@radix-ui/react-popover": "^1.0.7",
30-
"@radix-ui/react-progress": "^1.0.3",
31-
"@radix-ui/react-radio-group": "^1.1.3",
32-
"@radix-ui/react-scroll-area": "^1.1.0",
33-
"@radix-ui/react-select": "^2.0.0",
34-
"@radix-ui/react-separator": "^1.0.3",
35-
"@radix-ui/react-slider": "^1.2.1",
36-
"@radix-ui/react-slot": "^1.0.2",
37-
"@radix-ui/react-switch": "^1.0.3",
38-
"@radix-ui/react-tabs": "^1.0.4",
39-
"@radix-ui/react-toast": "^1.1.5",
40-
"@radix-ui/react-toggle": "^1.1.0",
41-
"@radix-ui/react-tooltip": "^1.0.7",
42-
"@tailwindcss/forms": "^0.5.7",
43-
"@tanstack/react-query": "^5.28.6",
44-
"@tanstack/react-query-devtools": "^5.28.6",
45-
"@tanstack/react-router": "^1.22.0",
46-
"@tanstack/react-table": "^8.9.3",
47-
"@tiptap/core": "^2.8.0",
48-
"@tiptap/extension-bold": "^2.8.0",
49-
"@tiptap/extension-character-count": "^2.8.0",
50-
"@tiptap/extension-document": "^2.8.0",
51-
"@tiptap/extension-heading": "^2.8.0",
52-
"@tiptap/extension-link": "^2.8.0",
53-
"@tiptap/extension-paragraph": "^2.8.0",
54-
"@tiptap/extension-placeholder": "^2.8.0",
55-
"@tiptap/extension-text": "^2.8.0",
56-
"@tiptap/extension-text-style": "^2.8.0",
57-
"@tiptap/extension-typography": "^2.8.0",
58-
"@tiptap/pm": "^2.8.0",
59-
"@tiptap/react": "^2.8.0",
60-
"@tiptap/starter-kit": "^2.8.0",
61-
"@types/lodash": "^4.17.7",
22+
"@radix-ui/react-alert-dialog": "^1.1.4",
23+
"@radix-ui/react-checkbox": "^1.1.3",
24+
"@radix-ui/react-collapsible": "^1.1.2",
25+
"@radix-ui/react-dialog": "^1.1.4",
26+
"@radix-ui/react-dropdown-menu": "^2.1.4",
27+
"@radix-ui/react-icons": "^1.3.2",
28+
"@radix-ui/react-label": "^2.1.1",
29+
"@radix-ui/react-popover": "^1.1.4",
30+
"@radix-ui/react-progress": "^1.1.1",
31+
"@radix-ui/react-radio-group": "^1.2.2",
32+
"@radix-ui/react-scroll-area": "^1.2.2",
33+
"@radix-ui/react-select": "^2.1.4",
34+
"@radix-ui/react-separator": "^1.1.1",
35+
"@radix-ui/react-slider": "^1.2.2",
36+
"@radix-ui/react-slot": "^1.1.1",
37+
"@radix-ui/react-switch": "^1.1.2",
38+
"@radix-ui/react-tabs": "^1.1.2",
39+
"@radix-ui/react-toast": "^1.2.4",
40+
"@radix-ui/react-toggle": "^1.1.1",
41+
"@radix-ui/react-tooltip": "^1.1.6",
42+
"@tailwindcss/forms": "^0.5.10",
43+
"@tanstack/react-query": "^5.64.1",
44+
"@tanstack/react-query-devtools": "^5.64.1",
45+
"@tanstack/react-router": "^1.97.0",
46+
"@tanstack/react-table": "^8.20.6",
47+
"@tiptap/core": "^2.11.2",
48+
"@tiptap/extension-bold": "^2.11.2",
49+
"@tiptap/extension-character-count": "^2.11.2",
50+
"@tiptap/extension-document": "^2.11.2",
51+
"@tiptap/extension-heading": "^2.11.2",
52+
"@tiptap/extension-link": "^2.11.2",
53+
"@tiptap/extension-paragraph": "^2.11.2",
54+
"@tiptap/extension-placeholder": "^2.11.2",
55+
"@tiptap/extension-text": "^2.11.2",
56+
"@tiptap/extension-text-style": "^2.11.2",
57+
"@tiptap/extension-typography": "^2.11.2",
58+
"@tiptap/pm": "^2.11.2",
59+
"@tiptap/react": "^2.11.2",
60+
"@tiptap/starter-kit": "^2.11.2",
61+
"@types/lodash": "^4.17.14",
6262
"@types/papaparse": "^5.3.15",
6363
"@uidotdev/usehooks": "^2.4.1",
64-
"axios": "^1.6.2",
65-
"chart.js": "^4.4.2",
64+
"axios": "^1.7.9",
65+
"chart.js": "^4.4.7",
6666
"chartjs-adapter-date-fns": "^3.0.0",
6767
"chartjs-plugin-datalabels": "^2.2.0",
68-
"class-variance-authority": "^0.7.0",
69-
"clsx": "^2.0.0",
70-
"cmdk": "^1.0.0",
68+
"class-variance-authority": "^0.7.1",
69+
"clsx": "^2.1.1",
70+
"cmdk": "^1.0.4",
7171
"date-fns": "^3.6.0",
72-
"dayjs": "^1.11.9",
72+
"dayjs": "^1.11.13",
7373
"file-saver": "^2.0.5",
74-
"i18next": "^23.10.1",
75-
"i18next-browser-languagedetector": "^8.0.0",
74+
"i18next": "^23.16.8",
75+
"i18next-browser-languagedetector": "^8.0.2",
7676
"lodash": "^4.17.21",
7777
"lucide-react": "^0.294.0",
78-
"papaparse": "^5.4.1",
79-
"qs": "^6.12.0",
80-
"react": "^18.2.0",
78+
"papaparse": "^5.5.1",
79+
"qs": "^6.14.0",
80+
"react": "^18.3.1",
8181
"react-beautiful-dnd": "^13.1.1",
82-
"react-chartjs-2": "^5.2.0",
83-
"react-day-picker": "^9.0.8",
84-
"react-dom": "^18.2.0",
85-
"react-dropzone": "^14.2.3",
82+
"react-chartjs-2": "^5.3.0",
83+
"react-day-picker": "^9.5.0",
84+
"react-dom": "^18.3.1",
85+
"react-dropzone": "^14.3.5",
8686
"react-easy-sort": "^1.6.0",
87-
"react-hook-form": "^7.45.2",
88-
"react-i18next": "^14.1.0",
89-
"react-phone-number-input": "^3.3.12",
87+
"react-hook-form": "^7.54.2",
88+
"react-i18next": "^14.1.3",
89+
"react-phone-number-input": "^3.4.11",
9090
"react-player": "^2.16.0",
91-
"tailwind-merge": "^2.1.0",
91+
"tailwind-merge": "^2.6.0",
9292
"tailwindcss-animate": "^1.0.7",
9393
"uuid": "^9.0.1",
94-
"zod": "^3.21.4",
95-
"zustand": "^4.5.2"
94+
"zod": "^3.24.1",
95+
"zustand": "^4.5.6"
9696
},
9797
"devDependencies": {
98-
"@commitlint/cli": "^17.6.7",
99-
"@commitlint/config-conventional": "^17.6.7",
100-
"@faker-js/faker": "^8.0.2",
98+
"@commitlint/cli": "^17.8.1",
99+
"@commitlint/config-conventional": "^17.8.1",
100+
"@faker-js/faker": "^8.4.1",
101101
"@headlessui/react": "2.0.0-alpha.4",
102-
"@heroicons/react": "^2.0.18",
103-
"@hookform/devtools": "^4.3.1",
104-
"@playwright/test": "^1.36.2",
105-
"@tailwindcss/typography": "^0.5.15",
106-
"@tanstack/eslint-plugin-query": "^5.28.6",
107-
"@tanstack/react-table-devtools": "^8.7.6",
108-
"@tanstack/router-devtools": "^1.22.0",
109-
"@tanstack/router-vite-plugin": "^1.20.5",
102+
"@heroicons/react": "^2.2.0",
103+
"@hookform/devtools": "^4.3.3",
104+
"@playwright/test": "^1.49.1",
105+
"@tailwindcss/typography": "^0.5.16",
106+
"@tanstack/eslint-plugin-query": "^5.62.16",
107+
"@tanstack/react-table-devtools": "^8.20.6",
108+
"@tanstack/router-devtools": "^1.97.0",
109+
"@tanstack/router-vite-plugin": "^1.97.0",
110110
"@testing-library/jest-dom": "^5.17.0",
111-
"@testing-library/react": "^14.0.0",
112-
"@testing-library/user-event": "^14.4.3",
111+
"@testing-library/react": "^14.3.1",
112+
"@testing-library/user-event": "^14.5.2",
113113
"@total-typescript/ts-reset": "^0.4.2",
114114
"@types/chart.js": "^2.9.41",
115115
"@types/file-saver": "^2.0.7",
116-
"@types/node": "^20.4.5",
117-
"@types/react": "^18.2.17",
116+
"@types/node": "^20.17.13",
117+
"@types/react": "^18.3.18",
118118
"@types/react-beautiful-dnd": "^13.1.8",
119-
"@types/react-dom": "^18.2.7",
119+
"@types/react-dom": "^18.3.5",
120120
"@types/testing-library__jest-dom": "^5.14.9",
121121
"@types/uuid": "^9.0.8",
122-
"@typescript-eslint/eslint-plugin": "^6.2.0",
123-
"@typescript-eslint/parser": "^6.2.0",
124-
"@vitejs/plugin-react-swc": "^3.3.2",
122+
"@typescript-eslint/eslint-plugin": "^6.21.0",
123+
"@typescript-eslint/parser": "^6.21.0",
124+
"@vitejs/plugin-react-swc": "^3.7.2",
125125
"@vitest/coverage-v8": "^0.33.0",
126-
"autoprefixer": "^10.4.14",
127-
"eslint": "^8.45.0",
128-
"eslint-config-prettier": "^8.8.0",
129-
"eslint-plugin-react": "^7.33.0",
130-
"eslint-plugin-react-hooks": "^4.6.0",
131-
"eslint-plugin-react-refresh": "^0.4.3",
126+
"autoprefixer": "^10.4.20",
127+
"eslint": "^8.57.1",
128+
"eslint-config-prettier": "^8.10.0",
129+
"eslint-plugin-react": "^7.37.4",
130+
"eslint-plugin-react-hooks": "^4.6.2",
131+
"eslint-plugin-react-refresh": "^0.4.18",
132132
"eslint-plugin-unicorn": "^48.0.1",
133133
"jsdom": "^22.1.0",
134-
"postcss": "^8.4.27",
135-
"prettier": "^3.0.0",
134+
"postcss": "^8.5.1",
135+
"prettier": "^3.4.2",
136136
"prop-types": "^15.8.1",
137-
"tailwindcss": "^3.4.3",
138-
"typescript": "^5.1.6",
139-
"vite": "^4.4.7",
140-
"vite-plugin-svgr": "^4.2.0",
137+
"tailwindcss": "^3.4.17",
138+
"typescript": "^5.7.3",
139+
"typescript-eslint": "^8.20.0",
140+
"vite": "5.4.2",
141+
"vite-plugin-svgr": "^4.3.0",
141142
"vitest": "^0.33.0"
142143
}
143144
}

0 commit comments

Comments
 (0)