diff --git a/.commitlintrc b/.commitlintrc
new file mode 100644
index 0000000..b852772
--- /dev/null
+++ b/.commitlintrc
@@ -0,0 +1,3 @@
+{
+ "extends": "@commitlint/config-conventional"
+}
diff --git a/.env b/.env
new file mode 100644
index 0000000..e69de29
diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 0000000..3286f67
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1,4 @@
+node_modules
+public
+.next/
+build/
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..a8c4dac
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,23 @@
+name: Release
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ release:
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout source code
+ uses: actions/checkout@v3
+ - name: Install the dependencies
+ run: npm ci
+ - name: Setup the author
+ run: git config --global user.name "${{ github.actor }}" && git config --global user.email "${{ github.actor }}@users.noreply.github.com"
+ - name: Run release
+ run: npm run release --ci
+ env:
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
+ - name: End message
+ run: echo "Release done!!!!! 🚀"
diff --git a/.husky/commit-msg b/.husky/commit-msg
new file mode 100755
index 0000000..7c736f3
--- /dev/null
+++ b/.husky/commit-msg
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+. "$(dirname -- "$0")/_/husky.sh"
+
+npx commitlint --edit ${1}
\ No newline at end of file
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 0000000..d24fdfc
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+. "$(dirname -- "$0")/_/husky.sh"
+
+npx lint-staged
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..3286f67
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,4 @@
+node_modules
+public
+.next/
+build/
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..e56d7df
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,3 @@
+{
+ "printWidth": 180
+}
diff --git a/.release-it.json b/.release-it.json
new file mode 100644
index 0000000..f2ea748
--- /dev/null
+++ b/.release-it.json
@@ -0,0 +1,13 @@
+{
+ "git": {
+ "requireBranch": "main",
+ "commitMessage": "chore: release v${version}"
+ },
+ "hooks": {
+ "before:init": ["git pull", "npm run lint", "npm run prettier:check"],
+ "after:bump": "npx auto-changelog -p"
+ },
+ "github": {
+ "release": true
+ }
+}
diff --git a/components/AccountSettingPage/index.tsx b/components/AccountSettingPage/index.tsx
index 43ea3d0..c319dc9 100644
--- a/components/AccountSettingPage/index.tsx
+++ b/components/AccountSettingPage/index.tsx
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import AccountSettings from "../modules/AccountSettings";
-import PageCard from "../modules/__modules__/Card/PageCard";
+import PageCard from "../modules/layout/PageLayout";
const AccountSettingsPage = () => {
const [isTopNav, setIsTopNav] = useState(false);
diff --git a/components/AddCategoryPage/index.tsx b/components/AddCategoryPage/index.tsx
index a3a93ed..db3d729 100644
--- a/components/AddCategoryPage/index.tsx
+++ b/components/AddCategoryPage/index.tsx
@@ -1,15 +1,15 @@
-import React from "react";
-import { useState } from "react";
-import AddCategory from "../modules/AddCategory";
-import PageCard from "../modules/__modules__/Card/PageCard";
-
-const AddCategoryPage = () => {
- const [isTopNav, setIsTopNav] = useState(false);
-
- return (
-
{topSongsData[2].artist}
{topSongsData[2].title}
Success !
- A email has been send to youremail@domain.com. Please check for an - email from company and click on the included link to reset your - password. + A email has been send to youremail@domain.com. Please check for an email from company and click on the included link to reset your password.
- Reset password -
-- Enter your email address and we'll send you an email with - instructions to reset your password -
+Reset password
+Enter your email address and we'll send you an email with instructions to reset your password
Keith Urban
-Keith Urban
+- The requested page dose not exist -
+The requested page dose not exist
Back to Home
diff --git a/components/ErrorPages/Error500.tsx b/components/ErrorPages/Error500.tsx index cd45563..36ee405 100644 --- a/components/ErrorPages/Error500.tsx +++ b/components/ErrorPages/Error500.tsx @@ -1,22 +1,14 @@ import React from "react"; -import { HomeSubMenuIcon } from "../modules/__modules/Vectors/index"; +import { HomeSubMenuIcon } from "../modules/Vectors/index"; import error from "../modules/static/images/500.png"; const Error500 = () => { return (- The requested is Internal Server Error. -
+The requested is Internal Server Error.
Back to Home
diff --git a/components/LandingPage/LandingPage.tsx b/components/LandingPage/LandingPage.tsx index e561442..f00736f 100644 --- a/components/LandingPage/LandingPage.tsx +++ b/components/LandingPage/LandingPage.tsx @@ -3,7 +3,7 @@ import TopSongs from "../modules/TopSongs/TopSongs"; import HotSongs from "../modules/HotSongs"; import NewReleases from "../modules/NewReleases"; -import PageCard from "../modules/__modules__/Card/PageCard"; +import PageCard from "../modules/layout/PageLayout"; import FeaturedAlbum from "../modules/FeaturedAlbum"; const LandingPage = () => { @@ -11,13 +11,13 @@ const LandingPage = () => { return (Please chack back sometime
- It is a long established fact that a reader will be distracted - by the readable content of a page when looking at its layout. + It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
- It is a long established fact that a reader will be distracted - by the readable content of a page when looking at its layout. + It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
- It is a long established fact that a reader will be distracted - by the readable content of a page when looking at its layout. + It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
Please chack back sometime
- It is a long established fact that a reader will be distracted - by the readable content of a page when looking at its layout. + It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
- It is a long established fact that a reader will be distracted - by the readable content of a page when looking at its layout. + It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
- It is a long established fact that a reader will be distracted - by the readable content of a page when looking at its layout. + It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.
{artistName}
{date}
- {streams} -
+{streams}
{statValue}
-- {statIcon} -
+{statIcon}
{title}
{artist}
diff --git a/components/modules/__modules__/Card/TopSongCard.tsx b/components/modules/Card/TopSongCard.tsx similarity index 67% rename from components/modules/__modules__/Card/TopSongCard.tsx rename to components/modules/Card/TopSongCard.tsx index 6178a25..035d8fb 100644 --- a/components/modules/__modules__/Card/TopSongCard.tsx +++ b/components/modules/Card/TopSongCard.tsx @@ -1,77 +1,60 @@ -/* eslint-disable @next/next/no-img-element */ -import React, { useState } from "react"; -import { PauseIcon, PlayCircleIcon } from "../../__modules/Vectors"; - -const TopSongCard = (props: any) => { - const [isHovering, setIsHovering] = useState(-1); - const [isPlaying, setIsPlaying] = useState(false); - const [isPlayingIndex, setIsPlayingIndex] = useState(-1); - - interface SongoData { - id: number; - title: string; - img: "string"; - artist: string; - } - - return ( -