Skip to content

Commit

Permalink
Merge branch 'tdjsnelling:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaiment authored Jan 24, 2024
2 parents 9f320c9 + dc73537 commit ccf97db
Show file tree
Hide file tree
Showing 20 changed files with 450 additions and 136 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
client/.next
data/
config.js
config.example.js
yarn.lock
.DS_Store
dist/
letsencrypt/
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ The best place to start is to copy the `en.json` file and work through it, trans

### Existing translations

| Language | Complete (estimate) | Contributed by |
|--------------------|---------------------|--------------------------------------------|
| English | 100% | |
| Russian | 100% | [@smlinux](https://github.com/smlinux) |
| Esperanto | 100% | [@smlinux](https://github.com/smlinux) |
| German | 15% | [@MikeMatau](https://github.com/MikeMatau) |
| Simplified Chinese | 95% | [@0EAC](https://github.com/0EAC) |
| Language | Complete (estimate) | Contributed by |
|--------------------|---------------------|----------------------------------------------------|
| English | 100% | |
| Russian | 100% | [@smlinux](https://github.com/smlinux) |
| Esperanto | 100% | [@smlinux](https://github.com/smlinux) |
| German | 100% | [@EchterAlsFake](https://github.com/EchterAlsFake) |
| Simplified Chinese | 95% | [@0EAC](https://github.com/0EAC) |
| French | 100% | [@Klaiment](https://github.com/Klaiment) |

## Screenshots

Expand Down
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:16-alpine
ENV NODE_ENV=development
ENV NODE_ENV=production
ENV SENTRY_DSN="https://[email protected]/4504645996576768"
LABEL org.opencontainers.image.source=https://github.com/tdjsnelling/sqtracker
WORKDIR /sqtracker/app
COPY . .
RUN yarn install
EXPOSE 3001
CMD yarn start
CMD yarn start
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqtracker/api",
"version": "1.4.0",
"version": "1.5.0",
"private": true,
"license": "GPL-3.0-only",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion api/src/controllers/torrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ export const getTorrentsPage = async ({
created: 1,
freeleech: 1,
tags: 1,
poster: 1,
confidenceScore: 1,
},
},
Expand Down
4 changes: 2 additions & 2 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:16-alpine AS builder
ARG SENTRY_AUTH_TOKEN
ENV NODE_ENV=development
ENV NODE_ENV=production
ENV SENTRY_ORG=tdjsnelling
ENV SENTRY_PROJECT=sqtracker-frontend
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
Expand All @@ -11,7 +11,7 @@ RUN echo "{}" > /config.js
RUN ./node_modules/.bin/next build

FROM node:16-alpine
ENV NODE_ENV=development
ENV NODE_ENV=production
ENV SENTRY_DSN="https://[email protected]/4504646040616960"
LABEL org.opencontainers.image.source=https://github.com/tdjsnelling/sqtracker
WORKDIR /sqtracker/client
Expand Down
28 changes: 25 additions & 3 deletions client/components/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,40 @@ export const WrapLabel = ({ label, children, as = "label", ...rest }) =>
children
);

const Input = ({ label, rows, my, mt, mb, width, forwardedRef, ...rest }) => {
const Input = ({
label,
rows,
my,
mt,
mb,
width,
forwardedRef,
required,
...rest
}) => {
return (
<WrapLabel label={label} my={my} mt={mt} mb={mb} width={width}>
<WrapLabel
label={label && required ? `${label} *` : label}
my={my}
mt={mt}
mb={mb}
width={width}
>
{rows ? (
<StyledTextarea
ref={forwardedRef}
rows={rows}
width={width}
required={required}
{...rest}
/>
) : (
<StyledInput ref={forwardedRef} width={width} {...rest} />
<StyledInput
ref={forwardedRef}
width={width}
required={required}
{...rest}
/>
)}
</WrapLabel>
);
Expand Down
6 changes: 3 additions & 3 deletions client/components/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ const StyledSelect = styled.select(
typography
);

const Select = ({ label, fRef, ...rest }) => {
const Select = ({ label, required, fRef, ...rest }) => {
return (
<WrapLabel label={label}>
<WrapLabel label={label && required ? `${label} *` : label}>
<Box position="relative" display="inline-block">
<StyledSelect {...rest} ref={fRef} />
<StyledSelect {...rest} ref={fRef} required={required} />
<Box
position="absolute"
top="7px"
Expand Down
Loading

0 comments on commit ccf97db

Please sign in to comment.