Skip to content

Commit 953a854

Browse files
committed
wip
1 parent c598a3e commit 953a854

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

resources/js/Components/Dashboard/ThisWeekOverview.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import ProjectsChartCard from '@/Components/Dashboard/ProjectsChartCard.vue';
1818
import { formatHumanReadableDuration } from '@/packages/ui/src/utils/time';
1919
import { formatCents } from '@/packages/ui/src/utils/money';
2020
import { getWeekStart } from '@/packages/ui/src/utils/settings';
21-
import { useCssVar } from '@vueuse/core';
21+
import { useCssVariable } from '@/utils/useCssVariable';
2222
import { getOrganizationCurrencyString } from '@/utils/money';
2323
import { useQuery } from '@tanstack/vue-query';
2424
import { getCurrentOrganizationId } from '@/utils/useUser';
@@ -60,7 +60,7 @@ const weekdays = computed(() => {
6060
}
6161
});
6262
63-
const accentColor = useCssVar('--theme-color-chart', null, { observe: true });
63+
const accentColor = useCssVariable('--theme-color-chart');
6464
6565
// Get the organization ID using the utility function
6666
const organizationId = computed(() => getCurrentOrganizationId());
@@ -176,10 +176,8 @@ const seriesData = computed(() => {
176176
});
177177
});
178178
179-
const markLineColor = useCssVar('--color-border-secondary', null, {
180-
observe: true,
181-
});
182-
const labelColor = useCssVar('--color-text-secondary', null, { observe: true });
179+
const markLineColor = useCssVariable('--color-border-secondary');
180+
const labelColor = useCssVariable('--color-text-secondary');
183181
const option = computed(() => {
184182
return {
185183
tooltip: {
@@ -204,7 +202,7 @@ const option = computed(() => {
204202
fontSize: 16,
205203
fontWeight: 600,
206204
margin: 24,
207-
fontFamily: 'Outfit, sans-serif',
205+
fontFamily: 'Inter, sans-serif',
208206
color: labelColor.value,
209207
},
210208
axisTick: {
@@ -215,6 +213,10 @@ const option = computed(() => {
215213
},
216214
yAxis: {
217215
type: 'value',
216+
axisLabel: {
217+
color: labelColor.value,
218+
fontFamily: 'Inter, sans-serif',
219+
},
218220
splitLine: {
219221
lineStyle: {
220222
color: markLineColor.value,
@@ -304,4 +306,4 @@ const option = computed(() => {
304306
height: 280px;
305307
background: transparent;
306308
}
307-
</style>
309+
</style>

routes/api.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
// Organization routes
4444
Route::name('organizations.')->group(static function (): void {
4545
Route::get('/organizations/{organization}', [OrganizationController::class, 'show'])->name('show');
46-
Route::get('/organizations/{organization}/counts', [OrganizationController::class, 'getCounts'])->name('counts');
4746
Route::put('/organizations/{organization}', [OrganizationController::class, 'update'])->name('update');
4847
});
4948

@@ -89,7 +88,7 @@
8988
Route::get('/projects/{project}', [ProjectController::class, 'show'])->name('show');
9089
Route::post('/projects', [ProjectController::class, 'store'])->name('store')->middleware('check-organization-blocked');
9190
Route::put('/projects/{project}', [ProjectController::class, 'update'])->name('update')->middleware('check-organization-blocked');
92-
Route::delete('/projects/{project}', [ProjectController::class, 'destroy'])->name('destroy'); // @otod uncommented
91+
Route::delete('/projects/{project}', [ProjectController::class, 'destroy'])->name('destroy');
9392
});
9493

9594
// Project member routes
@@ -153,7 +152,7 @@
153152
Route::get('/clients', [ClientController::class, 'index'])->name('index');
154153
Route::post('/clients', [ClientController::class, 'store'])->name('store')->middleware('check-organization-blocked');
155154
Route::put('/clients/{client}', [ClientController::class, 'update'])->name('update')->middleware('check-organization-blocked');
156-
Route::delete('/clients/{client}', [ClientController::class, 'destroy'])->name('destroy'); // @otod uncommented
155+
Route::delete('/clients/{client}', [ClientController::class, 'destroy'])->name('destroy');
157156
});
158157

159158
// Task routes

0 commit comments

Comments
 (0)