Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create website for testing Token generation #16 #17

Merged
merged 31 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4f22b51
website for testing token generation
munyanezaarmel Oct 3, 2024
061ee53
feat(website for token generator):add website for opengotoken generator
munyanezaarmel Oct 8, 2024
0596087
fix(website):rename website and add readme
munyanezaarmel Oct 17, 2024
b1a7daa
updated readme
munyanezaarmel Oct 17, 2024
26d47d0
deleted
munyanezaarmel Oct 17, 2024
52dd43d
fix the duplicates
munyanezaarmel Oct 17, 2024
d679743
update package
munyanezaarmel Oct 22, 2024
9ae86e2
updated optiion value
munyanezaarmel Oct 22, 2024
04e3c77
Merge branch 'main' into main
munyanezaarmel Oct 22, 2024
20c3427
fix lint
munyanezaarmel Oct 23, 2024
3a3585c
fix markdown errors
munyanezaarmel Oct 23, 2024
b3f2f43
Deleted the file and updated README
munyanezaarmel Oct 23, 2024
f9d3605
deploy to github pages
munyanezaarmel Oct 23, 2024
24c4338
fix lint
munyanezaarmel Oct 23, 2024
cca53d9
workflow file
munyanezaarmel Oct 23, 2024
4810599
fix workfile
munyanezaarmel Oct 23, 2024
2cb9abd
workfile
munyanezaarmel Oct 24, 2024
a5549e4
fix linting
munyanezaarmel Oct 24, 2024
ce9a68e
fix build script
munyanezaarmel Oct 24, 2024
bbc97ae
fix build errors
munyanezaarmel Oct 24, 2024
8256d72
fix deploy job
munyanezaarmel Oct 24, 2024
da7d049
fix deploy script
munyanezaarmel Oct 24, 2024
9076e5e
fix deploy
munyanezaarmel Oct 24, 2024
477585f
fix deploy
munyanezaarmel Oct 24, 2024
20eadca
fix deploy
munyanezaarmel Oct 24, 2024
e2b3e22
fix deploy
munyanezaarmel Oct 24, 2024
6d546a0
fix deploy
munyanezaarmel Oct 24, 2024
14cde89
fix lint
munyanezaarmel Oct 24, 2024
08d60eb
fix deploy
munyanezaarmel Oct 24, 2024
a2a9532
fix deploy
munyanezaarmel Oct 24, 2024
9a0c5f1
Update .github/workflows/deploy.yml
dmohns Oct 24, 2024
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
3 changes: 3 additions & 0 deletions website/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}
36 changes: 36 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
38 changes: 38 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# PAYGO Token Generator

This project is a **OpenPAYGO Token Generator** built with **Next.js**. It allows users to generate tokens for OpenPAYGO using specific parameters such as serial number, counter, starting code, and private key. The application provides a user-friendly interface to input these parameters and generates a token based on the provided data.

## Getting Started

To run the development server, follow these steps:

1. Clone the repository:

```bash
git clone https://github.com/EnAccess/OpenPAYGO-js
cd website


Check failure on line 15 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Multiple consecutive blank lines

website/README.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
2. Install the dependencies:
```bash

Check failure on line 17 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Fenced code blocks should be surrounded by blank lines

website/README.md:17 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md031.md
npm install

Check failure on line 19 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Trailing spaces

website/README.md:19:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md

Check failure on line 20 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Multiple consecutive blank lines

website/README.md:20 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
3. Run the development server:
```bash

Check failure on line 22 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Fenced code blocks should be surrounded by blank lines

website/README.md:22 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md031.md
npm run dev
# or
yarn dev
# or
pnpm dev

Check failure on line 28 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Trailing spaces

website/README.md:28:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md009.md

Check failure on line 29 in website/README.md

View workflow job for this annotation

GitHub Actions / Run markdownlint

Multiple consecutive blank lines

website/README.md:29 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
4. Open [http://localhost:3000](http://localhost:3000) in your browser to see the application in action.

## Features

- Input fields for serial number, counter, starting code, private key, command, and command argument.
- Validation for input fields to ensure correct data is provided.
- Displays the generated token and the next token count after submission.
- Error handling for invalid inputs and generation failures.

14 changes: 14 additions & 0 deletions website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @type {import('next').NextConfig} */

const isProd = process.env.NODE_ENV === 'production';

const nextConfig = {
assetPrefix: isProd ? 'OpenPAYGO-js' : '',
trailingSlash: true,
images: {
unoptimized: true,
},

};

export default nextConfig;
Loading
Loading