Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update profile #1

Merged
merged 2 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"scripts": {
"dev": "next dev",
"dev:https": "next dev -p 3001",
"proxy": "local-ssl-proxy --source 3001 --target 3000",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
Expand Down
Binary file removed public/malik-resume-2023.pdf
Binary file not shown.
Binary file added public/resume_maalik_2023.pdf
Binary file not shown.
14 changes: 13 additions & 1 deletion src/common/constant/careers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
export const CAREERS = [
{
position: 'Chief Technology Officer (CTO)',
company: 'Vesatogo Innovations',
logo: '/images/careers/vesatogo.png',
location: 'Nashik',
location_type: 'hybrid',
type: 'Fulltime',
start_date: '2023-08',
end_date: null,
industry: 'agritech',
link: 'https://www.linkedin.com/company/vesatogo/',
},
{
position: 'Senior Software Developer',
company: 'Vesatogo Innovations',
Expand All @@ -7,7 +19,7 @@ export const CAREERS = [
location_type: 'hybrid',
type: 'Fulltime',
start_date: '2022-01',
end_date: null,
end_date: '2023-08',
industry: 'agritech',
link: 'https://www.linkedin.com/company/vesatogo/',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CodingActive = ({ lastUpdate }: CodingActiveProps) => {
return (
<section className='flex flex-col gap-y-2'>
<SectionHeading
title='Weekly Statistics'
title='Monthly Statistics'
icon={<WakatimeIcon className='mr-1' />}
/>
<SectionSubHeading>
Expand All @@ -52,7 +52,7 @@ const CodingActive = ({ lastUpdate }: CodingActiveProps) => {
>
WakaTime
</Link>
<span> last 7 days stats.</span>
<span> last 30 day stats.</span>
</div>
<div className='text-sm text-neutral-600 dark:text-neutral-500'>
Last update: {renderLastUpdate()}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/dashboard/components/CodingActive/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const Overview = ({ data }: OverviewProps) => {
<OverviewItem label='Start Date' value={startDate} />
<OverviewItem label='End Date' value={endDate} />
<OverviewItem label='Daily Coding Average' value={dailyAverage} />
<OverviewItem label='This Week Coding Time' value={dailyTotal} />
<OverviewItem label='This Month Coding Time' value={dailyTotal} />
<OverviewItem label='Best Day Coding Time' value={bestDay} />
<OverviewItem label='All Time Since Today' value={allTimeSinceToday} />
<OverviewItem label='All ' value={allTimeSinceToday} />
</div>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/services/wakatime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getReadStats = async (): Promise<{
status: number;
data: any;
}> => {
const response = await axios.get(`${STATS_ENDPOINT}/last_7_days`, {
const response = await axios.get(`${STATS_ENDPOINT}/last_30_days`, {
params: {
api_key: process.env.WAKATIME_API_KEY,
},
Expand All @@ -19,7 +19,7 @@ export const getReadStats = async (): Promise<{
if (status > 400) return { status, data: [] };

const getData = response.data;

console.log(getData);
const start_date = getData?.data?.start ?? null;
const end_date = getData?.data?.end ?? null;
const last_update = getData?.data?.modified_at ?? null;
Expand Down
Loading