Skip to content

Commit

Permalink
feat: initial: commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Lazuardy committed Apr 25, 2022
0 parents commit 7c99524
Show file tree
Hide file tree
Showing 57 changed files with 10,524 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NODE_ENV=development
VITE_APP_TITLE="Pokemon"
38 changes: 38 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '35 21 * * 0'

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["typescript"]

steps:
- name: 📥 Install Github Action Checkout
uses: actions/checkout@v2

- name: 📥 Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: 🔨 Running CodeQL Automatic Build
uses: github/codeql-action/autobuild@v1

- name: 🔍 Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

# Ignore all local history of files
.history
.ionide

docs/_book

test/

.env
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Ezra Lazuardy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<a href="https://imgc.ezralazuardy.com/">
<img src="https://therealsujitk-vercel-badge.vercel.app/?app=pokemon.ezralazuardy" alt="Deployment">
</a>
<a href="https://github.com/ezralazuardy/pokemon/actions/workflows/codeql-analysis.yml">
<img src="https://img.shields.io/github/workflow/status/ezralazuardy/pokemon/CodeQL?label=security" alt="CodeQL Security Analysis">
</a>
<a href="https://github.com/ezralazuardy/pokemon/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/ezralazuardy/pokemon" alt="License">
</a>
<a href="https://web.dev/progressive-web-apps">
<img alt="PWA Support" src="https://img.shields.io/badge/%20pwa-enabled-blueviolet">
</a>

## 🦑 pokemon

Feelin nostalgic, a game that brings you a pokemon-like 8-bit experience on web.

Preview: [https://pokemon.ezralazuardy.com](https://pokemon.ezralazuardy.com)

> This app is written in [Typescript](https://www.typescriptlang.org) using [Vue](https://vuejs.org), [Vite](https://vitejs.dev), and [Volar](https://github.com/johnsoncodehk/volar). The project is intended for my Multimedia coursework at [Diponegoro University](https://ft.undip.ac.id/en/site).
## 🚀 Quick start

Run the application in your local environment.

```bash
git clone https://github.com/ezralazuardy/pokemon.git
cd pokemon
cp .env.example .env
npm install
npm run dev
```

> [Node.js](https://nodejs.org) need to be installed in your environment. Internet connection is required to run the app.
13 changes: 13 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Security Policy

## Supported Versions

Project versions that are currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 0.0.x | :white_check_mark: |

## Reporting a Vulnerability

If you found any kind of vulnerability in this project, please make a new [issue](https://github.com/ezralazuardy/pokemon/issues) with [label](https://github.com/ezralazuardy/pokemon/labels) **vulnerability**.
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="msapplication-config" content="/browserconfig.xml" />
<meta name="theme-color" content="#da532c" />
<meta name="apple-mobile-web-app-title" content="<%- VITE_APP_TITLE %>" />
<meta name="application-name" content="<%- VITE_APP_TITLE %>" />
<meta name="description" content="A simple pokemon-like game for web." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="preload"
href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap"
as="style"
onload="this.onload=null;this.rel='stylesheet'"
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#acd1af" />
<title><%- VITE_APP_TITLE %></title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

1 comment on commit 7c99524

@vercel
Copy link

@vercel vercel bot commented on 7c99524 Apr 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.