forked from MyArtverse-Project/MyArtverse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request MyArtverse-Project#24 from skepfusky/main
Updated packages and more refactoring
- Loading branch information
Showing
33 changed files
with
2,428 additions
and
2,174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "00:00" | ||
open-pull-requests-limit: 3 | ||
assignees: | ||
- VulpoTheDev | ||
commit-message: | ||
prefix: fix | ||
prefix-development: chore | ||
include: scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
**/.next/** | ||
**/_next/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"insertSpaces": true, | ||
"cursorStyle": "line", | ||
"lineNumbers": true, | ||
"folding": true, | ||
"matchBrackets": true, | ||
"trailingComma": "none", | ||
"semi": false | ||
} | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"insertSpaces": true, | ||
"cursorStyle": "line", | ||
"lineNumbers": true, | ||
"folding": true, | ||
"matchBrackets": true, | ||
"trailingComma": "none", | ||
"semi": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
compress: true, | ||
swcMinify: true, | ||
webpack: { | ||
optimizeCSS: true, | ||
}, | ||
}; | ||
module.exports = async (phase) => { | ||
const withPlugins = require("next-compose-plugins") | ||
|
||
module.exports = nextConfig; | ||
const runtimeCaching = require("next-pwa/cache") | ||
runtimeCaching[0].handler = "StaleWhileRevalidate" | ||
|
||
const PWASupport = require("next-pwa"); | ||
const withPWA = require("next-pwa")({ | ||
disable: process.env.NODE_ENV === 'development', // disable PWA for development, compiling takes ages | ||
dest: "public", | ||
register: true, | ||
skipWaiting: true, | ||
sw: "./public/service-worker.js", | ||
}) | ||
|
||
module.exports = PWASupport({ | ||
pwa: { | ||
disable: process.env.NODE_ENV === 'development', // disable PWA for development, compiling takes ages | ||
dest: "public", | ||
register: true, | ||
skipWaiting: true, | ||
sw: "./public/service-worker.js", | ||
}, | ||
}); | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
compress: true, | ||
swcMinify: true, | ||
} | ||
|
||
const defaultConfig = {} | ||
|
||
return withPlugins([withPWA], nextConfig)(phase, { defaultConfig }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,45 @@ | ||
{ | ||
"name": "j", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
"typescript:check": "./node_modules/.bin/tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@faker-js/faker": "^6.0.0", | ||
"@next-auth/mongodb-adapter": "^1.0.3", | ||
"@typegoose/typegoose": "^9.7.1", | ||
"@types/node": "^17.0.23", | ||
"@types/react": "^17.0.43", | ||
"cypress": "^10.3.1", | ||
"mongodb": "^4.5.0", | ||
"mongoose": "^6.2.8", | ||
"next": "12.1.1", | ||
"next-auth": "^4.3.4", | ||
"next-pwa": "^5.5.2", | ||
"nodemailer": "^6.7.5", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-intersection-observer": "^9.3.5", | ||
"sass": "^1.49.9", | ||
"swr": "^1.2.2", | ||
"typescript": "^4.6.3" | ||
}, | ||
"devDependencies": { | ||
"@fortawesome/fontawesome-svg-core": "^6.1.1", | ||
"@fortawesome/free-brands-svg-icons": "^6.1.1", | ||
"@fortawesome/free-solid-svg-icons": "^6.1.1", | ||
"@fortawesome/react-fontawesome": "^0.1.18", | ||
"eslint": "8.12.0", | ||
"eslint-config-next": "12.1.1" | ||
} | ||
"name": "myfursona", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "concurrently -k -n next,tsc \"next dev\" \"tsc --watch --preserveWatchOutput --noEmit\"", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint && npm run prettier:write", | ||
"typescript:check": "./node_modules/.bin/tsc --noEmit", | ||
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"", | ||
"prettier:write": "prettier --write \"**/*.{ts,tsx}\"" | ||
}, | ||
"dependencies": { | ||
"@faker-js/faker": "^7.5.0", | ||
"@fortawesome/fontawesome-svg-core": "^6.2.0", | ||
"@fortawesome/free-brands-svg-icons": "^6.2.0", | ||
"@fortawesome/free-solid-svg-icons": "^6.2.0", | ||
"@fortawesome/react-fontawesome": "^0.2.0", | ||
"@next-auth/mongodb-adapter": "^1.0.4", | ||
"@typegoose/typegoose": "^9.12.0", | ||
"@types/node": "^18.7.18", | ||
"@types/react": "^18.0.20", | ||
"cypress": "^10.8.0", | ||
"mongodb": "^4.9.1", | ||
"mongoose": "^6.6.1", | ||
"next": "^12.3.0", | ||
"next-auth": "^4.10.3", | ||
"next-pwa": "^5.5.2", | ||
"nodemailer": "^6.7.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-intersection-observer": "^9.3.5", | ||
"sass": "^1.54.9", | ||
"swr": "^1.3.0", | ||
"typescript": "^4.8.3" | ||
}, | ||
"devDependencies": { | ||
"concurrently": "^7.4.0", | ||
"eslint": "^8.23.1", | ||
"eslint-config-next": "^12.3.0", | ||
"next-compose-plugins": "^2.2.1", | ||
"prettier": "^2.7.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/styles/Carousel.module.scss → src/components/carousel/Carousel.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/components/Artwork.tsx → src/components/gallery/Artwork.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import styles from '../styles/Artworks.module.scss' | ||
import styles from "./Artwork.module.scss" | ||
|
||
interface ArtworkProps { | ||
image: string | ||
} | ||
|
||
export default function Artwork({ image }) { | ||
export default function Artwork({ image }: ArtworkProps) { | ||
// TODO: Make a Popup modal of the image | ||
return ( | ||
<div id={styles["artwork"]}> | ||
<img src={image} alt={"Artwork"} /> | ||
<img src={image} alt="" /> | ||
</div> | ||
) | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/styles/GalleryItem.module.scss → ...omponents/gallery/GalleryItem.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.