Skip to content
Snippets Groups Projects
Commit 185e3392 authored by xaralis's avatar xaralis
Browse files

feat: react-based website

parent c37816f7
No related branches found
No related tags found
No related merge requests found
Pipeline #5885 failed
Showing
with 128 additions and 21 deletions
[{"/Users/xaralis/Workspace/cf2022.pirati.cz/src/App.js":"1","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/Badge.js":"2","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/Button.js":"3","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/CrossroadCard.js":"4","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/PageTitle.js":"5","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/VNav.js":"6","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/Card.js":"7","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardActions.js":"8","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardBody.js":"9","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardBodyText.js":"10","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardHeadline.js":"11","/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/index.js":"12","/Users/xaralis/Workspace/cf2022.pirati.cz/src/config.js":"13","/Users/xaralis/Workspace/cf2022.pirati.cz/src/index.js":"14","/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Accommodation.js":"15","/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Home.js":"16","/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Map.js":"17","/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Registration.js":"18","/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Team.js":"19","/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Volunteers.js":"20","/Users/xaralis/Workspace/cf2022.pirati.cz/src/reportWebVitals.js":"21","/Users/xaralis/Workspace/cf2022.pirati.cz/src/setupTests.js":"22"},{"size":2409,"mtime":1635777011890,"results":"23","hashOfConfig":"24"},{"size":1023,"mtime":1635777011890,"results":"25","hashOfConfig":"26"},{"size":1147,"mtime":1635761986959,"results":"27","hashOfConfig":"26"},{"size":916,"mtime":1635777011892,"results":"28","hashOfConfig":"24"},{"size":180,"mtime":1635777011894,"results":"29","hashOfConfig":"26"},{"size":930,"mtime":1635777011890,"results":"30","hashOfConfig":"24"},{"size":282,"mtime":1635762905713,"results":"31","hashOfConfig":"26"},{"size":308,"mtime":1635762908930,"results":"32","hashOfConfig":"26"},{"size":284,"mtime":1635762911316,"results":"33","hashOfConfig":"26"},{"size":161,"mtime":1635762917080,"results":"34","hashOfConfig":"26"},{"size":250,"mtime":1635770269484,"results":"35","hashOfConfig":"24"},{"size":264,"mtime":1608196297246,"results":"36","hashOfConfig":"26"},{"size":6623,"mtime":1635777011892,"results":"37","hashOfConfig":"26"},{"size":478,"mtime":1635777011892,"results":"38","hashOfConfig":"24"},{"size":2286,"mtime":1635777011892,"results":"39","hashOfConfig":"24"},{"size":1085,"mtime":1635777011892,"results":"40","hashOfConfig":"24"},{"size":1835,"mtime":1635777011892,"results":"41","hashOfConfig":"24"},{"size":4898,"mtime":1635777011892,"results":"42","hashOfConfig":"24"},{"size":1227,"mtime":1635777011892,"results":"43","hashOfConfig":"24"},{"size":1925,"mtime":1635777011893,"results":"44","hashOfConfig":"24"},{"size":364,"mtime":1635777011892,"results":"45","hashOfConfig":"26"},{"size":241,"mtime":1635777011893,"results":"46","hashOfConfig":"26"},{"filePath":"47","messages":"48","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"1swn12q",{"filePath":"49","messages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1m66l2t",{"filePath":"51","messages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"55","messages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"59","messages":"60","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"61","messages":"62","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"67","messages":"68","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"69","messages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"75","messages":"76","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"77","messages":"78","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"79","messages":"80","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"81","messages":"82","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"83","messages":"84","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"85","messages":"86","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"87","messages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/xaralis/Workspace/cf2022.pirati.cz/src/App.js",["91"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/Badge.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/Button.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/CrossroadCard.js",["92"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/PageTitle.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/VNav.js",["93"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/Card.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardActions.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardBody.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardBodyText.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/CardHeadline.js",["94"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/components/cards/index.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/config.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/index.js",["95"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Accommodation.js",["96"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Home.js",["97"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Map.js",["98"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Registration.js",["99"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Team.js",["100"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/pages/Volunteers.js",["101"],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/reportWebVitals.js",[],"/Users/xaralis/Workspace/cf2022.pirati.cz/src/setupTests.js",[],{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},{"ruleId":"102","message":"103","line":1,"column":1,"endLine":1,"endColumn":2,"severity":2,"nodeType":null},"simple-import-sort/sort","Definition for rule 'simple-import-sort/sort' was not found."]
\ No newline at end of file
_work
_site
.sass-cache
.jekyll-metadata
.jekyll-cache
.bundle
Gemfile.lock
vendor
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
image: jekyll/builder:4.2.0
image: node:buster
variables:
SITE_NAME: cf2022.pirati.cz
WEBHOOK_URL: https://ha-web.pirati.cz
cache:
paths:
- vendor/
before_script:
- bundle install --path vendor
- apk update && apk add curl
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq curl
site:
build:
stage: build
script:
- bundle exec jekyll build -d public
- echo "{\"name\":\"$SITE_NAME\" }" > request.json
- npm install
- npm run build
after_script:
- echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\" }" > request.json
- "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
only:
- master
artifacts:
expire_in: 30 min
paths:
- public
- $ARTIFACTS_PATH
.nvmrc 0 → 100644
16.19
FROM node:16.9-alpine as build
ARG BUILD_REACT_APP_STYLEGUIDE_URL
ENV REACT_APP_STYLEGUIDE_URL=${BUILD_REACT_APP_STYLEGUIDE_URL}
RUN mkdir -p /home/node/cf
WORKDIR /home/node/cf
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# ---
FROM nginx:alpine as production
COPY --from=build /home/node/cf/build /usr/share/nginx/html/
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment