🏗️ Cleaning up useless files
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@ comics/
|
|||||||
docs/
|
docs/
|
||||||
userdata/
|
userdata/
|
||||||
dist/
|
dist/
|
||||||
|
storybook-static/*
|
||||||
src/client/assets/scss/App.css
|
src/client/assets/scss/App.css
|
||||||
/server/
|
/server/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "threetwo",
|
"name": "threetwo",
|
||||||
"version": "0.0.2",
|
"version": "0.1.0",
|
||||||
"description": "ThreeTwo! A comic book curator.",
|
"description": "ThreeTwo! A good comic book curator.",
|
||||||
"main": "server/index.js",
|
"main": "server/index.js",
|
||||||
"typings": "server/index.js",
|
"typings": "server/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
"@dnd-kit/sortable": "^7.0.2",
|
"@dnd-kit/sortable": "^7.0.2",
|
||||||
"@dnd-kit/utilities": "^3.2.1",
|
"@dnd-kit/utilities": "^3.2.1",
|
||||||
"@fortawesome/fontawesome-free": "^6.3.0",
|
"@fortawesome/fontawesome-free": "^6.3.0",
|
||||||
"@redux-devtools/extension": "^3.2.5",
|
|
||||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@tanstack/react-query": "^5.0.5",
|
"@tanstack/react-query": "^5.0.5",
|
||||||
"@tanstack/react-table": "^8.9.3",
|
"@tanstack/react-table": "^8.9.3",
|
||||||
@@ -31,6 +30,7 @@
|
|||||||
"axios-cache-interceptor": "^1.0.1",
|
"axios-cache-interceptor": "^1.0.1",
|
||||||
"axios-rate-limit": "^1.3.0",
|
"axios-rate-limit": "^1.3.0",
|
||||||
"babel-plugin-styled-components": "^2.1.4",
|
"babel-plugin-styled-components": "^2.1.4",
|
||||||
|
"blaze-slider": "^1.9.3",
|
||||||
"date-fns": "^2.28.0",
|
"date-fns": "^2.28.0",
|
||||||
"dayjs": "^1.10.6",
|
"dayjs": "^1.10.6",
|
||||||
"ellipsize": "^0.5.1",
|
"ellipsize": "^0.5.1",
|
||||||
@@ -64,7 +64,6 @@
|
|||||||
"react-sliding-pane": "^7.1.0",
|
"react-sliding-pane": "^7.1.0",
|
||||||
"react-textarea-autosize": "^8.3.4",
|
"react-textarea-autosize": "^8.3.4",
|
||||||
"reapop": "^4.2.1",
|
"reapop": "^4.2.1",
|
||||||
"slick-carousel": "^1.8.1",
|
|
||||||
"socket.io-client": "^4.3.2",
|
"socket.io-client": "^4.3.2",
|
||||||
"styled-components": "^6.1.0",
|
"styled-components": "^6.1.0",
|
||||||
"threetwo-ui-typings": "^1.0.14",
|
"threetwo-ui-typings": "^1.0.14",
|
||||||
@@ -118,8 +117,11 @@
|
|||||||
"rimraf": "^4.1.3",
|
"rimraf": "^4.1.3",
|
||||||
"sass": "^1.69.5",
|
"sass": "^1.69.5",
|
||||||
"storybook": "^7.3.2",
|
"storybook": "^7.3.2",
|
||||||
"tailwindcss": "^3.3.5",
|
"tailwindcss": "^3.4.1",
|
||||||
"tui-jsdoc-template": "^1.2.2",
|
"tui-jsdoc-template": "^1.2.2",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.1.6"
|
||||||
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"jackspeak": "2.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export const ComicVineDetails = (props): ReactElement => {
|
|||||||
// cardContainerStyle={{ maxWidth: 200 }}
|
// cardContainerStyle={{ maxWidth: 200 }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col gap-5">
|
||||||
<div className="flex flex-row">
|
<div className="flex flex-row">
|
||||||
<div>
|
<div>
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
@@ -50,7 +50,7 @@ export const ComicVineDetails = (props): ReactElement => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Publisher details */}
|
{/* Publisher details */}
|
||||||
<div className="">
|
<div className="ml-8">
|
||||||
Published by{" "}
|
Published by{" "}
|
||||||
<span>{data.volumeInformation.publisher.name}</span>
|
<span>{data.volumeInformation.publisher.name}</span>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { isNil, map } from "lodash";
|
|||||||
import React, { createRef, ReactElement, useCallback, useEffect } from "react";
|
import React, { createRef, ReactElement, useCallback, useEffect } from "react";
|
||||||
import Card from "../shared/Carda";
|
import Card from "../shared/Carda";
|
||||||
import Header from "../shared/Header";
|
import Header from "../shared/Header";
|
||||||
import Masonry from "react-masonry-css";
|
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
import { getWeeklyPullList } from "../../actions/comicinfo.actions";
|
import { getWeeklyPullList } from "../../actions/comicinfo.actions";
|
||||||
import { importToDB } from "../../actions/fileops.actions";
|
import { importToDB } from "../../actions/fileops.actions";
|
||||||
@@ -89,9 +88,11 @@ export const PullList = ({ issues }: PullListProps): ReactElement => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<Header headerContent="Discover"
|
<Header
|
||||||
subHeaderContent="Pull List aggregated for the week from League Of Comic Geeks"
|
headerContent="Discover"
|
||||||
iconClassNames="fa-solid fa-binoculars mr-2"/>
|
subHeaderContent="Pull List aggregated for the week from League Of Comic Geeks"
|
||||||
|
iconClassNames="fa-solid fa-binoculars mr-2"
|
||||||
|
/>
|
||||||
<div className="field is-grouped">
|
<div className="field is-grouped">
|
||||||
{/* select week */}
|
{/* select week */}
|
||||||
<div className="control">
|
<div className="control">
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ type WantedComicsListProps = {
|
|||||||
export const WantedComicsList = ({
|
export const WantedComicsList = ({
|
||||||
comics,
|
comics,
|
||||||
}: WantedComicsListProps): ReactElement => {
|
}: WantedComicsListProps): ReactElement => {
|
||||||
console.log("yolo", comics);
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const navigateToWantedComics = (row) => {
|
const navigateToWantedComics = (row) => {
|
||||||
navigate(`/wanted/all`);
|
navigate(`/wanted/all`);
|
||||||
@@ -66,6 +65,28 @@ export const WantedComicsList = ({
|
|||||||
title={issueName ? titleElement : <span>No Name</span>}
|
title={issueName ? titleElement : <span>No Name</span>}
|
||||||
>
|
>
|
||||||
<div className="pb-1">
|
<div className="pb-1">
|
||||||
|
{/* Issue type */}
|
||||||
|
{isComicBookMetadataAvailable &&
|
||||||
|
!isNil(
|
||||||
|
detectIssueTypes(comicvine.volumeInformation.description),
|
||||||
|
) ? (
|
||||||
|
<div className="my-2">
|
||||||
|
<span className="inline-flex items-center bg-slate-50 text-slate-800 text-xs font-medium px-2.5 py-0.5 rounded-md dark:text-slate-900 dark:bg-slate-400">
|
||||||
|
<span className="pr-1 pt-1">
|
||||||
|
<i className="icon-[solar--book-2-line-duotone] w-5 h-5"></i>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span className="text-md text-slate-500 dark:text-slate-900">
|
||||||
|
{
|
||||||
|
detectIssueTypes(
|
||||||
|
comicvine.volumeInformation.description,
|
||||||
|
).displayName
|
||||||
|
}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
|
||||||
{/* comicVine metadata presence */}
|
{/* comicVine metadata presence */}
|
||||||
{isComicBookMetadataAvailable && (
|
{isComicBookMetadataAvailable && (
|
||||||
<img
|
<img
|
||||||
@@ -80,19 +101,6 @@ export const WantedComicsList = ({
|
|||||||
className="w-7 h-7"
|
className="w-7 h-7"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{/* Issue type */}
|
|
||||||
{isComicBookMetadataAvailable &&
|
|
||||||
!isNil(
|
|
||||||
detectIssueTypes(comicvine.volumeInformation.description),
|
|
||||||
) ? (
|
|
||||||
<span className="">
|
|
||||||
{
|
|
||||||
detectIssueTypes(
|
|
||||||
comicvine.volumeInformation.description,
|
|
||||||
).displayName
|
|
||||||
}
|
|
||||||
</span>
|
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ interface ZeroStateProps {
|
|||||||
}
|
}
|
||||||
const ZeroState: React.FunctionComponent<ZeroStateProps> = (props) => {
|
const ZeroState: React.FunctionComponent<ZeroStateProps> = (props) => {
|
||||||
return (
|
return (
|
||||||
<article className="message is-info">
|
<article className="">
|
||||||
<div className="message-body">
|
<div className="">
|
||||||
<p>{props.header}</p>
|
<p>{props.header}</p>
|
||||||
{props.message}
|
{props.message}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export const Settings = (props: ISettingsProps): ReactElement => {
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div className="flex flex-row">
|
<div className="flex flex-row">
|
||||||
<div className="inset-y-0 w-80 bg-gray-800 text-white h-full overflow-y-auto">
|
<div className="inset-y-0 w-80 dark:bg-gray-800 bg-slate-300 text-white overflow-y-auto">
|
||||||
<aside className="px-4 py-4 sm:px-6 sm:py-8 lg:px-8">
|
<aside className="px-4 py-4 sm:px-6 sm:py-8 lg:px-8">
|
||||||
{map(settingsObject, (settingObject, idx) => {
|
{map(settingsObject, (settingObject, idx) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
export const comicModel = {
|
|
||||||
name: "",
|
|
||||||
type: "",
|
|
||||||
import: {
|
|
||||||
isImported: false,
|
|
||||||
},
|
|
||||||
userAddedMetadata: {
|
|
||||||
tags: [],
|
|
||||||
},
|
|
||||||
|
|
||||||
comicStructure: {
|
|
||||||
cover: {
|
|
||||||
thumb: "http://thumb",
|
|
||||||
medium: "http://medium",
|
|
||||||
large: "http://large",
|
|
||||||
},
|
|
||||||
collection: {
|
|
||||||
publishDate: "",
|
|
||||||
type: "", // issue, series, trade paperback
|
|
||||||
metadata: {
|
|
||||||
publisher: "",
|
|
||||||
issueNumber: "",
|
|
||||||
description: "",
|
|
||||||
synopsis: "",
|
|
||||||
team: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sourcedMetadata: {
|
|
||||||
comicvine: {},
|
|
||||||
shortboxed: {},
|
|
||||||
gcd: {},
|
|
||||||
},
|
|
||||||
rawFileDetails: {
|
|
||||||
fileName: "",
|
|
||||||
path: "",
|
|
||||||
extension: "",
|
|
||||||
},
|
|
||||||
acquisition: {
|
|
||||||
release: {},
|
|
||||||
torrent: {
|
|
||||||
magnet: "",
|
|
||||||
tracker: "",
|
|
||||||
status: "",
|
|
||||||
},
|
|
||||||
usenet: {},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
export const SUPPORTED_COMIC_ARCHIVES = [".cbz", ".cbr"];
|
|
||||||
Reference in New Issue
Block a user