Skip to content
Open
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
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/japneet/Desktop/GitAssignment2021/src/index.js":"1","/Users/japneet/Desktop/GitAssignment2021/src/reportWebVitals.js":"2","/Users/japneet/Desktop/GitAssignment2021/src/App.js":"3","/Users/japneet/Desktop/GitAssignment2021/src/Footer.js":"4","/Users/japneet/Desktop/GitAssignment2021/src/Header.js":"5","/Users/japneet/Desktop/GitAssignment2021/src/Cards.js":"6","/Users/japneet/Desktop/GitAssignment2021/src/Freshers.js":"7"},{"size":635,"mtime":1611521567190,"results":"8","hashOfConfig":"9"},{"size":362,"mtime":1611521567190,"results":"10","hashOfConfig":"9"},{"size":255,"mtime":1611521567189,"results":"11","hashOfConfig":"9"},{"size":217,"mtime":1611521567190,"results":"12","hashOfConfig":"9"},{"size":2061,"mtime":1611521567190,"results":"13","hashOfConfig":"9"},{"size":2415,"mtime":1611521658414,"results":"14","hashOfConfig":"9"},{"size":6674,"mtime":1611521567190,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1x36qcu",{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/japneet/Desktop/GitAssignment2021/src/index.js",[],"/Users/japneet/Desktop/GitAssignment2021/src/reportWebVitals.js",[],"/Users/japneet/Desktop/GitAssignment2021/src/App.js",[],"/Users/japneet/Desktop/GitAssignment2021/src/Footer.js",[],"/Users/japneet/Desktop/GitAssignment2021/src/Header.js",[],"/Users/japneet/Desktop/GitAssignment2021/src/Cards.js",[],"/Users/japneet/Desktop/GitAssignment2021/src/Freshers.js",[]]
2 changes: 2 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
code: pycode
webpage: main
14 changes: 14 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: PR Labeler
on:
pull_request_target:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v3
with:
configuration-path: .github/pr-labeler.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Install and Build 🔧
run: |
npm ci
npm run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.gitsecret/keys/random_seed
!*.secret

# 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*
40 changes: 40 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
#
# The hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.

# The hook encrypts the .env file if present in the repository

## Read the README if you get any error. DO NOT bypass the PRE-COMMIT HOOK

# Exit on error. Append "|| true" if you expect an error.
set -o errexit
# Exit on error inside any functions or subshells.
set -o errtrace
# Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR
set -o nounset
# Catch the error in case mysqldump fails (but gzip succeeds) in `mysqldump |gzip`
set -o pipefail


__env_file=".env"

if [ ! -f ${__env_file} ]; then
echo "Environment file not present, Nothing to do!"
echo "Proceeding with normal commit"
exit 0
fi

echo "Environment file present"
echo "Beginning Encryption Process"

git secret add ${__env_file}

git secret hide

git add ${__env_file}.secret

echo "Encryption of files successfull"
exit 0
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# GitAssignment2022
# GitAssignment2022

This is the web part of assignment.
4 changes: 4 additions & 0 deletions desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ViewState]
Mode=
Vid=
FolderType=StorageProviderGeneric
Loading