Skip to content

Commit f11b314

Browse files
authored
Merge pull request #3 from kreastol-club/dev
Version v0.3.0 changes
2 parents 06522c3 + 5c47544 commit f11b314

File tree

26 files changed

+454
-223
lines changed

26 files changed

+454
-223
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
## Unreleased
4+
5+
## v0.3.0
6+
### Added
7+
- Article component @joshika39
8+
- Articles wrapper @joshika39
9+
- Login button with dropdown to open settings @joshika39
10+
- Styles for clickable link in `Article` @joshika39
11+
12+
### Fixed
13+
- Runtime version representation @joshika39
14+
15+
### Changed
16+
- Navbar was reordered @joshika39

Dockerfile

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
#FROM node:18
2-
#
3-
#ENV NEXTAUTH_URL=http://localhost:3000
4-
#ENV DATABASE_URL=postgresql://0.0.0.0:5432
5-
#WORKDIR /app
6-
#COPY package*.json ./
7-
#COPY prisma ./prisma/
8-
#RUN npm install
9-
#RUN npx prisma generate
10-
#COPY . .
11-
#RUN npm run build
12-
#EXPOSE 3000
13-
#CMD npm start
14-
15-
161
FROM node:lts as dependencies
172
WORKDIR /app
183
COPY package.json ./
@@ -25,14 +10,14 @@ WORKDIR /app
2510
COPY . .
2611
COPY --from=dependencies /app/node_modules ./node_modules
2712

28-
2913
RUN npm run build
3014

3115
FROM node:lts as runner
3216
WORKDIR /app
3317
ENV NODE_ENV production
3418
ENV BASE_URL=http://localhost:8887
3519
ENV NEXT_TELEMETRY_DISABLED 1
20+
COPY --from=dependencies /app/prisma ./prisma
3621
COPY --from=builder /app/next.config.js ./
3722
COPY --from=builder /app/*.ts ./
3823
COPY --from=builder /app/public ./public
@@ -41,5 +26,10 @@ COPY --from=builder /app/node_modules ./node_modules
4126
COPY --from=builder /app/dictionaries ./dictionaries
4227
COPY --from=builder /app/package.json ./package.json
4328

29+
COPY entrypoint.sh ./entrypoint.sh
30+
RUN chmod +x ./entrypoint.sh
31+
32+
ENTRYPOINT ["./entrypoint.sh"]
33+
4434
EXPOSE 3000
45-
CMD ["npm", "start"]
35+
CMD ["npm", "start"]

app/[lang]/about/page.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

app/[lang]/events/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Card from "@/components/Card";
22
import { Locale } from "@/i18n.config";
33
import React from "react";
4-
import EventPaginator from "@/app/[lang]/events/components/Paginator";
54
import { getDictionary } from "@/dictionaries";
65

76

app/[lang]/layout.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import { Inter } from 'next/font/google'
55
import React from "react";
66
import { i18n, Locale } from "@/i18n.config";
77
import getConfig from "next/config";
8-
import AuthProvider from "@/app/[lang]/context/AuthProvider";
9-
import UserCard from "@/components/UserCard";
108
import { Badge } from '@/components/ui/badge';
119
import { ThemeProvider } from '@/components/theme-provider';
10+
import AuthProvider from '@/context/AuthProvider';
1211

1312
const inter = Inter({ subsets: ['latin'] })
1413

@@ -22,7 +21,7 @@ export async function generateStaticParams() {
2221
}
2322

2423
function envBadge() {
25-
return process.env.NODE_ENV === 'production' ? "" : `${process.env.NODE_ENV} | `;
24+
return process.env.RUNTIME === 'production' ? "" : `${process.env.RUNTIME} | `;
2625
}
2726

2827
export default function RootLayout({ children, params }: {
@@ -41,13 +40,12 @@ export default function RootLayout({ children, params }: {
4140
<main className="w-full h-full overflow-y-auto">
4241
{children}
4342
</main>
44-
<footer className="footer footer-center gap-4 p-4 flex justify-evenly flex-row max-sm:flex-col">
45-
<aside className='flex'>
46-
<p>Copyright © 2023 - Kreastol Klub Org.</p>
43+
<footer className="gap-4 p-4 flex justify-evenly flex-col xs:flex-row">
44+
<aside className='xs:w-fit w-full'>
45+
<p className='text-sm xs:text-left text-center'>Copyright © 2023 - Kreastol Klub Org.</p>
4746
</aside>
48-
<Badge>{envBadge()}kreastol-next@{publicRuntimeConfig.version}</Badge>
49-
<div className='flex'>
50-
<UserCard />
47+
<div className='flex xs:w-fit w-full h-fit self-center justify-center'>
48+
<Badge>{envBadge()}kreastol-next@{publicRuntimeConfig.version}</Badge>
5149
</div>
5250
</footer>
5351
</AuthProvider>

app/[lang]/news/[slug]/page.tsx

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/[lang]/news/create/page.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/[lang]/news/page.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/[lang]/services/create/page.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

app/[lang]/services/page.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)