Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenwong812 committed Apr 9, 2024
0 parents commit 8e71c6a
Show file tree
Hide file tree
Showing 578 changed files with 27,895 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Lint

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
- test

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/[email protected]

- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: 16
registry-url: "https://npm.pkg.github.com"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache yarn cache
uses: actions/[email protected]
id: cache-yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-dev-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-dev-
- name: Cache node_modules
id: cache-node-modules
uses: actions/[email protected]
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-dev-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-dev-
- name: Install Dependencies
run: yarn install --frozen-lockfile --prefer-offline

- name: Fix Formatting
run: yarn format

- name: Check linting
run: yarn lint

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}
36 changes: 36 additions & 0 deletions .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

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Online bet nextjs template
4 changes: 4 additions & 0 deletions bootstrap.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module 'bootstrap/dist/js/bootstrap' {
const bootstrap: any;
export default bootstrap;
}
34 changes: 34 additions & 0 deletions components/BreadCrumb.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Link from 'next/link';
import React from 'react';
type BreadCrumbProps = {
title: string;
};

const BreadCrumb = ({ title }: BreadCrumbProps) => {
return (
<div className="breadcumnd-banner">
<div className="container">
<div className="breadcumd-content">
<h1>
{title}
</h1>
<ul className="bread-tag">
<li>
<Link href="#0">
Home
</Link>
</li>
<li>
<i className="fas fa-arrow-right"></i>
</li>
<li>
{title}
</li>
</ul>
</div>
</div>
</div>
);
};

export default BreadCrumb;
Loading

0 comments on commit 8e71c6a

Please sign in to comment.