Skip to content

Commit 3b4483d

Browse files
Merge remote-tracking branch 'origin/master'
1 parent b028d77 commit 3b4483d

40 files changed

+4470
-0
lines changed

.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
STEAM_API_KEY="YOUR_STEAM_API_KEY"
2+
STEAM_ID="YOUR_STEAM_ID"
3+
4+
DISCORD_BOT_KEY="YOUR_DISCORD_BOT_KEY"
5+
DISCORD_ID="YOUR_DISCORD_ID"
6+
7+
GIT_API_KEY="YOUR_GITHUB_API_KEY"

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
],
11+
rules: {
12+
'vue/multi-word-component-names': 'off',
13+
},
14+
}

.github/workflows/deploy.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Deploy static content
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
18+
jobs:
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
cache: "npm"
33+
34+
- name: Install dependencies
35+
run: npm install
36+
37+
- name: Setup stats
38+
env:
39+
STEAM_ID: ${{ secrets.STEAM_ID }}
40+
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
41+
DISCORD_ID: ${{ secrets.DISCORD_ID }}
42+
DISCORD_BOT_KEY: ${{ secrets.DISCORD_BOT_KEY }}
43+
GIT_API_KEY: ${{ secrets.GIT_API_KEY }}
44+
run: |
45+
bash setup-stats.sh
46+
47+
- name: Build
48+
run: npm run build
49+
50+
- name: Copy missing static files
51+
run: cp dist/index.html dist/404.html
52+
53+
- name: Setup Pages
54+
uses: actions/configure-pages@v4
55+
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v3
58+
with:
59+
name: github-pages
60+
path: "./dist"
61+
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
src/assets/steam/stats.json
6+
7+
# local env files
8+
.env.local
9+
.env.*.local
10+
11+
# Log files
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
16+
17+
# Editor directories and files
18+
.idea
19+
.vscode
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# default
2+
3+
## Project setup
4+
5+
```
6+
# yarn
7+
yarn
8+
9+
# npm
10+
npm install
11+
12+
# pnpm
13+
pnpm install
14+
15+
# bun
16+
bun install
17+
```
18+
19+
### Compiles and hot-reloads for development
20+
21+
```
22+
# yarn
23+
yarn dev
24+
25+
# npm
26+
npm run dev
27+
28+
# pnpm
29+
pnpm dev
30+
31+
# bun
32+
bun run dev
33+
```
34+
35+
### Compiles and minifies for production
36+
37+
```
38+
# yarn
39+
yarn build
40+
41+
# npm
42+
npm run build
43+
44+
# pnpm
45+
pnpm build
46+
47+
# bun
48+
bun run build
49+
```
50+
51+
### Customize configuration
52+
53+
See [Configuration Reference](https://vitejs.dev/config/).

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<!-- FONTS -->
8+
<link rel="preconnect" href="https://fonts.googleapis.com" />
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10+
<link
11+
href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;200;300;400;500;600;700;800;900&family=Prompt:wght@100;200;300;400;500;600;700;800;900&display=swap"
12+
rel="stylesheet"
13+
/>
14+
<!-- FONTAWESOME -->
15+
<link href="./fontawesome-free-6.4.2-web/css/all.css" rel="stylesheet" />
16+
</head>
17+
18+
<body>
19+
<div id="app"></div>
20+
<script type="module" src="/src/main.ts"></script>
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)