File tree Expand file tree Collapse file tree 8 files changed +15
-15
lines changed
Expand file tree Collapse file tree 8 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ https://sites.google.com/view/gsites-embed-app/full-page
69691 . ** NextJS v13.0.4** (client-side SSG)
7070 - NextJS is one of the @latest React frameworks officially endorsed on the react.dev website
7171 - NextJS's Static Side Generation (SSG) feature, combined with Incremental Static Generation (ISG) creates SEO-optimized websites fit for uploading on static hosting services such as GitHub Pages.
72- - NextJS offers code automatic code-splitting, enabling a smaller download footprint per page route
72+ - NextJS offers automatic code-splitting, enabling a smaller download footprint per page route
73732 . ** React 18.2.0**
7474 - React version 18's is the latest react version as of this writing
75753 . ** @reduxjs/toolkit v1.9.3**
Original file line number Diff line number Diff line change 1- FROM node:20.15.0-alpine as base
1+ FROM node:20.15.0-alpine AS base
22RUN mkdir -p /opt/client
33WORKDIR /opt/client
44RUN adduser -S client
55RUN chown -R client /opt/client
66COPY package*.json ./
77
88# BUILD TARGET
9- FROM base as build
9+ FROM base AS build
1010RUN npm install && npm cache clean --force
1111COPY . ./
1212RUN npm run export
1313USER client
1414
1515# DEVELOPMENT CLIENT PROFILE
16- FROM base as development
16+ FROM base AS development
1717ENV NODE_ENV=development
1818RUN npm install && npm cache clean --force
1919COPY . ./
2020EXPOSE 3000
2121CMD ["npm" , "run" , "dev" ]
2222
2323# PRODUCTION CLIENT PROFILE
24- FROM nginx:1.22.0-alpine as production
24+ FROM nginx:1.22.0-alpine AS production
2525COPY --from=build /opt/client/out /usr/share/nginx/html
2626RUN rm /etc/nginx/conf.d/default.conf
2727COPY config/nginx/nginx.conf /etc/nginx/conf.d
Original file line number Diff line number Diff line change 55 { "key" : " category" , "label" : " Category" },
66 { "key" : " description" , "label" : " Description" },
77 { "key" : " picture_url" , "label" : " Picture URL" },
8- { "key" : " download_url" , "label" : " Download URL" },
8+ { "key" : " download_url" , "label" : " File Download URL" },
99 { "key" : " website_url" , "label" : " Website URL" },
1010 { "key" : " date_created" , "label" : " Date Created" },
1111 { "key" : " date_updated" , "label" : " Date Updated" }
Original file line number Diff line number Diff line change 11[
22 { "key" : " picture_url" , "label" : " Picture URL" },
3- { "key" : " download_url" , "label" : " Download URL" },
3+ { "key" : " download_url" , "label" : " File Download URL" },
44 { "key" : " mime_type" , "label" : " File Type" },
55 { "key" : " website_url" , "label" : " Website URL" }
66]
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import useDeleteCard from '../../hooks/usedeletecard'
99import ViewCardComponent from '../../components/viewcard'
1010
1111const actionDeleteSettings = {
12- title : 'Delete Post ' ,
13- message : 'Are you sure you want to delete this Post ?' ,
14- success : 'Post deleted.'
12+ title : 'Delete File Card ' ,
13+ message : 'Are you sure you want to delete this File Card ?' ,
14+ success : 'File Card deleted.'
1515}
1616
1717const ACTION_TYPES = {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default function Home() {
4646 CMS
4747 </ h2 >
4848 < p >
49- Content Management System (CMS) for Posts.
49+ Content Management System (CMS) for Posts and File Cards .
5050 </ p >
5151 </ Link >
5252
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ service firebase.storage {
6060 || requestData.name.matches('users/.*/.*_thumbnail'));
6161 }
6262
63- // Only allow uploads of any file that's less than 4MB
63+ // Only allow uploads of any file that's less than 8MB
6464 function validFileSize (requestData) {
65- return requestData.size < 4 * 1024 * 1024;
65+ return requestData.size < 8 * 1024 * 1024;
6666 }
6767
6868 // FILES matching rules --------------------------------------------------------
Original file line number Diff line number Diff line change 11# BASE PROFILE
2- FROM node:20.15.0-alpine as base
2+ FROM node:20.15.0-alpine AS base
33RUN mkdir -p /opt/server
44WORKDIR /opt/server
55RUN adduser -S server
66RUN chown -R server /opt/server
77COPY package*.json ./
88
99# DEVELOPMENT PROFILE
10- FROM base as development
10+ FROM base AS development
1111RUN npm install && npm cache clean --force
1212COPY . ./
1313USER server
You can’t perform that action at this time.
0 commit comments