Skip to content

Commit

Permalink
Initial Site
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Aug 22, 2024
1 parent 5667752 commit 0d1cb6b
Show file tree
Hide file tree
Showing 19 changed files with 4,874 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/install/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Install Tools & Dependencies
description: Installs pnpm, Node.js & package dependencies

runs:
using: composite
steps:
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
run_install: false
standalone: true
package_json_file: web/package.json
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 21
cache: pnpm
cache-dependency-path: "web"

- name: Install dependencies
run: cd web && pnpm install
shell: bash
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 🚚 Deploy Web

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Tools & Dependencies
uses: ./.github/actions/install

- name: Build
working-directory: ./web
run: NODE_ENV=production pnpm run build

- name: Edgeserver Upload
uses: lvkdotsh/[email protected]
with:
app_id: "289766393082388979"
server: https://api.edgeserver.io
token: ${{ secrets.SIGNAL_TOKEN }}
directory: web/dist
Binary file added samples/test_sample.mp3
Binary file not shown.
19 changes: 19 additions & 0 deletions web/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021
},
"extends": [
"plugin:v3xlabs/recommended"
],
"ignorePatterns": [
"!**/*"
],
"plugins": [
"v3xlabs"
],
"env": {
"node": true
},
"rules": {}
}
2 changes: 2 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
5 changes: 5 additions & 0 deletions web/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 4,
"useTabs": false,
"singleQuote": true
}
13 changes: 13 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>sample.rip</title>
<link rel="stylesheet" href="./src/index.css" />
<script type="module" src="./src/index.tsx"></script>
</head>
<body>
<div id="root"></div>
</body>
</html>
47 changes: 47 additions & 0 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "sample-rip",
"version": "1.0.0",
"description": "",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "vite",
"build": "vite build"
},
"keywords": [],
"author": "",
"license": "GPL-3.0",
"dependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.8.0",
"@tanstack/react-router": "^1.45.14",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"clsx": "^2.1.1",
"eslint-plugin-unused-imports": "^4.0.1",
"globals": "^15.8.0",
"leaflet": "^1.9.4",
"postcss": "^8.4.38",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-leaflet": "^4.2.1",
"swr": "^2.2.5",
"tailwindcss": "^3.4.3",
"ua-parser-js": "^1.0.38",
"vite": "^5.2.10",
"zustand": "^4.5.4"
},
"devDependencies": {
"@tanstack/router-devtools": "^1.45.14",
"@tanstack/router-plugin": "^1.45.13",
"@types/leaflet": "^1.9.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/ua-parser-js": "^0.7.39",
"@types/url-search-params": "^1.1.2",
"@typescript-eslint/parser": "^7.17.0",
"eslint": "^8.57.0",
"eslint-plugin-v3xlabs": "^1.6.5",
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 0d1cb6b

Please sign in to comment.