Skip to content

Commit

Permalink
Merge branch 'main' of github.com:rupali-codes/LinksHub
Browse files Browse the repository at this point in the history
  • Loading branch information
rupali-codes committed Jul 5, 2023
2 parents 1d18c51 + bb7aa7b commit 6d7dbe3
Show file tree
Hide file tree
Showing 14 changed files with 588 additions and 33 deletions.
137 changes: 137 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Check Spelling

# Comment management is handled through a secondary job, for details see:
# https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Restricted-Permissions
#
# `jobs.comment-push` runs when a push is made to a repository and the `jobs.spelling` job needs to make a comment
# (in odd cases, it might actually run just to collapse a comment, but that's fairly rare)
# it needs `contents: write` in order to add a comment.
#
# `jobs.comment-pr` runs when a pull_request is made to a repository and the `jobs.spelling` job needs to make a comment
# or collapse a comment (in the case where it had previously made a comment and now no longer needs to show a comment)
# it needs `pull-requests: write` in order to manipulate those comments.

# Updating pull request branches is managed via comment handling.
# For details, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-expect-list
#
# These elements work together to make it happen:
#
# `on.issue_comment`
# This event listens to comments by users asking to update the metadata.
#
# `jobs.update`
# This job runs in response to an issue_comment and will push a new commit
# to update the spelling metadata.
#
# `with.experimental_apply_changes_via_bot`
# Tells the action to support and generate messages that enable it
# to make a commit to update the spelling metadata.
#
# `with.ssh_key`
# In order to trigger workflows when the commit is made, you can provide a
# secret (typically, a write-enabled github deploy key).
#
# For background, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-with-deploy-key

on:
push:
branches:
- "**"
tags-ignore:
- "**"
pull_request_target:
branches:
- "**"
tags-ignore:
- "**"

issue_comment:
types:
- 'created'

jobs:
spelling:
name: Check Spelling
permissions:
contents: read
pull-requests: read
actions: read
security-events: write
outputs:
followup: ${{ steps.spelling.outputs.followup }}
runs-on: ubuntu-latest
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'"
concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
# note: If you use only_check_changed_files, you do not want cancel-in-progress
cancel-in-progress: true
steps:
- name: check-spelling
id: spelling
uses: check-spelling/check-spelling@main
with:
suppress_push_for_open_pull_request: 1
checkout: true
check_file_names: 1
spell_check_this: check-spelling/spell-check-this@prerelease
post_comment: 0
use_magic_file: 1
experimental_apply_changes_via_bot: 1
use_sarif: 1
extra_dictionary_limit: 10

comment-push:
name: Report (Push)
# If your workflow isn't running on push, you can remove this job
runs-on: ubuntu-latest
needs: spelling
permissions:
contents: write
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
steps:
- name: comment
uses: check-spelling/check-spelling@main
with:
checkout: true
spell_check_this: check-spelling/spell-check-this@prerelease
task: ${{ needs.spelling.outputs.followup }}

comment-pr:
name: Report (PR)
# If you workflow isn't running on pull_request*, you can remove this job
runs-on: ubuntu-latest
needs: spelling
permissions:
pull-requests: write
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
steps:
- name: comment
uses: check-spelling/check-spelling@main
with:
checkout: true
spell_check_this: check-spelling/spell-check-this@prerelease
task: ${{ needs.spelling.outputs.followup }}
experimental_apply_changes_via_bot: 1

update:
name: Update PR
permissions:
contents: write
pull-requests: write
actions: read
runs-on: ubuntu-latest
if: ${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '@check-spelling-bot apply')
}}
concurrency:
group: spelling-update-${{ github.event.issue.number }}
cancel-in-progress: false
steps:
- name: apply spelling updates
uses: check-spelling/check-spelling@main
with:
experimental_apply_changes_via_bot: 1
checkout: true
ssh_key: "${{ secrets.CHECK_SPELLING }}"
6 changes: 1 addition & 5 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export const Footer: FC = () => {
<span className={nameStyles}>Rupali Haldiya</span>
</Link>{' '}
and{' '}
<Link
href="https://github.com/rupali-codes/LinksHub/graphs/contributors"
target="_blank"
rel="noopener noreferrer"
>
<Link href="/contributors" rel="noopener noreferrer">
<span className={nameStyles}>Open Source Community</span>
</Link>
</p>
Expand Down
54 changes: 39 additions & 15 deletions components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,47 @@
import { FC, useContext } from 'react'
import Link from 'next/link'
import { AiOutlineMenu } from 'react-icons/ai'
import Logo from 'components/logo'
import { GlobalContext } from 'context/GlobalContext'
import { ThemeToggler } from '../ThemeToggler/themeToggler'
import { TopBar } from '../TopBar/TopBar'
import { SocialMediaIconsList } from 'components/SocialMedia/SocialMediaIconsList'
import { FC, useContext, useEffect } from "react";
import Link from "next/link";
import { AiOutlineMenu } from "react-icons/ai";
import Logo from "components/logo";
import { GlobalContext } from "context/GlobalContext";
import { ThemeToggler } from "../ThemeToggler/themeToggler";
import { TopBar } from "../TopBar/TopBar";
import { SocialMediaIconsList } from "components/SocialMedia/SocialMediaIconsList";

export const Header: FC<{}> = () => {
const { toggleNav } = useContext(GlobalContext)
const { toggleNav } = useContext(GlobalContext);

useEffect(() => {
const script = document.createElement('script');
script.src = 'https://buttons.github.io/buttons.js';
script.async = true;
script.defer = true;
document.head.appendChild(script);
return () => {
document.head.removeChild(script);
};
}, []);

return (
<header className="fixed top-0 left-0 z-30 row-start-1 row-end-2 flex h-[76px] w-screen items-center justify-between">
<div className="bg-base-200 h-full w-fit flex-none px-6 py-4 dark:bg-gray-900 lg:w-[290px]">
<div className="flex items-center justify-between p-4">
<div className="flex items-center gap-2">
<AiOutlineMenu className="text-2xl cursor-pointer" onClick={toggleNav} />
<Link href="/">
<Logo className="text-3xl" />
<a className="font-bold text-xl">
<Logo />
</a>
</Link>
</div>
<div className="bg-base-200 relative h-full grow px-8 dark:bg-gray-900 lg:bg-gray-100 lg:dark:bg-[#101623]">
<Link
className="github-button"
href="https://github.com/rupali-codes/LinksHub"
data-icon="octicon-repo-forked"
data-size="large"
data-show-count="true"
aria-label="Fork rupali-codes/LinksHub on GitHub"
>
Fork
</Link>
<TopBar className="absolute left-8 hidden h-full md:flex" />
<div className="absolute right-8 flex h-full gap-4">
<SocialMediaIconsList className="hidden lg:flex" />
Expand All @@ -27,6 +51,6 @@ export const Header: FC<{}> = () => {
</button>
</div>
</div>
</header>
)
}
</div>
);
};
1 change: 1 addition & 0 deletions database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const sidebarData: ISidebar[] = [
{ name: 'C Programming', url: '/c-programming', resources: DB.CProgramming },
{ name: 'Java', url: '/java', resources: DB.java },
{ name: 'Kotlin', url: '/kotlin', resources: DB.kotlin },
{ name: 'Rust', url: '/rust', resources: DB.Rust },
],
},
{
Expand Down
12 changes: 6 additions & 6 deletions database/frontend/colors.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@
"subcategory": "colors"
},
{
"name": "Khroma",
"description": "This is an innovative color palette generator that simplifies the process of choosing harmonious colors for your design projects.",
"url": "https://www.khroma.co/",
"name": "ColorClaim",
"description": "ColorClaim is a library of colors that helps developers, designers, photographers, and others to create beautiful and effective color palettes.",
"url": "https://vanschneider.com/colors",
"category": "frontend",
"subcategory": "colors"
},
{
"name": "ColorClaim",
"description": "ColorClaim is a library of colors that helps developers, designers, photographers, and others to create beautiful and effective color palettes.",
"url": "https://vanschneider.com/colors",
"name": "Muzli Colors",
"description": "This is a vibrant hub for endless inspiration, showcasing curated color palettes for your creative projects. Explore, discover, and elevate your projects with ease.",
"url": "https://colors.muz.li/",
"category": "frontend",
"subcategory": "colors"
},
Expand Down
7 changes: 7 additions & 0 deletions database/frontend/images.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,12 @@
"url": " https://pikwizard.com/",
"category": "frontend",
"subcategory": "images"
},
{
"name": "Getty Images",
"description": "Getty Images is a well-known stock photography platform. While it contains a vast collection of professional images, it also offers unique and creative visuals that can add a distinct touch to the projects.",
"url": " https://www.gettyimages.in/",
"category": "frontend",
"subcategory": "images"
}
]
22 changes: 18 additions & 4 deletions database/frontend/react.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
},
{
"name": "Fullstack Open",
"description": "This course serves as an introduction to modern web application development with JavaScript. The main focus is on building single page applications with ReactJS and use REST APIs built with Node.js. The course also contains a section on GraphQL, a modern alternative to REST APIs.",
"description": "This course serves as an introduction to modern web application development with JavaScript. The main focus is on building single-page applications with ReactJS and use REST APIs built with Node.js. The course also contains a section on GraphQL, a modern alternative to REST APIs.",
"url": "https://fullstackopen.com/en/",
"category": "frontend",
"subcategory": "react"
},
{
"name": "React 2025",
"description": "React2025 is the ultimate free course that guides you from zero lines of code to launching a fully functional SaaS app. Learn Next.js, React, Firebase Authentication, Firestore, Stripe for subscription payments, and Vercel for serverless deployment all in one comprehensive package.",
"description": "React2025 is the ultimate free course that guides you from zero lines of code to launch a fully functional SaaS app. Learn Next.js, React, Firebase Authentication, Firestore, Stripe for subscription payments, and Vercel for serverless deployment all in one comprehensive package.",
"url": "https://react2025.com/",
"category": "frontend",
"subcategory": "react"
Expand All @@ -51,9 +51,23 @@
},
{
"name": "Free React Bootcamp",
"description": "This 4-day React boot camp offers a solid foundation in React development. Each day features an in-depth video, providing a comprehensive learning experience for mastering React's concepts and techniques.",
"description": "This 4-day React bootcamp offers a solid foundation in React development. Each day features an in-depth video, providing a comprehensive learning experience for mastering React's concepts and techniques.",
"url": "https://ui.dev/free-react-bootcamp",
"category": "frontend",
"subcategory": "react"
},
{
"name": "React Redux ",
"description": "Redux is an open-source JavaScript library for managing and centralizing application state. It is most commonly used with libraries such as React or Angular for building user interfaces. Similar to Facebook's Flux architecture, it was created by Dan Abramov and Andrew Clark",
"url": "https://redux.js.org/introduction/getting-started",
"category": "frontend",
"subcategory": "react"
},
{
"name": "Recoil Js ",
"description": "Recoil is an experimental state management library. It provides several capabilities that are difficult to achieve with React alone. In this article, we learn about the recoil. js, and how it is managing state in React. Recoil js is another state management library for React.",
"url": "https://recoiljs.org/docs/introduction/getting-started/",
"category": "frontend",
"subcategory": "react"
}
]
]
4 changes: 3 additions & 1 deletion database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export { default as csharp } from './languages/csharp.json'
export { default as typescript } from './languages/typescript.json'
export { default as ruby } from './languages/ruby.json'
export { default as CProgramming } from './languages/c-programming.json'
export { default as kotlin} from './languages/kotlin.json'
export { default as kotlin } from './languages/kotlin.json'
export { default as Rust } from './languages/rust.json'
export { default as java } from './languages/java.json'
export { default as cpp } from './languages/c++.json'
// ml & ai
Expand Down Expand Up @@ -66,3 +67,4 @@ export { default as devtools } from './other/devtools.json'
export { default as podcasts } from './other/podcasts.json'
export { default as otherResources } from './other/other-resources.json'
export { default as communities } from './other/communities.json'

23 changes: 23 additions & 0 deletions database/languages/rust.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"name": "Learn Rust Programming - Official Docs ",
"description": "Rust is a multi-paradigm, general-purpose programming language that highlights performance, type safety, and concurrency. It enforces memory-safety, ensuring that all references point to valid memory—without requiring the use of a garbage collector or reference counting present in other memory-safe languages",
"url": "https://www.rust-lang.org/learn/get-started",
"category": "languages",
"subcategory": "rust"
},
{
"name": "Learn Rust Programming - Complete Course ",
"description": "In this beginner-level course, you will learn about the core concepts of Rust and underlying mechanisms in theory about the programming language",
"url": "https://www.youtube.com/watch?v=BpPEoZW5IiY",
"category": "languages",
"subcategory": "rust"
},
{
"name": "Rust Axum Full Course - Web Development",
"description": "Rust Programming - Full Course for Axum: An Awesome Web Framework for Rust. Not too low-level, not too high-level, well-componentized, complete, and with great ergonomics.",
"url": "https://www.youtube.com/watch?v=XZtlD_m59sM",
"category": "languages",
"subcategory": "rust"
}
]
9 changes: 8 additions & 1 deletion database/opensource/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,12 @@
"url": "https://codethesaur.us/",
"category": "open source",
"subcategory": "open-source-projects"
},
{
"name": "Women-Led-Open-Source",
"description": "A living resource unveiling trailblazing leaders, from women to transgender and nonbinary individuals, shaping open source.",
"url": "https://github.com/amandamartin-dev/women-led-open-source",
"category": "open source",
"subcategory": "open-source-projects"
}
]
]
10 changes: 9 additions & 1 deletion database/youtube/web-development.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@
"subcategory": "web-development",
"language": "english"
},
{
"name": "Apoorv Goyal",
"description": "Aprrov Goyal channel has web development boot camps, Git and Github playlist, Linux playlist, and Learn by doing series playlist. If you visit this channel once, you will go out of this with lots of learnings.",
"url": "https://www.youtube.com/@ApoorvGoyalMain",
"category": "youtube",
"subcategory": "web-development",
"language": "english"
},
{
"name": "Codevolution",
"description": "Codevolution is a YouTube channel dedicated to providing comprehensive tutorials and resources for learning programming and web development.",
Expand Down Expand Up @@ -247,4 +255,4 @@
"subcategory": "web-development",
"language": "english"
}
]
]
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['avatars.githubusercontent.com'],
},
}

module.exports = nextConfig
Loading

0 comments on commit 6d7dbe3

Please sign in to comment.