Skip to content

Commit

Permalink
Testing done with 0.0.84-beta.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Capta1nRaj committed Apr 6, 2024
1 parent a327545 commit 9e73fa1
Show file tree
Hide file tree
Showing 19 changed files with 3,734 additions and 239 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "next/core-web-vitals"
}
"extends": ["next/core-web-vitals"],
"rules": {
"@next/next/no-img-element": "off"
}
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
84 changes: 84 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '26 5 * * 1'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
9 changes: 9 additions & 0 deletions email-armour.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"RESEND_SIGN_UP_MAIL_TITLE": "Custom-Signup-Title",
"RESEND_SIGN_IN_MAIL_TITLE": "Custom-Signin-Title",
"RESEND_FORGOT_PASSWORD_MAIL_TITLE": "Custom-Forgot-Password-Title",
"RESEND_ADD_A_USER_MAIL_TITLE": "Custom-Add-A-User-Title",
"REFERRED_POINTS": 100,
"REFERRED_PERSON_POINTS": 25,
"OTP_LIMITS": 3
}
82 changes: 82 additions & 0 deletions email-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!-- Here you can create your own customized email templated, but make sure to use these values including both the curly brackets {{userName}} & {{OTPOrPassword}}, as the will get userName & OTPOrPassword of the client. -->
<!-- For more reference see the line 16 & 18 (Might be diff in yours). -->
<!-- And you can use any type of data you want, but those are compulsory. -->

<div style="width: 100%; margin: auto; font-size: 14px">
<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; width: 0"></span>
<div style="background-color: rgb(237, 239, 244); padding-top: 15px; padding-bottom: 15px">
<div style="width: 96%; margin: auto; max-width: 600px">
<div style="display: flex; padding: 2% 5%; background-color: rgb(255, 255, 255); border: 1px solid rgb(232, 233, 237)">
<a href='https://github.com/Capta1nRaj/email-armour' target="_blank">
<img src='https://img.icons8.com/emoji/96/-emoji-admission.png' style="width: 40px" class="CToWUd" data-bit="iit" />
</a>
</div>
<div style="padding: 5%; text-align: left; background-color: rgb(255, 255, 255); border: 1px solid rgb(232, 233, 237); overflow: hidden">
<div style="font-size: 22px; color: rgb(20, 27, 47); margin-bottom: 20px">OTP Verification Code</div>
<div style="font-size: 14px; margin-bottom: 18px; line-height: 1.43">Hi {{username}},</div>
<div style="font-size: 14px; margin-bottom: 18px; line-height: 1.43">browser {{userAgent}},</div>
<div style="font-size: 14px; margin-bottom: 18px; line-height: 1.43">Here is your password:</div>
<div style="font-size: 40px; margin-bottom: 18px;">{{OTPOrPassword}}</div>
<div style="font-size: 14px; margin-bottom: 18px; line-height: 1.43">IP Is: {{userIP}}</div>
<div style="font-size: 11px; color: rgb(114, 118, 130); margin-top: 20px">Valid for next 5 minutes.</div>
<div style="margin-top: 20px"> If you did not raise this request, please write to <a href="mailto:[email protected]" target="_blank">[email protected]</a>
</div>
</div>
<div style="height: 5px; font-size: 0px; background-color: #ff3258"></div>
<div style="height: 5px; font-size: 0px; background-color: #111111"></div>
<div style="margin-top: 20px; padding: 5% 4%; background-color: rgb(255, 255, 255); border: 1px solid rgb(232, 233, 237)">
<div style="text-align: center; margin-bottom: 20px">
<p style="margin: 0px; font-size: 13px; font-weight: 600; margin-bottom: 7px">Customer Service</p>
<p style="margin: 0px; font-size: 11px; line-height: 1.36; color: rgb(114, 118, 130)"> Have questions? Please visit : <a href='https://support.github.com/' target="_blank">https://support.github.com/</a>
</p>
</div>
<div style="font-size: 0">
<div style="display: inline-block; vertical-align: top; width: 39%">
<p style="margin: 0px; font-size: 13px; font-weight: 600; margin-bottom: 10px; white-space: nowrap">Connect with us</p>
<ul style="list-style: none; margin: 0; padding: 0; font-size: 0">
<li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 22%; max-width: 40px">
<a href='https://github.com/Instagram' style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/instagram-new--v1.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li>
<li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 22%; max-width: 40px">
<a href='https://github.com/twitter' style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/twitterx--v1.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li>
<li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 22%; max-width: 40px">
<a href='https://github.com/youtube' style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/youtube-squared.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li>
<li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 22%; max-width: 40px">
<a href='https://github.com/facebook' style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/meta.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li>
<li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 22%; max-width: 40px">
<a href="mailto:[email protected]" style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/upload-mail.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li>
</ul>
</div>
<div style="display: inline-block; vertical-align: top; text-align: right; width: 60%">
<p style="margin: 0px; font-size: 13px; font-weight: 600; margin-bottom: 10px; white-space: nowrap">Download App</p>
<ul style="list-style: none; margin: 0; padding: 0; font-size: 0">
<li style="display: none;"></li>' : ` <li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 48%; max-width: 75px">
<a href='https://github.com/android' style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/android-os.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li>
<li style="display: inline-block; vertical-align: top; margin: 0; padding: 0; width: 48%; max-width: 75px">
<a href='https://apps.apple.com/us/app/github/id1477376905' style="display: block" target="_blank">
<img src='https://img.icons8.com/ios-filled/50/ios-logo.png' alt="" style="display: block; max-width: 100%; width: 100%; height: auto" class="CToWUd" data-bit="iit" />
</a>
</li> </ul>
</div>
</div>
</div>
</div>
</div>
</div>
Loading

0 comments on commit 9e73fa1

Please sign in to comment.