Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ https://sites.google.com/view/gsites-embed-app/full-page
1. **NextJS v13.0.4** (client-side SSG)
- NextJS is one of the @latest React frameworks officially endorsed on the react.dev website
- 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.
- NextJS offers code automatic code-splitting, enabling a smaller download footprint per page route
- NextJS offers automatic code-splitting, enabling a smaller download footprint per page route
2. **React 18.2.0**
- React version 18's is the latest react version as of this writing
3. **@reduxjs/toolkit v1.9.3**
Expand Down
8 changes: 4 additions & 4 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
FROM node:20.15.0-alpine as base
FROM node:20.15.0-alpine AS base
RUN mkdir -p /opt/client
WORKDIR /opt/client
RUN adduser -S client
RUN chown -R client /opt/client
COPY package*.json ./

# BUILD TARGET
FROM base as build
FROM base AS build
RUN npm install && npm cache clean --force
COPY . ./
RUN npm run export
USER client

# DEVELOPMENT CLIENT PROFILE
FROM base as development
FROM base AS development
ENV NODE_ENV=development
RUN npm install && npm cache clean --force
COPY . ./
EXPOSE 3000
CMD ["npm", "run", "dev"]

# PRODUCTION CLIENT PROFILE
FROM nginx:1.22.0-alpine as production
FROM nginx:1.22.0-alpine AS production
COPY --from=build /opt/client/out /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY config/nginx/nginx.conf /etc/nginx/conf.d
Expand Down
2 changes: 1 addition & 1 deletion client/features/filecards/constants/cardorderedlabels.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{ "key": "category", "label": "Category" },
{ "key": "description", "label": "Description" },
{ "key": "picture_url", "label": "Picture URL" },
{ "key": "download_url", "label": "Download URL" },
{ "key": "download_url", "label": "File Download URL" },
{ "key": "website_url", "label": "Website URL" },
{ "key": "date_created", "label": "Date Created" },
{ "key": "date_updated", "label": "Date Updated" }
Expand Down
2 changes: 1 addition & 1 deletion client/features/filecards/constants/cardviewlabels.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{ "key": "picture_url", "label": "Picture URL" },
{ "key": "download_url", "label": "Download URL" },
{ "key": "download_url", "label": "File Download URL" },
{ "key": "mime_type", "label": "File Type" },
{ "key": "website_url", "label": "Website URL" }
]
6 changes: 3 additions & 3 deletions client/features/filecards/containers/viewcard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import useDeleteCard from '../../hooks/usedeletecard'
import ViewCardComponent from '../../components/viewcard'

const actionDeleteSettings = {
title: 'Delete Post',
message: 'Are you sure you want to delete this Post?',
success: 'Post deleted.'
title: 'Delete File Card',
message: 'Are you sure you want to delete this File Card?',
success: 'File Card deleted.'
}

const ACTION_TYPES = {
Expand Down
2 changes: 1 addition & 1 deletion client/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Home() {
CMS
</h2>
<p>
Content Management System (CMS) for Posts.
Content Management System (CMS) for Posts and File Cards.
</p>
</Link>

Expand Down
4 changes: 2 additions & 2 deletions client/storage.rules
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ service firebase.storage {
|| requestData.name.matches('users/.*/.*_thumbnail'));
}

// Only allow uploads of any file that's less than 4MB
// Only allow uploads of any file that's less than 8MB
function validFileSize (requestData) {
return requestData.size < 4 * 1024 * 1024;
return requestData.size < 8 * 1024 * 1024;
}

// FILES matching rules --------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# BASE PROFILE
FROM node:20.15.0-alpine as base
FROM node:20.15.0-alpine AS base
RUN mkdir -p /opt/server
WORKDIR /opt/server
RUN adduser -S server
RUN chown -R server /opt/server
COPY package*.json ./

# DEVELOPMENT PROFILE
FROM base as development
FROM base AS development
RUN npm install && npm cache clean --force
COPY . ./
USER server
Expand Down